/* ============================================================
   BHANU BUILD-TECH — "LIGHT THROUGH GLASS"
   Deep navy world, one copper-amber light source, parchment
   inversions per section. Never neutral black, never pure white.
   Display: Archivo (expanded) · Body: Schibsted Grotesk · Labels: Fragment Mono
   Brand spectrum strip = light dispersed through glass.
   ============================================================ */

:root {
  --copper: oklch(0.68 0.13 48);
  --copper-deep: oklch(0.52 0.115 45);
  --copper-glow: oklch(0.74 0.13 55);
  --navy-0: oklch(0.16 0.04 252);
  --navy-1: oklch(0.2 0.042 252);
  --parch-0: oklch(0.94 0.018 80);
  --parch-1: oklch(0.9 0.022 78);

  --spectrum: linear-gradient(90deg,
    oklch(0.74 0.11 35), oklch(0.84 0.11 85), oklch(0.84 0.1 155),
    oklch(0.76 0.08 230), oklch(0.7 0.1 285), oklch(0.58 0.13 275));

  --font-display: "Archivo", sans-serif;
  --font-body: "Schibsted Grotesk", sans-serif;
  --font-mono: "Fragment Mono", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1280px, 92vw);
  --theme-fade: 1s;
}

/* ---- theme: the journey. Body owns the surface; sections request it. ---- */
body[data-theme="navy"] {
  --surface: var(--navy-0);
  --surface-2: var(--navy-1);
  --ink: oklch(0.92 0.022 80);
  --ink-dim: oklch(0.69 0.032 72);
  --line: oklch(0.92 0.022 80 / 0.14);
  --accent: var(--copper);
  --accent-strong: var(--copper-glow);
  --accent-ink: oklch(0.16 0.04 252);
  --ghost: oklch(0.92 0.022 80 / 0.045);
}
body[data-theme="parchment"] {
  --surface: var(--parch-0);
  --surface-2: var(--parch-1);
  --ink: oklch(0.25 0.045 252);
  --ink-dim: oklch(0.46 0.035 250);
  --line: oklch(0.25 0.045 252 / 0.18);
  --accent: var(--copper-deep);
  --accent-strong: var(--copper-deep);
  --accent-ink: oklch(0.96 0.015 80);
  --ghost: oklch(0.25 0.045 252 / 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--theme-fade) var(--ease-out), color var(--theme-fade) var(--ease-out);
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

.container { width: var(--container); margin: 0 auto; }
.section { padding: clamp(6rem, 12vw, 11rem) 0; position: relative; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; }

::selection { background: var(--copper); color: oklch(0.16 0.04 252); }

/* italic accent words inside headings */
.accent {
  font-style: italic;
  font-weight: inherit;
  color: var(--accent);
  transition: color var(--theme-fade);
}

/* masked line reveals for big type */
.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; }
.ml { display: block; overflow: hidden; }
.ml > span { display: inline-block; transform: translateY(112%); will-change: transform; }
body.no-js .ml > span, body.reduced .ml > span { transform: none; }

/* ============ BRAND SPECTRUM STRIP ============
   The rainbow strip from the logo: light dispersed through glass.
   Used exactly twice — under the hero, and above the footer. */
.spectrum {
  height: 3px;
  background: var(--spectrum);
  background-size: 220% 100%;
  animation: spectrum-drift 14s linear infinite alternate;
  position: relative;
  z-index: 2;
}
.spectrum::after {
  content: "";
  position: absolute; inset: -3px 0;
  background: inherit;
  filter: blur(5px);
  opacity: 0.2;
  pointer-events: none;
}
@keyframes spectrum-drift {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}

/* ============ BACKGROUND ELEMENTS ============ */
/* ghost section numerals — the page counts itself */
.sec-ghost {
  position: absolute;
  top: clamp(-1rem, -2vw, -0.4rem);
  right: 0;
  font-family: var(--font-display);
  font-weight: 620;
  font-stretch: 115%;
  font-size: clamp(11rem, 24vw, 21rem);
  line-height: 0.8;
  color: var(--ghost);
  pointer-events: none;
  user-select: none;
  transition: color var(--theme-fade);
  z-index: 0;
}
.section .container { position: relative; }
.section .container > *:not(.sec-ghost) { position: relative; z-index: 1; }

/* the logo's vertical glass lines, ghosted into navy sections */
.bg-lines {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,
    oklch(0.92 0.022 80 / 0.05) 0 1px, transparent 1px 96px);
  mask-image: radial-gradient(75% 90% at 70% 40%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 90% at 70% 40%, black, transparent 78%);
  opacity: 0.7;
}
.bg-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(42% 55% at 84% 18%, oklch(0.68 0.13 48 / 0.1), transparent 70%);
}

/* ============ HUD FRAME ============ */
.hud { pointer-events: none; }
.hud-corner {
  position: fixed; z-index: 80;
  width: 22px; height: 22px;
  border-color: var(--line); border-style: solid; border-width: 0;
  transition: border-color var(--theme-fade);
}
.hud-corner.tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.hud-corner.tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.hud-corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

.hud-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.26em;
  color: var(--ink-dim);
  transition: color var(--theme-fade);
}
.hud-bar .hud-sec { color: var(--accent); transition: color var(--theme-fade); }
@media (max-width: 860px) { .hud-corner, .hud-bar { display: none; } }

/* ============ SIDE JOURNEY NAV ============ */
.journey {
  position: fixed; right: clamp(1rem, 2.6vw, 2.4rem); top: 50%; z-index: 80;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 1.15rem;
}
.journey a {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em;
  color: transparent;
  padding: 2px 4px 2px 8px; border-radius: 3px;
  transition: color 0.35s, background 0.35s;
}
.journey a.active {
  background: color-mix(in oklch, var(--surface) 72%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.journey a::after {
  content: "";
  width: 18px; height: 1px;
  background: var(--line);
  transition: background 0.35s, width 0.35s var(--ease-out);
}
.journey a:hover { color: var(--ink-dim); }
.journey a.active { color: var(--accent); }
.journey a.active::after { background: var(--accent); width: 34px; }
@media (max-width: 1100px) { .journey { display: none; } }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy-0);
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ease-out), visibility 1s;
}
.preloader.done { transform: translateY(-100%); visibility: hidden; }
.preloader-inner { text-align: center; transition: opacity 0.4s; }
.preloader.done .preloader-inner { opacity: 0; }
.preloader-logo { width: 84px; }
.preloader-line {
  width: 160px; height: 1px; margin: 1.6rem auto;
  background: oklch(0.92 0.022 80 / 0.14); overflow: hidden;
}
.preloader-line span {
  display: block; height: 100%; width: 40%;
  background: var(--spectrum);
  animation: load-sweep 1.2s var(--ease-out) infinite;
}
@keyframes load-sweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(420%); }
}
.preloader-tag {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.3em;
  color: oklch(0.69 0.032 72);
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.45rem clamp(1.4rem, 4.5vw, 3.4rem);
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s, color var(--theme-fade), padding 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding-block: 0.95rem; }
.nav.scrolled {
  background: color-mix(in oklch, var(--surface) 78%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-brand { position: relative; display: block; text-decoration: none; }
.nav-lockup { height: 34px; display: block; }
.nav-lockup-light { transition: opacity var(--theme-fade); }
.nav-lockup-dark { position: absolute; inset: 0; height: 34px; opacity: 0; transition: opacity var(--theme-fade); }
body[data-theme="parchment"] .nav-lockup-light { opacity: 0; }
body[data-theme="parchment"] .nav-lockup-dark { opacity: 1; }
.nav-links { display: flex; align-items: center; gap: 2.9rem; }
.nav-links a {
  position: relative;
  color: var(--ink-dim); text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding-bottom: 0.3rem;
  transition: color 0.35s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid color-mix(in oklch, var(--accent) 55%, transparent);
  padding: 0.62rem 1.6rem; border-radius: 2px;
  transition: border-color 0.35s, background 0.35s, color 0.35s;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 10%, transparent);
}
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-burger span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform 0.35s var(--ease-out), opacity 0.3s, background var(--theme-fade); }
.nav-burger.open span:first-child { transform: translateY(3.7px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-3.7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: oklch(0.16 0.04 252 / 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 560; font-stretch: 110%;
  font-size: 2rem; letter-spacing: 0.02em;
  color: oklch(0.92 0.022 80); text-decoration: none;
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-canvas-wrap { position: absolute; inset: 0; }
#heroCanvas { width: 100%; height: 100%; display: block; }
.hero-fallback {
  position: absolute; inset: 0; display: none;
  background:
    radial-gradient(42% 54% at 24% 72%, oklch(0.74 0.11 35 / 0.16), transparent 66%),
    radial-gradient(46% 58% at 76% 26%, oklch(0.76 0.08 230 / 0.18), transparent 66%),
    radial-gradient(36% 46% at 64% 78%, oklch(0.58 0.13 275 / 0.15), transparent 66%),
    radial-gradient(38% 50% at 38% 22%, oklch(0.84 0.11 85 / 0.1), transparent 66%),
    var(--navy-0);
}
body.no-webgl .hero-fallback { display: block; }
body.no-webgl #heroCanvas { display: none; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 50% at 50% 54%, oklch(0.16 0.04 252 / 0.42), transparent 72%),
    linear-gradient(to bottom,
    oklch(0.16 0.04 252 / 0.3) 0%,
    oklch(0.16 0.04 252 / 0) 30%,
    oklch(0.16 0.04 252 / 0.55) 86%,
    oklch(0.16 0.04 252) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: var(--container); margin: 0 auto;
  padding-top: 4rem;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.32em;
  color: var(--copper-glow); margin-bottom: 2.2rem; overflow: hidden;
}
.hero-eyebrow span { display: inline-block; transform: translateY(110%); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 640;
  font-stretch: 115%;
  font-size: clamp(3rem, 8.2vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 13ch;
  margin-inline: auto;
}
.hero-sub {
  max-width: 36rem; margin-top: 2.4rem; margin-inline: auto;
  color: var(--ink-dim); font-size: 1.05rem; line-height: 1.75;
  opacity: 0;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.8rem; flex-wrap: wrap; opacity: 0; justify-content: center; }
.btn {
  display: inline-block; text-decoration: none;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1rem 2.5rem; border-radius: 2px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.45s, color 0.45s, border-color 0.45s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid {
  border: 1px solid color-mix(in oklch, var(--copper) 75%, transparent);
  color: var(--copper-glow, var(--copper));
  background: color-mix(in oklch, var(--navy-0) 42%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-solid:hover { background: var(--copper); color: oklch(0.16 0.04 252); border-color: var(--copper); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: color-mix(in oklch, var(--navy-0) 30%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: color-mix(in oklch, var(--ink) 55%, transparent); }

.hero-foot {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 2.2rem;
}
.scroll-cue { width: 1px; height: 58px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue span {
  position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--copper);
  animation: cue 1.9s var(--ease-out) infinite;
}
@keyframes cue {
  from { transform: translateY(-100%); }
  to   { transform: translateY(280%); }
}

/* ============ MARQUEE ============ */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.15rem 0;
  transition: border-color var(--theme-fade);
}
.marquee-track {
  display: flex; align-items: center; gap: 2.6rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 480; font-stretch: 108%; font-size: 1.02rem; letter-spacing: 0.24em;
  color: var(--ink-dim); white-space: nowrap;
  transition: color var(--theme-fade);
}
.marquee-track i { font-style: normal; font-size: 0.5rem; color: var(--accent); transition: color var(--theme-fade); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTION GRAMMAR ============ */
.sec-mark { margin-bottom: 3rem; }
.sec-thread {
  display: block; width: 1px; height: 64px; margin-bottom: 1.4rem;
  background: var(--accent);
  transform-origin: top; transform: scaleY(0);
  transition: background var(--theme-fade);
}
.sec-num {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--accent);
  transition: color var(--theme-fade);
}
.sec-kicker {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--ink-dim); margin-top: 0.35rem;
  transition: color var(--theme-fade);
}
.sec-mark-row { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 1.6rem; }
.sec-mark-row .sec-kicker { margin-top: 0; }

.section-title {
  font-family: var(--font-display); font-weight: 600; font-stretch: 112%;
  font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 3.6rem;
  max-width: 18ch;
}
.section-title .muted { color: var(--ink-dim); transition: color var(--theme-fade); }

/* ============ STANDFIRST ============ */
.sf-text {
  font-family: var(--font-display); font-weight: 450; font-stretch: 106%;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.34;
  max-width: 26ch;
}
.sf-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 5.5rem; padding-top: 3rem;
  border-top: 1px solid var(--line);
  transition: border-color var(--theme-fade);
}
.stat-num {
  font-family: var(--font-display); font-weight: 650; font-stretch: 112%;
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1;
}
.stat-few { font-size: 0.45em; color: var(--accent); font-style: italic; }
.stat-label { color: var(--ink-dim); font-size: 0.85rem; margin-top: 0.7rem; transition: color var(--theme-fade); }

.sf-clients {
  margin-top: 4.5rem; padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 2.4rem; flex-wrap: wrap;
  transition: border-color var(--theme-fade);
}
.sf-clients-label { color: var(--accent); white-space: nowrap; }
.sf-clients-names {
  font-family: var(--font-display); font-weight: 440; font-stretch: 104%;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--ink-dim); line-height: 1.9;
  transition: color var(--theme-fade);
}

/* ============ CAPABILITIES — index + live preview ============ */
.svc-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.svc-index { border-top: 1px solid var(--line); transition: border-color var(--theme-fade); }
.svc-row {
  display: grid;
  grid-template-columns: 4rem 1fr 2.6rem;
  align-items: baseline; gap: 1.6rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: default;
  transition: border-color var(--theme-fade);
}
.svc-row::before {
  content: "";
  position: absolute; inset: 0 -1.4rem;
  background: oklch(0.68 0.13 48 / 0.07);
  opacity: 0; transform: scaleX(0.98);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
  pointer-events: none;
}
.svc-row.is-active::before { opacity: 1; transform: scaleX(1); }
.svc-num {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--ink-dim);
  transition: color 0.35s;
}
.svc-row.is-active .svc-num { color: var(--accent); }
.svc-row h3 {
  font-family: var(--font-display); font-weight: 540; font-stretch: 108%;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.12;
  transition: transform 0.45s var(--ease-out);
}
.svc-row.is-active h3 { transform: translateX(10px); }
.svc-body p { color: var(--ink-dim); font-size: 0.93rem; max-width: 46ch; margin-top: 0.5rem; transition: color var(--theme-fade); }
.svc-arrow {
  justify-self: end; align-self: center;
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--accent);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.svc-row.is-active .svc-arrow { opacity: 1; transform: translateX(0); }

.svc-preview {
  position: sticky; top: clamp(5rem, 12vh, 8rem);
}
.svc-preview-frame {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 4px;
  box-shadow: 0 26px 70px oklch(0.25 0.045 252 / 0.22);
}
.svc-preview-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.65s var(--ease-out), transform 1.1s var(--ease-out);
}
.svc-preview-frame img.is-active { opacity: 1; transform: scale(1); }
.svc-preview-cap {
  margin-top: 1rem; color: var(--ink-dim);
  transition: color var(--theme-fade);
}

/* ============ STAINED GLASS — the dark chapel moment ============ */
.stained { overflow: hidden; }
.stained-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 62% at 76% 42%, oklch(0.68 0.13 48 / 0.14), transparent 65%),
    radial-gradient(36% 48% at 14% 78%, oklch(0.55 0.09 255 / 0.2), transparent 60%);
}
.stained-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.stained-p { color: var(--ink-dim); max-width: 32rem; margin-bottom: 1.8rem; transition: color var(--theme-fade); }
.stained-list { list-style: none; margin-bottom: 2.6rem; }
.stained-list li {
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 0.9rem;
  transition: border-color var(--theme-fade);
}
.stained-list li::before {
  content: ""; width: 7px; height: 7px; flex-shrink: 0;
  background: var(--accent); border-radius: 1px;
  transform: rotate(45deg);
  transition: background var(--theme-fade);
}

/* ============ MEDIA — curtain reveals ============ */
.media {
  position: relative; overflow: hidden;
  border-radius: 4px;
}
.media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.media.reveal { clip-path: inset(0 0 100% 0); }
.media.reveal img { transform: scale(1.18); }
body.reduced .media.reveal { clip-path: inset(0); }
body.reduced .media.reveal img { transform: none; }

.stained-media { aspect-ratio: 4 / 5; box-shadow: 0 30px 90px oklch(0.68 0.13 48 / 0.18); }
.legacy-media { aspect-ratio: 4 / 5; }

/* image light-bleed — the photo casts its own colour, like light through glass */
.glow-frame { position: relative; }
.glow-frame .media { position: relative; z-index: 1; }
.img-glow {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 4px;
  filter: blur(38px) saturate(1.4);
  transform: scale(1.04);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
body.reduced .img-glow { opacity: 0.55; }
/* on parchment, light can't brighten paper — bleed becomes a colour-cast shadow */
.work .img-glow {
  mix-blend-mode: multiply;
  filter: blur(40px) saturate(1.5);
  transform: translateY(16px) scale(1.02);
}

/* ============ WORK — pinned horizontal journey ============ */
.work {
  overflow: hidden;
  padding: clamp(4.5rem, 9vh, 7rem) 0 0;
}
.work-head { padding-bottom: 0; }
.work-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.2rem;
}
.work-stage { position: relative; }
.work-rail {
  display: flex; align-items: flex-start; gap: clamp(1.4rem, 3vw, 2.6rem);
  padding: 1.6rem calc((100vw - var(--container)) / 2) 4.5rem;
  width: max-content;
}
.work-card { flex: 0 0 auto; width: min(560px, 78vw); }
.work-media {
  aspect-ratio: 4 / 3;
  max-height: min(52vh, 460px);
  width: 100%;
}
.work-card .glow-frame { margin-bottom: 1.3rem; }
.work-meta, .work-tag { position: relative; z-index: 1; }
.work-media img { aspect-ratio: 4 / 3; }
.work-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.work-meta h3 { font-family: var(--font-display); font-weight: 540; font-stretch: 108%; font-size: 1.35rem; line-height: 1.2; }
.work-meta .mono { color: var(--accent); white-space: nowrap; transition: color var(--theme-fade); }
.work-tag { color: var(--ink-dim); font-size: 0.85rem; margin-top: 0.35rem; transition: color var(--theme-fade); }

/* mobile / reduced fallback: native swipe rail */
body.rail-native .work { padding-bottom: clamp(3rem, 8vw, 6rem); }
body.rail-native .work-rail {
  width: auto;
  overflow-x: auto;
  padding-left: max(4vw, 1.2rem);
  padding-right: max(4vw, 1.2rem);
  scroll-padding-left: max(4vw, 1.2rem);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
body.rail-native .work-rail::-webkit-scrollbar { display: none; }
body.rail-native .work-card { scroll-snap-align: start; }

/* ============ LEGACY ============ */
.legacy-grid {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.legacy-p { color: var(--ink-dim); max-width: 32rem; margin-bottom: 3rem; transition: color var(--theme-fade); }
.legacy-timeline { border-left: 1px solid var(--line); transition: border-color var(--theme-fade); }
.tl-item { position: relative; padding: 0 0 2.2rem 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -4px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  transition: background var(--theme-fade);
}
.tl-year { color: var(--accent); margin-bottom: 0.3rem; transition: color var(--theme-fade); }
.tl-item p:not(.tl-year) { color: var(--ink-dim); font-size: 0.92rem; max-width: 26rem; transition: color var(--theme-fade); }

/* ============ CONTACT ============ */
.contact { overflow: hidden; }
.contact-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 65% at 50% 115%, oklch(0.68 0.13 48 / 0.22), transparent 70%);
}
.contact-title {
  font-family: var(--font-display); font-weight: 620; font-stretch: 112%;
  font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 4rem;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: border-color var(--theme-fade);
}
.contact-item {
  display: block; text-decoration: none; color: var(--ink);
  padding: 2.2rem 1.8rem;
  border-right: 1px solid var(--line);
  transition: background 0.35s, border-color var(--theme-fade), color var(--theme-fade);
}
.contact-item:last-child { border-right: 0; }
a.contact-item:hover { background: oklch(0.68 0.13 48 / 0.08); }
.ci-label { color: var(--accent); margin-bottom: 0.8rem; transition: color var(--theme-fade); }
.ci-value { font-size: 1.02rem; line-height: 1.45; }

/* ============ FOOTER ============ */
.footer { padding: 3.6rem 0 5rem; }
.footer-grid {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.footer-logo { height: 64px; opacity: 0.95; }
.footer-stamp { text-align: center; color: var(--ink-dim); line-height: 2; letter-spacing: 0.3em; }
.footer-stamp p:first-child { color: var(--ink); }
.footer-right { text-align: right; }
.footer-right a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: border-color 0.3s, color var(--theme-fade);
}
.footer-right a:hover { border-color: var(--accent); }
.footer-right .mono { color: var(--ink-dim); margin-top: 1rem; transition: color var(--theme-fade); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .svc-split { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
}
@media (max-width: 960px) {
  .stained-grid, .legacy-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-item:nth-child(2n) { border-right: 0; }
  .contact-item { border-bottom: 1px solid var(--line); }
  .sf-stats { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 3.4rem 1fr; }
  .svc-arrow { display: none; }
  .sec-ghost { font-size: clamp(8rem, 26vw, 13rem); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-lockup, .nav-lockup-dark { height: 28px; }
  .hero-eyebrow { font-size: 0.56rem; letter-spacing: 0.22em; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { border-right: 0; }
  .sf-stats { grid-template-columns: 1fr; gap: 2.6rem; }
  .sf-clients { flex-direction: column; gap: 1rem; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 2.4rem; }
  .footer-stamp { text-align: left; }
  .footer-right { text-align: left; }
  .footer-logo { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .ml > span { transform: none; }
  .hero-sub, .hero-actions { opacity: 1; }
  .sec-thread { transform: none; }
  .media.reveal { clip-path: inset(0); }
  .media.reveal img { transform: none; }
  .img-glow { opacity: 0.55; }
}
