/* Design A: Keynote. Shared stylesheet for index, dental, trades, studio. */

:root {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --bg-3: #14141b;
  --ink: #f5f2ec;
  --ink-2: rgba(245, 242, 236, 0.74);
  --ink-3: rgba(245, 242, 236, 0.56);
  --ink-4: rgba(245, 242, 236, 0.38);
  --line: rgba(245, 242, 236, 0.09);
  --line-2: rgba(245, 242, 236, 0.16);
  --amber: #ffb547;
  --amber-2: #ffd08a;
  --amber-deep: #c9761a;
  --cool: #79c8ff;
  --cool-2: #b5e2ff;
  --glass: rgba(20, 20, 27, 0.56);

  --f-display: "Inter Tight", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1280px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(17px, 0.35vw + 15.6px, 20px);
  line-height: 1.55;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: #1a1206; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.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: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: #1a1206; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: top 200ms var(--ease-out);
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 12px currentColor;
}
.eyebrow.cool { color: var(--cool); }
.display {
  font-weight: 600;
  font-size: clamp(44px, 8.2vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.amber { color: var(--amber); }
.cool { color: var(--cool); }
.muted { color: var(--ink-3); }
.lede {
  font-size: clamp(19px, 1.35vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38ch;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-4); letter-spacing: 0; }
.grad-text {
  background: linear-gradient(100deg, var(--amber-2) 0%, var(--amber) 40%, #ff8a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.section.tight { padding: clamp(72px, 9vw, 128px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head.center { text-align: center; justify-items: center; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 300ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--amber); color: #1b1205;
  box-shadow: 0 0 0 1px rgba(255, 200, 120, 0.4) inset, 0 10px 40px -10px rgba(255, 181, 71, 0.65);
}
.btn-ghost {
  background: rgba(245, 242, 236, 0.06); border-color: var(--line-2); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #1b1205; position: relative;
}
.btn .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #1b1205;
  opacity: 0; animation: ring 2.4s var(--ease-out) infinite;
}
@keyframes ring { 0% { transform: scale(0.6); opacity: 0.7; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--amber-2); box-shadow: 0 0 0 1px rgba(255, 220, 160, 0.5) inset, 0 14px 50px -10px rgba(255, 181, 71, 0.85); }
  .btn-ghost:hover { background: rgba(245, 242, 236, 0.12); border-color: rgba(245, 242, 236, 0.28); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-weight: 600; text-decoration: none;
}
.link-arrow span { transition: transform 200ms var(--ease-out); display: inline-block; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover span { transform: translateX(4px); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 980px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 58px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(14, 14, 19, 0.62);
  border: 1px solid rgba(245, 242, 236, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition: transform 500ms var(--ease-expo), opacity 300ms ease;
}
.nav.is-hidden { transform: translate(-50%, -120%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 16px; white-space: nowrap; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff3d6 0%, var(--amber) 35%, #8a4a0c 75%, #2a1503 100%);
  box-shadow: 0 0 16px rgba(255, 181, 71, 0.6);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(121, 200, 255, 0.7); transform: rotate(-28deg) scaleY(0.38);
}
.brand small { color: var(--ink-3); font-weight: 500; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); text-decoration: none; transition: color 200ms ease, background-color 200ms ease;
}
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(245, 242, 236, 0.08); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }
.nav .btn { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(245, 242, 236, 0.05); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform 250ms var(--ease-out); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform 250ms var(--ease-out);
}
.nav-toggle span::before { transform: translateY(-5px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }
.nav-right { display: flex; align-items: center; gap: 8px; }

@media (max-width: 820px) {
  .nav { padding-left: 16px; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; padding: 8px; border-radius: 24px;
    background: rgba(14, 14, 19, 0.92); border: 1px solid var(--line-2);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right; pointer-events: none;
    transition: opacity 180ms ease, transform 220ms var(--ease-out);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav-toggle { display: inline-flex; }
  .brand small { display: none; }
}
@media (max-width: 380px) {
  .nav .btn .label-long { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 120px var(--gutter) 96px; overflow: hidden; isolation: isolate;
}
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-poster {
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(255, 181, 71, 0) 58%, rgba(255, 181, 71, 0.5) 62%, rgba(255, 181, 71, 0.12) 66%, transparent 72%) 50% 48% / min(78vmin, 780px) min(78vmin, 780px) no-repeat,
    radial-gradient(closest-side at 50% 50%, rgba(255, 170, 70, 0.22), rgba(255, 140, 40, 0.06) 60%, transparent 100%) 50% 48% / min(70vmin, 700px) min(70vmin, 700px) no-repeat,
    radial-gradient(60% 50% at 50% 50%, rgba(121, 200, 255, 0.07), transparent 70%),
    var(--bg);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1200ms ease; }
.hero-canvas.ready { opacity: 1; }
.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(7, 7, 10, 0.7) 85%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(7, 7, 10, 0.35), transparent 22%, transparent 70%, var(--bg));
}
.hero-copy::before {
  content: ""; position: absolute; left: 50%; top: 58%; width: min(900px, 120vw); height: 70%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 7, 10, 0.62), rgba(7, 7, 10, 0.3) 60%, transparent);
}
.hero-copy { position: relative; text-align: center; display: grid; justify-items: center; gap: 28px; max-width: 1120px; }
.hero-copy .display { text-shadow: 0 2px 40px rgba(7, 7, 10, 0.6); }
.hero-copy .lede { max-width: 34ch; margin: 0 auto; color: var(--ink-2); }
.hero-note { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hero-note b { color: var(--ink); font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ef2a0; box-shadow: 0 0 10px #5ef2a0; flex: none; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 54px; background: linear-gradient(to bottom, transparent, var(--ink-3));
  overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -30%; width: 1px; height: 30%; background: var(--amber);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { to { top: 110%; } }

/* Hero entrance */
.intro > * { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: introIn 1100ms var(--ease-expo) forwards; }
.intro > *:nth-child(1) { animation-delay: 150ms; }
.intro > *:nth-child(2) { animation-delay: 260ms; }
.intro > *:nth-child(3) { animation-delay: 380ms; }
.intro > *:nth-child(4) { animation-delay: 500ms; }
.intro > *:nth-child(5) { animation-delay: 620ms; }
@keyframes introIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* Vertical hero (subpages): left aligned */
.hero.left { place-items: end start; }
.hero.left .hero-copy { text-align: left; justify-items: start; max-width: 1180px; width: 100%; margin: 0 auto; }
.hero.left .hero-copy .lede { margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-expo); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-expo); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: 70ms; }
.stagger.in > *:nth-child(3) { transition-delay: 140ms; }
.stagger.in > *:nth-child(4) { transition-delay: 210ms; }
.stagger.in > *:nth-child(5) { transition-delay: 280ms; }
.stagger.in > *:nth-child(6) { transition-delay: 350ms; }
.stagger.in > *:nth-child(7) { transition-delay: 420ms; }
.stagger.in > *:nth-child(8) { transition-delay: 490ms; }
.stagger.in > *:nth-child(9) { transition-delay: 560ms; }
.no-js .reveal, .no-js .stagger > * { opacity: 1; transform: none; }

/* ---------- Scrub statement (pinned, word by word) ---------- */
.scrub { position: relative; height: 260vh; }
.scrub-pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); overflow: hidden; }
.scrub-pin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 50% 55%, rgba(255, 181, 71, var(--glow, 0)), transparent 70%);
}
.scrub-text {
  position: relative;
  max-width: 1180px; margin: 0; text-align: center;
  font-weight: 600; font-size: clamp(34px, 5.8vw, 96px); line-height: 1.02; letter-spacing: -0.042em;
  text-wrap: balance;
}
.scrub-text .w { opacity: 0.12; transition: opacity 120ms linear; }
.scrub-text .w.on { opacity: 1; }
.scrub-text .hot { color: var(--amber); }
.scrub-src { position: absolute; bottom: 36px; left: 0; right: 0; text-align: center; padding: 0 var(--gutter); }

/* ---------- Big numbers ---------- */
.bignums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.bignum { padding: 40px 28px 8px 0; border-right: 1px solid var(--line); }
.bignum:last-child { border-right: 0; }
.bignum + .bignum { padding-left: 28px; }
.bignum .n {
  display: block; font-size: clamp(56px, 7.4vw, 120px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.bignum .n sup, .bignum .n small { font-size: 0.42em; letter-spacing: -0.02em; vertical-align: top; position: relative; top: 0.12em; margin-left: 2px; }
.bignum p { margin: 16px 0 0; color: var(--ink-3); font-size: 16px; line-height: 1.4; max-width: 22ch; }
@media (max-width: 900px) {
  .bignums { grid-template-columns: repeat(2, 1fr); }
  .bignum { padding: 32px 16px 28px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .bignum:nth-child(odd) { border-right: 1px solid var(--line); }
  .bignum:nth-child(even) { padding-left: 16px !important; }
}

/* ---------- Eve: the call ---------- */
.eve { background: radial-gradient(70% 60% at 70% 10%, rgba(121, 200, 255, 0.06), transparent 70%), var(--bg); }
.call {
  position: relative;
  display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: clamp(24px, 4vw, 56px);
  padding: clamp(20px, 3vw, 36px);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}
.call::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(40% 50% at 18% 30%, rgba(255, 181, 71, calc(var(--level, 0) * 0.22)), transparent 70%);
  transition: background 120ms linear; z-index: 0;
}
.call > * { position: relative; z-index: 1; }
.handset {
  position: relative; border-radius: 28px; padding: 28px 24px 24px;
  background: #0b0b10; border: 1px solid var(--line-2);
  display: grid; gap: 22px; align-content: start;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset;
}
.caller { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff1d2 0%, var(--amber) 30%, #9a520f 70%, #241202 100%);
  box-shadow: 0 0 30px rgba(255, 181, 71, 0.45);
}
.avatar::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 181, 71, 0.5);
  transform: scale(calc(1 + var(--level, 0) * 0.35)); opacity: calc(0.25 + var(--level, 0));
}
.caller-name { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.caller-sub { font-size: 14px; color: var(--ink-3); }
.call-state { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.call-state .rec { display: inline-flex; align-items: center; gap: 8px; }
.call-state .rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff5d5d; opacity: 0.4; }
.call.playing .call-state .rec i { opacity: 1; box-shadow: 0 0 8px #ff5d5d; }
.wave { width: 100%; height: 120px; }
.call-controls { display: flex; align-items: center; gap: 14px; }
.play {
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--amber); color: #1b1205; display: grid; place-items: center;
  box-shadow: 0 10px 40px -8px rgba(255, 181, 71, 0.7);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.play:active { transform: scale(0.94); }
.play svg { width: 22px; height: 22px; }
.play .i-pause { display: none; }
.call.playing .play .i-play { display: none; }
.call.playing .play .i-pause { display: block; }
.play[disabled] { background: var(--bg-3); color: var(--ink-4); box-shadow: none; cursor: not-allowed; }
.scrubber { flex: 1; height: 4px; border-radius: 4px; background: rgba(245, 242, 236, 0.1); position: relative; overflow: hidden; cursor: pointer; }
.scrubber i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--amber-deep), var(--amber)); }
.call-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.call-tab {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 8px 14px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.call-tab:active { transform: scale(0.97); }
.call-tab[aria-selected="true"] { background: var(--ink); color: #0b0b10; border-color: var(--ink); }
.call-label { font-size: 12.5px; color: var(--ink-4); line-height: 1.4; }

.transcript {
  position: relative; height: clamp(380px, 46vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 8px 40vh 0; scroll-behavior: smooth;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
  scrollbar-width: none;
}
.transcript::-webkit-scrollbar { display: none; }
.t-line { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 14px 0; color: rgba(245, 242, 236, 0.2); transition: color 400ms ease; }
.t-line.past { color: rgba(245, 242, 236, 0.46); }
.t-line.now { color: var(--ink); }
.t-who { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 9px; color: rgba(245, 242, 236, 0.3); transition: color 400ms ease; }
.t-line.eve.now .t-who, .t-line.eve.past .t-who { color: var(--amber); }
.t-line.caller.now .t-who, .t-line.caller.past .t-who { color: var(--cool); }
.t-text { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -0.022em; font-weight: 500; margin: 0; }
.t-line.now .t-text .tw { color: rgba(245, 242, 236, 0.28); transition: color 220ms ease; }
.t-line.now .t-text .tw.on { color: var(--ink); }
.t-empty { color: var(--ink-3); font-size: 20px; padding-top: 40px; max-width: 30ch; }
.call-src { margin-top: 18px; }

@media (max-width: 900px) {
  .call { grid-template-columns: 1fr; border-radius: 28px; }
  .transcript { height: 360px; padding-bottom: 200px; }
  .t-line { grid-template-columns: 1fr; gap: 4px; }
  .t-who { padding-top: 0; }
}

/* ---------- Feature list / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 32px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 181, 71, 0.1), transparent 60%);
  transition: opacity 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .card:hover::after { opacity: 1; } }
.card h3 { margin: 18px 0 10px; }
.card p { margin: 0; color: var(--ink-3); font-size: 16.5px; line-height: 1.5; }
.card .k { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.glyph {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 181, 71, 0.1); color: var(--amber); border: 1px solid rgba(255, 181, 71, 0.22);
}
.glyph.cool { background: rgba(121, 200, 255, 0.08); color: var(--cool); border-color: rgba(121, 200, 255, 0.22); }
.glyph svg { width: 22px; height: 22px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.ticks li { display: flex; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.4vw, 22px); letter-spacing: -0.015em; }
.ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; transform: translateY(-2px); box-shadow: 0 0 10px rgba(255, 181, 71, 0.6); }
.ticks.cool li::before { background: var(--cool); box-shadow: 0 0 10px rgba(121, 200, 255, 0.6); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Media slots (graceful when missing) ---------- */
.media {
  position: relative; overflow: hidden; border-radius: 22px; background:
    radial-gradient(60% 70% at 50% 45%, rgba(255, 181, 71, 0.18), transparent 70%),
    radial-gradient(40% 50% at 70% 70%, rgba(121, 200, 255, 0.1), transparent 70%),
    linear-gradient(160deg, #15151d, #0b0b10);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.media.v { aspect-ratio: 9 / 16; }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.media > img.loaded, .media > video.loaded { opacity: 1; }
.media.missing > img, .media.missing > video { display: none; }
.media-label {
  position: absolute; left: 16px; bottom: 14px; z-index: 2; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
  padding: 6px 10px; border-radius: 999px; background: rgba(7, 7, 10, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.media-sound {
  position: absolute; right: 12px; top: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(7, 7, 10, 0.55); cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 160ms var(--ease-out);
}
.media-sound:active { transform: scale(0.94); }
.media-sound svg { width: 18px; height: 18px; }
.media.missing .media-sound { display: none; }

/* ---------- Jeeves timeline (horizontal, pinned) ---------- */
.tl { position: relative; height: var(--tl-h, 400vh); }
.tl-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 24px; padding: 108px 0 40px; }
.tl-head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: calc(var(--maxw) + 2 * var(--gutter)); width: 100%; margin: 0 auto; }
.tl-head .h2 { font-size: clamp(32px, 4.4vw, 68px); }
.tl-count { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.tl-count b { color: var(--amber); font-weight: 600; }
.tl-track {
  display: flex; gap: clamp(16px, 2vw, 28px); align-items: center;
  padding: 0 var(--gutter); will-change: transform; width: max-content;
}
.tl-item { flex: none; width: clamp(280px, 34vw, 520px); display: grid; gap: 18px; }
.tl-item.wide { width: clamp(300px, 52vw, 820px); }
.tl-item.tall { width: clamp(220px, 20vw, 300px); }
.tl-date { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 10px; }
.tl-date::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 181, 71, 0.5), transparent); }
.tl-item h3 { margin: 0; font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.tl-item p { margin: 0; color: var(--ink-3); font-size: 16.5px; line-height: 1.5; max-width: 40ch; }
.tl-item.text-only {
  width: clamp(260px, 25vw, 360px); min-height: clamp(340px, 54vh, 500px); align-content: end; gap: 14px;
  padding: 30px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(90% 60% at 0% 0%, rgba(255, 181, 71, 0.08), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  position: relative;
}
.tl-item.text-only::before {
  content: attr(data-step); position: absolute; top: 18px; left: 26px;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(80px, 8vw, 128px); line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 181, 71, 0.45);
}
.tl-rail { margin: 0 var(--gutter); height: 2px; background: var(--line); border-radius: 2px; position: relative; max-width: var(--maxw); }
@media (min-width: 1424px) { .tl-rail { margin: 0 auto; } }
.tl-rail i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); transform-origin: left; transform: scaleX(0); border-radius: 2px; box-shadow: 0 0 14px rgba(255, 181, 71, 0.6); }
.tl-end { flex: none; width: clamp(260px, 30vw, 440px); padding-right: var(--gutter); }

@media (max-width: 700px) {
  .tl-pin { padding-top: 92px; }
  .tl-item.text-only { min-height: 300px; }
  .tl-item, .tl-item.wide { width: 82vw; }
  .tl-item.tall { width: 62vw; }
  .tl-item.text-only { width: 76vw; }
  .tl-head { flex-direction: column; align-items: start; }
}

/* ---------- Hype video row ---------- */
.hype { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .hype { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72vw; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .hype::-webkit-scrollbar { display: none; }
  .hype > * { scroll-snap-align: center; }
}

/* ---------- Scoreboard ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }
.score { padding: 36px 32px 32px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); display: grid; justify-items: center; text-align: center; gap: 18px; }
.ring { position: relative; width: min(220px, 60vw); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { fill: none; stroke: rgba(245, 242, 236, 0.07); stroke-width: 10; }
.ring .bar { fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 1000; filter: drop-shadow(0 0 10px rgba(255, 181, 71, 0.5)); }
.ring .bar.c { stroke: var(--cool); filter: drop-shadow(0 0 10px rgba(121, 200, 255, 0.5)); }
.ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .val b { font-size: clamp(54px, 5vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .val b small { font-size: 0.4em; color: var(--ink-3); letter-spacing: -0.02em; }
.ring .val > span { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.score h3 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.score p { margin: 0; color: var(--ink-3); font-size: 15.5px; }
.score p b { color: var(--ink); font-weight: 600; }

.ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.ba-item { padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line); }
.ba-item:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.ba-item:not(:nth-child(3n+1)) { padding-left: 24px; }
.ba-k { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; }
.ba-v { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.ba-v .from { font-size: clamp(22px, 2vw, 30px); color: var(--ink-4); text-decoration: line-through; text-decoration-color: rgba(245, 242, 236, 0.25); font-weight: 500; }
.ba-v .arrow { color: var(--amber); font-size: 18px; }
.ba-v .to { font-size: clamp(44px, 4.6vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.ba-item p { margin: 10px 0 0; color: var(--ink-3); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) {
  .ba { grid-template-columns: 1fr; }
  .ba-item, .ba-item:not(:nth-child(3n+1)) { padding: 28px 0; border-right: 0 !important; }
}
.quote-h { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; max-width: 34ch; }
.lh-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lh { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink-2); }
.lh b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #04150b; background: #5ef2a0; font-variant-numeric: tabular-nums; }
.lh b.mid { background: var(--amber); color: #1b1205; }

/* ---------- Infrastructure ---------- */
.infra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
@media (max-width: 900px) { .infra { grid-template-columns: 1fr; } }
.plan {
  position: relative; border-radius: 32px; padding: clamp(28px, 4vw, 52px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); min-height: 520px; display: grid; align-content: space-between; gap: 40px;
  background: #0c0c11;
}
.plan::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 60% at 50% 0%, var(--tint), transparent 70%);
}
.plan.hosted { --tint: rgba(121, 200, 255, 0.16); }
.plan.box { --tint: rgba(255, 181, 71, 0.2); border-color: rgba(255, 181, 71, 0.32); box-shadow: 0 40px 120px -60px rgba(255, 181, 71, 0.5); }
.plan .h3 { font-size: clamp(30px, 3vw, 46px); letter-spacing: -0.04em; }
.plan-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; }
.plan.hosted .plan-tag { color: var(--cool); }
.plan.box .plan-tag { color: var(--amber); }
.plan-art { height: 150px; position: relative; }
.plan-art svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- Industry tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  position: relative; display: grid; align-content: end; gap: 14px; min-height: 460px; padding: clamp(28px, 3.5vw, 44px);
  border-radius: 32px; text-decoration: none; overflow: hidden; isolation: isolate; border: 1px solid var(--line);
  transition: transform 500ms var(--ease-expo), border-color 300ms ease;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bgimg); transition: transform 900ms var(--ease-expo); }
.tile.dental { --bgimg: radial-gradient(70% 60% at 80% 10%, rgba(121, 200, 255, 0.35), transparent 70%), radial-gradient(60% 50% at 10% 90%, rgba(181, 226, 255, 0.12), transparent 70%), linear-gradient(160deg, #0e1620, #08080c); }
.tile.trades { --bgimg: radial-gradient(70% 60% at 80% 10%, rgba(255, 181, 71, 0.4), transparent 70%), radial-gradient(60% 50% at 10% 90%, rgba(255, 120, 50, 0.14), transparent 70%), linear-gradient(160deg, #1b130a, #08080c); }
.tile .big { font-size: clamp(80px, 11vw, 168px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; }
.tile .big small { font-size: 0.32em; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--ink-2); max-width: 34ch; }
.tile .fine { margin-top: -4px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--line-2); }
  .tile:hover::before { transform: scale(1.04); }
}

/* ---------- Studio ---------- */
.browser {
  position: relative; border-radius: 16px; overflow: hidden; background: #111117;
  border: 1px solid rgba(245, 242, 236, 0.14);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.browser-bar { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #18181f; border-bottom: 1px solid rgba(245, 242, 236, 0.08); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(245, 242, 236, 0.16); }
.url { flex: 1; max-width: 420px; margin: 0 auto; height: 24px; border-radius: 8px; background: rgba(245, 242, 236, 0.06); font-size: 12px; color: var(--ink-3); display: grid; place-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.browser .media { border-radius: 0; border: 0; aspect-ratio: 16 / 10; }
.browser .media > img { object-position: top; }
.phone {
  position: relative; width: 100%; aspect-ratio: 9 / 19.2; border-radius: 34px; padding: 9px; background: #16161c;
  border: 1px solid rgba(245, 242, 236, 0.16);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.7);
}
.phone .media { height: 100%; aspect-ratio: auto; border-radius: 26px; border: 0; }
.phone .media > img { object-position: top left; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 64px; height: 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.7); z-index: 3; }
.work { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.work-stage { position: relative; padding-right: clamp(40px, 8vw, 120px); padding-bottom: 40px; }
.work-stage .phone { position: absolute; right: 0; bottom: 0; width: clamp(110px, 17%, 220px); }
.work-meta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.work-meta h3 { font-size: clamp(30px, 3.6vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 10px 0 14px; }
.work-meta p { margin: 0; color: var(--ink-3); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
@media (max-width: 760px) { .work-meta { grid-template-columns: 1fr; } }
.work + .work { margin-top: clamp(96px, 12vw, 180px); }

.resp { border-radius: 32px; border: 1px solid var(--line); padding: clamp(16px, 2.5vw, 28px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); }
.resp-controls { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.resp-range { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 260px; }
.resp-range output { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-2); min-width: 64px; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--amber) var(--p, 50%), rgba(245, 242, 236, 0.12) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(245, 242, 236, 0.12); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(255, 181, 71, 0.25); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(255, 181, 71, 0.25); }
.resp-viewport { position: relative; height: clamp(440px, 62vh, 720px); border-radius: 18px; overflow: hidden; background: repeating-linear-gradient(45deg, rgba(245, 242, 236, 0.02) 0 12px, transparent 12px 24px), #0a0a0e; display: grid; justify-items: center; }
.resp-frame { position: relative; height: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(245, 242, 236, 0.18), 0 30px 80px -30px rgba(0, 0, 0, 0.9); transition: width 0ms; }
.resp-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.resp-sizes { display: flex; gap: 6px; }

/* ---------- Final CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 58%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.22), rgba(255, 140, 40, 0.06) 55%, transparent 75%);
  pointer-events: none;
}
.cta .phone-num {
  display: block; font-size: clamp(48px, 10.5vw, 184px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95;
  text-decoration: none; margin: 18px 0 36px; font-variant-numeric: tabular-nums;
  transition: color 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .cta .phone-num:hover { color: var(--amber); } }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--ink-3); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--amber); } }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; font-size: 13px; color: var(--ink-4); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Pain story (vertical pages) ---------- */
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .clock { grid-template-columns: 1fr 1fr; } }
.clock-cell { padding: 26px; border-radius: 24px; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-height: 220px; background: rgba(255, 255, 255, 0.02); }
.clock-cell time { font-size: clamp(36px, 3.6vw, 56px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-cell.off time { color: var(--ink-4); }
.clock-cell.on { border-color: rgba(255, 181, 71, 0.35); background: radial-gradient(80% 80% at 50% 0%, rgba(255, 181, 71, 0.1), transparent 70%); }
.clock-cell.on time { color: var(--amber); }
.clock-cell p { margin: 0; color: var(--ink-3); font-size: 15.5px; line-height: 1.45; }
.badge { justify-self: start; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.clock-cell.off .badge { background: rgba(245, 242, 236, 0.06); color: var(--ink-3); }
.clock-cell.on .badge { background: rgba(255, 181, 71, 0.14); color: var(--amber); }

.studio-teaser { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .studio-teaser { grid-template-columns: 1fr; } }
.stack { position: relative; aspect-ratio: 16 / 11; }
.stack .browser { position: absolute; width: 78%; }
.stack .browser:nth-child(1) { left: 0; top: 0; transform: rotate(-2deg); }
.stack .browser:nth-child(2) { right: 0; top: 18%; transform: rotate(1.5deg); }
.stack .browser:nth-child(3) { left: 11%; bottom: 0; transform: rotate(-0.5deg); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .intro > * { opacity: 1; transform: none; filter: none; }
  .reveal, .stagger > * { transform: none; transition: opacity 300ms ease; }
  .scrub { height: auto; }
  .scrub-pin { position: relative; height: auto; padding: 120px var(--gutter) 160px; }
  .scrub-text .w { opacity: 1; }
  .tl { height: auto !important; }
  .tl-pin { position: relative; height: auto; padding: 96px 0 40px; gap: 32px; }
  .tl-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; transform: none !important; }
  .tl-track > * { scroll-snap-align: start; }
  .tl-rail { display: none; }
  .hero-canvas { display: none; }
  .nav { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav-links { background: #111117; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Studio extras ---------- */
.studio-hero { min-height: 74svh; }
.studio-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 50% 45%, rgba(255, 181, 71, 0.16), transparent 70%),
    radial-gradient(30% 40% at 20% 70%, rgba(121, 200, 255, 0.1), transparent 70%),
    radial-gradient(30% 40% at 82% 30%, rgba(126, 240, 176, 0.07), transparent 70%),
    var(--bg);
}
.studio-glow::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(245, 242, 236, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 242, 236, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 75%);
}
.media-ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 4vw, 64px); letter-spacing: -0.02em; color: rgba(245, 242, 236, 0.28);
}
.phone .media-ph { font-size: clamp(16px, 2vw, 28px); }
.compare { --pos: 50%; }
.compare > img, .compare-before > img { object-position: top; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-before > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.compare-before > img.loaded { opacity: 1; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--ink); transform: translateX(-1px); z-index: 3; pointer-events: none; box-shadow: 0 0 20px rgba(0, 0, 0, 0.6); }
.compare-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  background: var(--ink); color: #0b0b10; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.compare-range:focus-visible ~ .compare-handle::after { outline: 2px solid var(--amber); outline-offset: 3px; }
.compare .compare-l { left: 16px; right: auto; }
.compare .compare-r { left: auto; right: 16px; }
.compare.no-before .compare-before, .compare.no-before .compare-range, .compare.no-before .compare-handle, .compare.no-before .compare-l, .compare.no-before .compare-r { display: none; }
.resp-sizes .call-tab[aria-pressed="true"] { background: rgba(255, 181, 71, 0.14); border-color: rgba(255, 181, 71, 0.4); color: var(--amber); }
@media (max-width: 700px) {
  .resp-controls { flex-direction: column; align-items: stretch; }
  .resp-range { min-width: 0; }
  .work-stage { padding-right: 52px; padding-bottom: 28px; }
  .work-stage .phone { width: 96px; border-radius: 22px; padding: 6px; }
  .work-stage .phone .media { border-radius: 17px; }
  .work-stage .phone::before { top: 12px; width: 34px; height: 4px; }
}
