:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-card: #ffffff;
  --paper: #fafafa;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --muted: #666666;
  --muted-light: #999999;
  --line: #ececec;
  --line-soft: #f3f3f3;
  --red: #ff0000;
  --red-mid: #cc0000;
  --red-deep: #990000;
  --red-soft: #ffe5e5;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Anuphan", "Inter", "Noto Sans Thai", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(800px 500px at 95% -5%, rgba(255, 0, 0, 0.04), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(0, 0, 0, 0.025), transparent 55%);
  pointer-events: none;
}
body.lightbox-open { overflow: hidden; }
img {
  display: block; max-width: 100%;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* HEADER */
.site-header {
  position: fixed; top: 18px; left: 50%;
  z-index: 30;
  display: flex; width: min(1180px, calc(100% - 24px));
  min-height: 64px;
  align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 64px; place-items: center; }
.brand-mark img { width: 100%; height: auto; }
.brand-text {
  font-family: "Inter", "Anuphan", sans-serif;
  font-size: 12px; font-weight: 700; line-height: 1.2;
  color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em;
  padding-left: 12px; border-left: 2px solid var(--red);
}
.top-nav { display: flex; gap: 4px; align-items: center; }
.top-nav a {
  padding: 8px 12px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft); border-radius: 10px;
  transition: all 0.15s;
}
.top-nav a:hover { background: var(--bg-soft); color: var(--red); }
@media (max-width: 760px) { .top-nav { display: none; } .brand-text { display: none; } }

/* FLOATING NAV */
.floating-nav {
  position: fixed; right: 16px; top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}
.floating-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-soft); border-radius: 8px;
  transition: all 0.15s;
}
.floating-nav a span {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  font-size: 10px; font-family: "Inter", monospace;
  background: var(--bg-soft); border-radius: 6px; color: var(--muted);
}
.floating-nav a:hover { background: var(--bg-soft); color: var(--red); }
.floating-nav a:hover span { background: var(--red); color: #fff; }
.floating-nav a.active { background: var(--bg-soft); color: var(--red); }
.floating-nav a.active span { background: var(--red); color: #fff; }
.floating-nav a.hot { background: var(--ink); color: #fff; }
.floating-nav a.hot span { background: var(--red); color: #fff; }
.floating-nav a.hot:hover { background: var(--red); }
@media (max-width: 1100px) { .floating-nav { display: none; } }

/* HERO */
main { padding-top: 110px; }
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { padding: 0; }
.hero-kicker { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero-kicker span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted);
}
.hero-kicker span:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow.light { color: rgba(255, 255, 255, 0.7); }

/* Course name — prominent display above kicker chips */
.course-name {
  display: inline-block;
  font-family: "Anuphan", "Inter", sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  padding: 6px 16px 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.scale-title {
  display: grid; gap: 4px;
  margin: 0 0 24px;
  font-family: "Anuphan", sans-serif;
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
}
.scale-title .title-small { font-size: clamp(20px, 3vw, 28px); font-weight: 600; color: var(--muted); }
.scale-title .title-main { font-size: clamp(40px, 6vw, 64px); font-weight: 800; color: var(--ink); }
.scale-title .title-main em { font-style: normal; color: var(--red); }
.scale-title .title-bottom { font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; color: var(--ink-soft); margin-top: 4px; }
.lead { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 700;
  border-radius: 12px;
  transition: all 0.15s;
  cursor: pointer; border: 1px solid transparent;
}
.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 0, 0, 0.25); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: #fff; }

/* HERO STAGE - image collage */
.hero-stage {
  position: relative;
  aspect-ratio: 5 / 6;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
}
.showpiece {
  position: absolute;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}
.showpiece img { width: 100%; height: 100%; object-fit: cover; }
.showpiece-main {
  inset: 0 0 0 8%;
  z-index: 1;
}
.showpiece-decor-one {
  width: 38%; aspect-ratio: 3 / 4;
  bottom: -4%; left: -6%;
  z-index: 2;
  border: 4px solid #fff;
}
.showpiece-decor-two {
  width: 34%; aspect-ratio: 4 / 5;
  top: 4%; right: -4%;
  z-index: 2;
  border: 4px solid #fff;
  border-radius: 18px;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 16px; }
  .hero-stage { max-width: 420px; margin: 0 auto; }
}

/* HERO META */
.hero-meta-strip {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.meta-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.meta-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-light);
}
.meta-item strong { font-size: 16px; font-weight: 700; color: var(--ink); font-family: "Anuphan", sans-serif; }
@media (max-width: 700px) { .hero-meta-strip { grid-template-columns: repeat(2, 1fr); } }

/* VALUE STRIP */
.value-strip {
  max-width: 1180px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.value-strip > div {
  background: var(--ink); color: #fff;
  border-radius: 18px; padding: 28px 26px;
  display: flex; flex-direction: column; gap: 6px;
}
.value-strip > div:nth-child(2) { background: var(--red); }
.value-strip span {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  opacity: 0.8;
}
.value-strip strong { font-size: 20px; font-weight: 700; font-family: "Anuphan", sans-serif; line-height: 1.4; }
@media (max-width: 800px) { .value-strip { grid-template-columns: 1fr; } }

/* STRATEGY BAND with image */
.strategy-band {
  max-width: 1180px;
  margin: 0 auto 100px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.strategy-text { display: flex; flex-direction: column; gap: 16px; }
.strategy-tag {
  display: inline-block; width: fit-content;
  padding: 8px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  background: var(--ink); color: #fff; border-radius: 999px;
}
.strategy-text h2 {
  display: grid; gap: 4px;
  margin: 0;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink); font-family: "Anuphan", sans-serif;
}
.strategy-text h2 span:nth-child(2) { color: var(--red); }
.strategy-text p { color: var(--muted); font-size: 16px; margin: 0; }
.strategy-image { margin: 0; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.strategy-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .strategy-band { grid-template-columns: 1fr; gap: 24px; } }

/* SECTION HEAD */
.section-head { max-width: 760px; margin: 0 auto 40px; padding: 0 24px; text-align: center; }
.section-label {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--red); background: var(--red-soft);
  border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 14px; font-family: "Anuphan", sans-serif;
}
.section-lead { color: var(--muted); font-size: 16px; margin: 0; line-height: 1.7; }

/* PROCESS with image */
.process-section { max-width: 1180px; margin: 0 auto 100px; padding: 0 24px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.2s;
}
.process-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.process-image {
  margin: 0; aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}
.process-image img { width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform 0.4s; }
.process-card:hover .process-image img { transform: scale(1.05); }
.process-content { padding: 28px 24px; }
.process-num {
  display: inline-block;
  font-family: "Inter", monospace;
  font-size: 32px; font-weight: 800;
  color: var(--red); line-height: 1;
  margin-bottom: 10px; letter-spacing: -0.04em;
}
.process-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; color: var(--ink); font-family: "Anuphan", sans-serif; }
.process-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.process-examples, .process-steps {
  list-style: none; padding: 0; margin: 14px 0 0;
  border-top: 1px solid var(--line-soft); padding-top: 12px;
}
.process-examples li, .process-steps li {
  font-size: 14px; color: var(--ink-soft);
  padding: 5px 0; display: flex; gap: 10px; align-items: flex-start;
}
.process-examples li::before { content: "•"; color: var(--red); font-weight: 700; }
.process-steps { counter-reset: step; }
.process-steps li { counter-increment: step; }
.process-steps li::before {
  content: counter(step);
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  font-family: "Inter", monospace; font-size: 11px; font-weight: 700;
  background: var(--ink); color: #fff; border-radius: 6px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; } }

/* OUTCOME with image */
.outcome-section { max-width: 1180px; margin: 0 auto 80px; padding: 0 24px; }
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.outcome-card {
  background: var(--ink); color: #fff;
  border-radius: 20px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.outcome-card:hover { background: var(--red); transform: translateY(-2px); }

/* All cards with image use same 4:5 aspect — equal layout */
.outcome-card.with-image { padding: 0; display: flex; flex-direction: column; }
.outcome-card.with-image figure {
  margin: 0; aspect-ratio: 4 / 5;
  overflow: hidden;
  flex-shrink: 0;
}
.outcome-card.with-image figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 0.4s; }
.outcome-card.with-image:hover figure img { transform: scale(1.05); }
.outcome-card.with-image .outcome-tag,
.outcome-card.with-image h3,
.outcome-card.with-image p {
  padding-left: 22px; padding-right: 22px;
}
.outcome-card.with-image .outcome-tag { margin-top: 18px; }
.outcome-card.with-image h3 { margin-top: 0; }
.outcome-card.with-image p { padding-bottom: 22px; flex-grow: 1; }

/* Mascot card — full mascot on white bg, fills 4:5 frame */
.outcome-card.mascot-card { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.outcome-card.mascot-card:hover { background: var(--bg-soft); }
.outcome-card.mascot-card figure { background: #fff; aspect-ratio: 4/5; }
.outcome-card.mascot-card figure img { object-fit: cover; object-position: center 30%; padding: 0; }
.outcome-card.mascot-card .outcome-tag { background: var(--red); color: #fff; }
.outcome-card.mascot-card h3 { color: var(--ink); }
.outcome-card.mascot-card p { color: var(--muted); }

/* Portfolio mockup card — keep 4:5 aspect but show top of browser screenshot */
.outcome-card.portfolio-mock figure { background: var(--bg-soft); aspect-ratio: 4/5; }
.outcome-card.portfolio-mock figure img { object-fit: cover; object-position: center top; }
.outcome-tag {
  display: inline-block;
  font-family: "Inter", monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px; padding: 4px 8px;
  width: fit-content;
}
.outcome-card h3 { font-size: 18px; font-weight: 700; margin: 0; color: #fff; font-family: "Anuphan", sans-serif; }
.outcome-card p { font-size: 14px; color: rgba(255, 255, 255, 0.78); margin: 0; line-height: 1.6; }

/* FEATURE BAND - large image with overlay */
.feature-band {
  position: relative;
  margin: 0 auto 100px;
  max-width: 1280px;
  padding: 0 24px;
}
.feature-image {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  position: relative;
  background: var(--ink);
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }
.feature-overlay {
  position: absolute;
  inset: 0 24px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 0 8% 0 8%;
  color: #fff;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  border-radius: 28px;
}
.feature-overlay h2 {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 14px; color: #fff;
  font-family: "Anuphan", sans-serif;
}
.feature-overlay p { font-size: 15px; color: rgba(255, 255, 255, 0.85); max-width: 540px; margin: 0; }
@media (max-width: 800px) {
  .feature-image { aspect-ratio: 4 / 5; }
  .feature-overlay { padding: 0 6%; background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.85)); justify-content: flex-end; padding-bottom: 8%; }
}

/* OUTLINE / TIMELINE with thumbs */
.outline-section { max-width: 1180px; margin: 0 auto 100px; padding: 0 24px; }
.timeline {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.timeline-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line-soft);
  transition: all 0.15s;
}
.timeline-row.with-thumb { grid-template-columns: 200px 1fr 140px; }
.timeline-row:last-child { border-bottom: none; }
.timeline-row:not(.break):hover { background: var(--bg-soft); }
.time-stamp {
  padding: 24px;
  font-family: "Inter", monospace; font-size: 13px; font-weight: 700;
  color: var(--red-deep);
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.ws-tag {
  display: inline-block; padding: 3px 8px;
  font-size: 10px; font-weight: 800;
  background: var(--red); color: #fff;
  border-radius: 5px; letter-spacing: 0.05em;
}
.time-content { padding: 24px 28px; }
.time-en {
  font-family: "Inter", sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin: 0 0 4px;
}
.time-content h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--ink); font-family: "Anuphan", sans-serif; }
.time-content p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }
.time-thumb {
  margin: 0;
  border-left: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex; align-items: stretch;
}
.time-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 0.4s; }
.time-thumb-portrait { background: var(--bg-soft); }
.time-thumb-portrait img { object-fit: cover; object-position: center top; }
.timeline-row:hover .time-thumb img { transform: scale(1.06); }
.timeline-row.break { background: var(--bg-soft); }
.timeline-row.break .time-stamp { color: var(--muted-light); }
.timeline-row.break .time-content h3 { color: var(--muted); font-size: 14px; font-weight: 600; }
.timeline-row.finale { background: linear-gradient(135deg, #1a0000, #000); }
.timeline-row.finale:hover { background: linear-gradient(135deg, #2a0000, #1a0606); }
.timeline-row.finale .time-stamp { color: #ff8080; border-right-color: rgba(255, 255, 255, 0.1); }
.timeline-row.finale .time-content h3 { color: #fff; }
.timeline-row.finale .time-en { color: #ff6060; }
.timeline-row.finale .time-content p { color: rgba(255, 255, 255, 0.72); }

/* Timeline legend */
.timeline-legend {
  margin-top: 14px; padding: 12px 18px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.timeline-legend .ws-tag { font-size: 10px; }
.timeline-legend strong { color: var(--ink); font-weight: 700; }
@media (max-width: 800px) {
  .timeline-row, .timeline-row.with-thumb { grid-template-columns: 1fr; }
  .time-stamp { border-right: none; border-bottom: 1px solid var(--line-soft); padding: 14px 20px; flex-direction: row; align-items: center; gap: 12px; }
  .time-content { padding: 18px 20px; }
  .time-thumb { display: none; }
}

/* AUDIENCE */
.audience-section { max-width: 1180px; margin: 0 auto 100px; padding: 0 24px; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.audience-item {
  background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 4px;
  transition: all 0.15s;
}
.audience-item:hover { border-color: var(--red); transform: translateY(-2px); }
.audience-item strong { font-size: 16px; font-weight: 700; color: var(--ink); font-family: "Anuphan", sans-serif; }
.audience-item span { font-size: 13.5px; color: var(--muted); }
.note-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.7;
}
.note-box strong { color: var(--red-deep); }

/* SHOWCASE GALLERIES */
.showcase-section { max-width: 1280px; margin: 0 auto 80px; padding: 0 24px; }
.gallery-block { margin-bottom: 70px; }
.gallery-block:last-child { margin-bottom: 0; }
.gallery-head {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.gallery-en {
  font-family: "Inter", sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--red); margin: 0;
}
.gallery-head h3 { font-size: 22px; font-weight: 700; margin: 0; color: var(--ink); font-family: "Anuphan", sans-serif; }
.gallery-head p { font-size: 14px; color: var(--muted); margin: 4px 0 0; max-width: 760px; }

/* Gallery grid - varying density per category */
.gallery-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.gallery-grid.g-12 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.g-9 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.g-8 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.g-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-grid.g-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .gallery-grid.g-12, .gallery-grid.g-8, .gallery-grid.g-4 { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid.g-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .gallery-grid, .gallery-grid.g-12, .gallery-grid.g-9, .gallery-grid.g-8, .gallery-grid.g-5, .gallery-grid.g-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.g-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  display: block;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item::after {
  content: attr(data-cap);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 12px; font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s;
}
.g-item:hover::after { opacity: 1; transform: translateY(0); }

/* FINAL CTA — light theme matching the rest of the site */
.final-cta { max-width: 1280px; margin: 0 auto 80px; padding: 0 24px; }
.final-card {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 60px 50px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.final-card::before {
  content: ""; position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.10), transparent 70%);
  pointer-events: none;
}
.final-card::after {
  content: ""; position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04), transparent 70%);
  pointer-events: none;
}
.final-head { position: relative; text-align: center; max-width: 640px; margin: 0 auto 40px; }
.final-head .eyebrow.light { color: var(--red); background: var(--red-soft); padding: 6px 14px; border-radius: 999px; }
.final-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0 0 14px; color: var(--ink); font-family: "Anuphan", sans-serif; }
.final-lead { color: var(--muted); font-size: 16px; margin: 0; }

.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form-card, .contact-direct-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
}
.contact-card-head { margin-bottom: 18px; }
.contact-card-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  background: var(--bg-card); color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.contact-card-tag.highlight { background: var(--red); color: #fff; border-color: var(--red); }
.contact-card-head h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--ink); font-family: "Anuphan", sans-serif; }
.contact-card-head p { font-size: 14px; color: var(--muted); margin: 0; }

.enroll-form { display: flex; flex-direction: column; gap: 12px; }
.enroll-honey { position: absolute; left: -9999px; opacity: 0; }
.enroll-field { display: flex; flex-direction: column; gap: 6px; }
.enroll-field label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.enroll-field .req { color: var(--red); }
.enroll-field input, .enroll-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  color: var(--ink); font-size: 14px;
  font-family: inherit; transition: all 0.15s;
}
.enroll-field input::placeholder, .enroll-field textarea::placeholder { color: var(--muted-light); }
.enroll-field input:focus, .enroll-field textarea:focus {
  outline: none; border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08);
}
.enroll-field textarea { resize: vertical; min-height: 70px; }
.enroll-submit {
  margin-top: 6px; padding: 14px 24px;
  background: var(--red); color: #fff;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.enroll-submit:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 0, 0, 0.25); }
.enroll-status { font-size: 13px; color: var(--muted); margin: 4px 0 0; min-height: 20px; }

.channel-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px; transition: all 0.15s;
}
.channel-card:last-child { margin-bottom: 0; }
.channel-card:hover { background: #fff; border-color: var(--red); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 0, 0, 0.08); }
.channel-icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
}
.channel-line .channel-icon { background: #06c755; }
.channel-fb .channel-icon { background: #0084ff; }
.channel-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.channel-text strong { font-size: 15px; font-weight: 700; color: var(--ink); font-family: "Anuphan", sans-serif; }
.channel-text span { font-size: 12.5px; color: var(--muted); }
.channel-arrow { color: var(--muted-light); font-size: 18px; font-weight: 700; }

.final-foot { position: relative; margin-top: 36px; text-align: center; }
.final-foot .button.primary { padding: 16px 40px; font-size: 16px; }
@media (max-width: 800px) {
  .final-card { padding: 40px 28px; border-radius: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* FOOTER */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 30px 24px; margin-top: 60px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 80px; height: auto; }
.footer-brand span { font-size: 12px; color: var(--muted); font-weight: 600; }
.footer-meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted-light); }

/* LIGHTBOX */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 32px;
  animation: lightbox-in 0.2s ease;
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff; font-size: 28px;
  cursor: pointer;
  transition: all 0.15s;
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); }
.lightbox-caption {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px; font-weight: 500;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
}
