/* ==========================================================================
   Lumen: minimal, motion-rich template
   Tokens first: change these and the whole site follows.
   ========================================================================== */

:root {
  --bg: #0c0c0d;
  --bg-2: #151517;
  --fg: #f2f1ec;
  --muted: #8b8b86;
  --line: rgba(242, 241, 236, 0.1);
  --accent: #d4ff3a;          /* signature, rationed: logo, CTA, pill, voice, progress */
  --accent-ink: #0c0c0d;      /* text on accent */
  --accent-text: #d4ff3a;     /* accent as text/strokes */
  --cta-bg: var(--accent);    /* primary buttons & hero pill */
  --cta-fg: var(--accent-ink);
  --dot: rgba(242, 241, 236, 0.16);
  --dot-hot: #f2f1ec;

  --font-sans: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* One motion vocabulary */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-1: 0.3s;
  --dur-2: 0.6s;
  --dur-3: 1s;
  --dur-4: 1.4s;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 24px;
  --nav-h: 74px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f2ed;
  --bg-2: #e8e7e1;
  --fg: #111112;
  --muted: #5c5c57;
  --line: rgba(17, 17, 18, 0.12);
  --accent-text: #4f6a00;
  --cta-bg: #111112;          /* lime-on-ink in light mode: keeps shapes visible */
  --cta-fg: #d4ff3a;
  --dot: rgba(17, 17, 18, 0.16);
  --dot-hot: #111112;
  color-scheme: light;
}

@property --mx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

/* ---------- Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
html.is-loading, html.menu-open { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, canvas { display: block; }
ol, ul { list-style: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
code { font-family: var(--font-mono); font-size: 0.88em; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 6px; }
.has-halo :focus-visible { outline-color: transparent; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.label { color: var(--muted); }

/* ---------- View transitions ---------- */

@view-transition { navigation: auto; }

/* Theme switch: circular reveal (JS drives the clip). */
html.vt-theme::view-transition-old(root),
html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Page-to-page: project art morphs; the rest cross-fades. */
::view-transition-group(*) { animation-duration: 0.8s; animation-timing-function: var(--ease-in-out); }
::view-transition-old(root) { animation: 0.4s var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 0.6s var(--ease-out) 0.15s both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Motion: calm mode + offscreen pausing ---------- */

/* Pause every CSS loop that's off screen (IntersectionObserver toggles .is-visible). */
.js main > section:not(.is-visible) *,
.js footer:not(.is-visible) *,
.js .project:not(.is-visible) * { animation-play-state: paused !important; }

[data-motion="calm"] { scroll-behavior: auto; }
[data-motion="calm"] *,
[data-motion="calm"] *::before,
[data-motion="calm"] *::after { animation-play-state: paused !important; }
[data-motion="calm"] .char { transform: none !important; transition: none !important; }
[data-motion="calm"] [data-reveal] { translate: none !important; transition-duration: var(--dur-1) !important; transition-delay: 0s !important; }
[data-motion="calm"] .quote .w { animation: none !important; }

/* ---------- Loader ---------- */

.loader { display: none; }
.is-loading .loader,
.loader.is-morphing {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  background: var(--fg);
  color: var(--bg);
}
.loader.is-morphing { background: var(--cta-bg); transition: background-color var(--dur-3) var(--ease-in-out); }
.loader.is-morphing > * { opacity: 0; transition: opacity var(--dur-1); }

.loader__top { display: flex; justify-content: space-between; }
.loader__count {
  margin-top: auto;
  font-size: clamp(6rem, 24vw, 22rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}
.loader__bar { height: 2px; margin-top: 28px; background: currentColor; transform-origin: left; scale: 0 1; }

/* ---------- Cursor ---------- */

.cursor {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity var(--dur-1);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-label { mix-blend-mode: normal; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; will-change: transform; }
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  transition: opacity 0.2s;
}
.cursor__ring { width: 0; height: 0; display: grid; place-items: center; }
.cursor__circle {
  position: absolute;
  width: 38px; height: 38px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: scale var(--dur-2) var(--ease-out), background-color var(--dur-1), border-color var(--dur-1);
}
.cursor__label {
  position: absolute;
  white-space: nowrap;
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  color: var(--accent-ink);
  opacity: 0;
  scale: 0.6;
  transition: opacity var(--dur-1), scale var(--dur-2) var(--ease-out);
}
.cursor.is-hover .cursor__circle { scale: 1.6; background: #fff; }
.cursor.is-hover .cursor__dot, .cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__circle { scale: 2.5; background: var(--accent); border-color: transparent; }
.cursor.is-label .cursor__label { opacity: 1; scale: 1; }
.cursor.is-down .cursor__circle { scale: 0.8; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}
@media (forced-colors: active) {
  .cursor { display: none; }
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
}

/* ---------- Focus halo ---------- */

.focus-halo {
  position: fixed;
  top: 0; left: 0;
  z-index: 950;
  border: 2px solid var(--accent-text);
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-1);
  will-change: transform;
}
.focus-halo.is-on { opacity: 1; }

/* ---------- Grain ---------- */

.grain {
  position: fixed;
  inset: -10%;
  z-index: 900;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="light"] .grain { opacity: 0.07; }
.no-grain .grain { display: none; }

/* Grain only shimmers while you scroll, zero cost when idle. */
@supports (animation-timeline: scroll()) {
  .grain { animation: grain steps(5) 60 both; animation-timeline: scroll(root); }
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -5%); }
  60%  { transform: translate(-6%, -2%); }
  80%  { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}
.btn--accent { background: var(--cta-bg); color: var(--cta-fg); }

/* Text roll: a copy of the label slides up from below on hover/focus. */
.btn__text { display: inline-block; overflow: hidden; line-height: 1.3; }
.btn__text > span { position: relative; display: block; transition: translate var(--dur-2) var(--ease-out); }
.btn__text > span::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  left: 0;
  top: 100%;
}
.btn:hover .btn__text > span,
.btn:focus-visible .btn__text > span { translate: 0 -100%; }

.u-link {
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 1px;
  transition: background-size var(--dur-2) var(--ease-out);
}
.u-link:hover, .u-link:focus-visible { background-position: left bottom; background-size: 100% 1px; }

[data-magnetic] { will-change: transform; }

/* Motion switch */
.motion-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 4px;
  color: var(--muted);
  transition: color var(--dur-1);
}
.motion-switch:hover { color: var(--fg); }
.motion-switch__track {
  position: relative;
  width: 30px; height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color var(--dur-1);
}
.motion-switch__track i {
  position: absolute;
  top: 3px; left: 3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: translate var(--dur-2) var(--ease-out), background-color var(--dur-1);
}
.motion-switch[aria-checked="true"] .motion-switch__track { border-color: var(--fg); }
.motion-switch[aria-checked="true"] .motion-switch__track i { translate: 12px 0; background: var(--fg); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: translate var(--dur-2) var(--ease-out), background-color var(--dur-2), border-color var(--dur-2);
}
.nav.is-scrolled {
  background: var(--bg); /* fallback: no color-mix (Safari < 16.2) */
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.nav.is-hidden:not(:focus-within) { translate: 0 -110%; }
.is-loading .nav { translate: 0 -110%; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.04em; }
.logo sup { font-size: 10px; font-weight: 400; margin-left: -6px; align-self: flex-start; margin-top: 4px; }
.logo__mark { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
[data-theme="light"] .logo__mark { background: var(--fg); }
.logo__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--accent-text);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { scale: 1; opacity: 1; } 80%, 100% { scale: 2.8; opacity: 0; } }

.nav__links { display: flex; gap: 32px; }
.nav__links a { display: inline-block; padding: 8px 0; color: var(--muted); transition: color var(--dur-1); }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--fg); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.theme-toggle__icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--fg);
  background: linear-gradient(90deg, var(--fg) 50%, transparent 50%);
  transition: rotate var(--dur-3) var(--ease-out);
}
[data-theme="light"] .theme-toggle__icon { rotate: 180deg; }

.nav__menu {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.nav__menu span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--fg);
  transition: translate var(--dur-2) var(--ease-out), rotate var(--dur-2) var(--ease-out);
}
.nav__menu span:first-child { translate: 0 -3px; }
.nav__menu span:last-child { translate: 0 3px; }
.menu-open .nav__menu span:first-child { translate: 0 0; rotate: 45deg; }
.menu-open .nav__menu span:last-child { translate: 0 0; rotate: -45deg; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 96px var(--gutter) var(--gutter);
  background: var(--bg);
  clip-path: circle(0 at calc(100% - var(--gutter) - 21px) 37px);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s 0.8s;
}
.menu-open .menu {
  clip-path: circle(150% at calc(100% - var(--gutter) - 21px) 37px);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s;
}
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-size: clamp(2.8rem, 13vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  opacity: 0;
  translate: 0 40%;
  transition: opacity var(--dur-2), translate 0.8s var(--ease-out);
}
.menu-open .menu nav a { opacity: 1; translate: 0 0; transition-delay: calc(0.25s + var(--i) * 0.06s); }
.menu__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); }

/* ---------- Split text ---------- */

.split { display: block; }
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.05em 0.12em;
  margin: -0.06em -0.05em -0.12em;
  white-space: nowrap;
}
.char {
  display: inline-block;
  transform: translate3d(0, 110%, 0) rotate(8deg);
  transform-origin: left bottom;
  transition-property: transform, translate, color;
  transition-duration: 1.2s, var(--dur-2), var(--dur-1);
  transition-timing-function: var(--ease-out);
  transition-delay: calc(var(--i) * 26ms), 0s, 0s;
}
[data-split].is-in .char { transform: none; }
html:not(.js) .char { transform: none; }

/* ---------- Scroll reveals ---------- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 40px;
  transition: opacity var(--dur-3) var(--ease-out) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  padding: 110px var(--gutter) 32px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 55% 45%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 55% 45%, #000 40%, transparent 100%);
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  pointer-events: none;
}
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__top { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.hero__top span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }

.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--fg); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--line); box-shadow: 0 0 0 0 color-mix(in oklab, var(--fg) 50%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px transparent; }
}

.hero__title {
  margin: auto 0 clamp(24px, 4vw, 48px);
  font-size: clamp(3.4rem, 12.5vw, 13rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.hero__title .line { display: block; }
.hero__title em { letter-spacing: -0.03em; }

/* Inline capsule filled with drifting dots, the brand motif in the headline. */
.pill-media {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0.62em;
  border-radius: 999px;
  vertical-align: 0.06em;
  overflow: hidden;
  background: var(--cta-bg);
  transition: width var(--dur-4) var(--ease-out) 0.7s;
}
.pill-media::before {
  content: "";
  position: absolute;
  inset: 0 -0.1em 0 0;
  background: radial-gradient(circle, var(--cta-fg) 0.012em, transparent 0.016em) 0 50% / 0.1em 0.1em;
  opacity: 0.55;
  animation: pill-drift 1.4s linear infinite;
}
@keyframes pill-drift { to { transform: translateX(-0.1em); } }
.hero__title.is-in .pill-media,
.is-loading .pill-media,
.is-loaded .pill-media { width: 1.4em; }
.is-loading .pill-media, .is-loaded .pill-media { transition: none; }

@keyframes spin { to { rotate: 360deg; } }

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.hero__lede { max-width: 36ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.45; }
.hero__cue { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.hero__cue-line { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.hero__cue-line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 40%;
  background: var(--fg);
  animation: cue 2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { translate: 0 -100%; } 100% { translate: 0 260%; } }

/* ---------- Marquee ---------- */

.marquee { padding: clamp(40px, 7vw, 96px) 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__inner { display: flex; will-change: transform; }
.marquee__row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding-right: 0.35em;
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.marquee__row .star { font-style: normal; font-size: 0.4em; color: var(--muted); }

/* ---------- Manifesto ---------- */

.manifesto {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--gutter);
  padding: clamp(100px, 16vw, 220px) var(--gutter);
}
.manifesto__text {
  font-size: clamp(1.9rem, 4.6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.js .manifesto__text .w { opacity: 0.14; }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 12vw, 160px) var(--gutter); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.section-head .label { padding-bottom: 0.6em; }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
.section-head--center .label { padding: 0; }
.section-head--flip { grid-template-columns: 3fr 1fr; }
.section-head--flip .label { order: 2; text-align: right; }
.section-title {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* ---------- Bento ---------- */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 380px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.card--wide { grid-column: span 4; }
.card--full { grid-column: span 6; min-height: 0; }

/* Spotlight fill + spotlight border following the pointer. */
.card::before, .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-2);
}
.card::before {
  z-index: -1;
  background: radial-gradient(480px circle at var(--mx) var(--my), color-mix(in oklab, var(--fg) 7%, transparent), transparent 60%);
}
.card::after {
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx) var(--my), color-mix(in oklab, var(--fg) 55%, transparent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.card:hover::before, .card:hover::after,
.card:focus-within::before, .card:focus-within::after { opacity: 1; }

/* Micro-visuals rest until you hover (mouse), at most one loop shouts at a time. */
@media (hover: hover) {
  .card__viz, .card__viz * { animation-play-state: paused; }
  .card:hover .card__viz, .card:hover .card__viz *,
  .card:focus-within .card__viz, .card:focus-within .card__viz * { animation-play-state: running; }
}

.card__viz { flex: 1; display: grid; place-items: center; min-height: 150px; }
.card__body h3 { margin: 10px 0 8px; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.card__body p { max-width: 42ch; color: var(--muted); }

.viz-wave { display: flex; align-items: center; justify-content: center; gap: 6px; height: 160px; }
.viz-wave i {
  flex: 1;
  max-width: 8px;
  height: 100%;
  border-radius: 99px;
  background: var(--fg);
  scale: 1 0.12;
  animation: wave 1.8s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i) * -80ms);
}
.viz-wave i:nth-child(5n + 3) { background: var(--muted); }
@keyframes wave { 0%, 100% { scale: 1 0.12; } 50% { scale: 1 1; } }

.viz-ring { position: relative; width: 150px; height: 150px; margin: auto; }
.viz-ring svg { width: 100%; height: 100%; rotate: -90deg; }
.viz-ring circle { fill: none; stroke-width: 5; }
.ring__track { stroke: var(--line); }
.ring__fill {
  stroke: var(--fg);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 2s var(--ease-out) 0.3s;
}
.card.is-in .ring__fill, html:not(.js) .ring__fill { stroke-dashoffset: 0; }
.ring__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.ring__num::after { content: "fps"; font: 500 0.7rem var(--font-mono); letter-spacing: 0; position: absolute; top: 62%; color: var(--muted); }

.mini-toggle { position: relative; width: 112px; height: 60px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.mini-toggle__knob {
  position: absolute;
  top: 6px; left: 6px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: inset -12px -6px 0 0 var(--bg-2);
  transition: translate 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out), scale var(--dur-1);
}
[data-theme="light"] .mini-toggle__knob { translate: 52px 0; background: var(--fg); box-shadow: inset 0 0 0 0 var(--bg-2); }
.mini-toggle:hover .mini-toggle__knob { scale: 0.92; }

.viz-resize {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  contain: layout paint;
  animation: resize 6s var(--ease-in-out) infinite;
}
.viz-resize i { height: 26px; border-radius: 6px; background: var(--line); }
.viz-resize i:first-child { grid-column: 1 / -1; background: var(--fg); opacity: 0.9; height: 10px; }
.viz-resize i:nth-child(3) { background: var(--muted); }
@keyframes resize { 0%, 100% { width: 100%; } 40%, 60% { width: 38%; } }

.viz-keys { display: flex; gap: 12px; }
.viz-keys kbd {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 64px; height: 64px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  font: 500 14px var(--font-mono);
  animation: press 2.4s var(--ease-out) infinite;
}
.viz-keys kbd::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 2px solid var(--fg);
  opacity: 0;
  animation: press-ring 2.4s var(--ease-out) infinite;
}
.viz-keys kbd:last-child, .viz-keys kbd:last-child::after { animation-delay: 1.2s; }
@keyframes press { 0%, 30%, 100% { translate: 0 0; } 8% { translate: 0 5px; } }
@keyframes press-ring { 0%, 30%, 100% { opacity: 0; scale: 1.08; } 8% { opacity: 1; scale: 1; } }

.card__split { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 32px; }
.viz-code {
  min-height: 9.5em;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  font: 14px/1.7 var(--font-mono);
  color: var(--muted);
  overflow: hidden;
}
.viz-code code::after {
  content: "";
  display: inline-block;
  width: 0.6em; height: 1.15em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--fg);
  animation: blink 1s steps(1) infinite;
}
.viz-code .kw, .viz-code .num { color: var(--fg); }
.viz-code .str { color: var(--accent-text); }
@keyframes blink { 50% { opacity: 0; } }

.viz-orbit { position: relative; width: 190px; height: 190px; }
.orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(100% * var(--s));
  height: calc(100% * var(--s));
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: spin var(--t) linear infinite;
}
.orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--fg); }
.orbit:nth-child(2) { animation-direction: reverse; }
.orbit:nth-child(2) i { background: var(--muted); }
.orbit__core { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--fg); }

/* ---------- Work (pinned horizontal) ---------- */

.work { position: relative; }
.js .work:not(.is-native) { height: calc(var(--dist, 0px) + 100vh); height: calc(var(--dist, 0px) + 100svh); }
.work__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;        /* not a scroll container: Tab can't desync the track */
}
.work__track { display: flex; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gutter); will-change: transform; }
.work__intro {
  flex: 0 0 clamp(280px, 30vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  height: min(66vh, 640px);
  padding-right: 24px;
}
.work__lede { margin-top: 20px; max-width: 30ch; color: var(--muted); font-size: 1.1rem; }
.work__hint { color: var(--muted); }
.work__hint span { display: inline-block; animation: nudge 1.6s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { translate: 8px 0; } }

.project { flex: 0 0 clamp(280px, 36vw, 560px); display: flex; flex-direction: column; gap: 16px; border-radius: 20px; }
.project__viz {
  position: relative;
  height: min(58vh, 540px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-radius 0.7s var(--ease-out);
}
.project__viz--invert { background: var(--fg); border-color: transparent; }
.project:hover .project__viz, .project:focus-visible .project__viz { border-radius: 48px; }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.project__meta h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.04em; }
.project__meta span { color: var(--muted); }

/* Calm mode / no JS: native horizontal scroll with snapping. */
.work.is-native .work__sticky,
html:not(.js) .work__sticky {
  position: static;
  height: auto;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.work.is-native .project, .work.is-native .work__intro { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.work.is-native .work__progress, html:not(.js) .work__progress { display: none; }

/* Project art, dots, rings and bars only. Shared with the case pages. */
.art {
  position: absolute;
  inset: -6%;
  display: grid;
  place-items: center;
  transition: scale var(--dur-3) var(--ease-out);
  will-change: transform;
}
.project:hover .art { scale: 1.06; }

.art--moire::before,
.art--moire::after {
  content: "";
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fg) 0 2px, transparent 2.6px) 0 0 / 13px 13px;
}
.art--moire::after { scale: 1.02; animation: spin 50s linear infinite; }

.art--grid { grid-template-columns: repeat(6, 1fr); gap: 10%; padding: 22%; place-items: stretch; }
.art--grid i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--fg);
  animation: cell 2.8s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes cell { 0%, 100% { scale: 0.25; } 50% { scale: 1; } }

.art--rings i {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  scale: 0;
  animation: ripple 5s linear infinite;
}
.art--rings i:nth-child(2) { animation-delay: -1s; }
.art--rings i:nth-child(3) { animation-delay: -2s; }
.art--rings i:nth-child(4) { animation-delay: -3s; }
.art--rings i:nth-child(5) { animation-delay: -4s; }
.art--rings b { width: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); animation: breathe 2.5s var(--ease-in-out) infinite; }
@keyframes ripple { 0% { scale: 0.1; opacity: 1; } 100% { scale: 1.3; opacity: 0; } }
@keyframes breathe { 50% { scale: 0.8; } }

.art--bars { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4%; padding: 18%; }
.art--bars i {
  height: 6%;
  width: 100%;
  border-radius: 99px;
  background: var(--fg);
  transform-origin: left;
  animation: bar 3.2s var(--ease-in-out) infinite alternate;
}
.art--bars i:nth-child(2) { animation-delay: -0.4s; }
.art--bars i:nth-child(3) { animation-delay: -0.8s; background: var(--muted); }
.art--bars i:nth-child(4) { animation-delay: -1.2s; }
.art--bars i:nth-child(5) { animation-delay: -1.6s; }
.art--bars i:nth-child(6) { animation-delay: -2s; }
.art--bars i:nth-child(7) { animation-delay: -2.4s; }
@keyframes bar { 0% { scale: 0.15 1; } 100% { scale: 1 1; } }

.work__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}
.work__count { font-variant-numeric: tabular-nums; }
.work__line { position: relative; flex: 1; height: 1px; background: var(--line); }
.work__line i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; scale: 0 1; }

/* ---------- Process ---------- */

.process__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gutter); }
.process__aside {
  position: sticky;
  top: calc(var(--nav-h) + 8vh);
  align-self: start;
  display: flex;
  gap: 32px;
  height: min(60vh, 520px);
}
.process__num {
  height: 1em;
  overflow: hidden;
  font-size: clamp(6rem, 17vw, 16rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}
.process__digits { display: flex; flex-direction: column; transform: translateY(calc(var(--step, 0) * -1em)); transition: transform var(--dur-3) var(--ease-out); }
.process__digits span { height: 1em; }
.process__line { position: relative; width: 1px; height: 100%; margin-left: auto; background: var(--line); }
.process__line i { position: absolute; inset: 0; background: var(--fg); transform-origin: top; scale: 1 0; }

.process__steps { display: grid; gap: clamp(64px, 14vh, 160px); padding: 4vh 0 20vh; }
.process__step { max-width: 34rem; transition: opacity var(--dur-2); }
.js .process__step.is-in:not(.is-active) { opacity: 0.3; }
.process__step h3 { margin: 12px 0; font-size: clamp(2.2rem, 4.8vw, 4.4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.process__step p { color: var(--muted); font-size: 1.15rem; max-width: 36ch; }
.process__metric { display: flex; align-items: baseline; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.process__metric strong { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.process__metric span { color: var(--muted); }

/* ---------- Voice (the one lime flood) ---------- */

.voice {
  background: var(--accent);
  color: var(--accent-ink);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}
.voice ::selection { background: var(--accent-ink); color: var(--accent); }
.voice :focus-visible { outline-color: var(--accent-ink); }
.voice__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.voice__nav { display: flex; align-items: center; gap: 12px; }
.voice__nav button {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(12, 12, 13, 0.3);
  border: 1px solid color-mix(in oklab, var(--accent-ink) 30%, transparent);
  font-size: 18px;
  transition: background-color var(--dur-1), color var(--dur-1);
}
.voice__nav button:hover { background: var(--accent-ink); color: var(--accent); }
.voice__count { font-variant-numeric: tabular-nums; min-width: 6ch; text-align: center; }
.voice__quotes { display: grid; }
.quote { grid-area: 1 / 1; transition: opacity var(--dur-1); }
.quote.is-leaving { opacity: 0; }
.quote blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.quote figcaption { margin-top: 32px; }
.quote.is-current .w { display: inline-block; animation: word-in 0.9s var(--ease-out) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes word-in { from { opacity: 0; translate: 0 0.35em; filter: blur(4px); } }

/* ---------- Services ---------- */

.services { border-top: 1px solid var(--line); }
.service a {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto 56px;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3vw, 36px) 16px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-2) var(--ease-out);
}
.service a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-2) var(--ease-out);
}
.service a:hover, .service a:focus-visible { color: var(--bg); }
.service a:hover::before, .service a:focus-visible::before { transform: scaleY(1); transform-origin: bottom; }
.service__num, .service__tags { color: var(--muted); transition: color var(--dur-2); }
.service a:hover .service__num, .service a:hover .service__tags,
.service a:focus-visible .service__num, .service a:focus-visible .service__tags { color: inherit; }
.service__title { font-size: clamp(1.8rem, 4.8vw, 4.2rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; transition: translate var(--dur-2) var(--ease-out); }
.service a:hover .service__title, .service a:focus-visible .service__title { translate: 20px 0; }
.service__arrow {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 20px;
  rotate: -45deg;
  transition: rotate var(--dur-2) var(--ease-out), background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}
.service a:hover .service__arrow, .service a:focus-visible .service__arrow { rotate: 0deg; background: var(--bg); color: var(--fg); border-color: transparent; }

/* ---------- CTA ---------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: clamp(120px, 18vw, 240px) var(--gutter);
  text-align: center;
}
.cta__title { max-width: 11ch; font-size: clamp(3.2rem, 10.5vw, 10.5rem); font-weight: 500; line-height: 0.92; letter-spacing: -0.06em; }
.cta__title .char:hover { translate: 0 -0.08em; color: var(--accent-text); }

.btn-round {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(150px, 16vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
}
.btn-round::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--fg);
  scale: 0;
  transition: scale var(--dur-2) var(--ease-out);
}
[data-theme="light"] .btn-round::before { background: var(--accent); }
.btn-round span { transition: color var(--dur-1); }
.btn-round:hover::before, .btn-round:focus-visible::before { scale: 1; }
.btn-round:hover span, .btn-round:focus-visible span { color: var(--bg); }
[data-theme="light"] .btn-round:hover span, [data-theme="light"] .btn-round:focus-visible span { color: var(--accent-ink); }

/* ---------- Footer ---------- */

.footer { padding: 0 var(--gutter) 16px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); padding: 56px 0 clamp(48px, 8vw, 120px); }
.footer__grid .label { margin-bottom: 16px; }
.footer__mail { font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em; padding-bottom: 4px; }
.footer__list { display: grid; gap: 6px; }
.footer__clock { font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.footer__tz { margin-top: 4px; color: var(--muted); }

.wordmark {
  position: relative;
  font-size: 30.5vw;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
  text-align: center;
  user-select: none;
}
.wordmark__text { display: block; }
.wordmark.is-canvas .wordmark__text { position: absolute; inset: 0; visibility: hidden; }
.wordmark__canvas { width: 100%; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer__top { display: inline-block; padding: 12px 0; }

/* ---------- Case study pages ---------- */

.case-hero { padding: calc(var(--nav-h) + 48px) var(--gutter) 40px; display: grid; gap: clamp(32px, 5vw, 56px); }
.case-hero__head { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); align-items: end; }
.case-hero__meta { display: grid; gap: 12px; align-content: end; padding-bottom: 0.8em; }
.case-back { color: var(--muted); display: inline-block; padding: 8px 0; transition: color var(--dur-1); }
.case-back:hover { color: var(--fg); }
.case-title { font-size: clamp(3.4rem, 13vw, 13rem); font-weight: 500; line-height: 0.88; letter-spacing: -0.065em; }
.case-lede { max-width: 42ch; margin-top: 24px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.case-art {
  position: relative;
  height: min(78vh, 820px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.case-art--invert { background: var(--fg); border-color: transparent; }

.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); padding: 40px var(--gutter); border-bottom: 1px solid var(--line); }
.case-meta dt { color: var(--muted); margin-bottom: 8px; }
.case-meta dd { font-size: 1.1rem; }

.case-body { padding: clamp(80px, 12vw, 160px) var(--gutter); display: grid; gap: clamp(56px, 8vw, 110px); }
.case-row { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); }
.case-row p { font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -0.03em; max-width: 26ch; }

.case-pull { padding: clamp(60px, 10vw, 120px) var(--gutter); text-align: center; border-block: 1px solid var(--line); }
.case-pull strong { display: block; font-size: clamp(5rem, 20vw, 18rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.07em; font-variant-numeric: tabular-nums; }
.case-pull p { margin-top: 16px; color: var(--muted); }

.case-gallery { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; padding: clamp(60px, 10vw, 120px) var(--gutter); }
.panel { position: relative; height: min(64vh, 620px); border-radius: 20px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.specimen { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; }
.specimen__glyph { font-size: clamp(6rem, 16vw, 15rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; }
.specimen__glyph em { font-size: 0.9em; }
.specimen__swatches { display: flex; gap: 10px; }
.specimen__swatches i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); }

.case-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--gutter);
  padding: clamp(100px, 14vw, 200px) var(--gutter);
  border-top: 1px solid var(--line);
}
.case-next__label { color: var(--muted); margin-bottom: 16px; }
.case-next__title { font-size: clamp(3rem, 10vw, 10rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; transition: translate var(--dur-2) var(--ease-out); }
.case-next:hover .case-next__title, .case-next:focus-visible .case-next__title { translate: 16px 0; }
.case-next__thumb { position: relative; width: clamp(160px, 26vw, 380px); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.case-next__thumb.case-art--invert,
.panel.case-art--invert { background: var(--fg); border-color: transparent; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav__motion { display: none; }
  .card { grid-column: span 3; }
  .card--wide, .card--full { grid-column: span 6; }
  .card__split { grid-template-columns: 1fr 1fr; }
  .viz-orbit { display: none; }
  .service__tags { display: none; }
  .service a { grid-template-columns: 56px minmax(0, 1fr) 56px; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; }

  .hero__top span:last-child, .hero__cue { display: none; }

  .manifesto, .section-head, .section-head--flip, .case-hero__head, .case-row { grid-template-columns: 1fr; }
  .section-head--flip .label { order: 0; text-align: left; }
  .manifesto { gap: 24px; }

  .bento { grid-template-columns: 1fr; }
  .card, .card--wide, .card--full { grid-column: auto; min-height: 320px; }
  .card__split { grid-template-columns: 1fr; }

  .work__intro { flex-basis: 78vw; height: auto; justify-content: flex-start; }
  .project { flex-basis: 78vw; }
  .project__viz { height: 56vh; }

  .process__grid { grid-template-columns: 1fr; }
  .process__aside { display: none; }
  .process__steps { padding-bottom: 0; }
  .js .process__step.is-in:not(.is-active) { opacity: 1; }

  .service a { grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 12px; padding-inline: 8px; }
  .service__arrow { width: 40px; height: 40px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .footer__bottom { flex-wrap: wrap; }

  .case-gallery, .case-next { grid-template-columns: 1fr; }
  .case-art { height: 56vh; }
}

/* ==========================================================================
   Feature slots, each owner edits ONLY inside its own markers.
   ========================================================================== */

/* [slot:qa] ---------------------------------------------------------------- */
/* Resilience: theme wipe, gallery anchors + drag, no-JS, reduced motion, print. */

/* Theme switch: named elements (project art morph targets) would be captured on their own
   layer and cross-fade on top of the circular wipe, keep them in the root snapshot. */
html.vt-theme * { view-transition-name: none !important; }

/* Pinned gallery: #work lands exactly where the pin starts (cancel the nav scroll-padding),
   horizontal touch swipes reach the drag handler, drags don't select text or fight snapping. */
.js .work:not(.is-native) { scroll-margin-top: calc(-1 * (var(--nav-h) + 12px)); }
.js .work:not(.is-native) .work__sticky { touch-action: pan-y pinch-zoom; }
.work.is-dragging { -webkit-user-select: none; user-select: none; }
.work.is-dragging .work__sticky { cursor: grabbing; scroll-snap-type: none; }

/* No JS: controls that need JS are hidden, content that JS would page through is shown. */
html:not(.js) [data-theme-toggle],
html:not(.js) [data-motion-toggle],
html:not(.js) .nav__menu,
html:not(.js) .menu,
html:not(.js) .voice__nav,
html:not(.js) .hero__cue,
html:not(.js) [data-clock],
html:not(.js) [data-tz] { display: none !important; }
html:not(.js) .footer__grid > :has([data-clock]) { display: none; }
html:not(.js) .voice__quotes { gap: clamp(56px, 8vw, 110px); }
html:not(.js) .quote { grid-area: auto; }
html:not(.js) .quote[hidden] { display: block; }
@media (max-width: 760px) {
  /* The hamburger needs JS; without it the primary links wrap onto a second nav row. */
  html:not(.js) .nav { position: absolute; flex-wrap: wrap; height: auto; min-height: var(--nav-h); padding-block: 14px; row-gap: 4px; }
  html:not(.js) .nav__links { display: flex; order: 3; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; }
}

/* Reduced motion before/without JS (boot.js normally maps this to data-motion="calm"). */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion]) { scroll-behavior: auto; }
  html:not([data-motion]) *,
  html:not([data-motion]) *::before,
  html:not([data-motion]) *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* Print: light ink, no overlays or canvases, gallery flattened, link targets spelled out. */
@media print {
  :root, [data-theme] {
    --bg: #fff; --bg-2: #f3f3f1; --fg: #111; --muted: #555; --line: rgba(0, 0, 0, 0.18);
    --accent: #111; --accent-ink: #fff; --accent-text: #111; --cta-bg: #111; --cta-fg: #fff;
    --dot: rgba(0, 0, 0, 0.2); --dot-hot: #111;
    color-scheme: light;
  }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #111; }
  *, *::before, *::after { animation: none !important; transition: none !important; }

  .cursor, .grain, .loader, .focus-halo, .skip-link, .menu, .nav__actions, .nav__menu,
  canvas, .hero__canvas, .wordmark, .marquee, .hero__cue, .work__hint, .work__progress, .voice__nav,
  [data-theme-toggle], [data-motion-toggle] { display: none !important; }

  .nav { position: static; height: auto; padding-block: 16px; translate: none !important; background: none !important; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  [data-reveal], .char, .w { opacity: 1 !important; translate: none !important; transform: none !important; filter: none !important; }
  .hero { min-height: 0; padding-top: 16px; }
  .hero__content { transform: none !important; opacity: 1 !important; }
  .pill-media { width: 1.4em; }

  .work, .js .work:not(.is-native) { height: auto !important; }
  .work__sticky { position: static; display: block; height: auto; padding: 32px 0; overflow: visible; }
  .work__track { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; transform: none !important; }
  .work__intro { grid-column: 1 / -1; height: auto; padding: 0; }
  .project__viz { height: 200px; clip-path: none !important; transform: none !important; }
  .art { transform: none !important; }

  .process__grid { grid-template-columns: 1fr; }
  .process__aside { display: none; }
  .process__steps { gap: 32px; padding: 0; }
  .js .process__step.is-in:not(.is-active) { opacity: 1; }

  .voice { background: none; color: #111; border-block: 1px solid var(--line); }
  .voice__quotes { gap: 32px; }
  .quote { grid-area: auto; }
  .quote[hidden] { display: block; }

  .section, .manifesto, .cta, .case-body, .case-gallery, .case-next, .case-pull { padding-block: 32px; }
  .case-art, .panel { height: 240px; }
  .card, .project, .quote, .case-row, .process__step, .service, .panel, .case-next, .case-meta dl { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }

  main a[href]:not([href^="#"]):not([href^="javascript:"]):not(.btn):not(.btn-round)::after,
  footer a[href]:not([href^="#"]):not([href^="javascript:"])::after {
    content: " <" attr(href) ">";
    font: 400 8pt/1.3 var(--font-mono);
    letter-spacing: 0;
    text-transform: none;
    color: #555;
    word-break: break-all;
  }
  .btn-round { width: auto; aspect-ratio: auto; padding: 14px 28px; border-radius: 999px; }
}
/* [/slot:qa] */

/* [slot:ia] ---------------------------------------------------------------- */

/* Skip link: first Tab stop on every page. */
.skip-link {
  position: fixed;
  top: 12px; left: var(--gutter);
  z-index: 300;
  padding: 12px 18px;
  border-radius: 99px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  translate: 0 calc(-100% - 24px);
  transition: translate var(--dur-1) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { translate: 0 0; }

/* Where am I: current page / section in the nav, menu and footer. */
.nav__links a[aria-current] { color: var(--fg); }
.nav__links a[aria-current]::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.15em;
}
.menu nav a[aria-current]::after {
  content: "";
  display: inline-block;
  width: 0.16em; height: 0.16em;
  margin-left: 0.2em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.1em;
}
.footer__list a[aria-current] { color: var(--fg); }
.footer__list a[aria-current]::before { content: "• "; }
.footer__legal-label { margin-top: 28px; }

/* Breadcrumb (case hero meta, work index). */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--muted); opacity: 0.6; }
.crumbs a { display: inline-block; padding: 6px 0; color: var(--muted); transition: color var(--dur-1); }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }
.crumbs__count { font-variant-numeric: tabular-nums; }

/* Case pager: slim "previous" row, big "next" block (reuses .case-next). */
.case-pager { border-top: 1px solid var(--line); }
.case-pager .case-next { border-top: 0; padding-top: clamp(64px, 10vw, 140px); }
.case-pager__prev {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--gutter);
  min-height: 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color var(--dur-1);
}
.case-pager__name { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.03em; transition: translate var(--dur-2) var(--ease-out); }
.case-pager__prev:hover, .case-pager__prev:focus-visible { color: var(--fg); }
.case-pager__prev:hover .case-pager__name, .case-pager__prev:focus-visible .case-pager__name { translate: -8px 0; }
.case-next__label span { display: inline-block; transition: translate var(--dur-2) var(--ease-out); }
.case-next:hover .case-next__label span, .case-next:focus-visible .case-next__label span { translate: 6px 0; }

.work__all { display: inline-block; margin-top: 20px; padding: 6px 0; }

/* Work index (work/index.html). */
.work-index { padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(80px, 12vw, 160px); }
.work-index__head { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); align-items: end; margin-bottom: clamp(56px, 8vw, 110px); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 32px); }
.work-grid > li:nth-child(even) { margin-top: clamp(0px, 9vw, 140px); }
.work-card { display: block; border-radius: 20px; }
.work-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-radius 0.7s var(--ease-out);
}
.work-card__thumb.case-art--invert { background: var(--fg); border-color: transparent; }
.work-card:hover .work-card__thumb, .work-card:focus-visible .work-card__thumb { border-radius: 48px; }
.work-card:hover .art, .work-card:focus-visible .art { scale: 1.06; }
.work-card__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
}
.work-card__num, .work-card__role, .work-card__year { color: var(--muted); }
.work-card__title { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.04em; }

/* Page transitions: the header stays put; content slides with the direction of travel. */
.nav { view-transition-name: site-nav; }
::view-transition-old(site-nav) { display: none; }
::view-transition-new(site-nav) { animation: none; }
/* The theme switch is one circular reveal of the whole page, no separately captured parts. */
html.vt-theme * { view-transition-name: none !important; }

@keyframes ia-out-left { to { opacity: 0; translate: -4vw 0; } }
@keyframes ia-in-right { from { opacity: 0; translate: 4vw 0; } }
@keyframes ia-out-right { to { opacity: 0; translate: 4vw 0; } }
@keyframes ia-in-left { from { opacity: 0; translate: -4vw 0; } }
html:active-view-transition-type(forward)::view-transition-old(root) { animation: 0.45s var(--ease-in-out) both ia-out-left; }
html:active-view-transition-type(forward)::view-transition-new(root) { animation: 0.7s var(--ease-out) 0.1s both ia-in-right; }
html:active-view-transition-type(back)::view-transition-old(root) { animation: 0.45s var(--ease-in-out) both ia-out-right; }
html:active-view-transition-type(back)::view-transition-new(root) { animation: 0.7s var(--ease-out) 0.1s both ia-in-left; }

@media (max-width: 1024px) {
  .work-card__role { display: none; }
  .work-card__meta { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 760px) {
  .work-index__head { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid > li:nth-child(even) { margin-top: 0; }
  .case-pager__prev { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}
/* [/slot:ia] */

/* [slot:content] ----------------------------------------------------------- */
/* Studio, Journal, Privacy, service promises, case-study extras.
   Journal styles are all under .journal-* / .post-*, delete them with /journal. */

/* Services: one-line promise under each title (home) */
.service a { grid-template-areas: "num title tags arrow" "num promise tags arrow"; row-gap: 8px; }
.service__num { grid-area: num; }
.service__title { grid-area: title; }
.service__tags { grid-area: tags; }
.service__arrow { grid-area: arrow; }
.service__promise {
  grid-area: promise;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.45;
  transition: color var(--dur-2), translate var(--dur-2) var(--ease-out);
}
.service__promise .mono { display: block; margin-top: 6px; font-size: 0.7rem; }
.service a:hover .service__promise, .service a:focus-visible .service__promise { color: inherit; translate: 20px 0; }

/* Page hero shared by studio / journal / privacy */
.content-hero { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); align-items: end; padding: calc(var(--nav-h) + clamp(56px, 10vw, 140px)) var(--gutter) clamp(56px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.content-hero .label { padding-bottom: 0.8em; }
.content-title { font-size: clamp(3rem, 10vw, 10rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; }
.content-lede { max-width: 44ch; margin-top: 28px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

.content-split { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); }
.content-split > .label { padding-top: 0.5em; }

/* Long-form text: ~65ch measure */
.prose { max-width: 65ch; font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose .lead { font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.22; letter-spacing: -0.03em; }
.prose h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; margin-top: 2.2em; }
.prose h2 + * { margin-top: 0.7em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.prose a:hover { color: var(--accent-text); }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.prose ul li { position: relative; padding-left: 1.4em; }
.prose ul li + li { margin-top: 0.5em; }
.prose ul li::before { content: ""; position: absolute; left: 0.2em; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.prose .muted { color: var(--muted); }

/* Three-dot divider */
.dot-rule { border: 0; width: 54px; height: 6px; margin: 3em auto; background: radial-gradient(circle, var(--muted) 0 2.5px, transparent 3px) 0 50% / 18px 6px repeat-x; }

/* Pure-CSS dot avatar: a dot grid + one "hot" dot per person */
.avatar {
  --g: 10px;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2) radial-gradient(circle, var(--dot) 0 1.4px, transparent 1.9px) 50% 50% / var(--g) var(--g);
  transition: background-size var(--dur-3) var(--ease-out);
}
.avatar::after { content: ""; position: absolute; left: var(--x, 64%); top: var(--y, 28%); width: 12px; height: 12px; border-radius: 50%; background: var(--dot-hot); transition: translate var(--dur-3) var(--ease-out); }
.avatar span { position: relative; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.person:hover .avatar { background-size: 7px 7px; }
.person:hover .avatar::after { translate: -6px 6px; }
.avatar--sm { width: 56px; flex: none; }
.avatar--sm::after { width: 6px; height: 6px; }
.avatar--sm span { font-size: 1.05rem; letter-spacing: -0.03em; }

/* Studio */
.studio-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); padding: 40px var(--gutter); border-bottom: 1px solid var(--line); }
.studio-facts dt { color: var(--muted); margin-bottom: 8px; }
.studio-facts dd { font-size: 1.1rem; }

.principles { border-top: 1px solid var(--line); counter-reset: p; }
.principle { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: baseline; padding: clamp(24px, 3.4vw, 44px) 16px; border-bottom: 1px solid var(--line); }
.principle .mono { color: var(--muted); }
.principle h3 { font-size: clamp(1.6rem, 3.6vw, 3.2rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.045em; }
.principle p { color: var(--muted); max-width: 42ch; font-size: clamp(1rem, 1.2vw, 1.12rem); }

.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.person h3 { margin-top: 24px; font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.03em; }
.person .mono { display: block; margin-top: 6px; color: var(--muted); }
.person p { margin-top: 14px; color: var(--muted); max-width: 34ch; }

.clients { columns: 3 16rem; column-gap: var(--gutter); border-top: 1px solid var(--line); }
.clients li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; }
.clients li .mono { color: var(--muted); white-space: nowrap; }

.setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.setup > div { padding-top: 24px; border-top: 1px solid var(--line); }
.setup h3 { margin: 16px 0 12px; font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; }
.setup p { color: var(--muted); max-width: 38ch; }
.setup p + p { margin-top: 0.8em; }

/* Journal index */
.journal-list { border-top: 1px solid var(--line); }
.journal-list a { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: clamp(24px, 3.4vw, 44px) 16px; border-bottom: 1px solid var(--line); }
.journal-list time, .journal-list .mono { color: var(--muted); }
.journal-list h2 { font-size: clamp(1.7rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em; transition: translate var(--dur-2) var(--ease-out); }
.journal-list p { margin-top: 12px; max-width: 52ch; color: var(--muted); }
.journal-list a:hover h2, .journal-list a:focus-visible h2 { translate: 16px 0; }

/* Journal post */
.post { padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) var(--gutter) clamp(80px, 12vw, 160px); }
.post > * { max-width: 65ch; margin-inline: auto; }
.post-back { display: inline-block; padding: 8px 0; color: var(--muted); transition: color var(--dur-1); }
.post-back:hover { color: var(--fg); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; color: var(--muted); }
.post-title { margin-top: 20px; font-size: clamp(2.4rem, 6.4vw, 5rem); font-weight: 500; line-height: 0.96; letter-spacing: -0.055em; }
.post-dek { margin-top: 24px; color: var(--muted); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.4; }
.post-body { margin-top: clamp(48px, 7vw, 88px); }
.post-pull { margin-block: 2.2em; }
.post-pull blockquote p { font-family: var(--font-serif); font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 22ch; }
.post-pull figcaption { margin-top: 16px; color: var(--muted); }
.post-foot { display: flex; align-items: center; gap: 16px; margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.post-foot p { line-height: 1.4; }
.post-foot .mono { color: var(--muted); }
.post-next { display: block; margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.post-next .mono { color: var(--muted); }
.post-next strong { display: block; margin-top: 12px; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em; transition: translate var(--dur-2) var(--ease-out); }
.post-next:hover strong, .post-next:focus-visible strong { translate: 16px 0; }

/* Case studies: quote, second metric row, deliverables + credits */
.case-quote { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); padding: clamp(80px, 12vw, 160px) var(--gutter); }
.case-quote blockquote p { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.03; letter-spacing: -0.02em; max-width: 20ch; }
.case-quote figcaption { margin-top: 28px; color: var(--muted); }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.case-stats > div { padding: clamp(32px, 5vw, 64px) var(--gutter); }
.case-stats > div + div { border-left: 1px solid var(--line); }
.case-stats strong { display: block; font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.case-stats p { margin-top: 12px; color: var(--muted); }
.case-delivered { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); padding: clamp(60px, 10vw, 120px) var(--gutter); border-top: 1px solid var(--line); }
.case-delivered ul { columns: 2 14rem; column-gap: var(--gutter); border-top: 1px solid var(--line); }
.case-delivered li { padding: 14px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -0.015em; }
.case-credits { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; color: var(--muted); line-height: 1.6; }
.case-credits dt { display: inline; color: var(--fg); }
.case-credits dd { display: inline; margin-left: 6px; }

@media (max-width: 1024px) {
  .service a { grid-template-areas: "num title arrow" "num promise arrow"; }
  .studio-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle { grid-template-columns: 56px minmax(0, 1fr); }
  .principle p { grid-column: 2; }
  .setup { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .content-hero, .content-split, .case-quote, .case-delivered { grid-template-columns: 1fr; }
  .content-split { gap: 20px; }
  .principle { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding-inline: 8px; }
  .people { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .avatar span { font-size: 2rem; }
  .journal-list a { grid-template-columns: 1fr auto; gap: 10px 16px; padding-inline: 8px; }
  .journal-list a > div { grid-column: 1 / -1; grid-row: 2; }
  .case-stats { grid-template-columns: 1fr; }
  .case-stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
/* [/slot:content] */

/* [slot:conversion] -------------------------------------------------------- */

/* Author display rules must not beat the hidden attribute. */
.avail[hidden], .brief[hidden], .brief-done[hidden], .brief__summary[hidden], [data-booking-wrap][hidden] { display: none !important; }

/* Availability line: a static dot (no ambient loop). */
.avail { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.avail__dot {
  display: inline-block;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--fg) 12%, transparent);
}
.label .avail__dot { margin-right: 8px; vertical-align: 0.05em; }

/* Home CTA additions */
.cta .avail { margin-top: -20px; }
.cta__alt { display: grid; justify-items: center; gap: 10px; max-width: 40ch; margin-top: -16px; color: var(--muted); }
.cta__alt-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; color: var(--fg); }

/* ---------- Engagement models (home) ---------- */

.engage__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.engage__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color var(--dur-2) var(--ease-out);
}
.engage__card:hover, .engage__card:focus-within { border-color: color-mix(in oklab, var(--fg) 40%, transparent); }
.engage__card--pick { border-color: var(--fg); }
.engage__top { display: grid; gap: 8px; padding-right: 110px; }
.engage__name { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.engage__tag {
  position: absolute;
  top: 28px; right: 28px;
  padding: 5px 10px;
  border: 1px solid var(--fg);
  border-radius: 999px;
}
.engage__price { font-size: clamp(2.6rem, 4.4vw, 3.8rem); font-weight: 500; line-height: 1; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.engage__price .label { display: block; margin-bottom: 10px; letter-spacing: 0.02em; }
.engage__per { font-size: 0.4em; color: var(--muted); letter-spacing: -0.01em; margin-left: 4px; }
.engage__desc { color: var(--muted); max-width: 34ch; }
.engage__scale { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-block: 1px solid var(--line); }
.engage__list { display: grid; gap: 10px; }
.engage__list li { display: grid; grid-template-columns: 14px 1fr; align-items: baseline; }
.engage__list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--fg); translate: 0 -0.2em; }
.engage__cta { align-self: flex-start; margin-top: auto; padding: 10px 0 4px; color: var(--fg); }
.engage__note { margin-top: 32px; color: var(--muted); }
.engage__note a { color: var(--fg); }

/* Dot scale: fills in when its card is revealed. */
.dot-scale { display: inline-flex; gap: 6px; }
.dot-scale i {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.dot-scale i.is-on { background: var(--fg); border-color: var(--fg); }
.dot-scale i:nth-child(2) { transition-delay: 80ms; }
.dot-scale i:nth-child(3) { transition-delay: 160ms; }
.dot-scale i:nth-child(4) { transition-delay: 240ms; }
.dot-scale i:nth-child(5) { transition-delay: 320ms; }
.js .engage__card:not(.is-in) .dot-scale i.is-on { background: transparent; border-color: var(--muted); }
[data-motion="calm"] .dot-scale i { transition: none; }

/* ---------- Contact page ---------- */

.enquiry-hero { padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(40px, 6vw, 72px); }
.enquiry-hero__head { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); align-items: end; }
.enquiry-hero__head > .label { padding-bottom: 1em; }
.enquiry-hero__title { font-size: clamp(3rem, 9vw, 9rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; max-width: 12ch; }
.enquiry-hero__lede { max-width: 46ch; margin-top: 24px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.enquiry-hero__lede a { color: var(--fg); }
.enquiry-hero .avail { margin-top: 20px; }

.enquiry { padding: 0 var(--gutter) clamp(80px, 12vw, 140px); }
.enquiry__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.brief, .brief-done { grid-column: 1; grid-row: 1; }
.enquiry__aside { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 32px; }

.brief, .brief-done, .brief__summary { --danger: #ff8f80; }
[data-theme="light"] .brief, [data-theme="light"] .brief-done { --danger: #b42318; }

.brief { position: relative; display: grid; gap: 36px; }
.brief__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief__intro { margin-bottom: -12px; }
.brief__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.field { display: grid; gap: 10px; align-content: start; }
.field__label { display: block; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
legend.field__label { padding: 0; margin-bottom: 14px; }
.field__req { color: var(--muted); margin-left: 2px; }
.field__opt { color: var(--muted); margin-left: 8px; font-weight: 400; }
.field__input {
  width: 100%;
  padding: 15px 18px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color var(--dur-1) var(--ease-out);
}
.field__input:hover { border-color: color-mix(in oklab, var(--fg) 35%, transparent); }
.field__input:focus { border-color: var(--fg); }
.field__input--area { min-height: 168px; resize: vertical; line-height: 1.5; }
.field__input:-webkit-autofill { -webkit-text-fill-color: var(--fg); box-shadow: 0 0 0 100px var(--bg-2) inset; }
.field.is-invalid .field__input { border-color: var(--danger); }
.field__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.field__hint { color: var(--muted); font-size: 0.875rem; }
.field__hint a { color: var(--fg); }
.field__count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field__count.is-near { color: var(--fg); }
.field__error { display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 0.875rem; }
.field__error::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.field__error:empty { display: none; }

/* Chip groups: the checked state is a filled dot. */
.chips { border: 0; min-width: 0; display: grid; gap: 0; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .field__hint, .chips .field__error { margin-top: 12px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.chip input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  border-radius: inherit;
  cursor: pointer;
  appearance: none;
}
.chip__dot {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  transition: background-color var(--dur-1), border-color var(--dur-1), scale var(--dur-2) var(--ease-out);
}
.chip:hover { border-color: color-mix(in oklab, var(--fg) 35%, transparent); }
.chip input:checked + .chip__dot { background: var(--fg); border-color: var(--fg); scale: 1.2; }
.chip:has(input:checked) { border-color: var(--fg); background: color-mix(in oklab, var(--fg) 6%, transparent); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.has-halo .chip:has(input:focus-visible) { outline-color: transparent; }
.chips.is-invalid .chip { border-color: color-mix(in oklab, var(--danger) 70%, transparent); }
[data-motion="calm"] .chip__dot { transition: none; }

.brief__summary {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid var(--danger);
  border-radius: 16px;
}
.brief__summary:focus { outline: none; }
.brief__summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.brief__summary-title { font-weight: 500; }
.brief__summary ul { display: grid; gap: 6px; }
.brief__summary li { display: grid; grid-template-columns: 14px 1fr; align-items: baseline; color: var(--danger); }
.brief__summary li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; translate: 0 -0.15em; }

.brief__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.brief__privacy { color: var(--muted); font-size: 0.875rem; }
.brief__privacy a { color: var(--fg); }

.brief__submit { height: 56px; padding: 0 28px; gap: 12px; font-size: 1rem; transition: opacity var(--dur-1); }
.brief__submit[aria-disabled="true"] { cursor: progress; opacity: 0.85; }
.brief__dots { display: none; gap: 4px; }
.brief__dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: brief-dot 1s var(--ease-in-out) infinite; }
.brief__dots i:nth-child(2) { animation-delay: 0.15s; }
.brief__dots i:nth-child(3) { animation-delay: 0.3s; }
.brief__submit[data-state="sending"] .brief__dots { display: inline-flex; }
[data-motion="calm"] .brief__dots i { animation: none; opacity: 0.6; }
@keyframes brief-dot { 0%, 100% { opacity: 0.25; scale: 0.7; } 50% { opacity: 1; scale: 1; } }

.brief__status { font-size: 0.95rem; color: var(--muted); }
.brief__status:empty { margin-top: -36px; }
.brief__status.is-error { color: var(--danger); }
.brief__status.is-error a { color: var(--fg); }
.brief__status.is-ok { color: var(--fg); }

.brief-done {
  display: grid;
  gap: 20px;
  align-self: start;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.brief-done:focus { outline: none; }
.brief-done__title { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.05em; }
.brief-done__text { color: var(--muted); max-width: 46ch; }
.brief-done__text a { color: var(--fg); }

/* What happens next */
.enquiry__aside > .label { margin-bottom: -8px; }
.next-steps { display: grid; gap: 24px; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.next-steps h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px; }
.next-steps p { color: var(--muted); font-size: 0.95rem; }
.next-steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.next-steps--row li { grid-template-columns: 1fr; gap: 16px; }
.enquiry__direct { display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.enquiry__mail { justify-self: start; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -0.03em; padding-bottom: 2px; }
.enquiry__booking { margin-top: 6px; }

/* FAQ */
.faq__list { margin-left: calc((100% - var(--gutter)) / 4 + var(--gutter)); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur-1);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--muted); }
.faq__dot {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--fg);
  transition: background-color var(--dur-1), scale var(--dur-2) var(--ease-out);
}
.faq__item[open] .faq__dot { background: var(--fg); scale: 0.8; }
.faq__body p { max-width: 60ch; padding: 0 8px 28px 38px; color: var(--muted); font-size: 1.05rem; }
[data-motion="calm"] .faq__dot { transition: none; }

/* Thanks page */
.thanks__next .section-head { align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.thanks__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Case study: "Have a project like this?" ---------- */

.case-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--gutter);
  padding: clamp(80px, 12vw, 150px) var(--gutter);
  border-top: 1px solid var(--line);
}
.case-cta__title { max-width: 16ch; margin: 16px 0 24px; font-size: clamp(2.4rem, 6vw, 5.6rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.05em; }
.case-cta__btn { height: 56px; padding: 0 28px; font-size: 1rem; }

@media (max-width: 1024px) {
  .engage__grid { grid-template-columns: 1fr; }
  .engage__card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .engage__card > * { grid-column: 1; }
  .engage__card > .engage__scale, .engage__card > .engage__list, .engage__card > .engage__cta { grid-column: 2; }
  .engage__card > .engage__scale { grid-row: 1; align-self: start; }
  .engage__card > .engage__list { grid-row: 2 / span 2; }
  .engage__card > .engage__cta { grid-row: 4; }
  .engage__tag { position: static; justify-self: start; }
  .engage__top { padding-right: 0; }
  .enquiry__grid { grid-template-columns: 1fr; }
  .enquiry__aside { grid-column: 1; grid-row: 2; position: static; }
  .next-steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .engage__card { display: flex; }
  .enquiry-hero__head { grid-template-columns: 1fr; }
  .enquiry-hero__head > .label { padding-bottom: 0; }
  .brief__row { grid-template-columns: 1fr; }
  .brief__submit { width: 100%; justify-content: center; }
  .faq__list { margin-left: 0; }
  .faq__body p { padding-left: 38px; }
  .next-steps--row { grid-template-columns: 1fr; }
  .case-cta { grid-template-columns: 1fr; align-items: start; }
}

/* [/slot:conversion] */

/* [slot:dots] -------------------------------------------------------------- */

/* Case hero: js/dots.js (caseField) overlays a canvas and dissolves the CSS art into it
   once the page morph has landed. Without JS the CSS art simply stays. */
.dots-case {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out);
}
.case-art.is-dotted > .dots-case { opacity: 1; }
.case-art.is-dotted > .art { opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease-out), visibility 0s var(--dur-2); }
[data-motion="calm"] .dots-case,
[data-motion="calm"] .case-art.is-dotted > .art { transition: none; }

/* Halftone hover: the art breaks into the site's dot screen. A mask of a 9px dot tile whose
   dot radius shrinks from "covers the tile" (8px, looks solid) to a fine screen. */
@property --ht { syntax: "<length>"; inherits: false; initial-value: 8px; }
.project__viz > .art,
[data-halftone] > .art,
[data-halftone]:not(:has(> .art)) {
  --ht: 8px;
  -webkit-mask: radial-gradient(circle, #000 calc(var(--ht) - 0.5px), transparent var(--ht)) center / 9px 9px;
  mask: radial-gradient(circle, #000 calc(var(--ht) - 0.5px), transparent var(--ht)) center / 9px 9px;
  transition: scale var(--dur-3) var(--ease-out), --ht var(--dur-2) var(--ease-out);
}
@media (hover: hover) {
  .project:hover .project__viz > .art,
  [data-halftone]:hover > .art,
  a:hover [data-halftone] > .art,
  [data-halftone]:not(:has(> .art)):hover,
  a:hover [data-halftone]:not(:has(> .art)) { --ht: 2.6px; }
}
.project:focus-visible .project__viz > .art,
a:focus-visible [data-halftone] > .art,
a:focus-visible [data-halftone]:not(:has(> .art)) { --ht: 2.6px; }
[data-motion="calm"] .project__viz > .art,
[data-motion="calm"] [data-halftone] > .art,
[data-motion="calm"] [data-halftone]:not(:has(> .art)) { transition: none; }

/* LED dot-matrix process numerals. main.js sets --step (0–3) on .process__digits; each dot of
   the second digit carries the steps it is lit in (.l0–.l3). lit = Σ aₖ·max(0, 1 − (step − k)²). */
.process__num--led { font-size: clamp(5rem, 12vw, 12rem); }
.process__digits.led { flex-direction: row; gap: 0.1em; height: 1em; transform: none; transition: none; }
.led svg { display: block; height: 1em; width: calc(1em * 50 / 70); overflow: visible; }
.led circle { fill: currentColor; transform-box: fill-box; transform-origin: center; }
.led circle.off { opacity: 0.1; transform: scale(0.6); }
.led svg + svg circle {
  --a0: 0; --a1: 0; --a2: 0; --a3: 0;
  --lit: calc(
    var(--a0) * max(0, 1 - var(--step, 0) * var(--step, 0)) +
    var(--a1) * max(0, 1 - (var(--step, 0) - 1) * (var(--step, 0) - 1)) +
    var(--a2) * max(0, 1 - (var(--step, 0) - 2) * (var(--step, 0) - 2)) +
    var(--a3) * max(0, 1 - (var(--step, 0) - 3) * (var(--step, 0) - 3))
  );
  opacity: calc(0.1 + 0.9 * var(--lit));
  transform: scale(calc(0.6 + 0.4 * var(--lit)));
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out);
  transition-delay: calc(var(--o, 0) * 22ms); /* the change ripples diagonally, dot by dot */
}
.led .l0 { --a0: 1; }
.led .l1 { --a1: 1; }
.led .l2 { --a2: 1; }
.led .l3 { --a3: 1; }
[data-motion="calm"] .led circle { transition: none; }

/* 404: numerals as particles (js/dots.js notFound). */
.nf {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(28px, 5vw, 64px);
  padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(64px, 8vw, 110px);
}
.nf__code {
  position: relative;
  font-size: clamp(9rem, 38vw, 34rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}
.nf__text { display: block; }
.nf__code.is-canvas .nf__text { position: absolute; inset: 0; visibility: hidden; }
.nf__canvas { display: block; width: 100%; touch-action: manipulation; }
[data-motion="full"] .nf__code.is-canvas { cursor: crosshair; }
.nf__body { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); align-items: end; }
.nf__title { font-size: clamp(2.2rem, 5.4vw, 5rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.05em; max-width: 14ch; }
.nf__lede { max-width: 42ch; margin-top: 20px; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nf__links .btn:not(.btn--accent) { border: 1px solid var(--line); transition: border-color var(--dur-1); }
.nf__links .btn:not(.btn--accent):hover { border-color: var(--fg); }
.nf__hint { margin-top: 20px; color: var(--muted); }
.nf__hint[hidden] { display: none; }
@media (max-width: 760px) {
  .nf__body { grid-template-columns: 1fr; }
}

/* Home #contact: the dot-ink trail canvas sits behind the section's content. */
section:has(> .dots-ink) { position: relative; isolation: isolate; }
.dots-ink { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* [/slot:dots] */

/* ==========================================================================
   Lumen site additions
   ========================================================================== */

/* Real project imagery inside a case-gallery panel */
.panel--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Data tables and callouts in long-form prose (LumenAI privacy policy) */
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.86em; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75em 1em; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-family: var(--font-mono); font-size: 0.78em; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.prose .callout { padding: 1em 1.2em; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font-size: 0.92em; }
