/* ============================================================
   ReachMedia — one lead, from missed ring to review.
   Ink on paper. Mono for anything the dispatch log would say.
   ============================================================ */

:root {
  --paper: #fbfbfd;
  --ink: #1d1d1f;
  --mist: #6e6e73;
  --faint: #a1a1a6;
  --hairline: rgba(0, 0, 0, 0.1);
  --pulse: #0a5bff;
  --missed: #e8442e;
  --booked: #0f9d58;
  --night: #0a0a0c;
  --night-ink: #f5f5f7;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;

  --pad: clamp(24px, 6vw, 96px);
  --measure: 30em;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }

::selection { background: rgba(10, 91, 255, 0.18); }

/* ---------- type roles ---------- */

h1 {
  font-size: clamp(2.9rem, 8vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stamp, .row-tag, .beat-time, .stat-src, .nav-tel,
.calllog, .m.tag, .m.gap, cite, .footer-inner {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- reveal primitives ---------- */

.fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade.on { opacity: 1; transform: none; }
.fade[data-d="1"] { transition-delay: 0.1s; }
.fade[data-d="2"] { transition-delay: 0.2s; }
.fade[data-d="3"] { transition-delay: 0.3s; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.35s ease;
}
.nav.hidden { transform: translateY(-110%); }
.nav.solid {
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.wordmark span { font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-tel { color: var(--mist); }
.nav-tel:hover { color: var(--ink); }
.nav-book {
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  background: var(--pulse);
  border-radius: 980px;
  padding: 8px 18px;
  transition: opacity 0.2s ease;
}
.nav-book:hover { opacity: 0.85; }

/* ---------- CTA ---------- */

.cta {
  display: inline-block;
  font-size: 1.02rem;
  font-weight: 500;
  color: #fff;
  background: var(--pulse);
  border: none;
  border-radius: 980px;
  padding: 15px 32px;
  cursor: pointer;
  font-family: var(--sans);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cta:hover { opacity: 0.88; transform: scale(1.015); }
.quiet-link {
  font-size: 1.02rem;
  color: var(--pulse);
  font-weight: 450;
}
.quiet-link:hover { text-decoration: underline; }

/* ---------- 1 · hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 80px;
  max-width: 1280px;
  margin-inline: auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.stamp { color: var(--faint); margin-bottom: 34px; }
.hero h1 em { color: var(--faint); }
.hero-sub {
  margin-top: 38px;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--mist);
  max-width: var(--measure);
}
.hero-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- hero video ---------- */

.hero-video { display: flex; justify-content: flex-end; }
.video-shell {
  position: relative;
  width: 340px;
  max-width: 82vw;
  aspect-ratio: 834 / 1112;
  border-radius: 28px;
  overflow: clip;
  cursor: pointer;
  background: #e9e9eb;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 24px 70px rgba(29, 29, 31, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-shell:hover { transform: scale(1.012); }
.video-shell:focus-visible { outline: 2px solid var(--pulse); outline-offset: 4px; }
.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-pill {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 18px;
  white-space: nowrap;
  animation: pill-nudge 2.4s ease-in-out infinite;
  pointer-events: none;
}
.video-pill svg { width: 15px; height: 15px; }
@keyframes pill-nudge { 50% { transform: translateX(-50%) scale(1.05); } }
.sound-on .video-pill { display: none; }

.video-play {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(10, 10, 12, 0.28);
  color: #fff;
  pointer-events: none;
}
.video-play svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}
.is-paused .video-play { display: grid; }

.video-replay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 12px 24px;
  pointer-events: none;
}
.is-ended .video-replay { display: block; }
.is-ended .video-play { display: none; }

/* ---------- ticker ---------- */

.ticker {
  margin-top: 54px;
  overflow: clip;
  max-width: 620px;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: tick 36s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- generic scene cue ---------- */

.cue {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cue.on { opacity: 1; transform: none; }

/* ---------- scenes (pinned tracks) ---------- */

.scene { position: relative; }
.scene .pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  display: flex;
  align-items: center;
  justify-content: center;
  /* keep pinned content clear of the fixed nav */
  padding-top: clamp(60px, 8vh, 92px);
}
/* track height set inline via JS from data-track (vh units) */

/* ---------- 2 · night ---------- */

.night { background: var(--night); color: var(--night-ink); }
.night-inner {
  width: 100%;
  max-width: 1280px;
  padding: 0 var(--pad);
}
.calllog { display: flex; flex-direction: column; gap: 14px; }
.log-line {
  color: #7a7a80;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.log-line.on { opacity: 1; transform: none; }
.log-missed { color: var(--missed); }
.log-bridge { color: #6f9dff; margin-top: 10px; }
.night-punch { margin-top: 9vh; }
.punch-a, .punch-b {
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 14em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.punch-a.on, .punch-b.on { opacity: 1; transform: none; }
.punch-b { color: #7a7a80; margin-top: 0.35em; }

/* ---------- 3 · rescue ---------- */

.rescue { background: var(--paper); }
.rescue-grid {
  width: 100%;
  max-width: 1280px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 400px);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.beats { position: relative; min-height: 12em; }
.beat {
  position: absolute;
  inset: auto 0;
  top: 50%;
  transform: translateY(-38%);
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 13em;
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.beat.on { opacity: 1; transform: translateY(-50%); }
.beat-time {
  display: block;
  color: var(--pulse);
  margin-bottom: 18px;
}

/* device — an iPhone, front edge on */
.device {
  position: relative;
  /* width-driven sizing: the screen's aspect ratio derives height from this,
     so the frame always hugs the screen like a real phone */
  width: min(370px, calc(78svh * 0.46), 84vw);
  justify-self: end;
  border-radius: 60px;
  background: linear-gradient(155deg, #4a4a4f, #232327 34%, #101013 82%, #2c2c30);
  padding: 11px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 5px rgba(255, 255, 255, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.1),
    0 34px 90px rgba(29, 29, 31, 0.24);
}
.btn-side {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3c3c41, #1a1a1e);
}
.btn-power   { right: -3px; top: 30%; height: 74px; }
.btn-vol-up  { left: -3px; top: 22%; height: 38px; }
.btn-vol-down{ left: -3px; top: calc(22% + 50px); height: 38px; }
.device-screen {
  position: relative;
  border-radius: 49px;
  background: #fff;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.4; /* full-length iPhone proportions */
  display: flex;
  flex-direction: column;
  overflow: clip;
}
.island {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 30px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 30px 0;
  color: var(--ink);
}
.sb-time {
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.sb-icons { width: 62px; height: 12px; }
.device-head {
  padding: 14px 24px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #a8adb8, #878d99);
  margin-bottom: 6px;
}
.avatar svg { width: 30px; height: 30px; }
.device-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
}
.device-sub {
  display: block;
  margin-top: 1px;
  font-size: 0.7rem;
  color: var(--faint);
}
.thread {
  flex: 1;
  min-height: 0;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 20px 18px 34px;
}
.m {
  max-width: 84%;
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border-radius: 19px;
  overflow: clip;
  max-height: 0;
  padding: 0 14px;
  margin-top: -9px; /* cancels the flex gap while collapsed */
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.45s ease, margin 0.45s ease, padding 0.45s ease;
}
.m.on {
  opacity: 1;
  transform: none;
  max-height: 8em;
  padding: 10px 14px;
  margin-top: 0;
}
.m.out {
  align-self: flex-end;
  background: var(--pulse);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.m.in {
  align-self: flex-start;
  background: #e9e9eb;
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.m.tag {
  align-self: center;
  background: none;
  color: var(--booked);
  letter-spacing: 0.1em;
  font-size: 0.66rem;
}
.m.tag.on { padding: 4px 0; }
.m.tag.star { color: #e8a33d; }
.m.gap {
  align-self: center;
  background: none;
  color: var(--faint);
  font-size: 0.62rem;
}
.m.gap.on { padding: 2px 0; }

/* ---------- 3b · ten calls at once ---------- */

.calls-inner {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4.5vh, 52px);
}
.calls-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.calls-head h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.calls-tally { color: var(--mist); font-size: 1rem; }
.calls-tally b {
  font-size: 1.35em;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.calls-tally b.held { color: var(--booked); }

.lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 12px;
}
.line {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 15px 17px;
  opacity: 0.22;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease, box-shadow 0.35s ease;
}
.line.ring, .line.live, .line.done { opacity: 1; transform: none; }
.line.live {
  border-color: rgba(10, 91, 255, 0.4);
  box-shadow: 0 6px 24px rgba(10, 91, 255, 0.09);
}
.line.done { border-color: var(--hairline); box-shadow: none; }

.line-status {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.line .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d2d2d7;
  transition: background 0.3s ease;
}
.line.ring .dot { background: #e8a33d; }
.line.ring .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(232, 163, 61, 0.55);
  animation: ringpulse 1.1s ease-out infinite;
}
@keyframes ringpulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.line.live .dot, .line.done .dot { display: none; }

.wave { display: none; align-items: flex-end; gap: 2.5px; height: 16px; }
.line.live .wave { display: flex; }
.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--pulse);
  animation: talk 0.9s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 6px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 13px; animation-delay: 0.15s; }
.wave i:nth-child(3) { height: 9px; animation-delay: 0.3s; }
.wave i:nth-child(4) { height: 14px; animation-delay: 0.45s; }
@keyframes talk { 50% { transform: scaleY(0.35); } }
.line.done .wave { display: none; }
.line.done .line-status::before {
  content: "✓";
  color: var(--booked);
  font-size: 0.85rem;
  font-weight: 700;
}

.line-who {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.line-out {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  max-height: 0;
  opacity: 0;
  overflow: clip;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}
.line.done .line-out { max-height: 3.6em; opacity: 1; margin-top: 3px; }

.calls-punch {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  text-align: center;
}

/* ---------- 3c · system map ---------- */

.flow { background: var(--paper); }
.flow-inner {
  width: 100%;
  max-width: 1220px;
  max-height: calc(100svh - 92px);
  margin-inline: auto;
  padding: 12px var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2.5vh, 32px);
}
.flow-head h2 { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.flow-stage {
  transform-origin: 50% 60%;
  will-change: transform;
  min-height: 0;
}
.flow-map {
  width: 100%;
  height: auto;
  max-height: 56svh;
  overflow: visible;
}

.fline {
  stroke: #cfcfd6;
  stroke-width: 1.6;
  fill: none;
}
.fline-loop { stroke-dasharray: none; stroke: #d9d9df; }

.fnode rect {
  fill: #fff;
  stroke: rgba(0, 0, 0, 0.14);
  stroke-width: 1.2;
}
.fnode text {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  fill: var(--mist);
  text-anchor: middle;
}
.fnode, .fengine, .fpulses, .floop-label {
  opacity: 0.18;
  transition: opacity 0.6s ease;
}
.fnode.on, .fengine.on, .floop-label.on { opacity: 1; }
.fpulses { opacity: 0; }
.fpulses.on { opacity: 1; }
.fpulses circle { fill: var(--pulse); }
.fpulses-loop circle { fill: #e8a33d; }

.fout rect { fill: var(--ink); stroke: none; }
.fout text { fill: #f5f5f7; }

.fengine rect {
  fill: #fff;
  stroke: var(--pulse);
  stroke-width: 1.8;
  filter: drop-shadow(0 14px 30px rgba(10, 91, 255, 0.16));
}
.fengine .fe-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--ink);
  text-anchor: middle;
}
.fengine .fe-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  fill: var(--pulse);
  text-anchor: middle;
}
.floop-label text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  fill: var(--faint);
  text-anchor: middle;
}
.flow-punch {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  text-align: center;
}

/* ---------- 3d · switchboard ---------- */

.board { background: var(--paper); }
.board-inner {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 4vh, 44px);
}
.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.board-head h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.board-tally { display: flex; gap: 26px; }
.tally { color: var(--mist); }
.tally b {
  display: inline-block;
  min-width: 1.4em;
  font-weight: 700;
  font-size: 1.5em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tally-missed b { color: var(--booked); }

.feed { border-top: 1px solid var(--hairline); }
.lead {
  display: grid;
  grid-template-columns: minmax(96px, 150px) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: clamp(11px, 1.8vh, 18px) 0;
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.lead.in { opacity: 1; transform: none; }
.lead-ch {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.lead-who {
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  font-weight: 550;
  letter-spacing: -0.015em;
}
.lead-res {
  font-size: 0.86rem;
  color: var(--mist);
  max-height: 0;
  opacity: 0;
  overflow: clip;
  transition: max-height 0.45s ease, opacity 0.45s ease, margin 0.45s ease;
}
.lead.ok .lead-res { max-height: 3em; opacity: 1; margin-top: 3px; }
.lead-res::first-letter { text-transform: uppercase; }

.lead-st {
  position: relative;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 84px;
  text-align: right;
}
.lead-st i { font-style: normal; transition: opacity 0.35s ease; }
.st-new {
  color: #b8860b;
}
.st-new::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8a33d;
  margin-right: 7px;
  animation: blink 1.1s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.st-ok {
  position: absolute;
  right: 0;
  opacity: 0;
  color: var(--pulse);
}
.st-ok::before { content: "✓ "; }
.lead.ok .st-new { opacity: 0; }
.lead.ok .st-ok { opacity: 1; }

.board-punch {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  text-align: center;
}

/* ---------- 4 · ledger ---------- */

.ledger {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(120px, 18vh, 220px) var(--pad);
}
.ledger h2 { max-width: 12em; margin-bottom: clamp(48px, 8vh, 96px); }
.ledger-rows { border-top: 1px solid var(--hairline); }
.row {
  display: grid;
  grid-template-columns: minmax(110px, 220px) 1fr;
  gap: 24px;
  padding: clamp(28px, 4vh, 44px) 0;
  border-bottom: 1px solid var(--hairline);
}
.row-tag { color: var(--faint); padding-top: 0.55em; }
.row-body p {
  margin-top: 8px;
  color: var(--mist);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: var(--measure);
}

/* ---------- section CTAs ---------- */

.section-cta {
  margin-top: clamp(44px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.stat-cta { margin-top: 34px; }
.faq-cta {
  margin-top: 40px;
  color: var(--mist);
  font-size: 1.05rem;
}

/* ---------- 5 · stats ---------- */

.stat .pin {
  flex-direction: column;
  text-align: center;
  padding: 0 var(--pad);
}
.stat-num {
  font-size: clamp(7rem, 24vw, 19rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-line {
  margin-top: 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--mist);
  max-width: 24em;
}
.stat-src { margin-top: 26px; color: var(--faint); }
.stat-red .stat-num { color: var(--missed); }
.stat-zero .stat-num { color: var(--booked); }

/* ---------- 5b · revenue ---------- */

.revenue .pin { align-items: stretch; }
.rev-inner {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
}
.rev-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.rev-figure { text-align: right; }
.rev-figure [data-revnum] {
  display: block;
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--pulse);
  font-variant-numeric: tabular-nums;
}
.rev-figure-sub {
  display: block;
  margin-top: 6px;
  color: var(--mist);
  font-size: 0.98rem;
}
.rev-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.2vw, 16px);
  height: clamp(200px, 38svh, 380px);
  border-bottom: 1px solid var(--hairline);
}
.bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bar .base {
  height: calc(var(--b) * 1%);
  background: #e3e3e6;
  border-radius: 6px 6px 0 0;
}
.bar .bonus {
  height: calc(var(--x) * 1% * var(--g, 0));
  background: var(--pulse);
  border-radius: 6px 6px 0 0;
  margin-bottom: 2px;
}
.bar .bonus + .base { border-radius: 0; }
.rev-foot {
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
}
.rev-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--mist);
  white-space: nowrap;
}
.rev-key i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.k-base { background: #e3e3e6; }
.k-bonus { background: var(--pulse); }
.rev-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-left: auto;
  max-width: 46em;
}

/* ---------- 6 · plan ---------- */

.plan {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(120px, 18vh, 220px) var(--pad);
}
.plan h2 { margin-bottom: clamp(48px, 8vh, 96px); }
.plan-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.plan-steps li { counter-increment: step; }
.plan-steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--pulse);
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 18px;
}
.plan-steps p {
  margin-top: 10px;
  color: var(--mist);
  font-size: 1.02rem;
}

/* ---------- 7 · proof ---------- */

.proof {
  background: var(--night);
  color: var(--night-ink);
  padding: clamp(120px, 20vh, 240px) var(--pad);
}
.proof blockquote { max-width: 1280px; margin-inline: auto; }
.proof p {
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 18em;
}
.proof cite {
  display: block;
  margin-top: 40px;
  font-style: normal;
  color: #7a7a80;
}

/* ---------- 8 · faq ---------- */

.faq {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(120px, 16vh, 200px) var(--pad);
}
.faq h2 { margin-bottom: clamp(40px, 6vh, 72px); }
.faq-rows { border-top: 1px solid var(--hairline); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 300;
  font-size: 1.4em;
  color: var(--faint);
  transition: transform 0.3s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 28px;
  color: var(--mist);
  max-width: var(--measure);
  font-size: 1.05rem;
}

/* ---------- 9 · close ---------- */

.close {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(120px, 18vh, 220px) var(--pad) clamp(100px, 14vh, 160px);
  text-align: center;
}
.close h2 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
.close-sub {
  margin: 28px auto 0;
  color: var(--mist);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  max-width: 34em;
}
.close-form {
  margin: 56px auto 0;
  max-width: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  text-align: left;
}
.ff { display: flex; flex-direction: column; gap: 8px; }
.ff label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.close-form input,
.close-form select {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 18px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.close-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  cursor: pointer;
}
.close-form input::placeholder { color: var(--faint); }
.close-form input:focus,
.close-form select:focus {
  outline: none;
  border-color: var(--pulse);
  box-shadow: 0 0 0 4px rgba(10, 91, 255, 0.12);
}
.close-form .cta {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 260px;
  margin-top: 10px;
}
.close-alt { margin-top: 26px; color: var(--faint); font-size: 0.95rem; }
.close-alt a { color: var(--pulse); }
.close-done {
  margin-top: 30px;
  color: var(--booked);
  font-weight: 550;
}
.close-done[hidden] { display: none; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--hairline); }
.footer-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 28px var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0.04em;
}
.footer a:hover { color: var(--ink); }

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 3px;
  border-radius: 4px;
}
.cta:focus-visible, .nav-book:focus-visible { border-radius: 980px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-video { justify-content: flex-start; margin-top: 10px; }
}

@media (max-width: 900px) {
  .rescue-grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-content: center;
  }
  .beats { min-height: 9em; order: 0; }
  .beat { font-size: clamp(1.25rem, 4.6vw, 1.7rem); max-width: none; }
  .device { justify-self: center; }
  .plan-steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row-tag { padding-top: 0; }
  .nav-tel { display: none; }
  .rev-top { flex-direction: column; align-items: flex-start; }
  .rev-figure { text-align: left; }
  .rev-note { margin-left: 0; }
  .rev-chart .bar:nth-child(n+9) { display: none; } /* 8 months fit better on small screens */
  .close-form { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr auto; row-gap: 4px; }
  .lead-ch { grid-column: 1 / -1; }
  .board-tally { gap: 18px; }
  .lines { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .line { padding: 11px 13px; }
  .line-who { font-size: 0.85rem; }
}

/* true phones only: the map unpins and scrolls sideways */
@media (max-width: 640px) {
  .flow .pin { height: auto; position: static; padding: 14svh 0; }
  .flow-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .flow-map { min-width: 820px; max-height: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade, .log-line, .punch-a, .punch-b, .beat, .m, .cue, .lead {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .beat { position: static; }
  .beats { display: flex; flex-direction: column; gap: 2em; min-height: 0; }
  .ticker-track { animation: none; }
  .lead-res { max-height: none !important; opacity: 1 !important; }
  .st-new { display: none; }
  .st-ok { opacity: 1 !important; position: static; }
  .line { opacity: 1 !important; transform: none !important; }
  .line-out { max-height: none !important; opacity: 1 !important; }
  .wave i { animation: none; }
  .fnode, .fengine, .fpulses, .floop-label { opacity: 1 !important; }
  .fline[data-draw] { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
  .flow-stage { transform: none !important; }
}
