@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f4f1e8;
  --paper-2: #e9e4d8;
  --ink: #10233d;
  --ink-2: #07111e;
  --muted: #526174;
  --quiet: #778391;
  --line: #c9c3b7;
  --orange: #e64f2a;
  --teal: #0b756a;
  --blue: #245f8e;
  --white: #fffdf8;
  --display: "Manrope", "Avenir Next", "Helvetica Neue", "Noto Sans", "Noto Sans SC", Arial, sans-serif;
  --mono: "SFMono-Regular", "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #05070b;
  color: var(--ink);
  font-family: var(--display);
  text-rendering: optimizeLegibility;
}

body {
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  background: #05070b;
}

.deck-shell {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
}

.deck-stage {
  position: relative;
  width: min(100vw, 177.777778vh);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
  container-type: inline-size;
  box-shadow: 0 2.4cqw 6cqw rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.8cqw) scale(0.996);
  transition: opacity 280ms ease, transform 380ms var(--ease), visibility 280ms;
}

.slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.slide .reveal {
  opacity: 0;
  transform: translateY(1.4cqw);
  transition: opacity 420ms ease 80ms, transform 520ms var(--ease) 80ms;
}

.slide .reveal-late {
  transition-delay: 190ms;
}

.slide.is-active .reveal {
  opacity: 1;
  transform: none;
}

.theme-paper { background: var(--paper); color: var(--ink); }
.theme-ink { background: var(--ink-2); color: var(--white); }
.theme-orange { background: var(--orange); color: var(--white); }

.eyebrow {
  margin: 0;
  color: currentColor;
  font: 700 1.22cqw/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-orange { color: var(--orange); }
.eyebrow-teal { color: #78bfb5; }
.eyebrow-blue { color: var(--blue); }

.page-number {
  color: var(--muted);
  font: 700 1.12cqw/1 var(--mono);
  letter-spacing: 0.08em;
}

.page-number-light { color: rgba(255, 253, 248, 0.76); }

.speaker-notes { display: none !important; }

.layout-cover .accent-rule {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.9cqw;
  background: var(--orange);
}

.cover-copy {
  position: absolute;
  top: 8.2%;
  left: 7.4%;
  width: 76%;
}

.cover-copy h1 {
  max-width: 75%;
  margin: 12.5cqw 0 0;
  font-size: 7.6cqw;
  font-weight: 820;
  line-height: 0.9;
  letter-spacing: -0.062em;
}

.cover-copy h1 span { color: var(--orange); }

.cover-subtitle {
  max-width: 62%;
  margin: 2.4cqw 0 0;
  color: #bdc9d6;
  font-size: 2.25cqw;
  font-weight: 500;
  line-height: 1.28;
}

.cover-meta {
  position: absolute;
  right: 7.4%;
  bottom: 8.1%;
  left: 7.4%;
  display: flex;
  gap: 1.1cqw;
}

.cover-meta span {
  padding: 0.65cqw 0.9cqw;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #d9e1e8;
  font: 650 1.02cqw/1 var(--mono);
}

.layout-cover > .page-number {
  position: absolute;
  top: 6.6%;
  right: 5.6%;
}

.picture-media {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #05070b;
}

.picture-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.picture-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.05) 0%, rgba(4, 8, 14, 0.06) 42%, rgba(4, 8, 14, 0.86) 100%);
}

.picture-kicker {
  position: absolute;
  top: 6.5%;
  left: 5.8%;
  margin: 0;
  padding: 0.72cqw 0.92cqw;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.48);
  color: var(--white);
  font: 700 1.2cqw/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.picture-keyword {
  position: absolute;
  bottom: 8.8%;
  left: 5.8%;
  margin: 0;
  color: var(--white);
  font-size: 7.3cqw;
  font-weight: 820;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-shadow: 0 0.3cqw 2cqw rgba(0, 0, 0, 0.66);
}

.source-credit {
  position: absolute;
  right: 5.8%;
  bottom: 7.5%;
  max-width: 30%;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font: 600 0.92cqw/1.35 var(--mono);
  text-align: right;
}

.layout-picture > .page-number {
  position: absolute;
  top: 6.8%;
  right: 5.8%;
  z-index: 2;
}

.slide-frame {
  position: absolute;
  inset: 7.5% 7.4% 8.6%;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.layout-argument h2,
.layout-process h2 {
  max-width: 87%;
  margin: 5.2cqw 0 0;
  font-size: 4.55cqw;
  font-weight: 790;
  line-height: 1.02;
  letter-spacing: -0.046em;
}

.argument-grid {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2cqw;
}

.argument-grid article {
  min-height: 15.5cqw;
  padding: 2cqw 1.6cqw 1.6cqw;
  border-top: 0.42cqw solid var(--ink);
  background: rgba(255, 253, 248, 0.56);
}

.argument-grid strong {
  color: var(--orange);
  font: 750 1.18cqw/1 var(--mono);
}

.argument-grid h3 {
  margin: 1.45cqw 0 0;
  font-size: 2.42cqw;
  line-height: 1;
}

.argument-grid p {
  margin: 1.1cqw 0 0;
  color: var(--muted);
  font-size: 1.72cqw;
  font-weight: 520;
  line-height: 1.35;
}

.layout-split {
  display: grid;
  grid-template-columns: 54% 46%;
}

.split-media {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #05070b;
}

.split-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 74%, rgba(7, 17, 30, 0.56) 100%);
}

.split-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.split-media figcaption {
  position: absolute;
  z-index: 2;
  bottom: 4.8%;
  left: 5.6%;
  color: rgba(255, 255, 255, 0.76);
  font: 600 0.92cqw/1.35 var(--mono);
}

.split-copy {
  align-self: center;
  padding: 5.8cqw 5.2cqw 5.8cqw 4.4cqw;
}

.split-copy h2 {
  margin: 4.8cqw 0 0;
  font-size: 4.5cqw;
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.05em;
}

.split-copy > p:not(.eyebrow):not(.split-note) {
  margin: 2.4cqw 0 0;
  color: #c5d0db;
  font-size: 1.8cqw;
  line-height: 1.35;
}

.split-rule {
  width: 5.4cqw;
  height: 0.38cqw;
  margin-top: 2.5cqw;
  background: var(--orange);
}

.split-note {
  margin: 1.45cqw 0 0;
  color: #8ebeb7;
  font: 600 1.26cqw/1.4 var(--mono);
}

.split-note code { color: var(--white); }

.layout-split > .page-number {
  position: absolute;
  top: 6.8%;
  right: 5.8%;
}

.layout-process h2 { max-width: 74%; }

.process-row {
  position: absolute;
  right: 0;
  bottom: 8.2cqw;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.9cqw;
}

.process-row article {
  min-height: 13.5cqw;
  padding: 1.55cqw 1.25cqw;
  border: 1px solid var(--line);
  border-top: 0.38cqw solid var(--blue);
  background: var(--white);
}

.process-row b {
  color: var(--blue);
  font: 750 1.18cqw/1 var(--mono);
}

.process-row h3 {
  margin: 1.5cqw 0 0;
  font-size: 2.05cqw;
  line-height: 1;
}

.process-row p {
  margin: 1.08cqw 0 0;
  color: var(--muted);
  font-size: 1.38cqw;
  line-height: 1.34;
}

.process-arrow {
  align-self: center;
  color: var(--orange);
  font-size: 2cqw;
  font-weight: 800;
}

.process-takeaway {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  color: var(--muted);
  font: 650 1.28cqw/1.3 var(--mono);
}

.closing-mark {
  position: absolute;
  top: 6.4%;
  left: 6.2%;
  color: rgba(255, 255, 255, 0.28);
  font-size: 4.2cqw;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.closing-copy {
  position: absolute;
  top: 18%;
  left: 13.5%;
  width: 73%;
}

.closing-copy h2 {
  margin: 5.8cqw 0 0;
  font-size: 6.25cqw;
  font-weight: 840;
  line-height: 0.94;
  letter-spacing: -0.058em;
}

.closing-copy h2 span { color: var(--ink); }

.closing-copy > p:last-child {
  max-width: 70%;
  margin: 2.7cqw 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 2.02cqw;
  line-height: 1.34;
}

.closing-link {
  position: absolute;
  bottom: 7.8%;
  left: 13.5%;
  color: var(--white);
  font: 700 1.28cqw/1 var(--mono);
  text-underline-offset: 0.34cqw;
}

.layout-closing > .page-number {
  position: absolute;
  top: 6.8%;
  right: 5.8%;
}

.deck-controls {
  position: fixed;
  z-index: 20;
  right: 2rem;
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 10, 16, 0.7);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  opacity: 0.36;
  transition: opacity 160ms ease;
}

.deck-controls:hover,
.deck-controls:focus-within { opacity: 1; }

.deck-controls button {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: 700 0.86rem/1 var(--mono);
  place-items: center;
  cursor: pointer;
}

.deck-controls button:hover { background: rgba(255, 255, 255, 0.12); }
.deck-controls button:focus-visible { outline: 2px solid #71d6c8; outline-offset: 2px; }

.control-counter {
  min-width: 3.9rem;
  color: rgba(255, 255, 255, 0.86);
  font: 700 0.78rem/1 var(--mono);
  text-align: center;
}

.control-divider {
  width: 1px;
  height: 1.2rem;
  margin: 0 0.15rem;
  background: rgba(255, 255, 255, 0.18);
}

.deck-progress {
  position: fixed;
  z-index: 21;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.deck-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width 260ms var(--ease);
}

.presenter-panel {
  display: none;
  min-width: 0;
  margin: 1.1rem 1.1rem 1.1rem 0;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #0c121b;
  color: #eaf0f5;
}

body.presenter .app-shell {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.78fr);
  gap: 1.1rem;
  padding: 1.1rem 0 1.1rem 1.1rem;
}

body.presenter .deck-stage {
  width: min(100%, calc((100vh - 2.2rem) * 16 / 9));
}

body.presenter .presenter-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 1rem;
}

.presenter-topline {
  display: flex;
  justify-content: space-between;
  color: #7fc6bc;
  font: 700 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presenter-current {
  margin: 0;
  color: #b9c4ce;
  font: 650 0.9rem/1.35 var(--mono);
}

#presenter-notes {
  width: 100%;
  min-height: 0;
  resize: none;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: #f4f7fa;
  font-size: 1rem;
  line-height: 1.55;
}

#presenter-notes:focus { border-color: #70c7bb; }

.presenter-next {
  display: grid;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.presenter-next span,
.presenter-help {
  color: #7f8c99;
  font: 650 0.72rem/1.35 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presenter-next strong { font-size: 1.05rem; line-height: 1.35; }
.presenter-help { margin: 0; text-transform: none; letter-spacing: 0; }

body.audience .deck-controls,
body.audience .deck-progress,
body.audience .presenter-panel { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  body.presenter .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 42vh;
    padding: 0.7rem;
  }

  body.presenter .presenter-panel { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@page {
  size: 13.333333in 7.5in;
  margin: 0;
}

@media print {
  html,
  body {
    width: 13.333333in;
    height: auto;
    overflow: visible;
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .app-shell,
  .deck-shell,
  .deck-stage {
    display: block !important;
    width: 13.333333in !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
  }

  .slide {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 13.333333in !important;
    height: 7.5in !important;
    break-after: page;
    page-break-after: always;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }

  .slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .slide.layout-split {
    display: grid !important;
    grid-template-columns: 54% 46% !important;
  }

  .slide .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .deck-controls,
  .deck-progress,
  .presenter-panel,
  .speaker-notes { display: none !important; }
}

.e-text,.e-image,.e-rect{position:absolute;margin:0;padding:0;border:0}.e-text{white-space:pre;display:flex;align-items:center}.e-text[style*="text-align:center"]{justify-content:center}.e-text[style*="text-align:right"]{justify-content:flex-end}.e-image{object-fit:contain}.deck-controls{right:auto;left:50%;transform:translateX(-50%);width:max-content}.custom-slide{font-family:Manrope,'PingFang HK',sans-serif}.materials-link{position:fixed;right:18px;top:12px;z-index:30;color:#d5e1ee;background:#10233d;padding:7px 11px;border-radius:6px;text-decoration:none;font:14px Manrope,sans-serif}.materials-link span{font:11px 'PingFang HK',sans-serif;margin-left:5px}@media print{.materials-link{display:none}.custom-slide{page-break-after:always;break-after:page}}

.teaser-player{position:absolute;background:#000}.teaser-player video{width:100%;height:100%;object-fit:contain}.teaser-player button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:1cqw 1.5cqw;border:1px solid #fff;border-radius:.5cqw;background:#07111eee;color:white;font:700 1.65cqw Manrope;cursor:pointer;white-space:nowrap}.teaser-player small{display:block;font-size:1.2cqw;margin-top:.4cqw}.teaser-player video:fullscreen{width:100vw;height:100vh;background:black;object-fit:contain}.teaser-player button[hidden]{display:none}@media print{.teaser-player button{display:none}.teaser-player video{object-fit:contain}}
