*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--black-0);
  color: var(--text-main);
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button,
input {
  font: inherit;
}
h1, h2, h3, p {
  margin: 0;
}
ul, ol {
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
}
button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
/* 2. root variables */
:root {
  --black-0: #050505;
  --black-1: #080808;
  --black-2: #0D0B08;
  --black-3: #14110C;
  --gold-dark: #8C6718;
  --gold: #D6A62C;
  --gold-bright: #F4C94B;
  --gold-soft: #FFE18A;
  --gold-pale: #FFF1BA;
  --text-main: #F8F4EA;
  --text-secondary: #D1CAB9;
  --text-muted: #978F80;
  --border-gold: rgba(214, 166, 44, 0.28);
  --gold-glow: rgba(214, 166, 44, 0.15);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --header-h: 76px;
  --content: 1180px;
  --radius: 22px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
/* 3. base typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(3.1rem, 8vw, 6.4rem);
}
h2 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
}
h3 {
  font-size: 1.2rem;
}
p + p {
  margin-top: 0.9rem;
}
.lede {
  color: var(--text-secondary);
  font-size: 1.08rem;
}
.muted {
  color: var(--text-muted);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-num {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
/* 4. utility classes */
.wrap {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--gold-bright);
  color: #1a1408;
  text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.menu-lock {
  overflow: hidden;
}
.reveal {
  /* visible by default if JS never runs */
}
/* 5. header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #050505;
  border-bottom: 1px solid rgba(214, 166, 44, 0.24);
}
.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: rgba(214, 166, 44, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.header-inner {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
  font-weight: 700;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-gold);
  border-radius: 9px;
  color: var(--gold-bright);
}
.site-header .brand {
  font-size: 1.35rem;
  line-height: 1;
}
.site-header .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.site-header .brand-mark svg {
  width: 22px;
  height: 22px;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: var(--gold-pale);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.site-nav .menu-cta {
  display: none;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold-soft);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background-color: var(--gold-soft);
  background-image: none;
  color: #171108;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: rgba(214, 166, 44, 0.08);
  border-color: var(--gold-bright);
  color: var(--gold-pale);
}
.btn-gold {
  background-color: var(--gold);
  background-image: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  box-shadow: 0 8px 24px var(--gold-glow);
}
.btn-ghost {
  border: 1px solid var(--border-gold);
  color: var(--gold-pale);
  background: rgba(5, 5, 5, 0.35);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.header-cta {
  min-height: 44px;
  padding-inline: 1rem;
  white-space: nowrap;
}
/* 6. hero */
.hero,
.section,
.toc,
.band,
.cta-band,
.value-strip {
  scroll-margin-top: calc(var(--header-h) + 14px);
}
.hero {
  position: relative;
  width: min(100%, 1600px);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: #050505;
}
.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}
.hero-media picture,
.hero-media img,
.cta-media picture,
.cta-media img {
  width: 100%;
  height: 100%;
}
.hero-media img,
.cta-media img {
  object-fit: cover;
}
.hero-media img {
  object-position: center;
}
.cta-media img {
  object-position: 70% center;
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.9) 32%, rgba(5, 5, 5, 0.62) 52%, rgba(5, 5, 5, 0.22) 76%, rgba(5, 5, 5, 0.45) 100%);
}
.hero-copy {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  transform: translateX(-50%);
}
.hero-frame {
  position: relative;
  max-width: 680px;
}
.hero h1 {
  margin: 10px 0 8px;
}
.hero-sub {
  color: var(--gold-soft);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  max-width: none;
  white-space: nowrap;
}
.hero .lede {
  margin-top: 1.1rem;
  max-width: 38rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hero .lede a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.hero .lede a:hover,
.hero .lede a:focus-visible {
  color: var(--gold-pale);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.6rem;
}
.gold-line {
  width: 84px;
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 18px; }
/* 7. toc */
.value-strip {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  padding-bottom: 0;
}
.value-grid,
.toc-grid,
.format-grid,
.glossary-grid,
.myth-grid,
.ref-grid,
.odds-grid {
  display: grid;
  gap: 14px;
}
.value-grid {
  grid-template-columns: repeat(4, 1fr);
}
.surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    var(--black-2);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.value-card,
.toc-card,
.format-card,
.glossary-card,
.myth-card,
.ref-card,
.odds-card,
.path-step,
.score-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    #0c0a07;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.value-card {
  padding: 18px 16px 16px;
  min-height: 100%;
}
.value-card strong,
.toc-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.02rem;
}
.value-card p,
.toc-card p,
.format-card p,
.glossary-card p,
.myth-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.toc {
  padding: 88px 0 40px;
}
.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}
.section-head .lede {
  margin-top: 10px;
}
.toc-grid {
  grid-template-columns: repeat(3, 1fr);
}
.toc-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  padding: 18px;
  text-decoration: none;
  min-height: 132px;
  align-content: start;
}
.toc-card .num {
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.toc-card .icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
}
.toc-card p {
  grid-column: 2;
  margin: 0;
}
/* 8. generic section styles */
.section {
  padding: 92px 0;
  position: relative;
}
.tone-black { background: var(--black-0); }
.tone-panel {
  background:
    radial-gradient(900px 320px at 10% 0%, rgba(214, 166, 44, 0.06), transparent 60%),
    var(--black-1);
}
.tone-lines {
  background:
    linear-gradient(rgba(214, 166, 44, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 166, 44, 0.05) 1px, transparent 1px),
    var(--black-0);
  background-size: 100% 72px, 72px 100%, auto;
}
.tone-grid {
  background:
    radial-gradient(circle at 1px 1px, rgba(214, 166, 44, 0.16) 1px, transparent 0),
    var(--black-2);
  background-size: 22px 22px, auto;
}
.tone-soft {
  background: linear-gradient(180deg, #100e0a, #080807 70%);
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.split > *,
.two-col > *,
.score-grid > *,
.odds-grid > *,
.format-grid > *,
.glossary-grid > *,
.myth-grid > *,
.ref-grid > *,
.value-grid > *,
.toc-grid > *,
.footer-grid > *,
.flow > * {
  min-width: 0;
}
.split.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
.split.reverse .split-copy {
  order: 2;
}
.stack {
  display: grid;
  gap: 14px;
}
.stack + .stack,
.prose + .stack,
.prose .stack {
  margin-top: 16px;
}
.prose p,
.note,
.faq-panel p,
.modal-panel p {
  color: var(--text-secondary);
}
.note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-gold);
  font-size: 0.98rem;
}
.contextual-link {
  color: var(--gold-soft);
  font-weight: 600;
  text-underline-offset: 3px;
}
.contextual-link:hover {
  color: var(--gold-pale);
}
.check-list,
.plain-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-secondary);
}
.check-list li {
  padding-left: 1.1rem;
  position: relative;
}
.check-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.7em;
}
/* 9. image/media blocks */
.media-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow);
  background: #090907;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.media-frame.portrait img,
.media-frame.cards img {
  aspect-ratio: 4 / 3;
}
.media-frame figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: var(--text-main);
  font-size: 0.85rem;
  text-shadow: 0 1px 8px #000;
}
.band {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.band .wrap {
  position: relative;
  z-index: 1;
  padding: 48px 0;
}
.band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.15), rgba(5, 5, 5, 0.82));
}
/* 10. cards */
.icon-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
}
/* 11. scoring cards */
.pcard {
  width: 68px;
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #efe4cc);
  color: #141414;
  border: 1px solid rgba(214, 166, 44, 0.55);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px 8px 8px;
  font-weight: 700;
  line-height: 1;
}
.pcard small {
  font-size: 1.15rem;
  align-self: flex-end;
}
.pcard.red {
  color: #8f2430;
}
.pcard.mini {
  width: 54px;
  height: 76px;
  font-size: 0.95rem;
}
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.score-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.score-eq {
  color: var(--gold-soft);
  font-weight: 700;
}
.value-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.value-card-btn {
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border-gold);
  background: #0c0a07;
  min-height: 168px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.value-card-btn strong {
  color: var(--gold-soft);
}
.value-card-btn > span:not(.pcard) {
  color: var(--text-secondary);
  font-size: 0.92rem;
}
/* 12. timeline */
.timeline {
  display: grid;
  gap: 0;
  margin-top: 8px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--border-gold);
}
.timeline-item:last-child::before {
  display: none;
}
.step-no {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-weight: 700;
  background: #0b0a08;
}
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.flow article {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border-gold);
  background: rgba(255, 255, 255, 0.03);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.two-col article,
.path-step,
.ref-card,
.odds-card,
.myth-card,
.glossary-card,
.format-card {
  padding: 18px;
}
.side-label {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}
/* 13. tables/data */
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  margin-top: 16px;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(214, 166, 44, 0.16);
  vertical-align: top;
}
th {
  color: var(--gold-soft);
  font-weight: 600;
  background: rgba(214, 166, 44, 0.06);
}
td {
  color: var(--text-secondary);
}
.chart {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  background: #090806;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.odds-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}
.odds-card .en {
  font-size: 1.35rem;
  color: var(--gold-pale);
}
.diff-panel {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(400px 120px at 50% 0%, rgba(214, 166, 44, 0.12), transparent 70%),
    #0c0a07;
}
.diff-panel strong {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}
.diff-panel span {
  color: var(--text-secondary);
}
.diff-neq {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 1.8rem;
}
.format-grid {
  grid-template-columns: repeat(3, 1fr);
}
.format-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 12px;
}
.format-card h3,
.glossary-card h3,
.myth-card h3,
.path-step h3,
.ref-card h3,
.odds-card h3 {
  margin-bottom: 6px;
}
.era {
  display: grid;
  gap: 14px;
}
.era article {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(214, 166, 44, 0.16);
}
.glossary-grid,
.myth-grid {
  grid-template-columns: repeat(3, 1fr);
}
.ref-grid {
  grid-template-columns: repeat(4, 1fr);
}
.path {
  display: grid;
  gap: 12px;
}
.path-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}
.myth-card .tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}
/* 14. FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.faq-item h3 {
  margin: 0;
}
.faq-item button {
  width: 100%;
  min-height: 56px;
  text-align: left;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-weight: 600;
}
.faq-item button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--gold-soft);
  border-bottom: 1.5px solid var(--gold-soft);
  transform: rotate(45deg);
  flex: none;
}
.faq-item.is-open button::after {
  transform: rotate(225deg);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
html:not(.js) .faq-panel {
  grid-template-rows: 1fr;
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel-inner {
  overflow: hidden;
}
.faq-panel-inner p {
  padding: 0 18px 16px;
}
/* 15. modals */
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 22px;
  background: #100e0b;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  color: var(--gold-pale);
}
.modal-panel h2 {
  font-size: 1.6rem;
  padding-right: 48px;
  margin-bottom: 12px;
}
.linkish {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding: 0;
}
/* 16. footer */
.cta-band {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.cta-media {
  position: absolute;
  inset: 0;
}
.cta-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.78) 46%, rgba(5, 5, 5, 0.35) 100%);
}
.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 72px 0;
}
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-gold);
  background: #070705;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}
.footer-nav,
.footer-legal {
  display: grid;
  gap: 4px;
  align-content: start;
}
.footer-nav a,
.footer-legal button {
  justify-self: start;
  width: fit-content;
  min-height: 0;
  text-align: left;
  text-decoration: none;
  color: var(--text-secondary);
}
.footer-rule {
  margin-top: 32px;
  border-top: 1px solid var(--border-gold);
}
.legal-note {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(214, 166, 44, 0.55);
  background: rgba(5, 5, 5, 0.9);
  color: var(--gold-bright);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.to-top:hover,
.to-top:focus-visible {
  border-color: var(--gold-bright);
  color: #fff4cc;
}
.to-top[hidden] {
  display: none;
}
.to-top svg {
  width: 16px;
  height: 16px;
  display: block;
}
/* 17. responsive breakpoints */
@media (max-width: 1100px) {
  .value-grid,
  .ref-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toc-grid,
  .format-grid,
  .glossary-grid,
  .myth-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1040px) {
  .nav-toggle {
    display: flex;
  }
  .site-header.is-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  body.menu-lock {
    padding-top: var(--header-h);
  }
  .site-header.is-open .brand,
  .site-header.is-open .nav-toggle {
    position: relative;
    z-index: 70;
  }
  .site-nav {
    position: fixed;
    z-index: 60;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #050505;
    padding: calc(var(--header-h) + 12px) 18px 28px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    overflow: auto;
  }
  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav a {
    font-size: 1.15rem;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(214, 166, 44, 0.12);
  }
  .header-cta {
    display: none;
  }
  html:not(.js) .header-cta {
    display: inline-flex;
  }
  html:not(.js) .site-header {
    position: sticky;
    height: auto;
    background: #050505;
  }
  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  html:not(.js) .site-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    padding: 0 0 8px;
    background: transparent;
  }
  html:not(.js) .nav-toggle {
    display: none;
  }
  .site-nav a.menu-cta {
    display: inline-flex;
    margin-top: 16px;
    color: #1a1408;
    border-bottom: 0;
  }
  .site-nav a.menu-cta:hover,
  .site-nav a.menu-cta:focus-visible {
    color: #1a1408;
  }
}
@media (max-width: 860px) {
  .section {
    padding: 72px 0;
  }
  .split,
  .split.reverse,
  .two-col,
  .flow,
  .score-grid,
  .odds-grid,
  .footer-grid,
  .diff-panel,
  .era article,
  .path-step {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-copy {
    order: 0;
  }
  .diff-neq {
    justify-self: start;
  }
  .hero {
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    display: block;
    padding: 0 0 36px;
    overflow: visible;
  }
  .hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
  .hero-shade {
    height: auto;
    aspect-ratio: 16 / 9;
    inset: auto;
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.28) 46%, rgba(5, 5, 5, 0.08) 100%);
  }
  .hero-title {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: min(var(--content), calc(100% - 32px));
    height: calc(100vw * 9 / 16);
    margin: 0;
    transform: translateX(-50%);
  }
  .hero-title .gold-line {
    margin-bottom: 0;
  }
  .cta-shade {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.15) 20%, rgba(5, 5, 5, 0.55) 70%, #050505 100%);
  }
  .hero-media img {
    object-position: center;
  }
  .hero-frame {
    position: static;
    max-width: none;
  }
  .hero-copy {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    display: block;
    transform: none;
    margin-top: 18px;
    padding-top: 0;
  }
  .hero-sub {
    max-width: none;
    white-space: normal;
  }
  .value-strip {
    margin-top: 0;
    padding-top: 8px;
  }
  .toc {
    padding-top: 56px;
  }
  .value-wall {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .cta-shade {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.25) 0%, rgba(5, 5, 5, 0.9) 100%);
  }
}
@media (max-width: 560px) {
  .wrap,
  .header-inner,
  .hero-title {
    width: min(var(--content), calc(100% - 28px));
  }
  .value-grid,
  .toc-grid,
  .format-grid,
  .glossary-grid,
  .myth-grid,
  .ref-grid,
  .value-wall {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
  }
  .header-cta {
    width: auto;
  }
}
@media (hover: hover) {
  .toc-card:hover,
  .value-card-btn:hover,
  .format-card:hover,
  .glossary-card:hover {
    transform: translateY(-3px);
  }
}
/* 18. reduced-motion rules */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-motion .reveal {
    opacity: 1;
    transform: none;
  }
}
.js-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.js-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-motion .gold-line {
  transform-origin: left center;
  animation: line-in 0.7s ease both;
}
@keyframes line-in {
  from { transform: scaleX(0.15); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}