/* ==========================================================================
   TBD Studio: The Undecided Universe
   Tokens, worlds (per-section atmospheres), shell, rooms, pages.
   ========================================================================== */

:root {
  --void: #140C24;
  --dusk: #2A1B4A;
  --milk: #EEEAF6;
  --iris: #8F8CFF;
  --mint: #9FEBD3;
  --ember: #FF9E7A;

  --bg: var(--void);
  --fg: var(--milk);
  --accent: var(--mint);
  --soft: color-mix(in oklab, var(--fg) 66%, transparent);
  --line: color-mix(in oklab, var(--fg) 20%, transparent);

  --display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --s-1: .875rem;
  --s0: 1.0625rem;
  --s1: 1.375rem;
  --s2: clamp(1.5rem, 2.2vw, 1.875rem);
  --s3: clamp(2.25rem, 4.4vw, 3.75rem);
  --s4: clamp(2.9rem, 8vw, 7.5rem);
  --s5: clamp(3.4rem, 14vw, 15.5rem);

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* Worlds: each room sets the atmosphere of the whole universe */
html[data-world="dusk"] { --bg: var(--dusk); }
html[data-world="milk"] { --bg: var(--milk); --fg: var(--void); --accent: #5A4BD8; color-scheme: light; }
html[data-world="iris"] { --bg: var(--iris); --fg: var(--void); --accent: var(--void); color-scheme: light; }
html[data-world="ember"] { --bg: var(--ember); --fg: var(--void); --accent: var(--void); color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: var(--s0);
  line-height: 1.55;
  font-optical-sizing: auto;
  transition: background-color 1.1s var(--ease), color 1.1s var(--ease);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--void); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--milk); color: var(--void);
  padding: .6rem 1rem; border-radius: 999px; font-family: var(--display);
  transition: top .2s;
}
.skip:focus { top: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain over everything, keeps flat colour feeling printed */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 80; pointer-events: none;
  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)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay;
}

/* The 3D universe lives behind every page */
#universe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.no-webgl #universe { display: none; }
.orb-fallback { display: none; }
.no-webgl .orb-fallback {
  display: block; position: fixed; z-index: 0; pointer-events: none;
  width: min(70vmin, 620px); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, var(--milk) 0 6%, transparent 30%),
    radial-gradient(circle at 70% 75%, var(--ember), transparent 55%),
    radial-gradient(circle at 30% 70%, var(--mint), transparent 55%),
    var(--iris);
  filter: saturate(.9); opacity: .9;
}

main, .ftr { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "wdth" var(--w, 100), "wght" var(--g, 400);
  line-height: .92;
  letter-spacing: -.015em;
  margin: 0;
}
h2 { font-size: var(--s4); }
h3 { font-size: var(--s2); line-height: 1.05; --w: 112; --g: 500; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: var(--s1); line-height: 1.42; font-weight: 300; max-width: 36ch; }
.soft { color: var(--soft); }
.serif-display { font-family: var(--serif); font-weight: 300; font-style: italic; letter-spacing: -.01em; line-height: 1.02; }

/* Word masks for heading reveals */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > span { display: inline-block; will-change: transform; }

/* ---------- Mark: tbd + the dot that can't decide its shape ---------- */
.mark {
  display: inline-flex; align-items: baseline; gap: .06em; text-decoration: none;
  font-family: var(--display); font-size: 1.6rem; line-height: 1;
  font-variation-settings: "wdth" 72, "wght" 640; letter-spacing: -.02em;
}
.mark-dot {
  display: inline-block; width: .3em; height: .3em; background: var(--accent);
  border-radius: 50%; animation: undecided 9s var(--ease) infinite;
  transition: background-color 1.1s var(--ease);
}
@keyframes undecided {
  0%, 18% { border-radius: 50%; rotate: 0deg; scale: 1; }
  25%, 43% { border-radius: 8%; rotate: 90deg; scale: .9; }
  50%, 68% { border-radius: 50% 50% 8% 50%; rotate: 225deg; scale: 1; }
  75%, 93% { border-radius: 50% 8%; rotate: 315deg; scale: 1.1; }
  100% { border-radius: 50%; rotate: 360deg; scale: 1; }
}

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 22px var(--gutter);
  transition: translate .6s var(--ease), color 1.1s var(--ease);
}
.hdr.is-tucked { translate: 0 -110%; }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); }
.nav a, .menu-btn {
  font-family: var(--display); font-size: .95rem; text-decoration: none;
  font-variation-settings: "wdth" 100, "wght" 450;
  position: relative; padding: .4rem 0;
  transition: font-variation-settings .5s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover { font-variation-settings: "wdth" 140, "wght" 600; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .5rem 0; }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--dusk); color: var(--milk);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem;
  padding: 96px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease); }
.menu-open .hdr { color: var(--milk); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--display); font-size: clamp(3rem, 15vw, 6rem); line-height: .98; text-decoration: none;
  font-variation-settings: "wdth" 60, "wght" 300;
  transition: font-variation-settings .6s var(--ease);
}
.menu nav a:hover, .menu nav a:focus-visible { font-variation-settings: "wdth" 150, "wght" 700; }
.menu p { color: color-mix(in oklab, var(--milk) 65%, transparent); margin: 0; }

@media (max-width: 899px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  --size: 9.5rem;
  display: inline-grid; place-items: center; text-align: center;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--fg); color: var(--bg); text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: 1rem; line-height: 1.1; padding: 1rem;
  font-variation-settings: "wdth" 100, "wght" 550;
  transition: background-color 1.1s var(--ease), color 1.1s var(--ease), font-variation-settings .5s var(--ease);
}
.btn:hover { font-variation-settings: "wdth" 140, "wght" 700; }
.btn--line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn span { display: block; pointer-events: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link {
  font-family: var(--display); font-variation-settings: "wdth" 100, "wght" 500;
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .15em; transition: background-size .5s var(--ease), font-variation-settings .5s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; font-variation-settings: "wdth" 130, "wght" 600; }

/* ---------- Cursor (fine pointers only, created by JS) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--milk); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), border-radius .6s var(--ease);
  animation: undecided 9s var(--ease) infinite;
}
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; animation-play-state: paused; border-radius: 50%; }
.cursor-label {
  font-family: var(--display); font-size: .85rem; color: var(--void); opacity: 0;
  font-variation-settings: "wdth" 110, "wght" 650; transition: opacity .3s;
}
.cursor.is-label .cursor-label { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* ---------- Page veil (transitions) ---------- */
.veil {
  position: fixed; inset: 0; z-index: 90; background: var(--dusk); color: var(--milk);
  display: grid; place-items: center; pointer-events: none;
  clip-path: inset(100% 0% 0% 0%);
}
.veiled .veil { clip-path: inset(0% 0% 0% 0%); animation: veil-fail .01s 3s forwards; }
@keyframes veil-fail { to { clip-path: inset(0% 0% 100% 0%); } }
.veil-label {
  font-family: var(--display); font-size: clamp(3rem, 12vw, 11rem); line-height: 1;
  font-variation-settings: "wdth" var(--vw, 90), "wght" 300;
  display: inline-flex; align-items: baseline; gap: .08em;
}
.veil-label .mark-dot { background: var(--mint); }

/* ---------- Rooms ---------- */
.room { position: relative; padding: clamp(110px, 18vh, 220px) var(--gutter); }
.room-head { display: grid; gap: 1.5rem; margin-bottom: clamp(48px, 9vh, 110px); }
@media (min-width: 900px) {
  .room-head { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .room-head p { justify-self: end; margin: 0; }
}

/* HERO */
.hero {
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto; gap: 2rem;
  padding: clamp(110px, 17vh, 190px) var(--gutter) clamp(24px, 5vh, 48px);
}
.hero-title {
  font-size: var(--s5); line-height: .84; letter-spacing: -.035em;
  --w: 100; --g: 320; user-select: none;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line + .line { padding-left: 18vw; }
.hero-title .ch { display: inline-block; font-variation-settings: "wdth" var(--cw, 100), "wght" var(--cg, 320); }
.hero-sub { font-size: var(--s3); margin: .4em 0 0; padding-left: 18vw; color: var(--soft); }
.hero-foot { display: grid; gap: 1.5rem; align-items: end; }
.hero-foot p { margin: 0; max-width: 34ch; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 1fr auto 1fr; } .hero-foot .decide-wrap { justify-self: end; grid-column: 3; } }
.scroll-cue { display: flex; align-items: center; gap: .8rem; font-style: italic; color: var(--soft); font-size: var(--s-1); }
.scroll-cue i { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { translate: 0 -100%; } 60%, 100% { translate: 0 100%; } }

.decide-wrap { display: flex; align-items: center; gap: 1rem; }
.decide-wrap output { font-style: italic; color: var(--soft); font-size: var(--s-1); min-width: 10ch; text-align: right; }
.decide {
  position: relative; width: 108px; height: 108px; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in oklab, var(--fg) 8%, transparent); color: var(--fg);
  font-family: var(--display); font-size: .82rem; line-height: 1.1; touch-action: none; user-select: none;
  font-variation-settings: "wdth" 90, "wght" 520; -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
}
.decide svg { position: absolute; inset: 0; rotate: -90deg; }
.decide circle { fill: none; stroke-width: 1.5; }
.decide .track { stroke: var(--line); }
.decide .fill { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: calc(327 - 327 * var(--p, 0)); }

/* PREMISE */
.premise { min-height: 100vh; display: grid; align-content: center; }
.manifesto {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 4.4rem);
  line-height: 1.1; letter-spacing: -.012em; max-width: 24ch; margin: 0;
}
.manifesto em { font-style: italic; }
.manifesto .wd { transition: opacity .2s linear; }
.premise-note { margin-top: 3rem; max-width: 40ch; color: var(--soft); }
@media (min-width: 900px) { .premise-note { margin-left: 40%; } }

/* STUDIES (horizontal gallery on desktop) */
.studies { padding-inline: 0; overflow: hidden; }
.studies-track { display: flex; gap: clamp(28px, 5vw, 90px); padding-inline: var(--gutter); align-items: center; width: max-content; }
.studies-intro { width: min(34vw, 440px); flex: none; }
.studies-intro h2 { margin-bottom: 2rem; }
.study { flex: none; width: min(32vw, 470px); text-decoration: none; display: block; }
.study:nth-of-type(odd) { translate: 0 6vh; }
.study:nth-of-type(even) { translate: 0 -5vh; }
.poster-frame { border-radius: 2px; overflow: hidden; aspect-ratio: 4 / 5; position: relative; background: var(--dusk); }
.poster-frame > * { width: 100%; height: 100%; transition: scale 1.2s var(--ease); }
.study:hover .poster-frame > *, .study:focus-visible .poster-frame > * { scale: 1.05; }
.study-cap { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; align-items: baseline; }
.study-cap h3 { font-size: var(--s1); }
.study-cap span { font-style: italic; color: var(--soft); font-size: var(--s-1); white-space: nowrap; }
.studies-end { flex: none; width: 260px; display: grid; place-items: center; }
@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .studies { padding-inline: var(--gutter); }
  .studies-track { flex-direction: column; align-items: stretch; width: auto; padding: 0; }
  .studies-intro, .study { width: 100%; translate: none !important; }
  .studies-end { width: auto; place-items: start; }
}

/* CAPABILITIES (milk world) */
.caps-list { list-style: none; margin: 0; padding: 0; }
.cap { display: grid; gap: 1rem; padding: clamp(24px, 4vh, 48px) 0; border-top: 1px solid var(--line); align-items: end; }
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap-word { font-size: clamp(3.4rem, 13vw, 13rem); line-height: .82; letter-spacing: -.04em; --w: 50; --g: 200; }
.cap p { margin: 0; max-width: 34ch; }
.cap a { justify-self: start; }
@media (min-width: 900px) {
  .cap { grid-template-columns: 1fr 22rem; column-gap: 3rem; }
  .cap p, .cap a { grid-column: 2; }
  .cap-word { grid-row: 1 / span 2; }
}

/* PROCESS */
.process { display: grid; gap: 3rem; }
@media (min-width: 900px) {
  .process { grid-template-columns: 1fr 1.1fr; }
  .process-head { position: sticky; top: 22vh; align-self: start; }
}
.steps { padding: 0 0 0 2.2rem; position: relative; }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps::before, .steps-progress { content: ""; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 1px; background: var(--line); }
.steps-progress { background: var(--mint); transform-origin: top; transform: scaleY(var(--sp, 1)); }
.step { padding: 0 0 clamp(56px, 12vh, 140px); position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: calc(-2.2rem - 5px); top: .45rem; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--fg);
  transition: background-color .6s var(--ease), border-radius .6s var(--ease), rotate .6s var(--ease);
}
.step.is-on::before { background: var(--mint); box-shadow: none; border-radius: 2px; rotate: 45deg; }
.step h3 { font-size: var(--s3); margin-bottom: .6rem; }
.step time { display: block; font-style: italic; color: var(--soft); margin-bottom: .6rem; }

/* FINALE (iris world) */
.finale { min-height: 100vh; display: grid; align-content: center; gap: 3rem; }
.finale h2 { font-size: var(--s5); line-height: .84; letter-spacing: -.035em; --w: 60; --g: 300; }
.finale-row { display: flex; flex-wrap: wrap; gap: 2rem 4rem; align-items: center; }
.finale-row p { margin: 0; max-width: 32ch; }

/* ---------- Footer ---------- */
.ftr { padding: clamp(80px, 14vh, 160px) var(--gutter) 28px; display: grid; gap: clamp(48px, 8vh, 96px); }
.ftr-top { display: grid; gap: 2.5rem; }
.ftr-line { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: var(--s3); line-height: 1.05; margin: 0; }
.ftr-cols { display: flex; flex-wrap: wrap; gap: 2rem 4rem; }
.ftr-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ftr-cols a { text-decoration: none; }
.ftr-cols a:hover { text-decoration: underline; }
@media (min-width: 900px) { .ftr-top { grid-template-columns: 1fr auto; align-items: end; } }
.ftr-mark {
  display: flex; align-items: baseline; gap: .04em; text-decoration: none;
  font-family: var(--display); font-size: clamp(7rem, 38vw, 40rem); line-height: .72; letter-spacing: -.05em;
  font-variation-settings: "wdth" 60, "wght" 700; transition: font-variation-settings 1.2s var(--ease);
  margin-left: -.04em;
}
.ftr-mark:hover { font-variation-settings: "wdth" 150, "wght" 200; }
.ftr-mark .mark-dot { width: .22em; height: .22em; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--s-1); color: var(--soft); }

/* ==========================================================================
   Pages
   ========================================================================== */
.page-hero { min-height: 82svh; display: grid; align-content: end; gap: 2rem; padding: 160px var(--gutter) clamp(48px, 10vh, 110px); }
.page-hero h1 { font-size: var(--s5); line-height: .84; letter-spacing: -.035em; --w: 70; --g: 300; }
.page-hero h1.h-long { font-size: clamp(3rem, 8.6vw, 9.5rem); max-width: 11ch; }
.page-hero .lede { margin: 0; }
@media (min-width: 900px) { .page-hero .lede { max-width: 34ch; } }

/* PROJECTS index */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-row a {
  display: grid; gap: 1rem; text-decoration: none; padding: clamp(22px, 4vh, 44px) 0; border-bottom: 1px solid var(--line);
  align-items: center;
}
.index-row h2 {
  font-size: clamp(3rem, 10vw, 10rem); line-height: .86; letter-spacing: -.035em; --w: 55; --g: 300;
  transition: font-variation-settings .9s var(--ease), translate .9s var(--ease);
}
.index-row a:hover h2, .index-row a:focus-visible h2 { --w: 150; --g: 650; translate: 1.5vw 0; }
.index-row .meta { display: grid; gap: .2rem; color: var(--soft); font-size: var(--s-1); }
.index-row .meta strong { color: var(--fg); font-weight: 400; font-size: var(--s0); }
.index-row .poster-frame { display: none; }
@media (min-width: 900px) { .index-row a { grid-template-columns: 1fr 20rem; } }
@media (hover: none), (max-width: 899px) { .index-row .poster-frame { display: block; } }
.float-poster {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4 / 5; pointer-events: none;
  margin: -190px 0 0 -150px; border-radius: 2px; overflow: hidden; opacity: 0; scale: .8;
  transition: opacity .4s var(--ease), scale .6s var(--ease);
}
.float-poster.is-on { opacity: 1; scale: 1; }
.float-poster > * { width: 100%; height: 100%; }
.index-note { margin-top: 3rem; color: var(--soft); max-width: 44ch; font-style: italic; }

/* PROJECT detail */
.pd-hero { min-height: 100svh; display: grid; align-content: end; gap: 2.5rem; padding: 150px var(--gutter) 6vh; }
.pd-hero h1 { font-size: clamp(3.4rem, 12.5vw, 14rem); line-height: .84; letter-spacing: -.035em; --w: 62; --g: 320; }
.pd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.pd-meta dt { color: var(--soft); font-size: var(--s-1); font-style: italic; }
.pd-meta dd { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 100, "wght" 500; }
.pd-cover { padding: 0 var(--gutter); }
.pd-cover .poster-frame { aspect-ratio: 16 / 10; max-height: 92vh; width: 100%; }
.pd-cover .poster-frame svg { object-fit: cover; }
.pd-body { display: grid; gap: clamp(64px, 12vh, 140px); }
.pd-block { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .pd-block { grid-template-columns: 1fr 1.3fr; } }
.pd-block h2 { font-size: var(--s3); --w: 110; --g: 500; }
.pd-block .serif-display { font-size: clamp(1.7rem, 3.4vw, 3rem); margin: 0; max-width: 24ch; }
.pd-list { list-style: none; padding: 0; margin: 0; }
.pd-list li { padding: 1rem 0; border-top: 1px solid var(--line); font-size: var(--s1); }
.pd-sample {
  border-radius: 2px; padding: clamp(28px, 5vw, 64px); display: grid; gap: 1rem;
  background: var(--p-bg, var(--dusk)); color: var(--p-fg, var(--milk));
}
.pd-sample .s-h { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; font-weight: 400; margin: 0; }
.pd-sample p { margin: 0; max-width: 46ch; }
.pd-sample .s-cta { justify-self: start; padding: .7rem 1.2rem; border-radius: 999px; background: var(--p-ac, var(--mint)); color: var(--p-bg, var(--void)); font-family: var(--display); font-size: var(--s-1); }
.pd-next { display: block; text-decoration: none; padding: clamp(80px, 16vh, 180px) var(--gutter); border-top: 1px solid var(--line); }
.pd-next span { font-style: italic; color: var(--soft); }
.pd-next strong {
  display: block; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 11vw, 12rem); line-height: .86; letter-spacing: -.035em;
  font-variation-settings: "wdth" 55, "wght" 300; transition: font-variation-settings 1s var(--ease);
}
.pd-next:hover strong { font-variation-settings: "wdth" 150, "wght" 700; }

/* SERVICES */
.offer { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .offer { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .offer { grid-template-columns: repeat(3, 1fr); } }
.offer li { padding: 2rem 2rem 2.5rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .8rem; align-content: start; }
.offer .glyph { width: 46px; height: 46px; color: var(--accent); transition: rotate 1.2s var(--ease), scale 1.2s var(--ease); }
.offer li:hover .glyph { rotate: 180deg; scale: 1.15; }
.offer p { margin: 0; color: var(--soft); max-width: 34ch; }
.tiers { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .tiers { grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; } }
.tier {
  border-radius: 28px; padding: clamp(28px, 3vw, 44px); display: grid; gap: 1.25rem; align-content: start;
  box-shadow: inset 0 0 0 1px var(--line);
}
.tier--lead { background: var(--void); color: var(--milk); box-shadow: none; border-radius: 120px 28px 28px 28px; }
.tier h3 { font-size: var(--s3); --w: 130; --g: 600; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tier li { padding-left: 1.4rem; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; }
.tier .price { font-style: italic; opacity: .75; margin: 0; }
.tier .btn { --size: 8rem; justify-self: start; }
.tier--lead .btn { background: var(--mint); color: var(--void); }
.faq { border-top: 1px solid var(--line); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.5rem 3rem 1.5rem 0; position: relative;
  font-family: var(--display); font-size: var(--s2); line-height: 1.15; font-variation-settings: "wdth" 100, "wght" 420;
  transition: font-variation-settings .6s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .3rem; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; transition: border-radius .6s var(--ease), rotate .6s var(--ease), background-color .6s;
}
.faq details[open] summary { font-variation-settings: "wdth" 130, "wght" 600; }
.faq details[open] summary::after { border-radius: 2px; rotate: 45deg; background: var(--accent); box-shadow: none; }
.faq details p { padding-bottom: 1.5rem; color: var(--soft); }

/* ABOUT */
.name-split { font-size: clamp(3rem, 12vw, 12rem); line-height: .86; letter-spacing: -.035em; }
.name-split span { display: block; }
.name-split span:nth-child(1) { --w: 50; --g: 250; }
.name-split span:nth-child(2) { --w: 100; --g: 450; padding-left: 12vw; }
.name-split span:nth-child(3) { --w: 150; --g: 750; padding-left: 24vw; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principles div { padding: 2.2rem 2rem 2.6rem 0; border-bottom: 1px solid var(--line); }
.principles h3 { margin-bottom: .8rem; }
.principles p { color: var(--soft); margin: 0; max-width: 38ch; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* CONTACT */
.contact-grid { display: grid; gap: clamp(48px, 8vw, 120px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.contact-aside { display: grid; gap: 1.5rem; align-content: start; }
.contact-aside a { font-family: var(--display); font-size: var(--s2); font-variation-settings: "wdth" 90, "wght" 450; word-break: break-word; }
.form { display: grid; gap: 1.6rem; }
.form .row { display: grid; gap: 1.6rem; }
@media (min-width: 700px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .chips legend { font-style: italic; color: var(--soft); font-size: var(--s-1); }
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--s1); color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .5rem 0 .7rem;
  transition: border-color .4s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--accent); }
.field [aria-invalid="true"] { border-color: var(--ember); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips legend { margin-bottom: .8rem; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: .6rem 1.1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--display); font-size: .95rem; font-variation-settings: "wdth" 100, "wght" 450;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-radius .5s var(--ease), font-variation-settings .5s var(--ease);
}
.chips input:checked + span { background: var(--fg); color: var(--bg); border-radius: 6px; font-variation-settings: "wdth" 120, "wght" 600; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-status { min-height: 1.5em; font-style: italic; }
.form-status:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .scroll-cue i::after { display: none; }
}
