/* ============================================================
   BYTEMIND HOMEPAGE — "Pixel to Purpose"
   One continuous scroll film. Token values mirror
   ui/src/styles/tokens.css exactly. The film opens dark
   (confusion) and resolves light (clarity); html[data-theme]
   is driven by scroll position in main.js.
============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --surface-0:#FFFFFF; --surface-1:#F7F7F8; --surface-2:#FFFFFF; --surface-3:#FFFFFF;
  --text-primary:#18181B; --text-secondary:#52525B; --text-muted:#A1A1AA;
  --border:rgba(24,24,27,0.10); --border-strong:rgba(24,24,27,0.16);
  --accent:#f54e00; --accent-hover:#d94400; --accent-text:#c93f00;
  --accent-bg:rgba(245,78,0,0.08); --accent-bg-hover:rgba(245,78,0,0.14);
  --accent-border:rgba(245,78,0,0.28); --on-accent:#FFFFFF;
  --success:#f54e00; --danger:#DC2626; --warning:#B45309;
  --focus-ring:rgba(245,78,0,0.40);
  --shadow-card:0 1px 2px rgba(24,24,27,0.06), 0 8px 24px rgba(24,24,27,0.06);

  --font-display:'Inter Tight','Inter',system-ui,sans-serif;
  --font-sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,monospace;
  --font-logo:'Quicksand','Inter',system-ui,sans-serif;

  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-6:24px;
  --space-8:32px; --space-12:48px; --space-16:64px; --space-24:96px; --space-32:128px;

  --radius-sm:4px; --radius-md:8px; --radius-btn:10px; --radius-lg:12px;
  --radius-field:14px; --radius-xl:16px; --radius-chat:18px; --radius-pill:999px;

  --dur-fast:120ms; --dur-base:180ms; --dur-slow:260ms;
  --ease-out:cubic-bezier(0.22,1,0.36,1);
}
:root[data-theme="dark"] {
  --surface-0:#0A0A0B; --surface-1:#141416; --surface-2:#1C1C1F; --surface-3:#242427;
  --text-primary:#FAFAFA; --text-secondary:#A1A1AA; --text-muted:#71717A;
  --border:rgba(255,255,255,0.08); --border-strong:rgba(255,255,255,0.14);
  --accent:#f54e00; --accent-hover:#ff6a2b; --accent-text:#ff8a5c;
  --accent-bg:rgba(245,78,0,0.16); --accent-bg-hover:rgba(245,78,0,0.26);
  --accent-border:rgba(245,78,0,0.45); --on-accent:#FFFFFF;
  --success:#FF6A2B; --danger:#F87171; --warning:#FBBF24;
  --focus-ring:rgba(245,78,0,0.55);
  --shadow-card:none;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html:not(.anim) { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* One-off cinematic cross-fade while the story turns from dark to light. */
html.theming body, html.theming body * { transition: background-color .9s var(--ease-out), color .9s var(--ease-out), border-color .9s var(--ease-out); }

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { color: var(--accent-text); }
button { font-family: inherit; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus-ring); border-radius: var(--radius-sm); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-6); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -48px; left: var(--space-4); z-index: 200; background: var(--surface-3); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: var(--radius-btn); padding: 10px 16px; font-size: .875rem; text-decoration: none; transition: top var(--dur-base) var(--ease-out); }
.skip-link:focus-visible { top: var(--space-4); }

/* The pixel square. Sharp. Never round. */
.sq { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 0; flex: none; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 500;
  border-radius: var(--radius-btn); cursor: pointer; text-decoration: none;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-primary { background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 6px 20px rgba(245,78,0,.25); transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-primary); }
.btn-secondary:hover { background: var(--surface-1); border-color: var(--accent-border); }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--surface-1); }
.btn-ghost .arr { display: inline-block; transition: transform var(--dur-base) var(--ease-out); }
.btn-ghost:hover .arr { transform: translateY(3px); }
.cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; justify-content: center; }

/* ---------- 4. Chrome: progress + topbar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding-inline: clamp(20px, 3.5vw, 44px);
}
.brand { display: inline-flex; align-items: center; }
.act-label {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-secondary); white-space: nowrap;
  transition: opacity .5s var(--ease-out);
}
.act-label .num { color: var(--accent-text); }
@media (max-width: 1023px) { .act-label { display: none; } }
.wm { height: 22px; width: auto; }
.wm-for-light { display: none; }
:root:not([data-theme="dark"]) .wm-for-light { display: block; }
:root:not([data-theme="dark"]) .wm-for-dark { display: none; }

/* ---------- 5. The film ---------- */
.film { position: relative; height: 880vh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Optional generated-video layers (Nano Banana Pro posters + Seedance clips). */
.media-layer { position: absolute; inset: 0; pointer-events: none; }
.media-layer video, .media-layer img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .6s linear;
}

/* Copy: one voice at a time, centre stage. */
.copy-layer { position: absolute; inset: 0; pointer-events: none; }
.scene-copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: var(--space-6); padding-inline: var(--space-6);
  opacity: 0; visibility: hidden;
}
/* A quiet pool of page colour behind the words, so copy never fights
   the particles or video. Strong enough to read, soft enough to vanish. */
.scene-copy::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(1150px, 96vw); height: min(66svh, 640px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    var(--surface-0) 0%,
    color-mix(in srgb, var(--surface-0) 86%, transparent) 45%,
    transparent 72%);
  pointer-events: none;
}
.scene-copy.live { visibility: visible; }
.scene-copy .cta-row { pointer-events: auto; }
.scene-copy h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 1.02; letter-spacing: -0.028em; font-weight: 600;
}
.scene-copy h1 .dim { color: var(--text-secondary); }
.scene-copy h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08; letter-spacing: -0.024em; font-weight: 600;
  max-width: 1100px;
}
.scene-copy h2 em { font-style: normal; color: var(--accent-text); }
.scene-copy h2.huge { font-size: clamp(4rem, 12vw, 10rem); letter-spacing: -0.04em; }
.scene-copy .sub { font-size: clamp(1.0625rem, 1.7vw, 1.25rem); font-weight: 500; color: var(--text-primary); max-width: 660px; }
.scene-copy .sub.mono { font-family: var(--font-mono); font-weight: 400; font-size: clamp(.8125rem, 1.3vw, .9375rem); letter-spacing: .08em; color: var(--text-secondary); }
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dash { color: var(--accent-text); }

/* Scene index: eight pixel squares down the right edge. */
.scene-index {
  position: absolute; right: clamp(16px, 2.5vw, 32px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 5;
}
.scene-index span { width: 7px; height: 7px; background: var(--border-strong); transition: background var(--dur-base), transform var(--dur-base); }
.scene-index span.on { background: var(--accent); transform: scale(1.35); }

.scroll-cue {
  position: absolute; bottom: calc(var(--dock-h, 0px) + 14px); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; z-index: 5;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; padding: 8px 4px;
  transition: color var(--dur-base), opacity .5s var(--ease-out);
}
.scroll-cue:hover { color: var(--text-primary); }
html.anim .scroll-cue svg { animation: cue-bob 2.2s var(--ease-out) infinite; }
@keyframes cue-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------- 6. After the film ---------- */
.begin { position: relative; padding-block: var(--space-32) var(--space-24); }
.begin-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.begin-h { font-size: clamp(1.625rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.018em; font-weight: 600; max-width: 920px; }
.begin-sub { margin-top: var(--space-6); font-size: 1.125rem; color: var(--text-secondary); }
.begin .cta-row { margin-top: var(--space-8); }

.phases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px);
  margin-top: var(--space-24); width: 100%; max-width: 980px; text-align: left;
}
.phase { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.phase-num { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--accent-text); }
.phase h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-top: var(--space-2); }
.phase p { margin-top: var(--space-2); font-size: .9375rem; color: var(--text-secondary); }

/* ---------- 7. Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding-block: var(--space-8); flex-wrap: wrap;
}
.footer-services { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: var(--space-6) 0; }
.footer-services a { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-services a::before { content: ""; width: 5px; height: 5px; background: var(--border-strong); }
.footer-services a:hover { color: var(--accent-text); }
.footer-services a:hover::before { background: var(--accent); }
.footer-links { display: flex; gap: var(--space-6); align-items: center; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: .875rem; transition: color var(--dur-base); }
.footer-links a:hover { color: var(--text-primary); }
.footer-contact { background: transparent; border: none; padding: 0; cursor: pointer; color: var(--text-secondary); font-size: .875rem; font-family: inherit; transition: color var(--dur-base); }
.footer-contact:hover { color: var(--text-primary); }
.footer-note { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--text-muted); }
.footer-note .sq { width: 5px; height: 5px; }

/* ---------- 8. The guide ----------
   At rest: a single floating input and quiet quick picks, no
   chrome, sitting in a soft fade of page colour. In
   conversation: a glassy full-screen layer (user-approved blur
   exception to the design system), text living directly on it. */
:root { --dock-h: 0px; }
body { padding-bottom: var(--dock-h); }

.dock-pill {
  position: fixed; left: 50%; bottom: var(--space-4); transform: translateX(-50%);
  z-index: 112; display: none; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--surface-3) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 13px 20px; font-size: .9375rem; font-weight: 500; cursor: pointer;
  box-shadow: 0 10px 34px rgba(10,10,11,.16);
}
.dock-pill .sq { width: 8px; height: 8px; }
html.anim .dock-pill .sq { animation: fab-blink 2.4s steps(1) infinite; }
@keyframes fab-blink { 0%, 78%, 100% { opacity: 1; } 82%, 92% { opacity: .25; } }
.dock-pill.show { display: inline-flex; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 111;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 44px var(--space-6) 16px;
  background: linear-gradient(180deg, transparent,
    color-mix(in srgb, var(--surface-0) 82%, transparent) 42%,
    var(--surface-0) 96%);
  pointer-events: none;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
.dock > * { pointer-events: auto; }
.dock.collapsed, .dock.tucked { transform: translateY(112%); opacity: 0; pointer-events: none; }
.dock.collapsed > *, .dock.tucked > * { pointer-events: none; }

.dock-form, .overlay-form {
  display: flex; align-items: center; gap: 8px;
  width: min(680px, 100%);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 6px 6px 6px 22px;
  box-shadow: 0 12px 40px rgba(10,10,11,.14);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.dock-form:focus-within, .overlay-form:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 12px 44px rgba(245,78,0,.10);
}
.guide-input {
  flex: 1; min-width: 0; height: 46px;
  background: transparent; border: none; padding: 0;
  color: var(--text-primary); font-family: var(--font-sans); font-size: .9375rem;
}
.guide-input:focus-visible { outline: none; box-shadow: none; }
.guide-input::placeholder { color: var(--text-secondary); }
.dock-send, .overlay-form .btn { border-radius: var(--radius-pill); flex: none; height: 44px; }

.dock-chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.dock-chips button {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase;
  background: transparent; color: var(--text-secondary);
  border: none; border-radius: var(--radius-pill);
  padding: 7px 12px; cursor: pointer;
  transition: color var(--dur-base), background var(--dur-base);
}
.dock-chips button::before {
  content: ""; width: 5px; height: 5px; flex: none;
  background: var(--border-strong);
  transition: background var(--dur-base);
}
.dock-chips button:hover { color: var(--text-primary); }
.dock-chips button.on { color: var(--accent-text); background: var(--accent-bg); }
.dock-chips button.on::before { background: var(--accent); }

/* ----- the conversation: a glassy layer over the page ----- */
.guide-overlay {
  position: fixed; inset: 0; z-index: 130;
  background: color-mix(in srgb, var(--surface-0) 58%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.05); backdrop-filter: blur(26px) saturate(1.05);
  display: flex; justify-content: center;
}
.guide-overlay[hidden] { display: none; }
html.anim .guide-overlay { animation: overlay-in .32s var(--ease-out); }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.guide-scene {
  width: min(760px, 100%); display: flex; flex-direction: column;
  padding: 14px var(--space-6) 22px;
}
html.anim .guide-scene { animation: scene-in .45s var(--ease-out); }
@keyframes scene-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.guide-overlay-head { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; }
.guide-id { display: inline-flex; align-items: center; gap: 9px; }
.guide-name { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.overlay-close {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--text-secondary); cursor: pointer;
  border-radius: var(--radius-md);
}
.overlay-close:hover { color: var(--text-primary); background: color-mix(in srgb, var(--surface-1) 70%, transparent); }

.guide-thread {
  flex: 1; overflow-y: auto; padding-block: 22px;
  display: flex; flex-direction: column; gap: 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, black 26px, black calc(100% - 12px), transparent);
  mask-image: linear-gradient(180deg, transparent, black 26px, black calc(100% - 12px), transparent);
}
.msg { display: flex; flex-direction: column; gap: 8px; }
.msg-id { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; }
.msg-user .msg-id { color: var(--text-secondary); }
.msg-user .msg-id .sq { background: var(--text-primary); width: 6px; height: 6px; }
.msg-bot .msg-id { color: var(--accent-text); }
.msg-bot .msg-id .sq { width: 6px; height: 6px; }
.msg-body {
  font-size: 1.0625rem; line-height: 1.7; max-width: 640px;
  background: none; border: none; padding: 0;
}
.msg-user .msg-body { color: var(--text-secondary); }
.msg-bot .msg-body { color: var(--text-primary); }
.msg-body a { color: var(--accent-text); }
.thinking { display: inline-flex; gap: 5px; }
.thinking span { width: 7px; height: 7px; background: var(--accent); }
html.anim .thinking span { animation: think 1s steps(1) infinite; }
html.anim .thinking span:nth-child(2) { animation-delay: .18s; }
html.anim .thinking span:nth-child(3) { animation-delay: .36s; }
@keyframes think { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* Guided quick replies — live on the glass, no boxes around them. */
.guide-quick {
  display: flex; flex-wrap: wrap; gap: 8px;
  width: min(760px, 100%); align-self: center;
  padding: 4px 0 14px;
}
.guide-quick:empty { display: none; }
.guide-quick button {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 500;
  padding: 9px 15px; border-radius: var(--radius-pill); cursor: pointer;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  border: 1px solid var(--border-strong); color: var(--text-primary);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.guide-quick button:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.guide-quick button.qk-book {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.guide-quick button.qk-book .sq { background: var(--on-accent); }
.guide-quick button.qk-book:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.guide-quick button .sq { width: 6px; height: 6px; }
html.anim .guide-quick button { animation: qk-in .34s var(--ease-out) both; }
@keyframes qk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 8b. Booking: one scheduler behind every CTA ---------- */
.booking-overlay {
  position: fixed; inset: 0; z-index: 131;
  background: color-mix(in srgb, var(--surface-0) 52%, transparent);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6); overflow-y: auto;
}
.booking-overlay[hidden] { display: none; }
html.anim .booking-overlay { animation: overlay-in .3s var(--ease-out); }
.booking-panel {
  position: relative; width: min(920px, 100%);
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  padding: var(--space-8);
  max-height: calc(100svh - 48px); overflow-y: auto;
}
html.anim .booking-panel { animation: scene-in .4s var(--ease-out); }
.booking-panel .overlay-close { position: absolute; top: 14px; right: 14px; }
.bk-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr) 172px; gap: clamp(24px, 4vw, 48px); }

.bk-summary { display: flex; flex-direction: column; align-items: flex-start; }
.bk-host { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; color: var(--text-secondary); }
.bk-host-sq { width: 26px; height: 26px; background: var(--accent-bg); border: 1px solid var(--accent-border); display: inline-flex; }
.bk-host-sq::after { content: ""; width: 8px; height: 8px; background: var(--accent); margin: auto; }
.bk-eyebrow { margin-top: var(--space-6); font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.bk-summary h3 { margin-top: var(--space-2); font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1.25; }
.bk-purpose { margin-top: var(--space-3); font-size: .875rem; line-height: 1.6; color: var(--text-secondary); }
.bk-meta { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bk-meta li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: var(--text-secondary); }
.bk-meta .sq { width: 5px; height: 5px; }

.bk-cal-head { display: flex; align-items: center; justify-content: space-between; }
.bk-cal-head strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.bk-cal-nav { display: inline-flex; gap: 4px; }
.bk-cal-nav button {
  width: 32px; height: 32px; background: transparent; border: none; color: var(--text-secondary);
  border-radius: var(--radius-md); cursor: pointer; font-size: .9375rem;
}
.bk-cal-nav button:hover:not(:disabled) { color: var(--text-primary); background: var(--surface-1); }
.bk-cal-nav button:disabled { opacity: .3; cursor: default; }
.bk-weekdays, .bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-weekdays { margin-top: var(--space-4); }
.bk-weekdays span { text-align: center; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .08em; color: var(--text-muted); padding-block: 6px; }
.bk-days button, .bk-days i {
  position: relative; aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-variant-numeric: tabular-nums;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-md);
  color: var(--text-primary); cursor: pointer; font-style: normal;
}
.bk-days button:hover { background: var(--surface-1); }
.bk-days button:disabled { color: var(--text-muted); opacity: .45; cursor: default; background: none; }
.bk-days button.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--accent); }
.bk-days button.sel { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-text); font-weight: 500; }

.bk-times-head { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.bk-slots { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 8px; max-height: 316px; overflow-y: auto; padding-right: 4px; }
.bk-slots button {
  height: 40px; font-family: var(--font-mono); font-size: .8125rem;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  color: var(--text-primary); cursor: pointer;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.bk-slots button:hover { border-color: var(--accent-border); }
.bk-slots button.sel { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-text); }
.bk-slots .bk-empty { font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); }

.bk-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  border-top: 1px solid var(--border); margin-top: var(--space-8); padding-top: var(--space-6); flex-wrap: wrap;
}
.bk-choice { font-size: .875rem; color: var(--text-secondary); }
.bk-choice.ready { color: var(--text-primary); font-weight: 500; }

.bk-done { text-align: center; padding-block: var(--space-12); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.bk-done .sq { width: 10px; height: 10px; }
.bk-done h3 { font-size: 1.75rem; letter-spacing: -0.015em; }
.bk-done p { color: var(--text-primary); max-width: 420px; }
.bk-done .bk-done-note { color: var(--text-secondary); font-size: .875rem; }
.bk-done .btn { margin-top: var(--space-4); }

@media (max-width: 900px) {
  .bk-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .bk-slots { flex-direction: row; flex-wrap: wrap; max-height: none; }
  .bk-slots button { flex: 1 1 88px; }
  .booking-panel { padding: var(--space-6); padding-top: var(--space-12); }
}

/* ---------- 8d. Contact: a form and our details ---------- */
.contact-overlay {
  position: fixed; inset: 0; z-index: 131;
  background: color-mix(in srgb, var(--surface-0) 52%, transparent);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6); overflow-y: auto;
}
.contact-overlay[hidden] { display: none; }
html.anim .contact-overlay { animation: overlay-in .3s var(--ease-out); }
.contact-panel {
  position: relative; width: min(880px, 100%);
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  padding: var(--space-8);
  max-height: calc(100svh - 48px); overflow-y: auto;
}
html.anim .contact-panel { animation: scene-in .4s var(--ease-out); }
.contact-panel .overlay-close { position: absolute; top: 14px; right: 14px; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 56px); }

.ct-details { display: flex; flex-direction: column; align-items: flex-start; }
.ct-details h3 { margin-top: var(--space-2); font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.2; }
.ct-lede { margin-top: var(--space-3); font-size: .9375rem; line-height: 1.6; color: var(--text-secondary); }
.ct-meta { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ct-meta li { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--text-secondary); }
.ct-meta .sq { width: 5px; height: 5px; }
.ct-meta a { color: var(--accent-text); text-decoration: none; }
.ct-meta a:hover { text-decoration: underline; }
.ct-switch { background: none; border: none; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; }
.ct-switch:hover { text-decoration: underline; }

.ct-form { display: flex; flex-direction: column; gap: var(--space-4); }
.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-field label { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; color: var(--text-secondary); }
.ct-field input, .ct-field select, .ct-field textarea {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-field); color: var(--text-primary);
  font-family: var(--font-sans); font-size: .9375rem; padding: 11px 14px;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.ct-field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: var(--text-muted); }
.ct-field input:focus-visible, .ct-field select:focus-visible, .ct-field textarea:focus-visible {
  outline: none; border-color: var(--accent-border); box-shadow: 0 0 0 2px var(--focus-ring);
}
.ct-field.invalid input, .ct-field.invalid textarea, .ct-field.invalid select { border-color: var(--danger); }
.ct-error { color: var(--danger); font-size: .8125rem; margin: -4px 0 0; }
.ct-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-2); }
.ct-note { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .04em; color: var(--text-muted); }

.ct-done { text-align: center; padding-block: var(--space-12); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.ct-done .sq { width: 10px; height: 10px; }
.ct-done h3 { font-size: 1.75rem; letter-spacing: -0.015em; }
.ct-done p { color: var(--text-primary); max-width: 440px; }
.ct-done .bk-done-note { color: var(--text-secondary); font-size: .875rem; }
.ct-done .bk-done-note a { color: var(--accent-text); }
.ct-done .btn { margin-top: var(--space-4); }

@media (max-width: 760px) {
  .ct-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .contact-panel { padding: var(--space-6); padding-top: var(--space-12); }
}

/* ---------- 8c. Widescreen composition ----------
   Desktop is art-directed, not a scaled-up phone: side-aligned
   scenes share the frame with the particle choreography (which
   shifts to the opposite side in main.js), the guide becomes one
   horizontal band, and the conversation column breathes. */
@media (min-width: 1024px) {
  .scene-copy[data-align="left"], .scene-copy[data-align="right"] {
    justify-content: center; text-align: left;
  }
  .scene-copy[data-align="left"] { align-items: flex-start; padding-left: clamp(56px, 9vw, 160px); padding-right: 52%; }
  .scene-copy[data-align="right"] { align-items: flex-start; padding-left: 54%; padding-right: clamp(56px, 7vw, 140px); }
  .scene-copy[data-align] h2 { font-size: clamp(1.875rem, 3.1vw, 3rem); max-width: 560px; }
  .scene-copy[data-align] .sub { max-width: 520px; }
  .scene-copy[data-align="left"]::before { left: 30%; width: min(760px, 58vw); }
  .scene-copy[data-align="right"]::before { left: 72%; width: min(760px, 58vw); }

  .dock { flex-direction: row; justify-content: center; align-items: center; gap: 20px; padding-bottom: 20px; }
  .dock-form { flex: 0 1 620px; }
  .dock-chips { flex-wrap: nowrap; }

  .guide-scene { width: min(880px, 100%); }
  .overlay-form { width: min(760px, 100%); align-self: center; }
  .guide-overlay-head { width: min(760px, 100%); align-self: center; }
  .guide-thread { width: min(760px, 100%); align-self: center; }
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 640px) {
  .eyebrow .brand-prefix { display: none; }
  .scene-copy h2 { font-size: clamp(1.75rem, 8.6vw, 2.5rem); }
  .scene-copy h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .scene-copy .cta-row .btn-lg { width: 100%; }
  .scene-index { display: none; }
  .phases { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  /* Mobile: the guide collapses to a pill; expanded it stays minimal. */
  .dock { padding-bottom: 12px; }
  .dock-send { font-size: .875rem; padding-inline: 14px; }
  .dock-chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; justify-content: flex-start; scrollbar-width: none; }
  .dock-chips::-webkit-scrollbar { display: none; }
  .msg-body { font-size: 1rem; }
  .booking-panel { max-height: calc(100svh - 24px); }
}

/* ---------- 10. Reduced motion ----------
   No .anim: the film collapses into a sequence of full-screen
   static frames (canvas paints one composed frame per scene copy),
   nothing pinned, nothing animated. */
html:not(.anim) .film { height: auto; }
html:not(.anim) .stage { position: static; height: auto; overflow: visible; }
html:not(.anim) #world { display: none; }
html:not(.anim) .copy-layer { position: static; }
html:not(.anim) .scene-copy {
  position: static; opacity: 1; visibility: visible;
  min-height: 60svh; pointer-events: auto;
}
html:not(.anim) .scene-index, html:not(.anim) .scroll-cue { display: none; }
html:not(.anim) .media-layer { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
