/* Glass House Media — shared styles for every page */
:root {
  --ink: #07080c;
  --navy: #050a30;
  --frost: #eef2f7;
  --steel: #8b97ad;
  --ice: #bcd3ff;
  --signal: #3d5afe;                       /* motion accent: words colour in from this */

  /* light sections; the dark-mode toggle swaps these two */
  --light-bg: #ffffff;
  --light-fg: #07080c;

  /* two-font system: Inter Variable for everything; Geist Mono only for small technical labels & metadata */
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(16px, 2.8vw, 40px);
  --ease: cubic-bezier(.645, .045, .355, 1);
  --jelly: cubic-bezier(.34, 1.56, .64, 1);  /* liquid overshoot for glass hover/press */
}
:root[data-mode="dark"] { --light-bg: #050a30; --light-fg: #eef2f7; }

* { box-sizing: border-box; margin: 0; }
html { background: var(--ink); color: var(--frost); }
html.lenis, html.lenis body { height: auto; }
.lenis-smooth { scroll-behavior: auto !important; }
body { font: 400 16px/1.5 var(--sans); font-optical-sizing: auto; background: var(--ink); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* section themes */
[data-theme="light"] { --bg: var(--light-bg); --fg: var(--light-fg); --accent: var(--signal); --line: color-mix(in srgb, var(--fg) 14%, transparent); }
[data-theme="dark"]  { --bg: var(--ink); --fg: var(--frost); --accent: var(--ice); --line: rgba(238, 242, 247, .14); }
:root[data-mode="dark"] [data-theme="light"] { --accent: var(--ice); }
section[data-theme] { background: var(--bg); color: var(--fg); transition: background-color .6s var(--ease), color .6s var(--ease); }
section[data-theme="light"] { position: relative; overflow: hidden; }

/* the ambient colour field behind light sections: gives the glass something to bend */
.ambient { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
section > .ambient ~ * { position: relative; z-index: 1; }

/* ================= LIQUID GLASS =================
   Every .glass surface is painted by one WebGL2 renderer (see Glass in the script) into a canvas behind its content.
   data-glass picks the preset: pill (default) · chip · round · panel · lens · modal · sheet;  data-tint: milk · clear · navy · ice */
.glass { isolation: isolate; -webkit-backdrop-filter: blur(var(--gb, 2px)) saturate(1.6); backdrop-filter: blur(var(--gb, 2px)) saturate(1.6); }
.glass__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; border-radius: inherit; }
[data-glass="panel"], [data-glass="modal"] { --gb: 8px; }
[data-glass="sheet"] { --gb: 18px; }
[data-glass="lens"] { --gb: 0px; }
.gl .glass { background: transparent !important; border-color: transparent !important; }
.gl .glass:not([data-glass="lens"]) { box-shadow: 0 14px 34px -18px rgba(5, 10, 48, .45); }
/* fallback when WebGL2 isn't available: classic frosted glass */
.no-gl .glass { background: rgba(214, 226, 250, .14); border: 1px solid rgba(238, 242, 247, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.no-gl [data-theme="light"] .glass { background: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .7); }
/* liquid response: a jelly overshoot on hover, a squeeze on press (independent `scale` so GSAP transforms stay free) */
.pill, .chip, .round { transition: scale .7s var(--jelly); }
.pill:hover, .round:hover { scale: 1.045; }
.pill:active, .round:active { scale: .95; transition-duration: .18s; }

/* shared type */
.label { font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.display { font: 700 clamp(34px, 4.6vw, 76px)/.92 var(--sans); letter-spacing: -.045em; text-transform: uppercase; }
.display em, .hl { font-style: normal; color: var(--accent); }
.muted { opacity: .62; }
.mark { display: inline-block; width: 1em; aspect-ratio: 1.32 / 1.6; background: currentColor;
  -webkit-mask: url(../media/mark.svg) center / contain no-repeat; mask: url(../media/mark.svg) center / contain no-repeat; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font: 500 14px/1 var(--sans); padding: 15px 22px; border-radius: 999px; }
.pill .arrow { transition: translate .5s var(--jelly); }
.pill:hover .arrow { translate: 4px 0; }
/* a drawn arrow where the typed north-east arrow would become an emoji on phones */
.pill .arrow svg { display: inline-block; width: .7em; height: .7em; vertical-align: .02em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.round { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 17px; }

.line-mask, .word-mask { padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink); }
.loader .mark { font-size: 64px; color: var(--frost); opacity: 0; }
.loader__bar { position: absolute; left: 50%; bottom: 22vh; width: 120px; height: 1px; margin-left: -60px; background: rgba(238,242,247,.16); overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--frost); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- header ---------- */
.head { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--gutter); pointer-events: none; color: var(--frost); transition: color .4s var(--ease); }
.head > * { pointer-events: auto; }
.head__nav { position: relative; display: flex; gap: 26px; padding: 15px 26px; border-radius: 999px; font: 500 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .02em; }
.head__nav a { position: relative; opacity: .82; transition: opacity .25s; }
.head__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.head__nav a:hover { opacity: 1; }
.head__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.head__right { justify-self: end; display: flex; gap: 10px; align-items: center; }
.head__menu { display: none; }
html:not(.has-world) .world-link { display: none !important; } /* shown only after a visit to /world/ */
body.on-light .head { color: var(--light-fg); }

/* the hero wordmark flies into the header and becomes the home link */
.brand { position: fixed; z-index: 41; left: var(--gutter); top: 50vh; top: 50svh; margin-top: -.42em; transform-origin: 0 0;
  font: 700 clamp(27px, 7.1vw, 150px)/.84 var(--sans); letter-spacing: -.055em; text-transform: uppercase; white-space: nowrap;
  color: var(--frost); transition: color .4s var(--ease); will-change: transform; }
body.on-light .brand { color: var(--light-fg); }

/* ---------- hero ---------- */
.hero { position: relative; height: 185vh; background: var(--ink); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000 url("../../glass-house-hero-poster.jpg") center / cover; }
.stage__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,8,12,.45) 0%, rgba(7,8,12,0) 24%, rgba(7,8,12,0) 50%, rgba(7,8,12,.55) 100%); }
.stage__dim { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
.tagline { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; display: grid; justify-items: end; gap: 14px; text-align: right; transform-origin: 100% 0; }
.tagline .mark { font-size: clamp(44px, 4.2vw, 68px); }
.tagline p { font: 600 clamp(13px, 1.05vw, 16px)/1.15 var(--sans); text-transform: uppercase; letter-spacing: -.005em; }
.meta { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 150px); bottom: 20px; display: flex; align-items: center; gap: 12px; color: var(--steel); }
.meta .chip { color: var(--frost); }
.meta__tc { font-variant-numeric: tabular-nums; }
.meta__rec { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.meta__play { margin-left: auto; color: var(--frost); }
.meta__play svg, .reelcard .pill svg { width: 9px; height: 10px; fill: currentColor; }

/* the lead headline: rises with the hero, pins under the header, and turns dark as the light section slides beneath it */
.lead { position: fixed; z-index: 30; left: var(--gutter); top: 0; width: min(calc(100vw - 560px - var(--gutter) * 2 - 80px), 980px);   /* stays clear of the intro's right column */ pointer-events: none; will-change: transform; visibility: hidden; }
.lead__copy { font: 700 clamp(34px, 4.4vw, 74px)/.93 var(--sans); letter-spacing: -.045em; text-transform: uppercase; }
.lead__copy em { font-style: normal; }
.lead__sub { margin-top: 18px; max-width: 46ch; }
.lead__layer { color: var(--frost); }
.lead__layer em { color: var(--ice); }
.lead__layer--dark { position: absolute; inset: 0; color: var(--light-fg); clip-path: inset(100% 0 0 0); }
.lead__layer--dark em { color: var(--signal); }
:root[data-mode="dark"] .lead__layer--dark em { color: var(--ice); }

/* ---------- intro ---------- */
.intro { z-index: 2; min-height: 175vh; padding: 52vh var(--gutter) 22vh; display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 40px; }
.intro__body { grid-column: 2; display: grid; gap: 22px; align-content: start; }
.intro__lede { font: 500 clamp(19px, 1.6vw, 24px)/1.3 var(--sans); letter-spacing: -.02em; }
.intro__body p { max-width: 52ch; }
.intro__body .pill { justify-self: start; margin-top: 18px; }
.intro__q { font-weight: 600; }

/* ---------- statement ---------- */
.statement { position: relative; height: 100vh; min-height: 620px; overflow: hidden; display: grid; align-items: center; padding: 0 var(--gutter); }
.media-par { position: absolute; inset: 0; overflow: hidden; }
.media-par > :first-child { position: absolute; left: 0; right: 0; top: -10%; height: 120%; width: 100%; object-fit: cover; }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,48,.55), rgba(5,10,48,.05) 70%); pointer-events: none; }
.statement__copy { position: relative; z-index: 1; max-width: 18em; font: 700 clamp(30px, 3.6vw, 60px)/.96 var(--sans); letter-spacing: -.04em; text-transform: uppercase; }
.statement__copy span { display: block; }
.statement__copy .dim { color: rgba(238,242,247,.55); }

/* ---------- services ---------- */
.services { position: relative; padding: 14vh var(--gutter) 18vh; display: grid; grid-template-columns: 1fr minmax(0, 460px) 120px; gap: 40px; }
.services__title { position: sticky; top: 86vh; align-self: start; transform: translateY(-100%); }
.services__list { list-style: none; padding: 0; display: grid; }
.services__item { padding: 34px 0 38px; position: relative; }
.services__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(var(--bar, 1)); transform-origin: 0 50%; }
.services__item h3 { font: 600 15px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 14px; }
.services__item p { color: rgba(238,242,247,.66); max-width: 34ch; }
.services__item .round { margin-top: 18px; }
.services__mark { position: sticky; top: 45vh; align-self: start; justify-self: end; font-size: 56px; }

/* ---------- work: project cards are glass panes, tags float on the footage ---------- */
.work { padding: 16vh var(--gutter) 14vh; }
.work__head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; margin-bottom: 9vh; }
.work__head .mark { font-size: 34px; margin-top: 6px; }
.work__intro { grid-column: 2; display: grid; gap: 14px; max-width: 46ch; margin-top: 2vh; }
.work__lede { font: 500 clamp(18px, 1.5vw, 22px)/1.35 var(--sans); letter-spacing: -.02em; }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.card { position: relative; display: grid; padding: 10px; border-radius: 26px; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 17px; background: #c9cfd9; }
.card__media video { transition: scale 1.2s var(--ease); scale: 1.04; }
.card:hover .card__media video { scale: 1.09; }
.card__chips { position: absolute; z-index: 2; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; color: var(--frost); }
.card__body { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: end; padding: 18px 10px 10px; }
.card__title { font: 700 clamp(18px, 1.6vw, 25px)/1.02 var(--sans); letter-spacing: -.025em; text-transform: uppercase; max-width: 30ch; }
.card__result { grid-column: 1; opacity: .62; }
.card__body .round { grid-row: 1 / 3; grid-column: 2; }
.work__more { display: flex; justify-content: center; margin-top: 10vh; }

/* ---------- method ---------- */
.method { position: relative; height: 420vh; background: #000; }
.method__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0 var(--gutter); }
.method__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.method__sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 30% 55%, rgba(0,0,0,.6), transparent 60%); }
.method__top { position: absolute; top: 96px; left: var(--gutter); right: var(--gutter); z-index: 1; display: flex; justify-content: space-between; color: var(--frost); }
.method__intro { position: relative; z-index: 1; display: grid; gap: 22px; max-width: 520px; }
.method__intro .display { font-size: clamp(30px, 3.2vw, 52px); }
.method__intro p { color: rgba(238,242,247,.7); max-width: 44ch; }
.steps { position: relative; z-index: 1; list-style: none; padding: 0; justify-self: end; }
.steps li { display: flex; align-items: baseline; gap: 16px; font: 700 clamp(30px, 3.6vw, 60px)/1 var(--sans); letter-spacing: -.04em; text-transform: uppercase;
  color: rgba(238,242,247,.18); transition: color .6s var(--ease), transform .6s var(--ease); }
.steps li .label { color: var(--steel); width: 3ch; }
.steps li.is-active { color: var(--frost); transform: translateX(-14px); }
.method__progress { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: rgba(238,242,247,.14); }
.method__progress i { position: absolute; inset: 0; background: var(--frost); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- reel card ---------- */
.reelrow { padding: 16vh var(--gutter); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.reelcard { position: relative; aspect-ratio: 4 / 5; max-height: 86vh; border-radius: 24px; overflow: hidden; background: #000; cursor: pointer; }
.reelcard .media-par > :first-child { transition: scale 1.2s var(--ease); }
.reelcard:hover .media-par > :first-child { scale: 1.04; }
.reelcard .pill { position: absolute; z-index: 2; left: 20px; bottom: 20px; color: var(--frost); }
.reelrow__copy { display: grid; gap: 22px; justify-items: start; }
.reelrow__copy p { max-width: 42ch; }

/* ---------- needs: glass cards over the ambient field ---------- */
.needs { padding: 4vh var(--gutter) 16vh; }
.needs__head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 18px; margin-bottom: 26px; }
.needs__head .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.needs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.need { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 420px; padding: 24px; border-radius: 26px; transition: translate .7s var(--jelly); }
.need:hover { translate: 0 -6px; }
.need h3 { font: 700 clamp(18px, 1.5vw, 23px)/1.05 var(--sans); text-transform: uppercase; letter-spacing: -.02em; }
.need__foot { display: flex; justify-content: space-between; align-items: end; }
.need .mark { font-size: 30px; }
.need[data-tint="navy"] { color: var(--frost); }
.need[data-tint="ice"] { color: var(--navy); }
.needs__more { display: flex; justify-content: center; margin-top: 8vh; }

/* ---------- craft ---------- */
.craft { position: relative; min-height: 120vh; padding: 18vh var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; overflow: hidden; }
.craft__copy { position: relative; z-index: 1; display: grid; gap: 26px; justify-items: start; }
.craft__copy .display { font-size: clamp(28px, 2.9vw, 48px); line-height: .98; }
.craft__copy p { color: rgba(238,242,247,.66); }
.craft__frame { position: relative; height: 92vh; }
.craft__media > img { object-position: 60% 50%; }   /* the figure stands right of centre in the photo; keep him in frame on narrow crops */
.craft__media { border-radius: 26px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); }
.craft__chip { position: absolute; z-index: 2; color: var(--frost); }
.craft__chip:nth-of-type(1) { left: 8%; top: 30%; }
.craft__chip:nth-of-type(2) { right: 10%; top: 52%; }
.craft__chip:nth-of-type(3) { left: 18%; top: 70%; }

/* ---------- journal ---------- */
.journal { padding: 16vh var(--gutter) 14vh; }
.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 9vh; }
.post { display: grid; gap: 14px; }
.post__media { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.post:hover .post__media img { scale: 1.05; }
.post__media .chip { position: absolute; z-index: 2; left: 12px; top: 12px; color: var(--frost); }
.post__meta { opacity: .66; }
.post h3 { font: 700 clamp(17px, 1.4vw, 22px)/1.08 var(--sans); text-transform: uppercase; letter-spacing: -.02em; }
.journal__lede { max-width: 52ch; margin-top: 22px; }

/* ---------- contact: the floating glass UI over the footage ---------- */
.contact { position: relative; min-height: 100vh; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 40px; overflow: hidden; }
.contact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,48,.55), rgba(5,10,48,.05) 70%); pointer-events: none; }
.contact__copy, .chat { position: relative; z-index: 1; }
.contact__copy { display: grid; gap: 24px; justify-items: start; }
.chat { display: grid; gap: 14px; padding: 18px; border-radius: 28px; color: var(--frost); }
.chat__who { display: flex; gap: 12px; align-items: center; }
.chat__who .mark { font-size: 22px; }
.chat__who b { display: block; font-weight: 600; font-size: 14px; }
.chat__bubble { justify-self: start; padding: 12px 16px; border-radius: 18px 18px 18px 6px; font-size: 14px; }
.chat form { position: relative; display: flex; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; }
.chat input { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--frost); background: none; border: 0; outline: none; }
.chat input::placeholder { color: rgba(238,242,247,.7); }
.chat form button { width: 38px; height: 38px; border-radius: 50%; background: var(--frost); color: var(--navy); display: grid; place-items: center; transition: scale .6s var(--jelly); }
.chat form button:hover { scale: 1.08; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--frost); padding: 14vh var(--gutter) 0; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-bottom: 10vh; }
.foot__nav { grid-column: 2; display: grid; font: 700 clamp(28px, 3vw, 46px)/1 var(--sans); letter-spacing: -.04em; text-transform: uppercase; }
.foot__nav a { width: fit-content; transition: color .3s, translate .6s var(--jelly); }
.foot__nav a:hover { color: var(--ice); translate: 8px 0; }
.foot__side { display: grid; gap: 10px; align-content: start; justify-items: start; color: var(--steel); }
.foot__side .pill { color: var(--frost); }
.foot__cols { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8vh; color: var(--steel); }
.foot__cols b { display: block; color: var(--frost); font-weight: 400; margin-bottom: 8px; }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(238,242,247,.12); color: var(--steel); }
.foot__band { margin: 0 calc(var(--gutter) * -1); background: var(--ice); color: var(--navy); overflow: hidden; }
.foot__word { display: block; font: 800 8.9vw/.8 var(--sans); letter-spacing: -.06em; text-transform: uppercase; white-space: nowrap; text-align: center; padding: .14em 0 .08em; }

/* ---------- fixed glass bits ---------- */
.mode { position: fixed; z-index: 45; right: var(--gutter); bottom: 20px; display: flex; gap: 8px; align-items: center; padding: 11px 15px; border-radius: 999px; color: var(--frost); }
body.on-light .mode { color: var(--light-fg); }
.mode i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* the cursor is a liquid lens: it appears over footage and project cards and magnifies what's under it */
.lens { position: fixed; left: 0; top: 0; z-index: 35; width: 116px; height: 116px; margin: -58px 0 0 -58px; border-radius: 50%; pointer-events: none;
  display: grid; place-items: center; text-align: center; opacity: 0; color: var(--frost); text-shadow: 0 1px 8px rgba(5,10,48,.45);
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(var(--s, .4)); transition: opacity .3s ease; }
.lens.is-on { opacity: 1; }
.no-gl .lens { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), rgba(255,255,255,.05) 60%); }
@media (hover: hover) and (pointer: fine) { [data-cursor] { cursor: none; } }

/* mobile menu: a floating glass sheet */
.menu { position: fixed; inset: 10px; z-index: 39; border-radius: 30px; color: var(--frost); padding: 100px 26px 28px; display: grid; align-content: space-between;
  opacity: 0; visibility: hidden; scale: .96; transition: opacity .5s var(--ease), scale .7s var(--jelly), visibility 0s .5s; }
.menu.is-open { opacity: 1; visibility: visible; scale: 1; transition: opacity .5s var(--ease), scale .7s var(--jelly); }
.menu nav { display: grid; font: 700 clamp(40px, 11vw, 72px)/1 var(--sans); letter-spacing: -.045em; text-transform: uppercase; }

/* the reel opens in a glass window over the dimmed page */
.reel { width: min(1180px, 92vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--frost); overflow: visible; }
.reel::backdrop { background: rgba(5, 10, 48, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.reel__window { position: relative; padding: 12px; border-radius: 32px; }
.reel video { width: 100%; aspect-ratio: 16 / 9; border-radius: 21px; object-fit: cover; background: #000; }
.reel__close { position: absolute; z-index: 2; top: 26px; right: 26px; color: var(--frost); }

/* ---------- responsive ---------- */
@media (hover: none), (pointer: coarse) { .lens { display: none; } }
@media (max-width: 900px) {
  .head { grid-template-columns: 1fr auto; }
  .head__nav { display: none; }
  .head__menu { display: inline-flex; }
  .head__cta { display: none; }
  .head__world { display: none; }
  .tagline { top: auto; bottom: 150px; translate: none; }
  .meta { right: var(--gutter); bottom: 76px; }
  .lead { width: calc(100vw - var(--gutter) * 2); }
  .intro { grid-template-columns: 1fr; padding-top: 70vh; padding-bottom: 14vh; min-height: 0; }
  .intro__body { grid-column: 1; }
  .services { grid-template-columns: 1fr; }
  .services__title { position: static; transform: none; }
  .services__mark { display: none; }
  .work__head { grid-template-columns: 1fr; }
  .work__intro { grid-column: auto; }
  .work__grid, .reelrow, .craft, .contact { grid-template-columns: 1fr; }
  .needs__grid { grid-template-columns: 1fr 1fr; }
  .need { min-height: 320px; }
  .journal__grid { grid-template-columns: 1fr; }
  .method__sticky { grid-template-columns: 1fr; align-content: center; gap: 48px; }
  .method__canvas { opacity: .5; }
  .steps { justify-self: start; }
  .craft__frame { height: 60vh; }
  .contact { padding: 16vh var(--gutter); }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__nav, .foot__cols { grid-column: 1; }
  .meta__label { display: none; }
}
@media (max-width: 560px) {
  .needs__grid, .needs__head, .foot__cols { grid-template-columns: 1fr; }
  .card__chips .chip:nth-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .meta__rec { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* =====================================================================
   SUBPAGES
   ===================================================================== */

/* any section can host an ambient field (dark sections get the deep palette) */
section:has(> .ambient) { position: relative; overflow: hidden; }

/* on subpages the wordmark simply lives in the header */
.brand--static { font-size: 15px; top: 39px; }
.head__nav a[aria-current="page"] { opacity: 1; }
.head__nav a[aria-current="page"]::after { transform: scaleX(1); }

/* page-to-page curtain */
.curtain { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: var(--navy); color: var(--frost); transform: translateY(100%); pointer-events: none; }
.curtain .mark { font-size: 54px; }
.curtain.is-cover { transform: none; }

/* page hero */
.phero { min-height: 86vh; padding: 24vh var(--gutter) 9vh; display: grid; align-content: end; gap: 28px; }
.phero__crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--steel); }
.phero__crumbs a:hover { color: var(--fg); }
.phero__title { font: 700 clamp(46px, 8.4vw, 150px)/.86 var(--sans); letter-spacing: -.055em; text-transform: uppercase; max-width: 13em; }
.phero__title em { font-style: normal; color: var(--accent); }
.phero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.phero__lede { font: 500 clamp(18px, 1.5vw, 23px)/1.35 var(--sans); letter-spacing: -.02em; max-width: 40ch; }
.phero__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.phero--media { min-height: 100vh; color: var(--frost); }
.phero--media .media-par::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,10,48,.35), rgba(5,10,48,.05) 40%, rgba(5,10,48,.7)); }

/* generic blocks */
.block { padding: 14vh var(--gutter); }
.block--tight { padding-top: 6vh; }
.block__head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; margin-bottom: 8vh; }
.block__head .mark { font-size: 34px; margin-top: 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding: 7vh 0; border-top: 1px solid var(--line); }
.split:first-child { border-top: 0; }
.split__label { position: sticky; top: 110px; align-self: start; display: grid; gap: 10px; }
.split__label .display { font-size: clamp(26px, 2.6vw, 42px); }
.split__body { display: grid; gap: 18px; font: 400 clamp(17px, 1.3vw, 20px)/1.5 var(--sans); max-width: 42em; }
.split__body .big { font: 500 clamp(21px, 1.9vw, 30px)/1.25 var(--sans); letter-spacing: -.02em; }
.band { position: relative; height: 92vh; min-height: 520px; overflow: hidden; }
.band .chip { position: absolute; z-index: 2; left: var(--gutter); bottom: 28px; color: var(--frost); }

/* meta panel (case studies, articles) */
.meta-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 22px 26px; border-radius: 26px; color: var(--frost); }
.meta-panel dt { color: var(--steel); margin-bottom: 8px; }
.meta-panel dd { margin: 0; font: 500 15px/1.35 var(--sans); }
[data-theme="light"] .meta-panel { color: var(--fg); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.gallery figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; }
.gallery figure:nth-child(4n + 1) { grid-column: span 4; }
.gallery figure:nth-child(4n + 2) { grid-column: span 2; aspect-ratio: auto; }
.gallery figure:nth-child(4n + 3) { grid-column: span 3; }
.gallery figure:nth-child(4n + 4) { grid-column: span 3; }
.gallery figure:only-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.gallery figure .chip { position: absolute; z-index: 2; left: 12px; bottom: 12px; color: var(--frost); }

/* next project / next article */
.next { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; padding: 12px; border-radius: 30px; }
.next__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; }
.next__copy { display: grid; gap: 14px; padding: 12px 18px; justify-items: start; }
.next__copy .display { font-size: clamp(28px, 3.4vw, 56px); }

/* services index rows */
.svc-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr) 44px; gap: 28px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .7s var(--jelly); }
.svc-row:hover { padding-left: 14px; }
.svc-row h2 { font: 700 clamp(26px, 3.2vw, 52px)/.95 var(--sans); letter-spacing: -.045em; text-transform: uppercase; }
.svc-row p { opacity: .72; max-width: 44ch; }
.svc-row .label { color: var(--steel); }

/* service page: what's included */
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.item { display: grid; gap: 14px; align-content: start; min-height: 220px; padding: 24px; border-radius: 26px; }
.item h3 { font: 700 clamp(18px, 1.5vw, 23px)/1.05 var(--sans); text-transform: uppercase; letter-spacing: -.02em; }
.item p { opacity: .75; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principle { display: grid; gap: 16px; align-content: start; min-height: 360px; padding: 26px; border-radius: 28px; color: var(--frost); }
.principle .display { font-size: clamp(28px, 2.8vw, 46px); }
.principle p { opacity: .78; }
.principle__lead { font: 500 clamp(18px, 1.4vw, 22px)/1.3 var(--sans); letter-spacing: -.015em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* studio: personality marquee */
.marquee { overflow: hidden; padding: 6vh 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; gap: .6em; width: max-content; font: 700 clamp(48px, 8vw, 140px)/1 var(--sans); letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; will-change: transform; }
.marquee__track span:nth-child(even) { color: var(--accent); }

/* work: client logo strip (drifts continuously, pauses on hover) */
.logos { padding: 6vh 0; border-bottom: 1px solid var(--line); }
.logos__head { display: flex; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); margin-bottom: 4vh; }
.logos__title { font: inherit; }
.logos__viewport { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos__track { display: flex; width: max-content; animation: logos-drift var(--dur, 48s) linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__item { display: flex; align-items: center; height: clamp(40px, 4.4vw, 64px); padding: 0 clamp(28px, 4vw, 64px); font-size: clamp(20px, 2.1vw, 32px); }
.logos__name { font: 600 .9em/1 var(--sans); letter-spacing: -.035em; white-space: nowrap; opacity: .5; transition: opacity .4s var(--ease); }
/* logos rest in one solid colour (the text colour) so mixed brand colours sit together like the typeset names,
   and show their real colours on hover. Dark mode stays white on hover: many marks are black or navy and would vanish. */
.logos__img { height: calc(var(--s, 1) * 1em); width: auto; opacity: .5; filter: brightness(0); transition: opacity .4s var(--ease), filter .4s var(--ease); }
:root[data-mode="dark"] .logos__img { filter: brightness(0) invert(1); }
.logos__item:hover .logos__name, .logos__item:hover .logos__img { opacity: 1; }
:root:not([data-mode="dark"]) .logos__item:hover .logos__img { filter: none; }
@keyframes logos-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .logos__item.is-dup { display: none; }
}


/* journal */
.post--feature { grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 28px; }
.post--feature .post__media { aspect-ratio: 16 / 9; }
.post--feature h3 { font-size: clamp(26px, 3vw, 46px); line-height: .98; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); padding: 10vh var(--gutter) 14vh; }
.article > * { grid-column: 2; }
.article > .ambient { grid-column: auto; }   /* abs-positioned: span the whole section, not the text column */
.article p { font: 400 clamp(17px, 1.3vw, 20px)/1.65 var(--sans); margin-bottom: 1.3em; }
.article h2 { font: 700 clamp(22px, 2vw, 30px)/1.1 var(--sans); letter-spacing: -.03em; text-transform: uppercase; margin: 1.6em 0 .7em; }
.article blockquote { margin: 1.6em 0; padding: 26px 28px; border-radius: 26px; font: 500 clamp(20px, 1.8vw, 28px)/1.25 var(--sans); letter-spacing: -.02em; }
.article__lede { font: 500 clamp(20px, 1.8vw, 26px)/1.35 var(--sans) !important; letter-spacing: -.02em; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.form { display: grid; gap: 22px; padding: 28px; border-radius: 30px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.form legend, .form label > span { display: block; margin-bottom: 10px; color: var(--steel); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: flex; border-radius: 18px; }
.field input, .field textarea, .field select { width: 100%; font: 400 16px/1.4 var(--sans); color: inherit; background: none; border: 0; outline: none; padding: 15px 18px; resize: vertical; }
.field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.field textarea { min-height: 150px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__note { opacity: .7; max-width: 38ch; }
.details { display: grid; gap: 16px; padding: 26px; border-radius: 30px; position: sticky; top: 100px; }
.details dl { display: grid; gap: 18px; margin: 0; }
.details dt { color: var(--steel); margin-bottom: 6px; }
.details dd { margin: 0; font: 500 18px/1.35 var(--sans); }
.details a:hover { color: var(--accent); }

/* cta band */
.cta { min-height: 80vh; padding: 16vh var(--gutter); display: grid; align-content: center; justify-items: start; gap: 30px; }
.cta .display { font-size: clamp(40px, 6.4vw, 110px); max-width: 12em; }

/* legal + 404 */
.prose { max-width: 720px; display: grid; gap: 16px; }
.prose h2 { font: 700 22px/1.1 var(--sans); text-transform: uppercase; letter-spacing: -.02em; margin-top: 2em; }

@media (max-width: 900px) {
  .phero { min-height: 74vh; padding-top: 20vh; }
  .phero__foot, .split, .next, .contact-grid, .post--feature { grid-template-columns: 1fr; }
  .phero__chips { justify-content: flex-start; }
  .split__label { position: static; }
  .block__head { grid-template-columns: 1fr; }
  .meta-panel { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure { grid-column: auto !important; aspect-ratio: 16 / 10 !important; }
  .svc-row { grid-template-columns: 44px 1fr 44px; }
  .svc-row p { grid-column: 2; }
  .svc-row .round { grid-row: 1; grid-column: 3; }
  .items, .principles { grid-template-columns: 1fr; }
  .principle { min-height: 0; }
  .form .row { grid-template-columns: 1fr; }
  .details { position: static; }
  .band { height: 60vh; }
}

/* content sits above a full-bleed hero image/loop */
.phero--media > :not(.media-par) { position: relative; z-index: 1; }
/* chosen form options read in frost on the navy tint */
.choice.is-on { color: var(--frost); }
.choice { transition: color .3s, scale .7s var(--jelly); }

/* =====================================================================
   MOTION ADDITIONS: focus pull · rising staircase · studio status
   ===================================================================== */

/* focus pull: words start out of focus and rack into sharpness with the scroll (see data-anim="focus") */
[data-anim="focus"] .word { will-change: filter, opacity; }

/* Transparent → Translate → Transform rise as a staircase while the section holds still */
.block--stairs { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding-block: 11vh 9vh; }
.block--stairs .block__head { margin-bottom: 5vh; }
.principles.is-stairs { align-items: end; padding-top: 96px; }
.principles.is-stairs .principle { min-height: 300px; transition: background-color .6s var(--ease); }
.principles.is-stairs .principle > * { transition: opacity .7s var(--ease), color .7s var(--ease); }
.principles.is-stairs .principle:not(.is-lit) > :not(.glass__fx) { opacity: .4; }
.principles.is-stairs .principle.is-lit .display { color: var(--ice); }

/* live studio status: availability + local time, a small broadcast detail that follows you through the site */
.status { position: fixed; z-index: 45; left: var(--gutter); bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 999px;
  color: var(--frost); transition: color .4s var(--ease), opacity .6s var(--ease), visibility .6s; }
body.on-light .status { color: var(--light-fg); }
.status.is-hidden { opacity: 0; visibility: hidden; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; animation: avail 2.4s ease-out infinite; }
.status[data-available="false"] .status__dot { background: #f5b84a; }
@keyframes avail { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } }
.status__time { font-variant-numeric: tabular-nums; opacity: .7; }
@media (max-width: 560px) { .status__time { display: none; } }
@media (prefers-reduced-motion: reduce) { .status__dot { animation: none; } }
