/* ============================================================
   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 .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: -.04em;
  font-size: 2.4rem;
}
#gate p { color: var(--muted); font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em; }
#gate form { display: flex; gap: .5rem; margin-top: .5rem; }
#gate input {
  font-family: var(--mono); font-size: .95rem;
  padding: .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: .8rem; text-transform: uppercase;
  letter-spacing: .08em; padding: .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: .72rem;
  letter-spacing: .06em; opacity: 0; }
#gate .err.show { opacity: 1; }

/* ---------------- Deck shell ---------------- */
#deck { position: fixed; inset: 0; opacity: 0; transition: opacity .6s ease .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 .55s ease, transform .55s ease, visibility .55s;
  overflow-y: auto;
}
.slide.active { opacity: 1; visibility: visible; transform: none; }
.slide-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* staggered reveal */
.slide .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.slide.active .reveal { opacity: 1; transform: none; }
.slide.active .reveal:nth-child(1){ transition-delay:.10s }
.slide.active .reveal:nth-child(2){ transition-delay:.18s }
.slide.active .reveal:nth-child(3){ transition-delay:.26s }
.slide.active .reveal:nth-child(4){ transition-delay:.34s }
.slide.active .reveal:nth-child(5){ transition-delay:.42s }
.slide.active .reveal:nth-child(6){ transition-delay:.50s }
.slide.active .reveal:nth-child(7){ transition-delay:.58s }

/* ---------------- Typography ---------------- */
.kicker {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  margin-bottom: 1.6rem; display: flex; align-items: center; gap: .7rem;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--ink); display: inline-block; }

h1.title {
  font-weight: 600; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}
h2 {
  font-weight: 600; letter-spacing: -.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: .68rem; letter-spacing:.1em; text-transform: uppercase; color: var(--muted); margin-top:.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;
}
.card .num { font-family: var(--mono); font-size: .75rem; color: var(--muted);
  letter-spacing: .1em; }
.card h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; margin: .5rem 0 .6rem; }
.card p { font-size: .96rem; color: var(--ink-soft); line-height: 1.5; }

ul.ticks { margin-top: 1.3rem; list-style: none; display: grid; gap: .85rem; max-width: 62ch; }
ul.ticks li { position: relative; padding-left: 1.7rem; font-size: clamp(.98rem,1.4vw,1.12rem);
  color: var(--ink-soft); line-height: 1.45; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .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: -.03em; line-height: 1; }
.stat .l { font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin-top: .5rem; }

/* tables */
table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: clamp(.82rem,1.2vw,1rem); }
th, td { text-align: right; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th { font-family: var(--mono); font-size: .64rem; text-transform: uppercase;
  letter-spacing: .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); }
.assump { margin-top: 1.3rem; font-size: .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.6rem; 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: .85rem .9rem; font-size: .9rem; }
.phasegrid .head { font-family: var(--mono); font-size: .62rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); background: var(--surface); }
.phasegrid .client { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink); }
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; background: var(--accent); margin-right:.4rem; }
.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: .58rem; text-transform: uppercase; letter-spacing: .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: .64rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin: .25rem 0 .55rem; }
.person p.bio { font-size: .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); }
.person .pimg.placeholder { display: grid; place-items: center; border: 1px dashed var(--line-strong);
  font-family: var(--mono); font-size: .55rem; color: var(--muted); text-align:center; padding: .3rem;}
.tag { display:inline-block; font-family: var(--mono); font-size:.58rem; text-transform:uppercase;
  letter-spacing:.1em; color: var(--muted); border:1px solid var(--line-strong); border-radius:4px;
  padding:.15rem .45rem; margin-left:.4rem; vertical-align: middle; }

/* link buttons */
.linkbtn { display:inline-flex; align-items:center; gap:.5rem; margin-top: 1.6rem;
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: #fff; background: var(--accent); padding: .7rem 1.1rem; border-radius: 8px;
  text-decoration: none; }
.linkbtn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.linkbtn:hover { opacity: .85; }
.linkrow { display:flex; flex-wrap:wrap; gap:.7rem; }

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

.thesis { margin-top: 1.8rem; font-size: clamp(1.05rem,1.8vw,1.4rem); font-weight: 600;
  letter-spacing:-.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 .4s ease; }
#counter { position: fixed; bottom: 1.4rem; left: var(--pad); z-index: 50;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--muted); }
#counter b { color: var(--ink); }
#nav { position: fixed; bottom: 1.1rem; right: var(--pad); z-index: 50; display: flex; gap: .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 .2s; }
#nav button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
#nav button:disabled { opacity: .3; cursor: default; }
#brandtag { position: fixed; top: 1.3rem; right: var(--pad); z-index: 50;
  font-family: var(--mono); font-weight: 700; letter-spacing: -.03em; font-size: .95rem; color: var(--ink); }
#hint { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 49;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: var(--muted);
  text-transform: uppercase; opacity: .9; transition: opacity .4s; }
#hint.gone { opacity: 0; }

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

/* ---------------- Magic-model modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(255,255,255,.96);
  display: none; opacity: 0; transition: opacity .35s ease; padding: clamp(.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,.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: .68rem; text-transform: uppercase;
  letter-spacing: .1em; padding: .6rem .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: .58rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); border:1px solid var(--line); border-radius: 4px;
  padding: .12rem .4rem; }

/* ---------------- 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: .8rem; }
  #counter, #nav, #brandtag { left: 1.2rem; right: 1.2rem; }
  #brandtag { left: auto; }
  .slide { padding: 4.5rem 1.4rem 4.5rem; }
}
@media print { #nav, #counter, #progress, #hint, #gate { display: none; }
  .slide { position: relative; opacity:1; visibility:visible; transform:none; page-break-after: always; }
}
