/* Zentaro Studio: landing page
   Palette comes from the Studio logo: navy #1f2731 and a champagne-gold band on
   warm paper. Type follows zentaro.io (Cormorant Garamond + Jost). */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-style: normal; font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-style: italic; font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-style: normal; font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display.woff2") format("woff2"); font-style: normal; font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-italic.woff2") format("woff2"); font-style: italic; font-weight: 500 700; font-display: swap; }

:root {
  --paper: #fbf9f6;
  --paper-2: #f4efe8;
  --paper-3: #ebe4da;
  --ink: #11161c;
  --ink-2: #19202a;
  --ink-3: #1f2731;
  --on-ink: #f4efe8;
  --dim: rgba(31, 39, 49, 0.74);
  --dim-ink: rgba(244, 239, 232, 0.64);
  --gold: #c9a679;
  --gold-deep: #8a6a42;
  --gold-soft: #e3c6a0;
  --gold-bright: #ecd6b6;
  --line: rgba(138, 106, 66, 0.24);
  --line-ink: rgba(227, 198, 160, 0.16);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --grotesk: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 64px;
  --statement-overlap: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink-3);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
[data-theme="ink"] h2 em, [data-theme="ink"] h1 em { color: var(--gold-soft); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 8px;
  background: var(--paper); color: var(--ink-3); transform: translateY(-160%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--sans); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow-ink { color: var(--gold-soft); }
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.9em 1.7em; border-radius: 999px; border: 1px solid transparent;
  font: 400 0.9rem/1 var(--sans); letter-spacing: 0.04em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s, filter 0.3s;
  will-change: transform;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, #d4b48c 48%, #b8956a 100%);
  color: #11161c;
  box-shadow: 0 14px 34px -14px rgba(201, 166, 121, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover { filter: brightness(1.07); box-shadow: 0 18px 44px -12px rgba(201, 166, 121, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { border-color: rgba(243, 236, 224, 0.28); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-bright); }
.hero .btn-ghost { border-color: rgba(31, 39, 49, 0.24); color: var(--ink-3); }
.hero .btn-ghost:hover { border-color: var(--ink-3); color: var(--ink-3); }
.btn-sm { min-height: 40px; padding: 0.7em 1.2em; font-size: 0.8rem; }
.btn-lg { min-height: 60px; padding: 1.1em 2.2em; font-size: 1rem; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; font-size: 1.1rem; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.round-btn:hover { background: var(--ink-3); color: var(--paper); border-color: var(--ink-3); }

/* ---------- ambient layers ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.has-cursor .cursor { display: grid; place-items: center; }
.cursor.is-hidden { opacity: 0; }
.cursor.is-hover { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(201, 166, 121, 0.12); }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--gold-soft); border-color: transparent; }
.cursor-label { font: 400 0.6rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #11161c; opacity: 0; transition: opacity 0.2s; }
.cursor.is-label .cursor-label { opacity: 1; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; color: var(--nav-fg, var(--on-ink)); transition: color 0.4s; }
.nav-row {
  position: relative; display: flex; align-items: center; gap: 1.25rem;
  height: var(--nav-h); padding: 0 var(--gutter);
  background: var(--nav-bg, transparent); border-bottom: 1px solid var(--nav-line, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  transition: background-color 0.4s, border-color 0.4s;
}
body[data-nav="ink"] { --nav-fg: var(--on-ink); --nav-bg: rgba(17, 22, 28, 0.5); --nav-line: var(--line-ink); }
body[data-nav="paper"] { --nav-fg: var(--ink-3); --nav-bg: rgba(251, 247, 241, 0.74); --nav-line: var(--line); }
body.at-top { --nav-bg: transparent; --nav-line: transparent; }
/* logo lockup: mark, then ZENTARO over a spaced STUDIO, as on the logo */
.lockup { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: inherit; }
.lockup-mark { width: auto; height: 26px; overflow: visible; }
.lockup-type { display: grid; justify-items: center; gap: 5px; }
.lockup-word { display: block; width: auto; height: 11px; overflow: visible; }
.lockup-sub { font: 400 0.5rem/1 var(--sans); letter-spacing: 0.62em; margin-right: -0.62em; text-transform: uppercase; color: var(--gold); }
body[data-nav="paper"] .nav .lockup-sub { color: var(--gold-deep); }
.nav-mark { margin-right: auto; }
.nav-links { display: none; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a { position: relative; font-size: 0.82rem; letter-spacing: 0.03em; min-height: 44px; display: inline-flex; align-items: center; opacity: 0.78; transition: opacity 0.3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle i { display: block; width: 22px; height: 1px; background: currentColor; transition: transform 0.35s var(--ease); }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.nav-sheet {
  display: grid; padding: 8px var(--gutter) 20px;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-line);
}
body.at-top .nav-sheet { background: rgba(17, 22, 28, 0.92); }
body.at-top[data-nav="paper"] .nav-sheet { background: rgba(251, 249, 246, 0.95); }
.nav-sheet[hidden] { display: none; }
.nav-sheet a { font: 500 1.7rem/1 var(--serif); padding: 12px 0; border-bottom: 1px solid var(--nav-line, var(--line-ink)); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.nav-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transform-origin: left; transform: scaleX(var(--scroll, 0)); }

@media (min-width: 560px) { .nav-cta { display: inline-flex; } }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-sheet { display: none !important; }
  .nav-cta { margin-left: 12px; }
}

/* ---------- intro choreography ---------- */
.js [data-intro] { opacity: 0; transform: translateY(26px); }
.js.is-ready [data-intro] { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js.is-ready [data-intro]:nth-child(2) { transition-delay: 0.08s; }
.js.is-ready [data-intro]:nth-child(3) { transition-delay: 0.5s; }
.js.is-ready [data-intro]:nth-child(4) { transition-delay: 0.65s; }
.js [data-intro][data-split] { opacity: 1; transform: none; }

/* split words: each word rises out of its own mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.08em 0.12em; margin: -0.04em -0.08em -0.12em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(110%); transition: transform 1.25s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.js.is-ready .hero [data-split] .w > span,
.js [data-split].is-in .w > span { transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; background: #f0ebe3; color: var(--ink-3); --p: 0; }
.js:not(.reduced) .hero { height: 280vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; }
.hero.gl-ready .hero-gl { opacity: 1; }
/* crisp DOM plaque: placed each frame from the shader's camera, fades in once the gold has set */
.hero-plaque {
  position: absolute; z-index: 1; left: 0; top: 0; width: 40vw; pointer-events: none;
  opacity: clamp(0, calc((var(--p) - 0.56) * 9), 1);
}
.hero-plaque:not([data-placed]) { visibility: hidden; }
.reduced .hero-plaque { opacity: 1; }
.hero.no-gl .hero-plaque {
  visibility: visible; opacity: 1; left: auto; right: 3vw; top: 50%; width: min(45vw, 680px); translate: 0 -50%;
}
.hero-copy {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(6.5rem, 15vh, 10rem);
  opacity: clamp(0, calc(1 - (var(--p) - 0.05) * 5.5), 1);
  transform: translate3d(0, calc(var(--p) * -22vh), 0);
}
.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(3rem, 7.2vw, 7.6rem); line-height: 0.92; letter-spacing: -0.025em; font-weight: 500;
  text-wrap: balance;
}
.hero-title em { color: var(--gold-deep); }
.hero-lede { margin-top: 1.4rem; max-width: 34rem; color: var(--dim); font-size: clamp(1rem, 1.25vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.9rem; }
.js:not(.reduced) .hero-copy { pointer-events: auto; }

.hero-phase {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(6.5rem, 15vh, 10rem); max-width: 34rem;
  opacity: 0; pointer-events: none;
}
.hero-phase .phase-no { font: 400 0.7rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); }
.hero-phase p { margin-top: 0.9rem; font: 400 clamp(1.7rem, 3.4vw, 3rem)/1.1 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.hero-phase[data-phase="1"] { opacity: clamp(0, min(calc((var(--p) - 0.24) * 8), calc((0.56 - var(--p)) * 8)), 1); transform: translateY(calc((0.4 - var(--p)) * 60px)); }
.hero-phase[data-phase="2"] { opacity: clamp(0, calc((var(--p) - 0.6) * 8), 1); transform: translateY(calc((0.75 - var(--p)) * 60px)); }
.reduced .hero-phase { display: none; }

.hero-hud {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 1.6rem;
  display: flex; align-items: center; gap: 18px; color: var(--dim);
  font: 400 0.64rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
}
.hud-label { white-space: nowrap; }
.hud-track { position: relative; flex: 1; height: 1px; background: var(--line); }
.hud-track i { position: absolute; inset: 0; background: var(--gold-deep); transform-origin: left; transform: scaleX(var(--p)); }
.hud-steps { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.hud-steps li { transition: color 0.4s; }
.hero[data-stage="0"] .hud-steps li:nth-child(1),
.hero[data-stage="1"] .hud-steps li:nth-child(2),
.hero[data-stage="2"] .hud-steps li:nth-child(3) { color: var(--gold-deep); }
.reduced .hero-hud, html:not(.js) .hero-hud { display: none; }
@media (max-width: 559px) { .hud-label { display: none; } }

@media (min-width: 900px) {
  .hero-copy { right: auto; max-width: min(52rem, 58vw); bottom: clamp(5.5rem, 13vh, 9rem); }
  .hero-phase { right: auto; }
  .hero.no-gl .hero-copy { max-width: 46vw; }
}
@media (max-width: 899px) {
  .hero.no-gl .hero-plaque { right: 6vw; top: 30%; width: 88vw; }
}

/* Chosen hero: a folding studio signature with a real website behind it. */
.hero--signature { background: #f4f0e9; }
.hero-signature { position: absolute; right: 3vw; top: 15%; width: 59vw; height: 73%; }
.signature-fallback { width: 65%; height: auto; margin: 10% auto; }
.hero--signature .hero-stage { background: radial-gradient(ellipse at 75% 55%, #e8e1d555, transparent 64%); }
.hero--signature .hero-copy { right: auto; max-width: 36vw; bottom: 20%; }
.hero--signature .hero-title { font-size: clamp(3rem, 6.7vw, 7.6rem); }
.hero--signature .hero-lede { max-width: 28rem; font-size: clamp(.9rem, 1.1vw, 1.05rem); }
.hero--signature .hero-actions { gap: 10px; }
.hero--signature .hero-actions .btn { font-size: .8rem; padding: .9em 1.4em; }
.hero--signature .hero-phase { max-width: 30vw; bottom: 20%; }
.hero--signature .hero-phase[data-phase="1"] { opacity: clamp(0, min(calc((var(--p) - .24) * 14), calc((.49 - var(--p)) * 16)), 1); }
.hero--signature .hero-phase[data-phase="2"] { opacity: clamp(0, min(calc((var(--p) - .5) * 14), calc((.82 - var(--p)) * 16)), 1); }
.hero--signature .hero-phase[data-phase="3"] { opacity: clamp(0, calc((var(--p) - .83) * 14), 1); transform: translateY(calc((1 - var(--p)) * 40px)); }
@media (max-width: 899px) {
  .hero--signature .hero-copy { top: calc(var(--nav-h) + 3.5vh); bottom: auto; left: var(--gutter); right: var(--gutter); max-width: 34rem; }
  .hero--signature .hero-title { font-size: clamp(3rem, 10vw, 5.4rem); line-height: .94; margin-top: 1rem; }
  .hero--signature .hero-lede { max-width: 34rem; font-size: .9rem; margin-top: 1rem; }
  .hero--signature .hero-actions { margin-top: 1.2rem; }
  .hero-signature { right: 4%; top: 46%; width: 92%; height: 43%; }
  .hero--signature .hero-phase { top: calc(var(--nav-h) + 6vh); bottom: auto; max-width: 32rem; }
  .hero--signature .hero-phase p { font-size: clamp(1.8rem, 6.5vw, 2.8rem); }
}
@media (max-width: 559px) and (max-height: 760px) {
  .hero--signature .hero-copy { top: calc(var(--nav-h) + 1vh); }
  .hero--signature .hero-title { font-size: clamp(2.7rem, 10vw, 3.3rem); }
  .hero--signature .hero-lede { font-size: .8rem; line-height: 1.5; margin-top: .8rem; }
  .hero--signature .hero-actions { margin-top: .8rem; }
  .hero--signature .hero-actions .btn { min-height: 40px; font-size: .7rem; }
  .hero-signature { top: 50%; height: 38%; }
}

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 1; overflow: hidden; background: var(--ink); color: var(--gold-soft);
  padding: clamp(1.4rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--line-ink);
  /* The rounded section overlaps this space, rather than the lettering. */
  padding-bottom: calc(clamp(1.4rem, 3vw, 2.4rem) + var(--statement-overlap));
}
.marquee-track {
  display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.8rem); width: max-content;
  font: italic 400 clamp(2.6rem, 7vw, 6.4rem)/1 var(--serif); white-space: nowrap; will-change: transform;
}
.marquee-track span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px rgba(227, 198, 160, 0.7); }
.marquee-track b { font: 400 0.32em/1 var(--sans); color: var(--gold); }

/* ---------- statement ---------- */
.statement { position: relative; background: var(--paper); padding: clamp(6rem, 15vw, 13rem) 0 clamp(5rem, 11vw, 9rem); border-radius: var(--statement-overlap) var(--statement-overlap) 0 0; margin-top: calc(var(--statement-overlap) * -1); z-index: 2; }
.statement-text {
  margin-top: 2rem; max-width: 24ch;
  font: 400 clamp(2rem, 5vw, 4.5rem)/1.08 var(--serif); letter-spacing: -0.015em; color: var(--ink-3); text-wrap: pretty;
}
.statement-text em { color: var(--gold-deep); }
.statement-text .sw-word { transition: opacity 0.25s linear; }
.statement-meta {
  display: grid; gap: 1px; margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.statement-meta div { display: flex; gap: 18px; align-items: baseline; padding: 22px 0; background: var(--paper); }
.statement-meta b { font: italic 400 1.1rem/1 var(--serif); color: var(--gold-deep); }
.statement-meta span { font-size: 0.98rem; color: var(--dim); }
@media (max-width: 759px) {
  .statement { padding-top: 4rem; }
}
@media (min-width: 760px) {
  .statement-meta { grid-template-columns: repeat(3, 1fr); background: none; border-bottom: 0; }
  .statement-meta div { flex-direction: column; gap: 12px; padding: 26px 26px 0 0; border-right: 1px solid var(--line); }
  .statement-meta div:last-child { border-right: 0; }
  .statement-meta div + div { padding-left: 26px; }
}

/* ---------- studies (3D ring) ---------- */
.studies {
  position: relative; z-index: 2;
  background:
    radial-gradient(70% 50% at 50% 46%, rgba(255, 252, 246, 0.9), transparent 70%),
    linear-gradient(var(--paper), var(--paper-2) 40%, var(--paper-3));
  --pw: min(84vw, 820px);
}
.studies-stage { display: flex; flex-direction: column; padding: clamp(4rem, 8vw, 6rem) 0; gap: 2rem; }
.studies-head { display: grid; gap: 1rem; }
.studies-head h2 { margin-top: 0.8rem; }
.studies-note { max-width: 32rem; color: var(--dim); }
.ring-viewport { position: relative; }
.ring { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px; }
.panel { flex: 0 0 var(--pw); scroll-snap-align: center; margin: 0; }
.panel .mock { box-shadow: 0 40px 70px -40px rgba(31, 39, 49, 0.5), 0 0 0 1px rgba(31, 39, 49, 0.08); }
.panel-link { display: block; border-radius: 14px; color: inherit; -webkit-user-drag: none; }
.panel-link:focus-visible { outline-offset: 6px; border-radius: 14px; }

.studies-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.study-caption { display: grid; gap: 6px 26px; align-items: baseline; min-height: 5.6rem; }
.study-count { font: 400 0.72rem/1 var(--sans); letter-spacing: 0.2em; color: var(--dim); }
.study-count b { font-weight: 500; color: var(--gold-deep); }
.study-name { font: 500 clamp(1.7rem, 3vw, 2.4rem)/1 var(--serif); }
.study-kind { margin-top: 6px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.study-note { max-width: 30rem; color: var(--dim); font-size: 0.98rem; }
.study-nav { display: none; gap: 10px; }
.js .study-nav { display: flex; }
.study-caption .is-swap { animation: swap 0.6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

.js:not(.reduced) .studies { height: 560vh; }
.js:not(.reduced) .studies-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(1.2rem, 3.5vh, 2.6rem)) 0 clamp(1.4rem, 4vh, 2.6rem); gap: 0;
}
.js:not(.reduced) .studies { --pw: min(84vw, 860px, calc((100svh - 23rem) * 1.6)); }
@media (max-width: 759px) { .js:not(.reduced) .studies { --pw: min(90vw, calc((100svh - 20rem) * 1.6)); } }
.js:not(.reduced) .ring-viewport {
  flex: 1; min-height: 0; display: grid; place-items: center;
  perspective: 1900px; perspective-origin: 50% 35%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.js:not(.reduced) .ring-viewport.is-dragging { cursor: grabbing; }
.js:not(.reduced) .ring {
  display: block; overflow: visible; padding: 0; position: relative;
  width: var(--pw); aspect-ratio: 16 / 10; transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  /* the ring is a plane at z = 0; the eased front card can sit a hair behind it,
     so only the cards take the pointer */
  pointer-events: none;
}
.js:not(.reduced) .panel { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform, opacity; pointer-events: auto; }
.js:not(.reduced) .panel .mock {
  box-shadow: 0 50px 90px -40px rgba(31, 39, 49, 0.55), 0 0 0 1px rgba(31, 39, 49, 0.08);
  -webkit-box-reflect: below 18px linear-gradient(transparent 86%, rgba(255, 255, 255, 0.1));
}
.js:not(.reduced) .panel::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: var(--paper-2); opacity: var(--shade, 0);
}
.js:not(.reduced) .studies-foot { margin-top: clamp(0.5rem, 2vh, 1.4rem); }

@media (min-width: 760px) {
  .studies-head { grid-template-columns: 1fr auto; align-items: end; }
  .studies-note { text-align: right; max-width: 24rem; }
  .study-caption { grid-template-columns: auto auto 1fr; }
}
@media (max-width: 759px) {
  .study-note { display: none; }
  .studies-note { font-size: 0.92rem; }
}

/* ---------- process (exploded layers) ---------- */
.process { position: relative; background: var(--ink); color: var(--on-ink); --gap: 46; --rx: 56deg; --rz: -38deg; --sw: min(80vw, 520px); }
.process-stage {
  display: grid; gap: 3rem; padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  max-width: 1400px; margin: 0 auto;
}
.process-copy h2 { margin-top: 0.9rem; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 10px; padding: 14px 0 14px 18px; border-left: 1px solid var(--line-ink); transition: border-color 0.5s; }
.step-no { font: italic 400 1.05rem/1.4 var(--serif); color: var(--gold-soft); }
.steps h3 { font-size: 1.45rem; line-height: 1.2; }
.steps p { margin-top: 4px; color: var(--dim-ink); font-size: 0.94rem; max-width: 30rem; }
/* Pinned mode: the list never changes height. Titles dim and light in place, and the
   active step's description crossfades into one reserved slot under the list, so
   nothing on the left (or the stack beside it) moves while the section is pinned. */
.js:not(.reduced) .steps { position: relative; padding-bottom: 5.4rem; }
.js:not(.reduced) .steps li > .step-no,
.js:not(.reduced) .steps li h3 { opacity: 0.32; transition: opacity 0.5s; }
.js:not(.reduced) .steps li.is-active { border-left-color: var(--gold-soft); }
.js:not(.reduced) .steps li.is-active > .step-no,
.js:not(.reduced) .steps li.is-active h3 { opacity: 1; }
.js:not(.reduced) .steps p {
  position: absolute; left: calc(18px + 2.6rem + 10px); right: 0; top: calc(100% - 5.4rem + 1rem); margin: 0;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.45s ease, transform 0.6s var(--ease);
}
.js:not(.reduced) .steps li.is-active p { opacity: 1; transform: none; }

.stack-viewport { position: relative; display: grid; place-items: center; perspective: 2600px; min-height: calc(var(--sw) * 1.05); }
.stack {
  position: relative; width: var(--sw); aspect-ratio: 1440 / 852; font-size: calc(var(--sw) * 0.0286);
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz));
}
.stack-shadow { position: absolute; width: calc(var(--sw) * 0.9); height: calc(var(--sw) * 0.3); left: 50%; top: 62%; transform: translate(-50%, 0); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); filter: blur(10px); pointer-events: none; z-index: -1; }
.layer {
  position: absolute; inset: 0; border-radius: 0.7em; transform-style: preserve-3d;
  transform: translateZ(calc(var(--z) * (var(--gap) * 1px + 2px)));
  border: 1px solid rgba(227, 198, 160, 0.3);
  background: rgba(236, 214, 182, 0.035);
  transition: border-color 0.5s, background-color 0.5s, box-shadow 0.5s, opacity 0.5s;
}
/* the current step's layer lights up in place; the others step back. Nothing moves. */
.layer.is-active { border-color: var(--gold-bright); box-shadow: 0 0 0 1px rgba(236, 214, 182, 0.4), 0 0 60px rgba(236, 214, 182, 0.18); }
.process:not(.is-assembled) .layer:not(.is-active) { opacity: 0.5; }
.process:not(.is-assembled) .l-care:not(.is-active) { opacity: 0.7; }
.process.is-assembled .layer { border-color: transparent; box-shadow: none; }
.layer .tag {
  position: absolute; left: 0; top: -2.3em; padding: 0.35em 0.8em; border-radius: 99px;
  font: 400 0.62em/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold-soft); border: 1px solid rgba(227, 198, 160, 0.35); background: rgba(17, 22, 28, 0.6);
  transition: opacity 0.4s, color 0.4s, background-color 0.4s;
}
.layer.is-active .tag { color: #11161c; background: var(--gold-soft); border-color: transparent; }
.process.is-assembled .layer .tag { opacity: 0; }

/* Each layer is a capture of the real study page (scripts/capture-layers.mjs). */
.layer .cap { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; transition: filter 0.6s ease, opacity 0.6s ease; }
/* floating over the dark stage, dark ink is inverted so type and buttons stay legible */
.process:not(.is-assembled) .l-type .cap,
.process:not(.is-assembled) .l-ui .cap { filter: invert(1) hue-rotate(180deg); }

.l-care { --z: 0; border-color: rgba(227, 198, 160, 0.5); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
/* overlays are sized to the page's own scale (the stack shows a 1440px page at ~0.42x) */
.l-care .care { position: absolute; right: 2.5%; bottom: 3%; display: flex; gap: 0.35em; transition: opacity 0.5s; }
.l-care .care span { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.4em 0.65em; border-radius: 99px; background: #231d18; color: #f3ede3; font: 400 0.4em/1 var(--sans); letter-spacing: 0.04em; white-space: nowrap; }
.l-care .care i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #9a8f80; }
.l-care .care i.ok { background: #6fcf8e; box-shadow: 0 0 0.5em rgba(111, 207, 142, 0.8); }
.process.is-assembled .l-care .care { opacity: 0; }

.l-ui { --z: 1; }
.l-ui .u-focus { position: absolute; left: 3.33%; top: 57.31%; width: 15.27%; height: 6.1%; outline: 0.1em solid #8a5a33; outline-offset: 0.16em; transition: opacity 0.5s; }
.l-ui .u-cursor { position: absolute; left: 16.4%; top: 61.6%; width: 0.62em; height: auto; filter: drop-shadow(0 0.08em 0.12em rgba(0, 0, 0, 0.35)); }
.l-ui .u-cart {
  position: absolute; right: 3.3%; top: 13.5%; width: 23%; display: flex; gap: 0.5em; align-items: center;
  padding: 0.5em; background: #faf7f1; border: 1px solid rgba(35, 29, 24, 0.12); border-radius: 0.15em;
  box-shadow: 0 0.6em 1.4em -0.3em rgba(35, 29, 24, 0.35); color: #231d18; transition: opacity 0.5s;
}
.l-ui .u-cart img { width: 2.4em; height: 2.4em; object-fit: cover; flex: none; }
.l-ui .u-cart b { display: block; font: 600 0.38em/1.3 var(--sans); white-space: nowrap; }
.l-ui .u-cart span { display: block; margin-top: 0.2em; font: 400 0.34em/1.3 var(--sans); color: #6b5e52; white-space: nowrap; }
.l-ui .u-cart em { display: inline-block; margin-top: 0.5em; font: 500 0.33em/1 var(--sans); font-style: normal; text-decoration: underline; text-underline-offset: 0.3em; }
.process.is-assembled .l-ui .u-focus, .process.is-assembled .l-ui .u-cursor, .process.is-assembled .l-ui .u-cart { opacity: 0; }

.l-colour { --z: 2; }

.l-type { --z: 3; }
.l-type .t-spec { position: absolute; right: 2.5%; bottom: -1.9em; font: 400 0.6em/1 var(--mono); color: var(--gold-soft); opacity: 0; transition: opacity 0.4s; }
.l-type.is-active .t-spec { opacity: 1; }

.l-structure { --z: 4; }
.l-structure .cols { position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, rgba(227, 198, 160, 0.07) 0 calc(100% / 12 - 0.5em), transparent calc(100% / 12 - 0.5em) calc(100% / 12)); background-position: 0.25em 0; transition: opacity 0.6s; }
.process.is-assembled .l-structure .cols, .process.is-assembled .l-structure .cap { opacity: 0; }

.process-shipped { display: none; }
.js:not(.reduced) .process { height: 290vh; }
.js:not(.reduced) .process-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; align-content: center;
  padding-top: calc(var(--nav-h) + 1rem); padding-bottom: 1rem; gap: 0.5rem;
}
.js:not(.reduced) .process-shipped {
  display: block; position: absolute; left: 50%; bottom: 7vh; transform: translate(-50%, 20px); opacity: 0; white-space: nowrap;
  font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--serif); transition: opacity 0.6s, transform 0.6s var(--ease); pointer-events: none;
}
.js:not(.reduced) .process-shipped em { color: var(--gold-soft); }
.process.is-assembled .process-shipped { opacity: 1 !important; transform: translate(-50%, 0) !important; }

@media (max-width: 899px) {
  .js:not(.reduced) .process { --sw: min(74vw, 46svh); }
  .js:not(.reduced) .process-stage { grid-template-rows: auto 1fr; }
  .js:not(.reduced) .process-copy h2 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .js:not(.reduced) .steps { margin-top: 1rem; }
  .js:not(.reduced) .steps { padding-bottom: 4.8rem; }
  .js:not(.reduced) .steps p { top: calc(100% - 4.8rem + 0.6rem); }
  .js:not(.reduced) .steps li { display: none; padding-block: 6px; }
  .js:not(.reduced) .steps li.is-active { display: grid; }
  /* once the site reassembles no step is active; keep the last title so nothing shifts */
  .js:not(.reduced) .steps:not(:has(.is-active)) li:last-child { display: grid; }
  .js:not(.reduced) .stack-viewport { min-height: 0; }
  .js:not(.reduced) .process-shipped { bottom: 4vh; }
}
@media (min-width: 900px) {
  .process { --sw: min(42vw, 600px); }
  .process-stage { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; }
}

/* ---------- sketch (live configurator) ---------- */
.sketch { position: relative; z-index: 2; background: var(--paper); padding: clamp(5rem, 10vw, 9rem) 0; border-radius: 0 0 28px 28px; }
.sketch-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.sketch-copy h2 { margin-top: 0.9rem; }
.sketch-lede { margin-top: 1.2rem; color: var(--dim); max-width: 30rem; }
.sketch-form { margin-top: 2.2rem; display: grid; gap: 1.5rem; }
.field { display: grid; gap: 8px; }
.field-label, .chips legend { font: 400 0.68rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.field input {
  width: 100%; max-width: 24rem; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #fffdf9; color: var(--ink-3); font: 400 1rem var(--sans);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 166, 121, 0.18); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: 0.9rem; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chips label:hover span { border-color: var(--gold); }
.chips input:checked + span { background: var(--ink-3); color: var(--paper); border-color: var(--ink-3); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.chips span i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.sw-warm { background: linear-gradient(135deg, #f5efe5 50%, #9a4f2a 50%); }
.sw-ink { background: linear-gradient(135deg, #121417 50%, #d4b48c 50%); }
.sw-coast { background: linear-gradient(135deg, #dbe7e8 50%, #15333a 50%); }
.sw-mono { background: linear-gradient(135deg, #f4f4f2 50%, #111 50%); }
.v-serif { font-family: var(--display); font-style: italic; }
.v-grotesk { font-family: var(--grotesk); font-weight: 500; letter-spacing: -0.01em; }
.v-mono { font-family: var(--mono); font-size: 0.8rem !important; }

.sketch-stage { position: relative; perspective: 1700px; padding: 2% 9% 12% 0; }
.device { transform-style: preserve-3d; will-change: transform; }
.device.desk {
  transform: rotateY(calc(-14deg + var(--ty, 0deg))) rotateX(calc(7deg + var(--tx, 0deg)));
  transition: transform 0.9s var(--ease);
}
.device.desk .mock { box-shadow: 0 60px 100px -50px rgba(31, 39, 49, 0.55), 0 0 0 1px rgba(31, 39, 49, 0.1); }
.device.phone {
  position: absolute; right: 0; bottom: 0; width: 27%;
  transform: translateZ(90px) rotateY(calc(-8deg + var(--ty, 0deg) * 1.6)) rotateX(calc(5deg + var(--tx, 0deg) * 1.6));
  transition: transform 0.9s var(--ease);
}
.phone-shell {
  position: relative; aspect-ratio: 9 / 19; border-radius: 13% / 6.2%; padding: 6%; background: linear-gradient(145deg, #2c2925, #0f0d0b);
  box-shadow: 0 50px 80px -30px rgba(40, 25, 5, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  container-type: inline-size;
}
.phone-shell .notch { position: absolute; z-index: 2; top: 3.2%; left: 50%; width: 30%; height: 2.4%; transform: translateX(-50%); border-radius: 99px; background: #0b0a09; }
.phone-shell .sk { height: 100%; border-radius: 9% / 4.2%; overflow: hidden; }
@media (min-width: 980px) {
  .sketch-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
}
/* on narrow screens the preview sits between the intro and the controls,
   so every tap shows its result without scrolling */
@media (max-width: 979px) {
  .sketch-grid { gap: 0; }
  .sketch-copy { display: contents; }
  .sketch-stage { order: 1; margin: 2.4rem 0 0.6rem; }
  .sketch-form { order: 2; }
}

/* ---------- included ---------- */
.included { position: relative; z-index: 1; background: var(--paper-2); padding: calc(clamp(5rem, 10vw, 9rem) + 28px) 0 clamp(5rem, 10vw, 9rem); margin-top: -28px; }
.included-head h2 { margin-top: 0.9rem; }
.included-list { list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.included-list li { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 6px 14px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.included-list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.included-list li:hover::after { transform: scaleX(1); }
.included-list .n { grid-row: span 2; font: italic 400 1.2rem/1.3 var(--serif); color: var(--gold-deep); }
.included-list h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; }
.included-list p { color: var(--dim); font-size: 0.97rem; max-width: 32rem; }
@media (min-width: 760px) {
  .included-list { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4.5rem); }
}
@media (min-width: 1100px) {
  .included-list { grid-template-columns: repeat(3, 1fr); }
  .included-list li { grid-template-columns: 1fr; padding: 34px 0 38px; }
  .included-list .n { grid-row: auto; }
}

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 12vw, 10rem); text-align: center; display: grid; justify-items: center; }
.contact-glow {
  position: absolute; left: 50%; top: 50%; width: min(120vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; filter: blur(70px); opacity: 0.4; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(201, 166, 121, 0.0), rgba(236, 214, 182, 0.55), rgba(138, 106, 66, 0.15), rgba(227, 198, 160, 0.45), rgba(201, 166, 121, 0.0));
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 72%); mask: radial-gradient(closest-side, #000 30%, transparent 72%);
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.contact-art { position: relative; width: min(86vw, 520px); aspect-ratio: 1; margin-bottom: -2rem; }
.contact-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.contact.gl-ready .contact-art canvas { opacity: 1; }
.mark-fallback { position: absolute; inset: 22%; width: 56%; height: 56%; color: var(--on-ink); display: none; }
.contact.no-gl .mark-fallback, html:not(.js) .mark-fallback { display: block; }
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact-title { margin-top: 1.4rem; font-size: clamp(3.4rem, 10vw, 8.6rem); line-height: 0.92; letter-spacing: -0.03em; }
@media (min-width: 980px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; text-align: left; max-width: 1400px; margin: 0 auto; padding-inline: var(--gutter); }
  .contact-art { order: 2; width: min(44vw, 620px); margin: 0; justify-self: center; }
  .contact-inner { align-items: flex-start; padding: 0; }
  .contact .contact-lede { margin-inline: 0; }
  .contact-glow { left: 72%; width: min(70vw, 900px); }
}
.contact-lede { margin: 1.6rem auto 2.6rem; max-width: 32rem; color: var(--dim-ink); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--dim-ink); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-ink); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.footer-mark { color: var(--on-ink); }
.footer-mark .lockup-mark { height: 30px; }
.footer-mark .lockup-word { height: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { font-size: 0.82rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--on-ink); }
.fine { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .contact-glow { animation: none; }
  .js [data-intro], .js [data-reveal], .js [data-split] .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .device.desk, .device.phone { transition: none; }
}
