/* Studio Ena — design system */

:root {
  --black: #050505;
  --white: #f7f5f1;
  --gold: #c9a978;

  --bg: var(--black);
  --fg: var(--white);
  --muted: rgba(247, 245, 241, .72);
  --faint: rgba(247, 245, 241, .42);
  --line: rgba(247, 245, 241, .2);

  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --gap: clamp(12px, 1.6vw, 28px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sect: clamp(110px, 17vh, 220px);
}

html[data-theme="light"] {
  --bg: var(--white);
  --fg: var(--black);
  --muted: rgba(5, 5, 5, .7);
  --faint: rgba(5, 5, 5, .42);
  --line: rgba(5, 5, 5, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: color .3s linear;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: italic; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Grid ---------- */
.wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.rail { grid-column: 1 / 4; }
.body { grid-column: 4 / 13; }
.body--narrow { grid-column: 4 / 10; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.eyebrow .num { font-family: var(--mono); font-weight: 400; letter-spacing: .06em; margin-right: .8em; color: var(--fg); }
.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(46px, 8.4vw, 150px); line-height: .96; letter-spacing: -.03em; margin: 0;
}
.title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 5.2vw, 88px); line-height: 1.02; letter-spacing: -.025em; margin: 0;
}
.lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(24px, 2.6vw, 42px); line-height: 1.22; letter-spacing: -.012em; margin: 0;
}
.text { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 54ch; }
.text + .text { margin-top: 1.1em; }

.head { align-items: start; margin-bottom: clamp(56px, 9vh, 120px); }
.head .eyebrow { padding-top: .9em; }

/* word splitting (JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Links & buttons ---------- */
.link { position: relative; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; padding: 6px 0; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .7s var(--ease); }
.link:hover::after { transform: scaleX(0); transform-origin: right; }
.link i { font-style: normal; transition: transform .6s var(--ease); }
.link:hover i { transform: translateX(5px); }

.btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 30px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-size: 15px; font-weight: 600;
}
.btn i { font-style: normal; transition: transform .6s var(--ease); }
.btn:hover i { transform: translateX(6px); }

/* ---------- Iris, flash, intro ---------- */
.iris { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.iris { z-index: 100; }
.iris.is-active { pointer-events: all; }
.flash { position: fixed; inset: 0; z-index: 99; background: #fff; opacity: 0; pointer-events: none; }
.iris-readout {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 101;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--white); opacity: 0; pointer-events: none; text-align: center;
}
.iris-readout__speed { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.iris-readout__label { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: #fff; mix-blend-mode: difference;
  transition: transform .7s var(--ease);
}
.header.is-hidden { transform: translateY(-120%); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand svg { display: block; fill: currentColor; }
.brand__mark { width: 40px; height: 40px; overflow: visible; }
.eye__iris { will-change: transform; }
.brand__word { width: 86px; height: 28px; }
.nav { display: flex; gap: 38px; align-items: center; font-size: 13.5px; font-weight: 500; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta { border: 1px solid currentColor; padding: 10px 20px; border-radius: 999px; }
.nav .nav__cta::after { display: none; }

.menu-toggle { display: none; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }
.menu-toggle__lines { width: 24px; height: 8px; position: relative; }
.menu-toggle__lines::before, .menu-toggle__lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { top: 4px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px; visibility: hidden;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 10vw, 68px); line-height: 1.12; display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid rgba(247,245,241,.18); padding: 10px 0; }
.menu__nav a span { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.menu__foot { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgba(247,245,241,.72); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: #fff; mix-blend-mode: difference; opacity: .78; pointer-events: none;
}
.hud__exp { display: flex; gap: 22px; align-items: center; }
.hud b { font-weight: 400; display: inline-block; }
.hud__name { font-family: var(--sans); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 10px; }
.meter { position: relative; display: inline-flex; gap: 7px; align-items: flex-end; height: 12px; padding: 0 2px; }
.meter i { width: 1px; height: 4px; background: currentColor; opacity: .55; }
.meter i:nth-child(4) { height: 8px; opacity: 1; }
.meter__needle { position: absolute; left: 50%; top: -4px; width: 5px; height: 5px; margin-left: -2.5px; background: currentColor; transform: rotate(45deg); }

/* ---------- AF cursor ---------- */
.af { position: fixed; left: 0; top: 0; z-index: 60; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: none; opacity: 0; color: #fff; mix-blend-mode: difference; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .3s; }
.af i { position: absolute; width: 7px; height: 7px; border: 1px solid currentColor; }
.af i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.af i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.af i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.af i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.af b { position: absolute; left: 100%; top: 100%; margin: 4px 0 0 4px; font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: .12em; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.af.is-on { opacity: 1; }
.af.is-target { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.af.is-locked { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.af.is-locked b { opacity: 1; }
@media (hover: none) { .af { display: none; } }

/* ---------- Home hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; color: var(--white); background: var(--black); }
.hero__media { position: absolute; inset: 0; clip-path: inset(21% 35% 21% 35%); will-change: clip-path; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; transform: scale(1.25); will-change: transform, filter; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.35), rgba(5,5,5,0) 35%, rgba(5,5,5,.6)); }
.hero__motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__corners { position: absolute; inset: calc(21% - 18px) calc(35% - 18px); pointer-events: none; }
.hero__corners i { position: absolute; width: 18px; height: 18px; border: 1px solid rgba(247,245,241,.7); }
.hero__corners i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero__corners i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero__corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero__corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hero__copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 var(--gutter); pointer-events: none; }
.hero__title { mix-blend-mode: difference; color: var(--white); }
.hero__line { display: block; }
.hero__line--b { text-align: right; }
.hero__eyebrow { color: rgba(247,245,241,.85); }
.hero__scroll { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); width: 1px; height: 44px; background: rgba(247,245,241,.3); overflow: hidden; }
.hero__scroll::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--white); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Sub-page hero ---------- */
.phero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 150px 0 clamp(70px, 10vh, 120px); }
.phero__top { align-items: end; row-gap: 24px; }
.phero__title { grid-column: 1 / 13; }
.phero__meta { margin-top: clamp(40px, 7vh, 90px); align-items: start; }
.phero__meta .lead { grid-column: 4 / 11; color: var(--muted); }
.phero__media { margin: clamp(50px, 8vh, 100px) 0 0; position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.phero__media img { width: 100%; height: 120%; object-fit: cover; }

/* ---------- Statement (manifesto) ---------- */
.statement { padding: var(--sect) 0; }
.manifesto { grid-column: 4 / 13; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.9vw, 64px); line-height: 1.14; letter-spacing: -.018em; margin: 0; }
.manifesto .word { opacity: .16; transition: opacity .25s linear; }

/* ---------- Pillars (rail list) ---------- */
.pillars { border-top: 1px solid var(--line); }
.pillar { padding: clamp(26px, 4vh, 44px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pillar__num { grid-column: 1 / 4; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pillar h3 { grid-column: 4 / 8; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; margin: 0; }
.pillar p { grid-column: 9 / 13; margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Split block: image + copy ---------- */
.split { align-items: end; row-gap: 48px; }
.split__media { grid-column: 1 / 6; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy { grid-column: 7 / 13; }
.split--rev .split__media { grid-column: 8 / 13; order: 2; }
.split--rev .split__copy { grid-column: 1 / 7; }
.split__copy .title { margin-bottom: 36px; }

/* ---------- Image effects ---------- */
[data-focus] { overflow: hidden; }
[data-focus] img, [data-develop] img { will-change: filter, transform; }

/* ---------- Reel: horizontal → depth → horizontal ---------- */
.reel { position: relative; }
.reel__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.reel__head { position: absolute; top: clamp(96px, 14vh, 140px); left: 0; right: 0; z-index: 3; align-items: end; pointer-events: none; }
.reel__head .title { grid-column: 4 / 11; font-size: clamp(32px, 4vw, 66px); }
.reel__track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: clamp(20px, 3vw, 52px); padding: 18vh var(--gutter) 0; width: max-content; will-change: transform; }
.reel__track--b { visibility: hidden; }
.card { flex: none; width: clamp(240px, 23vw, 380px); display: block; }
.card--wide { width: clamp(320px, 38vw, 640px); }
.card figure { margin: 0; overflow: hidden; height: 52vh; position: relative; }
.card--low { margin-top: 12vh; }
.card img { width: 118%; max-width: none; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.card__meta .n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.card__meta h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 1.6vw, 25px); margin: 0; line-height: 1.2; }
.card__meta .k { font-weight: 600; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card--end { align-self: center; width: clamp(240px, 22vw, 340px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; transition: background-color .6s var(--ease), color .6s var(--ease); }
.card--end:hover { background: var(--fg); color: var(--bg); }
.card--end span { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; }
.reel__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; height: 1px; background: var(--line); z-index: 3; }
.reel__progress i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ---------- Depth scenes ---------- */
.depth { position: relative; background: var(--black); color: var(--white); }
.depth__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; perspective: 900px; perspective-origin: 50% 50%; }
.reel .depth__stage { position: absolute; inset: 0; visibility: hidden; }
.depth__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.depth__world { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.plane { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform, opacity; opacity: 0; }
.plane > * { transform: translate(-50%, -50%); }
.plane img { width: clamp(220px, 24vw, 420px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; max-width: none; padding: 7px; border: 1px solid rgba(247,245,241,.34); border-radius: 22px; background: rgba(247,245,241,.05); }
.plane--land img { width: clamp(300px, 36vw, 640px); aspect-ratio: 3 / 2; }
.plane--text p, .plane--small p { font-family: var(--serif); font-weight: 300; line-height: 1.04; letter-spacing: -.02em; white-space: nowrap; margin: 0; text-align: center; color: var(--white); background: rgba(5,5,5,.62); border: 1px solid rgba(247,245,241,.34); border-radius: 22px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.plane--text p { font-size: clamp(34px, 4.6vw, 80px); padding: .42em .8em .5em; }
.plane--small p { font-size: clamp(18px, 1.7vw, 28px); font-style: italic; padding: .55em 1.2em .65em; border-radius: 999px; }
.depth__caption { position: absolute; left: var(--gutter); top: clamp(96px, 14vh, 140px); z-index: 2; }

/* ---------- Services list ---------- */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__row { padding: clamp(24px, 3.4vh, 40px) 0; border-bottom: 1px solid var(--line); align-items: baseline; position: relative; }
.svc__num { grid-column: 1 / 4; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.svc__name { grid-column: 4 / 9; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.8vw, 62px); line-height: 1.04; margin: 0; letter-spacing: -.015em; transition: transform .7s var(--ease), opacity .5s; }
.svc__desc { grid-column: 9 / 13; margin: 0; color: var(--muted); font-size: 15.5px; }
.svc__row > a { position: absolute; inset: 0; }
@media (hover: hover) {
  .svc:hover .svc__name { opacity: .35; }
  .svc__row:hover .svc__name { opacity: 1; transform: translateX(18px); }
}
.svc-preview { position: fixed; left: 0; top: 0; z-index: 20; width: 240px; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden; clip-path: inset(50% 50% 50% 50%); transition: clip-path .6s var(--ease); }
.svc-preview.is-on { clip-path: inset(0 0 0 0); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process ---------- */
.process { padding: var(--sect) 0; }
.process__sticky { grid-column: 1 / 6; position: sticky; top: 14vh; align-self: start; }
.process__frames { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; overflow: hidden; }
.process__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); filter: blur(12px); transform: scale(1.08); transition: clip-path 1.1s var(--ease), filter 1.4s var(--ease) .2s, transform 1.6s var(--ease); }
.process__frames img.is-on, .process__frames img.is-past { clip-path: inset(0 0 0 0); filter: blur(0); transform: scale(1); }
.steps { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0 0 10vh; }
.step { min-height: 56vh; padding-top: 28px; border-top: 1px solid var(--line); opacity: .28; transition: opacity .8s var(--ease); }
.step.is-on { opacity: 1; }
.step__num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.step h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.2vw, 50px); line-height: 1.08; margin: 18px 0 16px; }
.step p { margin: 0; color: var(--muted); max-width: 40ch; font-size: 16.5px; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); }
.stat { grid-column: span 3; padding: 34px 0 0; }
.stat b { font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 6.4vw, 108px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat i { font-style: normal; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 40px); margin-left: 4px; vertical-align: top; }
.stat span { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- Quotes ---------- */
.voices { padding: var(--sect) 0; }
.quotes { display: grid; grid-column: 4 / 13; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.quote.is-on { opacity: 1; visibility: visible; transition: opacity .9s var(--ease) .2s, visibility 0s; }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(28px, 3.4vw, 56px); line-height: 1.2; letter-spacing: -.012em; }
.quote figcaption { margin-top: 40px; font-size: 15px; font-weight: 600; }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.quotes__nav { grid-column: 4 / 13; display: flex; align-items: center; gap: 22px; margin-top: 56px; }
.qbtn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); font-size: 17px; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.qbtn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.quotes__count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.quotes__count b { font-weight: 400; color: var(--fg); }

/* ---------- Stacked panels (services page) ---------- */
.stack { position: relative; }
.panel { position: sticky; top: 0; height: 100vh; height: 100svh; background: var(--black); color: var(--white); overflow: hidden; }
.panel:nth-child(even) { background: #0f0f0e; }
.panel__inner { height: 100%; padding-top: clamp(100px, 14vh, 140px); padding-bottom: clamp(70px, 10vh, 110px); align-items: end; will-change: transform; }
.panel__media { grid-column: 1 / 7; height: 100%; margin: 0; overflow: hidden; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__copy { grid-column: 8 / 13; align-self: end; }
.panel__num { font-family: var(--mono); font-size: 12px; color: rgba(247,245,241,.72); display: block; margin-bottom: 24px; }
.panel__copy h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 84px); line-height: 1; letter-spacing: -.025em; margin: 0 0 28px; }
.panel__copy p { color: rgba(247,245,241,.75); margin: 0 0 18px; max-width: 46ch; font-size: 16.5px; }
.panel__copy ul { list-style: none; padding: 0; margin: 28px 0 36px; border-top: 1px solid rgba(247,245,241,.2); }
.panel__copy li { padding: 12px 0; border-bottom: 1px solid rgba(247,245,241,.2); font-size: 14.5px; }
.panel__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.filter sup { font-family: var(--mono); font-size: 9px; margin-left: 4px; }
.filter:hover { border-color: var(--fg); }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.works { row-gap: clamp(70px, 12vh, 150px); padding-top: clamp(50px, 8vh, 100px); }
.work { display: block; }
.work:nth-child(4n+1) { grid-column: 1 / 8; }
.work:nth-child(4n+2) { grid-column: 9 / 13; margin-top: 24vh; }
.work:nth-child(4n+3) { grid-column: 2 / 6; }
.work:nth-child(4n+4) { grid-column: 7 / 13; margin-top: 12vh; }
.work figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.work:nth-child(4n+1) figure, .work:nth-child(4n+4) figure { aspect-ratio: 5 / 4; }
.work img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform 1.4s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline; padding-top: 16px; }
.work__meta .n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.work__meta h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.1; margin: 0; }
.work__meta .k { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Gallery ---------- */
.ghero { position: relative; height: 100vh; height: 100svh; overflow: hidden; color: var(--white); background: var(--black); }
.ghero__media { position: absolute; inset: 0; }
.ghero__media img { width: 100%; height: 100%; object-fit: cover; }
.ghero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.4), rgba(5,5,5,.05) 40%, rgba(5,5,5,.75)); pointer-events: none; }
.ghero__copy { position: absolute; left: 0; right: 0; bottom: clamp(80px, 12vh, 130px); z-index: 2; align-items: end; }
.ghero__copy .eyebrow { grid-column: 1 / 4; color: rgba(247,245,241,.85); padding-bottom: 1.2em; }
.ghero__copy .display { grid-column: 4 / 13; }
.photos { row-gap: clamp(20px, 3vw, 48px); padding: var(--sect) 0; }
.photo { margin: 0; overflow: hidden; cursor: zoom-in; position: relative; }
.photo img { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.photo:hover img { transform: scale(1.025); }
.photo--full { grid-column: 1 / 13; }
.photo--wide { grid-column: 3 / 13; }
.photo--a { grid-column: 1 / 7; }
.photo--b { grid-column: 7 / 13; margin-top: 18vh; }
.photo--solo { grid-column: 4 / 10; }
.photo--solo-r { grid-column: 7 / 12; }
.next { display: block; position: relative; height: 90vh; overflow: hidden; color: var(--white); }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.next:hover img { transform: scale(1.02); }
.next::after { content: ""; position: absolute; inset: 0; background: rgba(5,5,5,.55); transition: background-color .8s; }
.next:hover::after { background: rgba(5,5,5,.35); }
.next__copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; text-align: center; padding: 0 var(--gutter); }
.next__copy .eyebrow { color: rgba(247,245,241,.85); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: #000; color: var(--white); display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s .5s; }
.lightbox.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease), visibility 0s; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); font-family: var(--mono); font-size: 12px; }
.lightbox__close { font-family: var(--sans); font-size: 13px; font-weight: 500; }
.lightbox__view { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__frame { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox__frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.curtain { position: absolute; left: 0; right: 0; height: 51%; background: #000; transform: scaleY(0); }
.curtain--top { top: 0; transform-origin: top; }
.curtain--bot { bottom: 0; transform-origin: bottom; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(247,245,241,.3); font-size: 17px; z-index: 2; transition: background-color .3s, color .3s; }
.lightbox__nav:hover { background: var(--white); color: var(--black); }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.strip { display: flex; gap: 8px; padding: 18px var(--gutter) 24px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; width: 60px; height: 60px; opacity: .38; transition: opacity .4s; overflow: hidden; }
.strip button.is-on { opacity: 1; outline: 1px solid var(--white); outline-offset: 2px; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-info { grid-column: 1 / 5; }
.contact-form { grid-column: 6 / 13; }
.contact-info dl { margin: 0; display: grid; gap: 34px; }
.contact-info dt { font-weight: 600; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-info dd { margin: 0; font-size: 19px; line-height: 1.5; }
.contact-info a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.contact-info a:hover { background-size: 100% 1px; }
.form { display: flex; flex-direction: column; gap: 30px; }
.chips { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-weight: 600; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.chips label:hover span { border-color: var(--fg); }
.chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form__row--one { grid-template-columns: 1fr; }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 17px; padding: 26px 0 12px; outline: none; resize: vertical; border-radius: 0; transition: border-color .4s; }
.field textarea { min-height: 120px; }
.field span { position: absolute; left: 0; top: 26px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--fg); }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-24px) scale(.72); }
.field.is-invalid input { border-color: #e0785b; }
.form__foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 10px; }
.form__status { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: var(--sect); background: var(--black); color: var(--white); overflow: hidden; --fg: var(--white); --bg: var(--black); --muted: rgba(247,245,241,.72); --line: rgba(247,245,241,.2); }
.footer__cta { align-items: end; row-gap: 40px; }
.footer__cta .display { grid-column: 1 / 10; }
.footer__act { grid-column: 10 / 13; justify-self: end; }
.footer__mark { position: relative; height: calc((min(100vw, 1520px) - 2 * var(--gutter)) / 3.085); max-width: 1520px; margin-left: auto; margin-right: auto; margin-top: clamp(60px, 10vh, 120px); }
.footer__mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer__mark svg { position: absolute; left: var(--gutter); top: 0; width: calc(100% - 2 * var(--gutter)); height: 100%; fill: var(--white); opacity: 0; }
.reduced .footer__mark svg { opacity: 1; }
.footer__cols { padding: 46px 0 84px; border-top: 1px solid rgba(247,245,241,.2); margin-top: 30px; row-gap: 32px; font-size: 14px; color: rgba(247,245,241,.72); }
.footer__cols > div { grid-column: span 3; display: flex; flex-direction: column; gap: 4px; }
.footer__cols h4 { margin: 0 0 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--white); }
.footer__cols a:hover { color: var(--white); }

/* ---------- Reveal defaults ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.reduced [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .rail, .body, .body--narrow, .manifesto, .quotes, .quotes__nav,
  .split__media, .split__copy, .split--rev .split__media, .split--rev .split__copy,
  .process__sticky, .steps, .panel__copy, .phero__meta .lead, .reel__head .title,
  .ghero__copy .eyebrow, .ghero__copy .display, .footer__cta .display, .footer__act,
  .contact-info, .contact-form { grid-column: 1 / -1; }
  .footer__act { justify-self: start; }
  .head .eyebrow, .rail { margin-bottom: 22px; padding-top: 0; }
  .contact-info { margin-bottom: 60px; }
  .split--rev .split__media { order: 0; }
  .split__media { max-width: 560px; }
  .pillar__num, .pillar h3, .pillar p { grid-column: 1 / -1; }
  .pillar__num { margin-bottom: 10px; }
  .pillar p { margin-top: 12px; }
  .svc__num { grid-column: 1 / 3; }
  .svc__name { grid-column: 3 / -1; }
  .svc__desc { grid-column: 3 / -1; margin-top: 10px; }
  .svc-preview { display: none; }
  .process__sticky { position: relative; top: 0; margin-bottom: 40px; }
  .process__frames { max-height: none; max-width: 520px; }
  .step { min-height: 0; padding-bottom: 48px; opacity: 1; }
  .stat { grid-column: span 6; padding-bottom: 28px; }
  .panel__inner { align-content: end; row-gap: 28px; }
  .panel__media { grid-column: 1 / -1; height: 40vh; align-self: start; }
  .panel__copy ul { display: none; }
  .work:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .photo--full, .photo--wide, .photo--a, .photo--b, .photo--solo, .photo--solo-r { grid-column: 1 / -1; margin-top: 0; }
  .footer__cols > div { grid-column: span 6; }
}
@media (max-width: 640px) {
  .brand__word { width: 70px; height: 23px; }
  .brand__mark { width: 34px; height: 34px; }
  .hud__exp > :nth-child(3) { display: none; }
  .hero__media { clip-path: inset(25% 12% 25% 12%); }
  .hero__corners { inset: calc(25% - 14px) calc(12% - 14px); }
  .hero__line--b { text-align: left; }
  .card, .card--wide { width: 74vw; }
  .card figure { height: 46vh; }
  .card--low { margin-top: 6vh; }
  .card--end { width: 62vw; }
  .form__row { grid-template-columns: 1fr; }
  .phero__media { aspect-ratio: 4 / 5; }
  .footer__cols > div { grid-column: 1 / -1; }
  .lightbox__nav { display: none; }
  .plane--text p { white-space: normal; width: max-content; max-width: 86vw; }
  .plane--small p { white-space: normal; max-width: 80vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* pillars stacked inside a narrow column */
.pillar:not(.grid) p { margin-top: 12px; }
.card--end b { font-weight: 400; font-size: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Slow dust over images and dark areas ---------- */
:where([data-motes]) { position: relative; }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.ghero .motes { z-index: 1; }
.next__copy, .phero > .wrap { position: relative; z-index: 2; }
