/* ══════════════════════════════════════════════════════════════════════════
   IMPRESSIVE — public site (redesign 15/09/2026)

   Brief: PLANNING/redesign-motion-2026-09-15/00-brief.md
   Motion lives in motion.js; this file owns layout, type and the resting
   state of every element. Two rules keep the two honest:

   · `.motion` on <html> (set in <head> only when motion will run) is the ONLY
     thing allowed to hide content before it is revealed. No JS, a failed
     library or reduced motion → no class → every word is on screen.
   · Only transform / opacity / clip-path ever animate.

   Shape lock: buttons and chips are full pills, media and panels 18px, big
   feature cards 28px, inputs 12px. Nothing else.
   Consumers: index.html · systems.html · portfolio.html (via _site.html).
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #08080c;
  --bg-2: #0e0d14;
  --panel: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f5f3f8;
  --muted: rgba(245, 243, 248, .66);
  --subtle: rgba(245, 243, 248, .44);

  --fuchsia: #ff1090;
  --pink: #ff2d78;
  --purple: #8b2fc9;
  --magenta: #c009c1;
  --live: #4ade80;
  --build: #fbbf24;
  --grad: linear-gradient(100deg, var(--fuchsia) 0%, var(--purple) 100%);

  --font-display: 'Syne', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-quick: 180ms;

  --gutter: clamp(1.1rem, 4vw, 3rem);
  --maxw: 1440px;
  --nav-h: 68px;

  --r-input: 12px;
  --r: 18px;
  --r-lg: 28px;

  /* z-scale: river < content < nav < menu < grain */
  --z-river: -1;
  --z-nav: 50;
  --z-menu: 60;
  --z-grain: 80;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: normal; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 16, 144, .35); color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.accent { color: var(--pink); }

/* ── Type ────────────────────────────────────────────────────────────────── */
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.2vw, 5rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.tag {
  display: inline-block;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(8, 8, 12, .55); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ── Buttons & links ─────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: 0 1.7rem;
  border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .005em;
  white-space: nowrap;
  /* No transform transition: magnetic buttons are moved by GSAP, and a CSS
     transition on the same property makes the button lag its own cursor. */
  transition: box-shadow .3s var(--ease-out), filter .3s;
}
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 30px -12px rgba(255, 16, 144, .6), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 16px 40px -12px rgba(255, 16, 144, .75), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn:not([data-magnetic]):active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .45s var(--ease-out);
}
.link-arrow span { transition: transform .45s var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover span, a:hover > .stack-body .link-arrow span { transform: translateX(5px); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 12, .72);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.motion .nav { animation: nav-in .9s .2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes nav-in { from { opacity: 0; translate: 0 -100%; } }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: .3rem; }
.nav-link {
  position: relative; padding: .55rem .9rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color var(--t-quick), background-color var(--t-quick);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-link.is-current { color: var(--text); }
.nav-link.is-current::after {
  content: ''; position: absolute; left: 50%; bottom: .2rem; width: 4px; height: 4px;
  border-radius: 50%; background: var(--pink); transform: translateX(-50%);
}
.nav-end { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(8, 8, 12, .5); cursor: pointer;
  position: relative;
}
.nav-burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out);
}
.nav-burger span:first-child { top: 17px; }
.nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: rgba(8, 8, 12, .94);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}
.menu-links { display: flex; flex-direction: column; gap: .2rem; }
.menu-links a {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2.1rem, 9.4vw, 4rem); line-height: 1.12; white-space: nowrap;
}
.menu-foot { display: flex; flex-direction: column; gap: .4rem; color: var(--muted); font-size: .95rem; }
body.menu-open .nav { z-index: calc(var(--z-menu) + 1); background: transparent; border-bottom-color: transparent; }

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 420px) { .nav-end .btn-sm { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────────
   Syne 800 is an extended face: a headline in a half column breaks words. The
   title owns the full width in two lines and the mark sits BEHIND its right end,
   one layer down, so type and mark overlap on purpose instead of fighting for
   columns. */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 3rem;
}
.hero-copy { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 1; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 7.1vw, 7.6rem);
  line-height: .96; letter-spacing: -.045em;
}
.hero-title .line { display: block; overflow: clip; padding-bottom: .09em; margin-bottom: -.09em; }
.w { white-space: nowrap; }
.hero-sub {
  margin-top: clamp(1.4rem, 2.6vw, 2.2rem);
  max-width: 40ch; color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem); font-weight: 500; line-height: 1.6;
}
.hero-cta { margin-top: clamp(1.6rem, 3vw, 2.6rem); display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

.hero-mark {
  grid-column: 2; grid-row: 1; align-self: end; z-index: 0;
  position: relative; width: min(36vw, 540px); aspect-ratio: 1;
  margin-right: -1vw; margin-bottom: -2vw;
  display: grid; place-items: center;
}
.hero-mark::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 16, 144, .30), rgba(139, 47, 201, .14) 55%, transparent 72%);
  filter: blur(8px);
}
.hero-rings { position: absolute; inset: 0; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(255, 45, 120, .22); }
.ring:nth-child(1) { width: 62%; height: 62%; }
.ring:nth-child(2) { width: 81%; height: 81%; border-color: rgba(192, 9, 193, .16); }
.ring:nth-child(3) { width: 100%; height: 100%; border-color: rgba(139, 47, 201, .12); }
.hero-icon { position: relative; width: 42%; will-change: transform; }
.hero-icon img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(255, 16, 144, .35)); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-content: center; padding-bottom: 2.5rem; }
  .hero-copy { grid-row: 2; }
  .hero-mark { grid-column: 1; grid-row: 1; align-self: auto; justify-self: start; width: min(52vw, 280px); margin: 0 0 .5rem -4%; }
  /* "technology." is the widest word in Syne 800: it has to fit a 360px phone. */
  .hero-title { font-size: clamp(2.3rem, 10.2vw, 4.6rem); }
}

/* ── Marquee ─────────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: clamp(1rem, 2vw, 1.6rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set {
  display: flex; align-items: center; flex: none;
  gap: clamp(1.2rem, 3vw, 2.6rem); padding-right: clamp(1.2rem, 3vw, 2.6rem);
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(1.9rem, 5vw, 4.4rem); line-height: 1.1; white-space: nowrap;
}
.marquee-set span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1px rgba(245, 243, 248, .55); }
.marquee-set img { height: .72em; width: auto; opacity: .9; }

/* ── Services ────────────────────────────────────────────────────────────── */
.services { position: relative; padding-top: clamp(5rem, 10vw, 9rem); }
.services-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.pan-track {
  display: flex; gap: clamp(1rem, 2.4vw, 2.2rem);
  width: max-content; padding-inline: var(--gutter);
}
.svc { flex: none; width: clamp(290px, min(40vw, calc((100svh - 19rem) * 1.25)), 660px); }
.svc-media { aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.svc-body { padding-top: 1.2rem; display: grid; gap: .45rem; }
.svc-body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.05; }
.svc-body p { color: var(--muted); max-width: 38ch; }
.pan-progress { height: 2px; margin-top: 2rem; overflow: hidden; }
.pan-progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* Without the engine the row is a real horizontal scroller with snap. */
.motion .pan-viewport { overflow: clip; }
html:not(.motion) .pan-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
html:not(.motion) .pan-viewport::-webkit-scrollbar { display: none; }
html:not(.motion) .svc { scroll-snap-align: start; }
html:not(.motion) .pan-progress { display: none; }
.motion .services.is-pinned { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }

@media (max-width: 767px) {
  .pan-viewport { overflow: visible !important; }
  .pan-track { flex-direction: column; width: auto; padding-inline: var(--gutter); gap: 2.6rem; }
  .svc { width: 100%; }
  .pan-progress { display: none; }
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { position: relative; margin-top: clamp(5rem, 10vw, 9rem); }
.steps-pin {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 4vw;
  align-items: center;
}
.steps-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.9rem); line-height: 1; letter-spacing: -.035em;
  color: var(--muted);
}
.steps-list { display: grid; gap: 2.2rem; padding-left: 2.2rem; }
.step-mask { display: block; overflow: clip; padding-bottom: .08em; }
.step-word {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 7.4vw, 8rem); line-height: .95; letter-spacing: -.05em;
}
.step p { margin-top: .8rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); max-width: 34ch; }
.steps-col { position: relative; }
.steps-rail { position: absolute; left: 0; top: 0; width: 4px; height: 100%; overflow: visible; display: none; }
.rail-bg { stroke: var(--line-2); stroke-width: 2; }
.rail-fill { stroke: var(--pink); stroke-width: 2; }

.motion .steps.is-live .steps-pin { min-height: 100svh; }
.motion .steps.is-live .steps-list { grid-template-areas: 'one'; gap: 0; }
.motion .steps.is-live .step { grid-area: one; }
.motion .steps.is-live .step-word, .motion .steps.is-live .step p { will-change: transform, opacity; }
.motion .steps.is-live .steps-rail { display: block; }
.steps-glow {
  position: absolute; inset: -10% -5%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 50% at 70% 50%, rgba(255, 16, 144, .16), transparent 70%),
    radial-gradient(35% 45% at 30% 60%, rgba(139, 47, 201, .14), transparent 70%);
}

@media (max-width: 860px) {
  .steps-pin { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .step-word { font-size: clamp(2.8rem, 13vw, 7rem); }
  .steps-list { padding-left: 1.4rem; }
}

/* ── Selected work: sticky stack ─────────────────────────────────────────── */
.work { margin-top: clamp(6rem, 12vw, 11rem); }
.steps + .work { margin-top: clamp(2rem, 4vw, 4rem); }
.work .h2 { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.stack { display: grid; gap: 6vh; padding-bottom: 4vh; }
.stack-card {
  --dim: 0;
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
  display: block; overflow: hidden; isolation: isolate;
  height: min(76svh, 720px); border-radius: var(--r-lg);
  background: var(--bg-2); border: 1px solid var(--line);
  transform-origin: center top;
}
.stack-card:nth-child(2) { top: calc(var(--nav-h) + 2.5rem); }
.stack-card:nth-child(3) { top: calc(var(--nav-h) + 3.5rem); }
.stack-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.12); }
.stack-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 8, 12, .92) 8%, rgba(8, 8, 12, .35) 55%, rgba(8, 8, 12, .1));
}
.stack-card::after { content: ''; position: absolute; inset: 0; background: #08080c; opacity: var(--dim); pointer-events: none; }
.stack-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 3.4vw, 3rem); display: grid; gap: .8rem; justify-items: start; }
.stack-body h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.04em; }
.stack-body p { color: var(--muted); max-width: 46ch; font-size: clamp(.98rem, 1.2vw, 1.12rem); }

/* ── Systems list ────────────────────────────────────────────────────────── */
.systems { margin-top: clamp(6rem, 12vw, 11rem); position: relative; }
.systems .h2 { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 14ch; }
.sys-list { border-top: 1px solid var(--line); }
.sys-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 12rem 10rem; gap: 1rem 2rem;
  align-items: center; padding-block: clamp(1.2rem, 2.4vw, 1.9rem);
}
.sys-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.sys-row::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); z-index: 1;
}
.sys-row:hover::before, .sys-row:focus-visible::before { transform: scaleX(1); }
.sys-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 3.2rem); letter-spacing: -.035em; line-height: 1.05;
  transition: transform .5s var(--ease-out), color .3s;
}
.sys-row:hover .sys-name { transform: translateX(.6rem); color: #fff; }
.sys-kind { color: var(--subtle); font-size: .92rem; }
.sys-desc { display: none; }
.status { justify-self: end; display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.is-live { color: var(--live); }
.status.is-live::before { box-shadow: 0 0 0 4px rgba(74, 222, 128, .14); }
.status.is-build { color: var(--build); }

.sys-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 290px; padding: 1rem 1.1rem; border-radius: var(--r);
  background: rgba(16, 14, 24, .78); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
  color: var(--text); font-size: .9rem; line-height: 1.5;
  opacity: 0; visibility: hidden;
}

@media (hover: none), (max-width: 860px) {
  .sys-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sys-kind { grid-column: 1; grid-row: 2; }
  .sys-desc { display: block; grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }
  .status { grid-column: 2; grid-row: 1; }
  .sys-preview { display: none; }
}

/* ── Quote ───────────────────────────────────────────────────────────────── */
.quote {
  margin-top: clamp(6rem, 12vw, 11rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.quote-copy { position: sticky; top: calc(var(--nav-h) + 2rem); }
.quote-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 4.3vw, 4.6rem); line-height: 1; letter-spacing: -.045em;
}
.quote-sub { margin-top: 1.4rem; color: var(--muted); font-size: 1.08rem; max-width: 36ch; }
.quote-contact { margin-top: 2.2rem; display: grid; gap: .55rem; font-size: 1rem; color: var(--muted); }
.quote-contact a { color: var(--text); background: linear-gradient(var(--pink), var(--pink)) left bottom / 0 1px no-repeat; transition: background-size .45s var(--ease-out); }
.quote-contact a:hover { background-size: 100% 1px; }

.quote-panel {
  position: relative; border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2.4rem);
  background: var(--panel); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.qform { display: grid; gap: 1.15rem; }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.qfield { display: grid; gap: .45rem; min-width: 0; }
.qfield label { font-size: .85rem; font-weight: 600; color: var(--text); }
.qfield input, .qfield textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  border-radius: var(--r-input); border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .35); color: var(--text);
  font: 500 1rem/1.4 var(--font-body);
  transition: border-color var(--t-quick), box-shadow var(--t-quick);
}
.qfield textarea { resize: vertical; min-height: 140px; }
.qfield input:focus, .qfield textarea:focus { outline: none; border-color: rgba(255, 45, 120, .7); box-shadow: 0 0 0 4px rgba(255, 45, 120, .14); }
.qfield input[aria-invalid="true"], .qfield textarea[aria-invalid="true"] { border-color: #ff6b8b; }
.field-err { color: #ff8aa5; font-size: .82rem; font-weight: 500; }
.qform-status { min-height: 1.2rem; font-size: .88rem; color: #ff8aa5; text-align: center; }
.qform-status a { color: var(--pink); font-weight: 600; }

.phone { position: relative; display: flex; gap: .5rem; }
.phone-country {
  flex: none; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 52px; padding: 0 .8rem; border-radius: var(--r-input);
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); cursor: pointer; font-size: .95rem;
}
.phone input { flex: 1; min-width: 0; }
.phone-list {
  position: absolute; top: calc(100% + .4rem); left: 0; z-index: 20;
  width: min(300px, 80vw); max-height: 260px; overflow-y: auto; padding: .35rem;
  border-radius: var(--r); background: #15131d; border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); overscroll-behavior: contain;
}
.cs-option { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 10px; cursor: pointer; font-size: .92rem; }
.cs-option:hover, .cs-option.active { background: rgba(255, 45, 120, .12); }
.cs-dial { margin-left: auto; color: var(--subtle); }

.qdone { display: grid; justify-items: center; text-align: center; gap: .8rem; padding: 3rem 1rem; }
.qdone svg { width: 72px; height: 72px; }
.qdone circle { fill: none; stroke: rgba(74, 222, 128, .35); stroke-width: 2; }
.qdone path { fill: none; stroke: var(--live); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.qdone.is-on path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s .15s var(--ease-out); }
.qdone h3 { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -.03em; }
.qdone p { color: var(--muted); max-width: 32ch; }

@media (max-width: 860px) {
  .quote { grid-template-columns: 1fr; }
  .quote-copy { position: static; }
}
@media (max-width: 560px) { .qrow { grid-template-columns: 1fr; } }

/* ── Inner pages: hero ───────────────────────────────────────────────────── */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3.5rem, 9vw, 8rem)); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.page-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 6.2rem); line-height: .98; letter-spacing: -.045em;
  max-width: 15ch;
}
.page-sub { margin-top: 1.4rem; max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); }

/* ── Systems: bento ──────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.4rem); }
.cell {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  grid-column: span 4; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color .4s;
}
.cell::before {
  /* Spotlight: light follows the cursor along the card (motion.js sets --mx/--my). */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 45, 120, .13), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.cell:hover::before { opacity: 1; }
.cell:hover { border-color: rgba(255, 45, 120, .35); }
.cell-feature { grid-column: span 8; grid-row: span 2; min-height: 620px; }
.cell-tall { grid-row: span 1; }
.cell-half { grid-column: span 6; }
.cell-wide { grid-column: 1 / -1; min-height: 240px; }
.cell-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .6; transition: transform 1.2s var(--ease-out); }
.cell:hover .cell-img { transform: scale(1.04); }
.cell::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 8, 12, .94) 10%, rgba(8, 8, 12, .5) 55%, rgba(8, 8, 12, .15)); }
.tone-fuchsia { background: linear-gradient(145deg, #3a0a2a 0%, #1a0c24 60%, #0e0d14 100%); }
.tone-magenta { background: linear-gradient(145deg, #2a0730 0%, #120c1c 70%); }
.tone-teal { background: linear-gradient(145deg, #0d2e3f 0%, #0e1622 70%); }
.tone-plum { background: linear-gradient(145deg, #2e0a2e 0%, #140c1c 70%); }
.cell-body { position: relative; z-index: 2; padding: clamp(1.3rem, 2.4vw, 2.2rem); display: grid; gap: .75rem; justify-items: start; }
.cell-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.cell h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1.02; letter-spacing: -.035em; }
.cell-feature h2 { font-size: clamp(2rem, 4.2vw, 4.2rem); }
.cell p { color: var(--muted); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { font-size: .75rem; font-weight: 600; color: var(--muted); padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.cell-cta { background: radial-gradient(60% 120% at 50% 100%, rgba(192, 9, 193, .22), transparent 70%), var(--bg-2); }
.cell-cta .cell-body { justify-items: center; text-align: center; margin-inline: auto; padding-block: 3rem; }
.cell-cta::after { display: none; }

@media (max-width: 1023px) {
  .cell, .cell-half { grid-column: span 6; }
  .cell-feature { grid-column: 1 / -1; grid-row: auto; min-height: 480px; }
}
@media (max-width: 640px) {
  .cell, .cell-half, .cell-feature { grid-column: 1 / -1; min-height: 0; }
  .cell-feature { min-height: 440px; }
}

/* ── Work: filters + grid ────────────────────────────────────────────────── */
.filters { position: relative; display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.filter { position: relative; z-index: 1; min-height: 40px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; transition: color var(--t-quick); }
.filter:hover, .filter[aria-pressed="true"] { color: #fff; }
.filter-pill { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 8px 22px -10px rgba(255, 16, 144, .7); }
html:not(.motion) .filter[aria-pressed="true"] { background: var(--grad); }
html:not(.motion) .filter-pill { display: none; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.work-cell { --mx: 50%; --my: 50%; position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .4s; }
.work-cell:hover { border-color: rgba(255, 45, 120, .35); }
.work-cell figure { aspect-ratio: 4 / 3; overflow: hidden; }
.work-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.work-cell:hover img { transform: scale(1.06); }
.work-meta { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .5rem; justify-items: start; }
.work-meta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -.03em; line-height: 1.1; }
.work-meta p { color: var(--muted); font-size: .95rem; }
.works-empty { margin-top: 2rem; color: var(--muted); }
.works-empty a { color: var(--pink); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { position: relative; margin-top: clamp(7rem, 14vw, 13rem); padding-bottom: 2rem; overflow: hidden; border-top: 1px solid var(--line); }
.footer-glow {
  position: absolute; left: 50%; bottom: -30%; width: 120%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(192, 9, 193, .22), rgba(139, 47, 201, .08) 50%, transparent 72%);
  pointer-events: none;
}
.footer-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-top: clamp(3rem, 6vw, 5rem); }
.footer-line { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.footer-cols { display: flex; gap: clamp(2.5rem, 7vw, 6rem); }
.footer-col { display: grid; gap: .6rem; align-content: start; color: var(--muted); }
.footer-col a { transition: color var(--t-quick); }
.footer-col a:hover { color: var(--text); }
.footer-logo { position: relative; margin-top: clamp(3rem, 7vw, 6rem); }
.footer-logo img { width: 100%; max-width: 860px; height: auto; margin-inline: auto; opacity: .95; }
.footer-copy { position: relative; margin-top: 2rem; color: var(--subtle); font-size: .85rem; text-align: center; }

/* ── Ambient layers ──────────────────────────────────────────────────────── */
.river { position: fixed; inset: 0; width: 100%; height: 100%; z-index: var(--z-river); pointer-events: none; opacity: .7; }
.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none; opacity: .045;
  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");
}
.door { position: fixed; left: 1rem; bottom: 1rem; z-index: 30; width: 44px; height: 44px; border-radius: 50%; opacity: .01; background: var(--grad); }

/* ── Hidden-before-reveal (only when the engine runs) ───────────────────── */
.motion [data-hero-title],
.motion [data-hero-fade],
.motion [data-hero-mark],
.motion [data-split],
.motion [data-reveal],
.motion [data-cell] { visibility: hidden; }

/* ── Page to page ────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.7, 0, .84, 0) both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .river { opacity: .45; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .menu, .quote-panel, .sys-preview, .tag { -webkit-backdrop-filter: none; backdrop-filter: none; background: #121019; }
}
