/* ============================================================
   LEVR — Investor Deck
   Brand: monochrome editorial. Geist + JetBrains Mono.
   White canvas (#FFFFFF) · Ink (#111) · one accent: black (#000)
   ============================================================ */

:root {
  --canvas: #ffffff;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --accent: #000000;
  --line: #e8e8e8;
  --line-strong: #d6d6d6;
  --surface: #fafafa;
  --hover: #f3f3f3;
  --pastel-draft: #f8e7d6;
  --pastel-ready: #d7ebdd;
  --pastel-review: #e6e0f4;
  --pastel-pub: #d9e5f3;

  --sans:
    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(2rem, 6vw, 7rem);
  --maxw: 1180px;
}

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

html,
body {
  height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ---------------- Password gate ---------------- */
#gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.5s ease;
}
#gate.hidden {
  opacity: 0;
  pointer-events: none;
}
#gate .mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}
#gate .wordmark {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 2.4rem;
}
#gate p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
#gate form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
#gate input {
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  width: 240px;
  background: #fff;
  color: var(--ink);
}
#gate input:focus {
  border-color: var(--accent);
}
#gate button {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.4rem;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}
#gate .err {
  color: #b00;
  min-height: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0;
}
#gate .err.show {
  opacity: 1;
}

/* ---------------- Deck shell ---------------- */
#deck {
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
}
#deck.live {
  opacity: 1;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0.55s;
  overflow-y: auto;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* slides on a dark full-bleed image: light heading/body text; cards stay light */
.slide.on-dark .kicker { color: rgba(255, 255, 255, 0.72); }
.slide.on-dark .kicker::before { background: #fff; }
.slide.on-dark h2,
.slide.on-dark h2 strong,
.slide.on-dark .body,
.slide.on-dark .body strong,
.slide.on-dark .lead { color: #ffffff; }

/* ===== Slide 6 — 50/50: content left, vertical asset marquee right ===== */
.slide.kb-split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.kb-left { display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 5.5rem); position: relative; z-index: 2; }
.kb-left .kb-points { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.7rem; max-width: 48ch; }
.kb-left .kb-point { display: flex; gap: 0.95rem; align-items: baseline; }
.kb-left .kb-point .n { font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.1em; flex: none; padding-top: 0.15rem; }
.kb-left .kb-point p { font-size: clamp(0.98rem, 1.3vw, 1.12rem); line-height: 1.5; color: var(--ink-soft); }
.kb-left .kb-point p strong { color: var(--ink); font-weight: 600; }

.kb-right { position: relative; overflow: hidden; background: var(--surface); }
/* a soft top/bottom fade so tiles dissolve at the edges rather than hard-cut */
.kb-right::before, .kb-right::after { content: ""; position: absolute; left: 0; right: 0; height: 90px;
  z-index: 2; pointer-events: none; }
.kb-right::before { top: 0; background: linear-gradient(180deg, var(--surface), rgba(250,250,250,0)); }
.kb-right::after { bottom: 0; background: linear-gradient(0deg, var(--surface), rgba(250,250,250,0)); }
.kb-marquee { position: absolute; inset: 0; display: flex; gap: 30px; padding: 0 clamp(16px, 2vw, 34px); }
.kb-col { flex: 1; min-width: 0; }
.kb-col-inner { will-change: transform; animation: kbscroll var(--sd, 90s) linear infinite; }
@keyframes kbscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.kb-vtile { margin-bottom: 30px; border-radius: 9px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 48px -18px rgba(0,0,0,0.28), 0 8px 18px -10px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.05); }
.kb-vtile img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .kb-col-inner { animation: none !important; } }
@media (max-width: 900px) {
  .slide.kb-split { grid-template-columns: 1fr; }
  .kb-left { padding: clamp(2rem, 7vw, 3rem); }
  .kb-right { display: none; }
}
.slide-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* embedded standalone visuals (iframe slides) — full-bleed, self-contained */
.slide.visual-slide {
  padding: 0;
  overflow: hidden;
}
.visual-slide .visual-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--canvas);
  /* interactive: visuals receive hover/click. Keyboard nav still works because each
     embedded visual forwards arrow/space keys to the parent via postMessage (see deck.js). */
  pointer-events: auto;
}

/* staggered reveal */
.slide .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.slide.active .reveal {
  opacity: 1;
  transform: none;
}
.slide.active .reveal:nth-child(1) {
  transition-delay: 0.1s;
}
.slide.active .reveal:nth-child(2) {
  transition-delay: 0.18s;
}
.slide.active .reveal:nth-child(3) {
  transition-delay: 0.26s;
}
.slide.active .reveal:nth-child(4) {
  transition-delay: 0.34s;
}
.slide.active .reveal:nth-child(5) {
  transition-delay: 0.42s;
}
.slide.active .reveal:nth-child(6) {
  transition-delay: 0.5s;
}
.slide.active .reveal:nth-child(7) {
  transition-delay: 0.58s;
}

/* ---------------- Typography ---------------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
  /* draw the leading rule when the slide becomes active */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.62, 0.04, 0.2, 1) 0.32s;
}
.slide.active .kicker::before {
  transform: scaleX(1);
}
/* close-slide kicker is centered, so draw it from the center */
.slide-inner [style*="justify-content:center"].kicker::before,
.kicker[style*="justify-content:center"]::before {
  transform-origin: center;
}

h1.title {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}
h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  max-width: 18ch;
}
h2.wide {
  max-width: 24ch;
}
.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 60ch;
  margin-top: 1.4rem;
}
.body {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 64ch;
  margin-top: 1.2rem;
}
.body strong,
.lead strong {
  color: var(--ink);
  font-weight: 600;
}
.sub {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--muted);
  margin-top: 1.6rem;
  max-width: 50ch;
  line-height: 1.4;
}
.quote {
  margin-top: 2rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 56ch;
  line-height: 1.45;
}
.quote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* ---------------- Layout helpers ---------------- */
.cols {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.cols.c2 {
  grid-template-columns: 1fr 1fr;
}
.cols.c3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols.c4 {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.cols.team {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.8rem 3.2rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  background: #fff;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  will-change: transform;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.22);
}
.card .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.6rem;
}
.card p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

ul.ticks {
  margin-top: 1.3rem;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 62ch;
}
ul.ticks li {
  position: relative;
  padding-left: 1.7rem;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  color: var(--ink-soft);
  line-height: 1.45;
}
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
ul.ticks li strong {
  color: var(--ink);
  font-weight: 600;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1.8rem;
}
.stat .n {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
/* stable width while count-up ticks — no reflow */
[data-countup] {
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
}
th,
td {
  text-align: right;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  text-align: left;
}
thead th {
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}
tbody td {
  color: var(--ink-soft);
}
tbody td strong,
tbody td b {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--mono);
}
tr.hl td {
  background: var(--surface);
}
/* row highlight on hover — premium, restrained */
tbody tr {
  transition: background 0.2s ease;
}
tbody tr:hover td {
  background: var(--surface);
}
.assump {
  margin-top: 1.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  max-width: 70ch;
}
.assump b {
  color: var(--ink-soft);
}

/* phase grid (traction) */
.phasegrid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 140px 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.phasegrid > div {
  background: #fff;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}
.phasegrid .head {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--surface);
}
.phasegrid .client {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.4rem;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.3, 1.3, 0.5, 1);
  cursor: default;
}
.dot[data-tip]:hover {
  transform: scale(1.45);
}
/* tiny mono tooltip of the phase status */
.dot[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--accent);
  padding: 0.24rem 0.46rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 5;
}
.dot[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.dot.empty {
  background: var(--line-strong);
}
.dot.prog {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.phasegrid .wk {
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* portraits */
.portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(100%) contrast(1.03);
  background: var(--surface);
}
.person {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.person .pdesc {
  flex: 1;
}
.person .ptitle {
  font-weight: 600;
  font-size: 1.05rem;
}
.person .prole {
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0.25rem 0 0.55rem;
}
.person p.bio {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.person .pimg {
  width: 86px;
  height: 108px;
  border-radius: 10px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.03);
  flex-shrink: 0;
  background: var(--surface);
  transition:
    transform 0.3s ease,
    filter 0.4s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}
/* real portrait eases toward full contrast on hover; placeholders only lift */
.person:hover .pimg:not(.placeholder) {
  transform: translateY(-3px);
  filter: grayscale(0%) contrast(1.04);
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.32);
}
.person:hover .pimg.placeholder {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.person .pimg.placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--muted);
  text-align: center;
  padding: 0.3rem;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* link buttons */
.linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.linkbtn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
/* trailing arrow glyph nudges right on hover (wrapped in <span class="lb-arrow">) */
.linkbtn .lb-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}
.linkbtn:hover {
  transform: translateY(-1px);
  background: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.4);
}
.linkbtn:hover .lb-arrow {
  transform: translateX(3px);
}
.linkbtn.ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}
.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.big-mark {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.9;
}

.thesis {
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 52ch;
  line-height: 1.3;
}
.thesis .acc {
  border-bottom: 3px solid var(--accent);
}

/* ---------------- Chrome (nav/progress) ---------------- */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0;
  z-index: 50;
  transition: width 0.4s ease;
}
#counter {
  position: fixed;
  bottom: 1.4rem;
  left: var(--pad);
  z-index: 50;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
#counter b {
  color: var(--ink);
}
/* Appendix indicator: counter switches to "APX · NN / NN" and an APPENDIX pill appears. */
#counter.apx::before {
  content: "APX · ";
  color: var(--ink);
  font-weight: 700;
}
#apxbadge {
  position: fixed;
  top: 1.25rem;
  left: var(--pad);
  z-index: 50;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#apxbadge.show {
  opacity: 1;
  transform: translateY(0);
}
#nav {
  position: fixed;
  bottom: 1.1rem;
  right: var(--pad);
  z-index: 50;
  display: flex;
  gap: 0.5rem;
}
#nav button {
  font-family: var(--mono);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
  transition: all 0.2s;
}
#nav button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
#nav button:disabled {
  opacity: 0.3;
  cursor: default;
}
#brandtag {
  position: fixed;
  top: 1.3rem;
  right: var(--pad);
  z-index: 50;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 0.95rem;
  color: var(--ink);
}
#hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 49;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.4s;
}
#hint.gone {
  opacity: 0;
}

/* model launch button */
.modelbtn {
  border: none;
  cursor: pointer;
}
.modelbtn:hover {
  opacity: 0.85;
}

/* ---------------- Magic-model modal ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: clamp(0.6rem, 2vw, 2rem);
}
.modal.open {
  display: block;
  opacity: 1;
}
.modal-frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}
.modal-close {
  position: absolute;
  top: clamp(1rem, 2.4vw, 2rem);
  right: clamp(1rem, 2.4vw, 2rem);
  z-index: 81;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
}
.modal-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.draft-flag {
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
}

/* title logo */
.title-logo {
  width: clamp(150px, 24vw, 280px);
  height: auto;
  display: block;
}

/* animated hero (Slide 2) */
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
  max-width: 22ch;
}
.hero-line {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    letter-spacing 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero-line .em {
  color: var(--ink);
}
.hero-line.l1 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
}
.hero-line.l2 {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
}
.hero-line.l3 {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  color: var(--ink);
}
.hero-resolve {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.slide.active .hero-line,
.slide.active .hero-resolve {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
/* leading rule that draws beneath the resolve line for a deliberate finish */
.hero-resolve {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-resolve::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.62, 0.04, 0.2, 1) 3.2s;
}
.slide.active .hero-resolve::before {
  transform: scaleX(1);
}
.slide.active .hero-line.l1 {
  transition-delay: 0.25s;
}
.slide.active .hero-line.l2 {
  transition-delay: 1.1s;
}
.slide.active .hero-line.l3 {
  transition-delay: 1.95s;
}
.slide.active .hero-resolve {
  transition-delay: 2.9s;
}

/* hub diagram (ideal customer) */
.hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.hub .master {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--accent);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
}
.hub .stem {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}
.hub .units {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hub .unit {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  transition:
    transform 0.22s cubic-bezier(0.3, 1.3, 0.5, 1),
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
  will-change: transform;
}
.hub .unit:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.3);
}

/* ---------------- Slide 7 — animated one-week timeline ---------------- */
.timeline {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: 6px;
}
.tl-axis {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-strong);
}
.tl-fill {
  position: absolute;
  top: 16px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.7s cubic-bezier(0.62, 0.04, 0.2, 1) 0.35s;
}
.slide.active .tl-fill {
  transform: scaleX(1);
}
/* traveling pulse — "built in front of you" */
.tl-pulse {
  position: absolute;
  top: 11px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.28);
}
.slide.active .tl-pulse {
  animation: tlrun 2.1s cubic-bezier(0.62, 0.04, 0.2, 1) 0.35s 1 forwards;
}
@keyframes tlrun {
  0% {
    left: 0;
    opacity: 0;
  }
  8% {
    opacity: 1;
    box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.1);
  }
  92% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 12px);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.tl-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  position: relative;
}
.tl-stage {
  position: relative;
  padding-top: 2.4rem;
}
.tl-stage .tl-node {
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: scale(0.2);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.slide.active .tl-stage .tl-node {
  opacity: 1;
  transform: scale(1);
}
.tl-stage.lead .tl-node {
  background: var(--accent);
  width: 22px;
  height: 22px;
  top: 6px;
}
.tl-stage:nth-child(1) .tl-node {
  transition-delay: 0.5s;
}
.tl-stage:nth-child(2) .tl-node {
  transition-delay: 1.25s;
}
.tl-stage:nth-child(3) .tl-node {
  transition-delay: 1.95s;
}
.tl-when {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tl-stage.lead .tl-when {
  color: var(--ink);
}
.tl-stage h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.5rem;
}
.tl-stage p {
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  color: var(--ink-soft);
  line-height: 1.5;
}
.tl-stage .tl-tag {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 0.22rem 0.5rem;
}
/* staggered text reveal per stage */
.tl-stage .tl-body {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.slide.active .tl-stage .tl-body {
  opacity: 1;
  transform: none;
}
.tl-stage:nth-child(1) .tl-body {
  transition-delay: 0.65s;
}
.tl-stage:nth-child(2) .tl-body {
  transition-delay: 1.4s;
}
.tl-stage:nth-child(3) .tl-body {
  transition-delay: 2.1s;
}
.tl-foot {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
}
.tl-foot .fct {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.tl-foot .fct b {
  color: var(--ink);
}

/* ---------------- Close slide — elevated quote ---------------- */
.close-wrap {
  max-width: 30ch;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.close-mark-q {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 0.7;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 0.15rem;
  /* draw in subtly when slide enters */
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.7s ease 0.05s,
    transform 0.7s ease 0.05s;
}
.slide.active .close-mark-q {
  opacity: 1;
  transform: none;
}
h2.close-quote {
  font-weight: 600;
  font-size: clamp(1.5rem, 3.3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: none;
  text-wrap: balance;
  color: var(--ink);
}
h2.close-quote .em {
  position: relative;
  white-space: nowrap;
}
.close-attrib {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: center;
}
.close-attrib::before,
.close-attrib::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
  display: inline-block;
}
.close-attrib b {
  color: var(--ink);
  font-weight: 700;
}
.close-mark {
  width: clamp(84px, 11vw, 120px);
  height: auto;
  margin-top: 0.9rem;
  opacity: 0.92;
}

/* "8 of 12" cap meter */
.capmeter {
  display: flex;
  gap: 6px;
  margin-top: 0.6rem;
}
.capmeter span {
  width: 26px;
  height: 10px;
  border-radius: 3px;
  background: var(--line-strong);
}
.capmeter span.on {
  background: var(--accent);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .cols.c2,
  .cols.c3,
  .cols.c4,
  .cols.team {
    grid-template-columns: 1fr;
  }
  .phasegrid {
    grid-template-columns: 110px 1fr 1fr 1fr;
    font-size: 0.8rem;
  }
  #counter,
  #nav,
  #brandtag {
    left: 1.2rem;
    right: 1.2rem;
  }
  #brandtag {
    left: auto;
  }
  .slide {
    padding: 4.5rem 1.4rem 4.5rem;
  }
  /* timeline → vertical on mobile */
  .tl-stages {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .tl-axis,
  .tl-fill,
  .tl-pulse {
    display: none;
  }
  .tl-stage {
    padding-top: 0;
    padding-left: 1.8rem;
  }
  .tl-stage .tl-node {
    top: 4px;
  }
}
/* ---------------- Reduced motion ----------------
   No motion: rules shown at full width, numbers at final value,
   hovers settle instantly, no transforms. */
@media (prefers-reduced-motion: reduce) {
  .kicker::before,
  .slide.active .kicker::before {
    transform: none !important;
    transition: none !important;
  }
  .card,
  .card:hover,
  .person .pimg,
  .person:hover .pimg:not(.placeholder),
  .person:hover .pimg.placeholder,
  .hub .unit,
  .hub .unit:hover,
  .dot,
  .dot[data-tip]:hover,
  .linkbtn,
  .linkbtn:hover,
  .linkbtn .lb-arrow,
  .linkbtn:hover .lb-arrow,
  tbody tr,
  .close-mark-q,
  .slide.active .close-mark-q {
    transition: none !important;
    transform: none !important;
  }
  .card:hover {
    box-shadow: none;
  }
  /* tooltip still appears (information), just no movement */
  .dot[data-tip]:hover::after {
    transition: none !important;
    transform: translateX(-50%) !important;
  }
  /* hero (slide 2): show all beats instantly, no blur/slide */
  .hero-line,
  .hero-resolve,
  .slide.active .hero-line,
  .slide.active .hero-resolve {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    letter-spacing: -0.01em;
  }
  .hero-resolve::before,
  .slide.active .hero-resolve::before {
    transform: none !important;
    transition: none !important;
  }
}

@media print {
  #nav,
  #counter,
  #progress,
  #hint,
  #gate {
    display: none;
  }
  .slide {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    page-break-after: always;
  }
}
