/* ============================================================================
   LADDERS — instrument panel
   Every illustration on the site is a plate: hairline frame, mono index,
   graticule, and a drawing. Plates carry the argument; the text just names it.
   ========================================================================== */

/* ── the plate itself ──────────────────────────────────────────────── */
.plate {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgba(20, 20, 31, 0.03), 0 18px 40px -32px rgba(20, 20, 31, 0.5);
}
.plate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, #fcfcfd, #f8f8fa);
}
.plate-no,
.plate-name {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plate-no { color: var(--red); flex: none; }
.plate canvas { display: block; width: 100%; height: 100%; }
.plate-body { position: relative; aspect-ratio: 16 / 10; }
.plate-body.tall { aspect-ratio: 4 / 3; }
.plate-body.wide { aspect-ratio: 21 / 9; }

/* corner registration marks */
.plate::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  pointer-events: none;
}

/* ── the prologue ──────────────────────────────────────────────────── */
.prologue { padding-top: clamp(70px, 10vh, 118px); }
/* the severe chapter also owns a .beat; keep its dark rule out of here */
.prologue .beat { border-top-color: var(--line); }
.prologue .beat:first-of-type { border-top: 0; }

.beat {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(22px, 4vw, 60px);
  align-items: center;
  padding: clamp(34px, 6vh, 70px) 0;
}
.beat:nth-of-type(even) .beat-text { order: 2; }
.beat-line {
  font-size: clamp(1.22rem, 2.7vw, 1.95rem);
  line-height: 1.3;
  letter-spacing: -0.028em;
  font-weight: 560;
  color: var(--ink);
  max-width: 20ch;
}
.beat-sub {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34ch;
}
.beat-full { display: block; padding: clamp(34px, 6vh, 70px) 0; }
.beat-full .beat-line { max-width: 26ch; margin-bottom: 26px; }

@media (max-width: 760px) {
  .beat { grid-template-columns: 1fr; gap: 20px; }
  .beat:nth-of-type(even) .beat-text { order: 0; }
  .beat-line { max-width: none; }
}

/* ── plate series (the litany, the limits) ─────────────────────────── */
.series {
  margin-top: clamp(24px, 4vh, 40px);
  display: grid;
  gap: 14px;
}
.series-6 { grid-template-columns: repeat(3, 1fr); }
.series-4 { grid-template-columns: repeat(2, 1fr); }
.series .plate-body { aspect-ratio: 4 / 3; }
.series-cap {
  margin-top: 9px;
  font-size: 0.9rem;
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-weight: 500;
}
.series-item .plate { box-shadow: 0 1px 2px rgba(20,20,31,0.03); }
@media (max-width: 860px) { .series-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .series-6, .series-4 { grid-template-columns: 1fr; }
}

/* ── the imagine cascade + handoff ─────────────────────────────────── */
.cascade { margin-top: clamp(26px, 4vh, 44px); display: grid; gap: 12px; max-width: 44ch; }
.cascade p {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: -0.016em;
  color: var(--ink-soft);
  padding-left: 20px;
  border-left: 2px solid var(--line-firm);
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.cascade p.is-in { border-left-color: var(--red); color: var(--ink); }

.prologue-cta {
  margin-top: clamp(32px, 5vh, 52px);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.prologue-cta .note { font-size: 0.86rem; color: var(--ink-faint); }

/* the seam between the argument and the product */
.seam {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(56px, 9vh, 96px) 0;
  margin-top: clamp(56px, 9vh, 96px);
}
.seam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.seam h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.034em;
  font-weight: 640;
  max-width: 18ch;
}
.seam p { margin-top: 16px; font-size: 1rem; line-height: 1.62; color: var(--ink-soft); max-width: 50ch; }
@media (max-width: 760px) { .seam-grid { grid-template-columns: 1fr; } }

/* what the first rung already does, on day one */
.seam-list {
  list-style: none;
  margin: clamp(30px, 5vh, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line-firm);
}
.seam-list li {
  display: grid;
  gap: 3px;
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.seam-list li.is-in { opacity: 1; transform: none; }
.sl-k {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.sl-v { font-size: 0.92rem; line-height: 1.48; color: var(--ink-soft); letter-spacing: -0.008em; }
.seam-foot {
  margin-top: clamp(22px, 3vh, 34px) !important;
  font-size: clamp(1.02rem, 2vw, 1.24rem) !important;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  font-weight: 550;
  max-width: none !important;
}
.seam-foot em { font-style: italic; color: var(--red); }
@media (max-width: 860px) { .seam-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .seam-list { grid-template-columns: 1fr; } }

/* ── the verdict: scattered sources + the encyclopedia box ─────────── */
.verdict-lead {
  margin: clamp(26px, 4vh, 40px) auto 0;
  max-width: 50ch;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.5;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.verdict-lead .hot { color: var(--red); font-weight: 620; }

.src-chips {
  list-style: none;
  margin: 20px auto 0;
  padding: 0;
  max-width: 52ch;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.src-chips li {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-firm);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--bg);
}

.defbox {
  margin: clamp(28px, 4vh, 40px) auto 0;
  max-width: 56ch;
  text-align: left;
  border: 1px solid var(--line-firm);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  background: var(--bg);
  padding: clamp(18px, 2.6vw, 24px) clamp(20px, 3vw, 28px);
}
.def-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 9px;
}
.def-body { font-size: 0.95rem; line-height: 1.62; color: var(--ink-soft); }

/* ── the rotating question ─────────────────────────────────────────── */
.rotex {
  position: relative;
  margin-top: clamp(18px, 2.6vh, 26px);
  min-height: 3.4em;
  max-width: 44ch;
}
.rotex-line {
  position: absolute;
  inset: 0;
  font-size: clamp(1.08rem, 2.2vw, 1.34rem);
  line-height: 1.36;
  letter-spacing: -0.022em;
  font-weight: 560;
  color: var(--red);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.rotex-line.is-on { opacity: 1; transform: none; }

/* ── dark plates, for the vision chapter ───────────────────────────── */
.plate.dark { border-color: var(--void-line); background: var(--void-2); box-shadow: none; }
.plate.dark .plate-head { border-bottom-color: var(--void-line); background: #16161d; }
.plate.dark .plate-name { color: #6a6a7e; }
.plate.dark canvas { filter: invert(1) hue-rotate(180deg); }

/* ── a compact grid of plates with one line each ───────────────────── */
.pgrid { display: grid; gap: 16px; margin-top: clamp(28px, 4vh, 44px); }
.pgrid-3 { grid-template-columns: repeat(3, 1fr); }
.pgrid-2 { grid-template-columns: repeat(2, 1fr); }
.pgrid .plate-body { aspect-ratio: 4 / 3; }
.pgrid-cap {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: -0.014em;
  font-weight: 550;
  color: var(--ink);
}
.pgrid-sub { margin-top: 5px; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.severe .pgrid-cap { color: var(--void-text); }
.severe .pgrid-sub { color: var(--void-soft); }
@media (max-width: 860px) { .pgrid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pgrid-3, .pgrid-2 { grid-template-columns: 1fr; } }

/* the research findings, wrapped as plates */
.finding-viz { border: 0 !important; border-radius: 0 !important; background: transparent !important; aspect-ratio: auto !important; }
.finding-viz .plate-body { aspect-ratio: 4 / 3; }

/* the line that hands the argument to the waitlist */
.signoff {
  margin-top: clamp(24px, 3.5vh, 34px);
  font-family: var(--brand);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--red);
  max-width: 22ch;
}
.signoff .rg { font-size: 1em; }
.signoff em { display: block; margin-top: 4px; font-style: italic; color: var(--red); }

/* the sign-off shares the cascade's shape; only the name is branded */
.cascade .rg { font-size: 1.05em; }
.cascade em { font-style: italic; color: var(--red); }
.cascade p:last-child.is-in { color: var(--ink); }

/* ── inline waitlist, expands where you are ────────────────────────── */
.quickform {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}
.quickform.open { max-height: 220px; opacity: 1; }
.qf-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding-top: 16px;
  max-width: 620px;
}
.qf-inner .field { padding: 12px 15px; font-size: 0.94rem; }
.qf-inner .btn { padding: 12px 24px; }
.qf-msg { min-height: 20px; margin-top: 8px; font-size: 0.88rem; font-weight: 500; }
.qf-msg.ok { color: #1a7f37; }
.qf-msg.err { color: var(--red); }
.qf-note { font-size: 0.82rem; color: var(--ink-faint); }
@media (max-width: 640px) { .qf-inner { grid-template-columns: 1fr; } }

.nav-form { padding-top: 0; padding-bottom: 0; }
.nav-form .quickform.open { max-height: 220px; padding-bottom: 14px; }
.nav.on-void .qf-note { color: var(--void-soft); }
