/* ============ Highway IS · AI Transformation ============ */
/* Design tokens — DOH brand inspired */
:root {
  --doh-yellow: #FFD23F;
  --doh-yellow-2: #F5A623;
  --doh-navy: #0B1E3F;
  --doh-navy-2: #1A2B5A;
  --doh-blue: #3B82F6;
  --doh-blue-2: #1E3A8A;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --paper: #FAFBFC;
  --paper-2: #F1F5F9;
  --line: rgba(15, 23, 42, .08);
  --muted: #64748B;
  --green: #10B981;
  --red: #EF4444;
  --purple: #A855F7;
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .12);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, .08);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
}

* { 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: linear-gradient(135deg, #F8FAFC 0%, #EEF2F7 100%);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============ Animated background ============ */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; top: -200px; left: -100px; background: var(--doh-yellow); }
.orb-2 { width: 500px; height: 500px; bottom: -150px; right: -150px; background: var(--doh-blue); animation-delay: -6s; }
.orb-3 { width: 400px; height: 400px; top: 40%; left: 60%; background: var(--purple); opacity: .2; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(.95); }
}

/* ============ Top bar ============ */
.topbar {
  position: sticky; top: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .82);
  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: 12px; }
.brand-logo {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.brand-title { font-weight: 700; font-size: 15px; letter-spacing: .2px; color: var(--ink); }
.brand-sub { font-size: 12px; color: var(--muted); }

.topnav { display: flex; gap: 4px; flex-wrap: wrap; max-width: 70%; justify-content: flex-end; }
.navbtn {
  border: 0; background: transparent;
  font-family: inherit;
  font-size: 12.5px; font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
}
.navbtn:hover { background: rgba(15,23,42,.05); color: var(--ink); }
.navbtn.active {
  background: var(--ink);
  color: var(--doh-yellow);
  font-weight: 600;
}

/* ============ Deck ============ */
.deck {
  position: relative;
  padding: 40px 32px 120px;
  max-width: 1300px;
  margin: 0 auto;
}
.slide {
  display: none;
  animation: slideIn .55s cubic-bezier(.16, 1, .3, 1);
  min-height: 75vh;
}
.slide.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-header {
  margin-bottom: 36px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.slide-num {
  font-size: 14px; font-weight: 600;
  color: var(--doh-yellow-2);
  letter-spacing: 2px;
}
.slide-header h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.5px;
  line-height: 1.15;
}
.slide-lead { color: var(--muted); font-size: 18px; line-height: 1.55; }

/* ============ COVER ============ */
.cover {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 20px 20px;
  gap: 24px;
}
.cover-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--doh-yellow);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
}
.cover-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--doh-yellow);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.8); }
}
.cover-title {
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
}
.grad-text {
  background: linear-gradient(135deg, var(--doh-yellow-2) 0%, var(--doh-yellow) 50%, var(--doh-yellow-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: shimmer 8s ease infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.thai-title {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 600;
  color: var(--ink);
}
.cover-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

.cover-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%; max-width: 900px;
  margin-top: 12px;
}
.stat-card {
  padding: 24px 16px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  transition: all .3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--doh-yellow);
}
.stat-n {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1px;
}
.stat-l { font-size: 12px; color: var(--muted); margin-top: 4px; }

.cover-cta {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 18px;
}
.cta-btn.alt {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
  text-decoration: none;
  display: inline-block;
}
.cta-btn.alt:hover { background: var(--ink); color: var(--doh-yellow); }
.cta-btn {
  font-family: inherit;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--doh-yellow-2), var(--doh-yellow));
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(245, 166, 35, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(245, 166, 35, .5); }
.cover-hint { font-size: 12px; color: var(--muted); }

/* ============ EXEC SUMMARY ============ */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.exec-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.exec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--doh-yellow), var(--doh-yellow-2));
}
.exec-ico { font-size: 34px; margin-bottom: 8px; }
.exec-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.exec-card p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp .65s 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); }
}

/* ============ TWO-COL (slide 2) ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.col-left, .col-right {
  padding: 24px;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.col-left { border-left: 4px solid var(--red); }
.col-right { border-left: 4px solid var(--green); }
.col-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.check-list { list-style: none; }
.check-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  border-bottom: 1px dashed rgba(15,23,42,.08);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: '⚠';
  position: absolute; left: 0; top: 8px;
  color: var(--red);
  font-size: 16px;
}
.check-list.pos li::before { content: '✓'; color: var(--green); font-weight: 700; }

.callout {
  display: flex; gap: 16px;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--doh-yellow);
  font-size: 15px;
  line-height: 1.7;
}
.callout-ico { font-size: 28px; flex: 0 0 auto; }
.callout b { color: var(--doh-yellow); }

/* ============ SWOT ============ */
.swot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.swot-quad {
  padding: 20px;
  border-radius: var(--r-md);
  background: white;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--green);
}
.swot-quad.sw-w { border-top-color: #F59E0B; }
.swot-quad.sw-o { border-top-color: var(--doh-blue); }
.swot-quad.sw-t { border-top-color: var(--red); }
.swot-h { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.swot-quad ul { list-style: none; }
.swot-quad li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.swot-quad li::before {
  content: '▸';
  position: absolute; left: 4px;
  color: var(--muted);
}

.pestel-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.pestel {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.pe {
  padding: 14px 12px;
  background: white;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex; flex-direction: column;
  transition: all .2s ease;
}
.pe small {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}
.pe:hover { background: var(--ink); color: var(--doh-yellow); transform: translateY(-2px); }
.pe:hover small { color: rgba(255,255,255,.7); }

/* ============ LAYERS (Framework) ============ */
.layers { display: flex; flex-direction: column; gap: 12px; }
.layer {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform .3s ease;
}
.layer:hover { transform: translateX(8px); }
.layer-1 { border-left: 6px solid var(--green); }
.layer-2 { border-left: 6px solid var(--purple); }
.layer-3 { border-left: 6px solid var(--doh-yellow-2); }
.layer-4 { border-left: 6px solid var(--doh-blue-2); }
.layer-l {
  width: 48px; height: 48px;
  background: var(--ink);
  color: var(--doh-yellow);
  display: grid; place-items: center;
  font-weight: 800;
  border-radius: 10px;
  flex: 0 0 auto;
}
.layer-h { font-size: 19px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.layer-b { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.layer-b b { color: var(--ink); }

.framework-note {
  margin-top: 22px;
  padding: 16px 22px;
  background: rgba(255, 210, 63, .15);
  border-left: 4px solid var(--doh-yellow-2);
  border-radius: var(--r-sm);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ============ ROADMAP ============ */
.roadmap {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding-left: 40px;
}
.rm-track {
  position: absolute;
  left: 12px; top: 20px; bottom: 20px;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--doh-yellow-2), var(--red));
  border-radius: 2px;
}
.rm-node {
  position: relative;
  display: flex; gap: 22px;
  align-items: flex-start;
}
.rm-node::before {
  content: '';
  position: absolute;
  left: -34px; top: 18px;
  width: 16px; height: 16px;
  background: white;
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 210, 63, .3);
}
.rm-year {
  flex: 0 0 90px;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.5px;
}
.rm-year small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--doh-yellow-2);
  letter-spacing: 2px;
}
.rm-card {
  flex: 1;
  padding: 18px 22px;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.rm-h { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.rm-card ul { list-style: none; padding-left: 0; }
.rm-card li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  padding: 5px 0 5px 22px;
  position: relative;
}
.rm-card li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--doh-yellow-2);
  font-weight: 800;
}

/* ============ ARCHITECTURE ============ */
.arch-wrap {
  background: white;
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  overflow: auto;
}
.arch-svg { width: 100%; min-width: 1100px; height: auto; }
.arch-svg text { font-family: 'Prompt', sans-serif; font-size: 17px; font-weight: 600; fill: white; }
.arch-svg .sub { font-size: 13.5px; font-weight: 400; opacity: .9; }
.arch-svg .sub-w { font-size: 13.5px; font-weight: 400; fill: #cbd5e1; }
.arch-svg .sub-d { font-size: 13.5px; font-weight: 500; fill: rgba(15,23,42,.75); }
.arch-svg .dark { fill: var(--ink); }
.arch-svg .big { font-size: 19px; font-weight: 700; }
.arch-svg .big-w { font-size: 19px; font-weight: 700; fill: white; }
.arch-svg .arch-label { font-size: 14px; font-weight: 700; fill: var(--muted); letter-spacing: 2px; }

.arch-svg .node { cursor: pointer; transition: transform .3s ease; }
.arch-svg .node:hover { filter: brightness(1.1); }

@keyframes pulseDot {
  0% { r: 4; opacity: 1; }
  50% { r: 9; opacity: .5; }
  100% { r: 4; opacity: 1; }
}
.arch-svg .pulse { animation: pulseDot 2s ease-in-out infinite; }

.arch-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.arch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.arch-legend i {
  width: 14px; height: 14px; border-radius: 4px; display: inline-block;
}
.dot-g { background: linear-gradient(135deg, #10B981, #047857); }
.dot-b { background: linear-gradient(135deg, #3B82F6, #1E3A8A); }
.dot-p { background: linear-gradient(135deg, #A855F7, #6D28D9); }
.dot-y { background: linear-gradient(135deg, #FFD23F, #F5A623); }
.dot-d { background: #0F172A; }

/* ============ CASE STUDIES ============ */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.case-card {
  padding: 22px;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  position: relative;
  border-top: 4px solid var(--doh-yellow-2);
  display: flex; flex-direction: column;
  transition: all .3s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15,23,42,.16);
}
.case-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 9px;
  background: var(--ink);
  color: var(--doh-yellow);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 10px;
}
.case-card h3 { font-size: 19px; margin-bottom: 4px; color: var(--ink); }
.case-tagline {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.case-card ul { list-style: none; padding: 0; margin-bottom: 14px; flex: 1; }
.case-card li {
  font-size: 14.5px;
  line-height: 1.65;
  padding: 5px 0 5px 18px;
  position: relative;
  color: var(--ink-2);
}
.case-card li::before {
  content: '•';
  position: absolute; left: 4px;
  color: var(--doh-yellow-2);
  font-weight: 800;
}
.case-impact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.case-impact div { text-align: center; }
.case-impact b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--doh-yellow-2);
  letter-spacing: -.3px;
}
.case-impact small { font-size: 12.5px; color: var(--muted); }

.case-takeaway {
  padding: 20px 24px;
  background: var(--ink);
  color: white;
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.7;
  border-left: 6px solid var(--doh-yellow);
}
.case-takeaway b { color: var(--doh-yellow); }

/* ===== Embed Section (Use Case iframe) ===== */
.embed-section {
  margin-top: 32px;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 2px solid var(--doh-yellow);
}
.embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #FFF8DC, #FFF2CC);
  border-bottom: 2px solid var(--doh-yellow);
}
.embed-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.embed-title p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.embed-title b { color: var(--doh-yellow-2); }
.embed-open {
  flex: 0 0 auto;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--doh-yellow);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  transition: all .2s ease;
}
.embed-open:hover {
  background: var(--doh-yellow);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245,166,35,.4);
}
.embed-frame {
  position: relative;
  width: 100%;
  /* responsive height — use aspect-ratio for full page */
  height: 1400px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.embed-source {
  padding: 14px 24px;
  background: #FAFBFC;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.embed-source a {
  color: var(--doh-yellow-2);
  text-decoration: none;
  font-weight: 600;
}
.embed-source a:hover { text-decoration: underline; }
.embed-source b { color: var(--ink); }

@media (max-width: 900px) {
  .embed-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .embed-open { align-self: flex-end; }
  .embed-frame { height: 900px; }
}
@media (max-width: 720px) {
  .embed-frame { height: 720px; }
  .embed-title h3 { font-size: 16px; }
  .embed-title p { font-size: 12.5px; }
  .embed-header { padding: 14px 16px; }
  .embed-source { font-size: 11.5px; padding: 12px 16px; }
}

/* ============ IMPLEMENTATION ============ */
.phase-h { font-size: 18px; font-weight: 700; margin: 24px 0 14px; color: var(--ink); }
.phase-h:first-of-type { margin-top: 0; }

.horizons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.hor {
  padding: 22px;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.hor.h1 { border-top: 4px solid var(--green); }
.hor.h2 { border-top: 4px solid var(--doh-yellow-2); }
.hor.h3 { border-top: 4px solid var(--doh-blue); }
.hor-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--doh-yellow-2);
  margin-bottom: 6px;
}
.hor h4 { font-size: 20px; margin-bottom: 12px; color: var(--ink); }
.hor ul { list-style: none; }
.hor li {
  padding: 6px 0 6px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  position: relative;
}
.hor li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--green);
  font-weight: 800;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.pillar {
  padding: 18px;
  background: linear-gradient(180deg, white, #FAFBFC);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  border-top: 4px solid var(--doh-yellow-2);
  transition: transform .3s ease;
}
.pillar:hover { transform: translateY(-4px); }
.p-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--ink);
  color: var(--doh-yellow);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 10px;
}
.p-h { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.pillar p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============ KPI ============ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kpi {
  padding: 22px;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--doh-yellow);
}
.kpi::before {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255, 210, 63, .2), transparent 70%);
  border-radius: 50%;
}
.kpi-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--doh-yellow-2);
  text-transform: uppercase;
}
.kpi-n {
  font-size: 46px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1.5px;
  margin: 6px 0;
  line-height: 1;
}
.kpi-l { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.kpi-d { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ============ RISK ============ */
.risk-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}
.risk-table th {
  background: var(--ink);
  color: var(--doh-yellow);
  font-size: 14.5px;
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  letter-spacing: .5px;
}
.risk-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.risk-table tbody tr:hover { background: rgba(255, 210, 63, .05); }
.risk-table td:nth-child(2), .risk-table td:nth-child(3) {
  font-weight: 600;
  text-align: center;
  width: 100px;
}

.change-strat {
  padding: 24px;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: white;
  border-radius: var(--r-md);
}
.change-strat h3 { margin-bottom: 14px; font-size: 18px; color: var(--doh-yellow); }
.adkar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.adkar-item {
  padding: 14px;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-sm);
  font-size: 13px;
  border-left: 3px solid var(--doh-yellow);
}
.adkar-item b {
  display: block;
  font-size: 24px;
  color: var(--doh-yellow);
  font-weight: 800;
  margin-bottom: 4px;
}

/* ============ CLOSING ============ */
.closing { display: flex; flex-direction: column; gap: 24px; }
.closing-quote {
  padding: 28px 32px;
  background: white;
  border-radius: var(--r-md);
  border-left: 8px solid var(--doh-yellow-2);
  box-shadow: var(--shadow-md);
  position: relative;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.big-q {
  position: absolute;
  top: -12px; left: 14px;
  font-size: 72px;
  font-weight: 800;
  color: var(--doh-yellow);
  line-height: 1;
  font-family: Georgia, serif;
}
.closing-quote p { margin-left: 32px; }
.closing-quote b { color: var(--ink); }

.recos {
  padding: 26px 30px;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.recos h3 { font-size: 18px; margin-bottom: 16px; color: var(--ink); }
.recos ol {
  list-style: none;
  counter-reset: rec;
  display: grid; gap: 12px;
}
.recos li {
  counter-increment: rec;
  padding: 12px 16px 12px 50px;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  position: relative;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.recos li::before {
  content: counter(rec);
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: var(--doh-yellow-2);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.last-call {
  padding: 32px;
  background: linear-gradient(135deg, var(--doh-yellow-2), var(--doh-yellow));
  color: var(--ink);
  border-radius: var(--r-md);
  text-align: center;
  box-shadow: 0 16px 40px rgba(245, 166, 35, .35);
}
.last-call h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 8px;
}
.last-call p { font-size: 15px; line-height: 1.75; max-width: 760px; margin: 0 auto; }
.last-call b { background: var(--ink); color: var(--doh-yellow); padding: 2px 8px; border-radius: 6px; }
.thanks {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ============ Floating Controls ============ */
.controls {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(15,23,42,.18);
  border: 1px solid var(--line);
  z-index: 40;
}
.ctrl {
  width: 38px; height: 38px;
  border: 0;
  background: var(--ink);
  color: var(--doh-yellow);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  transition: all .2s ease;
  display: grid; place-items: center;
}
.ctrl:hover { background: var(--doh-yellow); color: var(--ink); transform: scale(1.06); }
.dots { display: flex; gap: 6px; padding: 0 8px; }
.dot-nav {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(15,23,42,.2);
  cursor: pointer;
  transition: all .25s ease;
  border: 0;
}
.dot-nav.active { background: var(--doh-yellow-2); transform: scale(1.4); }
.dot-nav:hover { background: var(--doh-yellow); }

.footer {
  position: fixed;
  bottom: 6px; left: 0; right: 0;
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 1px;
  pointer-events: none;
  opacity: .6;
}

/* ============ Responsive — Mobile/iPad/Desktop ============ */

/* ===== iPad / Tablet landscape (max 1100px) ===== */
@media (max-width: 1100px) {
  .exec-grid, .cases, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .horizons, .pillars { grid-template-columns: 1fr 1fr; }
  .pestel { grid-template-columns: repeat(3, 1fr); }
  .adkar { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

/* ===== iPad portrait (max 900px) ===== */
@media (max-width: 900px) {
  .topbar { padding: 12px 16px; gap: 8px; }
  .brand-title { font-size: 13px; }
  .brand-sub { font-size: 11px; }
  .topnav { gap: 2px; max-width: 100%; }
  .navbtn { font-size: 11.5px; padding: 5px 8px; }
  .deck { padding: 30px 20px 110px; }
  .cover-title { font-size: clamp(32px, 7vw, 56px) !important; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .arch-hint { display: block; }
}

/* ===== Mobile (max 720px) ===== */
@media (max-width: 720px) {
  .topbar { flex-direction: column; gap: 8px; padding: 10px 12px; }
  .brand { width: 100%; justify-content: flex-start; }
  .topnav { max-width: 100%; justify-content: center; gap: 3px; }
  .navbtn { font-size: 11px; padding: 4px 8px; }
  .deck { padding: 24px 14px 110px; }
  /* Title compact */
  .cover-title { font-size: clamp(28px, 9vw, 44px) !important; line-height: 1.1; }
  .thai-title { font-size: clamp(18px, 4.5vw, 24px) !important; }
  .cover-sub { font-size: 13px; line-height: 1.6; }
  .cover-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-n { font-size: clamp(20px, 5vw, 28px) !important; }
  .stat-l { font-size: 11px; }
  /* All grids collapse */
  .exec-grid, .cases, .kpi-grid, .two-col, .swot, .horizons, .pillars {
    grid-template-columns: 1fr;
  }
  .pestel { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pe { font-size: 12px; padding: 10px 8px; }
  .pe small { font-size: 10.5px; }
  .adkar { grid-template-columns: 1fr; }
  /* Slide header */
  .slide-header h2 { font-size: clamp(22px, 6vw, 30px); line-height: 1.2; }
  .slide-lead { font-size: 13.5px; }
  /* Roadmap */
  .roadmap { padding-left: 32px; }
  .rm-track { left: 8px; }
  .rm-node::before { left: -28px; width: 14px; height: 14px; border-width: 3px; }
  .rm-year { flex: 0 0 64px; font-size: 18px; }
  .rm-year small { font-size: 10px; }
  .rm-h { font-size: 15px; }
  .rm-card { padding: 14px 16px; }
  .rm-card li { font-size: 13px; }
  /* Tables */
  .risk-table { font-size: 12px; display: block; overflow-x: auto; }
  .risk-table th, .risk-table td { padding: 8px 10px; }
  /* Architecture SVG — show scroll hint */
  .arch-hint { display: block; }
  .arch-wrap { padding: 14px; }
  .arch-svg { min-width: 880px; } /* slightly smaller for mobile */
  /* Layers */
  .layer { padding: 14px 16px; gap: 12px; }
  .layer-l { width: 38px; height: 38px; font-size: 13px; }
  .layer-h { font-size: 15px; }
  .layer-b { font-size: 13px; }
  /* Case cards */
  .case-card h3 { font-size: 16px; }
  .case-impact b { font-size: 17px; }
  /* KPI */
  .kpi-n { font-size: 34px; }
  /* Closing */
  .last-call { padding: 20px; }
  .last-call h3 { font-size: 20px; }
  .last-call p { font-size: 13.5px; }
  .closing-quote { padding: 22px 24px 22px 28px; font-size: 15px; }
  .big-q { font-size: 56px; }
  .closing-quote p { margin-left: 16px; }
  .recos { padding: 20px; }
  .recos li { font-size: 13.5px; padding: 10px 14px 10px 44px; }
  /* Controls */
  .controls { padding: 8px 12px; gap: 6px; }
  .ctrl { width: 34px; height: 34px; font-size: 20px; }
  .dot-nav { width: 7px; height: 7px; }
  .footer { font-size: 9.5px; }
  /* Cover stats compact icons */
  .stat-card { padding: 18px 10px; }
}

/* ===== Small mobile (max 420px) ===== */
@media (max-width: 420px) {
  .cover-title { font-size: clamp(24px, 8vw, 36px) !important; }
  .navbtn { font-size: 10.5px; padding: 4px 7px; }
  .cover-sub br { display: none; }
  .pestel { grid-template-columns: 1fr; }
  .arch-svg { min-width: 760px; }
}

/* Architecture scroll hint — hidden on desktop, shown on mobile/tablet via @media */
.arch-hint {
  display: none;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.arch-hint::before { content: "←  "; }
.arch-hint::after { content: "  →"; }

/* Print friendly */
@media print {
  .topbar, .controls, .footer { display: none; }
  .slide { display: block !important; page-break-after: always; min-height: 0; }
  .bg-orbs, .bg-grid { display: none; }
  #__sync_badge, #__sync_qr_modal, #__sync_pointer { display: none !important; }
}

/* ============ SYNC: Presenter/Display Badge ============ */
#__sync_badge {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 100;
  background: rgba(15, 23, 42, .92);
  color: white;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 12.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 210, 63, .3);
  min-width: 200px;
  max-width: 260px;
  font-family: 'Prompt', sans-serif;
}
#__sync_badge .sb-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
#__sync_badge .sb-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
  transition: all .3s ease;
}
#__sync_badge.connected .sb-dot { background: #10B981; box-shadow: 0 0 12px #10B981; animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 50% { transform: scale(1.25); opacity: .7; } }
#__sync_badge .sb-mode { font-weight: 700; color: #FFD23F; }
#__sync_badge .sb-status { font-size: 11.5px; opacity: .85; margin-left: auto; }
#__sync_badge .sb-room { font-size: 11px; opacity: .75; margin-bottom: 4px; }
#__sync_badge .sb-room b { color: #FFD23F; }
#__sync_badge .sb-clients { font-size: 11.5px; opacity: .85; margin-bottom: 8px; }
#__sync_badge .sb-qr-btn {
  display: block; width: 100%;
  background: #FFD23F; color: #0F172A;
  border: 0; border-radius: 8px;
  padding: 7px 10px;
  font-family: inherit; font-weight: 700; font-size: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
#__sync_badge .sb-qr-btn:hover { background: white; transform: translateY(-1px); }

/* QR Modal */
#__sync_qr_modal {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: qrm-fade .25s ease;
}
#__sync_qr_modal.open { display: flex; }
@keyframes qrm-fade { from { opacity: 0; } }
#__sync_qr_modal .qrm-card {
  background: white;
  border-radius: 22px;
  padding: 28px;
  max-width: 360px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  border: 3px solid #FFD23F;
}
#__sync_qr_modal .qrm-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: #0F172A; color: #FFD23F;
  border: 0; border-radius: 50%;
  font-size: 18px; font-weight: 800; cursor: pointer;
}
#__sync_qr_modal .qrm-title {
  font-size: 17px; font-weight: 700; margin-bottom: 18px;
  color: #0F172A;
}
#__sync_qr_modal .qrm-qr {
  display: inline-block;
  padding: 12px;
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: 14px;
  margin-bottom: 14px;
}
#__sync_qr_modal .qrm-url {
  font-size: 11.5px; color: #64748B;
  word-break: break-all;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: monospace;
}
#__sync_qr_modal .qrm-hint { font-size: 12.5px; margin-bottom: 14px; color: #475569; }
#__sync_qr_modal .qrm-hint b { color: #F5A623; font-weight: 800; }
#__sync_qr_modal .qrm-copy {
  background: #0F172A; color: #FFD23F;
  border: 0; border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  font-family: inherit;
}
#__sync_qr_modal .qrm-copy:hover { background: #FFD23F; color: #0F172A; }

/* Laser Pointer */
#__sync_pointer {
  position: fixed;
  width: 32px; height: 32px;
  margin-left: -16px; margin-top: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,68,68,.95) 0%, rgba(239,68,68,.7) 35%, rgba(239,68,68,0) 70%);
  pointer-events: none;
  z-index: 9999;
  transition: opacity .25s ease;
  opacity: 0;
}
#__sync_pointer.active { opacity: 1; }
#__sync_pointer::after {
  content: '';
  position: absolute;
  inset: 11px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px #EF4444;
}

/* Presenter mode: show pointer cursor as crosshair when pointing */
body.pointing { cursor: crosshair; }

/* Display mode: hide some controls (optional, keep dots for visibility) */
body.mode-display .controls { opacity: .5; pointer-events: none; }

/* Mobile responsive for sync UI */
@media (max-width: 720px) {
  #__sync_badge { bottom: 76px; right: 8px; padding: 10px 12px; font-size: 11.5px; min-width: 170px; }
  #__sync_qr_modal .qrm-card { padding: 22px 18px; }
  #__sync_qr_modal .qrm-title { font-size: 15px; }
}

/* Click-replay highlight (when display receives a click sync) */
.__sync_highlight {
  animation: sync-click-flash .85s ease;
  position: relative;
  z-index: 5;
}
@keyframes sync-click-flash {
  0%   { box-shadow: 0 0 0 0 rgba(255, 210, 63, .9), 0 0 0 0 rgba(255, 210, 63, .6); }
  35%  { box-shadow: 0 0 0 6px rgba(255, 210, 63, .55), 0 0 0 14px rgba(255, 210, 63, .25); }
  100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0), 0 0 0 0 rgba(255, 210, 63, 0); }
}
