/* ============================================================
   AI Agent for Architecture · ZenityX
   Design language: "Architectural Specification"
   — spec-sheet typography, hairline rules, blueprint precision
   Fonts (brand): IBM Plex Sans Thai / Sarabun / JetBrains Mono
   ============================================================ */

:root {
  --red: #ff0000;
  --red-mid: #990000;
  --red-deep: #5c0000;
  --ink: #101216;
  --ink-soft: #3c4046;
  --muted: #6a7078;
  --line: #e7e9ed;
  --line-dark: #d5d8de;
  --paper: #ffffff;
  --paper-tint: #f7f8fa;
  --dark: #0b0d10;
  --dark-2: #14171c;
  --shell: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-head: "IBM Plex Sans Thai", "Sarabun", sans-serif;
  --font-body: "Sarabun", "IBM Plex Sans Thai", sans-serif;
  --font-mono: "JetBrains Mono", "Sarabun", monospace;
  --shadow-1: 0 10px 30px -18px rgba(11, 13, 16, 0.18);
  --shadow-2: 0 30px 70px -30px rgba(11, 13, 16, 0.30);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.22; letter-spacing: -0.01em; }

.shell { width: min(var(--shell), 100% - 48px); margin-inline: auto; }
.shell.narrow { width: min(860px, 100% - 48px); }
.br-desk { display: none; }
@media (min-width: 900px) { .br-desk { display: inline; } }

.skip-link {
  position: fixed; top: -60px; left: 20px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 14px; }

/* ---------- mono meta tag ---------- */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-mid);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mono-tag.light { color: #ffb3b3; }

/* ============ NAV ============ */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.topnav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,13,16,0.25); }
.nav-shell {
  width: min(var(--shell), 100% - 48px); margin-inline: auto;
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 10px 0; }
.brand-logo { width: 68px; height: auto; }
.brand-sub { font-family: var(--font-head); font-size: 11.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }
.brand-sub em { font-style: normal; color: var(--muted); font-weight: 400; }
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a {
  font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 9px 13px; border-radius: 9px; transition: color 0.15s, background 0.15s;
}
.navlinks a:hover { color: var(--red-mid); background: #fbf1f2; }
.navlinks a.active { color: var(--red-mid); }
.navlinks .nav-cta {
  background: var(--red); color: #fff; font-weight: 600; margin-left: 10px; padding-inline: 20px;
  border-radius: 999px; box-shadow: 0 10px 22px -10px rgba(255, 0, 0, 0.45);
}
.navlinks .nav-cta:hover { background: var(--red-mid); color: #fff; }
.menu-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  padding: 128px 0 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 0, 0, 0.055), transparent 32%),
    linear-gradient(rgba(16, 18, 22, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 18, 22, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 52px 52px, 52px 52px, auto;
}
.hero-shell {
  width: min(var(--shell), 100% - 48px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--red-mid);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.hero h1 {
  font-size: clamp(52px, 5.4vw, 88px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 0.98; margin: 22px 0 20px; color: var(--red);
}
.hero h1 span { color: var(--ink); font-weight: 600; }
.hero-thesis { font-family: var(--font-head); font-size: clamp(19px, 1.65vw, 26px); font-weight: 600; color: var(--ink-soft); line-height: 1.5; }
.hero-sub { margin-top: 14px; font-size: 16.5px; color: var(--muted); max-width: 560px; }

.hero-flow {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px;
  margin-top: 30px; max-width: 620px;
}
.flow-cell {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
  background: rgba(255, 255, 255, 0.85); display: grid; gap: 2px;
}
.flow-cell.accent { border-color: rgba(255, 0, 0, 0.25); background: linear-gradient(135deg, #fff5f5, #ffe9e9); }
.flow-label { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.flow-cell.accent .flow-label { color: var(--red-mid); }
.flow-desc { font-size: 12.5px; color: var(--muted); }
.flow-arrow { align-self: center; color: var(--red); font-size: 22px; font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px;
  border-radius: 999px; transition: transform 0.16s, box-shadow 0.16s, background 0.16s, color 0.16s, border-color 0.16s;
}
.button.primary { background: var(--red); color: #fff; box-shadow: 0 16px 34px -12px rgba(255, 0, 0, 0.5); }
.button.primary:hover { background: var(--red-mid); transform: translateY(-2px); }
.button.ghost { border: 1px solid var(--line-dark); color: var(--ink); background: rgba(255, 255, 255, 0.8); }
.button.ghost:hover { border-color: var(--red); color: var(--red-mid); transform: translateY(-2px); }
.button.light { background: #fff; color: var(--red-mid); }
.button.light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.4); }
.button.outline { border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; }
.button.outline:hover { border-color: #fff; transform: translateY(-2px); }

/* hero cinema */
.hero-cinema {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 600px; background: url("media/w4/posters/ARCH-W4-TOURING-MASTER-POSTER-V001.jpg") 62% center / cover no-repeat var(--dark);
  box-shadow: var(--shadow-2);
}
.hero-cinema video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% center;
  opacity: 0; transition: opacity 0.8s ease;
}
.cinema-head {
  position: absolute; inset: 0 0 auto 0; z-index: 3; padding: 24px 28px 46px;
  display: flex; flex-direction: column; gap: 3px; color: #fff;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.72), rgba(5, 6, 10, 0.3) 60%, transparent);
}
.cinema-head .mono-tag { color: #ff8a8a; }
.cinema-head strong { font-family: var(--font-head); font-size: clamp(28px, 2.4vw, 40px); font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; }
.cinema-sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.hero-cinema::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 150px; z-index: 2;
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.8), transparent); pointer-events: none;
}
.cinema-chip {
  position: absolute; z-index: 3; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 12px; font-weight: 500; color: #fff;
  background: rgba(8, 9, 12, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 9px 15px;
  max-width: min(78%, 420px);
}
.cinema-chip i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b52; flex: none; animation: pulse 1.7s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* facts */
.facts {
  width: min(var(--shell), 100% - 48px); margin: 56px auto 0; padding: 26px 0;
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--red); }
.facts b { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; }
.facts span { font-size: 13.5px; color: var(--muted); }

/* ============ SECTIONS ============ */
.section { padding: 108px 0; }
.section.tint { background: var(--paper-tint); }
.sec-head { max-width: 780px; margin-bottom: 56px; }
.sec-num { display: block; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(34px, 3.6vw, 54px); font-weight: 700; letter-spacing: -0.025em; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 640px; }

/* ============ SCHEDULE ============ */
.schedule { list-style: none; border-top: 1px solid var(--line-dark); }
.slot {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 240px;
  gap: clamp(20px, 3vw, 48px); align-items: center;
  padding: 34px 6px; border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.slot:hover { background: #fcfcfd; }
.slot-time { display: grid; gap: 8px; align-content: start; }
.slot-time time { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--muted); border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 4px 11px; width: max-content;
}
.tag.red { color: #fff; background: var(--red); border-color: var(--red); }
.slot-body h3 { font-size: clamp(20px, 1.9vw, 27px); font-weight: 600; margin-bottom: 8px; }
.slot-body > p { color: var(--muted); font-size: 15.5px; max-width: 640px; }
.slot-do {
  margin-top: 12px; font-size: 14px; color: var(--ink-soft);
  padding-left: 14px; border-left: 2px solid var(--red); max-width: 640px;
}
.slot-link {
  display: inline-block; margin-top: 12px; font-family: var(--font-head);
  font-size: 13.5px; font-weight: 600; color: var(--red-mid); text-decoration: none;
}
.slot-link:hover { text-decoration: underline; }
.slot-thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-1); }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.slot:hover .slot-thumb img { transform: scale(1.04); }
.slot.break { opacity: 0.72; padding-block: 22px; }
.slot.break h3 { font-size: 17px; font-weight: 500; color: var(--muted); }

/* ============ ESSENTIALS ============ */
.ess-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
.ess-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 30px 34px; box-shadow: var(--shadow-1);
}
.ess-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ess-card ul { list-style: none; display: grid; gap: 10px; }
.ess-card li { padding-left: 22px; position: relative; font-size: 15.5px; color: var(--ink-soft); }
.ess-card li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 2px; background: var(--red); }
.ess-note { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--red-mid); }
.ess-split { display: grid; gap: 18px; }
.ess-split p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.ess-split b { color: var(--ink); font-weight: 600; }

/* ============ OUTCOMES / TAKEAWAYS ============ */
.outcome-grid, .takeaway-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.outcome-grid li, .takeaway-grid article {
  padding: 30px 28px 34px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  transition: background 0.2s;
}
.outcome-grid li:hover, .takeaway-grid article:hover { background: var(--paper-tint); }
.o-num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--red); display: block; margin-bottom: 14px; }
.outcome-grid h3, .takeaway-grid h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.outcome-grid p, .takeaway-grid p { font-size: 14.5px; color: var(--muted); }
.boundary {
  margin-top: 44px; font-size: 13.5px; color: var(--muted); max-width: 820px;
  padding: 18px 22px; border: 1px dashed var(--line-dark); border-radius: var(--radius);
}

/* ============ WORKSHOPS ============ */
.workshop { padding: 74px 0 30px; }
.workshop + .workshop { border-top: 1px solid var(--line); }
.w-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; margin-bottom: 36px; }
.w-num {
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(44px, 5vw, 72px);
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--red);
}
.w-head h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; margin: 8px 0 10px; }
.w-head p { color: var(--muted); max-width: 720px; }
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 44px;
}
.steps li {
  border-top: 2px solid var(--red); background: #fff; padding: 14px 16px 16px;
  font-size: 14px; color: var(--ink-soft); border-radius: 0 0 var(--radius) var(--radius);
  border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.steps b { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--red-mid); margin-bottom: 6px; }

.g-block { margin-bottom: 52px; }
.g-head { margin-bottom: 20px; }
.g-head h4 { font-size: 21px; font-weight: 700; margin-top: 8px; }
.g-head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 680px; }

.grid { display: grid; gap: 14px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g5 { grid-template-columns: repeat(5, 1fr); }

.g {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-tint); text-decoration: none; box-shadow: var(--shadow-1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.g:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.g img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.grid.g5 .g img { aspect-ratio: 1 / 1; }
.g:hover img { transform: scale(1.045); }
.g-cap {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(8, 9, 12, 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 9px; padding: 7px 10px; width: max-content; max-width: calc(100% - 20px);
}
.g-cap i { font-family: var(--font-mono); font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; color: #ff8a8a; flex: none; }

/* dark workshop (W4) */
.workshop.dark { background: var(--dark); color: #fff; padding-bottom: 74px; }
.workshop.dark .w-head p, .workshop.dark .g-head p { color: #9aa1ab; }
.workshop.dark .mono-tag { color: #ff8a8a; }
.workshop.dark .w-num { -webkit-text-stroke-color: #ff4d5e; }
.v-feature, .v-proof { margin-bottom: 16px; }
.v-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.v-card {
  position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--dark-2);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s;
}
.v-card:hover { transform: translateY(-4px); }
.v-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.92; transition: opacity 0.2s, transform 0.6s ease; }
.v-card:hover img { opacity: 1; transform: scale(1.03); }
.v-card.wide img { aspect-ratio: 21 / 9; }
.v-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 0, 0, 0.9); color: #fff; font-size: 19px; padding-left: 4px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); transition: transform 0.2s, background 0.2s;
}
.v-card:hover .v-play { transform: translate(-50%, -50%) scale(1.1); background: var(--red); }
.v-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px; text-align: left;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 500; color: #fff; line-height: 1.45;
  background: rgba(8, 9, 12, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 10px; padding: 9px 13px; width: max-content; max-width: calc(100% - 24px);
}
.v-cap i { font-family: var(--font-mono); font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; color: #ff8a8a; flex: none; }

/* W5 meta */
.w5-meta { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-bottom: 40px; }
.browser-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line); background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--paper-tint); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-dark); }
.browser-bar i:first-child { background: #ff5f57; }
.browser-bar .mono-tag { margin-left: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: none; }
.w5-copy h4 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.3; }
.w5-copy h4 em { font-style: normal; color: var(--red-mid); }
.w5-copy > p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
.w5-copy ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.w5-copy li { padding-left: 26px; position: relative; font-size: 15px; color: var(--ink-soft); }
.w5-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-head); font-size: 16.5px; font-weight: 600; padding: 18px 22px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--red); font-size: 20px; font-weight: 400; transition: transform 0.25s; flex: none; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq-list details[open] { border-color: rgba(255, 0, 0, 0.3); }

/* ============ ENROLL ============ */
.enroll-card {
  background: linear-gradient(135deg, #e50000, var(--red-mid) 70%, var(--red-deep));
  border-radius: 28px; color: #fff; text-align: center;
  padding: clamp(48px, 6vw, 84px) 28px;
  box-shadow: 0 40px 90px -30px rgba(153, 0, 0, 0.55);
  position: relative; overflow: hidden;
}
.enroll-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
}
.enroll-card h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; margin: 18px 0 14px; position: relative; }
.enroll-card p { color: rgba(255, 255, 255, 0.85); position: relative; }
.enroll-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; position: relative; }

/* ============ FOOTER ============ */
footer { background: var(--dark); color: #a7adb6; }
.foot-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding: 60px 0 44px; align-items: start; }
.foot-brand img { width: 110px; height: auto; margin-bottom: 14px; }
.foot-brand b { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; }
.foot-brand p { font-size: 13.5px; max-width: 380px; }
.foot-links { display: grid; gap: 10px; justify-items: start; }
.foot-links a { font-size: 14px; text-decoration: none; transition: color 0.15s; }
.foot-links a:hover { color: #fff; }
.foot-line {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  width: min(var(--shell), 100% - 48px); margin-inline: auto; padding: 18px 0 26px;
  font-size: 12px;
}
.foot-line .mono-tag { color: #565c66; }

.mobile-cta {
  display: none; position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  background: #ffffff; color: var(--ink); text-decoration: none; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  border: 1px solid #e2e4e9;
  padding: 15px; border-radius: 999px; box-shadow: 0 20px 46px -14px rgba(11, 13, 16, 0.4);
}

/* ============ LIGHTBOX ============ */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 6, 8, 0.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-stage { max-width: min(92vw, 1400px); max-height: 88vh; display: grid; gap: 12px; justify-items: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.lb-stage figcaption { color: rgba(255, 255, 255, 0.8); font-size: 14px; font-family: var(--font-head); text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; cursor: pointer; transition: background 0.15s;
}
.lb-close { top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 84px; font-size: 30px; border-radius: 10px; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 0, 0, 0.65); }

/* ============ REVEAL ============ */
.reveal, .reveal-scale { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 0.68, 0.26, 1), transform 0.7s cubic-bezier(0.22, 0.68, 0.26, 1); }
.reveal-scale { transform: translateY(30px) scale(0.985); }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; } .reveal.d5 { transition-delay: 0.4s; }
.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .cinema-chip i { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-cinema { min-height: 440px; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ess-grid { grid-template-columns: 1fr; }
  .outcome-grid, .takeaway-grid { grid-template-columns: repeat(2, 1fr); }
  .v-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.g4, .grid.g5 { grid-template-columns: repeat(3, 1fr); }
  .w5-meta { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 150px minmax(0, 1fr); }
  .slot-thumb { display: none; }
  .navlinks {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 20px; gap: 4px;
    transform: translateY(-16px); opacity: 0; pointer-events: none; transition: transform 0.22s, opacity 0.22s;
    box-shadow: 0 30px 60px -30px rgba(11, 13, 16, 0.3);
  }
  .navlinks.open { transform: none; opacity: 1; pointer-events: auto; }
  .navlinks a { padding: 12px 14px; font-size: 16px; }
  .navlinks .nav-cta { margin-left: 0; text-align: center; justify-content: center; display: inline-flex; }
  .menu-toggle {
    display: grid; gap: 5px; background: none; border: 0; cursor: pointer; padding: 12px 6px;
  }
  .menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.22s, opacity 0.22s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 72px 0; }
  .brand-sub { display: none; }
  .brand-logo { width: 58px; }
  .nav-shell { min-height: 58px; }
  .navlinks { top: 58px; }
  .hero { padding-top: 88px; }
  .hero h1 { font-size: clamp(44px, 12vw, 58px); }
  .hero-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .hero-cinema { min-height: 380px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 16px; }
  .facts b { font-size: 14.5px; }
  .slot { grid-template-columns: 1fr; gap: 10px; padding: 26px 2px; }
  .outcome-grid, .takeaway-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid.g3, .grid.g4, .grid.g5 { grid-template-columns: repeat(2, 1fr); }
  .v-grid { grid-template-columns: 1fr; }
  .w-head { grid-template-columns: 1fr; gap: 10px; }
  .foot-shell { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  footer { padding-bottom: 74px; }
  .enroll-actions .button { width: 100%; justify-content: center; }
}

/* CTA icons */
.btn-ic { width: 21px; height: 21px; flex: none; }
.mobile-cta { display: none; align-items: center; justify-content: center; gap: 10px; }
.mobile-cta .btn-ic.mc path { fill: #06c755; }
.mobile-cta .btn-ic.mc path + path { fill: #fff; }
@media (max-width: 640px) { .mobile-cta { display: flex; } }

/* Thai labels — IBM Plex Sans Thai ตามกฎแบรนด์ (JetBrains Mono ไม่มี glyph ไทย) */
.mono-tag.th, .kicker.th {
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 12.5px;
  font-weight: 700;
}
