/* ===========================================================
 * v5 — alive city behind, busy office in front,
 *      readable copy panel, no floor outlines.
 * =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper:      #0d2340;
  --paper-2:    #081a33;
  --paper-deep: #050f24;
  --ink:        #f3f6fc;
  --ink-dim:    rgba(243, 246, 252, 0.78);
  --ink-mute:   rgba(243, 246, 252, 0.46);
  --amber:      #f3b868;
  --amber-soft: #f7c98a;
  --amber-glow: rgba(243, 184, 104, 0.65);
  --live:       #4ade80;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  /* Subtle grain overlay handled in stage::before */
}

/* When the scene panel is open, lock the page so the only scroll
   target is the panel itself. overscroll-behavior on the panel
   stops scroll-chaining back to the body when the panel reaches
   its top or bottom. */
html.scene-open,
html.scene-open body {
  overflow: hidden;
  height: 100%;
}
.scene-panel { overscroll-behavior: contain; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }

/* ===========================================================
 * TOP NAV
 * =========================================================== */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  background: linear-gradient(180deg, rgba(5, 15, 36, 0.78) 0%, rgba(5, 15, 36, 0) 100%);
}
.topnav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.topnav__mark { color: var(--amber); font-size: 1.1em; }
.topnav__dot { color: var(--amber); }
.topnav__links { display: inline-flex; gap: 28px; align-items: center; font-size: 14px; }
.topnav__links a { color: var(--ink-dim); transition: color 200ms; }
.topnav__links a:hover { color: var(--ink); }
.topnav__cta {
  border: 1px solid var(--amber);
  color: var(--amber) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: all 200ms;
}
.topnav__cta:hover { background: var(--amber); color: var(--paper) !important; }

.topnav__lang { font-weight: 600; padding: 4px 10px; border-radius: 999px; opacity: .55; transition: opacity .15s; letter-spacing: .04em; font-size: 12px; }
.topnav__lang:hover { opacity: 1; color: var(--ink); }
.topnav__lang--active { opacity: 1; background: rgba(255,255,255,.08); cursor: default; }
.topnav__lang + .topnav__lang { margin-left: -16px; }

/* ===========================================================
 * EXPERIENCE — 700vh sticky
 * =========================================================== */
.experience {
  position: relative;
  width: 100%;
  height: 800vh;        /* 8 chapters: hero, 4 floors, how, trust, cta */
  height: 800svh;
  background: var(--paper-deep);
}
.stage {
  position: sticky; top: 0;
  width: 100%; height: 100vh; height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%, var(--paper) 0%, var(--paper-deep) 90%);
}

/* ===========================================================
 * BACKGROUND SKY — cityscape, clouds, stars, bird
 * =========================================================== */
.bg-sky {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* ----- cityscape (PNG layers, dialed way down)
 * Sit BEHIND the building, low in the viewport, only rooftops peek
 * above the street horizon. Top of each PNG is masked so they fade
 * into the night sky and never compete with the building. */
.city-png {
  position: absolute;
  width: 200%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
          mask-image: linear-gradient(to top, #000 55%, transparent 100%);
}
.city-png--far {
  bottom: 0;
  left: -50%;
  max-height: 26vh;
  opacity: 0.16;
  filter: brightness(0.55) blur(0.6px);
  animation: city-drift 260s linear infinite;
}
.city-png--mid {
  bottom: 0;
  left: -50%;
  max-height: 28vh;
  opacity: 0.20;
  filter: brightness(0.65);
  animation: city-drift 160s linear infinite reverse;
}
.city-png--near {
  bottom: 0;
  left: -50%;
  max-height: 30vh;
  opacity: 0.28;
  filter: brightness(0.78);
  animation: city-drift 100s linear infinite;
}
@keyframes city-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(6%); }
}

/* ----- clouds ----- */
.cloud {
  position: absolute;
  background: rgba(13, 35, 64, 0.5);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.cloud--1 { top: 12%; left: -10%; width: 280px; height: 80px; animation: cloud-drift 90s linear infinite; }
.cloud--2 { top: 26%; left: -20%; width: 380px; height: 100px; animation: cloud-drift 130s linear infinite -40s; opacity: 0.7; }
.cloud--3 { top: 8%;  left: -15%; width: 220px; height: 60px;  animation: cloud-drift 110s linear infinite -70s; opacity: 0.55; }
@keyframes cloud-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(120vw); }
}

/* ----- birds (two paths, different cycles) ----- */
.bird {
  position: absolute;
  width: 28px; height: 14px;
  color: var(--amber);
  opacity: 0.75;
}
.bird--1 {
  top: 18%; left: -60px;
  animation: bird-fly-1 26s linear infinite;
}
.bird--2 {
  top: 11%; left: -60px;
  width: 22px; height: 11px;
  opacity: 0.55;
  animation: bird-fly-2 38s linear infinite -12s;
}
.bird__wings {
  animation: bird-flap 0.42s ease-in-out infinite;
  transform-origin: 20px 12px;
}
@keyframes bird-fly-1 {
  0%   { transform: translate(0, 0); opacity: 0; }
  5%   { opacity: 0.75; }
  50%  { transform: translate(60vw, -20px); }
  95%  { opacity: 0.75; }
  100% { transform: translate(120vw, -8px); opacity: 0; }
}
@keyframes bird-fly-2 {
  0%   { transform: translate(0, 0); opacity: 0; }
  6%   { opacity: 0.55; }
  50%  { transform: translate(50vw, 14px); }
  94%  { opacity: 0.55; }
  100% { transform: translate(110vw, -4px); opacity: 0; }
}
@keyframes bird-flap {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.4); }
}

/* ----- stars (top portion, denser) ----- */
.star {
  position: absolute;
  top: var(--y); left: var(--x);
  width: 1.5px; height: 1.5px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0.4;
  animation: star-blink 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  box-shadow: 0 0 3px rgba(243, 246, 252, 0.5);
}
.star--bright {
  width: 2.5px; height: 2.5px;
  background: var(--amber-soft);
  box-shadow: 0 0 6px rgba(247, 201, 138, 0.7);
}
@keyframes star-blink {
  0%, 100% { opacity: 0.22; }
  50%      { opacity: 0.7; }
}

/* ===========================================================
 * BUILDING — full-bleed, centered, slightly smaller so the city
 * shows through.
 * =========================================================== */
.building-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.building {
  width: min(92vmin, 92svh);
  height: min(92vmin, 92svh);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}

/* ===========================================================
 * FLOOR VIDEO — boxed inside the SVG via foreignObject, so it
 * tweens with the building's viewBox. Currently only Floor 02
 * has a video; src is a subtle placeholder loop until we wire
 * a real Seedance clip.
 * =========================================================== */
/* v12 lamp overlay — promoted to its own GPU layer so the browser
   stops re-rasterizing it every frame during viewBox tweens. That
   was the main "glitching" source: scrolling lerped the SVG viewBox
   at 14%/frame and each frame triggered a fresh raster of the
   foreignObject HTML subtree. */
.floor-lamp,
.floor-lamp__frame,
.floor-lamp__player {
  /* hint: keep on GPU, don't repaint on every transform tween */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.floor-lamp__frame {
  width: 100%; height: 100%;
  overflow: hidden;
}
.floor-lamp__player {
  width: 100%; height: 100%;
  object-fit: fill;
  display: block;
}

/* ===========================================================
 * BUSY — per-floor activity pulses. Always animated, dim.
 * Brighter when floor is the active chapter.
 * =========================================================== */
.busy { mix-blend-mode: screen; }
.busy__floor { opacity: 0.5; transition: opacity 600ms ease; }
.stage[data-active-floor="4"] .busy__floor[data-floor="4"],
.stage[data-active-floor="3"] .busy__floor[data-floor="3"],
.stage[data-active-floor="2"] .busy__floor[data-floor="2"],
.stage[data-active-floor="1"] .busy__floor[data-floor="1"] {
  opacity: 1;
}

.pulse {
  fill: var(--amber);
  pointer-events: none;
  transform-origin: center;
  animation: pulse-soft 3.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.0; }
  40%      { opacity: 0.7; }
  60%      { opacity: 0.7; }
}
.pulse--lamp {
  animation: pulse-lamp 5s ease-in-out infinite;
  fill: var(--amber-soft);
  filter: blur(2px);
}
@keyframes pulse-lamp {
  0%, 100% { opacity: 0.55; }
  47%      { opacity: 0.85; }
  50%      { opacity: 0.30; }
  53%      { opacity: 0.85; }
}
.pulse--ring {
  animation: pulse-ring 2.6s ease-out infinite;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.4;
  transform-box: fill-box;
}
@keyframes pulse-ring {
  0%   { opacity: 0.85; transform: scale(0.4); }
  80%  { opacity: 0; transform: scale(2.2); }
  100% { opacity: 0; transform: scale(2.4); }
}
.pulse--clack {
  animation: pulse-clack 0.9s ease-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes pulse-clack {
  0%, 100% { opacity: 0; }
  10%      { opacity: 0.9; }
  40%      { opacity: 0; }
}
.steam {
  fill: var(--ink);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: steam-rise 4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes steam-rise {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-22px) scale(1.6); }
}
.penstroke, .ledgerline {
  stroke: var(--amber);
  stroke-width: 1.4;
  stroke-linecap: round;
  fill: none;
  opacity: 0.85;
  animation: stroke-draw 6s ease-in-out infinite;
}
.penstroke { stroke-dasharray: 14; }
.ledgerline { stroke-dasharray: 90; }
@keyframes stroke-draw {
  0%   { stroke-dashoffset: 90; opacity: 0; }
  20%  { opacity: 0.9; }
  60%  { stroke-dashoffset: 0;  opacity: 0.6; }
  80%  { stroke-dashoffset: 0;  opacity: 0; }
  100% { stroke-dashoffset: 90; opacity: 0; }
}
.penstroke[data-floor="4"] {
  animation-name: pen-line-4;
}
@keyframes pen-line-4 {
  0%, 100% { x2: 270; opacity: 0; }
  20%      { opacity: 0.9; }
  60%      { x2: 380; opacity: 0.6; }
  80%      { opacity: 0; }
}
.ledgerline[data-floor="2"] {
  animation: ledger-line 5s ease-in-out infinite;
}
@keyframes ledger-line {
  0%   { x2: 320; opacity: 0; }
  18%  { opacity: 0.9; }
  60%  { x2: 415; opacity: 0.5; }
  90%  { opacity: 0; }
  100% { x2: 320; opacity: 0; }
}

/* ===========================================================
 * HOTSPOTS — invisible until the floor is active and you hover.
 * No outline on rest; just a soft amber glow on hover.
 * =========================================================== */
.hotspot {
  fill: rgba(243, 184, 104, 0);
  pointer-events: none;
  transition: fill 220ms ease, filter 220ms ease;
  cursor: pointer;
}
.stage[data-active-floor="4"] .hotspots g[data-floor="4"] .hotspot,
.stage[data-active-floor="3"] .hotspots g[data-floor="3"] .hotspot,
.stage[data-active-floor="2"] .hotspots g[data-floor="2"] .hotspot,
.stage[data-active-floor="1"] .hotspots g[data-floor="1"] .hotspot {
  pointer-events: auto;
}
.hotspot:hover {
  fill: rgba(243, 184, 104, 0.22);
  filter: drop-shadow(0 0 8px rgba(243, 184, 104, 0.55));
}

/* ===========================================================
 * COPY — slides into a frosted dark panel for readability
 * =========================================================== */
.copy {
  position: absolute;
  left: clamp(18px, 4.5vw, 64px);
  bottom: clamp(36px, 7vh, 76px);
  width: min(46vw, 460px);
  z-index: 11;
  pointer-events: none;
}
.layer {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.layer[data-active] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.layer__panel {
  background: rgba(5, 15, 36, 0.74);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  padding: 24px 28px;
  border-radius: 6px;
  border-left: 2px solid var(--amber);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.eyebrow--amber { color: var(--amber); }
.eyebrow--live  {
  color: var(--live);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(74, 222, 128, 0.5); }
  50%      { box-shadow: 0 0 14px rgba(74, 222, 128, 0.9); }
}

.headline,
.name {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.headline { font-size: clamp(1.9rem, 3.4vw + 0.4rem, 3.4rem); }
.headline--sm { font-size: clamp(1.5rem, 2.4vw + 0.4rem, 2.4rem); }
.headline--cta { font-size: clamp(1.7rem, 3vw + 0.4rem, 2.8rem); }
.name { font-size: clamp(1.8rem, 3.2vw + 0.4rem, 3rem); }

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw + 0.4rem, 1.3rem);
  color: var(--amber);
  line-height: 1.4;
  margin-bottom: 14px;
}

.sub, .body, .cta-sub, .cta-fineprint {
  font-size: 15.5px;
  font-weight: 450;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 12px;
  letter-spacing: 0.005em;
}
.cta-sub { font-size: 16px; margin-bottom: 22px; }
.cta-fineprint { font-size: 12.5px; color: var(--ink-mute); margin-top: 14px; margin-bottom: 0; font-weight: 400; }

.hover-hint {
  margin-top: 6px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.85;
}

.hint {
  margin-top: 18px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  animation: hint-pulse 2.4s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

.trust-list {
  display: grid;
  gap: 10px;
}
.trust-list li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  padding-left: 14px;
  border-left: 1px solid rgba(243, 184, 104, 0.4);
}
.trust-list li strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 2px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--amber);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--amber-soft);
  box-shadow: 0 0 24px rgba(243, 184, 104, 0.5);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: rgba(243, 246, 252, 0.4);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ===========================================================
 * RAIL
 * =========================================================== */
.rail {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 14;
  display: flex; flex-direction: column; gap: 14px;
}
.rail li {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--ink-mute);
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rail li span {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  opacity: 0;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.rail li[data-active] {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(243, 184, 104, 0.6);
}
.rail li[data-active] span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ===========================================================
 * SCENE PANEL
 * =========================================================== */
.scene-panel__backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 15, 36, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
  z-index: 90;
}
.scene-panel__backdrop[data-open] { opacity: 1; pointer-events: auto; }

.scene-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(720px, 96vw);             /* widened from 560 */
  height: 100vh; height: 100svh;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-left: 1px solid rgba(243, 184, 104, 0.18);
  box-shadow: -16px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
  overflow-y: auto;
}
@media (max-width: 1024px) {
  .scene-panel { width: min(580px, 92vw); }   /* tablet */
}
.scene-panel[data-open] { transform: translateX(0); }
.scene-panel__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  font-size: 22px;
  color: var(--ink-dim);
  border-radius: 50%;
  transition: all 200ms;
}
.scene-panel__close:hover { color: var(--ink); background: rgba(255,255,255,0.06); }

.scene-panel__inner {
  padding: clamp(28px, 4vw, 56px);
  padding-top: clamp(48px, 6vw, 70px);
}
.scene-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.scene-panel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw + 0.4rem, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.scene-panel__voice {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--amber);
  border-left: 2px solid var(--amber);
  padding-left: 18px;
  margin-bottom: 24px;
}
.scene-panel__body {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.scene-panel__body p { margin-bottom: 12px; }
.scene-panel__body ul { margin: 12px 0 12px 18px; }
.scene-panel__body li {
  list-style: disc;
  margin-bottom: 6px;
  color: var(--ink-dim);
}
.scene-panel__body strong { color: var(--ink); font-weight: 600; }
.scene-panel__cta {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 184, 104, 0.18);
}

/* ===========================================================
 * SCENE PANEL — section heading + body (v18 narrative shape)
 * =========================================================== */
.scene-panel__hook {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(243, 184, 104, 0.22);
}
.scene-panel__hook p { margin: 0; }
.scene-panel__section {
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.scene-panel__section h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
  font-weight: 500;
}
.scene-panel__section ul,
.scene-panel__section ol {
  margin: 0 0 14px 0;
  padding: 0;
  list-style: none;
}
.scene-panel__section .channels li {
  padding: 4px 0;
  color: var(--ink-dim);
  font-size: 13px;
}
.scene-panel__section .process {
  counter-reset: step;
}
.scene-panel__section .process li {
  counter-increment: step;
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--ink-dim);
}
.scene-panel__section .process li::before {
  content: counter(step);
  position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(243, 184, 104, 0.15);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  display: grid; place-items: center;
}
.scene-panel__section code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(243, 184, 104, 0.1);
  color: var(--amber);
  padding: 1px 6px;
  border-radius: 3px;
}
.scene-panel__section strong { color: var(--ink); font-weight: 600; }

/* ===========================================================
 * MOCKS — inline fake artifacts. No screenshots, all HTML.
 * =========================================================== */

/* Email card — like a Gmail / Apple Mail preview */
.mock-email {
  background: #fbf7ee;
  color: #2a2114;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 10px 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.mock-email__from {
  color: #806748;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.mock-email__subject {
  font-weight: 600;
  color: #1d1606;
  margin-bottom: 6px;
}
.mock-email__body {
  color: #5a4a32;
  font-size: 12px;
  line-height: 1.5;
}

/* Chat bubble — WhatsApp-ish */
.mock-chat {
  margin: 10px 0;
  font-size: 12.5px;
  line-height: 1.45;
}
.mock-chat__bubble {
  background: #f3b868;
  color: #1c1407;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 2px;
  margin-bottom: 4px;
  max-width: 88%;
  font-size: 12.5px;
}
.mock-chat__bubble--in {
  background: #e6e6e6;
  color: #222;
  margin-left: auto;
  border-radius: 12px 12px 2px 12px;
}
.mock-chat__bubble--out {
  /* default amber outbound */
}
.mock-chat__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Inbound call card */
.mock-call {
  background: rgba(13, 35, 64, 0.6);
  border: 1px solid rgba(243, 184, 104, 0.25);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 12.5px;
}
.mock-call__caller {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}
.mock-call__caller::before {
  content: "📞 ";
}
.mock-call__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.mock-call__body {
  color: var(--ink-dim);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.5;
}

/* Document card */
.mock-doc {
  background: rgba(243, 246, 252, 0.04);
  border: 1px solid rgba(243, 246, 252, 0.1);
  border-radius: 4px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.mock-doc__title {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}
.mock-doc__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.mock-doc__body {
  color: var(--ink-dim);
  font-size: 12px;
  line-height: 1.55;
}

/* CSV-style table — light SaaS-spreadsheet skin (no brand tint).
   Reads as a screenshot of a real bookkeeping table. */
.mock-csv {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, 'Segoe UI', Inter, system-ui, sans-serif;
  font-size: 11.5px;
  color: #1f2630;
  margin: 10px 0 4px;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.mock-csv thead th {
  background: #f6f7fb;
  color: #5b6975;
  font-weight: 600;
  text-align: left;
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid #e6e9ef;
}
.mock-csv tbody td {
  padding: 7px 10px;
  border-top: 1px solid #f0f1f4;
  font-variant-numeric: tabular-nums;
}
.mock-csv tbody tr:hover { background: #f9fafc; }
.mock-csv a {
  color: #1f8efb;
  text-decoration: underline;
  text-decoration-color: rgba(31, 142, 251, 0.4);
}

/* Redline diff table */
.mock-redline {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  color: var(--ink-dim);
  margin: 8px 0;
  background: rgba(8, 26, 51, 0.6);
  border-radius: 4px;
  overflow: hidden;
  table-layout: fixed;
}
.mock-redline th {
  background: rgba(243, 184, 104, 0.08);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 6px 10px;
  font-weight: 500;
}
.mock-redline td {
  padding: 8px 10px;
  border-top: 1px solid rgba(243, 246, 252, 0.06);
  vertical-align: top;
  line-height: 1.45;
}
.mock-redline td:first-child {
  background: rgba(255, 80, 80, 0.05);
  border-right: 1px dashed rgba(243, 184, 104, 0.18);
}
.mock-redline td:last-child {
  background: rgba(80, 255, 130, 0.05);
}

/* Mini "dashboard" widget */
.mock-dash {
  font-size: 12px;
  color: var(--ink-dim);
  padding: 14px 16px;
  background: var(--paper);
}
.mock-dash h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin: 0 0 10px;
}
.mock-dash__kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.mock-dash__kpi {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  background: rgba(243, 184, 104, 0.06);
  border-left: 2px solid var(--amber);
  border-radius: 2px;
}
.mock-dash__kpi .kpi-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.mock-dash__kpi .kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.mock-dash__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
  align-items: baseline;
}
.mock-dash__row + .mock-dash__row {
  border-top: 1px solid rgba(243, 246, 252, 0.06);
}
.mock-dash__row--alert .mock-dash__count {
  color: #ff6b6b;
}
.mock-dash__stage {
  color: var(--ink-dim);
}
.mock-dash__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
}
.mock-dash__val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-align: right;
}
.mock-dash__caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(243, 184, 104, 0.18);
  line-height: 1.5;
}
.mock-dash .bar-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 0;
  align-items: center;
}
.mock-dash .bar-row span:first-child { color: var(--ink-dim); }
.mock-dash .bar-row span:last-child { color: var(--amber); text-align: right; }
.mock-dash .bar {
  height: 6px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-soft) 100%);
  width: var(--w, 50%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(243, 184, 104, 0.3);
}

/* Browser frame around the dashboard widget */
.browser-frame {
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4),
              inset 0 0 0 1px rgba(243, 246, 252, 0.06);
}
.browser-frame__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(8, 26, 51, 0.85);
  border-bottom: 1px solid rgba(243, 246, 252, 0.08);
}
.browser-frame__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.browser-frame__dot--red { background: #ff5f57; }
.browser-frame__dot--amb { background: #ffbd2e; }
.browser-frame__dot--grn { background: #27c93f; }
.browser-frame__url {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.browser-frame__body {
  background: var(--paper);
}

/* ===========================================================
 * CTA chapter — inline scope form + Calendly
 * =========================================================== */
.layer__panel--cta {
  /* The CTA panel needs more room than the regular floor copy */
  max-width: 92vw;
  width: clamp(480px, 70vw, 720px);
  max-height: 86svh;
  overflow-y: auto;
}
.cta-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.cta-form__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-top: 6px;
}
.cta-form__opt {
  font-weight: 400;
  color: var(--ink-mute);
}
.cta-form__textarea,
.cta-form__input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: rgba(5, 15, 36, 0.6);
  border: 1px solid rgba(243, 246, 252, 0.18);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  resize: vertical;
}
.cta-form__textarea:focus,
.cta-form__input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(5, 15, 36, 0.85);
}
.cta-form__submit {
  margin-top: 8px;
  align-self: flex-start;
}
.cta-or {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 22px 0 14px;
  position: relative;
}
.cta-or span {
  background: rgba(5, 15, 36, 0.74);
  padding: 0 12px;
}
.cta-or::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px dashed rgba(243, 184, 104, 0.22);
  z-index: -1;
}
.calendly-inline-widget {
  border-radius: 8px;
  overflow: hidden;
}

/* ===========================================================
 * v20 — APP-RECOGNIZABLE MOCK SKINS
 * Telegram-style chat. Pipedrive-style pipeline. Monday-style table.
 * Deliberately NOT brand-tinted — keep them looking like the real apps.
 * =========================================================== */

/* ----- Telegram-style chat ----- */
.mock-tg {
  margin: 10px 0;
  background: #ecf0f3;
  border-radius: 8px;
  padding: 10px 8px;
  font-family: 'Helvetica Neue', system-ui, sans-serif;
  font-size: 13px;
}
.mock-tg__chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-tg__msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}
.mock-tg__msg--in  { align-self: flex-start; }
.mock-tg__msg--out { align-self: flex-end; }
.mock-tg__sender {
  font-size: 11.5px;
  font-weight: 600;
  color: #0088cc;
  padding: 0 12px;
  margin-bottom: 1px;
}
.mock-tg__msg--out .mock-tg__sender { color: #2b8d57; text-align: right; }
.mock-tg__body {
  background: #ffffff;
  color: #1c1c1c;
  padding: 7px 11px;
  border-radius: 12px 12px 12px 2px;
  line-height: 1.42;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  font-size: 13px;
}
.mock-tg__msg--out .mock-tg__body {
  background: #effdde;        /* Telegram outgoing green */
  border-radius: 12px 12px 2px 12px;
}
.mock-tg__time {
  font-size: 10.5px;
  color: #8d96a0;
  padding: 1px 12px 0;
  text-align: right;
}
.mock-tg__msg--in .mock-tg__time { text-align: left; }

/* ----- Pipedrive-style pipeline columns ----- */
.mock-pipe {
  background: #f5f7fa;
  color: #1f2630;
  padding: 14px;
  border-radius: 4px;
  font-family: -apple-system, 'Segoe UI', Inter, system-ui, sans-serif;
  font-size: 12.5px;
}
.mock-pipe h5 {
  font-size: 12px;
  font-weight: 600;
  color: #5b6975;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mock-pipe__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.mock-pipe__col {
  background: #fff;
  border-radius: 4px;
  padding: 8px;
  border: 1px solid #e5eaef;
}
.mock-pipe__head {
  font-size: 11px;
  font-weight: 700;
  color: #2b3640;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 0 8px;
  border-bottom: 1px solid #e8ecf1;
  margin-bottom: 6px;
}
.mock-pipe__card {
  background: #fafbfc;
  border-radius: 3px;
  padding: 7px 9px;
  margin-bottom: 5px;
  border-left: 3px solid #c1c8d0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #2c3743;
}
.mock-pipe__card strong {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 1px;
  color: #1a2531;
}
.mock-pipe__card span { color: #5b6975; font-size: 10.5px; }
.mock-pipe__card--new   { border-left-color: #1f8efb; background: #ecf5ff; }
.mock-pipe__card--draft { border-left-color: #f5a623; background: #fff7e6; }
.mock-pipe__card--moved { border-left-color: #4caf50; background: #ecf9ee; }
.mock-pipe__card--won   { border-left-color: #2bb573; background: #e8f7ee; }
.mock-pipe__card--stale { border-left-color: #ff9d3d; background: #fff4e6; }
.mock-pipe__card--lost  { border-left-color: #cf3c3c; background: #fbebeb; opacity: 0.78; }
.mock-pipe .mock-dash__bullets,
.mock-pipe .mock-dash__caption {
  color: #5b6975;
}
.mock-pipe .mock-dash__bullets li {
  list-style: disc;
  margin: 2px 0 2px 18px;
  padding: 2px 0;
}
.mock-pipe .mock-dash__caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #5b6975;
  border-top: 1px dashed #d0d6dd;
  margin-top: 10px;
  padding-top: 8px;
  line-height: 1.5;
}

/* ----- Monday-style table rows ----- */
.mock-monday {
  background: #fff;
  color: #323338;
  border-radius: 4px;
  padding: 8px 6px;
  font-family: -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 12px;
  border: 1px solid #e6e9ef;
}
.mock-monday__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.4fr 0.6fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #f0f1f4;
  line-height: 1.3;
}
.mock-monday__row--header {
  font-size: 10.5px;
  font-weight: 600;
  color: #676879;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f6f7fb;
  border-bottom: 1px solid #e6e9ef;
}
.mock-monday__name { color: #1c1f3b; font-weight: 500; }
.mock-monday__pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}
.mock-monday__pill--done  { background: #00c875; }
.mock-monday__pill--prog  { background: #fdab3d; }
.mock-monday__pill--wait  { background: #a25ddc; }
.mock-monday__pill--new   { background: #579bfc; }
.mock-monday__pill--alert { background: #e2445c; }
.mock-monday__date,
.mock-monday__val,
.mock-monday__assignee {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #5b6678;
}
.mock-monday__assignee {
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1f8efb;
  color: #fff;
  text-align: center;
  line-height: 22px;
  font-size: 10px;
  font-weight: 700;
  font-family: -apple-system, system-ui, sans-serif;
}

/* Form grid + multi-row */
.cta-form__row { display: grid; gap: 6px; }
.cta-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .cta-form__grid { grid-template-columns: 1fr; }
}

/* Submit-button disabled state during in-flight POST */
.cta-form__submit:disabled {
  opacity: 0.65;
  cursor: progress;
}

/* Inline error message — sits between submit button and fineprint */
.cta-form__error {
  background: rgba(207, 60, 60, 0.12);
  border: 1px solid rgba(207, 60, 60, 0.45);
  color: #f3a8a8;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

/* Success card — replaces the form on a successful submission */
.cta-form__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 22px;
  background: rgba(243, 184, 104, 0.08);
  border: 1px solid rgba(243, 184, 104, 0.45);
  border-radius: 10px;
  margin-top: 18px;
}
.cta-form__success-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--amber);
  color: var(--paper);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.cta-form__success h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.cta-form__success-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  margin: 0;
}
.cta-form__success-ref span { letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.cta-form__success-ref code {
  background: rgba(243, 184, 104, 0.12);
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

/* ===========================================================
 * v21 — .mock-app SaaS chrome frame
 * Wraps any in-panel dashboard. Top nav bar + light body so each
 * widget reads as a screenshot of a real tool — not a brand panel.
 * =========================================================== */
.mock-app {
  background: #f5f7fa;
  color: #1f2630;
  border-radius: 6px;
  overflow: hidden;
  margin: 4px 0;
  font-family: -apple-system, 'Segoe UI', Inter, system-ui, sans-serif;
  border: 1px solid #d8dee6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.mock-app__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: #1f2630;
  color: #fff;
}
.mock-app__brand {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.mock-app__nav {
  display: inline-flex;
  gap: 14px;
  flex: 1;
}
.mock-app__nav a {
  font-size: 11.5px;
  color: #9aa6b3;
  padding: 3px 6px;
  border-radius: 3px;
}
.mock-app__nav a.is-active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.mock-app__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f5a623;
  color: #1f2630;
  text-align: center;
  line-height: 22px;
  font-size: 10.5px;
  font-weight: 700;
}
.mock-app__body { padding: 12px; }
.mock-app__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  color: #5b6975;
  padding: 0 4px 8px;
}
.mock-app__title {
  font-weight: 600;
  color: #1f2630;
  font-size: 12.5px;
}
.mock-app__filters {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #8a96a3;
}
/* When .mock-pipe / .mock-monday lives inside .mock-app, drop their
   own outer styling so the SaaS frame is the visual container. */
.mock-app .mock-pipe,
.mock-app .mock-monday,
.mock-app .mock-dash {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  color: #1f2630;
}
.mock-app .mock-monday {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 3px;
}

/* Light-theme the .mock-dash when inside the SaaS frame so the Tax
   widget reads as real bookkeeping software, not a brand panel. */
.mock-app .mock-dash h5 {
  color: #1f2630;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}
.mock-app .mock-dash__kpi {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-left: 3px solid #1f8efb;
  border-radius: 4px;
  padding: 10px 12px;
}
.mock-app .mock-dash__kpi .kpi-num {
  color: #1f2630;
  font-family: var(--font-display);
  font-weight: 700;
}
.mock-app .mock-dash__kpi .kpi-label {
  color: #5b6975;
}
.mock-app .mock-dash__row {
  color: #2c3743;
  border-color: #e6e9ef !important;
  padding: 7px 6px;
}
.mock-app .mock-dash__row + .mock-dash__row {
  border-top: 1px solid #f0f1f4;
}
.mock-app .mock-dash__stage { color: #2c3743; }
.mock-app .mock-dash__count { color: #5b6975; }
.mock-app .mock-dash__val   { color: #1f2630; font-weight: 600; }
.mock-app .mock-dash__row--alert .mock-dash__count { color: #e2445c; }
.mock-app .mock-dash .bar-row {
  color: #2c3743;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f1f4;
}
.mock-app .mock-dash .bar-row span:first-child { color: #5b6975; }
.mock-app .mock-dash .bar-row span:last-child  { color: #1f8efb; font-weight: 600; }
.mock-app .mock-dash .bar {
  background: linear-gradient(90deg, #1f8efb 0%, #5fb1ff 100%);
  box-shadow: none;
  height: 6px;
}
.mock-app .mock-dash__caption {
  color: #5b6975;
  font-family: var(--font-mono);
  font-size: 10.5px;
  border-top: 1px dashed #d0d6dd;
  margin-top: 12px;
  padding-top: 10px;
}
.mock-app .mock-dash__caption code {
  background: #eef3f8;
  color: #1f8efb;
}

/* ===========================================================
 * v21 — Numbered scene-panel sections (auto-numbered)
 * =========================================================== */
.scene-panel__section {
  position: relative;
  counter-increment: section;
}
.scene-panel__inner {
  counter-reset: section;
}
.scene-panel__section h4 {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.scene-panel__section h4::before {
  content: counter(section, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

/* Step blurb — short explanation under the section title (used by step 04
   to explain what the custom-software box actually is). */
.scene-panel__step-blurb {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: -2px 0 12px;
  padding-left: 32px;     /* aligned with the h4 text after the 01/02 prefix */
  border-left: 1px dashed rgba(243, 184, 104, 0.18);
}

/* ===========================================================
 * v22 — Building click-hint overlay
 * Sits ON the building, near the active floor's hotspots — only
 * visible on floor chapters. Subtle pulse + bounce-arrow.
 * =========================================================== */
.building-hint {
  position: absolute;
  z-index: 12;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding: 8px 14px;
  border: 1px dashed rgba(243, 184, 104, 0.6);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(5, 15, 36, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms ease, top 600ms cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  animation: hint-bob 2.6s ease-in-out infinite;
}
/* When any floor is active, the SVG viewBox zooms so that floor
   fills the visible building area. So `top: 50%` lands on the
   actual room center regardless of which floor it is. */
.building-hint { transform: translate(-50%, -50%); }
.stage[data-active-floor] .building-hint {
  top: 50%;
  opacity: 1;
}
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-4px); }
}

/* Hide the legacy .hover-hint and .click-hint */
.hover-hint, .click-hint { display: none; }

/* ===========================================================
 * MOBILE
 * =========================================================== */
@media (max-width: 720px) {
  /* MOBILE LAYOUT — explicit 55/45 vertical split.
     Top 55svh: building anchored to top, fills viewport width.
     Bottom 45svh: copy panel locked at the bottom edge.
     No more wasted dead-space above the building, no parallax. */

  /* Stage gradient sits BEHIND the explicit split. */
  .stage {
    background:
      linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 60%, var(--paper-deep) 100%);
  }

  /* Building anchored to TOP, full bleed horizontally. */
  .building-wrap {
    inset: 0;
    align-items: start;            /* not center */
    place-items: start center;
    padding-top: 56px;             /* below the topnav */
  }
  .building {
    width: 100vw;
    height: auto;
    max-height: 55svh;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
  }

  /* Copy area: bottom 42svh of viewport. Layers stay absolutely
     positioned (one per chapter, only [data-active] visible) but
     anchored to .copy's bottom inside this 42svh region. */
  .copy {
    left: 14px; right: 14px;
    width: auto;
    bottom: 14px;
    top: 58svh;                    /* hard top so children have height */
  }
  .layer {
    position: absolute;
    left: 0; right: 0;
    bottom: 48px;                  /* above the rail */
    width: 100%;
    transform: translateY(20px);
  }
  .layer[data-active] { transform: translateY(0); }
  .layer__panel {
    padding: 18px 20px;
    background: rgba(5, 15, 36, 0.92);
    border-radius: 10px;
  }
  .hover-hint, .hint { display: none; }   /* clutter on touch */

  /* Rail: bottom-center, horizontal */
  .rail {
    top: auto; bottom: 14px; right: 50%;
    transform: translateX(50%);
    flex-direction: row; gap: 10px;
  }
  .rail li span { display: none; }

  /* Drop ALL cityscape layers, clouds, second bird — too small to read. */
  .city-png, .cloud, .bird--2 { display: none; }
  /* Single first bird, much rarer */
  .bird--1 { animation-duration: 60s; opacity: 0.4; }
  /* Sparser stars */
  .star { transform: scale(0.8); }
  .star:nth-child(2n) { display: none; }

  /* Scene panel covers full screen on mobile */
  .scene-panel { width: 100vw; }
  .topnav__links a:not(.topnav__cta) { display: none; }
  .topnav__lang { display: none; }

  /* ----------------------------------------------------------------
     MOBILE FIXES — v25 (post-launch QA pass)
     ---------------------------------------------------------------- */

  /* (1) building-hint lands ON the copy panel on small viewports
     (because top:50% is 50% of the stage, not 50% of the building).
     Touch users tap, they don't need a "tap any spot" hint anyway. */
  .building-hint { display: none !important; }

  /* (2) Scene panel — tighter padding, bigger close target */
  .scene-panel__inner {
    padding: 24px 18px;
    padding-top: 56px;
  }
  .scene-panel__close {
    width: 44px; height: 44px;       /* WCAG touch target */
    font-size: 26px;
    top: 8px; right: 8px;
  }
  .scene-panel__title { font-size: 1.45rem; line-height: 1.12; }
  .scene-panel__voice { font-size: 1rem; padding-left: 14px; margin-bottom: 18px; }
  .scene-panel__hook { font-size: 14px; margin-bottom: 18px; padding-bottom: 14px; }
  .scene-panel__section { margin-bottom: 18px; font-size: 13px; }
  .scene-panel__section h4 {
    flex-wrap: wrap;                 /* allow long titles to wrap cleanly */
    line-height: 1.4;
    gap: 8px;
  }
  .scene-panel__step-blurb {
    padding-left: 0;                 /* drop the 32px indent on mobile */
    border-left: 0;
    font-size: 12.5px;
  }
  .scene-panel__cta { gap: 8px; padding-top: 16px; }
  .scene-panel__cta .btn { width: 100%; text-align: center; }

  /* (3) mock-csv (tax-ledger spreadsheet) — content was overflowing on
     mobile. Force a fixed table layout, shrink padding, allow wrap. */
  .mock-csv {
    font-size: 10px;
    table-layout: fixed;
    width: 100%;
  }
  .mock-csv thead th, .mock-csv tbody td {
    padding: 5px 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .mock-csv thead th { font-size: 9px; letter-spacing: 0.04em; }

  /* (4) mock-monday (rent roll / CRM table) — desktop's 5-column grid
     is unreadable on a 390px screen. Switch from grid to flex-wrap so
     each row reads as: name on top, then [pill, avatar, value, date]
     flowing inline below. */
  .mock-monday__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
    padding: 10px 8px;
    border-bottom: 1px solid #eef0f4;
  }
  .mock-monday__row--header { display: none; }   /* labels move inline */
  .mock-monday__name {
    flex: 1 1 100%;                  /* full row by itself */
    font-weight: 600;
    font-size: 12.5px;
    color: #1c1f3b;
    margin-bottom: 2px;
  }
  .mock-monday__pill {
    font-size: 10px; padding: 2px 10px;
    flex: 0 0 auto;                  /* shrink to content */
  }
  .mock-monday__date, .mock-monday__val {
    font-size: 11px;
    flex: 0 0 auto;
  }
  .mock-monday__assignee {
    width: 20px; height: 20px; line-height: 20px; font-size: 9px;
    flex: 0 0 auto;
  }

  /* (5) mock-app chrome — let the nav tabs scroll horizontally
     instead of crushing into each other. */
  .mock-app__chrome { gap: 10px; padding: 8px 10px; flex-wrap: nowrap; }
  .mock-app__brand { font-size: 12px; flex-shrink: 0; }
  .mock-app__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 2px 0;
    min-width: 0;
  }
  .mock-app__nav::-webkit-scrollbar { display: none; }
  .mock-app__nav a { font-size: 11px; flex-shrink: 0; padding: 3px 8px; }
  .mock-app__avatar { flex-shrink: 0; }
  .mock-app__body { padding: 10px; }
  .mock-app__toolbar { flex-wrap: wrap; gap: 4px; }

  /* (6) mock-pipe columns — desktop's 4-up grid wraps to 2x2 on mobile
     by default (auto-fit minmax(120px,1fr)). On small phones 2x2 makes
     each card painfully narrow. Fall back to a single column. */
  .mock-pipe__cols { grid-template-columns: 1fr; gap: 6px; }
  .mock-pipe__col { padding: 8px 10px; }
  .mock-pipe__head { font-size: 10.5px; padding: 4px 0 6px; }
  .mock-pipe__card { font-size: 12px; padding: 7px 9px; }

  /* (7) mock-tg / mock-call / mock-email — tighten; were already fine
     but a touch too much padding on small viewports. */
  .mock-tg__chat { padding: 10px; gap: 8px; }
  .mock-tg__msg { max-width: 88%; }
  .mock-tg__body { font-size: 12.5px; line-height: 1.45; }
  .mock-call { padding: 10px 12px; font-size: 12.5px; }
  .mock-email { padding: 10px 12px; font-size: 12.5px; }
  .mock-email__body { font-size: 12.5px; line-height: 1.55; }

  /* (8) mock-redline (lease comparison) — same overflow issue as csv.
     Fixed layout + word-break to keep long values inside cells. */
  .mock-redline { font-size: 10.5px; table-layout: fixed; width: 100%; }
  .mock-redline th, .mock-redline td {
    padding: 6px 7px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* (9) mock-dash KPI row — already flex; slightly tighter */
  .mock-dash__kpi-row { gap: 6px; }
  .mock-dash__kpi { padding: 8px; }
  .mock-dash__kpi .kpi-num { font-size: 18px; }
  .mock-dash__kpi .kpi-label { font-size: 9.5px; }

  /* (10) Layer copy panel — slightly more breathing room top/bot */
  .layer__panel { padding: 16px 18px; }
  .layer .name { font-size: 1.55rem; line-height: 1.1; }
  .layer .tagline { font-size: 1rem; line-height: 1.4; }
  .layer .body { font-size: 13.5px; line-height: 1.55; }

  /* (11) CTA form — already single-column at 720px; slightly more
     comfortable padding + bigger touch targets. */
  .cta-form__input, .cta-form__textarea {
    font-size: 16px;                 /* prevents iOS auto-zoom on focus */
    padding: 12px 14px;
  }
  .cta-form__submit { width: 100%; padding: 14px 16px; font-size: 15px; }

  /* (12) Trust list — keep readable */
  .trust-list li { font-size: 14px; line-height: 1.5; padding: 6px 0; }
}

/* Extra-narrow phones (≤390px) — extra typography compression. */
@media (max-width: 390px) {
  .scene-panel__title { font-size: 1.3rem; }
  .layer .name { font-size: 1.4rem; }
  .scene-panel__inner { padding: 22px 14px; padding-top: 52px; }
  .mock-app__nav { gap: 8px; }
}

/* ===========================================================
 * v25.1 — Mobile open-detail pills + Calendly quick-call
 * Each floor copy panel gets a row of named pills (one per
 * scene) so mobile users have a clear tap target instead of
 * having to find a 12px hotspot rect on the building.
 * =========================================================== */
.layer__scenes {
  display: none;                   /* desktop hides — uses hotspots */
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.scene-pill {
  font: 600 12.5px/1 var(--font-body);
  letter-spacing: 0.01em;
  color: var(--amber);
  background: rgba(243, 184, 104, 0.08);
  border: 1px solid rgba(243, 184, 104, 0.45);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
  -webkit-tap-highlight-color: transparent;
}
.scene-pill:hover,
.scene-pill:active {
  background: rgba(243, 184, 104, 0.18);
  transform: translateY(-1px);
}

/* Calendly "quick book" button at the top of the CTA card.
   Mobile-prominent because most visitors want to talk to a human
   before filling a 7-field form. */
.cta-quick-call {
  display: none;                   /* desktop: form is already easy */
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 14px 0 18px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--paper) !important;
  font: 700 14.5px/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(243, 184, 104, 0.25);
  transition: transform 150ms, box-shadow 150ms;
}
.cta-quick-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(243, 184, 104, 0.35);
}

/* Better wraps for two- and three-line headings. */
.layer .name,
.scene-panel__title,
.headline,
.headline--cta {
  text-wrap: balance;
}

/* Trust card CTA row — button pair at the bottom of the promise card so
   the explanation converts to action. */
.trust-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 184, 104, 0.18);
}
.trust-cta .btn { flex: 1 1 auto; text-align: center; }

/* ===========================================================
 * v25.2 — "How it works" 3-step strip
 * Lives in its own chapter between floor-1 and trust.
 * =========================================================== */
.layer__panel--how {
  max-width: 92vw;
  width: clamp(480px, 70vw, 760px);
  max-height: 86svh;
  overflow-y: auto;
}
.how-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.how-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(243, 184, 104, 0.05);
  border: 1px solid rgba(243, 184, 104, 0.18);
  border-radius: 8px;
}
.how-step__num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.02em;
  align-self: start;
}
.how-step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  grid-column: 2;
}
.how-step__body {
  grid-column: 2;
  margin: 0;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.55;
}
.how-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 184, 104, 0.18);
}
.how-cta .btn { flex: 1 1 auto; text-align: center; }
@media (max-width: 720px) {
  .layer__panel--how {
    width: auto;
    max-width: none;
    padding: 18px 18px 22px;
  }
  .how-steps { gap: 12px; margin-top: 16px; }
  .how-steps li {
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .how-step__num { font-size: 18px; }
  .how-step__title { font-size: 1.05rem; }
  .how-step__body { font-size: 13px; }
}

/* Mobile-only: surface the scene pills + Calendly button. */
@media (max-width: 720px) {
  .layer__scenes { display: flex; }
  .cta-quick-call { display: inline-flex; }

  /* CTA card needs more sane padding + fully-fluid width on small
     viewports so the form is easier to scan and fill. */
  .layer__panel--cta {
    width: auto;
    max-width: none;
    padding: 18px 18px 22px;
  }
  .cta-form { gap: 4px; }
  .cta-form__label { font-size: 12.5px; margin-top: 10px; }
  .cta-sub { font-size: 13.5px; line-height: 1.5; }
  .cta-fineprint { font-size: 12px; line-height: 1.45; }
  .cta-or { margin: 18px 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .penstroke, .ledgerline, .steam, .bird, .bird__wings,
  .city-png, .cloud, .star, .hint, .dot-live {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
  /* On reduced-motion, also pause floor video overlays */
  .floor-lamp__player { animation-play-state: paused; }
}
