/* Vyzier investor deck: standalone page, same tokens as the app */
:root {
  --ground: #0b0b0c;
  --ground-soft: #141416;
  --line: #26252a;
  --line-strong: #3a3840;
  --ink: #ece9e4;
  --ink-dim: #aaa398;
  --ink-faint: #9a9388;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 36rem;
  --pad: clamp(1.5rem, 5vw, 5rem);
}
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 10; transition: width 200ms ease-out;
}
@media (prefers-reduced-motion: reduce) { .progress { transition: none; } }
.counter {
  position: fixed; right: var(--pad); bottom: 1.25rem; z-index: 10;
  font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.hint {
  position: fixed; left: var(--pad); bottom: 1.25rem; z-index: 10;
  font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-faint);
}

.slide {
  box-sizing: border-box;
  min-height: 100svh;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* wide diagrams scroll inside their box instead of widening the slide */
  align-content: center;
  padding: clamp(4rem, 10vh, 7rem) var(--pad) clamp(4.5rem, 10vh, 7rem);
  border-top: 1px solid var(--line);
  position: relative;
}
/* A closed philosophy volume sits behind the deck: full size on the title and close slides, a small emblem at the right edge between. */
.wisdom-field { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
body { isolation: isolate; }
.slide { background: linear-gradient(90deg, #0b0b0cf5 0%, #0b0b0ce0 45%, #0b0b0cb3 80%, #0b0b0c66 100%); }
.slide:first-of-type, .slide.close { background: linear-gradient(90deg, #0b0b0ce8 0%, #0b0b0c95 48%, #0b0b0c10 100%); }
.slide:first-of-type { border-top: 0; }
.slide > .inner { position: relative; }
/* Deck chrome belongs on the bottom rule with the counter, never over the words. */
.motion-toggle {
  position: fixed; left: var(--pad); bottom: 1.1rem; z-index: 10;
  border: 1px solid transparent; border-radius: 2rem;
  padding: 0.3rem 0.6rem; background: #0b0b0ce6;
  color: var(--ink-faint); font: 0.7rem var(--sans); cursor: pointer;
  opacity: 0.55; transition: opacity 160ms ease, color 160ms ease;
}
.motion-toggle:hover, .motion-toggle:focus-visible { opacity: 1; color: var(--ink); border-color: var(--accent); }
/* The opening hint and the toggle share that corner; the hint yields once it hides. */
.hint:not([hidden]) ~ .motion-toggle { left: auto; right: var(--pad); }
.counter, .hint { background: #0b0b0ce6; padding: 0.3rem 0.6rem; border-radius: 3px; }
.slide > .inner { width: 100%; max-width: 68rem; margin: 0 auto; }

.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.25rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.55rem; font-weight: 400; margin-bottom: 0.4rem; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1rem; }
.lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; font-weight: 300; max-width: 42rem; }
.muted { color: var(--ink-dim); }
em { font-style: italic; }
.quote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3;
  max-width: 40rem; margin: 0;
}
.quote::before { content: "\201C"; color: var(--accent); }
.quote::after { content: "\201D"; color: var(--accent); }
.cite { margin-top: 0.9rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

.cols { display: grid; gap: 2.5rem clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.stack { display: grid; gap: 1.5rem; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; max-width: var(--measure); }
.list li { padding-left: 1.4rem; position: relative; }
.list .ex { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-dim); }
.muted .ex { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink-faint); }
.list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.55rem; height: 1px; background: var(--accent); }

.compass { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.compass-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* six cards read as two rows of three, matching the three-card slide */
@media (max-width: 60rem) { .compass-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.point { background: var(--ground); padding: 1.6rem 1.6rem 1.8rem; display: grid; gap: 0.7rem; align-content: start; border-top: 2px solid var(--accent); }
.point .step { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.point h3 { font-size: 1.4rem; line-height: 1.2; }
.point p { font-size: 0.95rem; color: var(--ink-dim); max-width: none; }

.figure { border: 1px solid var(--line); background: var(--ground-soft); padding: 1.25rem 1.4rem; }
.figure .label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.7rem; }
.figure .words { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; color: var(--ink); }
.figure mark { background: var(--accent-soft); color: var(--ink); padding: 0 0.15em; }
.figure .body { font-size: 0.95rem; color: var(--ink-dim); }
.figure .body strong { color: var(--ink); font-weight: 500; }
.surface-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 1.25rem; }

.diagram { width: 100%; overflow-x: auto; }
.diagram svg { display: block; width: 100%; height: auto; min-width: 46rem; }
.diagram text { font-family: var(--sans); font-weight: 300; fill: var(--ink); }
.diagram .lbl { font-size: 13px; }
.diagram .sub { font-size: 11px; fill: var(--ink-dim); }
.diagram .cap { font-size: 11px; letter-spacing: 0.14em; fill: var(--accent); }
.diagram .box { fill: var(--ground-soft); stroke: var(--line-strong); stroke-width: 1; }
.diagram .box-key { fill: var(--ground-soft); stroke: var(--accent); stroke-width: 1; }
.diagram .edge { stroke: var(--ink-faint); stroke-width: 1; fill: none; }
.diagram .edge-key { stroke: var(--accent); stroke-width: 1.2; fill: none; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.9rem 0 0.9rem 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 1.45rem; width: 7px; height: 7px; background: var(--ground); border: 1px solid var(--accent); border-radius: 50%; }
.timeline li.now::before { background: var(--accent); }
.timeline .when { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); padding-top: 0.35rem; }
.timeline .what { max-width: 30rem; }
.timeline .what strong { font-weight: 500; }

.criteria { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.criteria li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; color: var(--ink-dim); }
.criteria li::before { content: "\2014"; color: var(--accent); font-size: 0.9rem; line-height: 1.7; }

.placeholder {
  border: 1px dashed var(--line-strong); padding: 1.6rem 1.8rem; display: grid; gap: 0.9rem; max-width: 44rem;
}
.placeholder .tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 0.25rem 0.55rem; width: max-content; }
.placeholder p { color: var(--ink-dim); font-size: 0.98rem; }
.placeholder .asks { margin: 0; padding-left: 1.1rem; color: var(--ink-dim); font-size: 0.95rem; display: grid; gap: 0.35rem; }

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stage { background: var(--ground); padding: 1.4rem 1.5rem; display: grid; gap: 0.55rem; align-content: start; }
.stage .step { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.stage.live .step { color: var(--accent); }
.stage h3 { font-size: 1.45rem; }
.stage p { font-size: 0.92rem; color: var(--ink-dim); max-width: none; }

.wordmark { font-family: var(--sans); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1.1; color: #d5b767; }
.title-grid { display: grid; gap: 2.5rem; }
.draft { color: var(--accent); }

.close .inner { display: grid; gap: 2rem; }
.contact { font-size: 0.95rem; color: var(--ink-dim); }

/* Spacing utilities come last so they win over a component's own margin. */
.mt-05 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 2rem; }

@media (max-width: 40rem) {
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
  .hint { display: none; }
  /* On phones the book sits centred behind the words as a faint watermark. */
  .wisdom-field { opacity: 0.65; }
  .slide, .slide:first-of-type, .slide.close { background: #0b0b0c80; }
  .cols, .cols-2, .compass-3 { grid-template-columns: minmax(0, 1fr); }
}

/* Short viewports: tighten the frame before the content can outrun the slide. */
@media (max-height: 940px) and (min-width: 40rem) {
  .slide { padding-top: clamp(2.5rem, 6vh, 4rem); padding-bottom: clamp(3rem, 6vh, 4.5rem); }
  h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
  h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.1rem; }
  .lede { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.3; }
  .mt-4 { margin-top: 1.6rem; }
  .mt-3 { margin-top: 1.2rem; }
  .list > li + li, .stack > * + * { margin-top: 0.55rem; }
  /* The worked example carries the most furniture; compress its cards, not its words. */
  .figure { padding: 0.9rem 1.1rem; }
  .figure .words { font-size: 1.18rem; }
  .figure .label { margin-bottom: 0.45rem; }
  .surface-note { margin-top: 0.8rem; }
  .cols { gap: 1.2rem clamp(1.6rem, 4vw, 3rem); }
}
@media (max-height: 780px) and (min-width: 40rem) {
  .slide { padding-top: 2.2rem; padding-bottom: 2.6rem; }
  h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
  .lede { font-size: 1.15rem; }
}

@media print {
  :root { --ground: #ffffff; --ground-soft: #f6f4ef; --line: #d9d5cc; --line-strong: #b9b3a6; --ink: #151412; --ink-dim: #5a554d; --ink-faint: #6e6960; --accent: #8a6d12; --accent-soft: rgba(138, 109, 18, 0.14); }
  html { scroll-snap-type: none; }
  body { background: #fff; }
  .progress, .counter, .hint { display: none; }
  .wisdom-field, .motion-toggle { display: none; }
  .slide, .slide:first-of-type, .slide.close { background: #fff; min-height: auto; break-after: page; padding: 2.5rem 1.5rem; border-top: 0; }
  .diagram svg { min-width: 0; }
}
