/* Gulf Coast Pool Pros
   Two themes share one structure: "stone" (light, editorial) and "deep" (dark, cinematic).
   html[data-theme] picks one. Every colour comes from a token. */

:root, html[data-theme="stone"] {
  --bg: #f3eee5;
  --bg-2: #e9e2d6;
  --bg-3: #ded5c6;
  --ink: #16201e;
  --ink-2: #4a5552;
  --ink-3: #6d7774;
  --line: rgba(22, 32, 30, .14);
  --accent: #0d5257;
  --accent-2: #13747a;
  --on-accent: #f6f2ea;
  --water: #4fb3b6;
  --invert-bg: #0f1b1c;
  --invert-ink: #efe9df;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --display-wght: 300;
  --display-italic-wght: 300;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 4px;
  color-scheme: light;
}
html[data-theme="deep"] {
  --bg: #061519;
  --bg-2: #0a2127;
  --bg-3: #10303a;
  --ink: #e9f3f1;
  --ink-2: #a5bcba;
  --ink-3: #7d9896;
  --line: rgba(233, 243, 241, .14);
  --accent: #8fe0d6;
  --accent-2: #b8efe8;
  --on-accent: #04161a;
  --water: #5fd0c8;
  --invert-bg: #0a2127;
  --invert-ink: #e9f3f1;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --display-wght: 400;
  --display-italic-wght: 400;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 2px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display, h1, h2, .h2, .h3 {
  font-family: var(--display); font-weight: var(--display-wght);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  letter-spacing: -.025em; line-height: .95; margin: 0; text-wrap: balance;
}
em, .it { font-style: italic; font-weight: var(--display-italic-wght); }
h1 { font-size: clamp(56px, 11.5vw, 210px); }
h2, .h2 { font-size: clamp(42px, 6.4vw, 112px); }
.h3 { font-size: clamp(28px, 2.8vw, 44px); line-height: 1.05; letter-spacing: -.015em; }
.eyebrow {
  font: 600 12px/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.lede { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.num { font: 500 13px/1 var(--body); letter-spacing: .08em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: 100%; padding-inline: clamp(20px, 4.2vw, 72px); }
.section { padding-block: clamp(88px, 12vw, 200px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: 14px; height: var(--h); padding: 0 26px 0 28px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font: 600 15px/1 var(--body); letter-spacing: .01em; border: 0; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate; transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: translateY(101%); transition: transform .55s cubic-bezier(.7,0,.2,1); border-radius: inherit;
}
html[data-theme="deep"] .btn::before { background: var(--accent-2); }
.btn:hover::before { transform: translateY(0); }
html[data-theme="stone"] .btn:hover { color: var(--bg); }
.arr { width: 18px; height: 18px; flex: none; }
.btn .arr { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: var(--bg); }
.btn.small { --h: 44px; padding: 0 20px; font-size: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px; transition: background-size .5s cubic-bezier(.7,0,.2,1);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background .4s, height .4s, color .4s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); height: 68px; box-shadow: 0 1px 0 var(--line); }
.site-header.solid { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
.site-header.on-image:not(.scrolled), html[data-theme="deep"] .site-header.hero-page:not(.scrolled) { color: #f6f2ea; }
.site-header.on-image:not(.scrolled) .btn, html[data-theme="deep"] .site-header.hero-page:not(.scrolled) .btn { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 56px; width: auto; transition: height .4s; }
.site-header.scrolled .logo img { height: 46px; }
@media (max-width: 900px) { .logo img { height: 42px; } }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; position: relative; padding-block: 6px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s, top .4s; }
.menu-btn i:nth-child(1) { top: 17px; } .menu-btn i:nth-child(2) { top: 26px; }
.menu-open .menu-btn i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 110px clamp(20px, 4.2vw, 72px) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.7,0,.2,1); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-header { color: var(--ink) !important; background: transparent; box-shadow: none; }
.mobile-menu nav a { display: block; font: var(--display-wght) clamp(48px, 13vw, 84px)/1.05 var(--display); letter-spacing: -.03em; padding-block: 6px; border-bottom: 1px solid var(--line); }
.mobile-menu .foot { color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Media + water ---------- */
.media { position: relative; overflow: hidden; background: var(--bg-3); }
.media img, .media canvas { width: 100%; height: 100%; object-fit: cover; }
.media canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.media canvas.live { opacity: 1; }
[data-parallax] img { transform: scale(1.12); will-change: transform; }

/* ---------- Hero: stone (editorial) ---------- */
.hero { position: relative; }
html[data-theme="stone"] .hero { padding-top: 132px; }
html[data-theme="stone"] .hero-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; align-items: end; }
html[data-theme="stone"] .hero-head .eyebrow { grid-column: 1 / -1; margin-bottom: clamp(22px, 3vw, 40px); }
html[data-theme="stone"] .hero h1 { grid-column: 1 / -1; }
html[data-theme="stone"] .hero h1 .l2 { display: block; padding-left: 14.5vw; }
html[data-theme="stone"] .hero-side { grid-column: 9 / -1; margin-top: clamp(-150px, -9vw, -60px); padding-bottom: 6px; }
html[data-theme="stone"] .hero-side p { margin: 0 0 22px; color: var(--ink-2); font-size: 18px; max-width: 34ch; }
html[data-theme="stone"] .hero-media { margin-top: clamp(36px, 5vw, 72px); height: min(86vh, 58vw); border-radius: var(--radius); }
html[data-theme="stone"] .hero-cap { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; color: var(--ink-3); font-size: 13px; letter-spacing: .02em; }

/* ---------- Hero: deep (cinematic) ---------- */
html[data-theme="deep"] .hero { height: 100svh; min-height: 640px; color: #eef6f4; }
html[data-theme="deep"] .hero-media { position: absolute; inset: 0; height: 100%; }
html[data-theme="deep"] .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,16,19,.55) 0%, rgba(4,16,19,.05) 28%, rgba(4,16,19,.45) 58%, rgba(4,16,19,.94) 100%); pointer-events: none; }
html[data-theme="deep"] .hero-head { position: absolute; inset: auto 0 0; z-index: 2; padding: 0 clamp(20px, 4.2vw, 72px) clamp(40px, 6vh, 72px); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 2vw; align-items: end; }
html[data-theme="deep"] .hero-head .eyebrow { grid-column: 1 / -1; color: rgba(238,246,244,.78); margin-bottom: 18px; }
html[data-theme="deep"] .hero h1 { grid-column: 1 / 9; font-size: clamp(60px, 9.4vw, 176px); }
html[data-theme="deep"] .hero h1 .l2 { display: block; }
html[data-theme="deep"] .hero-side { grid-column: 9 / -1; justify-self: end; max-width: 380px; }
html[data-theme="deep"] .hero-side p { color: rgba(238,246,244,.82); margin: 0 0 24px; font-size: 17px; }
html[data-theme="deep"] .hero-cap { display: none; }
@media (max-width: 900px) {
  html[data-theme="stone"] .hero-side, html[data-theme="deep"] .hero-side { grid-column: 1 / -1; margin-top: 28px; justify-self: start; }
  html[data-theme="stone"] .hero h1 .l2 { padding-left: 0; }
  html[data-theme="deep"] .hero h1 { grid-column: 1 / -1; }
  html[data-theme="stone"] .hero-media { height: 62vh; }
}

/* Line-by-line headline reveal */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s cubic-bezier(.16,1,.3,1); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .09s; }
.split-line:nth-child(3) > span { transition-delay: .18s; }

/* Generic reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }
.rv-clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s cubic-bezier(.7,0,.2,1); transition-delay: var(--d, 0s); }
.rv-clip.is-in { clip-path: inset(0 0 0 0); }
.rv-clip img { transform: scale(1.18); transition: transform 2.2s cubic-bezier(.16,1,.3,1); }
.rv-clip.is-in img { transform: scale(1); }
[data-parallax].rv-clip.is-in img { transform: scale(1.12); }

/* ---------- Statement with inline images ---------- */
.statement p {
  font: var(--display-wght) clamp(34px, 4.6vw, 80px)/1.08 var(--display); letter-spacing: -.025em;
  margin: 0; max-width: 20ch; text-wrap: balance; font-variation-settings: "opsz" 144;
}
.statement .pill { display: inline-block; vertical-align: -.08em; height: .78em; width: 1.9em; border-radius: 999px; overflow: hidden; margin-inline: .08em; }
.statement .pill img { width: 100%; height: 100%; object-fit: cover; }
.statement .row { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 48px; align-items: end; }
.statement .aside { color: var(--ink-2); font-size: 17px; }
.statement .aside p { font: inherit; max-width: none; margin: 0 0 22px; letter-spacing: 0; }
@media (max-width: 900px) { .statement .row { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 120px); }
.stat { padding: 26px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font: var(--display-wght) clamp(48px, 5.4vw, 92px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.stat span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat { padding-bottom: 26px; } }

/* ---------- Selected work ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(44px, 6vw, 88px); flex-wrap: wrap; }
.sec-head .eyebrow { margin-bottom: 22px; }
.work-feature { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 8vw, 120px); }
.card { display: block; position: relative; }
.card .media { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.card .media img { transition: transform 1.4s cubic-bezier(.16,1,.3,1), filter .8s; }
.card:hover .media img { transform: scale(1.045); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.card .meta .h3 { font-size: clamp(26px, 2.3vw, 38px); }
.card .meta .where { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.card .tagline { color: var(--ink-2); font-size: 15px; margin: 8px 0 0; max-width: 44ch; }
.work-feature .card:nth-child(1) { grid-column: 1 / 8; }
.work-feature .card:nth-child(1) .media { aspect-ratio: 16 / 11; }
.work-feature .card:nth-child(2) { grid-column: 9 / -1; margin-top: 22vw; }
.work-feature .card:nth-child(3) { grid-column: 2 / 6; }
.work-feature .card:nth-child(4) { grid-column: 7 / -1; margin-top: 8vw; }
.work-feature .card:nth-child(4) .media { aspect-ratio: 16 / 12; }
@media (max-width: 760px) { .work-feature .card { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

/* Cursor label for project cards */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; transform: scale(0); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.cursor.on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 56px; animation: marquee 48s linear infinite; font: var(--display-wght) clamp(32px, 3.6vw, 60px)/1 var(--display); letter-spacing: -.02em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--water); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process (sticky) ---------- */
.process { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 32px); }
.process .left { grid-column: 1 / 6; position: sticky; top: 110px; align-self: start; }
.process .left .media { aspect-ratio: 4/5; margin-top: 44px; border-radius: var(--radius); max-width: 460px; }
.process .left .media img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.process .left .media img.on { opacity: 1; }
.process ol { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; }
.process li { border-top: 1px solid var(--line); padding: 34px 0 64px; display: grid; grid-template-columns: 70px 1fr; gap: 10px 20px; }
.process li .num { padding-top: 12px; }
.process li h3 { font: var(--display-wght) clamp(32px, 3.2vw, 52px)/1.02 var(--display); letter-spacing: -.02em; margin: 0 0 14px; }
.process li p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.process li .dur { grid-column: 2; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .process .left { grid-column: 1 / -1; position: static; margin-bottom: 40px; } .process .left .media { display: none; } .process ol { grid-column: 1 / -1; } .process li { grid-template-columns: 48px 1fr; } }

/* ---------- Finishes ---------- */
.finishes { background: var(--invert-bg); color: var(--invert-ink); }
.finishes .eyebrow { color: color-mix(in srgb, var(--invert-ink) 70%, transparent); }
.finishes .sub { color: color-mix(in srgb, var(--invert-ink) 72%, transparent); max-width: 44ch; font-size: 17px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(48px, 6vw, 80px); }
.swatch { cursor: default; }
.swatch .w { aspect-ratio: 3/4; border-radius: var(--radius); position: relative; overflow: hidden; background: var(--c); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.swatch .w::before { content: ""; position: absolute; inset: -40%; background:
  radial-gradient(closest-side, rgba(255,255,255,.55), transparent 70%) 20% 30% / 60% 40% no-repeat,
  radial-gradient(closest-side, rgba(255,255,255,.35), transparent 70%) 70% 65% / 50% 30% no-repeat,
  radial-gradient(closest-side, rgba(255,255,255,.3), transparent 70%) 40% 80% / 40% 22% no-repeat;
  mix-blend-mode: soft-light; animation: caustic 9s ease-in-out infinite alternate; }
.swatch .w::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%, rgba(0,0,0,.25)); }
.swatch:hover .w { transform: translateY(-8px); }
.swatch b { display: block; margin-top: 14px; font: var(--display-wght) 24px/1.1 var(--display); letter-spacing: -.01em; }
.swatch span { font-size: 13px; color: color-mix(in srgb, var(--invert-ink) 65%, transparent); }
@keyframes caustic { 0% { transform: translate(0,0) rotate(0); } 100% { transform: translate(6%, -4%) rotate(8deg); } }
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Quote ---------- */
.quote { position: relative; color: #f3f7f6; min-height: 92vh; display: grid; align-items: center; overflow: hidden; }
.quote .media { position: absolute; inset: 0; }
.quote .media::after { content: ""; position: absolute; inset: 0; background: rgba(3, 22, 30, .42); }
.quote blockquote { position: relative; z-index: 2; margin: 0; max-width: 1100px; }
.quote blockquote p { font: var(--display-wght) clamp(34px, 4.4vw, 74px)/1.08 var(--display); letter-spacing: -.02em; margin: 0 0 36px; text-wrap: balance; }
.quote cite { font-style: normal; font-size: 15px; opacity: .85; display: flex; gap: 14px; align-items: center; }
.quote cite::before { content: ""; width: 40px; height: 1px; background: currentColor; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(56px, 10vw, 180px); }
.cta p { color: var(--ink-2); margin: 32px auto 40px; max-width: 40ch; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); padding-top: clamp(64px, 8vw, 120px); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 72px; }
.foot-grid h4 { margin: 0 0 16px; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.foot-grid a, .foot-grid p { display: block; margin: 0 0 8px; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); }
.foot-word { font: var(--display-wght) clamp(120px, 27vw, 480px)/.78 var(--display); letter-spacing: -.055em; margin: 0; overflow: hidden; padding-bottom: .04em; color: var(--ink); font-variation-settings: "opsz" 144; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-top: clamp(150px, 18vw, 240px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-head .eyebrow { margin-bottom: 28px; }
.page-head .row { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }

/* ---------- Work page ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.filters button { height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 14px; font-weight: 500; transition: background .3s, color .3s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.filters button sup { font-size: 10px; margin-left: 4px; opacity: .6; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 6vw, 96px); }
.work-grid .card { grid-column: span 6; transition: opacity .5s; }
.work-grid .card:nth-child(4n+2), .work-grid .card:nth-child(4n+3) { grid-column: span 6; }
.work-grid .card:nth-child(3n+1) .media { aspect-ratio: 16 / 11; }
.work-grid .card:nth-child(even) { margin-top: 10vw; }
.work-grid .card.hidden { display: none; }
@media (max-width: 760px) { .work-grid .card { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

/* ---------- Project page ---------- */
.p-hero { height: 100svh; min-height: 600px; position: relative; color: #f3f7f6; }
.p-hero .media { position: absolute; inset: 0; }
.p-hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 55%, rgba(0,0,0,.6)); }
.p-hero .inner { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: clamp(36px, 6vh, 64px); }
.p-hero .eyebrow { color: rgba(243,247,246,.85); margin-bottom: 18px; }
.p-hero h1 { font-size: clamp(64px, 10vw, 190px); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.specs div { padding: 22px 20px 22px 0; }
.specs div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.specs dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.specs dd { margin: 0; font: var(--display-wght) clamp(22px, 1.8vw, 30px)/1.15 var(--display); letter-spacing: -.01em; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr 1fr; } .specs div:nth-child(3) { border-left: 0; padding-left: 0; } }
.p-story { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 2vw; }
.p-story .lede-big { grid-column: 1 / 8; font: var(--display-wght) clamp(32px, 3.6vw, 60px)/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.p-story .body { grid-column: 9 / -1; color: var(--ink-2); font-size: 18px; align-self: end; }
@media (max-width: 900px) { .p-story .lede-big, .p-story .body { grid-column: 1 / -1; } .p-story .body { margin-top: 28px; } }
.p-gallery { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: clamp(16px, 2vw, 32px); }
.p-gallery .media { border-radius: var(--radius); }
.p-gallery .g1 { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.p-gallery .g2 { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.p-gallery .g3 { grid-column: 7 / -1; aspect-ratio: 4 / 3.4; align-self: end; }
@media (max-width: 760px) { .p-gallery .g1, .p-gallery .g2, .p-gallery .g3 { grid-column: 1 / -1; aspect-ratio: 4/3; } }
.next { display: block; position: relative; overflow: hidden; color: #f3f7f6; height: 70vh; min-height: 420px; }
.next .media { position: absolute; inset: 0; }
.next .media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); transition: background .8s; }
.next:hover .media::after { background: rgba(0,0,0,.22); }
.next .media img { transition: transform 1.6s cubic-bezier(.16,1,.3,1); }
.next:hover .media img { transform: scale(1.05); }
.next .inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 20px; }
.next .eyebrow { color: rgba(243,247,246,.85); }
.next h2 { font-size: clamp(56px, 9vw, 160px); }

/* ---------- Process page ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.timeline > div { padding: 28px 24px 0 0; position: relative; }
.timeline > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.timeline .bar { height: 6px; border-radius: 3px; background: var(--bg-3); margin: 18px 0 14px; overflow: hidden; }
.timeline .bar i { display: block; height: 100%; width: var(--w); background: var(--water); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.is-in .timeline .bar i, .timeline.is-in .bar i { transform: scaleX(1); }
.timeline b { font: var(--display-wght) 30px/1.05 var(--display); display: block; }
.timeline span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline > div:nth-child(3) { border-left: 0; padding-left: 0; } .timeline > div { padding-bottom: 24px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px 0; font: var(--display-wght) clamp(24px, 2.2vw, 34px)/1.15 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; transition: transform .5s cubic-bezier(.16,1,.3,1), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); }
.faq summary i::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .5s; }
.faq details[open] summary i { transform: rotate(180deg); background: var(--ink); color: var(--bg); }
.faq details[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.faq details p { margin: -8px 0 30px; color: var(--ink-2); max-width: 70ch; font-size: 17px; }
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 120px); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Consultation ---------- */
.consult { display: grid; grid-template-columns: 5fr 7fr; min-height: 100svh; }
.consult .side { position: sticky; top: 0; height: 100svh; color: #f3f7f6; }
.consult .side .media { position: absolute; inset: 0; }
.consult .side .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.1) 40%, rgba(2,18,22,.8)); }
.consult .side .inner { position: absolute; inset: auto 0 0; z-index: 2; padding: 0 clamp(24px, 3.6vw, 56px) clamp(32px, 5vh, 56px); }
.consult .side blockquote { margin: 0 0 18px; font: var(--display-wght) clamp(26px, 2.3vw, 38px)/1.15 var(--display); letter-spacing: -.01em; }
.consult .side cite { font-style: normal; font-size: 14px; opacity: .85; }
.consult .main { padding: clamp(120px, 14vh, 160px) clamp(24px, 5vw, 96px) 80px; max-width: 920px; }
.consult h1 { font-size: clamp(52px, 6.6vw, 112px); margin-bottom: 22px; }
.consult .intro { color: var(--ink-2); font-size: 18px; margin: 0 0 52px; max-width: 46ch; }
@media (max-width: 960px) { .consult { grid-template-columns: 1fr; } .consult .side { display: none; } }

.steps-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 44px; }
.steps-bar div { font-size: 13px; color: var(--ink-3); }
.steps-bar div::before { content: ""; display: block; height: 2px; background: var(--line); margin-bottom: 12px; border-radius: 2px; transition: background .5s; }
.steps-bar div.on { color: var(--ink); }
.steps-bar div.on::before { background: var(--accent); }
.steps-bar div b { font-weight: 600; margin-right: 6px; }

html.js .fstep { display: none; }
.fstep + .fstep { margin-top: 56px; }
html.js .fstep + .fstep { margin-top: 0; }
html.js .fstep.on { display: block; animation: fadeUp .7s cubic-bezier(.16,1,.3,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
.fstep h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.05; margin-bottom: 32px; }
fieldset { border: 0; padding: 0; margin: 0 0 36px; }
legend, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; padding: 0; }
.label small, legend small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; transition: background .25s, color .25s, box-shadow .25s; }
.choices.cards span { display: block; height: auto; padding: 0; border-radius: var(--radius); overflow: hidden; }
.choices.cards span img { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.choices.cards span em { display: block; font-style: normal; padding: 12px 14px 14px; font-weight: 500; }
.choices label:hover span { box-shadow: inset 0 0 0 1px var(--ink-3); }
.choices label:hover span img { transform: scale(1.04); }
.choices input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.choices.cards input:checked + span { box-shadow: 0 0 0 2px var(--accent); background: var(--bg-2); color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field { margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 400 20px/1.4 var(--body); padding: 10px 0 12px; border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .7; }
.err { display: none; color: #b3261e; font-size: 13px; margin-top: 8px; }
html[data-theme="deep"] .err { color: #ffb4ab; }
.invalid .err { display: block; }
.invalid input { border-bottom-color: #b3261e; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-nav .back { background: none; border: 0; cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 8px 0; }
.form-nav .back[hidden] { display: inline-block; visibility: hidden; }
.form-note { color: var(--ink-3); font-size: 13px; margin-top: 18px; }
.send-fail { display: none; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-2); font-size: 15px; }
.send-fail.on { display: block; }

.thanks { display: none; }
.thanks.on { display: block; animation: fadeUp .9s cubic-bezier(.16,1,.3,1); }
.thanks .ring { width: 88px; height: 88px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 36px; }
.thanks .ring svg { width: 36px; height: 36px; }
.thanks .ring path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1s .3s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks h2 { font-size: clamp(44px, 5vw, 84px); margin-bottom: 24px; }
.thanks .next-steps { list-style: none; padding: 0; margin: 40px 0; border-top: 1px solid var(--line); }
.thanks .next-steps li { display: grid; grid-template-columns: 56px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.thanks .next-steps li b { display: block; font-weight: 600; }
.thanks .next-steps li span { color: var(--ink-2); font-size: 15px; }
.summary { background: var(--bg-2); border-radius: var(--radius); padding: 22px 24px; font-size: 15px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin-bottom: 36px; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv, .rv-clip, .split-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-parallax] img, .rv-clip img { transform: none !important; }
}

.castle-carry { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin: -12px 0 32px; padding: 14px 18px; border-radius: 6px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.castle-carry span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.castle-carry[hidden] { display: none; }

/* ---------- Book a design call ---------- */
.book .castle-carry { display: block; margin: 0 0 40px; padding: 18px 20px 20px; }
.carry-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.carry-head span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.carry-head .link { font-size: 14px; }
.carry-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.carry-list li { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.carry-list button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 17px; line-height: 1; }
.carry-list button:hover { background: var(--bg-2); color: var(--ink); }
.carry-empty { margin: 0; color: var(--ink-2); font-size: 15px; }
.slot legend small { font-weight: 400; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.days label { cursor: pointer; position: relative; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days span { display: grid; justify-items: center; gap: 2px; padding: 12px 4px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s, box-shadow .25s; }
.days span small { font-size: 12px; color: var(--ink-3); }
.days span b { font: 400 30px/1 var(--display); }
.days label:hover span { box-shadow: inset 0 0 0 1px var(--ink-3); }
.days input:checked + span { background: var(--accent); color: var(--on-accent, #041013); box-shadow: none; }
.days input:checked + span small { color: inherit; opacity: .75; }
.days input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.invalid .days span, .invalid .times span { box-shadow: inset 0 0 0 1px #ffb4ab; }
.pick-first { margin: 0; color: var(--ink-3); font-size: 15px; }
.call-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: c; }
.call-plan li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; counter-increment: c; }
.call-plan li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font: 600 12px/1 var(--body); letter-spacing: .1em; padding-top: 8px; color: var(--accent); }
.call-plan b { font: 400 clamp(24px, 2vw, 32px)/1.1 var(--display); }
.call-plan span { font-size: 14px; opacity: .85; }
.book .form-nav .back { text-decoration: none; }
.t-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.legal { margin-top: 10px; font-size: 12px; opacity: .7; }
