/* Melanin Media homepage
   Structure: fonts → tokens → base → components → sections → motion states → reduced motion.
   Motion layouts (pins, rail, stacked deck) only apply when JS adds .motion to <html>, so the page is
   complete and readable without JavaScript or with reduced motion. */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: "Archivo SemiExpanded"; src: url("../fonts/archivo-semiexpanded-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks (from tools/fonts/build-fonts.py output vs Arial) so the swap does not shift layout. */
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 600; size-adjust: 109.3%; ascent-override: 80.3%; descent-override: 19.2%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 108.7%; ascent-override: 89.1%; descent-override: 22.2%; line-gap-override: 0%; }

/* ---------- Lenis 1.3.26 recommended CSS (from assets/vendor/lenis.css) ---------- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* ---------- Tokens ---------- */
:root,
[data-theme="light"] .zone-dark {
  --bg: #090807;
  --bg-soft: #12100e;
  --surface: rgba(255, 255, 255, .055);
  --surface-2: rgba(255, 255, 255, .085);
  --card: #16120f;
  --text: #f7f2eb;
  --muted: #b8afa4;
  --line: rgba(255, 255, 255, .11);
  --accent-ink: var(--accent);
  --ring: #edc08e;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --ig-a: #b86f36;
  --ig-b: #f5e0c7;
  color-scheme: dark;
}
:root {
  --espresso: #3b1e12;
  --brown: #704024;
  --caramel: #b86f36;
  --amber: #d89a55;
  --sand: #edc08e;
  --cream: #f5e0c7;
  --accent: #d79b58;
  --brand-gradient: linear-gradient(90deg, var(--espresso), var(--brown), var(--caramel), var(--amber), var(--sand), var(--cream));
  --display: "Archivo SemiExpanded", "Archivo Fallback", "Arial", sans-serif;
  --body: "Inter", "Inter Fallback", "Helvetica Neue", Arial, sans-serif;
  --radius: 26px;
  --gutter: 24px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* device geometry, from assets/img/work/scenes.json */
  --laptop-aspect: 1.40396;
  --phone-aspect: .47671;
}
[data-theme="light"] {
  --bg: #f7f3ed;
  --bg-soft: #efe7dc;
  --surface: rgba(62, 33, 18, .055);
  --surface-2: rgba(62, 33, 18, .09);
  --card: #fffaf3;
  --text: #21140e;
  --muted: #6f6259;
  --line: rgba(49, 26, 14, .13);
  --accent-ink: var(--brown);
  --ring: #704024;
  --shadow: 0 24px 70px rgba(82, 55, 37, .12);
  --ig-a: #3b1e12;
  --ig-b: #b86f36;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ig-a { stop-color: var(--ig-a); }
.ig-b { stop-color: var(--ig-b); }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: var(--cream); color: #160d08; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.shell { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--warmth, currentColor); opacity: .9; }
.accent { color: var(--accent); }

.section-title, .hero__title, h3 { font-family: var(--display); font-weight: 600; }
.section-title { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.025em; margin: 16px 0 20px; text-wrap: balance; }
.section-title:focus { outline: none; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 640px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #160d08; border-color: transparent; background: linear-gradient(100deg, var(--caramel), var(--sand) 55%, var(--cream)); }
.btn--primary:hover { box-shadow: 0 10px 30px rgba(216, 154, 85, .28); }
.btn--ghost { background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: rgba(216, 154, 85, .55); }

/* ---------- Scroll progress (top) ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; background: rgba(255, 255, 255, .06); overflow: hidden; pointer-events: none; }
.scroll-progress__fill { position: absolute; inset: 0; transform: translateX(-100%); }
.scroll-progress__fill i { position: absolute; inset: 0; background: var(--brand-gradient); transform: translateX(100%); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.site-header.is-scrolled[data-zone="dark"] { background: rgba(9, 8, 7, .72); border-bottom-color: rgba(255, 255, 255, .08); }
.site-header.is-scrolled[data-zone="theme"] { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: var(--line); }
.site-header[data-zone="dark"] { color: #f7f2eb; --line: rgba(255, 255, 255, .14); --surface: rgba(255, 255, 255, .06); --ring: #edc08e; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; border-radius: 6px; }
.brand__logo img { width: 200px; height: auto; }
/* Logo variant follows the surface under it: dark zone or the light theme. */
.brand__logo--light { display: none; }
[data-theme="light"] .site-header[data-zone="theme"] .brand__logo--dark,
[data-theme="light"] .site-footer .brand__logo--dark { display: none; }
[data-theme="light"] .site-header[data-zone="theme"] .brand__logo--light,
[data-theme="light"] .site-footer .brand__logo--light { display: block; }

.site-nav__links { display: flex; gap: 6px; }
.site-nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font: 500 15px/1 var(--body); text-decoration: none; opacity: .78; transition: opacity .2s, background-color .2s;
}
.site-nav__links a:hover { opacity: 1; background: var(--surface); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
.theme-toggle--labelled { width: auto; padding: 0 18px 0 14px; border-radius: 999px; display: inline-flex; gap: 10px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; place-items: center; }
.menu-toggle__bars { display: grid; gap: 6px; width: 18px; }
.menu-toggle__bars i { display: block; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  height: 100dvh; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg); color: var(--text); overflow-y: auto;
}
.mobile-menu__links a {
  display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line);
  font: 600 clamp(28px, 8vw, 40px)/1 var(--display); letter-spacing: -.02em; text-decoration: none;
}
.mobile-menu__foot { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 32px; }
.menu-open .site-header { color: var(--text); background: var(--bg); }

@media (max-width: 899px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 599px) {
  :root { --gutter: 16px; --nav-h: 68px; }
  .site-header__cta { display: none; }
  .brand__logo img { width: 168px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; background: #090807; color: var(--text); }
.hero__stage { position: relative; height: 100%; overflow: hidden; perspective: 1400px; isolation: isolate; }
.hero__media, .hero__poster, .hero__canvas { position: absolute; inset: 0; }
.hero__poster img, .hero__canvas { width: 100%; height: 100%; }
.hero__poster img { object-fit: cover; object-position: 60% 50%; }
.hero__canvas { opacity: 0; transition: opacity .4s; }
.hero__canvas.is-ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Sits under the mark, so it only darkens the video behind the copy. */
  background:
    linear-gradient(90deg, rgba(9, 8, 7, .92) 0%, rgba(9, 8, 7, .86) 34%, rgba(9, 8, 7, .5) 50%, rgba(9, 8, 7, 0) 68%),
    linear-gradient(0deg, rgba(9, 8, 7, .78) 0%, rgba(9, 8, 7, 0) 34%);
}
.hero__mark {
  position: absolute; z-index: 2; right: 6vw; top: 50%;
  width: min(40vw, 600px); aspect-ratio: 1147 / 754; translate: 0 -50%;
}
.hero__mark { perspective: 1200px; }
.hero__mark-tilt { position: relative; width: 100%; height: 100%; }
.hero__mark-img { position: relative; width: 100%; height: 100%; }
/* Glow box is 54/110/53/110 px outside the 1147x754 mark box (assets/img/hero/layers.json). */
.hero__glow { position: absolute; left: -4.71%; top: -14.59%; width: 109.33%; height: 129.18%; max-width: none; }
.hero__fg { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; }
.hero__fg img { width: 100%; height: 100%; object-fit: cover; }

.hero__layout { position: relative; z-index: 4; height: 100%; display: flex; align-items: center; padding-top: var(--nav-h); }
.hero__copy { width: min(640px, 56vw); }
.hero__title { font-size: clamp(50px, 7vw, 104px); line-height: .98; letter-spacing: -.035em; margin: 22px 0 26px; }
.hero__lead { max-width: 520px; color: #e2d9ce; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 42px; font-size: 13px; color: #ddd4c9; }
.hero__meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.hero__badge { position: absolute; right: var(--gutter); bottom: 7svh; z-index: 4; }
.hero__badge-inner {
  padding: 14px 18px; border-radius: 18px; font-size: 13px; color: #cfc6bb; line-height: 1.45;
  background: rgba(9, 8, 7, .84); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hero__badge-inner strong { display: block; color: var(--text); font-size: 14px; }
.hero__progress { position: absolute; z-index: 4; right: 22px; top: 32%; height: 36%; width: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.hero__progress i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--espresso), var(--caramel), var(--cream)); transform-origin: top; transform: scaleY(0); }

/* Narrower landscape screens: keep the copy clear of the mark. */
@media (max-width: 1180px) and (min-aspect-ratio: 1/1) {
  .hero__copy { width: min(520px, 50vw); }
  .hero__mark { width: 36vw; right: 3.5vw; }
}
/* Portrait screens (phones, portrait tablets): mark above, copy below. */
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .hero__mark { right: auto; left: 50%; top: calc(var(--nav-h) + 6svh); width: min(64vw, 380px); translate: -50% 0; }
  .hero__scrim { background: linear-gradient(0deg, rgba(9, 8, 7, .95) 0%, rgba(9, 8, 7, .88) 48%, rgba(9, 8, 7, .55) 64%, rgba(9, 8, 7, .2) 80%, rgba(9, 8, 7, .4) 100%); }
  .hero__layout { align-items: flex-end; padding-bottom: 34px; }
  .hero__copy { width: min(100%, 640px); }
  .hero__badge { display: none; }
}
@media (max-width: 767px) {
  .hero__title { font-size: clamp(44px, 13.4vw, 64px); margin: 16px 0 18px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { margin-top: 24px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 24px; font-size: 12px; }
  .hero__progress { right: 8px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hero__meta { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; background: #090807; color: var(--muted);
  border-block: 1px solid var(--line); padding: 20px 0; white-space: nowrap;
}
.marquee__track { display: flex; width: max-content; }
.marquee__group { flex: none; padding-right: 0; font: 500 14px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.marquee__group b { color: var(--text); font-weight: 600; }

/* ---------- Section rhythm ---------- */
.services, .approach, .about, .contact { background: var(--bg); color: var(--text); }
.work { --warmth: var(--brown); }
.services { --warmth: var(--caramel); }
.approach { --warmth: var(--amber); }
.about { --warmth: var(--sand); }
.contact { --warmth: var(--cream); }
[data-theme="light"] :is(.services, .approach, .about, .contact) { --warmth: var(--accent-ink); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head .lead { max-width: 520px; font-size: 18px; }

/* ---------- Selected Work ---------- */
.work { position: relative; background: #090807; color: var(--text); }
.work__head { padding: 140px 0 72px; }
.work__rail { position: relative; overflow: hidden; }
.work__track { display: flex; flex-direction: column; }

.scene { position: relative; overflow: hidden; isolation: isolate; background: #090807; }
.scene__bg, .scene__shade { position: absolute; z-index: 0; }
.scene__bg { inset: -4% -8%; }
.scene__bg img, .scene__bg picture { width: 100%; height: 100%; }
.scene__bg img { object-fit: cover; }
.scene__shade {
  inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 45%, transparent 35%, rgba(9, 8, 7, .55) 100%),
    linear-gradient(90deg, rgba(9, 8, 7, .8) 0%, rgba(9, 8, 7, .38) 38%, rgba(9, 8, 7, 0) 60%),
    linear-gradient(0deg, rgba(9, 8, 7, .72) 0%, rgba(9, 8, 7, 0) 40%);
}
.scene__devices { position: absolute; z-index: 2; }
.device { position: relative; }
.device__screen { position: absolute; overflow: hidden; background: #000; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device__frame { position: relative; width: 100%; pointer-events: none; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }
.laptop { aspect-ratio: var(--laptop-aspect); }
.laptop .device__screen { left: 7.687%; top: 3.168%; width: 84.626%; height: 76.931%; border-radius: 3px; }
.phone { position: absolute; aspect-ratio: var(--phone-aspect); }
.phone .device__screen { left: 5.863%; top: 2.485%; width: 89.251%; height: 95.497%; border-radius: 13% / 6.2%; }

.frag { position: absolute; z-index: 3; }
.frag__card {
  padding: 7px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.frag__card img { width: 100%; border-radius: 9px; }
.scene__prop { position: absolute; z-index: 4; pointer-events: none; }
.scene__prop img { width: 100%; }

.scene__info {
  position: relative; z-index: 5; padding: 28px 28px 24px; border-radius: 24px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20, 16, 13, .86), rgba(9, 8, 7, .78));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.scene__info h3 { font-size: clamp(28px, 2.9vw, 44px); line-height: 1.04; letter-spacing: -.02em; margin: 14px 0 12px; }
.scene__info > p:not(.eyebrow) { color: #cdc4b9; font-size: 16px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 18px; }
.tags li { font: 500 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 8px 11px; border-radius: 999px; color: #cdc4b9; }
.visit { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 15px/1 var(--body); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s, color .2s; }
.visit:hover { color: var(--sand); border-color: var(--sand); }

/* Ocean Wealth uses the client's own navy and gold */
.scene--ocean-wealth { background: #071426; }
.scene--ocean-wealth .scene__shade {
  background:
    radial-gradient(120% 90% at 70% 45%, transparent 35%, rgba(7, 20, 38, .6) 100%),
    linear-gradient(90deg, rgba(7, 20, 38, .84) 0%, rgba(7, 20, 38, .4) 38%, rgba(7, 20, 38, 0) 60%),
    linear-gradient(0deg, rgba(7, 20, 38, .76) 0%, rgba(7, 20, 38, 0) 40%);
}
.scene--ocean-wealth .scene__info { background: linear-gradient(160deg, rgba(10, 26, 48, .9), rgba(7, 20, 38, .84)); border-color: rgba(184, 148, 85, .34); }
.scene--ocean-wealth .eyebrow { color: #d4b47a; --warmth: #b89455; }
.scene--ocean-wealth .tags li { border-color: rgba(184, 148, 85, .45); color: #e0cfac; }

.rail-progress { display: none; }

/* Stacked scenes (no JS, phones, reduced motion): each scene flows vertically. */
.scene { padding: 104px var(--gutter) 48px; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
.scene + .scene { border-top: 1px solid rgba(255, 255, 255, .06); }
.scene__bg { inset: 0; }
.scene__devices { position: relative; width: min(84%, 720px); margin: 0 0 64px; }
.phone { right: -14%; bottom: -16%; width: 25%; }
.frag { display: none; }
.scene__prop { width: min(26vw, 200px); right: -7vw; top: 76px; }
.scene__info { width: 100%; max-width: 560px; }
@media (max-width: 767px) {
  .scene__shade { background: linear-gradient(0deg, rgba(9, 8, 7, .94) 0%, rgba(9, 8, 7, .58) 46%, rgba(9, 8, 7, .18) 100%); }
  .scene--ocean-wealth .scene__shade { background: linear-gradient(0deg, rgba(7, 20, 38, .95) 0%, rgba(7, 20, 38, .6) 46%, rgba(7, 20, 38, .2) 100%); }
  .scene__info { padding: 22px; }
}

/* Cinematic scene layout (tablet and up, with or without motion). Positions use container units so a
   scene composes the same at any size. */
@media (min-width: 768px) {
  .scene { container-type: size; padding: 0; min-height: 0; height: 100svh; display: block; }
  .scene__bg { inset: -4% -8%; }
  .scene__devices { position: absolute; margin: 0; right: 7cqw; top: 50%; width: min(50cqw, 62cqh * 1.404); translate: 0 -50%; }
  .phone { left: -9%; right: auto; bottom: -14%; width: 19%; }
  .frag { display: block; }
  .frag--a { left: 31cqw; top: 12cqh; width: var(--fa-w, 22cqw); }
  .frag--b { right: 10cqw; bottom: 13cqh; width: var(--fb-w, 14cqw); }
  .frag--c { right: 4.5cqw; top: 9cqh; width: var(--fc-w, 13cqw); }
  .frag--a .frag__card { rotate: -3deg; }
  .frag--b .frag__card { rotate: 2.5deg; }
  .frag--c .frag__card { rotate: 4deg; }
  .scene__prop { top: auto; right: var(--prop-right, -3cqw); bottom: var(--prop-bottom, -9cqh); width: var(--prop-w, 14cqw); }
  .scene__prop img { rotate: var(--prop-rot, 0deg); }
  .scene__info { position: absolute; left: 5cqw; bottom: 10cqh; width: min(440px, 34cqw); }
  .scene--homes-in-gh { --fa-w: 23cqw; --fb-w: 15cqw; --fc-w: 14cqw; --prop-w: 21cqw; --prop-rot: -6deg; }
  .scene--ascential { --fa-w: 18cqw; --fb-w: 15cqw; --fc-w: 11cqw; --prop-w: 11cqw; --prop-rot: 16deg; }
  .scene--rock-da-house { --fa-w: 20cqw; --fb-w: 13cqw; --fc-w: 13cqw; --prop-w: 14cqw; --prop-rot: -14deg; }
  .scene--ocean-wealth { --fa-w: 23cqw; --fb-w: 12cqw; --fc-w: 14cqw; --prop-w: 16cqw; --prop-rot: -14deg; --prop-right: 0cqw; --prop-bottom: -3cqh; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .scene__info { width: min(380px, 40cqw); padding: 22px; }
  .scene__info > p:not(.eyebrow) { font-size: 15px; }
  .frag--a { left: 27cqw; }
}
@media (min-width: 768px) and (max-height: 720px) {
  .scene__info { bottom: 7cqh; }
  .scene__info > p:not(.eyebrow) { display: none; }
}

/* ---------- Capabilities ---------- */
.services { padding: 140px 0 120px; }
.services__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.services__intro .lead { max-width: 460px; }
.deck { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: 24px; border: 1px solid var(--line); background: var(--card); min-height: 260px; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; background: var(--brand-gradient); opacity: .7; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 28px; }
.card__num { font: 600 14px/1 var(--body); letter-spacing: .12em; color: var(--accent-ink); }
.card__icon { width: 40px; height: 40px; fill: none; stroke: url(#icon-grad); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: 16px; }
.card__shade { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }
.deck-progress { display: none; align-items: center; gap: 16px; margin-top: 40px; font: 500 13px/1 var(--body); letter-spacing: .08em; color: var(--muted); }
.deck-progress b, .rail-progress b { font-weight: 600; color: var(--text); }
.deck-progress__bar, .rail-progress__bar { position: relative; width: 160px; height: 2px; border-radius: 2px; overflow: hidden; background: var(--line); }
.deck-progress__bar i, .rail-progress__bar i { position: absolute; inset: 0; background: var(--brand-gradient); transform-origin: left; transform: scaleX(0); }

@media (max-width: 1024px) { .services__inner { gap: 48px; } }
@media (max-width: 899px) { .services__inner { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .deck { grid-template-columns: 1fr; } .services { padding: 104px 0 88px; } }

/* ---------- How We Work ---------- */
.approach { padding: 120px 0; }
.approach__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.process { position: relative; padding-left: 34px; }
.process__track { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.process__track i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--espresso), var(--brown), var(--caramel), var(--amber), var(--sand), var(--cream)); transform-origin: top; transform: scaleY(1); }
.process__steps { display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 22px 24px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
  transition: opacity .45s var(--ease-out), background-color .45s, border-color .45s;
}
.step__num { font: 600 14px/1.6 var(--body); letter-spacing: .12em; color: var(--accent-ink); }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
@media (max-width: 899px) { .approach__inner { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Point of View ---------- */
.about { padding: 120px 0; }
.statement {
  border: 1px solid var(--line); border-radius: 34px; padding: clamp(32px, 6vw, 80px);
  background: radial-gradient(circle at 90% 18%, rgba(216, 154, 85, .16), transparent 34%), var(--surface);
}
.statement__eyebrow { margin: 0; }
.statement__eyebrow:focus { outline: none; }
.statement__quote { margin: 26px 0 0; font: 600 clamp(32px, 5vw, 70px)/1.06 var(--display); letter-spacing: -.03em; max-width: 1040px; text-wrap: balance; }
.statement__support { margin-top: 30px; }
[data-theme="light"] .statement__quote .accent { color: var(--brown); }

/* ---------- Contact ---------- */
.contact { padding: 120px 0 140px; }
.contact__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact__ideal { margin-top: 34px; color: var(--muted); font-size: 15px; }
.contact__ideal strong { color: var(--text); }
.form { display: grid; gap: 18px; padding: 28px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font: 600 12px/1.3 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.field__optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--text); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent); }
[data-theme="light"] .field :is(input, select, textarea):focus-visible { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(112, 64, 36, .25); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field [aria-invalid="true"] { border-color: #e0806a; }
.field__error { min-height: 0; font-size: 14px; color: #f0a08b; }
.field__error:empty { display: none; }
[data-theme="light"] .field__error { color: #a3361f; }
[data-theme="light"] .field [aria-invalid="true"] { border-color: #a3361f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__submit[aria-busy="true"] { opacity: .7; cursor: progress; }
.form__status { font-size: 15px; color: var(--muted); }
.form__status.is-error { color: #f0a08b; }
[data-theme="light"] .form__status.is-error { color: #a3361f; }
.form-success { padding: 36px 32px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); }
.form-success h3 { font-size: 28px; margin-bottom: 10px; }
.form-success p { color: var(--muted); }
.form-success:focus { outline: none; }
@media (max-width: 899px) { .contact__inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } .form { padding: 20px; } .contact { padding: 96px 0 104px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.site-footer__brand { display: block; border-radius: 6px; }
.site-footer__meta { display: grid; gap: 6px; text-align: right; }
.site-footer__meta a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--text); text-underline-offset: 3px; }
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { text-align: left; }
}

@media (max-width: 899px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .work__head { padding: 104px 0 56px; }
}

/* =====================================================================
   Motion states. JS adds .motion to <html> when GSAP is available and the
   visitor has not asked for reduced motion. Layout below only applies then.
   ===================================================================== */

/* Hero copy is hidden until it assembles; a CSS fallback reveals it if scripts never arrive. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title, .js [data-hero-in] { opacity: 0; animation: mm-reveal 0s linear 2.5s forwards; }
  .js.hero-ready .hero__title, .js.hero-ready [data-hero-in] { opacity: 1; animation: none; }
}
@keyframes mm-reveal { to { opacity: 1; } }
.hero__title .line-mask { padding-bottom: .08em; margin-bottom: -.08em; }

/* Horizontal rail (tablet and up) */
@media (min-width: 768px) {
  .motion .work__rail { height: 100svh; }
  .motion .work__track { flex-direction: row; width: max-content; height: 100%; }
  .motion .scene { flex: 0 0 100vw; width: 100vw; border-top: 0; }
  .motion .rail-progress {
    position: absolute; z-index: 8; left: 50%; bottom: 4.5svh; translate: -50% 0;
    display: flex; align-items: center; gap: 16px; font: 500 13px/1 var(--body); letter-spacing: .08em; color: #cdc4b9;
  }
  .motion .rail-progress__bar { background: rgba(255, 255, 255, .16); }

  /* Stacked card deck */
  .motion .services { padding: 0; }
  .motion .services__pin { height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
  .motion .services__inner { align-items: center; grid-template-columns: .9fr 1.1fr; }
  .motion .deck { display: block; position: relative; height: clamp(340px, 52svh, 460px); }
  .motion .deck .card { position: absolute; inset: 0; min-height: 0; padding: 36px; box-shadow: var(--shadow); transform-origin: 50% 0; }
  .motion .deck .card h3 { font-size: clamp(24px, 2.4vw, 34px); }
  .motion .deck .card p { font-size: 17px; max-width: 440px; }
  .motion .deck-progress { display: flex; }

  /* Pinned process */
  .motion .approach { padding: 0; }
  .motion .approach__pin { height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
  .motion .approach__inner { grid-template-columns: .9fr 1.1fr; }
  .motion .process__track i { transform: scaleY(0); }
  .motion .step { opacity: .62; background: transparent; }
  .motion .step p { opacity: .82; }
  .motion .step.is-active { opacity: 1; background: var(--surface); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .motion .step.is-active p { opacity: 1; }
  .motion .step.is-done { opacity: .78; }

  /* Point of View holds briefly while the sentence resolves */
  .motion .about { padding: 0; }
  .motion .about__pin { min-height: 100svh; display: flex; align-items: center; padding: var(--nav-h) 0 0; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .motion .services__inner, .motion .approach__inner { grid-template-columns: 1fr 1.1fr; gap: 36px; }
}
@media (min-width: 768px) and (max-height: 760px) {
  .motion .services__intro .lead, .motion .approach__intro .lead { display: none; }
  .motion .step { padding: 14px 18px; }
  .motion .step p { font-size: 14px; }
}

/* Statement words (split by JS) */
.statement__quote .word { will-change: auto; }

/* Phones: room for the vertical background parallax */
@media (max-width: 767px) {
  .motion .scene__bg { inset: -7% 0; }
}

/* ---------- Reduced motion: everything static and complete ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__canvas { display: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { white-space: normal; text-align: center; padding-inline: var(--gutter); line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .work__track { gap: 24px; padding: 0 var(--gutter) 120px; }
  .scene { height: min(86svh, 62vw); border-radius: 28px; border: 1px solid rgba(255, 255, 255, .08); }
}

/* No JS or reduced motion on tablet/desktop: show the stacked layout with readable spacing. */
html:not(.motion) .work__track { gap: 0; }
@media (min-width: 768px) {
  html:not(.motion) .work__track { padding-bottom: 120px; gap: 24px; padding-inline: var(--gutter); }
  html:not(.motion) .scene { height: min(86svh, 62vw); border-radius: 28px; border: 1px solid rgba(255, 255, 255, .08); }
}
