/* ==========================================================================
   DESIGN TOKENS: SWISS-INDUSTRIAL EDITORIAL SYSTEM
   ========================================================================== */
:root {
  color-scheme: light dark;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Light canvas base tokens (default) */
  --studio-bg: #111315;
  --stage-bg: #f6f4ef;
  --stage-grid: rgba(20, 22, 25, 0.045);
  --surface-card: #ffffff;
  --surface-muted: #ece8df;
  --surface-tint: #ebe6dc;
  --surface-ink: #17191c;
  --ink-text: #f6f4ef;
  --ink-muted: #a6acb4;

  --text-primary: #141619;
  --text-secondary: #3c424b;
  --text-muted: #676e78;

  --border-line: rgba(20, 22, 25, 0.12);
  --border-strong: rgba(20, 22, 25, 0.24);
  --stage-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.65);

  /* Palette 1 (Default): Terracotta & Deep Pine */
  --accent-primary: #c94624;
  --accent-primary-ink: #ffffff;
  --accent-secondary: #1e5b4c;
  --accent-soft: rgba(201, 70, 36, 0.1);
  --accent-sec-soft: rgba(30, 91, 76, 0.11);
  --accent-on-dark: #f27452;
  --sec-on-dark: #54bfa3;
}

/* Palette 2: Industrial Blueprint & Machined Brass */
html[data-palette='blueprint'] {
  --stage-bg: #f2f4f8;
  --surface-muted: #e5e9f1;
  --surface-tint: #e3e8f2;
  --surface-ink: #101b2e;
  --accent-primary: #1a4b8c;
  --accent-secondary: #a86f0c;
  --accent-soft: rgba(26, 75, 140, 0.1);
  --accent-sec-soft: rgba(168, 111, 12, 0.12);
  --accent-on-dark: #6ba5f2;
  --sec-on-dark: #e6b34c;
}

/* Palette 3: Sage Workshop & Terracotta Clay */
html[data-palette='sage'] {
  --stage-bg: #f3f4ef;
  --surface-muted: #e6e8df;
  --surface-tint: #e3e7dc;
  --surface-ink: #19211d;
  --accent-primary: #26634d;
  --accent-secondary: #b04b31;
  --accent-soft: rgba(38, 99, 77, 0.11);
  --accent-sec-soft: rgba(176, 75, 49, 0.11);
  --accent-on-dark: #63c7a2;
  --sec-on-dark: #eb8468;
}

/* ==========================================================================
   COLOR SCHEME OVERRIDE MIRRORING (Modern Web Guidance)
   ========================================================================== */
:root:has(> head > meta[name='color-scheme'][content='light']) {
  color-scheme: light;
}

:root:has(> head > meta[name='color-scheme'][content='dark']) {
  color-scheme: dark;
  --studio-bg: #07080a;
  --stage-bg: #15171a;
  --stage-grid: rgba(246, 244, 239, 0.045);
  --surface-card: #1d2024;
  --surface-muted: #24282d;
  --surface-tint: #21262c;
  --surface-ink: #0d0f12;
  --ink-text: #f4f2ed;
  --ink-muted: #9aa2ad;

  --text-primary: #f2f0eb;
  --text-secondary: #c9cdd4;
  --text-muted: #939aa4;

  --border-line: rgba(246, 244, 239, 0.12);
  --border-strong: rgba(246, 244, 239, 0.25);

  --accent-primary: #e86b48;
  --accent-primary-ink: #141619;
  --accent-secondary: #53b89d;
  --accent-soft: rgba(232, 107, 72, 0.16);
  --accent-sec-soft: rgba(83, 184, 157, 0.16);
}

:root:has(> head > meta[name='color-scheme'][content='dark'])[data-palette='blueprint'] {
  --stage-bg: #111622;
  --surface-card: #182030;
  --surface-muted: #1e283b;
  --surface-tint: #1b2538;
  --surface-ink: #0a101b;
  --accent-primary: #639ef0;
  --accent-secondary: #dfab48;
  --accent-soft: rgba(99, 158, 240, 0.16);
  --accent-sec-soft: rgba(223, 171, 72, 0.16);
}

:root:has(> head > meta[name='color-scheme'][content='dark'])[data-palette='sage'] {
  --stage-bg: #131815;
  --surface-card: #1a211d;
  --surface-muted: #212a25;
  --surface-tint: #1f2822;
  --surface-ink: #0b100d;
  --accent-primary: #5bc29d;
  --accent-secondary: #e27e62;
  --accent-soft: rgba(91, 194, 157, 0.16);
  --accent-sec-soft: rgba(226, 126, 98, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:has(> head > meta[name='color-scheme'][content='light dark']) {
    --studio-bg: #07080a;
    --stage-bg: #15171a;
    --stage-grid: rgba(246, 244, 239, 0.045);
    --surface-card: #1d2024;
    --surface-muted: #24282d;
    --surface-tint: #21262c;
    --surface-ink: #0d0f12;
    --ink-text: #f4f2ed;
    --ink-muted: #9aa2ad;
    --text-primary: #f2f0eb;
    --text-secondary: #c9cdd4;
    --text-muted: #939aa4;
    --border-line: rgba(246, 244, 239, 0.12);
    --border-strong: rgba(246, 244, 239, 0.25);
    --accent-primary: #e86b48;
    --accent-primary-ink: #141619;
    --accent-secondary: #53b89d;
    --accent-soft: rgba(232, 107, 72, 0.16);
    --accent-sec-soft: rgba(83, 184, 157, 0.16);
  }
}

.theme-opt-light { display: none; }
.theme-opt-dark { display: inline; }

:root:has(> head > meta[name='color-scheme'][content='dark']) .theme-opt-dark { display: none; }
:root:has(> head > meta[name='color-scheme'][content='dark']) .theme-opt-light { display: inline; }

@media (prefers-color-scheme: dark) {
  :root:has(> head > meta[name='color-scheme'][content='light dark']) .theme-opt-dark { display: none; }
  :root:has(> head > meta[name='color-scheme'][content='light dark']) .theme-opt-light { display: inline; }
}

/* ==========================================================================
   BASE RESET & STUDIO VIEWPORT
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--studio-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 8px 14px;
  background: var(--accent-primary);
  color: var(--accent-primary-ink);
  border-radius: 6px;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
}

.studio-viewport {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 20px 18px;
}

/* ==========================================================================
   16:9 PROPORTIONAL ARCHITECTURAL SLIDE STAGE (1280x720 LOGICAL)
   ========================================================================== */
.stage-scaler {
  width: calc(1280px * var(--stage-scale, 1));
  height: calc(720px * var(--stage-scale, 1));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.slide-stage {
  position: relative;
  width: 1280px;
  height: 720px;
  transform: scale(var(--stage-scale, 1));
  transform-origin: center center;
  background: var(--stage-bg);
  border-radius: 14px;
  border: 1px solid var(--border-line);
  box-shadow: var(--stage-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: none;
}

.stage-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--stage-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--stage-grid) 1px, transparent 1px);
  background-size: 40px 40px;
}

.reg-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-color: var(--border-strong);
  border-style: solid;
  border-width: 0;
  z-index: 3;
}
.reg-tl { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; }
.reg-tr { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; }
.reg-bl { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.reg-br { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* Running Header (Text only, no icon/logo) */
.stage-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 34px 11px;
  border-bottom: 1px solid var(--border-line);
  font-size: 12px;
}

.header-subject {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.header-divider {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
}

.header-counter {
  color: var(--text-primary);
  font-weight: 600;
}

.stage-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  padding: 18px 36px 18px;
  display: flex;
  flex-direction: column;
  view-transition-name: slide-stage;
}

/* ==========================================================================
   MORPH + DIRECTIONAL VIEW TRANSITIONS
   ========================================================================== */
.slide.is-active .morph-kicker { view-transition-name: slide-kicker; }
.slide.is-active .morph-title { view-transition-name: slide-title; }
.slide.is-active .morph-primary { view-transition-name: slide-primary; }
.slide.is-active .morph-visual { view-transition-name: slide-visual; }

@keyframes stage-out-left {
  to { opacity: 0; transform: translateX(-22px); }
}
@keyframes stage-in-right {
  from { opacity: 0; transform: translateX(22px); }
}
@keyframes stage-out-right {
  to { opacity: 0; transform: translateX(22px); }
}
@keyframes stage-in-left {
  from { opacity: 0; transform: translateX(-22px); }
}

::view-transition-group(slide-stage),
::view-transition-group(slide-kicker),
::view-transition-group(slide-title),
::view-transition-group(slide-primary),
::view-transition-group(slide-visual) {
  animation-duration: 0.48s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(slide-kicker),
::view-transition-new(slide-kicker),
::view-transition-old(slide-title),
::view-transition-new(slide-title) {
  width: fit-content;
  height: 100%;
  object-fit: none;
}

html:active-view-transition-type(forward)::view-transition-old(slide-stage) {
  animation-name: stage-out-left;
}
html:active-view-transition-type(forward)::view-transition-new(slide-stage) {
  animation-name: stage-in-right;
}
html:active-view-transition-type(backward)::view-transition-old(slide-stage) {
  animation-name: stage-out-right;
}
html:active-view-transition-type(backward)::view-transition-new(slide-stage) {
  animation-name: stage-in-left;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) {
    animation: none !important;
  }
}

/* Slides visibility */
.slide {
  display: none;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.slide.is-active {
  display: flex;
}

@keyframes card-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .panel-surface,
  .slide.is-active .panel-tint,
  .slide.is-active .panel-ink,
  .slide.is-active .quote-card,
  .slide.is-active .timwood-card,
  .slide.is-active .pillar-card,
  .slide.is-active .bib-card,
  .slide.is-active .thanks-card,
  .slide.is-active .cover-diagram {
    animation: card-reveal 0.44s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .slide.is-active .timwood-card:nth-child(2),
  .slide.is-active .pillar-card:nth-child(2),
  .slide.is-active .bib-card:nth-child(2),
  .slide.is-active .quote-card:nth-child(2) { animation-delay: 0.04s; }
  .slide.is-active .timwood-card:nth-child(3),
  .slide.is-active .pillar-card:nth-child(3),
  .slide.is-active .bib-card:nth-child(3),
  .slide.is-active .quote-card:nth-child(3) { animation-delay: 0.08s; }
  .slide.is-active .timwood-card:nth-child(4),
  .slide.is-active .pillar-card:nth-child(4),
  .slide.is-active .bib-card:nth-child(4),
  .slide.is-active .quote-card:nth-child(4) { animation-delay: 0.12s; }
  .slide.is-active .timwood-card:nth-child(5),
  .slide.is-active .bib-card:nth-child(5) { animation-delay: 0.16s; }
  .slide.is-active .timwood-card:nth-child(6),
  .slide.is-active .bib-card:nth-child(6) { animation-delay: 0.2s; }
  .slide.is-active .timwood-card:nth-child(7) { animation-delay: 0.24s; }
}

/* ==========================================================================
   SLIDE HEADINGS & SURFACES
   ========================================================================== */
.slide-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slide-kicker,
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.slide-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.35vw, 31px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.mono-inline {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent-primary);
}

.panel-surface,
.panel-tint,
.panel-ink,
.quote-card,
.timwood-card,
.pillar-card,
.bib-card {
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border-line);
}

.panel-surface,
.quote-card,
.timwood-card,
.pillar-card,
.bib-card {
  background: var(--surface-card);
}

.panel-muted {
  background: var(--surface-muted);
}

.panel-tint {
  background: var(--surface-tint);
}

.panel-ink {
  background: var(--surface-ink);
  color: var(--ink-text);
  border-color: transparent;
}

.panel-heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 700;
  color: inherit;
}

.panel-header-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
}

.panel-header-line .panel-heading {
  margin: 0;
}

.mono-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
}

.clean-list,
.numbered-clean {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(12.5px, 1.1vw, 14.5px);
  line-height: 1.48;
  color: var(--text-secondary);
}

.clean-list li::marker,
.numbered-clean li::marker {
  color: var(--accent-primary);
  font-weight: 700;
}

/* ==========================================================================
   SLIDE 1: EDITORIAL COVER & VALUE STREAM DIAGRAM
   ========================================================================== */
.cover-layout {
  display: grid;
  grid-template-columns: 1.34fr 0.9fr;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.cover-editorial {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cover-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.1vw, 41px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.title-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: var(--accent-primary);
}

.cover-lead {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(13.5px, 1.22vw, 15.5px);
  line-height: 1.5;
  color: var(--text-secondary);
}

.team-ledger {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-ledger-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.team-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-card);
  border: 1px solid var(--border-line);
}

.team-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.team-name {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--text-primary);
}

.team-nim {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.cover-diagram {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-svg {
  width: 100%;
  max-height: 410px;
  color: var(--accent-primary);
}

.svg-plate {
  fill: var(--surface-card);
  stroke: var(--border-line);
  stroke-width: 1.2;
}

.svg-hairline {
  stroke: var(--border-line);
  stroke-width: 1;
}

.svg-mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  fill: var(--text-muted);
  letter-spacing: 0.05em;
}

.svg-grid-dot {
  fill: var(--border-line);
}

.svg-dot-accent {
  fill: var(--accent-secondary);
}

.svg-ring-outer-track {
  fill: none;
  stroke: var(--border-line);
  stroke-width: 5;
}

.svg-ring-rotator,
.svg-ring-counter {
  transform-box: fill-box;
  transform-origin: center;
}

.svg-ring-arc {
  fill: none;
  stroke: var(--accent-secondary);
  stroke-width: 5;
  stroke-dasharray: 72 28;
  stroke-linecap: round;
}

.svg-ring-arc-inner {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 3;
  stroke-dasharray: 28 24;
  stroke-linecap: round;
  opacity: 0.75;
}

@media (prefers-reduced-motion: no-preference) {
  .svg-ring-rotator {
    animation: kaizen-spin 14s linear infinite;
  }
  .svg-ring-counter {
    animation: kaizen-spin-reverse 20s linear infinite;
  }
  .svg-pulse-dot {
    animation: beacon-pulse 2.4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  .svg-flow-pulse {
    animation: flow-dash 1.8s linear infinite;
  }
  .svg-mini-bar,
  .svg-mini-bar-accent {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: mini-bar-breathe 3.6s ease-in-out infinite;
  }
  .svg-mini-bar.b2 { animation-delay: 0.25s; }
  .svg-mini-bar.b3 { animation-delay: 0.5s; }
  .svg-mini-bar.b4 { animation-delay: 0.75s; }
  .svg-mini-bar-accent { animation-delay: 1s; }
}

html.motion-paused .svg-ring-rotator,
html.motion-paused .svg-ring-counter,
html.motion-paused .svg-pulse-dot,
html.motion-paused .svg-flow-pulse,
html.motion-paused .svg-mini-bar,
html.motion-paused .svg-mini-bar-accent {
  animation-play-state: paused !important;
}

@keyframes kaizen-spin {
  to { transform: rotate(360deg); }
}

@keyframes kaizen-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes beacon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

@keyframes flow-dash {
  to { stroke-dashoffset: -16; }
}

@keyframes mini-bar-breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.76); }
}

.svg-inner-disc {
  fill: var(--surface-tint);
  stroke: var(--border-line);
  stroke-width: 1;
}

.svg-node-title {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  fill: var(--text-primary);
}

.svg-node-sub {
  font-family: var(--font-body);
  font-size: 9.5px;
  fill: var(--text-muted);
}

.svg-node-box {
  fill: var(--surface-tint);
  stroke: var(--border-strong);
  stroke-width: 1;
}

.svg-node-accent {
  fill: var(--accent-primary);
}

.svg-step-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  fill: var(--accent-primary);
}

.svg-node-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  fill: var(--text-primary);
}

.svg-step-num-inv {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  fill: var(--accent-primary-ink);
  opacity: 0.82;
}

.svg-node-label-inv {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  fill: var(--accent-primary-ink);
}

.svg-flow-track {
  fill: none;
  stroke: var(--border-line);
  stroke-width: 2.2;
}

.svg-flow-pulse {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.svg-flow-dashed {
  fill: none;
  stroke: var(--accent-secondary);
  stroke-width: 1.8;
  stroke-dasharray: 4 4;
}

.svg-mini-bar {
  fill: rgba(255, 255, 255, 0.24);
}

.svg-mini-bar-accent {
  fill: var(--sec-on-dark);
}

.svg-travel-unit { fill: var(--accent-primary); }
.svg-travel-unit.unit-b { fill: var(--accent-secondary); }

.svg-stat-box { fill: var(--surface-ink); }

.svg-kpi-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  fill: var(--accent-on-dark);
}

.svg-kpi-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  fill: var(--ink-muted);
}

/* ==========================================================================
   SLIDE 2: SPLIT ASYMMETRIC & ANIMATED DONUT
   ========================================================================== */
.split-asymmetric {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 18px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.editorial-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.panel-ink {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.ink-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ink-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent-on-dark);
  font-weight: 600;
}

.ink-caption {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-text);
}

.donut-metric-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: center;
  gap: 16px;
}

.donut-chart {
  width: 144px;
  height: 144px;
}

.donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 14;
}

.donut-segment {
  fill: none;
  stroke-width: 14;
  transform: rotate(-90deg);
  transform-origin: center;
}

.seg-nva {
  stroke: rgba(255, 255, 255, 0.34);
  stroke-dasharray: 212 327;
  stroke-dashoffset: 0;
}

.seg-va {
  stroke: var(--accent-on-dark);
  stroke-dasharray: 33 327;
  stroke-dashoffset: -212;
}

@keyframes donut-draw-nva {
  from { stroke-dasharray: 0 327; }
  to { stroke-dasharray: 212 327; }
}

@keyframes donut-draw-va {
  from { stroke-dasharray: 0 327; }
  to { stroke-dasharray: 33 327; }
}

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .seg-nva {
    animation: donut-draw-nva 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .slide.is-active .seg-va {
    animation: donut-draw-va 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
  }
}

.donut-big {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  fill: var(--ink-text);
}

.donut-sub {
  font-family: var(--font-body);
  font-size: 9.5px;
  fill: var(--ink-muted);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.legend-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.legend-row strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink-text);
}

.legend-row p {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.38;
  color: var(--ink-muted);
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-top: 4px;
  flex-shrink: 0;
}

.swatch-accent { background: var(--accent-on-dark); }
.swatch-muted { background: rgba(255, 255, 255, 0.36); }
.swatch-soft { background: rgba(255, 255, 255, 0.16); }

.ink-source {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   SLIDE 3: MATRIX GRID
   ========================================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.benefit-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-block {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-card);
  border: 1px solid var(--border-line);
}

.benefit-block h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--accent-secondary);
}

.benefit-block p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.44;
  color: var(--text-secondary);
}

/* ==========================================================================
   SLIDE 4: KAJIAN PUSTAKA
   ========================================================================== */
.literature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.quote-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
}

.quote-index {
  font-weight: 700;
  color: var(--accent-primary);
}

.quote-topic {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quote-text {
  margin: 0;
  font-size: clamp(13.5px, 1.18vw, 15px);
  line-height: 1.5;
  color: var(--text-primary);
}

.quote-cite {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  padding-top: 8px;
  border-top: 1px solid var(--border-line);
}

/* ==========================================================================
   SLIDE 5: TIMWOOD BOARD (ALL 7 VISIBLE AT ONCE)
   ========================================================================== */
.timwood-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  flex: 1;
  min-height: 0;
}

.timwood-card {
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.tw-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tw-code {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-tint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.timwood-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--text-primary);
}

.timwood-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.tw-fix {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-secondary);
  padding-top: 6px;
  border-top: 1px solid var(--border-line);
}

.tw-card-wide {
  grid-column: 1 / -1;
  background: var(--surface-tint);
}

.tw-wide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tw-wide-inner .tw-fix {
  border-top: 0;
  padding-top: 0;
  white-space: nowrap;
}

/* ==========================================================================
   SLIDE 6: COMPARISON COLUMNS & CALLOUT
   ========================================================================== */
.comparison-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.col-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-secondary);
  margin-bottom: 6px;
}

.bottom-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 9px;
  background: var(--surface-ink);
  color: var(--ink-text);
}

.callout-key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  white-space: nowrap;
}

.callout-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* ==========================================================================
   SLIDE 7: 4 PILLARS GRID & ANIMATED METRIC BARS (NO INTERACTION NEEDED)
   ========================================================================== */
.solution-split {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.pillar-card {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-primary);
}

.pillar-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--text-primary);
}

.pillar-card p {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.44;
  color: var(--text-secondary);
}

.bar-metrics {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.metric-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-text);
}

.metric-delta {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--sec-on-dark);
}

.metric-track {
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  width: var(--pct, 50%);
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  transform-origin: left center;
}

@keyframes bar-grow {
  from { transform: scaleX(0); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .metric-fill {
    animation: bar-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .slide.is-active .fill-after {
    animation-delay: 0.14s;
  }
}

.fill-before {
  background: rgba(255, 255, 255, 0.22);
  color: var(--ink-text);
}

.fill-after {
  background: var(--sec-on-dark);
  color: #0e1714;
  font-weight: 600;
}

/* ==========================================================================
   SLIDE 8: CLOSING SIMPULAN & SARAN
   ========================================================================== */
.closing-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.closing-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.formula-banner {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--surface-ink);
  color: var(--ink-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.formula-op {
  color: var(--accent-on-dark);
  font-family: var(--font-mono);
}

.formula-result {
  color: var(--sec-on-dark);
  font-weight: 700;
}

/* ==========================================================================
   SLIDE 9: DAFTAR PUSTAKA (FULL BIBLIOGRAPHY GRID)
   ========================================================================== */
.bib-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  flex: 1;
  min-height: 0;
}

.bib-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
}

.bib-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  padding-top: 2px;
  flex-shrink: 0;
}

.bib-card p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   SLIDE 10: PENUTUP — TERIMA KASIH
   ========================================================================== */
.thanks-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-card {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--surface-ink);
  color: var(--ink-text);
  padding: 34px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.thanks-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-on-dark);
}

.thanks-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(54px, 6vw, 76px);
  line-height: 0.96;
  color: var(--ink-text);
}

.thanks-quote {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
  color: var(--ink-muted);
}

.thanks-roster {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.thanks-person {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tp-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-text);
}

.tp-nim {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-on-dark);
}

/* ==========================================================================
   CHAPTER BAR INSIDE STAGE BOTTOM (7 CHAPTERS)
   ========================================================================== */
.chapter-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--border-line);
  background: var(--stage-bg);
}

.chap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border: 0;
  border-right: 1px solid var(--border-line);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chap-btn:last-child {
  border-right: 0;
}

.chap-btn span {
  opacity: 0.7;
}

.chap-btn:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.chap-btn.is-active {
  background: var(--surface-tint);
  color: var(--accent-primary);
  font-weight: 700;
}

/* ==========================================================================
   FLOATING CONTROL DOCK
   ========================================================================== */
.control-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(24, 27, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f2ed;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5);
}

.dock-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
}

.dock-page {
  font-family: var(--font-mono);
  font-size: 12px;
  min-width: 54px;
  text-align: center;
  color: #e6e4df;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 30px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #e6e4df;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.dock-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.dock-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dock-primary {
  background: var(--accent-primary);
  color: var(--accent-primary-ink);
}

.dock-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  background: var(--accent-primary);
}

.dock-pill {
  padding: 0 11px;
  border-color: rgba(255, 255, 255, 0.16);
}

.palette-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.palette-dot[data-set-palette='terracotta'] { background: linear-gradient(135deg, #c94624 50%, #1e5b4c 50%); }
.palette-dot[data-set-palette='blueprint'] { background: linear-gradient(135deg, #1a4b8c 50%, #c88b1e 50%); }
.palette-dot[data-set-palette='sage'] { background: linear-gradient(135deg, #26634d 50%, #b04b31 50%); }

.palette-dot.is-active {
  border-color: #ffffff;
  transform: scale(1.15);
}

/* ==========================================================================
   SPEAKER NOTES DRAWER & OVERVIEW MODAL DIALOG
   ========================================================================== */
.notes-drawer {
  position: fixed;
  right: 20px;
  bottom: 72px;
  width: min(440px, calc(100vw - 40px));
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.45);
  z-index: 60;
}

.notes-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.notes-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notes-heading h3 {
  margin: 0;
  font-size: 14px;
}

.timer-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.timer-ctrl,
.close-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-line);
  background: var(--surface-tint);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.notes-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.overview-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: 84dvh;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--stage-bg);
  color: var(--text-primary);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.65);
}

.overview-dialog::backdrop {
  background: rgba(8, 10, 14, 0.65);
  backdrop-filter: blur(4px);
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.overview-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overview-tile {
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-line);
  background: var(--surface-card);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overview-tile:hover,
.overview-tile.is-current {
  border-color: var(--accent-primary);
  background: var(--surface-tint);
}

.overview-tile span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
}

.overview-tile strong {
  font-size: 13px;
  line-height: 1.35;
}

/* ==========================================================================
   FOCUS RING, RESPONSIVE & PRINT STYLES
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .studio-viewport { padding: 10px; }
  .stage-scaler { width: 100%; height: auto; display: block; }
  .slide-stage { width: 100%; height: auto; transform: none; min-height: 78dvh; }
  .cover-layout,
  .split-asymmetric,
  .matrix-grid,
  .literature-grid,
  .timwood-board,
  .comparison-columns,
  .solution-split,
  .pillars-grid,
  .closing-layout,
  .bib-grid,
  .thanks-roster,
  .overview-grid,
  .team-list {
    grid-template-columns: 1fr;
  }
  .tw-wide-inner { flex-direction: column; align-items: flex-start; }
  .chapter-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .control-dock { flex-wrap: wrap; justify-content: center; border-radius: 14px; }
}

/* ==========================================================================
   FULLSCREEN EDGE-TO-EDGE MODE & EXACT 16:9 PDF EXPORT
   ========================================================================== */
:fullscreen .studio-viewport,
:-webkit-full-screen .studio-viewport {
  padding: 0;
  gap: 0;
  background: var(--stage-bg);
}

:fullscreen .slide-stage,
:-webkit-full-screen .slide-stage {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

:fullscreen .control-dock,
:-webkit-full-screen .control-dock {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  opacity: 0.08;
  transition: opacity 0.2s ease;
}

:fullscreen .control-dock:hover,
:fullscreen .control-dock:focus-within,
:-webkit-full-screen .control-dock:hover,
:-webkit-full-screen .control-dock:focus-within {
  opacity: 1;
}

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

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    animation: none !important;
    transition: none !important;
  }
  html, body {
    background: var(--stage-bg) !important;
    width: 13.333in;
    height: auto;
    margin: 0;
    padding: 0;
  }
  .studio-viewport {
    padding: 0;
    margin: 0;
    display: block;
    background: var(--stage-bg) !important;
  }
  .stage-scaler {
    width: 13.333in;
    height: auto;
    display: block;
  }
  .control-dock, .chapter-bar, .notes-drawer, .overview-dialog, .skip-link {
    display: none !important;
  }
  .slide-stage {
    width: 13.333in;
    height: auto;
    transform: none !important;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    overflow: visible;
    background: var(--stage-bg) !important;
  }
  .stage-grid,
  .reg-mark {
    position: fixed;
  }
  .stage-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--stage-bg) !important;
    z-index: 10;
  }
  .stage-body {
    padding: 0;
    display: block;
  }
  .slide {
    display: flex !important;
    width: 13.333in;
    height: 7.5in;
    padding: 0.72in 0.52in 0.36in;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    background: var(--stage-bg) !important;
  }
  .slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}
