*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.nav-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(th) body, body:lang(th) { line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

main { overflow-x: clip; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

.section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
/* ส่วนพื้นมืด = "เวที" ลอยบนกระดาษ: ขอบมน + เว้นข้างนิด ๆ ตัดจังหวะหน้ายาวไม่ให้เป็นแถบทึบชนขอบ */
.stage { margin-inline: clamp(6px, 1.2vw, 18px); border-radius: clamp(26px, 3.2vw, 46px); box-shadow: 0 40px 80px -50px rgba(26, 15, 34, .6); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .lead { margin-top: 18px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-2); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.kicker--light { color: var(--gold); }

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -.018em;
  word-spacing: .06em;          /* Fraunces opsz สูง ช่องไฟคำแคบ → คำติดกัน */
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.12;
  letter-spacing: -.012em;
  word-spacing: .04em;
  text-wrap: balance;
}
:lang(th) .h2, :lang(th) .h3 { letter-spacing: 0; word-spacing: 0; line-height: 1.32; }
.h2 em, .h3 em {
  white-space: nowrap; font-style: normal; color: var(--orange);
  background: linear-gradient(transparent 78%, rgba(239, 109, 32, .22) 78% 94%, transparent 94%);
}
.nw { white-space: nowrap; }
/* ภาษาไทยห้ามถ่างตัวอักษร (สระ/วรรณยุกต์แตก) */
:lang(th) .kicker, :lang(th) .step__auto-label, :lang(th) .register__who, :lang(th) .path__when, :lang(th) .footer__col h2 { letter-spacing: .02em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); text-wrap: pretty; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 18px; font-size: 15px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange-ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(239, 109, 32, .8); }
.btn--primary:hover { background: #a9440a; box-shadow: 0 16px 30px -12px rgba(201, 83, 13, .85); }
.btn--ghost { border-color: rgba(42, 28, 18, .18); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn--ghost:hover { border-color: var(--ink); background: #fff; }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* รายการติ๊ก */
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon {
  flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-2); stroke-width: 3;
}
.ticks--sm { gap: 10px; font-size: 15px; }

/* กรอบมือถือ */
.phone {
  position: relative; aspect-ratio: 600 / 1300; padding: 9px; border-radius: 42px;
  background: linear-gradient(145deg, #3a2a20, #120b07);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone::before {
  content: ""; position: absolute; z-index: 2; top: 17px; left: 50%; translate: -50% 0;
  width: 28%; height: 20px; border-radius: 20px; background: #0d0806;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: var(--paper); }

/* ลวดลายโน้ต */
.glyph { width: 100%; height: 100%; }

/* โผล่ตอนเลื่อนถึง (มี JS เท่านั้น) */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
