/* Wonder and Wit - design system
   Tokens, base, components, page sections.
   Motion is driven by assets/js/main.js (spring engine). CSS here only sets
   resting states and reduced-motion fallbacks. */

@view-transition { navigation: auto; }

:root {
  /* color */
  --ink: #16131C;
  --ink-2: #0E0B14;
  --ink-3: #221E2B;
  --paper: #FAF8F5;
  --stone: #EDE9E3;
  --mute: #5F5967;
  --mute-on-ink: #B4ADBE;
  --line: #D9D3CB;
  --line-on-ink: rgba(255,255,255,.12);
  --wonder: #B92FD3;
  --violet: #8B5CD6;
  --wit: #5FC3CF;
  --lime: #A9CE6E;
  --white: #fff;
  --gradient: linear-gradient(120deg, #B92FD3 0%, #8B5CD6 38%, #5FC3CF 72%, #A9CE6E 100%);

  /* type */
  --serif: "freight-big-pro", "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "filson-pro", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(3rem, 8.4vw, 8.25rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 5rem);
  --fs-h2: clamp(2rem, 3.8vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-body: clamp(1.0625rem, 1.1vw, 1.125rem);
  --fs-small: .9375rem;
  --fs-eyebrow: .875rem;

  /* space */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;
  --section: clamp(4.5rem, 10vw, 8rem);
  --gutter: clamp(1rem, 3vw, 1.5rem);
  --max: 77.5rem;

  --r-card: 1.25rem;
  --r-field: .75rem;
  --r-pill: 999px;

  --shadow-lift: 0 30px 60px -20px rgba(22,19,28,.28), 0 12px 24px -12px rgba(22,19,28,.18);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --header-h: 4.5rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-optical-sizing: auto;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--wonder); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; left: var(--s4); top: var(--s4); z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--r-pill);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, .h1, .h2 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: .98; letter-spacing: -.035em; font-variation-settings: "opsz" 144, "SOFT" 30; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.025em; font-variation-settings: "opsz" 100; }
.h3 { font: 600 var(--fs-h3)/1.25 var(--sans); letter-spacing: -.01em; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--mute); max-width: 38ch; text-wrap: pretty; }
.section--ink .lead, .theme-ink .lead { color: var(--mute-on-ink); }
.eyebrow {
  font: 500 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); display: inline-flex; align-items: center; gap: .625rem; margin: 0 0 var(--s5);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: .6; }
.section--ink .eyebrow, .theme-ink .eyebrow { color: rgba(255,255,255,.72); }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 300; }
.grad-text {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 100% 100%; padding-right: .06em;
}
p { margin: 0 0 1em; }
.prose p { max-width: 62ch; text-wrap: pretty; }
.small { font-size: var(--fs-small); }

/* placeholders: content still to come from the client */
.ph {
  display: inline-block; font: 500 .875rem/1.3 var(--sans); letter-spacing: .02em;
  color: var(--violet); background: rgba(139,92,214,.08);
  border: 1px dashed rgba(139,92,214,.55); border-radius: .5rem; padding: .2em .55em; vertical-align: middle;
  white-space: normal;
}
.section--ink .ph, .theme-ink .ph { color: #D8C4FF; background: rgba(216,196,255,.08); border-color: rgba(216,196,255,.4); }
.ph-block {
  border: 1.5px dashed rgba(139,92,214,.45); border-radius: var(--r-card); padding: var(--s6);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(139,92,214,.04) 14px 28px);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; will-change: transform;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(250,248,245,.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(22,19,28,.06);
  transition: opacity .3s var(--ease-out), background-color .3s var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header[data-tone="ink"] { color: #fff; }
.site-header[data-tone="ink"]::before { background: rgba(14,11,20,.6); border-bottom-color: rgba(255,255,255,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark, .brand__type {
  background: currentColor; display: block;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.brand__mark { width: 2.1rem; aspect-ratio: 488 / 336; }
.brand__type { width: 9.5rem; aspect-ratio: 1808 / 211; }
.nav { display: flex; align-items: center; gap: var(--s2); }
.nav__link {
  position: relative; padding: .55rem .9rem; border-radius: var(--r-pill); font-weight: 500; font-size: .975rem;
  transition: background-color .2s var(--ease-out);
}
.nav__link:hover { background: rgba(22,19,28,.06); }
.site-header[data-tone="ink"] .nav__link:hover { background: rgba(255,255,255,.1); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: .2rem; width: 4px; height: 4px; border-radius: 50%;
  background: var(--wonder); transform: translateX(-50%);
}
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; position: relative; }
.menu-btn span { position: absolute; left: 50%; width: 1.25rem; height: 1.5px; background: currentColor; transform: translateX(-50%); transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.menu-btn span:nth-child(1) { top: 42%; }
.menu-btn span:nth-child(2) { top: 58%; }
.menu-open .menu-btn span:nth-child(1) { top: 50%; transform: translateX(-50%) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 50%; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink-2); color: #fff;
  padding: calc(var(--header-h) + var(--s6)) var(--gutter) var(--s7);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 2.6rem) 2.25rem); visibility: hidden;
}
.mobile-menu a.mm-link { font: 400 clamp(2.5rem, 11vw, 3.75rem)/1.1 var(--serif); letter-spacing: -.02em; display: block; padding: .15em 0; }
.mobile-menu .mm-foot { color: var(--mute-on-ink); font-size: var(--fs-small); display: grid; gap: .35rem; }
.menu-open .site-header { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--wonder); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .85rem 1.5rem; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; letter-spacing: -.005em;
  isolation: isolate; overflow: hidden; white-space: nowrap; will-change: transform;
  transition: box-shadow .3s var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gradient);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.btn:hover::before { opacity: 1; }
.btn:hover { box-shadow: 0 14px 34px -12px rgba(185,47,211,.6); }
.btn .btn__arrow { width: 1rem; height: 1rem; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--secondary { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--secondary::before { background: var(--ink); }
.btn--secondary:hover { --fg: #fff; box-shadow: none; }
.theme-ink .btn--secondary, .section--ink .btn--secondary { --fg: #fff; }
.theme-ink .btn--secondary::before, .section--ink .btn--secondary::before { background: #fff; }
.theme-ink .btn--secondary:hover, .section--ink .btn--secondary:hover { --fg: var(--ink); }
.btn--white { --bg: #fff; --fg: var(--ink); }
.btn--white::before { background: var(--ink); }
.btn--white:hover { --fg: #fff; box-shadow: 0 14px 34px -12px rgba(0,0,0,.45); }
.btn--sm { min-height: 2.5rem; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn__label { opacity: .0; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.link-arrow svg { width: 1rem; height: 1rem; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow .u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease-out); }
.link-arrow:hover .u { background-size: 100% 1.5px; }

/* ---------- reveal primitives (JS sets data-in) ---------- */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }
.js .split .word > span { display: inline-block; transform: translateY(105%); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  background: var(--ink-2); color: #fff; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + var(--s8)) 0 clamp(3rem, 8vh, 5.5rem);
}
.aurora { position: absolute; inset: -20%; z-index: -2; pointer-events: none; }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .85; will-change: transform; mix-blend-mode: screen; }
.aurora__blob--1 { width: 52vmax; height: 52vmax; left: 8%; top: 4%; background: radial-gradient(circle at 50% 50%, #B92FD3 0%, rgba(185,47,211,0) 65%); }
.aurora__blob--2 { width: 46vmax; height: 46vmax; right: 2%; top: 18%; background: radial-gradient(circle, #5FC3CF 0%, rgba(95,195,207,0) 62%); }
.aurora__blob--3 { width: 38vmax; height: 38vmax; left: 34%; bottom: 0%; background: radial-gradient(circle, #8B5CD6 0%, rgba(139,92,214,0) 64%); }
.aurora__blob--4 { width: 26vmax; height: 26vmax; right: 22%; bottom: 8%; background: radial-gradient(circle, #A9CE6E 0%, rgba(169,206,110,0) 64%); opacity: .55; }
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__vignette { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 10%, transparent 30%, rgba(14,11,20,.75) 100%); }
.hero__inner { position: relative; will-change: transform, opacity; }
.hero__mark { width: clamp(4rem, 8vw, 6.5rem); margin-bottom: var(--s6); position: relative; color: #fff; }
.hero__mark svg { width: 100%; height: auto; overflow: visible; }
.hero__mark path { fill: none; stroke: currentColor; stroke-width: 14; stroke-linecap: square; stroke-linejoin: miter; }
.hero .display { max-width: 13ch; }
.hero .display .serif-i { font-weight: 300; }
.hero__foot { display: flex; flex-wrap: wrap; gap: var(--s6) var(--s8); align-items: end; justify-content: space-between; margin-top: var(--s7); }
.hero__sub { max-width: 34rem; font-size: var(--fs-lead); line-height: 1.5; color: rgba(255,255,255,.78); margin: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); width: 1px; height: 3rem; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.6)); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.4s var(--ease-out) infinite; }
@keyframes cue { to { top: 100%; } }

/* page hero (inner pages) */
.page-hero { position: relative; background: var(--ink-2); color: #fff; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(4rem, 12vh, 8rem)) 0 clamp(3.5rem, 9vh, 6rem); }
.page-hero .aurora { opacity: .7; }
.page-hero .lead { color: rgba(255,255,255,.76); max-width: 40ch; margin-top: var(--s5); }
.page-hero--light { background: var(--paper); color: var(--ink); }
.page-hero--light .lead { color: var(--mute); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(2rem, 5vw, 3.25rem); border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee__label { text-align: center; margin-bottom: var(--s5); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); padding-right: clamp(1.5rem, 3vw, 2.75rem); font: 400 clamp(1.75rem, 3.4vw, 3rem)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.marquee__item i { font-style: italic; font-weight: 300; }
.marquee__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--gradient); flex: none; }
.marquee__note { text-align: center; margin-top: var(--s5); padding-inline: var(--gutter); }

/* ---------- path cards ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); perspective: 1400px; }
.path-card {
  position: relative; display: block; border-radius: calc(var(--r-card) * 1.4); overflow: hidden; min-height: clamp(26rem, 46vw, 38rem);
  background: var(--ink); color: #fff; transform-style: preserve-3d; will-change: transform; isolation: isolate;
}
.path-card__media { position: absolute; inset: -6%; z-index: -2; }
.path-card__media img { width: 100%; height: 100%; object-fit: cover; }
.path-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,11,20,.1) 0%, rgba(14,11,20,0) 28%, rgba(14,11,20,.55) 55%, rgba(14,11,20,.92) 100%); }
.path-card__glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(600px circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.22), transparent 45%); transition: opacity .4s var(--ease-out); }
.path-card:hover .path-card__glare { opacity: 1; }
.path-card__body { position: absolute; inset: auto 0 0 0; padding: clamp(1.5rem, 3vw, 2.5rem); transform: translateZ(40px); }
.path-card__body .h2 { margin-bottom: var(--s3); }
.path-card__body p { color: rgba(255,255,255,.8); max-width: 34ch; margin-bottom: var(--s5); }
.path-card__tag { position: absolute; top: clamp(1.25rem, 2.5vw, 2rem); left: clamp(1.5rem, 3vw, 2.5rem); z-index: 2; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: var(--r-pill); font: 500 .875rem/1 var(--sans); background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); color: #fff; border: 1px solid rgba(255,255,255,.18); }

/* ---------- section heads ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5) var(--s7); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head .h2 { max-width: 16ch; }

/* ---------- rail (draggable work carousel) ---------- */
.rail { position: relative; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rail.is-dragging { cursor: grabbing; }
.rail__viewport { overflow: visible; }
.rail__track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); will-change: transform; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.rail-wrap { overflow: hidden; padding-block: .5rem 1rem; }
.rail__item { flex: 0 0 clamp(17rem, 34vw, 30rem); }
.rail__controls { display: flex; gap: var(--s3); align-items: center; }
.icon-btn { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .25s var(--ease-out), box-shadow .25s; will-change: transform; }
.icon-btn:hover { background: var(--ink); color: #fff; box-shadow: none; }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.rail__progress { height: 2px; background: var(--line); border-radius: 2px; margin-top: var(--s6); overflow: hidden; }
.rail__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.1); }

/* ---------- project card ---------- */
.p-card { display: block; position: relative; }
.p-card__media { position: relative; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 4 / 5; background: var(--c, var(--stone)); isolation: isolate; }
.p-card--wide .p-card__media { aspect-ratio: 3 / 2; }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease-out); will-change: transform; -webkit-user-drag: none; }
.p-card:hover .p-card__media img { transform: scale(1.08); }
.p-card__meta { display: flex; justify-content: space-between; gap: var(--s4); align-items: baseline; margin-top: var(--s4); }
.p-card__name { font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.15 var(--serif); letter-spacing: -.015em; margin: 0; }
.p-card__line { color: var(--mute); margin: .3rem 0 0; font-size: var(--fs-small); }
.p-card__tags { color: var(--mute); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.p-card__view { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.p-card:hover .p-card__view, .p-card:focus-visible .p-card__view { opacity: 1; transform: none; }

/* cursor pill that follows pointer inside [data-cursor] areas */
.cursor-pill {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  padding: .7rem 1.1rem; border-radius: var(--r-pill); font: 600 .875rem/1 var(--sans); letter-spacing: .02em;
  background: rgba(22,19,28,.72); color: #fff; -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255,255,255,.14);
  opacity: 0; transform: translate3d(-50%,-50%,0) scale(.4); will-change: transform, opacity;
}
@media (hover: none) { .cursor-pill { display: none; } }

/* ---------- scroll-lit statement ---------- */
.statement { font: 400 clamp(1.9rem, 4.2vw, 3.6rem)/1.18 var(--serif); letter-spacing: -.022em; max-width: 24ch; margin: 0; text-wrap: pretty; }
.statement .w { opacity: .16; transition: opacity .25s linear; }
.statement .w.on { opacity: 1; }
.statement-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.statement-body p { color: var(--mute); max-width: 44ch; font-size: var(--fs-lead); line-height: 1.55; }

/* ---------- stacked service cards ---------- */
.stack { position: relative; }
.stack__card {
  position: sticky; top: calc(var(--header-h) + 1.5rem + var(--i) * 1.1rem);
  border-radius: calc(var(--r-card) * 1.5); background: #fff; color: var(--ink);
  min-height: clamp(22rem, 44vw, 28rem); padding: clamp(1.75rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s7); align-items: center;
  box-shadow: 0 1px 0 rgba(22,19,28,.04), 0 30px 60px -40px rgba(22,19,28,.35);
  margin-bottom: clamp(1.5rem, 4vw, 3rem); transform-origin: 50% 0; will-change: transform;
  overflow: hidden;
}
.stack__card:nth-child(2) { background: var(--ink); color: #fff; }
.stack__card:nth-child(3) { background: #F3EDF8; }
.stack__card:nth-child(4) { background: #E8F4F2; }
.stack__card .num { font: 300 italic 1.1rem/1 var(--serif); color: var(--mute); margin-bottom: var(--s5); display: block; }
.stack__card:nth-child(2) .num, .stack__card:nth-child(2) .lead { color: var(--mute-on-ink); }
.stack__card .h2 { margin-bottom: var(--s4); }
.stack__card ul { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.stack__card li { padding: .4rem .8rem; border-radius: var(--r-pill); font-size: .875rem; box-shadow: inset 0 0 0 1px currentColor; opacity: .75; }
.stack__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/3; background: var(--stone); }
.stack__media img { width: 100%; height: 100%; object-fit: cover; }
.stack__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); position: relative; padding-top: var(--s7); }
.process__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); overflow: hidden; }
.process__line span { position: absolute; inset: 0; background: var(--gradient); transform-origin: 0 50%; transform: scaleX(0); }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: calc(-1 * var(--s7) - 6px); left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); transition: background .3s, box-shadow .3s; }
.step.is-lit::before { background: var(--wonder); box-shadow: 0 0 0 6px rgba(185,47,211,.15); }
.step__num { font: 300 italic clamp(3rem, 6vw, 4.5rem)/1 var(--serif); color: var(--line); margin-bottom: var(--s4); display: block; transition: color .5s var(--ease-out); }
.step.is-lit .step__num { color: var(--ink); }
.step .h3 { margin-bottom: var(--s3); }
.step p { color: var(--mute); }
.section--stone .step::before { background: var(--stone); }

/* ---------- testimonial ---------- */
.quote { display: grid; grid-template-columns: auto 1fr; gap: var(--s6); align-items: start; }
.quote__mark { font: 300 italic clamp(6rem, 12vw, 10rem)/.7 var(--serif); }
.quote blockquote .ph { font: 400 clamp(1.3rem, 2.4vw, 2rem)/1.3 var(--serif); padding: .35em .7em; letter-spacing: -.01em; }
.quote blockquote { margin: 0; font: 400 clamp(1.6rem, 3vw, 2.5rem)/1.25 var(--serif); letter-spacing: -.015em; }

/* ---------- split / studio teaser ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.media-frame { border-radius: calc(var(--r-card) * 1.4); overflow: hidden; position: relative; background: var(--stone); aspect-ratio: 4/5; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.js [data-clip] { clip-path: inset(18% 12% 18% 12% round 2rem); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ink-2); border-radius: calc(var(--r-card) * 2); padding: clamp(3rem, 9vw, 7rem) clamp(1.5rem, 6vw, 5rem); text-align: center; }
.cta-band .aurora { inset: -30%; }
.cta-band .aurora__blob { filter: blur(70px); }
.cta-band .h1 { max-width: 16ch; margin: 0 auto var(--s5); }
.cta-band p { color: rgba(255,255,255,.78); max-width: 40ch; margin: 0 auto var(--s6); font-size: var(--fs-lead); }
.cta-wrap { padding-block: 0 var(--section); }
.section--ink + .cta-wrap { padding-top: var(--section); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: #fff; padding-top: clamp(4rem, 9vw, 7rem); overflow: hidden; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line-on-ink); }
.footer-grid h2 { font: 400 clamp(1.75rem, 3vw, 2.5rem)/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 var(--s3); }
.footer-grid p { color: var(--mute-on-ink); }
.footer-col h3 { font: 500 var(--fs-eyebrow)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute-on-ink); margin: 0 0 var(--s4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: rgba(255,255,255,.88); transition: color .2s; }
.footer-col a:hover { color: var(--wit); }
.news { display: flex; gap: .5rem; margin-top: var(--s5); max-width: 28rem; position: relative; }
.news input { flex: 1; min-width: 0; height: 3rem; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); padding: 0 1.1rem; color: #fff; transition: border-color .2s, background-color .2s; }
.news input::placeholder { color: rgba(255,255,255,.5); }
.news input:focus { outline: none; border-color: var(--wit); background: rgba(255,255,255,.1); }
.news-msg { min-height: 1.5rem; margin-top: .6rem; font-size: var(--fs-small); color: var(--wit); }
.news-msg.err { color: #FF9EC0; }
.footer-word { padding: clamp(2rem, 5vw, 3rem) 0 0; overflow: hidden; }
.footer-word__type { width: 100%; aspect-ratio: 1808/211; background: var(--gradient); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; will-change: transform; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; padding: var(--s5) 0 var(--s6); color: var(--mute-on-ink); font-size: var(--fs-small); }

/* ---------- work index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter { padding: .6rem 1.1rem; border-radius: var(--r-pill); font-weight: 500; font-size: .9375rem; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .25s var(--ease-out), color .25s, box-shadow .25s; }
.filter:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.filter--link::after { content: " \2197"; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2vw, 1.5rem); }
.work-grid > * { grid-column: span 4; }
.work-grid > .is-wide { grid-column: span 8; }
.work-grid > .is-wide .p-card__media { aspect-ratio: auto; height: calc(100% - 5.5rem); min-height: 20rem; }
.work-grid > .is-hidden { display: none; }
.work-count { color: var(--mute); font-size: var(--fs-small); }

/* ---------- case study ---------- */
.cs-hero { position: relative; height: 100svh; min-height: 36rem; overflow: hidden; background: var(--ink-2); color: #fff; isolation: isolate; }
.cs-hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.cs-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,11,20,.35) 0%, rgba(14,11,20,0) 35%, rgba(14,11,20,.82) 100%); }
.cs-hero__body { position: absolute; inset: auto 0 0; padding-bottom: clamp(2.5rem, 7vh, 5rem); will-change: transform, opacity; }
.cs-hero__body .display { font-size: clamp(2.75rem, 7vw, 6.5rem); max-width: 16ch; }
.crumb { display: inline-flex; gap: .5rem; align-items: center; color: rgba(255,255,255,.78); font-weight: 500; margin-bottom: var(--s5); }
.crumb a:hover { color: #fff; }
.snapshot { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s6) 0; margin: 0; }
.snapshot dt { font: 500 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: .45rem; }
.snapshot dd { margin: 0; font-weight: 500; }
.cs-text { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.cs-text:last-of-type { border-bottom: 0; }
.cs-text .h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cs-text p { font-size: var(--fs-lead); line-height: 1.55; max-width: 52ch; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.gallery__item { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--c, var(--stone)); cursor: zoom-in; display: block; width: 100%; }
.gallery__item.is-full { grid-column: 1 / -1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.03); }
.next-project { display: block; position: relative; overflow: hidden; border-radius: calc(var(--r-card) * 1.5); color: #fff; background: var(--ink); min-height: clamp(22rem, 46vw, 34rem); isolation: isolate; }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.next-project:hover img { transform: scale(1.05); }
.next-project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,11,20,.85), rgba(14,11,20,.15)); }
.next-project__body { position: absolute; left: clamp(1.5rem, 5vw, 4rem); bottom: clamp(1.5rem, 5vw, 4rem); right: 1.5rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; }
.lightbox.is-open { display: block; }
.lightbox__scrim { position: absolute; inset: 0; background: rgba(14,11,20,.92); opacity: 0; }
.lightbox__img { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; border-radius: var(--r-card); touch-action: none; cursor: grab; user-select: none; -webkit-user-drag: none; }
.lightbox__ui { position: absolute; inset: auto 0 1.5rem; display: flex; justify-content: center; gap: .75rem; opacity: 0; }
.lightbox__ui .icon-btn { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lightbox__ui .icon-btn:hover { background: #fff; color: var(--ink); }
.lightbox__count { align-self: center; color: rgba(255,255,255,.8); font-size: var(--fs-small); min-width: 4rem; text-align: center; }
.lightbox__close { position: absolute; top: 1.25rem; right: 1.25rem; opacity: 0; }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.svc__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.svc__num { font: 300 italic 1.1rem/1 var(--serif); color: var(--mute); display: block; margin-bottom: var(--s4); }
.svc dl { margin: 0; display: grid; gap: var(--s5); }
.svc dt { font: 500 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: .4rem; }
.svc dd { margin: 0; font-size: var(--fs-lead); line-height: 1.5; }
.svc .tagline { font: 400 italic clamp(1.4rem, 2.2vw, 1.85rem)/1.3 var(--serif); margin-top: var(--s5); }
.svc__media { margin-top: var(--s6); border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16/10; background: var(--stone); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.price-card { border-radius: calc(var(--r-card)*1.4); padding: clamp(1.75rem, 4vw, 3rem); background: #fff; box-shadow: 0 30px 60px -40px rgba(22,19,28,.3); }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s5); text-align: left; padding: 1.5rem 0; font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.3 var(--serif); letter-spacing: -.01em; }
.faq__icon { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; transition: background .25s, box-shadow .25s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: .85rem; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); transition: transform .45s var(--ease-out); }
.faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--ink); color: #fff; box-shadow: none; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%,-50%) rotate(0deg); }
.faq__a { overflow: hidden; height: 0; }
.faq__a > div { padding: 0 0 1.5rem; color: var(--mute); max-width: 62ch; font-size: var(--fs-lead); line-height: 1.55; }

/* ---------- real estate ---------- */
.re-hero { min-height: 100svh; display: grid; align-items: center; }
.re-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.collage { position: relative; aspect-ratio: 1 / 1.05; }
.collage__tile { position: absolute; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); will-change: transform; background: var(--ink-3); }
.collage__tile img { width: 100%; height: 100%; object-fit: cover; }
.collage__tile:nth-child(1) { width: 58%; aspect-ratio: 1; left: 0; top: 6%; }
.collage__tile:nth-child(2) { width: 46%; aspect-ratio: 4/5; right: 0; top: 0; }
.collage__tile:nth-child(3) { width: 50%; aspect-ratio: 4/3; left: 14%; bottom: 0; }
.collage__tile:nth-child(4) { width: 34%; aspect-ratio: 1; right: 4%; bottom: 8%; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.who__card { border-radius: calc(var(--r-card) * 1.3); background: #fff; padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: var(--s4); min-height: 20rem; position: relative; overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); will-change: transform; }
.who__card:hover { box-shadow: var(--shadow-lift); }
.who__card .h3 { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.02em; }
.who__card p { color: var(--mute); margin: 0; }
.who__clients { margin-top: auto; font-size: var(--fs-small); color: var(--ink); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }
.who__icon { width: 3rem; height: 3rem; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; color: #fff; }
.who__icon svg { width: 1.4rem; height: 1.4rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.checks li { display: flex; gap: .85rem; align-items: center; font-size: var(--fs-lead); }
.checks svg { flex: none; width: 1.75rem; height: 1.75rem; }
.checks circle { fill: none; stroke: var(--line); stroke-width: 1.5; }
.checks path { fill: none; stroke: var(--wonder); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.checks li.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease-out) var(--d, 0s); }

/* ---------- studio ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.duo__card { border-radius: calc(var(--r-card)*1.4); padding: clamp(2rem, 5vw, 3.5rem); min-height: 24rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.duo__card::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.duo__card--wonder::before { background: radial-gradient(120% 120% at 0% 0%, #B92FD3 0%, #6C2BB8 60%, #2A1747 100%); }
.duo__card--wit::before { background: radial-gradient(120% 120% at 100% 0%, #5FC3CF 0%, #2C7F98 55%, #13283A 100%); }
.duo__word { font: 300 italic clamp(3.5rem, 9vw, 7.5rem)/.9 var(--serif); letter-spacing: -.04em; }
.duo__card p { font-size: var(--fs-lead); line-height: 1.5; max-width: 32ch; color: rgba(255,255,255,.9); margin: 0; }
.team { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.team__card { display: flex; flex-direction: column; gap: var(--s4); }
.team__photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/5; background: #fff; border: 1.5px dashed rgba(139,92,214,.45); display: grid; place-items: center; text-align: center; padding: 1rem; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__name { font: 400 1.6rem/1.15 var(--serif); letter-spacing: -.015em; margin: 0; }
.team__role { color: var(--mute); margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.values .h3 { font: 400 clamp(1.75rem, 2.6vw, 2.25rem)/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: var(--s3); }
.values p { color: var(--mute); }

/* ---------- forms ---------- */
.start-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; gap: var(--s6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.field { display: grid; gap: .5rem; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field .opt { color: var(--mute); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: .85rem 1rem; border-radius: var(--r-field);
  background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316131C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; padding-right: 2.75rem; }
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,214,.15); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #C2185B; }
.field .err { color: #B0124D; font-size: var(--fs-small); min-height: 0; overflow: hidden; }
.field.is-valid input { border-color: #3E9B6E; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { padding: .65rem 1.05rem; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s, transform .15s; user-select: none; }
.chips label:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips input:checked + label { background: var(--ink); color: #fff; box-shadow: none; }
.chips input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 2px; }
.chips label:active { transform: scale(.96); }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; }
.form-foot .small { color: var(--mute); max-width: 32ch; margin: 0; }
.side-card { position: sticky; top: calc(var(--header-h) + 1.5rem); border-radius: calc(var(--r-card) * 1.4); padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.side-card .aurora { inset: -60%; opacity: .55; }
.side-card h2 { font: 400 clamp(1.75rem, 2.6vw, 2.25rem)/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 var(--s3); }
.side-card p { color: rgba(255,255,255,.78); }
.side-card dl { margin: var(--s6) 0 0; padding-top: var(--s5); border-top: 1px solid var(--line-on-ink); display: grid; gap: var(--s4); }
.side-card dt { font: 500 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-on-ink); }
.side-card dd { margin: .25rem 0 0; }
.side-card a:hover { color: var(--wit); }
.form-status { font-weight: 500; }
.form-status.err { color: #B0124D; }

/* thanks */
.thanks-check { width: 6rem; height: 6rem; margin-bottom: var(--s6); }
.thanks-check circle { fill: none; stroke: url(#tg); stroke-width: 3; }
.thanks-check path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.next-steps { list-style: none; counter-reset: s; padding: 0; margin: var(--s6) 0; display: grid; gap: var(--s4); max-width: 40rem; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--s4); align-items: start; font-size: var(--fs-lead); color: rgba(255,255,255,.88); }
.next-steps li::before { content: counter(s); width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; font: 600 .95rem/1 var(--sans); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ink-2); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: var(--header-h) var(--gutter) var(--s8); }
.orb { position: absolute; width: clamp(9rem, 22vw, 15rem); aspect-ratio: 1; border-radius: 50%; left: 0; top: 0; background: radial-gradient(circle at 30% 28%, #fff 0%, #F2B7FF 12%, #B92FD3 38%, #5FC3CF 76%, #A9CE6E 100%); box-shadow: 0 30px 80px -20px rgba(185,47,211,.7), inset -12px -18px 40px rgba(14,11,20,.35); cursor: grab; touch-action: none; will-change: transform; z-index: 1; }
.orb:active { cursor: grabbing; }
.lost__body { position: relative; z-index: 2; pointer-events: none; }
.lost__body .hero__ctas { pointer-events: auto; justify-content: center; margin-top: var(--s6); }
.lost__hint { color: var(--mute-on-ink); margin-top: var(--s5); font-size: var(--fs-small); }

/* privacy */
.legal { max-width: 46rem; }
.legal h2 { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--serif); margin: var(--s7) 0 var(--s4); letter-spacing: -.015em; }
.legal p, .legal li { color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .paths, .split-2, .statement-body, .re-hero__grid, .start-grid, .duo { grid-template-columns: 1fr; }
  .stack__card { grid-template-columns: 1fr; gap: var(--s5); }
  .stack__media { aspect-ratio: 16/9; }
  .process, .who, .values, .team { grid-template-columns: 1fr; }
  .process { padding-top: 0; padding-left: var(--s6); }
  .process__line { left: 0; top: 0; bottom: 0; right: auto; width: 2px; height: auto; }
  .process__line span { transform-origin: 50% 0; }
  .step::before { left: calc(-1 * var(--s6) - 6px); top: .4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .work-grid > *, .work-grid > .is-wide { grid-column: span 6; }
  .work-grid > .is-wide .p-card__media { height: auto; aspect-ratio: 4/5; min-height: 0; }
  .snapshot { grid-template-columns: 1fr 1fr; }
  .cs-text, .svc { grid-template-columns: 1fr; }
  .svc__head { position: static; }
  .side-card { position: static; }
  .collage { max-width: 34rem; }
}
@media (max-width: 600px) {
  :root { --header-h: 4rem; }
  .brand__type { width: 7.75rem; }
  .work-grid > *, .work-grid > .is-wide { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr; }
  .form-row, .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; gap: 0; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .snapshot { grid-template-columns: 1fr; }
}

/* ---------- motion & material preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .split .word > span { transform: none; }
  .js [data-clip] { clip-path: none; }
  .p-card:hover .p-card__media img, .gallery__item:hover img, .next-project:hover img { transform: scale(1.02); }
  .scroll-cue { display: none; }
  @view-transition { navigation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header[data-tone="ink"]::before { background: var(--ink-2); }
  .chip, .cursor-pill, .lightbox__ui .icon-btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
}
@media (prefers-contrast: more) {
  :root { --mute: #3E3946; --line: #9A93A3; }
  .site-header::before { background: var(--paper); backdrop-filter: none; }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22,1,.36,1); }

/* ---------- v2: three disciplines, video, reel, industries ---------- */
.paths--3 { grid-template-columns: repeat(3, 1fr); }
.paths--3 .path-card { min-height: clamp(26rem, 40vw, 36rem); }
.paths--3 .path-card__body .h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
.video-bg { position: relative; width: 100%; height: 100%; overflow: hidden; background: #B92FD3; container-type: size; }
.video-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-bg iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.02); opacity: 0; transition: opacity .8s var(--ease-out);
}
.video-bg iframe.is-loaded { opacity: 1; }
.stack__media .video-bg, .svc__media .video-bg { border-radius: inherit; }
.reel { background: var(--paper); padding-bottom: var(--section); }
.reel__frame { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; color: #fff; display: grid; place-items: center; isolation: isolate; background: #8B5CD6; }
.reel__frame .video-bg { position: absolute; inset: 0; z-index: -2; }
.reel__frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 50% 50%, rgba(14,11,20,.25), rgba(14,11,20,.55)); }
.reel__body { position: relative; text-align: center; padding: var(--gutter); }
.reel__body .display { text-align: center; }
.reel__body .ph { color: #fff; background: rgba(14,11,20,.3); border-color: rgba(255,255,255,.5); }
.industries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.industries li { border-bottom: 1px solid var(--line); }
.industries a { display: grid; grid-template-columns: 1fr auto 1.25rem; gap: var(--s5); align-items: center; padding: clamp(1.25rem, 2.6vw, 2rem) 0; transition: padding .5s var(--ease-out), color .3s; }
.industries span { font: 400 clamp(1.75rem, 3.4vw, 3rem)/1.05 var(--serif); letter-spacing: -.02em; }
.industries small { color: var(--mute); font-size: var(--fs-small); text-align: right; max-width: 28ch; }
.industries svg { width: 1.25rem; height: 1.25rem; opacity: .4; transition: transform .5s var(--ease-out), opacity .3s; }
.industries a:hover { padding-left: 1rem; }
.industries a:hover span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.industries a:hover svg { transform: translateX(4px); opacity: 1; }
@media (max-width: 960px) {
  .paths--3 { grid-template-columns: 1fr; }
  .industries a { grid-template-columns: 1fr 1.25rem; }
  .industries small { grid-column: 1; grid-row: 2; text-align: left; }
  .industries svg { grid-column: 2; grid-row: 1 / span 2; }
}

/* header logo draw-on */
.brand__draw { position: relative; display: block; width: 2.1rem; aspect-ratio: 488 / 336; }
.brand__draw .brand__mark { position: absolute; inset: 0; width: 100%; }
.brand__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.brand__svg path { fill: none; stroke: currentColor; stroke-width: 16; stroke-linecap: square; }
.js .brand__draw.is-drawing .brand__svg { opacity: 1; }
.js .brand__draw.is-drawing .brand__mark { opacity: 0; }

/* home hero photo */
.hero__photo { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 38%; transform-origin: 72% 40%; will-change: transform; }
.hero--photo .aurora { opacity: .32; }
.hero--photo .grain { opacity: .12; }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,11,20,.9) 0%, rgba(14,11,20,.66) 34%, rgba(14,11,20,.14) 64%, rgba(14,11,20,0) 100%),
    linear-gradient(0deg, rgba(14,11,20,.72) 0%, rgba(14,11,20,0) 42%),
    linear-gradient(180deg, rgba(14,11,20,.55) 0%, rgba(14,11,20,0) 22%); }
@media (max-width: 760px) {
  .hero__photo img { object-position: 74% 30%; }
  .hero__shade { background: linear-gradient(0deg, rgba(14,11,20,.94) 0%, rgba(14,11,20,.72) 48%, rgba(14,11,20,.15) 80%, rgba(14,11,20,.45) 100%); }
}
