/* ═══════════════════════════════════════════════════════════════
   VYTHO AI AGENCY — WEBSITE 3 · cinematic scrollytelling
   Palette: black / white / grey only. One red accent in CH.2.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink-0: #0A0A0A;
  --ink-1: #101010;
  --ink-2: #161616;
  --ink-3: #1E1E1E;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --white: #F4F4F4;
  --fog: #B9B9B9;
  --grey: #8C8C8C;
  --grey-dim: #5E5E5E;
  --alarm: #E5484D;            /* CH.2 only */

  --snow: #F1F1EF;
  --snow-line: rgba(0, 0, 0, 0.10);
  --snow-ink: #161616;
  --snow-grey: #595959;

  --font-display: 'Commissioner', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-hand: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0.05, 0.36, 1);

  --stripes-dark: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,0.06) 6px 7px);
  --stripes-light: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,0.09) 6px 7px);

  --pad: clamp(20px, 4vw, 64px);
  --maxw: 1240px;

  --z-head: 50;
  --z-progress: 55;
  --z-grain: 80;
  --z-preloader: 90;
  --z-cursor: 100;
}

/* ─── page transitions ─────────────────────────────────────────
   Native cross-document View Transitions: every same-origin navigation
   (home ↔ index ↔ articles ↔ booking) plays one continuous horizontal
   slide — the old page is carried out to the left while the new page
   slides in from the right. Black snapshots = no white flash, no jump.
   Chromium animates it; other browsers fall back to an instant load. */
@view-transition { navigation: auto; }
@keyframes vt-out-left {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(-20%); opacity: 0; }
}
@keyframes vt-in-right {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
::view-transition-group(root) { animation-duration: 0.9s; }
::view-transition-old(root) {
  animation: vt-out-left 0.9s cubic-bezier(0.76, 0, 0.24, 1) both;
}
::view-transition-new(root) {
  animation: vt-in-right 0.9s cubic-bezier(0.76, 0, 0.24, 1) both;
}

/* ─── base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #333 var(--ink-0);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--white); color: var(--ink-0); }

img, svg, video, canvas { display: block; max-width: 100%; }
a, a:visited { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  letter-spacing: 0.02em;
}

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--white); color: var(--ink-0);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ─── typography ───────────────────────────────────────────── */
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 9.6vw, 10rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.chapter-h2, .pain-h2, .finale-h2 {
  font-family: var(--font-display);
  font-weight: 760;
  font-size: clamp(2.1rem, 5.8vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.chapter-sub {
  color: var(--fog);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  max-width: 46ch;
  margin-top: 22px;
}

.split-lines .sl-line { display: block; overflow: hidden; }
.split-lines .sl-inner { display: block; will-change: transform; }

/* ─── chrome: header / progress / cursor / grain ───────────── */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-head);
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2.6vw, 30px) var(--pad);
  pointer-events: none;
}
.site-head > * { pointer-events: auto; }

.wordmark { display: inline-flex; align-items: baseline; gap: 12px; }
.wordmark-main {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.42em; font-size: 17px; color: var(--white);
}
.wordmark-sub {
  font-family: var(--font-display); font-weight: 400;
  letter-spacing: 0.3em; font-size: 10px; color: var(--grey);
  transform: translateY(-1px);
}

.head-right { display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.head-nav { display: inline-flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.head-nav a {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; letter-spacing: 0.04em; color: var(--fog);
  position: relative; transition: color 0.3s var(--ease-out);
}
.head-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.head-nav a:hover { color: var(--white); }
.head-nav a:hover::after { transform: scaleX(1); }
body.on-light .head-nav a { color: var(--snow-grey); }
body.on-light .head-nav a:hover { color: var(--snow-ink); }

.lang-pill {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
}
.lang-btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--grey); padding: 6px 13px; border-radius: 999px;
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.lang-btn.is-active { background: var(--white); color: var(--ink-0); }
.lang-btn:not(.is-active):hover { color: var(--white); }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--white); transform: scaleX(0); transform-origin: left;
  z-index: var(--z-progress);
}

.cursor { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  /* centering is applied in JS (transform: …translate(-50%,-50%)) so the
     GPU translate3d position is exact under the real pointer */
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--white); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.35);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.cursor.is-link .cursor-ring {
  width: 64px; height: 64px;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}
@media (pointer: coarse) { .cursor { display: none; } }

.grain {
  position: fixed; inset: -100px; z-index: var(--z-grain); pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-34px, 22px); }
  50% { transform: translate(20px, -28px); }
  75% { transform: translate(-12px, -14px); }
  100% { transform: translate(0, 0); }
}

/* ─── buttons ──────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 34px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: 0.01em; overflow: hidden;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--white); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
}
.btn > * { position: relative; z-index: 1; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--white); }
.btn--ghost:hover { color: var(--ink-0); }
.btn--ghost:hover::before { transform: scaleY(1); }
/* solid CTA: pure-white box with BLACK letters + BLACK arrow, always */
.btn--solid { background: #FFFFFF; color: #0A0A0A; }
.btn--solid .btn-label, .btn--solid .btn-arrow { color: #0A0A0A; }
.btn--solid:hover { color: #0A0A0A; }
.btn--solid:hover .btn-label, .btn--solid:hover .btn-arrow { color: #0A0A0A; }
.btn--solid::before { background: #0A0A0A; opacity: 0.07; }
.btn--solid:hover::before { transform: scaleY(1); }
.btn-arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateY(3px); }
.btn--solid:hover .btn-arrow { transform: translateX(5px); }

/* ═══ CH.0 — PRELOADER ═════════════════════════════════════── */
#preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: grid; place-items: center;
}
.pre-shutter { position: absolute; left: 0; width: 100%; height: 50.5%; background: #060606; }
.pre-shutter--top { top: 0; }
.pre-shutter--bot { bottom: 0; }
.pre-stage { position: relative; z-index: 1; text-align: center; }
.pre-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 3rem); letter-spacing: 0.32em;
  display: inline-flex;
}
.pre-letter, .pre-dot { opacity: 0; }
.pre-dot { color: var(--grey-dim); }
.pre-count {
  position: fixed; right: clamp(20px, 4vw, 56px); bottom: clamp(18px, 3.5vw, 44px);
  font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 500; color: var(--grey);
}
.pre-skip {
  margin-top: 26px; font-size: 11px; color: var(--grey-dim);
  letter-spacing: 0.18em; text-transform: lowercase; opacity: 0;
}
#preloader.is-done { pointer-events: none; }

/* ═══ chapters: shared ═════════════════════════════════════── */
.chapter { position: relative; }

/* ═══ CH.1 — HERO ══════════════════════════════════════════── */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  background: var(--ink-0);
  overflow: hidden;
}
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative; z-index: 1; text-align: center;
  padding: 18vh var(--pad) 14vh; max-width: 1500px;
}
.hero-sub {
  color: var(--fog); font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  max-width: 36em; margin: 30px auto 0;
}
.hero .btn { margin-top: 46px; }
.hero-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--grey-dim); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero-hint-line {
  width: 1px; height: 54px; background: var(--line-strong);
  overflow: hidden; position: relative;
}
.hero-hint-line::after {
  content: ''; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--white);
  animation: hintDrop 2.1s var(--ease-inout) infinite;
}
@keyframes hintDrop { 0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; } }

/* ═══ CH.2 — THE PAIN ══════════════════════════════════════── */
.pain { background: var(--ink-0); }
.pain-pin {
  height: 100svh; overflow: hidden;
  display: grid; place-items: center; position: relative;
}
.pain-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }

.pain-phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pain-phone-body {
  width: clamp(210px, 24vw, 280px); aspect-ratio: 9 / 18.5;
  border: 1px solid var(--line-strong); border-radius: 44px;
  background: linear-gradient(170deg, #141414, #0C0C0C);
  padding: 14px; position: relative;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: phoneShake 1.7s var(--ease-inout) infinite;
}
@keyframes phoneShake {
  0%, 12%, 100% { transform: rotate(0); }
  2% { transform: rotate(1.6deg); } 4% { transform: rotate(-1.4deg); }
  6% { transform: rotate(1.2deg); } 8% { transform: rotate(-1deg); } 10% { transform: rotate(0.6deg); }
}
.pain-phone-notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 36%; height: 18px; background: #050505; border-radius: 0 0 14px 14px;
}
.pain-phone-screen {
  height: 100%; border-radius: 32px; background: #070707;
  display: grid; place-content: center; gap: 8px; text-align: center;
  position: relative; overflow: hidden;
}
.pain-call-label { font-size: 10px; letter-spacing: 0.22em; color: var(--grey); text-transform: uppercase; }
.pain-call-number { font-size: 15px; color: var(--white); }
.pain-ring {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  border: 1px solid rgba(229, 72, 77, 0.5); border-radius: 50%;
  width: 70px; height: 70px; opacity: 0;
  animation: ringExpand 1.7s var(--ease-out) infinite;
}
.pain-ring--b { animation-delay: 0.55s; }
.pain-ring--c { animation-delay: 1.1s; }
@keyframes ringExpand {
  0% { scale: 0.4; opacity: 0.9; }
  100% { scale: 3.6; opacity: 0; }
}

.pain-counter {
  position: absolute; right: clamp(16px, 9vw, 13%); top: 16%;
  text-align: right; display: grid; gap: 2px;
}
.pain-counter-num {
  font-size: clamp(4rem, 11vw, 9.5rem); font-weight: 700;
  line-height: 1; color: var(--alarm);
}
.pain-counter-label {
  color: var(--grey); font-size: clamp(0.8rem, 1.2vw, 1rem);
  letter-spacing: 0.24em; text-transform: uppercase;
}

.note {
  position: absolute;
  width: clamp(120px, 13vw, 170px); aspect-ratio: 1;
  background: #E9E7E0; color: #1C1C1C;
  font-family: var(--font-hand); font-size: clamp(0.8rem, 1vw, 0.95rem); line-height: 1.35;
  padding: 18px 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: grid; place-content: center; text-align: center;
}
.note::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 52px; height: 16px; background: rgba(255, 255, 255, 0.25);
}
.note-1 { left: 9%; top: 14%; rotate: -7deg; }
.note-2 { left: 17%; bottom: 17%; rotate: 4deg; }
.note-3 { right: 12%; bottom: 13%; rotate: -3deg; }
.note-4 { left: 32%; top: 9%; rotate: 9deg; background: #DFDCD2; }
.note-5 { right: 26%; bottom: 30%; rotate: -10deg; background: #DFDCD2; }

.pain-h2 {
  position: relative; z-index: 2; text-align: center;
  padding: 0 var(--pad);
}
.pain-after {
  position: absolute; z-index: 2; bottom: 11%;
  left: 50%; transform: translateX(-50%);
  color: var(--grey); font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  width: max-content; max-width: 90vw; text-align: center;
}
.pain-wipe {
  position: absolute; inset: -2px; z-index: 3; background: #050505;
  transform: scaleY(0); transform-origin: bottom;
}

/* ═══ CH.3 — THE TURN ══════════════════════════════════════── */
.turn { background: #050505; }
.turn-pin {
  height: 100svh; display: grid; place-items: center; overflow: hidden;
}
.turn-stage { text-align: center; padding: 0 var(--pad); display: grid; justify-items: center; gap: 48px; }

.turn-orb { position: relative; width: clamp(130px, 16vw, 190px); aspect-ratio: 1; }
.orb-core {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #FFFFFF 0%, #CFCFCF 28%, #3A3A3A 68%, transparent 75%);
  filter: blur(1px);
  animation: orbBreath 4.5s var(--ease-inout) infinite;
}
.orb-halo {
  position: absolute; inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 62%);
  animation: orbBreath 4.5s var(--ease-inout) infinite reverse;
}
@keyframes orbBreath { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }
.orb-wave {
  position: absolute; left: 50%; bottom: -34px; translate: -50%;
  display: flex; gap: 4px; align-items: center; height: 22px;
}
.orb-wave span {
  width: 2px; height: 5px; background: rgba(255, 255, 255, 0.55); border-radius: 2px;
  animation: waveBar 1.1s var(--ease-inout) infinite alternate;
}
.orb-wave span:nth-child(2n) { animation-delay: 0.12s; }
.orb-wave span:nth-child(3n) { animation-delay: 0.26s; }
.orb-wave span:nth-child(4n) { animation-delay: 0.4s; }
.orb-wave span:nth-child(5n) { animation-delay: 0.55s; }
@keyframes waveBar { from { height: 4px; opacity: 0.45; } to { height: 20px; opacity: 1; } }

.turn-h2 {
  font-family: var(--font-display); font-weight: 280;
  font-size: clamp(1.7rem, 4.4vw, 3.7rem); line-height: 1.25;
  letter-spacing: 0.002em; max-width: min(24ch, 100%);
  overflow-wrap: break-word;
}
.turn-type .tt-char { opacity: 0; }
.turn-caret {
  display: inline-block; width: 2px; height: 0.95em; background: var(--white);
  margin-left: 4px; transform: translateY(0.16em);
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.turn-sub { color: var(--grey); font-size: clamp(0.95rem, 1.2vw, 1.1rem); letter-spacing: 0.02em; }

/* ═══ CH.4 — THE AI EMPLOYEE ═══════════════════════════════── */
.employee { background: var(--ink-1); }
.emp-pin {
  min-height: 100svh; padding: clamp(70px, 9vh, 110px) var(--pad) 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(34px, 5vh, 60px);
  overflow: hidden;
}
.emp-head { text-align: center; display: grid; justify-items: center; }

.emp-stage {
  display: grid; grid-template-columns: minmax(300px, 400px) minmax(280px, 360px);
  gap: clamp(28px, 5vw, 84px); align-items: center; justify-content: center;
  width: 100%;
}

.device-phone {
  position: relative;
  border: 1px solid var(--line-strong); border-radius: 40px;
  background: linear-gradient(168deg, #151515, #0B0B0B);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 22px 16px 16px;
}
.device-phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 7px; border-radius: 999px; background: #2A2A2A;
}

.emp-chat { display: flex; flex-direction: column; height: clamp(480px, 62vh, 600px); }
.emp-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 8px 14px; border-bottom: 1px solid var(--line);
}
.emp-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); color: var(--ink-0);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.emp-chat-title { display: grid; gap: 1px; }
.emp-chat-title strong { font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; }
.emp-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--grey); }
.emp-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--white);
  animation: statusPulse 2.2s var(--ease-inout) infinite;
}
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.emp-thread {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 10px; padding: 16px 6px; overflow: hidden;
}
.msg { max-width: 84%; display: grid; gap: 3px; }
.msg p {
  padding: 11px 15px; border-radius: 17px;
  font-size: 13.5px; line-height: 1.5;
}
.msg time { font-size: 9.5px; color: var(--grey-dim); }
.msg--in { align-self: flex-start; }
.msg--in p { background: var(--ink-3); border-bottom-left-radius: 5px; color: var(--white); }
.msg--in time { padding-left: 6px; }
.msg--out { align-self: flex-end; text-align: right; }
.msg--out p { background: var(--white); color: var(--ink-0); border-bottom-right-radius: 5px; text-align: left; }
.msg--out time { padding-right: 6px; }
.emp-inputbar {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; font-size: 12.5px; color: var(--grey-dim);
}

.emp-cal {
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--ink-2); padding: 22px; position: relative;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
}
.emp-cal-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.emp-cal-head .mono { font-size: 10px; letter-spacing: 0.22em; color: var(--grey); }
.emp-cal-day { font-family: var(--font-display); font-weight: 650; font-size: 15px; }
.emp-cal-grid { padding-top: 8px; }
.emp-cal-row {
  display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px;
  height: 46px; border-bottom: 1px dashed var(--line);
}
.emp-cal-row:last-child { border-bottom: 0; }
.emp-cal-row .mono { font-size: 11px; color: var(--grey-dim); }
.emp-cal-cell { height: 34px; border-radius: 8px; position: relative; }

.emp-booking {
  position: absolute; left: 80px; right: 22px; top: 116px; /* JS refines to the 17:00 row */
  display: flex; align-items: center; gap: 10px;
  background: #E9E9E9; color: var(--ink-0);
  border-radius: 9px; padding: 6px 12px; height: 36px;
  font-size: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  visibility: hidden;
}
.emp-booking > div { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.emp-booking strong { font-weight: 600; font-size: 12px; }
.emp-booking .mono { font-size: 10.5px; color: #555; }
.emp-booking-bar { width: 3px; height: 20px; border-radius: 2px; background: var(--ink-0); flex: none; }

.emp-flyer {
  position: fixed; left: 0; top: 0; z-index: 5;
  background: var(--white); color: var(--ink-0);
  font-size: 11px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  visibility: hidden; pointer-events: none; white-space: nowrap;
}

/* ═══ CH.5 — THE MULTIMODAL BOT (light band) ═══════════════── */
.modal { background: var(--snow); color: var(--snow-ink); }
.modal-head {
  padding: clamp(90px, 14vh, 150px) var(--pad) 0;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; justify-items: start;
}
.modal .chapter-sub { color: var(--snow-grey); }

.mm-demo {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 11vh, 120px) var(--pad);
  display: grid; grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(36px, 6vw, 100px); align-items: center;
}
.mm-demo--flip { grid-template-columns: 1fr minmax(280px, 460px); }
.mm-demo--flip .mm-demo-copy { order: 2; }
.mm-demo--flip .mm-demo-stage { order: 1; }

.mm-kind { font-size: 11px; letter-spacing: 0.2em; color: var(--snow-grey); text-transform: uppercase; }
.mm-demo-copy h3 {
  font-family: var(--font-display); font-weight: 720;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.12; letter-spacing: -0.015em;
  margin-top: 16px;
}
.mm-demo-copy p { color: var(--snow-grey); margin-top: 16px; max-width: 44ch; }

.mm-demo-stage { display: grid; gap: 18px; justify-items: start; }

.mm-bubble {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink-0); color: var(--white);
  border-radius: 22px; border-bottom-right-radius: 7px;
  padding: 15px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  justify-self: end;
}
.mm-play {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--white); color: var(--ink-0);
  display: grid; place-items: center; font-size: 10px;
  cursor: default;
}
.mm-wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.mm-wave span {
  width: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.8);
  height: calc(5px + (var(--h, 0.4)) * 18px);
}
.mm-wave.is-live span { animation: waveBar 0.55s var(--ease-inout) infinite alternate; }
.mm-wave span:nth-child(3n) { --h: 0.9; animation-delay: 0.1s; }
.mm-wave span:nth-child(4n) { --h: 0.55; animation-delay: 0.22s; }
.mm-wave span:nth-child(5n) { --h: 1; animation-delay: 0.3s; }
.mm-wave span:nth-child(2n) { --h: 0.3; }
.mm-wave span:nth-child(7n) { --h: 0.75; animation-delay: 0.16s; }
.mm-dur { font-size: 10.5px; color: var(--grey); }

.mm-transcript {
  color: var(--snow-grey); font-size: 14.5px; justify-self: end;
  max-width: 38ch; text-align: right;
}

.mm-minical {
  width: min(440px, 100%);
  background: #FBFBFA; border: 1px solid var(--snow-line); border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
  display: grid; gap: 9px;
}
.mm-minical-head {
  font-size: 10.5px; letter-spacing: 0.18em; color: var(--snow-grey); text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid var(--snow-line);
}
.mm-evt {
  display: flex; gap: 14px; align-items: center;
  background: #EFEFED; border-radius: 9px; padding: 10px 14px;
  font-size: 13px; position: relative;
}
.mm-evt .mono { font-size: 11px; color: var(--snow-grey); flex: none; }
.mm-evt::after {
  content: ''; position: absolute; left: 12px; right: 12px; top: 50%;
  height: 1.5px; background: var(--snow-ink);
  transform: scaleX(0); transform-origin: left;
}
.mm-evt.is-cancelled { opacity: 0.45; }
.mm-evt.is-cancelled::after { transform: scaleX(1); transition: transform 0.6s var(--ease-out); }

.mm-dayoff {
  background: #E7E7E4 var(--stripes-light);
  border: 1px dashed rgba(0, 0, 0, 0.2); border-radius: 9px;
  padding: 13px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  visibility: hidden;
}
.mm-done {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-0); color: var(--white);
  border-radius: 9px; padding: 10px 14px; font-size: 12.5px;
  visibility: hidden;
}
.mm-check {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--white); color: var(--ink-0);
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
}

.mm-bubble--text { font-size: 14.5px; min-height: 52px; }
.mm-typed::after { content: none; }
.mm-caret {
  display: inline-block; width: 1.5px; height: 1.05em; background: var(--white);
  margin-left: 3px; transform: translateY(0.18em);
  animation: caretBlink 0.9s steps(1) infinite;
}

.mm-photo {
  position: relative; width: min(380px, 100%);
  justify-self: end;
  rotate: -2deg;
}
/* printed / digital spreadsheet (Excel-style) — NOT handwritten */
.mm-photo-paper {
  background: #FFFFFF; border: 1px solid var(--snow-line); border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}
.mm-sheet-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px; background: #ECECEA; border-bottom: 1px solid var(--snow-line);
}
.mm-sheet-bar span { width: 9px; height: 9px; border-radius: 50%; background: #C4C4C0; }
.mm-sheet-bar .mm-sheet-name {
  width: auto; height: auto; border-radius: 0; background: none;
  margin-left: 8px; font-family: var(--font-mono); font-size: 10.5px; color: #7A7A76;
}
.mm-sheet { font-family: var(--font-mono); font-size: 12px; color: #1F1F1F; }
.mm-sheet-row { display: grid; grid-template-columns: 1fr 1.35fr 0.72fr; }
.mm-sheet-row span {
  padding: 11px 13px; border-bottom: 1px solid #ECECEC; border-right: 1px solid #ECECEC;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-sheet-row span:last-child { border-right: 0; }
.mm-sheet-row:last-child span { border-bottom: 0; }
.mm-sheet-head span {
  background: #F4F4F2; font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.09em; color: #6A6A66;
}
.mm-scanline {
  position: absolute; left: -6px; right: -6px; top: 0; height: 3px;
  background: var(--snow-ink);
  box-shadow: 0 0 24px 6px rgba(0, 0, 0, 0.3);
  visibility: hidden;
}
.mm-evt--new { visibility: hidden; }

.mm-tagline {
  font-family: var(--font-display); font-weight: 760;
  font-size: clamp(1.9rem, 4.6vw, 4rem); letter-spacing: -0.02em;
  text-align: center; padding: clamp(40px, 8vh, 90px) var(--pad) clamp(110px, 16vh, 170px);
  max-width: 1100px; margin: 0 auto;
}

/* ═══ CH.6 — THE CALENDAR / HYPERFRAME ═════════════════════── */
.cal { background: var(--ink-0); }
.cal-pin {
  height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(26px, 4vh, 48px);
  padding: clamp(80px, 10vh, 110px) var(--pad) 40px;
}
.cal-head { text-align: center; display: grid; justify-items: center; }
.cal-head .chapter-sub { margin-inline: auto; }

.cal-theater {
  position: relative; width: min(960px, 100%);
  perspective: 1400px;
}
.device-laptop { position: relative; z-index: 1; transform-style: preserve-3d; }
.device-laptop-screen {
  position: relative; aspect-ratio: 16 / 9.6; border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #000; overflow: hidden;
  padding: 10px;
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.device-laptop-screen > canvas,
.device-laptop-screen > video,
.device-laptop-screen > .hyper-fallback {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: cover; border-radius: 8px;
}
#hyperVideo, #hyperCanvas { display: none; }
.device-laptop-base {
  margin: 0 auto; width: 38%; height: 14px;
  background: linear-gradient(#1A1A1A, #0D0D0D);
  border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 16px 16px;
}

.hyper-fallback { background: var(--ink-1); overflow: hidden; }

/* DOM mock calendar (fallback + screenshot placeholders) */
.mockcal { display: flex; flex-direction: column; height: 100%; font-size: 10px; }
.mockcal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); letter-spacing: 0.2em; color: var(--grey);
}
.mockcal-grid { flex: 1; display: grid; grid-template-columns: 34px repeat(6, 1fr); }
.mockcal-times { display: grid; border-right: 1px solid var(--line); }
.mockcal-times span {
  font-family: var(--font-mono); color: var(--grey-dim); font-size: 8px;
  display: grid; place-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mockcal-col { border-right: 1px solid rgba(255, 255, 255, 0.05); position: relative; }
.mockcal-col-head {
  text-align: center; padding: 5px 0; color: var(--fog);
  font-family: var(--font-mono); font-size: 8.5px; border-bottom: 1px solid var(--line);
}
.mockcal-evt {
  position: absolute; left: 6%; right: 6%; border-radius: 4px;
  background: #DADADA; color: #111; padding: 3px 5px; font-size: 7.5px; overflow: hidden;
  border-left: 2px solid #444;
}
.mockcal-evt--b { background: #9E9E9E; }
.mockcal-closed {
  position: absolute; left: 0; right: 0;
  background: var(--stripes-dark);
}

/* floating screenshots */
.cal-shot { position: absolute; z-index: 2; margin: 0; }
.cal-shot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cal-shot--phone {
  width: clamp(130px, 17%, 175px); aspect-ratio: 9 / 19;
  left: -3%; bottom: -8%;
  border-radius: 26px; padding: 8px 7px;
  rotate: -7deg;
}
.cal-shot--phone img { border-radius: 18px; }
.cal-shot--phone .device-phone-notch { width: 44px; height: 5px; top: 8px; }
.cal-shot--panel {
  width: clamp(180px, 26%, 270px); right: -4%; top: -9%;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--ink-2); padding: 7px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  rotate: 5deg;
}
.cal-shot--panel img { border-radius: 9px; }

/* screenshot placeholder (when file missing) */
.shot-ph {
  width: 100%; height: 100%; border-radius: inherit;
  background: var(--ink-1) var(--stripes-dark);
  display: grid; place-content: center; gap: 8px; text-align: center;
  padding: 14px; min-height: 120px;
}
.shot-ph .mono { font-size: 8.5px; letter-spacing: 0.26em; color: var(--grey); }
.shot-ph i {
  font-style: normal; font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.4em; font-size: 13px; color: var(--white);
}

.cal-callout {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(11px, 1.05vw, 13.5px); color: var(--fog);
  max-width: 240px;
}
.cal-callout i {
  flex: none; width: clamp(30px, 4.5vw, 64px); height: 1px;
  background: rgba(255, 255, 255, 0.45);
  transform: scaleX(0); transform-origin: left;
}
.cal-callout span { opacity: 0; }
.cal-callout--1 { left: 99%; top: 22%; }
.cal-callout--2 { left: 99%; top: 58%; }
.cal-callout--3 { right: 99%; top: 36%; flex-direction: row-reverse; text-align: right; }
.cal-callout--3 i, .cal-callout--4 i { transform-origin: right; }
.cal-callout--4 { right: 99%; top: 72%; flex-direction: row-reverse; text-align: right; }

/* ═══ CH.7 — ONE SOURCE OF TRUTH ═══════════════════════════── */
.truth { background: var(--ink-1); }
.truth-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(110px, 16vh, 180px) var(--pad);
  display: grid; gap: clamp(50px, 8vh, 90px);
}
.truth-diagram {
  position: relative; width: 100%; max-width: 940px; margin: 0 auto;
  aspect-ratio: 900 / 560;
}
.truth-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.truth-line { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; }
.truth-pulse { fill: rgba(255, 255, 255, 0.03); }

.truth-node {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; gap: 3px;
}
.truth-node--src {
  left: 16.6%; top: calc(21.4% + (var(--ty) * 0.572));
  width: clamp(150px, 22vw, 230px);
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
}
.truth-node--src strong { font-family: var(--font-display); font-weight: 650; font-size: clamp(12.5px, 1.5vw, 15.5px); }
.truth-node--src span { color: var(--grey); font-size: clamp(10px, 1.15vw, 12.5px); line-height: 1.45; }

.truth-node--core {
  left: 71.1%; top: 50%;
  width: clamp(170px, 27vw, 270px); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 42%, #1D1D1D, #0E0E0E 70%);
  display: grid; place-content: center; text-align: center; gap: 8px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5);
}
.truth-node--core::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: corePulse 2.6s var(--ease-out) infinite;
}
@keyframes corePulse {
  0% { scale: 1; opacity: 0.8; }
  70%, 100% { scale: 1.35; opacity: 0; }
}
.truth-core-label { font-size: clamp(8.5px, 1vw, 10.5px); letter-spacing: 0.3em; color: var(--grey); }
.truth-node--core strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(14px, 1.9vw, 19px); max-width: 11ch; margin: 0 auto;
}

.truth-counters {
  display: flex; justify-content: center; gap: clamp(36px, 8vw, 110px);
  flex-wrap: wrap; text-align: center;
}
.truth-counter { display: grid; gap: 6px; }
.truth-num {
  font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; line-height: 1;
  color: var(--white);
}
.truth-counter > span:last-child {
  color: var(--grey); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ═══ CH.8 — RESULTS ═══════════════════════════════════════── */
.results { background: var(--ink-0); }
.res-pin { position: relative; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.res-track {
  display: flex; align-items: center; gap: clamp(40px, 6vw, 110px);
  padding: 0 clamp(28px, 8vw, 130px);
  will-change: transform;
}
.res-panel { flex: none; width: min(420px, 78vw); display: grid; gap: 14px; }
.res-panel--intro { width: min(560px, 84vw); }
.res-drag { font-size: clamp(2rem, 4vw, 3.4rem); color: var(--grey-dim); margin-top: 10px; }
.res-stat {
  font-size: clamp(4.4rem, 9vw, 8rem); font-weight: 700; line-height: 1;
  color: var(--white);
}
.res-panel h3 {
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.01em;
}
.res-panel p { color: var(--fog); font-size: 15px; max-width: 40ch; }
.res-panel--quote { width: min(520px, 82vw); }
.res-panel--quote blockquote { display: grid; gap: 18px; border-left: 1px solid var(--line-strong); padding-left: clamp(20px, 3vw, 36px); }
.res-panel--quote p {
  font-family: var(--font-display); font-weight: 450;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.4; color: var(--white);
  max-width: 26ch;
}
.res-panel--quote cite { font-style: normal; font-size: 11px; letter-spacing: 0.22em; color: var(--grey); text-transform: uppercase; }

.res-marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0; overflow: hidden;
}
.res-marquee-track {
  display: flex; gap: 38px; align-items: center; width: max-content;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--grey);
  animation: marquee 36s linear infinite;
}
.res-marquee-track i { font-style: normal; color: var(--grey-dim); }
.res-marquee-track > * { flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══ CH.9 — FINALE ════════════════════════════════════════── */
.finale {
  background: #060606; min-height: 100svh;
  display: flex; flex-direction: column;
}
.finale-inner {
  flex: 1; display: grid; place-content: center; justify-items: center;
  text-align: center; padding: clamp(130px, 20vh, 220px) var(--pad) clamp(80px, 12vh, 140px);
  gap: 0;
}
.finale-h2 { max-width: 18ch; }
.finale-sub { color: var(--fog); max-width: 44ch; margin-top: 26px; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.finale .btn { margin-top: 48px; }
.finale-call { margin-top: 28px; font-size: 12.5px; color: var(--grey); }
.finale-call a { transition: color 0.3s; }
.finale-call a:hover { color: var(--white); }

.footer { padding: 0 var(--pad); }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(40px, 7vh, 70px) 0;
  border-top: 1px solid var(--line);
}
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; color: var(--fog); }
.footer-label {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--grey-dim); margin-bottom: 6px;
}
.footer-note {
  font-size: 12.5px; line-height: 1.5; color: var(--grey);
  max-width: 30ch; margin-top: 2px;
}
.footer-col a {
  width: fit-content; color: var(--white);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease-out);
  padding-bottom: 2px;
}
.footer-col a:hover { background-size: 100% 1px; }
.footer-social { display: flex; gap: 18px; margin-top: 8px; }
.footer-social a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--fog); }

.footer-wordmark {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: 1500px; margin: 0 auto;
  padding: clamp(10px, 3vh, 30px) 0 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4.5rem, 17.5vw, 19rem); line-height: 0.92;
  color: #ECECEC; letter-spacing: 0;
  overflow: hidden;
}
.footer-wordmark span { display: inline-block; will-change: transform; }

.footer-base {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 30px; border-top: 1px solid var(--line); margin-top: clamp(20px, 4vh, 40px);
  font-size: 11.5px; color: var(--grey-dim);
  font-family: var(--font-mono); letter-spacing: 0.06em;
}

/* ─── chrome over the light chapter ────────────────────────── */
body.on-light .wordmark-main { color: var(--snow-ink); }
body.on-light .wordmark-sub { color: var(--snow-grey); }
body.on-light .lang-pill { background: rgba(241, 241, 239, 0.6); border-color: rgba(0, 0, 0, 0.16); }
body.on-light .lang-btn { color: var(--snow-grey); }
body.on-light .lang-btn.is-active { background: var(--snow-ink); color: var(--snow); }
body.on-light .lang-btn:not(.is-active):hover { color: var(--snow-ink); }
.wordmark-main, .wordmark-sub, .lang-pill, .lang-btn { transition: color 0.4s, background 0.4s, border-color 0.4s; }

.cursor-dot, .cursor-ring, .scroll-progress { mix-blend-mode: difference; }

.mm-evt { transition: opacity 0.5s var(--ease-out); }

/* ═══ responsive ═══════════════════════════════════════════── */
@media (max-width: 1060px) {
  .cal-callout--1, .cal-callout--2 { left: auto; right: 2%; max-width: 190px; }
  .cal-callout--3, .cal-callout--4 { right: auto; left: 2%; max-width: 190px; }
}

@media (max-width: 860px) {
  .emp-stage { grid-template-columns: minmax(0, 420px); justify-items: center; }
  .emp-cal { width: min(420px, 100%); }
  .emp-chat { height: clamp(430px, 56vh, 540px); }

  .mm-demo, .mm-demo--flip { grid-template-columns: 1fr; }
  .mm-demo--flip .mm-demo-copy { order: 1; }
  .mm-demo--flip .mm-demo-stage { order: 2; }
  .mm-bubble, .mm-transcript, .mm-photo { justify-self: start; }
  .mm-transcript { text-align: left; }

  .cal-pin { height: auto; min-height: 100svh; padding-bottom: 80px; }
  .cal-theater { margin-top: 10px; }
  .cal-shot--phone { left: -2%; bottom: -12%; width: 110px; }
  .cal-shot--panel { width: 160px; right: -2%; top: -7%; }
  .cal-callout {
    position: static; max-width: none; opacity: 1;
    margin-top: 14px;
  }
  .cal-callout i { display: none; }
  .cal-callout span { opacity: 1; }
  .cal-theater { display: grid; }
  .cal-callouts-flow { display: grid; gap: 10px; }

  .truth-diagram { aspect-ratio: auto; display: grid; gap: 14px; padding: 0; }
  .truth-diagram svg { display: none; }
  .truth-node { position: static; transform: none; width: 100%; }
  .truth-node--src { width: 100%; }
  .truth-node--core {
    width: 100%; aspect-ratio: auto; border-radius: 20px;
    padding: 26px 18px;
  }
  .truth-node--core::after { border-radius: 20px; }

  .res-pin { height: auto; padding: 90px 0 110px; }
  .res-track {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding-bottom: 20px;
  }
  .res-panel { scroll-snap-align: center; }

  .pain-counter { right: 6%; top: 10%; }
  .note-4, .note-5 { display: none; }
  .pain-after { bottom: 12%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero-h1 { font-size: clamp(2.4rem, 12.5vw, 3.6rem); }
  .wordmark-sub { display: none; }
  .head-nav { display: none; }   /* links stay crawlable in footer + finale CTA */
  .footer-grid { grid-template-columns: 1fr; }
  .emp-pin { padding-top: 90px; }
  .pain-phone-body { width: 185px; }
  .pain-counter-num { font-size: 3.6rem; }
  .pain-h2 { font-size: clamp(1.35rem, 6.6vw, 2rem); }
  .note { width: 108px; font-size: 0.72rem; padding: 10px; }
  .res-panel { width: 82vw; }
  /* CH.3 turn: keep the typed headline + subline inside the screen */
  .turn-stage { gap: 30px; }
  .turn-h2 { font-size: clamp(1.45rem, 7.4vw, 2.1rem); line-height: 1.3; max-width: 100%; }
  .turn-sub { max-width: 92%; }

  /* full-width, easy-tap CTAs on phones */
  .btn { width: 100%; justify-content: center; padding: 19px 26px; }
  .hero .btn, .finale .btn { max-width: 420px; }
  .hero-inner, .finale-inner { padding-left: 22px; padding-right: 22px; }

  /* tighter vertical rhythm so mobile isn't endless dead scroll */
  .modal-head { padding-top: clamp(70px, 12vh, 110px); }
  .mm-demo { padding-top: clamp(46px, 8vh, 80px); padding-bottom: clamp(46px, 8vh, 80px); }
  .mm-minical { width: 100%; }
  .mm-demo-stage { width: 100%; }

  /* keep the chat + calendar comfortably inside the screen */
  .emp-chat, .emp-cal { width: min(100%, 360px); }
  .device-phone { padding: 20px 12px 12px; }
}

/* ─── very small phones (≤380px) ───────────────────────────── */
@media (max-width: 380px) {
  :root { --pad: 18px; }
  .hero-h1 { font-size: clamp(2.1rem, 11.5vw, 3rem); }
  .chapter-h2, .pain-h2, .finale-h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .mm-demo-copy h3 { font-size: clamp(1.5rem, 7.5vw, 1.9rem); }
  .mm-tagline { font-size: clamp(1.6rem, 8.5vw, 2.2rem); }
  .truth-num { font-size: clamp(2.3rem, 13vw, 3rem); }
  .res-stat { font-size: clamp(3.6rem, 18vw, 5rem); }
  .footer-wordmark { font-size: clamp(3.6rem, 20vw, 6rem); }
}

/* ═══ calm mode ════════════════════════════════════════════──
   By the site owner's explicit decision, the cinematic motion plays for
   EVERY visitor on every device/browser — we intentionally do NOT honour the
   OS `prefers-reduced-motion` setting here. The calm/static styling below is
   class-based (`html.reduced-motion`) and is applied ONLY when the owner opens
   the manual `?motion=0` test URL, never for real visitors. */
html.reduced-motion .grain,
html.reduced-motion .cursor { display: none; }
html.reduced-motion .pain-phone-body,
html.reduced-motion .pain-ring,
html.reduced-motion .orb-core,
html.reduced-motion .orb-halo,
html.reduced-motion .orb-wave span,
html.reduced-motion .res-marquee-track,
html.reduced-motion .truth-node--core::after,
html.reduced-motion .hero-hint-line::after { animation: none; }
html.reduced-motion .emp-booking,
html.reduced-motion .mm-dayoff,
html.reduced-motion .mm-done,
html.reduced-motion .mm-evt--new { visibility: visible; }
html.reduced-motion .cal-callout i { transform: none; }
html.reduced-motion .cal-callout span { opacity: 1; }
html.reduced-motion .turn-type .tt-char { opacity: 1; }
