/* Marsh & Tide Homes — styles.css — 2026-09-16 */
:root {
  --shell: #faf7f2; --sand: #ded3c2; --ink: #1e2226; --ink-2: rgba(30, 34, 38, 0.7); --ink-3: rgba(30, 34, 38, 0.45);
  --tide: #2f4b5a; --tide-2: #243c48; --line: rgba(30, 34, 38, 0.12); --pale: #c9b79c;
  --serif: "Gilda Display", "Didot", Georgia, serif; --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 56px); --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--shell); color: var(--ink); font: 400 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; }
.serif { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; }
.d1 { font-size: clamp(40px, 5vw, 64px); }
.d2 { font-size: clamp(30px, 3.4vw, 46px); }
.d3 { font-size: clamp(24px, 2.4vw, 32px); }
.pale { color: var(--pale); }
.muted { color: var(--ink-2); }
.caps { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; box-shadow: 0 1px 0 var(--line); transition: background 0.2s, color 0.2s; }
.pill:hover { background: var(--tide); color: #fff; }
.pill.is-tide { background: var(--tide); color: #fff; }
.pill.is-tide:hover { background: var(--tide-2); }
.wrap { width: min(1320px, 100% - 2 * var(--pad)); margin-inline: auto; }
.rule { height: 1px; background: var(--line); }

/* nav */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--pad); color: #fff; }
.nav.is-static { position: static; color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; }
.brand b { display: block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; font-weight: 700; }
.brand small { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a { opacity: 0.9; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; font-size: 14px; font-weight: 600; }
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--shell); display: grid; grid-template-rows: 80px 1fr auto; padding: 0 var(--pad) 32px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; }
.sheet nav { align-self: center; display: grid; gap: 10px; }
.sheet nav a { font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); }
.sheet p { font-size: 14px; opacity: 0.7; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--pad) 56px; isolation: isolate; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 34, 38, 0.25), rgba(30, 34, 38, 0.05) 40%, rgba(30, 34, 38, 0.45)); }
.hero-copy { display: grid; gap: 10px; }
.hero-copy .hero-line { font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.hero-copy .caps { opacity: 0.85; }

/* statement */
.statement { text-align: center; padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 64px); display: grid; gap: 24px; justify-items: center; }
.statement .d1 { max-width: 16ch; }
.statement p { max-width: 62ch; color: var(--ink-2); font-size: 17.5px; }

/* card rows */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 32px 0; }
.card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; isolation: isolate; display: grid; align-items: end; padding: 28px; color: #fff; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover img { transform: scale(1.03); }
.card.has-copy::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 34, 38, 0), rgba(30, 34, 38, 0.65)); }
.card div { display: grid; gap: 4px; }
.card small { font-size: 13px; opacity: 0.85; }
.card .serif { font-size: clamp(26px, 2.6vw, 40px); }

/* our work */
.work { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: clamp(72px, 9vw, 120px) 0; align-items: start; }
.work .d1 { position: sticky; top: 40px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-grid .card { aspect-ratio: 4 / 3; }
.work-grid .card:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.work-grid .card .serif { font-size: 26px; }

/* testimonials */
.testi { padding: clamp(64px, 8vw, 100px) 0; border-block: 1px solid var(--line); }
.testi-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; }
.testi .ghost { position: absolute; left: 0; top: 0; max-width: 10ch; font-size: clamp(32px, 3.4vw, 48px); color: var(--pale); pointer-events: none; }
.testi blockquote { padding: 8px 28px 60px; border-left: 1px solid var(--line); font-size: 17px; display: grid; align-content: space-between; gap: 40px; min-height: 100%; }
.testi blockquote:first-of-type { grid-column: 2; }
.testi cite { font-style: normal; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; font-size: 15px; }
.testi cite svg { width: 40px; height: 26px; }
.testi cite span { display: block; color: var(--ink-3); font-size: 13.5px; }

/* why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding: clamp(72px, 9vw, 120px) 0; align-items: start; }
.why-list { display: grid; gap: 36px; }
.why-list h3 { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.why-list p { color: var(--ink-2); max-width: 54ch; }
.why figure { position: sticky; top: 40px; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; }
.why img { width: 100%; height: 100%; object-fit: cover; }

/* serving block */
.serving { background: var(--sand); border-radius: 28px; padding: clamp(72px, 10vw, 140px) clamp(24px, 6vw, 100px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.serving .d1 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(40px, 5.4vw, 72px); }
.serving ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 16px; }
.serving li::before { content: "•"; margin-right: 10px; color: var(--tide); }

/* footer */
.footer { padding: 40px var(--pad) 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--tide); }

/* inner pages */
.page-head { padding: clamp(48px, 7vw, 100px) 0 clamp(32px, 4vw, 56px); display: grid; gap: 18px; max-width: 70ch; }
.page-head p { color: var(--ink-2); font-size: 17.5px; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 32px 0; }
.svc figure { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; }
.svc img { width: 100%; height: 100%; object-fit: cover; }
.svc-copy { display: grid; gap: 14px; }
.svc-copy p { color: var(--ink-2); }
.svc-copy ul { display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.svc-copy li::before { content: "—"; margin-right: 8px; color: var(--pale); }
.svc.is-flipped figure { order: 2; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: clamp(72px, 9vw, 120px); }
.projects .card { aspect-ratio: 4 / 3; }
.projects .card .serif { font-size: 28px; }
.detail { padding: 24px 0 clamp(72px, 9vw, 120px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.detail div { padding: 20px; background: #fff; border-radius: 14px; box-shadow: 0 1px 0 var(--line); }
.detail b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; }
.detail span { font-size: 13px; color: var(--ink-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-bottom: clamp(72px, 9vw, 120px); }
.prose { display: grid; gap: 16px; }
.prose p { color: var(--ink-2); }
.form { display: grid; gap: 14px; background: #fff; padding: 28px; border-radius: var(--r); box-shadow: 0 1px 0 var(--line); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea { font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--shell); border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; }
.form textarea { min-height: 110px; resize: vertical; }
.form .pill { justify-self: start; margin-top: 6px; }
.form-status { font-size: 14px; color: var(--tide); min-height: 1em; font-weight: 600; }

/* demo note */
.demo-note { position: fixed; left: 12px; bottom: 12px; z-index: 50; padding: 6px 10px; border-radius: 999px; background: rgba(30, 34, 38, 0.6); color: rgba(250, 247, 242, 0.8); font: 400 11px/1 var(--sans); backdrop-filter: blur(6px); }
.demo-note:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.001s !important; } html { scroll-behavior: auto; } }
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3; }
  .work, .why, .serving, .svc, .two { grid-template-columns: 1fr; }
  .work .d1, .why figure { position: static; }
  .svc.is-flipped figure { order: 0; }
  .testi-inner { grid-template-columns: 1fr; }
  .testi .ghost { position: static; margin-bottom: 24px; }
  .testi blockquote:first-of-type { grid-column: auto; }
  .testi blockquote { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .detail { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .serving ul { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
}
