/* ═══════════════════════════════════════════════════════════
   1809 ARCTIC — PITCH DECK
   Native slide engine. Keyboard, click, hash-linkable, printable.
   Crisp paper theme: white slides, ink type, navy + brass accents.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper-50);
  color: var(--text-on-paper);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

::selection { background: var(--brass-500); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--brass-600); outline-offset: 3px; }

/* ── Chrome ── */
.deck-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(180deg, rgba(252,251,247,0.95), rgba(252,251,247,0));
}
.deck-brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.deck-mark { width: 30px; height: 30px; flex-shrink: 0; }
.deck-brand .n {
  font-family: var(--font-display); font-weight: 620;
  font-size: 1.2rem; color: var(--brass-800);
}
.deck-brand .w {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--text-on-paper-faint);
}
.deck-exit {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-on-paper-muted); text-decoration: none;
  border: 1px solid rgba(24,34,56,0.25); border-radius: 3px;
  padding: 0.45rem 0.9rem;
  transition: color 180ms, border-color 180ms;
}
.deck-exit:hover { color: var(--brass-800); border-color: var(--brass-700); }

.deck-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 60;
  background: var(--brass-600); width: 0%;
  transition: width 360ms cubic-bezier(0.65, 0, 0.18, 1);
}

.deck-hud {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.6rem;
  background: linear-gradient(0deg, rgba(252,251,247,0.95), rgba(252,251,247,0));
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; color: var(--text-on-paper-faint);
}
.deck-counter { color: var(--brass-800); }
.deck-hint { text-transform: uppercase; }
.deck-arrows { display: flex; gap: 0.5rem; }
.deck-arrows button {
  background: none; border: 1px solid rgba(24,34,56,0.25);
  color: var(--text-on-paper-muted); border-radius: 3px;
  font-size: 0.85rem; line-height: 1;
  padding: 0.5rem 0.85rem; cursor: pointer;
  transition: color 180ms, border-color 180ms;
}
.deck-arrows button:hover { color: var(--brass-800); border-color: var(--brass-700); }

/* ── Slides ── */
.slides { height: 100%; position: relative; overflow: hidden; overflow: clip; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(4.5rem, 9vh, 6.5rem) clamp(1.4rem, 6vw, 6rem);
  opacity: 0; visibility: hidden;
  transform: translateX(40px);
  transition: opacity 480ms cubic-bezier(0.19, 1, 0.22, 1),
              transform 480ms cubic-bezier(0.19, 1, 0.22, 1),
              visibility 480ms;
  overflow-y: auto;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; z-index: 10; }
.slide.is-prev { transform: translateX(-40px); }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity 120ms linear, visibility 120ms; transform: none !important; }
}

.slide-inner { width: 100%; max-width: 1080px; margin: 0 auto; }

.slide-kicker {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--brass-800); margin: 0 0 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}
.slide-kicker::before { content: ""; width: 34px; height: 1px; background: var(--brass-600); }

.slide h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 620; line-height: 1.07; letter-spacing: -0.01em;
  margin: 0 0 1.4rem; color: var(--text-on-paper);
}
.slide h2 em { font-style: italic; font-weight: 500; color: var(--brass-800); }

.slide .lede {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem); font-weight: 400;
  color: var(--text-on-paper-muted); max-width: 60ch; line-height: 1.7;
  margin: 0 0 1.8rem;
}
.slide .lede strong { color: var(--text-on-paper); font-weight: 600; }

/* cover */
.slide--cover { text-align: center; }
.cover-mark { width: 58px; height: 58px; margin: 0 auto 1.4rem; display: block; }
.slide--cover .cover-numerals {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7rem);
  font-weight: 620; line-height: 1; color: var(--text-on-paper);
  letter-spacing: 0.01em; margin: 0;
}
.slide--cover .cover-numerals em { font-style: italic; color: var(--brass-800); }
.slide--cover .cover-rule { width: 180px; height: 1px; background: var(--brass-600); margin: 1.4rem auto; }
.slide--cover .cover-sub {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--text-on-paper-muted); margin: 0;
}
.cover-figure {
  margin: 2rem auto 0; max-width: min(540px, 78vw);
  border: 1px solid rgba(140,109,58,0.5); border-radius: 4px;
  padding: 7px; background: #fff;
  box-shadow: 0 24px 60px -32px rgba(24,34,56,0.35);
}
.cover-figure img { display: block; width: 100%; height: auto; border-radius: 2px; }
.slide--cover .cover-conf {
  margin-top: 1.8rem; font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-on-paper-faint);
}

/* generic grids */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3.4rem); align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 800px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

.deck-card {
  border: 1px solid rgba(140,109,58,0.35); border-radius: 6px;
  background: #fff; padding: 1.4rem 1.4rem 1.3rem;
}
.deck-card h3 {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--brass-800); margin: 0 0 0.6rem;
}
.deck-card .big {
  font-family: var(--font-display); font-weight: 620;
  font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--text-on-paper);
  line-height: 1.05; margin-bottom: 0.4rem;
}
.deck-card p { margin: 0; font-size: 0.85rem; color: var(--text-on-paper-muted); line-height: 1.6; }
.deck-card p strong { color: var(--text-on-paper); }

.deck-list { list-style: none; margin: 0; padding: 0; }
.deck-list li {
  padding: 0.85rem 0.2rem;
  border-top: 1px solid rgba(140,109,58,0.3);
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem;
  font-size: 0.92rem; color: var(--text-on-paper-muted);
}
.deck-list li:last-child { border-bottom: 1px solid rgba(140,109,58,0.3); }
.deck-list li::before {
  content: "◆"; color: var(--brass-700); font-size: 0.55rem; line-height: 2.1;
}
.deck-list li strong { color: var(--text-on-paper); font-weight: 600; }

/* budget table */
.deck-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.deck-table th {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-on-paper-faint); font-weight: 500;
  text-align: right; padding: 0 0.55rem 0.55rem;
  border-bottom: 1px solid rgba(140,109,58,0.45);
}
.deck-table th:first-child { text-align: left; padding-left: 0; }
.deck-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid rgba(24,34,56,0.08);
  text-align: right; font-variant-numeric: tabular-nums;
  color: var(--text-on-paper-muted);
}
.deck-table td:first-child { text-align: left; padding-left: 0; color: var(--text-on-paper); }
.deck-table .num { font-family: var(--font-mono); font-size: 0.72rem; }
.deck-table .row-sub td { color: var(--text-on-paper); font-weight: 600; }
.deck-table .row-total td {
  border-top: 1px solid rgba(140,109,58,0.45); border-bottom: none;
  font-weight: 600; color: var(--brass-800);
  font-family: var(--font-mono); font-size: 0.74rem;
}

/* waterfall on deck */
.deck-wf { list-style: none; margin: 0; padding: 0; counter-reset: wf; }
.deck-wf li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  padding-bottom: 1.05rem; position: relative;
}
.deck-wf li::before {
  counter-increment: wf; content: counter(wf);
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--brass-700); color: var(--brass-800);
  font-family: var(--font-mono); font-size: 0.66rem;
  display: flex; align-items: center; justify-content: center;
  background: #fff; position: relative; z-index: 1;
  grid-row: 1 / span 2;
}
.deck-wf p { grid-column: 2; }
.deck-wf li::after {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: -2px;
  width: 1px; background: rgba(140,109,58,0.35);
}
.deck-wf li:last-child::after { display: none; }
.deck-wf h4 { margin: 0.25rem 0 0.15rem; font-size: 0.92rem; font-weight: 600; color: var(--text-on-paper); }
.deck-wf h4 span { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--brass-800); margin-left: 0.35rem; }
.deck-wf p { margin: 0; font-size: 0.8rem; color: var(--text-on-paper-muted); }

.deck-foot-note {
  margin-top: 1.4rem; font-size: 0.68rem; line-height: 1.65;
  color: var(--text-on-paper-faint); max-width: 72ch;
}

/* team */
.deck-person h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 620; margin: 0 0 0.15rem; color: var(--text-on-paper); }
.deck-person .role {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass-800); margin: 0 0 0.7rem;
}
.deck-person p { margin: 0; font-size: 0.84rem; color: var(--text-on-paper-muted); line-height: 1.65; }

/* ── Print: every slide on its own page ── */
@media print {
  body { overflow: visible; background: #fff; }
  .deck-bar, .deck-hud, .deck-progress { display: none; }
  .slides { height: auto; }
  .slide {
    position: static; opacity: 1; visibility: visible; transform: none;
    page-break-after: always; min-height: 95vh;
    background: #fff;
  }
}

@media (max-width: 700px) {
  .slide {
    justify-content: flex-start;
    padding: 4.6rem 1.2rem 5.5rem;
  }
  .deck-hint { display: none; }

  /* compact chrome that actually fits 390px — solid bars so
     scrolling slide content never collides with the chrome */
  .deck-bar {
    padding: 0.7rem 1rem;
    background: rgba(252,251,247,0.97);
    border-bottom: 1px solid rgba(140,109,58,0.3);
  }
  .deck-hud {
    background: rgba(252,251,247,0.97);
    border-top: 1px solid rgba(140,109,58,0.3);
  }
  .deck-brand .w { display: none; }
  .deck-brand .n { font-size: 1.05rem; }
  .deck-mark { width: 26px; height: 26px; }
  .deck-exit {
    font-size: 0.62rem; letter-spacing: 0.12em;
    padding: 0.4rem 0.7rem; white-space: nowrap;
  }
  .deck-hud { padding: 0.8rem 1rem; }
  .deck-counter { letter-spacing: 0.1em; }
  .deck-arrows button { padding: 0.55rem 1.05rem; }

  .slide h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .cover-figure { max-width: 86vw; }
  .cover-mark { width: 46px; height: 46px; }
  .deck-table { font-size: 0.78rem; }
  .deck-table th, .deck-table td { padding-left: 0.35rem; padding-right: 0.35rem; }
}
