@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; }
}

.slide{font-family:system-ui,"PingFang TC","Noto Sans TC",sans-serif}
.theme-ink .page-number{color:#fff}
.pitch-copy{font-size:clamp(16px,3cqw,40px);line-height:1.5;max-width:30em;margin:1.2em 0 .7em}
.ref{display:inline-block;font-size:clamp(13px,1.7cqw,24px);color:inherit;margin-top:.5em;text-underline-offset:.22em}
.split-media video{width:100%;height:100%;object-fit:contain;background:#111;display:block}
.cover-copy h2{font-size:clamp(30px,6cqw,86px);line-height:1.12}

/* Editorial layout for the proposal and its case studies. */
.slide.theme-ink{background:#10161b}
.slide.theme-paper{background:#f2eee4;color:#142322}
.slide .eyebrow{letter-spacing:.13em}
.layout-cover .cover-copy{max-width:86%}
.layout-cover{background:radial-gradient(ellipse at 100% 100%,#25443c 0%,#10161b 62%)}
.layout-argument .slide-frame{display:flex;flex-direction:column;justify-content:center;padding-top:10%;padding-bottom:5%}
.layout-argument .pitch-copy{margin-top:.65em}
.slide.layout-argument>.page-number{position:absolute;left:auto;top:5%;right:5.6%}
.split-media:has(video) figcaption{bottom:auto;top:4%;left:5%;padding:.4em .65em;background:#10161be8;border-radius:.2em;z-index:2}
.case-study .split-media{background:#080a0b}
.case-study .split-copy{padding:5% 8% 5% 6%;gap:0;justify-content:center}
.case-study .split-copy h2{font-size:5cqw;margin:.12em 0}
.case-study .split-copy .case-intro{font-size:1.6cqw;margin:.1em 0 .8em}
.case-metrics{margin:.5em 0;display:grid;grid-template-columns:1fr 1fr;gap:1.1cqw}
.case-metrics>div{padding:.75cqw 0;border-top:1px solid #52605d}
.case-metrics dt{font-size:1.18cqw;color:#aedbc8}
.case-metrics dd{font-size:2.04cqw;font-weight:750;color:#fff;margin:.25em 0;line-height:1.2}
.case-metrics span{display:block;font-size:1.2cqw;line-height:1.45;color:#c5cdcb}
.case-study .split-copy .case-sources{font-size:1cqw;margin:.7em 0 0}
.case-sources a{color:inherit;text-underline-offset:.22em}

.split-media::after, .split-media figcaption { pointer-events: none; }

.case-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#24372f;color:white;gap:1rem}.case-placeholder p{font-size:4cqw;font-weight:700}.case-placeholder a{font-size:1.5cqw;color:#fff;position:relative;z-index:2}

/* Give landscape video more room while preserving the full frame. */
.slide.video-wide { grid-template-columns: 64% 36%; }
.video-wide .split-copy { padding: 3cqw 3.2cqw 3cqw 2.5cqw; }
.video-wide .split-copy h2 { font-size: 3.55cqw; line-height: 1.14; margin-top: 2.6cqw; }
.video-wide .split-copy > p:not(.eyebrow):not(.split-note) { font-size: 1.65cqw; line-height: 1.45; margin-top: 1.5cqw; }
@media print { .slide.video-wide { grid-template-columns: 64% 36% !important; } }

.case-study .split-copy .case-sources { font-size: .82cqw; opacity:.75; }
.case-metrics span { font-size:1.2cqw; }
.case-metrics>div:last-child dd { font-size:1.7cqw; }
.case-metrics>div:last-child span { font-size:1.2cqw; }

.case-metrics dd {display:flex;align-items:baseline;gap:.12em;white-space:nowrap}
.case-metrics dd .metric-figure {font-size:1.5em;line-height:1;letter-spacing:-.035em;color:#c7eddd}
.case-metrics dd small {font-size:.58em;font-weight:650;color:#fff}

.layout-cover .pitch-copy{font-size:clamp(20px,3cqw,40px)}
.layout-cover .ref{font-size:clamp(20px,1.7cqw,24px)}

/* Taiwan short-drama market brief */
.slide.market-brief .slide-frame{padding:5.5% 6% 4%;justify-content:flex-start}
.market-brief h2{font-size:4.05cqw;margin:.23em 0 .43em;line-height:1.15}
.market-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.45cqw}
.market-stats>div{padding:1.13cqw;background:#e3e9de}
.market-stats strong,.market-stats span{display:block}
.market-stats strong{color:#225549;font-size:3.05cqw;line-height:1.14;margin-bottom:.35cqw}
.market-stats span{font-size:1.27cqw;line-height:1.35}
.market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1cqw 2.6cqw;margin-top:1.55cqw}
.market-grid>div{border-top:1px solid #a5b2a3;padding-top:.75cqw}
.market-grid h3{font-size:1.9cqw;margin:0 0 .3cqw}
.market-grid p{font-size:1.61cqw;line-height:1.47;margin:0}
.market-sources{font-size:1.26cqw;margin:1.35cqw 0 0;color:#344e47}
.market-sources a{color:inherit;text-underline-offset:.2em}

/* Model introduction for the Alex meeting */
.slide.models-overview{grid-template-columns:66% 34%}
.models-overview .split-copy{padding:4cqw 3cqw 3cqw;justify-content:center;gap:0}
.models-overview h2{font-size:3.5cqw;line-height:1.17;margin:.65em 0 .45em}
.models-overview .split-copy>p:not(.eyebrow){font-size:1.55cqw;line-height:1.4}
.models-list p{font-size:1.65cqw;line-height:1.35;margin:.6em 0}
.models-list strong{color:#aedbc8}
.slide .split-copy .model-caption{font-size:1.13cqw;line-height:1.4;color:#c5cdcb;margin-top:1.15em}
.flash-figures{display:grid;grid-template-columns:1fr 1.3fr;gap:1cqw;margin:1.2cqw 0}
.flash-figures strong{display:block;font-size:3.8cqw;line-height:1.1;color:#aedbc8}
.flash-figures span{display:block;font-size:1.18cqw;line-height:1.4;margin-top:.4em}
.flash-launch .split-copy h2{margin-top:1.4cqw}
.flash-launch .split-copy .ref{font-size:1.35cqw}
