/* Sami Ullah — personal site.
   One page, one take: a fixed 3D stage (assets/js/stage3d.js) sits behind
   the content and Sami's 3D model moves through the chapters. The page
   colour changes per chapter; heavy uppercase type and the lavender palette
   come from the original design. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations"), url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/mono-var.woff2") format("woff2-variations"), url("../fonts/mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f6fb;
  --lavender: #eee8ff;
  --accent: #ab8fff;
  --accent-deep: #7d57df;
  --accent-text: #6c47d6; /* small purple text: AA on paper and lavender */
  --ink: #111015;
  --night: #141219;

  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1360px;
  --pad: clamp(16px, 4vw, 56px);
  --header-h: 76px;
  --radius: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Light chapters (default). */
  --fg: var(--ink);
  --muted: #55515c;
  --line: rgba(17, 16, 21, .14);
  --accent-fg: var(--accent-text);
  --glass: rgba(255, 255, 255, .55);
  --glass-line: rgba(17, 16, 21, .08);
}

.tone-dark {
  --fg: #f4f1fa;
  --muted: #bdb6cb;
  --line: rgba(255, 255, 255, .16);
  --accent-fg: var(--accent);
  --glass: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .14);
}
/* On the purple chapter only white text has enough contrast. */
.services {
  --muted: rgba(255, 255, 255, .9);
  --accent-fg: #ffffff;
  --line: rgba(255, 255, 255, .28);
  --glass: rgba(255, 255, 255, .12);
  --glass-line: rgba(255, 255, 255, .26);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  background: var(--stage-bg, var(--paper));
  color: var(--ink);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.menu-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }
.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; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.container { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; font-variant-numeric: tabular-nums; }
.display { font-family: var(--display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; line-height: .88; letter-spacing: -.03em; font-size: clamp(40px, 6vw, 104px); text-wrap: balance; }
.deck { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.chapter-label { display: flex; align-items: center; gap: 14px; color: var(--accent-fg); margin-bottom: 22px; }
.chapter-label span:first-child { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding-inline: 8px; border: 1px solid currentColor; border-radius: 999px; }

/* ---------- The 3D stage ---------- */

.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.stage-ready .stage { opacity: 1; }
.stage-hit { position: fixed; left: 0; top: 0; z-index: 3; cursor: grab; touch-action: pan-y; border-radius: 40% 40% 30% 30%; }
.stage-hit.is-dragging { cursor: grabbing; }
.stage-hit[hidden] { display: none; }
.stage-band { display: none; }

/* Chapters carry their own colour until the stage takes over and blends it. */
.chapter, .site-footer { position: relative; background: var(--chapter-bg, var(--paper)); color: var(--fg); }
.stage-ready .chapter, .stage-ready .site-footer { background: transparent; }
.chapter-spacer { display: none; }

/* Still renders of the model and icon drawings: shown without WebGL or with
   reduced motion, and while the 3D model loads. */
.still { position: absolute; z-index: 1; pointer-events: none; height: auto; transition: opacity .8s ease, visibility .8s; }
.plate-icon { position: absolute; z-index: 1; pointer-events: none; color: var(--accent); opacity: .9; transition: opacity .8s ease, visibility .8s; }
.plate-icon .icon { width: 100%; height: 100%; stroke-width: 1; }
.stage-ready .still, .stage-ready .plate-icon { opacity: 0; visibility: hidden; }

/* ---------- Buttons and links ---------- */

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .4s var(--ease-out); }
.pill-dark { background: var(--fg); color: var(--chapter-bg, var(--paper)); }
.tone-dark .pill-dark { background: #fff; color: var(--ink); }
.pill-dark:hover { background: var(--accent-deep); color: #fff; }
.pill-accent { background: var(--accent); color: var(--ink); }
.pill-accent:hover { background: #fff; }
.pill-ghost { border-color: currentColor; background: transparent; }
.pill-ghost:hover { background: var(--fg); color: var(--chapter-bg, var(--paper)); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-fg); border-bottom: 1.5px solid transparent; padding-bottom: 3px; transition: border-color .25s ease, gap .3s var(--ease-out); }
.text-link:hover { border-color: currentColor; gap: 12px; }

/* ---------- Header ---------- */

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-inline: var(--pad); color: var(--ink); transition: transform .5s var(--ease-out), color .3s ease; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--stage-bg, var(--paper)) 78%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(17, 16, 21, .06); opacity: 0; transition: opacity .3s ease; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
html[data-tone="dark"] .site-header { color: #fff; }
html[data-tone="dark"] .site-header::before { border-color: rgba(255, 255, 255, .08); }
.menu-open .site-header { color: #fff; transform: none; }
.menu-open .site-header::before { opacity: 0; }
.brand { justify-self: start; display: inline-flex; gap: .28em; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 19px; letter-spacing: -.01em; }
.brand span { color: var(--accent-deep); }
html[data-tone="dark"] .brand span, .menu-open .brand span { color: var(--accent); }
.slate { display: flex; align-items: center; gap: 12px; overflow: hidden; height: 20px; }
.slate-rule { width: 28px; height: 1px; background: currentColor; opacity: .5; }
.slate-label.is-rolling { animation: slate-roll .45s var(--ease-out); }
@keyframes slate-roll { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.site-header .pill-dark { background: var(--ink); color: #fff; }
html[data-tone="dark"] .site-header .pill-dark { background: #fff; color: var(--ink); }
.site-header .pill-dark:hover { background: var(--accent-deep); color: #fff; }
.header-cta { min-height: 44px; padding-inline: 18px; font-size: 13px; }
.menu-open .header-cta { opacity: 0; pointer-events: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1.5px solid currentColor; border-radius: 999px; background: transparent; }
.menu-icon { position: relative; width: 18px; height: 10px; }
.menu-icon span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Full-screen chapter index. */
.site-index { position: fixed; inset: 0; z-index: 95; display: grid; align-items: center; padding: calc(var(--header-h) + 24px) var(--pad) 40px; background: rgba(17, 16, 21, .95); color: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .4s ease, visibility .4s; }
.site-index.is-open { visibility: visible; opacity: 1; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-index { background: rgba(17, 16, 21, .86); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
}
.site-index-inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: end; width: 100%; max-width: var(--container); margin-inline: auto; }
.index-list a { display: flex; align-items: baseline; gap: 18px; padding: 4px 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; font-size: clamp(28px, 4.6vw, 64px); color: rgba(255, 255, 255, .55); transition: color .25s ease, transform .4s var(--ease-out); }
.index-list a .mono { color: var(--accent); font-size: 12px; }
.index-list a:hover, .index-list a:focus-visible, .index-list a.is-active { color: #fff; transform: translateX(10px); }
.site-index.is-open .index-list li { animation: index-in .6s var(--ease-out) both; }
.site-index.is-open .index-list li:nth-child(2) { animation-delay: .03s; }
.site-index.is-open .index-list li:nth-child(3) { animation-delay: .06s; }
.site-index.is-open .index-list li:nth-child(4) { animation-delay: .09s; }
.site-index.is-open .index-list li:nth-child(5) { animation-delay: .12s; }
.site-index.is-open .index-list li:nth-child(6) { animation-delay: .15s; }
.site-index.is-open .index-list li:nth-child(7) { animation-delay: .18s; }
.site-index.is-open .index-list li:nth-child(8) { animation-delay: .21s; }
.site-index.is-open .index-list li:nth-child(9) { animation-delay: .24s; }
@keyframes index-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.index-side { display: grid; gap: 18px; justify-items: start; }
.index-mail { font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.index-socials { display: flex; flex-wrap: wrap; gap: 8px 16px; color: rgba(255, 255, 255, .75); font-size: 15px; }
.index-socials a:hover { color: var(--accent); }
.motion-toggle { padding: 0; border: 0; background: none; color: inherit; opacity: .75; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle:hover { opacity: 1; }

/* Progress rail along the bottom of the screen. */
.rail { position: fixed; z-index: 90; left: calc(max(18px, env(safe-area-inset-left)) + 64px); right: max(24px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 23px); height: 2px; color: var(--ink); }
html[data-tone="dark"] .rail { color: #fff; }
.rail::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .16; }
.rail-fill { position: absolute; inset: 0; background: var(--accent-deep); transform-origin: left; transform: scaleX(var(--progress, 0)); }
html[data-tone="dark"] .rail-fill { background: var(--accent); }
.rail ol { position: absolute; inset: -10px 0; display: flex; }
.rail li { flex: 1; position: relative; }
.rail a { position: absolute; inset: 0; display: block; }
.rail a::before { content: ""; position: absolute; left: 0; top: 6px; width: 1px; height: 10px; background: currentColor; opacity: .35; }
.rail a.is-active::before { opacity: 1; width: 2px; }
.rail-label { position: absolute; left: 0; bottom: 18px; padding: 5px 9px; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.rail a:hover .rail-label, .rail a:focus-visible .rail-label { opacity: 1; transform: none; }
.menu-open .rail { opacity: 0; }

/* ---------- Music button (bottom left) ---------- */

.sound-toggle { position: fixed; left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 96; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(20, 18, 25, .82); color: var(--accent); box-shadow: 0 12px 30px rgba(17, 16, 21, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .35s var(--ease-out), border-color .3s ease; }
.sound-toggle:hover { transform: scale(1.07); border-color: rgba(171, 143, 255, .6); }
.sound-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.sound-bars i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; transition: height .3s ease; }
.sound-toggle.is-playing .sound-bars i { animation: sound-bar 1.1s ease-in-out infinite; }
.sound-toggle.is-playing .sound-bars i:nth-child(2) { animation-delay: -.45s; animation-duration: .9s; }
.sound-toggle.is-playing .sound-bars i:nth-child(3) { animation-delay: -.2s; animation-duration: 1.25s; }
.sound-toggle.is-playing .sound-bars i:nth-child(4) { animation-delay: -.7s; animation-duration: 1s; }
@keyframes sound-bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.sound-off { display: none; width: 22px; height: 22px; }
.sound-toggle[aria-pressed="false"] { color: #9d97aa; }
.sound-toggle[aria-pressed="false"] .sound-bars { display: none; }
.sound-toggle[aria-pressed="false"] .sound-off { display: block; }

/* ---------- Glass panels and cards ---------- */

.card { position: relative; padding: clamp(22px, 2.2vw, 32px); border: 1px solid var(--glass-line); border-radius: var(--radius); background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }

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

.hero { min-height: 100vh; min-height: 100svh; overflow: hidden; }
.hero-top { position: absolute; z-index: 2; top: calc(var(--header-h) + 6px); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); }
.hero-location { display: inline-flex; align-items: center; gap: 6px; }
.hero-title { margin: 0; }
.masthead { position: absolute; z-index: 0; left: 0; right: 0; top: calc(var(--header-h) + 5.5vh); display: block; text-align: center; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.045em; line-height: .8; font-size: clamp(56px, 11.4vw, 230px); white-space: nowrap; color: var(--ink); }
.hero-line { position: absolute; z-index: 2; bottom: max(31vh, calc(max(64px, 7vh) + 222px)); display: block; width: min(25vw, 360px); font-family: var(--display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.02em; line-height: .92; font-size: clamp(30px, 3.3vw, 54px); }
.hero-line-left { left: var(--pad); }
.hero-line-right { right: var(--pad); text-align: right; color: var(--accent-deep); }
.hero-bottom { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: max(64px, 7vh); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.hero-intro-wrap { display: grid; gap: 20px; justify-items: start; max-width: 360px; }
.hero-intro { font-size: 16px; line-height: 1.55; color: var(--muted); }
.scroll-cue { display: grid; justify-items: center; gap: 10px; color: var(--muted); padding-bottom: 6px; transform: translateY(40px); }
.scroll-cue-line { width: 1px; height: 44px; background: linear-gradient(currentColor 50%, transparent 0) 0 0 / 1px 12px; animation: cue 1.6s linear infinite; }
@keyframes cue { to { background-position: 0 24px; } }
.hero-stat { justify-self: end; display: grid; justify-items: end; gap: 8px; max-width: 280px; text-align: right; }
.hero-stat strong { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 40px; line-height: 1; text-transform: uppercase; }
.hero-stat p { font-size: 14px; color: var(--muted); }
.spin-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .5); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: border-color .25s ease, background-color .25s ease; }
.spin-button:hover { border-color: var(--accent-deep); background: #fff; }
.spin-button span { font-size: 15px; letter-spacing: 0; }
.no-stage .spin-button { display: none; }
.still-hero { left: 50%; bottom: 0; width: min(70vh, 58vw); transform: translateX(-50%); }

/* Hero entrance. */
.js [data-hero-item] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .masthead[data-hero-item] { transform: translateY(18%); transition-duration: 1.2s, 1.6s; }
.hero-in [data-hero-item] { opacity: 1; transform: none; }
.hero-in .hero-line-left { transition-delay: .25s; }
.hero-in .hero-line-right { transition-delay: .35s; }
.hero-in .hero-bottom > :nth-child(1) { transition-delay: .5s; }
.hero-in .hero-bottom > :nth-child(2) { transition-delay: .65s; }
.hero-in .hero-bottom > :nth-child(3) { transition-delay: .6s; }

/* ---------- 02 About ---------- */

.about { min-height: 100vh; display: flex; align-items: center; padding-block: 16vh; }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.about-copy { grid-column: 7 / 13; }
.about-title { display: grid; font-size: clamp(46px, 6vw, 100px); margin-bottom: 24px; }
.about-title .accent { color: var(--accent-deep); }
.about-copy .deck { color: var(--fg); font-weight: 600; margin-bottom: 18px; }
.about-text { display: grid; gap: 14px; color: var(--muted); max-width: 60ch; }
.about-text strong { color: var(--fg); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--line); }
.stats > div { padding: 20px 18px 0 0; }
.stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(38px, 4vw, 64px); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.stats dt.stat-word { font-size: clamp(28px, 2.8vw, 44px); line-height: 1.35; }
.stats dd { margin-top: 8px; font-size: 14px; color: var(--muted); }
.rules { margin-top: 34px; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-stretch: 110%; text-transform: uppercase; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.2; }
.rules .mono { color: var(--accent-fg); }
.still-side { left: max(4vw, calc(50% - 640px)); top: 50%; width: min(40vw, 560px); transform: translateY(-50%); }

/* ---------- 03 Six levers ---------- */

.topics-open { position: relative; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--header-h) + 6vh); padding-bottom: 8vh; }
.topics-open > .container:first-child { z-index: 0; text-align: center; }
.topics-open .chapter-label { justify-content: center; }
.topics-title { color: var(--lavender); font-size: clamp(44px, 6.8vw, 124px); }
.topics-open-bottom { grid-row: 3; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.plate-index { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 28px; }
.plate-index a { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; font-family: var(--display); font-weight: 800; font-stretch: 110%; text-transform: uppercase; font-size: 15px; color: var(--muted); transition: color .2s ease; }
.plate-index a .mono { color: var(--accent); }
.plate-index a:hover { color: #fff; }

.plate { position: relative; min-height: 100vh; display: flex; align-items: center; padding-block: 12vh; }
.plate-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.plate-left .plate-copy { grid-column: 1 / span 4; }
.plate-right .plate-copy { grid-column: 9 / span 4; }
.plate-num { color: var(--accent); margin-bottom: 18px; }
.plate-title { font-family: var(--display); font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: -.03em; line-height: .9; font-size: clamp(34px, 3.8vw, 64px); margin-bottom: 18px; }
.plate-hook { font-family: var(--display); font-weight: 650; font-stretch: 100%; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; color: var(--accent); margin-bottom: 14px; }
.plate-text { color: var(--muted); }
.plate-points { margin-top: 20px; display: grid; gap: 10px; }
.plate-points li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; font-size: 16px; }
.plate-points li::before { content: ""; width: 7px; height: 7px; flex: none; transform: translateY(-2px) rotate(45deg); background: var(--accent); }
.plate-icon { left: 50%; top: 50%; width: min(28vw, 420px); aspect-ratio: 1; transform: translate(-50%, -50%); }

/* ---------- 04 Ways to work together ---------- */

.services { padding-block: calc(var(--header-h) + 6vh) 14vh; }
.services-head { text-align: center; display: grid; justify-items: center; margin-bottom: 7vh; }
.services-head .chapter-label { justify-content: center; }
.services-head .display { font-size: clamp(42px, 6vw, 100px); max-width: 14ch; }
.services-head .deck { margin-top: 18px; text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; }
.service-card { grid-column: span 4; display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 32px); border: 1px solid var(--glass-line); border-radius: var(--radius); background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); transition: transform .5s var(--ease-out), background-color .3s ease, border-color .3s ease; }
.service-card:nth-child(odd) { grid-column: 1 / span 4; }
.service-card:nth-child(even) { grid-column: 9 / span 4; }
.service-card:hover, .service-card:focus-within { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); transform: translateY(-4px); }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--accent-deep); }
.service-card h3 { font-family: var(--display); font-weight: 850; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; font-size: clamp(22px, 1.9vw, 28px); margin-bottom: 14px; }
.service-card p { color: var(--muted); font-size: 16px; }
.best-for { margin-top: auto; padding-top: 20px; display: grid; gap: 4px; font-weight: 700; color: var(--fg) !important; }
.best-for .mono { opacity: .8; }

/* ---------- 05 The 360° method ---------- */

.process-head { min-height: 90vh; padding-top: calc(var(--header-h) + 6vh); text-align: center; }
.process-head .chapter-label { justify-content: center; }
.process-head .display { font-size: clamp(46px, 7.4vw, 124px); }
.process-head .deck { margin: 18px auto 0; text-align: center; }
.dial { position: sticky; z-index: 2; top: calc(100vh - 100px); height: 0; text-align: center; pointer-events: none; }
.dial .mono { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(17, 16, 21, .6); color: var(--accent); font-size: 13px; }
.no-stage .dial { display: none; }
.process-step { position: relative; min-height: 92vh; display: flex; align-items: center; }
.step-card { width: min(100%, 420px); padding: clamp(22px, 2.4vw, 34px); border: 1px solid var(--glass-line); border-radius: var(--radius); background: rgba(17, 16, 21, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.step-right .step-card { margin-left: auto; }
.step-num { color: var(--accent); margin-bottom: 16px; }
.step-card h3 { font-family: var(--display); font-weight: 900; font-stretch: 120%; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(30px, 3vw, 46px); margin-bottom: 14px; }
.step-card p:last-child { color: var(--muted); }

/* ---------- 06 Frameworks ---------- */

.frameworks-head { min-height: 90vh; display: flex; align-items: center; padding-block: 14vh 6vh; }
.frameworks-intro { margin-left: auto; width: min(100%, 760px); }
.frameworks-intro .display { font-size: clamp(40px, 5.2vw, 90px); }
.framework { position: relative; min-height: 110vh; display: flex; align-items: center; padding-block: 10vh; }
.framework-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.framework-right .framework-copy { grid-column: 7 / 13; }
.framework-left .framework-copy { grid-column: 1 / 7; }
.framework-letter { color: var(--accent-fg); margin-bottom: 14px; }
.framework-title { font-family: var(--display); font-weight: 900; font-stretch: 120%; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(32px, 3.4vw, 54px); margin-bottom: 14px; }
.framework-intro { color: var(--muted); max-width: 54ch; margin-bottom: 26px; }
.stage-list { border-top: 1px solid var(--line); }
.stage-list li { display: grid; grid-template-columns: 44px 150px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background-color .3s ease, padding .3s var(--ease-out); }
.stage-list .mono { color: var(--accent-fg); }
.stage-list strong { font-family: var(--display); font-weight: 850; font-stretch: 112%; text-transform: uppercase; font-size: 19px; line-height: 1.1; }
.stage-list span:last-child { color: var(--muted); font-size: 16px; }
.stage-list li:hover, .stage-list li.is-current { background: linear-gradient(90deg, rgba(171, 143, 255, .16), transparent 80%); padding-left: 10px; }
.framework .plate-icon { color: var(--accent-deep); }
.framework-right .plate-icon { left: 30%; }
.framework-left .plate-icon { left: 70%; }

/* ---------- 07 Field notes ---------- */

.insights-head { min-height: 80vh; display: flex; align-items: center; padding-block: 14vh 4vh; }
.insights-intro { width: min(100%, 700px); }
.notes { counter-reset: note; }
.note { min-height: 62vh; display: flex; align-items: center; }
.note-card { width: min(100%, 720px); padding: clamp(22px, 2.4vw, 34px); border: 1px solid var(--glass-line); border-radius: var(--radius); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .5s var(--ease-out), box-shadow .4s ease; }
.note-card:hover, .note.is-current .note-card { box-shadow: 0 30px 70px rgba(45, 31, 74, .12); transform: translateX(8px); }
.note-meta { display: flex; gap: 16px; margin-bottom: 16px; color: var(--accent-fg); }
.note-topic { padding: 2px 10px; border-radius: 999px; background: rgba(125, 87, 223, .12); }
.note-card h3 { font-family: var(--display); font-weight: 850; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; font-size: clamp(24px, 2.4vw, 36px); margin-bottom: 12px; }
.note-card p { color: var(--muted); }
.insights-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 6vh 14vh; }
.insights-cta p { font-weight: 600; }

/* ---------- 08 Questions ---------- */

.faq { min-height: 100vh; padding-block: 16vh; }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.faq-content { grid-column: 6 / 13; }
.faq-content .deck { margin-top: 18px; }
.faq-list { margin-top: 34px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: 44px 1fr 34px; gap: 12px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .mono { color: var(--accent-fg); }
.faq-q { font-family: var(--display); font-weight: 800; font-stretch: 110%; text-transform: uppercase; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; }
.faq-toggle { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; transition: transform .35s var(--ease-out), background-color .25s ease; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--ink); }
.faq-answer { padding: 0 46px 22px 56px; color: var(--muted); }
.faq-item[open] .faq-answer { animation: faq-open .45s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 09 Let's talk ---------- */

.contact { padding-bottom: 14vh; }
.contact-open { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: flex-end; padding-bottom: 10vh; }
.mega { position: absolute; inset: calc(var(--header-h) + 3vh) 0 auto; margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.05em; line-height: .78; font-size: clamp(80px, 19vw, 330px); pointer-events: none; }
.mega-back { position: relative; z-index: 0; display: block; padding-left: var(--pad); color: rgba(238, 232, 255, .92); }
.mega-front { position: relative; z-index: 2; display: block; text-align: right; padding-right: var(--pad); color: transparent; -webkit-text-stroke: 2px var(--accent); margin-top: 3vh; }
.contact-intro { z-index: 2; }
.contact-intro .panel { width: min(100%, 460px); }
.contact-title { font-family: var(--display); font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(30px, 3.2vw, 50px); margin-bottom: 16px; }
.still-contact { left: 50%; bottom: 0; width: min(64vh, 52vw); transform: translateX(-50%); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: 6vh; }
.contact-grid > * { grid-column: 7 / 13; }
.contact-direct { order: 2; display: grid; gap: 4px; }
.contact-direct a, .contact-static { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.contact-direct a:hover { color: var(--accent); }
.contact-direct small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(171, 143, 255, .16); color: var(--accent); flex: none; }

.brief { display: grid; gap: 18px; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--glass-line); border-radius: var(--radius); background: rgba(248, 246, 251, .97); color: var(--ink); --fg: var(--ink); --muted: #55515c; --line: rgba(17, 16, 21, .14); --accent-fg: var(--accent-text); box-shadow: 0 40px 90px rgba(0, 0, 0, .35); }
.brief-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.brief-title { font-family: var(--display); font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(22px, 2vw, 28px); line-height: 1; }
.brief-progress { color: var(--accent-text); }
.brief-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.brief-meter span { height: 4px; border-radius: 4px; background: rgba(17, 16, 21, .1); transition: background-color .4s ease; }
.brief[data-done="1"] .brief-meter span:nth-child(-n+1),
.brief[data-done="2"] .brief-meter span:nth-child(-n+2),
.brief[data-done="3"] .brief-meter span:nth-child(-n+3),
.brief[data-done="4"] .brief-meter span:nth-child(-n+4) { background: var(--accent-deep); }
.brief b.mono { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: 0; }
.field { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid rgba(17, 16, 21, .16); border-radius: 14px; background: #fff; font-weight: 400; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 4px rgba(171, 143, 255, .3); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.req { color: #b3261e; }
.field-error { margin-top: -10px; color: #b3261e; font-size: 14px; font-weight: 600; }
.brief-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.brief-group legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1.5px solid rgba(17, 16, 21, .16); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.chip span .icon { width: 16px; height: 16px; color: var(--accent-deep); }
.chip input:hover + span { border-color: var(--accent-deep); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span .icon { color: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.brief .pill-ghost { color: var(--ink); }
.brief-note { font-size: 13px; color: #55515c; }

/* ---------- 404 ---------- */

.not-found { min-height: 80vh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 10vh) 10vh; }
.not-found .deck { margin: 22px 0 30px; }

/* ---------- Footer: the credits ---------- */

.site-footer { padding-block: 16vh calc(80px + 4vh); }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.credits { grid-column: 1 / 8; }
.credits-title { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.03em; line-height: .88; font-size: clamp(44px, 6vw, 100px); color: var(--lavender); margin-bottom: 34px; }
.credits-roll { display: grid; gap: 22px; }
.credits-roll dt { color: var(--accent); margin-bottom: 6px; }
.credits-roll dd { margin: 0; font-family: var(--display); font-weight: 750; font-stretch: 110%; text-transform: uppercase; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.35; }
.credits-identity { margin-top: 34px; color: var(--muted); }
.credits-identity strong { color: var(--fg); }
.footer-side { grid-column: 1 / 8; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.footer-brand { display: grid; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 30px; line-height: 1; }
.footer-brand span { color: var(--accent); }
.footer-brand small { margin-top: 8px; color: var(--muted); }
.footer-brand:hover small { color: var(--accent); }
.footer-contact { display: grid; gap: 6px; font-weight: 600; }
.footer-contact a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 8vh; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- Reveals ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out) var(--delay, 0s), transform 1s var(--ease-out) var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-split] .wi { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.js [data-split].is-in .wi { transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + var(--delay, 0s)); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.reveal-fallback [data-reveal], .reveal-fallback [data-hero-item], .reveal-fallback [data-stagger] > * { opacity: 1 !important; transform: none !important; }
.reveal-fallback [data-split] .wi { transform: none !important; }

.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

/* ---------- Tablet ---------- */

@media (max-width: 1180px) {
  .hero-line { width: 27vw; font-size: clamp(26px, 3.4vw, 40px); }
  .stage-list li { grid-template-columns: 40px 1fr; }
  .stage-list span:last-child { grid-column: 2; }
  .faq-content { grid-column: 5 / 13; }
  .credits, .footer-side { grid-column: 1 / 10; }
}

/* ---------- Phones and small tablets: the model lives in the top band ---------- */

@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .slate, .header-cta { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .brand { font-size: 17px; }
  .site-index-inner { grid-template-columns: 1fr; gap: 34px; }
  .rail ol { display: none; }
  .rail { left: calc(max(12px, env(safe-area-inset-left)) + 52px); right: max(16px, env(safe-area-inset-right)); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 19px); }
  .sound-toggle { width: 40px; height: 40px; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); }

  /* An empty stretch at the start of each chapter where the model performs,
     then the content slides over it on glass. */
  .chapter-spacer { display: block; height: 52svh; }
  .panel { padding: 22px; border: 1px solid var(--glass-line); border-radius: var(--radius); background: color-mix(in srgb, var(--chapter-bg, var(--paper)) 84%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .about-grid, .plate-grid, .framework-grid, .faq-grid, .footer-grid, .contact-grid, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .about-copy, .plate-left .plate-copy, .plate-right .plate-copy, .framework-right .framework-copy, .framework-left .framework-copy, .faq-content, .credits, .footer-side, .contact-grid > *, .service-card:nth-child(odd), .service-card:nth-child(even) { grid-column: 1 / -1; }

  .hero { display: flex; flex-direction: column; min-height: 0; padding-top: calc(var(--header-h) + 8px); padding-bottom: 72px; }
  .hero-top { position: static; flex-direction: column; gap: 6px; padding-inline: var(--pad); font-size: 10px; }
  .hero-top .mono { font-size: 10px; }
  .masthead { position: relative; top: auto; margin-top: 14px; font-size: 21vw; line-height: .84; white-space: normal; text-align: left; padding-inline: var(--pad); }
  .display, .about-title, .topics-title, .services-head .display, .process-head .display, .frameworks-intro .display, .plate-title, .credits-title { font-size: 10.6vw; font-stretch: 112%; }
  .hero-title { display: grid; gap: 4px; }
  .hero-line { position: relative; bottom: auto; width: auto; font-size: 8.6vw; }
  .hero-line-left { left: auto; margin-top: 54svh; padding-left: var(--pad); }
  .hero-line-right { right: auto; padding-right: var(--pad); }
  .hero-bottom { position: static; grid-template-columns: 1fr; gap: 26px; margin-top: 28px; padding-inline: var(--pad); }
  .hero-intro-wrap { max-width: none; }
  .hero-stat { justify-self: start; justify-items: start; text-align: left; order: -1; }
  .scroll-cue { display: none; }
  .still-hero { top: calc(var(--header-h) + 25vw); bottom: auto; width: min(80vw, 46svh); }

  .about { display: block; padding-block: 0 10vh; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .stats > div + div { padding-left: 0; border-left: 0; }
  .stats dt, .stats dt.stat-word { font-size: 34px; line-height: 1; }
  .stats dd { margin: 0; text-align: right; }
  .rules li { grid-template-columns: 1fr; gap: 4px; }
  .still-side { top: calc(var(--header-h) + 3svh); left: 50%; width: min(80vw, 44svh); transform: translateX(-50%); }

  .topics-open { min-height: 0; padding-bottom: 6vh; }
  .topics-open-bottom { display: grid; gap: 24px; margin-top: 52svh; }
  .plate-index { grid-template-columns: 1fr 1fr; }
  .plate { display: block; min-height: 0; padding-block: 0 8vh; }
  .plate-icon { top: calc(var(--header-h) + 4svh); left: 64%; width: min(44vw, 30svh); transform: translateX(-50%); }
  .plate-left .plate-icon { left: 30%; }

  .services { padding-block: 0 10vh; }
  .services-head { text-align: left; justify-items: start; margin-bottom: 26px; }
  .services-head .chapter-label { justify-content: flex-start; }
  .services-head .deck { text-align: left; }
  .service-grid { gap: 16px; }

  .process-head { min-height: 0; padding-top: 0; text-align: left; }
  .process-head::before { content: ""; display: block; height: 52svh; }
  .process-head .chapter-label { justify-content: flex-start; }
  .process-head .deck { margin-left: 0; text-align: left; }
  .dial { top: calc(var(--header-h) + 40svh); }
  .process-step { min-height: 0; display: block; padding-top: 44svh; }
  .step-card { width: 100%; }

  .frameworks-head { display: block; min-height: 0; padding-block: 0 4vh; }
  .framework { display: block; min-height: 0; padding-block: 0 8vh; }
  .framework .plate-icon { top: calc(var(--header-h) + 4svh); }
  .framework-right .plate-icon { left: 70%; }
  .framework-left .plate-icon { left: 30%; }
  .stage-list li { grid-template-columns: 36px 1fr; }

  .insights-head { display: block; min-height: 0; padding-block: 0 2vh; }
  .note { display: block; min-height: 0; padding-top: 30svh; }
  .note:first-child { padding-top: 6svh; }
  .insights-cta { padding-block: 8vh 10vh; }

  .faq { padding-block: 0 10vh; }
  .faq-item summary { grid-template-columns: 34px 1fr 30px; gap: 8px; }
  .faq-answer { padding: 0 0 20px 42px; }

  .contact-open { min-height: 0; display: block; padding-bottom: 0; }
  .mega { position: relative; inset: auto; padding-top: calc(var(--header-h) + 2svh); font-size: 25vw; }
  .mega-front { margin-top: 0; }
  .contact-intro { margin-top: 26svh; }
  .still-contact { top: calc(var(--header-h) + 8svh); bottom: auto; width: min(70vw, 40svh); }
  .contact-grid { padding-top: 16px; gap: 16px; }

  .site-footer { padding-block: 0 calc(70px + 4vh); }
  .footer-side { margin-top: 20px; padding-top: 0; border-top: 0; }
}

/* Phones with the 3D stage: the model gets its own band at the top of the
   screen (after the hero) and the text scrolls underneath it. */
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
  .stage-band { display: block; position: fixed; inset: 0 0 auto; z-index: 59; height: calc(var(--band-h, 38svh) + 28px); background: linear-gradient(var(--stage-bg, var(--paper)) calc(100% - 28px), transparent); opacity: var(--band-p, 0); pointer-events: none; }
  .band-on .stage-band { pointer-events: auto; }
  .band-on .stage { z-index: 60; clip-path: inset(0 0 calc(100% - var(--band-h, 38svh)) 0); }
  .band-on .stage-hit { z-index: 61; }
  .stage-ready .chapter-spacer { height: 4svh; }
  .stage-ready .panel { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .stage-ready .topics-open-bottom { margin-top: 6svh; }
  .stage-ready .process-head::before { height: 4svh; }
  .stage-ready .process-step { padding-top: 22svh; }
  .stage-ready .note { padding-top: 12svh; }
  .stage-ready .note:first-child { padding-top: 4svh; }
  .stage-ready .contact-intro { margin-top: 6svh; }
  .stage-ready .dial { top: calc(var(--band-h, 38svh) - 34px); }
}

@media (prefers-reduced-transparency: reduce) {
  .panel, .card, .service-card, .step-card, .note-card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .service-card { background: #6a45cf; }
  .step-card { background: #1e1b26; }
  .note-card { background: #fff; }
  .site-index { background: #111015; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (max-width: 380px) {
  .chips { gap: 6px; }
  .chip span { padding: 0 11px; font-size: 13px; }
  .brief-actions .pill { width: 100%; }
}

/* ---------- Reduced motion and accessibility modes ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-hero-item], .js [data-stagger] > * { opacity: 1; transform: none; }
  .js [data-split] .wi { transform: none; }
}

@media (forced-colors: active) {
  .stage, .stage-hit { display: none; }
  .still { opacity: 1 !important; visibility: visible !important; }
  .pill, .chip span, .card, .panel, .service-card, .step-card, .note-card, .brief { border: 1px solid CanvasText; }
  .mega-front { -webkit-text-stroke: 0; color: CanvasText; }
}
