/* Chang Phueak Fight Club — dark ground, one hot colour, condensed display type that moves. */
@font-face { font-family: "Anton"; src: url("../assets/fonts/anton-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0a0a08;          /* ground, sampled from the hero shadows */
  --ink-2: #15140f;
  --ink-3: #26241c;
  --bone: #efe9dc;         /* text */
  --bone-2: #b8b0a0;
  --bone-3: #7d776a;
  --hot: #f2a33a;          /* warm key light, sampled (234,190,131) pushed to a usable accent */
  --hot-deep: #c9771a;
  --line: rgba(239, 233, 220, .14);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.1rem, 4vw, 4rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); overflow-x: clip; }
html.js.has-lenis { scroll-behavior: auto; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; color: var(--bone); background: var(--ink); overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; padding: .5rem .8rem; background: var(--hot); color: var(--ink); font-weight: 700; border-radius: 6px; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; border: 1.5px solid transparent; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; }
.btn--hot { background: var(--hot); color: var(--ink); }
.btn--hot:hover { background: var(--bone); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); transform: translateY(-2px); }
.btn--xl { min-height: 3.6rem; padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--ink); color: var(--bone); }
.loader__th { font-family: var(--display); font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem); color: var(--hot); letter-spacing: .14em; text-transform: uppercase; }
.loader__n { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) * .6); font-family: var(--display); font-size: clamp(5rem, 18vw, 16rem); line-height: .85; color: var(--bone); font-variant-numeric: tabular-nums; }
html:not(.js) .loader, html.reduced .loader, .loader.is-done { display: none; }

/* ---------- Chrome ---------- */
.chrome { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(.7rem + env(safe-area-inset-top)) var(--gutter) .7rem; transition: background .4s, backdrop-filter .4s; }
.chrome.is-solid { background: rgba(10, 10, 8, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 8px; background: var(--hot); color: var(--ink); font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em; }
.brand__name { white-space: nowrap; font-family: var(--display); font-size: clamp(.95rem, .8rem + .6vw, 1.15rem); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand__name em { font-style: normal; color: var(--hot); }
.nav { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.6rem; padding: .4rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--bone); font: inherit; font-weight: 700; font-size: .85rem; text-transform: uppercase; cursor: pointer; }
.nav__toggle span:not(.nav__label) { width: 18px; height: 2px; background: currentColor; transition: transform .3s; }
.nav__toggle span:nth-child(2) { margin-left: -18px; transform: translateY(5px); }
.nav__toggle span:nth-child(1) { transform: translateY(-3px); }
body.nav-open .nav__toggle span:nth-child(1) { transform: rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { transform: rotate(-45deg); }
.nav__list { list-style: none; margin: 0; padding: 0; display: none; position: absolute; top: calc(100% + .6rem); right: 0; min-width: 14rem; padding: .6rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; }
body.nav-open .nav__list { display: grid; }
.nav__list a { display: block; padding: .7rem .9rem; border-radius: 8px; font-family: var(--display); font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase; }
.nav__list a:hover, .nav__list a.is-current { background: var(--ink-3); color: var(--hot); }
.chrome__cta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 230svh; }
.hero__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__knock { position: absolute; inset: 0; width: 100%; height: 100%; }
.knock { font-family: var(--display); letter-spacing: .01em; }
.hero__video { transform-origin: 50% 50%; will-change: transform; }
.hero__copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); display: grid; gap: 1rem; max-width: 36rem; opacity: 0; }
.hero__copy::before { content: ""; position: absolute; inset: -2rem -2rem -1.5rem -2rem; z-index: -1; background: radial-gradient(ellipse at 20% 80%, rgba(10,10,8,.85), rgba(10,10,8,.35) 60%, transparent 80%); filter: blur(6px); }
.hero__title { font-family: var(--display); font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem); line-height: .92; letter-spacing: .01em; text-transform: uppercase; }
.hero__sub { color: var(--bone-2); font-size: clamp(1rem, .95rem + .4vw, 1.2rem); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
html:not(.js) .hero, html.reduced .hero { height: 100svh; }
html:not(.js) .hero__knock, html.reduced .hero__knock { display: none; }
html:not(.js) .hero__copy, html.reduced .hero__copy { opacity: 1; }
html:not(.js) .hero__video, html.reduced .hero__video { filter: brightness(.7); transform: none !important; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .6rem 0; background: var(--ink); }
.marquee__track { display: flex; align-items: baseline; gap: 1.2rem; width: max-content; white-space: nowrap; font-family: var(--display); font-size: clamp(2rem, 1.4rem + 4vw, 4.5rem); line-height: 1; text-transform: uppercase; color: var(--bone); will-change: transform; }
.marquee__track i { font-style: normal; color: var(--hot); }
.marquee__track .alt { color: var(--bone-3); }
html:not(.js) .marquee__track, html.reduced .marquee__track { animation: none; transform: none; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(5rem, 16vh, 11rem) var(--gutter); display: grid; gap: 2.5rem; }
.manifesto__copy { display: grid; gap: .3rem; }
.bag { color: var(--bone-3); width: min(60vw, 220px); justify-self: center; }
.bag svg { width: 100%; height: auto; overflow: visible; }
.bag__swing { transform-origin: 160px 14px; transform-box: view-box; }
html:not(.js) .bag__swing { animation: sway 3.2s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.manifesto__line { font-family: var(--display); font-size: clamp(2rem, 1.2rem + 5vw, 5.6rem); line-height: 1; text-transform: uppercase; letter-spacing: .005em; color: var(--bone); max-width: 18ch; }
.manifesto__line--hot { color: var(--hot); }
.manifesto__line .word { display: inline-block; }
.manifesto__foot { margin-top: 2rem; max-width: 46ch; color: var(--bone-2); }

/* ---------- Eight limbs ---------- */
.limbs { padding: 0 0 clamp(3rem, 8vh, 6rem); }
.limbs__head { padding: 0 var(--gutter) 2rem; display: grid; gap: 1rem; }
.limbs__title { font-family: var(--display); font-size: clamp(2.2rem, 1.4rem + 4.5vw, 5rem); line-height: .95; text-transform: uppercase; }
.limbs__title span { color: var(--bone-3); }
.limbs__lede { max-width: 52ch; color: var(--bone-2); }
.limbs__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: 3rem; }
.limb { display: grid; gap: 1.1rem; }
.limb__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--ink-2); }
.limb__media img, .limb__media video { width: 100%; height: 100%; object-fit: cover; }
.limb__copy { display: grid; gap: .4rem; }
.limb__no { font-family: var(--display); font-size: .95rem; color: var(--hot); letter-spacing: .1em; }
.limb__name { font-family: var(--display); font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); line-height: .95; text-transform: uppercase; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.limb__text { color: var(--bone-2); max-width: 38ch; }

/* ---------- Section heads ---------- */
.section__head { display: grid; gap: 1rem; padding: 0 0 2.5rem; }
.section__title { font-family: var(--display); font-size: clamp(2.2rem, 1.4rem + 4.5vw, 5rem); line-height: .95; text-transform: uppercase; max-width: 16ch; }
.section__lede { max-width: 56ch; color: var(--bone-2); }

/* ---------- Programs ---------- */
.programs { padding: clamp(4rem, 12vh, 8rem) var(--gutter); border-top: 1px solid var(--line); }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.plan { position: relative; display: grid; align-content: start; gap: .6rem; padding: 1.5rem 1.4rem 1.8rem; background: var(--ink); transition: background .3s; }
.plan:hover { background: var(--ink-2); }
.plan--hot { background: var(--ink-2); }
.plan--hot::before { content: "Most popular"; position: absolute; top: 1rem; right: 1rem; padding: .25rem .6rem; border-radius: 999px; background: var(--hot); color: var(--ink); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.plan__name { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--bone-2); }
.plan__price { font-family: var(--display); font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); line-height: 1; color: var(--bone); }
.plan__price small { font-size: .5em; color: var(--hot); vertical-align: top; margin-right: .1em; }
.plan__price span { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--bone-3); margin-left: .4rem; }
.plan__text { color: var(--bone-2); font-size: .98rem; }

/* ---------- Schedule ---------- */
.schedule { padding: clamp(4rem, 12vh, 8rem) var(--gutter); border-top: 1px solid var(--line); display: grid; gap: 1.5rem; }
.timetable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.timetable th, .timetable td { padding: .9rem .6rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.timetable thead th { font-family: var(--display); font-size: 1.1rem; letter-spacing: .06em; color: var(--bone-3); font-weight: 400; }
.timetable tbody th { font-family: var(--display); font-size: 1.5rem; color: var(--bone); font-weight: 400; width: 4.5rem; }
.timetable td { color: var(--bone-2); }
.timetable strong { color: var(--hot); font-weight: 700; }
.timetable tr.is-today th, .timetable tr.is-today td { color: var(--bone); background: var(--ink-2); }
.timetable tr.is-today th { color: var(--hot); }
.timetable tr.is-closed td { color: var(--bone-3); }
.schedule__note { color: var(--bone-3); font-size: .95rem; }

/* ---------- Trainers ---------- */
.trainers { padding: clamp(4rem, 12vh, 8rem) var(--gutter); border-top: 1px solid var(--line); }
.krus { list-style: none; margin: 0; padding: 0; display: grid; overflow: clip; }
.kru { display: grid; gap: .4rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.kru:last-child { border-bottom: 1px solid var(--line); }
.kru__big { font-family: var(--display); font-size: clamp(3.4rem, 2.4rem + 7vw, 8.5rem); line-height: .9; text-transform: uppercase; color: var(--bone); }
.kru__role { color: var(--hot); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.kru__rec { color: var(--bone-3); font-size: .95rem; }
.kru__text { color: var(--bone-2); max-width: 46ch; }

/* ---------- Visit ---------- */
.visit { position: relative; isolation: isolate; padding: clamp(5rem, 16vh, 11rem) var(--gutter); overflow: hidden; }
.visit__bg { position: absolute; inset: 0; z-index: -1; }
.visit__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.8); }
.visit__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink), transparent 30%, transparent 70%, var(--ink)); }
.visit__inner { display: grid; gap: 2.5rem; justify-items: start; }
.visit__grid { justify-self: stretch; }
.visit__title { font-family: var(--display); font-size: clamp(2.8rem, 1.6rem + 7vw, 8rem); line-height: .9; text-transform: uppercase; }
.visit__grid { display: grid; gap: 1.5rem; }
.visit__block { display: grid; gap: .4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.visit__block h3 { font-family: var(--display); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hot); font-weight: 400; }
.visit__block p, .visit__block address { color: var(--bone-2); }
.visit__block a { color: var(--bone); border-bottom: 1px solid var(--line); }
.visit__block a:hover { border-color: var(--hot); }
.visit__link { display: inline-block; margin-top: .3rem; font-weight: 700; font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: .4rem; color: var(--bone-3); font-size: .9rem; }
.footer__brand { font-family: var(--display); font-size: 1.1rem; color: var(--bone); text-transform: uppercase; letter-spacing: .04em; }
.footer__brand .alt { color: var(--bone-3); font-size: .9em; margin-left: .4rem; }

/* ---------- Desktop ---------- */
@media (min-width: 700px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .visit__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .limbs__track { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .chrome__cta { display: inline-flex; min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .8rem; }
  .nav__toggle { display: none; }
  .nav__list { display: flex; position: static; min-width: 0; padding: 0; background: none; border: 0; gap: .2rem; }
  .nav__list a { padding: .5rem .8rem; font-size: 1rem; }
  .nav__list a.is-current { background: none; color: var(--hot); }
  .hero__copy { max-width: 40rem; }
  .manifesto { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; column-gap: 3rem; }
  .bag { width: min(26vw, 340px); justify-self: end; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .kru { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 3rem; align-items: end; }
  .kru__big { grid-row: 1 / span 3; }
  .kru__role { grid-column: 2; align-self: end; }
  .kru__rec, .kru__text { grid-column: 2; }
  .schedule { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 4rem; align-items: start; }
  .schedule .section__head { position: sticky; top: 6rem; padding-bottom: 0; }
  .schedule__note { grid-column: 2; }

  /* eight limbs: pinned horizontal strip */
  .limbs__pin { overflow: hidden; height: 100svh; display: grid; align-content: center; }
  .limbs__track { display: flex; gap: 0; padding: 0 var(--gutter); width: max-content; will-change: transform; }
  .limb { grid-template-columns: minmax(0, 34vw) minmax(0, 26vw); column-gap: 2.5rem; align-items: end; width: 64vw; margin-right: 6vw; }
  .limb:last-child { margin-right: var(--gutter); }
  .limb__media { height: min(72svh, 760px); aspect-ratio: auto; }
  .limb__copy { padding-bottom: 1.5rem; }
  html:not(.js) .limbs__track, html.reduced .limbs__track { display: grid; grid-template-columns: repeat(2, 1fr); width: auto; gap: 3rem; }
  html:not(.js) .limb, html.reduced .limb { width: auto; margin: 0; }
}
@media (min-width: 1300px) {
  .manifesto, .limbs__head, .programs, .schedule, .trainers, .visit, .footer, .chrome { padding-left: max(var(--gutter), calc((100vw - 1440px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1440px) / 2)); }
  .hero__copy { left: max(var(--gutter), calc((100vw - 1440px) / 2)); }
  .limbs__track { padding-left: max(var(--gutter), calc((100vw - 1440px) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .plan, .chrome { transition: none; }
}
