/* ============================================================
   Seamless Transport — "Corridor Lines" Identity
   China–Singapore land-sea trade corridor design system
   Every section is a port of call · every transition a leg of the journey
   ============================================================ */

:root {
  /* Brand identity — deep ocean teal (sea) + container amber (cargo) */
  --brand:        #0e7490;       /* primary brand — ocean teal */
  --brand-dark:   #134e4a;
  --brand-accent: #f59e0b;       /* container amber — cargo/logistics */
  --brand-secondary: #22d3ee;    /* bright cyan — data/digital */

  /* Corridor leg colors (used as section accents) */
  --leg-china:   #dc2626;        /* China red */
  --leg-rail:    #f59e0b;        /* land-rail amber */
  --leg-laos:    #6366f1;        /* Laos indigo */
  --leg-thai:    #0ea5e9;        /* Thailand sky */
  --leg-malay:   #16a34a;        /* Malaysia green */
  --leg-sea:     #06b6d4;        /* maritime cyan */
  --leg-sg:      #ef4444;        /* Singapore red */

  /* Section identities — each slide gets a "leg color" */
  --section-cover:    #0e7490;
  --section-exec:     #06b6d4;
  --section-intro:    #f59e0b;   /* บทนำ · amber */
  --section-swot:     #8b5cf6;   /* SWOT · purple */
  --section-policy:   #dc2626;   /* นโยบาย BRI/CCI/ILSTC · red */
  --section-multimodal: #0ea5e9; /* multimodal · sky */
  --section-pillars:  #0d9488;   /* ไร้รอยต่อ · teal */
  --section-digital:  #6366f1;   /* ดิจิทัล · indigo */
  --section-challenge: #ea580c;  /* ความท้าทาย · orange */
  --section-economy:  #16a34a;   /* เศรษฐกิจ · green */
  --section-kpi:      #06b6d4;   /* KPI · cyan */
  --section-case:     #e11d48;   /* เคส/ความเสี่ยง · rose */
  --section-summary:  #0e7490;   /* สรุป · brand */

  /* Neutrals */
  --ink:        #08141c;
  --ink-2:      #1e293b;
  --ink-3:      #334155;
  --muted:      #475569;
  --line:       rgba(8, 20, 28, .08);
  --line-2:     rgba(8, 20, 28, .14);
  --paper:      #ffffff;
  --paper-2:    #f8fafc;
  --paper-3:    #eef2f7;
  --paper-warm: #fef9f3;

  /* Status */
  --success: #10b981;
  --warn:    #f59e0b;
  --danger:  #ef4444;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(8, 20, 28, .06);
  --shadow-md: 0 12px 32px rgba(8, 20, 28, .08);
  --shadow-lg: 0 28px 70px rgba(8, 20, 28, .14);
  --shadow-xl: 0 45px 110px rgba(8, 20, 28, .22);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Prompt', 'IBM Plex Sans Thai', system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6, 182, 212, .09), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(14, 116, 144, .07), transparent 60%),
    #f7fafb;
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Tiny "corridor line" decorative element */
.line-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--leg-china), var(--leg-rail), var(--leg-thai), var(--leg-sea), var(--leg-sg));
  border-radius: 999px;
  margin: 14px 0 18px;
  position: relative;
}
.line-divider::before, .line-divider::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--ink);
}
.line-divider::before { left: -2px; }
.line-divider::after  { right: -2px; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: sticky; top: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand-logo {
  width: 48px; height: 48px;
  position: relative;
  display: grid; place-items: center;
  background: transparent;
  border-radius: 14px;
  filter: drop-shadow(0 4px 14px rgba(14, 116, 144, 0.32));
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), filter .3s;
}
.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.06);
  filter: drop-shadow(0 8px 22px rgba(34, 211, 238, 0.45));
}
.brand-logo svg { display: block; }
.brand-title {
  font-weight: 800; font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--ink);
  line-height: 1;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .2px;
}

.topnav { display: flex; gap: 3px; flex-wrap: wrap; max-width: 72%; justify-content: flex-end; align-items: center; }
.navbtn {
  border: 0; background: transparent;
  font-family: inherit;
  font-size: 12.5px; font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
}
.navbtn:hover { background: var(--paper-3); color: var(--ink); }
.navbtn.active {
  background: var(--ink);
  color: white;
  font-weight: 600;
}
/* flagship nav link → Route Planner web app */
.try-app-btn {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-secondary) 100%);
  color: white !important;
  padding: 8px 16px;
  font-weight: 700;
  margin-left: 6px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(14, 116, 144, .3);
  transition: all .25s ease;
}
.try-app-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 116, 144, .42); filter: brightness(1.05); }

/* ============================================================
   Deck + Slide system
   ============================================================ */
.deck {
  position: relative;
  padding: 36px 28px 140px;
  max-width: 1280px;
  margin: 0 auto;
}
.slide {
  display: none;
  animation: slideIn .55s cubic-bezier(.16, 1, .3, 1);
  min-height: 78vh;
}
.slide.active { display: block; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slide header — "port marker" style */
.slide-header { margin-bottom: 32px; position: relative; padding-left: 64px; }
.slide-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  border: 5px solid var(--section-color, var(--brand));
  box-shadow: 0 4px 14px rgba(8, 20, 28, .1);
}
.slide-header::after {
  content: '';
  position: absolute;
  left: 23px; top: 48px; bottom: -20px;
  width: 3px;
  background: var(--section-color, var(--brand));
  opacity: .25;
  border-radius: 2px;
}
.slide-num {
  position: absolute;
  left: 14px; top: 12px;
  font-size: 16px; font-weight: 800;
  color: var(--section-color, var(--brand));
  width: 22px; text-align: center;
}
.slide h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 10px;
}
.slide-lead {
  font-size: 16px;
  color: var(--ink-3);
  max-width: 940px;
  line-height: 1.65;
}
.slide-lead b { color: var(--ink); font-weight: 600; }

/* Section color theming via parent attribute */
.slide[data-slide="0"]  { --section-color: var(--section-cover); }
.slide[data-slide="1"]  { --section-color: var(--section-exec); }
.slide[data-slide="2"]  { --section-color: var(--section-intro); }
.slide[data-slide="3"]  { --section-color: var(--section-swot); }
.slide[data-slide="4"]  { --section-color: var(--section-policy); }
.slide[data-slide="5"]  { --section-color: var(--section-multimodal); }
.slide[data-slide="6"]  { --section-color: var(--section-pillars); }
.slide[data-slide="7"]  { --section-color: var(--section-digital); }
.slide[data-slide="8"]  { --section-color: var(--section-challenge); }
.slide[data-slide="9"]  { --section-color: var(--section-economy); }
.slide[data-slide="10"] { --section-color: var(--section-kpi); }
.slide[data-slide="11"] { --section-color: var(--section-case); }
.slide[data-slide="12"] { --section-color: var(--section-summary); }

/* ============================================================
   COVER — Hero with corridor-map aesthetic
   ============================================================ */
.cover {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 50px;
  align-items: center;
  min-height: 78vh;
  padding-top: 10px;
  position: relative;
}
.slide[data-slide="0"] .slide-header { display: none; }
@media (max-width: 980px) { .cover { grid-template-columns: 1fr; } }

.cover-left { display: flex; flex-direction: column; gap: 20px; position: relative; }

/* Decorative corridor dots at top of cover */
.cover-stations { display: flex; align-items: center; gap: 0; margin-bottom: 6px; }
.cover-station {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid white;
  position: relative; z-index: 2;
}
.cover-station.s1 { background: var(--leg-china); }
.cover-station.s2 { background: var(--leg-rail); }
.cover-station.s3 { background: var(--leg-sea); }
.cover-station.s4 { background: var(--leg-sg); }
.cover-station-line { height: 3px; flex: 1; max-width: 38px; background: currentColor; }
.cover-stations .cover-station-line:nth-child(2) { color: var(--leg-china); }
.cover-stations .cover-station-line:nth-child(4) { color: var(--leg-rail); }
.cover-stations .cover-station-line:nth-child(6) { color: var(--leg-sea); }

.cover-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cover-title {
  font-size: clamp(38px, 7vw, 82px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--ink);
}
.cover-title .grad-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cover-title .thai-title {
  display: block;
  margin-top: 14px;
  font-size: clamp(19px, 2.7vw, 30px);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.cover-sub {
  font-size: 15.5px;
  color: var(--ink-3);
  line-height: 1.75;
  max-width: 580px;
}
.cover-sub b { color: var(--ink); font-weight: 600; }

.cover-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 2px;
}
.pillar-card {
  background: white;
  padding: 16px 10px;
  border-radius: var(--r-md);
  text-align: center;
  border: 1px solid var(--line);
  transition: all .25s ease;
  position: relative;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 3px;
  background: var(--pillar-c, var(--brand));
  border-radius: 0 0 3px 3px;
}
.pillar-card[data-pillar="rail"]    { --pillar-c: var(--leg-rail); }
.pillar-card[data-pillar="sea"]     { --pillar-c: var(--leg-sea); }
.pillar-card[data-pillar="digital"] { --pillar-c: var(--leg-laos); }
.pillar-card[data-pillar="customs"] { --pillar-c: var(--leg-malay); }
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--pillar-c);
}
.pillar-ico { font-size: 26px; margin-bottom: 6px; line-height: 1; }
.pillar-label { font-size: 12.5px; font-weight: 700; color: var(--ink); }

.cover-cta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 6px;
}
.cta-btn {
  background: var(--ink);
  color: white;
  border: 0;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s ease;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(8, 20, 28, .25);
}
.cta-btn:hover {
  background: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14, 116, 144, .4);
}
.cta-btn.alt {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.cta-btn.alt:hover {
  background: var(--paper-2);
  border-color: var(--brand);
  color: var(--brand);
}
.cta-btn.flagship {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-secondary) 100%);
  box-shadow: 0 8px 24px rgba(14, 116, 144, .4);
}
.cta-btn.flagship:hover { filter: brightness(1.08); }
.cover-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Team block */
.team-block { margin-top: 4px; }
.team-block h3 { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; letter-spacing: .2px; }
.team-list { display: flex; flex-wrap: wrap; gap: 7px; }
.team-chip {
  font-size: 12px; color: var(--ink-3);
  background: white; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.team-chip b { color: var(--ink); font-weight: 600; }

/* ============================================================
   Cover right — Corridor map visualization
   ============================================================ */
.cover-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 600px;
  padding: 20px 10px;
}
.corridor-viz {
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 12px 32px rgba(14, 116, 144, 0.14));
}
.corridor-viz svg { width: 100%; height: auto; display: block; }

@media (max-width: 980px) {
  .cover-right { min-height: 460px; }
  .corridor-viz { max-width: 440px; }
}

/* ============================================================
   Generic content components
   ============================================================ */
.card {
  background: white;
  padding: 22px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.callout {
  background: white;
  padding: 18px 22px;
  border-radius: var(--r-md);
  border-left: 4px solid var(--section-color, var(--brand));
  box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
  margin: 16px 0;
}
.callout-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--section-color, var(--brand)) 12%, transparent);
  color: var(--section-color, var(--brand));
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.callout > div:last-child { flex: 1; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.callout b { color: var(--ink); font-weight: 700; }

/* Exec grid */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 14px;
}
.exec-card {
  background: white;
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.exec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--section-color, var(--brand));
}
.exec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.exec-ico {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: 25px;
  background: color-mix(in srgb, var(--section-color, var(--brand)) 10%, transparent);
  margin-bottom: 13px;
}
.exec-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.3px; }
.exec-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }
.exec-card b { color: var(--ink-2); font-weight: 600; }

/* Two-column lists */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.col-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: var(--ink); letter-spacing: -0.3px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  background: white;
  padding: 14px 18px 14px 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  position: relative;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  transition: all .2s ease;
}
.check-list li:hover { border-color: var(--line-2); transform: translateX(2px); }
.check-list li::before {
  content: '⚠';
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--warn);
  font-weight: 800;
  font-size: 15px;
}
.check-list.pos li::before { content: '✓'; color: var(--success); }
.check-list b { color: var(--ink); font-weight: 600; }

/* SWOT */
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 880px) { .swot { grid-template-columns: 1fr; } }
.swot-quad {
  background: white;
  padding: 20px;
  border-radius: var(--r-md);
  border-top: 4px solid var(--brand);
  box-shadow: var(--shadow-sm);
}
.swot-quad.sw-s { border-top-color: var(--success); }
.swot-quad.sw-w { border-top-color: var(--warn); }
.swot-quad.sw-o { border-top-color: var(--brand); }
.swot-quad.sw-t { border-top-color: var(--danger); }
.swot-h { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.3px; }
.swot-quad ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.swot-quad li { font-size: 13.5px; color: var(--ink-3); padding-left: 16px; position: relative; line-height: 1.55; }
.swot-quad li::before { content: '•'; position: absolute; left: 4px; color: var(--muted); }

/* PESTEL */
.pestel { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.pestel-item {
  background: white;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.pestel-item b {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand); color: white;
  font-size: 14px; font-weight: 800;
  flex-shrink: 0;
}
.pestel-item span { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }

/* Tables */
.budget-table, .risk-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 16px;
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.budget-table th, .risk-table th {
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 13px 16px;
  letter-spacing: .3px;
}
.budget-table td, .risk-table td {
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.budget-table tbody tr:hover, .risk-table tbody tr:hover { background: var(--paper-2); }
.budget-table b, .risk-table b { color: var(--ink); font-weight: 700; }
.budget-table small, .risk-table small { color: var(--muted); }

/* Phase header — port-of-call style */
.phase-h {
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  margin: 26px 0 14px;
  display: flex; align-items: center; gap: 12px;
  letter-spacing: -0.3px;
}
.budget-phase {
  background: white;
  padding: 14px 20px;
  border-left: 5px solid var(--section-color, var(--brand));
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  box-shadow: var(--shadow-sm);
}

/* Budget / tier cards */
.budget-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.budget-tier {
  background: white;
  padding: 24px 20px;
  border-radius: var(--r-md);
  text-align: center;
  border-top: 4px solid var(--muted);
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.budget-tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.budget-tier.conservative { border-top-color: var(--success); }
.budget-tier.medium {
  border-top-color: var(--warn);
  background: linear-gradient(180deg, #fffbeb 0%, white 100%);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.budget-tier.aggressive { border-top-color: var(--danger); }
.bt-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.budget-tier.medium .bt-label { color: var(--warn); }
.bt-amount { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -1.5px; margin-bottom: 6px; }
.bt-sub { font-size: 12.5px; color: var(--muted); }
.budget-context {
  font-size: 13.5px;
  color: var(--ink-3);
  background: white;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* KPI grid */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi {
  background: white;
  padding: 22px 20px;
  border-radius: var(--r-md);
  border-top: 4px solid var(--brand);
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kpi-cat { font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--brand); margin-bottom: 10px; text-transform: uppercase; }
.kpi-n { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -1.5px; line-height: 1; margin-bottom: 8px; }
.kpi-l { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; line-height: 1.4; }
.kpi-d { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* Stat strip (big animated numbers) */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin: 4px 0 18px; }
.stat-box {
  background: linear-gradient(180deg, #ffffff, var(--paper-2));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num { font-size: 32px; font-weight: 800; letter-spacing: -1px; color: var(--brand); line-height: 1; }
.stat-box.amber .stat-num { color: var(--brand-accent); }
.stat-box.green .stat-num { color: var(--success); }
.stat-box.red .stat-num { color: var(--danger); }
.stat-lbl { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.45; }

/* Bar chart (deck · comparison) */
.bar-chart { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.bc-row { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 14px; margin-bottom: 12px; }
.bc-row:last-child { margin-bottom: 0; }
.bc-label { font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: right; }
.bc-track { background: var(--paper-3); border-radius: 999px; height: 30px; overflow: hidden; }
.bc-fill { height: 100%; border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; color: #fff; font-size: 12.5px; font-weight: 800; min-width: 56px; transition: width .9s cubic-bezier(.2,1,.3,1); white-space: nowrap; }
.bc-fill.ilstc { background: linear-gradient(90deg, #0e7490, #22d3ee); }
.bc-fill.rail { background: linear-gradient(90deg, #ca8a04, #f59e0b); }
.bc-fill.yangtze { background: linear-gradient(90deg, #475569, #94a3b8); }
@media (max-width: 680px) { .bc-row { grid-template-columns: 1fr; gap: 4px; } .bc-label { text-align: left; } }

/* ============================================================
   Multimodal / corridor leg cards
   ============================================================ */
.leg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 14px; }
.leg-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--leg-c, var(--brand));
  transition: all .2s ease;
}
.leg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.leg-card.rail { --leg-c: var(--leg-rail); }
.leg-card.sea  { --leg-c: var(--leg-sea); }
.leg-card.air  { --leg-c: var(--leg-laos); }
.leg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.leg-ico { font-size: 24px; }
.leg-head h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.leg-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.leg-card li { font-size: 13px; color: var(--ink-3); padding-left: 16px; position: relative; line-height: 1.5; }
.leg-card li::before { content: '▸'; position: absolute; left: 2px; color: var(--leg-c, var(--brand)); font-weight: 700; }
.leg-card li b { color: var(--ink); font-weight: 600; }

/* ============================================================
   Pillars (ไร้รอยต่อ) — big numbered cards
   ============================================================ */
.pillar-big-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .pillar-big-grid { grid-template-columns: 1fr; } }
.pillar-big {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
}
.pillar-big::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--pc, var(--brand)); }
.pillar-big:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-big.p1 { --pc: var(--section-digital); }
.pillar-big.p2 { --pc: var(--leg-malay); }
.pillar-big.p3 { --pc: var(--success); }
.pillar-big .pb-num {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--pc, var(--brand)) 12%, transparent);
  color: var(--pc, var(--brand));
  font-weight: 800; font-size: 18px; margin-bottom: 12px;
}
.pillar-big h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.pillar-big .pb-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; font-weight: 600; letter-spacing: .3px; }
.pillar-big ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pillar-big li { font-size: 13px; color: var(--ink-3); padding-left: 18px; position: relative; line-height: 1.55; }
.pillar-big li::before { content: '✓'; position: absolute; left: 0; color: var(--pc, var(--brand)); font-weight: 800; }
.pillar-big li b { color: var(--ink); font-weight: 600; }

/* ============================================================
   Digital flow demo (slide 07)
   ============================================================ */
.flow-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .flow-wrap { grid-template-columns: 1fr; } }

.flow-steps { display: flex; flex-direction: column; gap: 10px; }
.flow-step {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  cursor: pointer;
  transition: all .2s ease;
}
.flow-step:hover { border-left-color: var(--section-digital); transform: translateX(2px); }
.flow-step.active {
  border-left-color: var(--section-digital);
  background: color-mix(in srgb, var(--section-digital) 7%, white);
  box-shadow: var(--shadow-sm);
}
.flow-step h4 { font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.flow-step .fs-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper-3); color: var(--muted);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.flow-step.active .fs-num { background: var(--section-digital); color: white; }
.flow-step p { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; padding-left: 33px; }

.flow-panel {
  background: linear-gradient(160deg, #0b1f2a 0%, #08141c 100%);
  border-radius: var(--r-lg);
  padding: 22px;
  color: white;
  box-shadow: var(--shadow-lg);
}
.flow-panel-title { font-size: 13px; font-weight: 700; color: #93c5fd; letter-spacing: .4px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* corridor track inside panel */
.flow-track { position: relative; height: 96px; margin: 8px 4px 18px; }
.flow-rail { position: absolute; top: 56px; left: 4%; right: 4%; height: 4px; background: rgba(255,255,255,.14); border-radius: 4px; }
.flow-rail-fill { position: absolute; top: 56px; left: 4%; height: 4px; background: linear-gradient(90deg, var(--brand-secondary), var(--success)); border-radius: 4px; transition: width .5s ease; width: 4%; }
.flow-stage {
  position: absolute; top: 44px; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: #1e293b; border: 2px solid rgba(255,255,255,.25);
  display: grid; place-items: center; font-size: 14px;
  transition: all .35s ease;
}
.flow-stage span { font-size: 13px; }
.flow-stage.done { border-color: var(--success); background: #064e3b; }
.flow-stage.current { border-color: var(--brand-secondary); background: var(--brand); transform: translateX(-50%) scale(1.25); box-shadow: 0 0 0 6px rgba(34,211,238,.18); }
.flow-stage .fst-lbl { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9.5px; color: #cbd5e1; font-weight: 600; }
#flow-cargo {
  position: absolute; top: 14px; left: 6%;
  transform: translateX(-50%);
  font-size: 24px; transition: left .55s cubic-bezier(.4,1.3,.5,1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}
.flow-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow-metric { background: rgba(255,255,255,.06); border-radius: var(--r-md); padding: 16px; text-align: center; }
.flow-metric .fm-n { font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--brand-secondary); line-height: 1; }
.flow-metric.time .fm-n { color: var(--success); }
.flow-metric .fm-l { font-size: 11.5px; color: #cbd5e1; margin-top: 7px; line-height: 1.4; }

/* ============================================================
   Closing / recommendations
   ============================================================ */
.last-call {
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand-dark) 100%);
  color: white;
  padding: 32px;
  border-radius: var(--r-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.last-call::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, .15), transparent 70%);
  pointer-events: none;
}
.last-call h3 { font-size: 22px; margin-bottom: 18px; color: white; position: relative; }
.recos { list-style: none; counter-reset: rec; display: flex; flex-direction: column; gap: 10px; position: relative; }
.recos li {
  background: rgba(255, 255, 255, .08);
  padding: 14px 18px 14px 56px;
  border-radius: var(--r-sm);
  font-size: 14px;
  position: relative;
  line-height: 1.6;
  counter-increment: rec;
}
.recos li::before {
  content: counter(rec);
  position: absolute; left: 16px; top: 14px;
  background: var(--brand-secondary);
  color: var(--ink);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.recos b { color: var(--brand-secondary); }
.recos li.gov::before { background: var(--brand-accent); }
.recos li.priv::before { background: var(--success); }

.closing-quote {
  background: white;
  padding: 26px 30px 26px 70px;
  border-radius: var(--r-md);
  border-left: 6px solid var(--brand);
  position: relative;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-3);
  box-shadow: var(--shadow-sm);
}
.closing-quote .big-q {
  position: absolute; left: 20px; top: 8px;
  font-size: 78px; font-weight: 900;
  color: var(--brand);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: .25;
}
.closing-quote b { color: var(--ink); font-weight: 700; }

/* Two-column recommendations (gov / private) */
.reco-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 880px) { .reco-split { grid-template-columns: 1fr; } }
.reco-col { background: white; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm); }
.reco-col h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.reco-col.gov { border-top: 4px solid var(--brand-accent); }
.reco-col.priv { border-top: 4px solid var(--success); }
.reco-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.reco-col li { font-size: 13px; color: var(--ink-3); padding-left: 18px; position: relative; line-height: 1.55; }
.reco-col li::before { content: '→'; position: absolute; left: 0; color: var(--muted); font-weight: 700; }
.reco-col li b { color: var(--ink); font-weight: 600; }

/* Case-study cards */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 14px; margin-bottom: 18px; }
.case-card {
  background: white; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--section-case);
  transition: all .2s ease;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case-card .cc-co { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.case-card .cc-tag { font-size: 11px; font-weight: 600; color: var(--section-case); margin-bottom: 10px; letter-spacing: .3px; }
.case-card p { font-size: 12.8px; color: var(--ink-3); line-height: 1.6; }
.case-card p b { color: var(--ink); font-weight: 600; }

/* ============================================================
   Floating controls
   ============================================================ */
.controls {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex; align-items: center; gap: 4px;
  background: rgba(8, 20, 28, .94);
  backdrop-filter: blur(20px);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
}
.ctrl {
  width: 36px; height: 36px;
  border: 0; background: rgba(255, 255, 255, .1);
  color: white;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: all .2s ease;
}
.ctrl:hover { background: var(--brand); }
.dots { display: flex; gap: 6px; padding: 0 8px; flex-wrap: wrap; max-width: 60vw; }
.dot-nav {
  width: 8px; height: 8px;
  border: 0; padding: 0;
  background: rgba(255, 255, 255, .35);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
}
.dot-nav:hover { background: rgba(255, 255, 255, .7); }
.dot-nav.active { background: var(--brand-secondary); width: 22px; border-radius: var(--r-pill); }

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp .55s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--d, 0s);
}
.slide:not(.active) .reveal { animation: none; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 960px) {
  .topbar { padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .topnav { max-width: 100%; }
  .deck { padding: 24px 16px 120px; }
  .cover { gap: 24px; min-height: auto; }
  .cover-pillars { grid-template-columns: repeat(2, 1fr); }
  .budget-tier-grid { grid-template-columns: 1fr; }
  .budget-tier.medium { transform: none; }
  .pillar-big-grid { grid-template-columns: 1fr; }
  .budget-table, .risk-table { display: block; overflow-x: auto; }
  .slide-header { padding-left: 56px; }
  .slide-header::before { width: 40px; height: 40px; }
  .slide-num { font-size: 14px; }
}

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .topbar, .controls, .footer, .cover-cta, .cover-hint { display: none !important; }
  body { background: #fff !important; }
  .deck { padding: 0 !important; max-width: 100% !important; margin: 0 !important; }

  /* Show EVERY slide (one per page) and kill the entrance animation */
  .slide { display: block !important; page-break-after: always; break-after: page; min-height: 0 !important; animation: none !important; }
  .slide:last-child { page-break-after: auto; break-after: auto; }
  .cover { min-height: 0 !important; gap: 16px; }

  /* CRITICAL: .reveal items default to opacity:0 (animation never runs on
     inactive slides) — force them visible so print pages aren't blank. */
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }

  /* Keep cards/rows from splitting across pages */
  .exec-card, .swot-quad, .kpi, .leg-card, .pillar-big, .case-card,
  .pestel-item, .callout, .bar-chart, .budget-tier, .stat-box,
  .reco-col, .closing-quote, .last-call, tr { break-inside: avoid; page-break-inside: avoid; }

  /* Cap the hero map so the cover fits one page */
  .cover-right { max-height: 130mm; }
  .corridor-viz { max-width: 420px; }

  /* Print colors faithfully (gradients, accent bars, table headers) */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
