:root {
  --ink: #0a0a0a;
  --paper: #f4f4f2;
  --dim: rgba(244,244,242,.72);
  --line: rgba(244,244,242,.22);
  --red: #ff2d20;       /* แดงสำหรับตัวหนังสือบนดำ */
  --red-fill: #c8140b;  /* แดงพื้น ใต้ตัวหนังสือขาว */
  --pad: clamp(16px, 3vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #333 var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); caret-color: var(--red); font: 400 17px/1.65 "Noto Sans Thai", sans-serif; overflow-x: hidden; }
::selection { background: var(--red-fill); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 900; font-stretch: 62.5%; line-height: 1.04; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; }
.lat { font-family: "Archivo", sans-serif; font-stretch: 62%; letter-spacing: -.01em; }
.red { color: var(--red); }
.nw { white-space: nowrap; }
.grain { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ปุ่ม */
/* ปุ่มปรับตามจอ: มือถือ ~16px/48px → คอม 22px/64px (ไม่ต่ำกว่าเป้ากดนิ้ว 44px) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: clamp(48px, 34px + 2.1vw, 64px); padding: 0 clamp(18px, 1.2vw + 12px, 32px); border: 2px solid var(--paper); background: transparent; color: var(--paper);
  font: 900 clamp(16px, 12.5px + .65vw, 22px)/1 "Noto Sans Thai", sans-serif; font-stretch: 75%; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.fill { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.btn.fill:hover { background: #fff; border-color: #fff; color: var(--red-fill); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn svg { width: 1.15em; height: 1.15em; }
.arrow { width: 22px; height: 22px; }
.btn svg, .arrow { flex: none; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: square; }

/* หัวข้อแต่ละส่วน */
.section { padding: clamp(64px, 8vw, 128px) var(--pad); }
.h-sec { font-size: clamp(56px, 10vw, 168px); }

/* ── ส่วนแรก ── */
.hero { position: relative; isolation: isolate; height: 100svh; min-height: 640px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.45) brightness(.72); transform: scale(1.06); }
.hero .poster img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.55) 38%, rgba(10,10,10,0) 70%),
    linear-gradient(to right, rgba(10,10,10,.55), rgba(10,10,10,0) 60%),
    linear-gradient(to bottom, rgba(10,10,10,.6), rgba(10,10,10,0) 20%); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--pad); }
.bar img { width: 54px; }
.bar .meta { font: 900 16px/1.3 "Archivo", sans-serif; font-stretch: 62%; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); text-align: right; }
.bar .meta b { color: var(--red); font-weight: 900; }
.bar .meta .th { font-family: "Noto Sans Thai", sans-serif; font-stretch: 75%; letter-spacing: 0; text-transform: none; white-space: nowrap; } /* ไทยไม่ยืดช่องไฟ */
.stage { align-self: end; padding: 0 var(--pad) 24px; }
.hero h1 { font-size: clamp(66px, 15.4vw, 250px); line-height: 1.02; }
.hero h1 .lat { color: var(--red); }
.under { display: grid; gap: 18px; margin-top: clamp(12px, 2vw, 24px); }
.under p { max-width: 34em; color: var(--dim); font-size: clamp(17px, 1.6vw, 22px); text-wrap: pretty; } /* มือถือคง 17px ให้จบใน 2 บรรทัด */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* แถบข้อความวิ่ง (ผู้ใช้เลือกให้วิ่งตลอด) */
.ticker { background: var(--red-fill); color: #fff; overflow: hidden; white-space: nowrap; border-block: 2px solid var(--ink); padding-inline: 12px; }
.ticker div { display: inline-flex; padding: 12px 0; animation: run 28s linear infinite; font: 900 clamp(22px, 2.6vw, 34px)/1 "Archivo", sans-serif; font-stretch: 62%; text-transform: uppercase; letter-spacing: .02em; }
.ticker span { padding: 0 22px; }
.ticker span::before { content: "—"; padding-right: 44px; color: rgba(255,255,255,.55); }
@keyframes run { to { transform: translateX(-50%); } }
/* มือถือตะแคง (จอเตี้ย): คิดขนาดจากความสูงจอ และบีบส่วนแรกให้ปุ่มอยู่ในจอแรก */
@media (orientation: landscape) and (max-height: 600px) {
  .hero { min-height: 340px; }
  .bar { padding-block: 10px; }
  .bar img { width: 40px; }
  .hero h1 { font-size: clamp(40px, 20svh, 160px); }
  .stage { padding-bottom: 14px; }
  .under { grid-template-columns: 1fr auto; align-items: end; margin-top: 8px; }
  .under p { font-size: 15px; }
  .ticker div { padding: 8px 0; font-size: 20px; }
}

/* ── UBFC คืออะไร ── */
.about .grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
.clip { position: relative; display: block; aspect-ratio: 9 / 16; max-width: 400px; width: 100%; overflow: hidden; background: #111; border: 0; }
.clip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.3) brightness(.7); transition: filter .3s, transform .5s cubic-bezier(.16,1,.3,1); }
.clip:hover img, .clip:focus-visible img { filter: grayscale(0) contrast(1.05) brightness(.85); transform: scale(1.03); }
.clip .play { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--red-fill); color: #fff; font: 900 18px/1.2 "Noto Sans Thai", sans-serif; font-stretch: 75%; }
iframe.clip { display: block; }
.about .text { display: grid; gap: clamp(22px, 3vw, 36px); }
.about .lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--dim); max-width: 32em; text-wrap: pretty; }
.steps li span { text-wrap: balance; }
.tenets { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--paper); }
.tenets li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--line); font-weight: 900; font-stretch: 62.5%; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.1; }

/* ── ไฟต์ ── */
.fights header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 4vw, 56px); }
.fights header a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0 6px; font: 900 18px/1 "Noto Sans Thai", sans-serif; font-stretch: 75%; letter-spacing: 0; text-decoration: none; border-bottom: 2px solid var(--red); }
.fights header a .arrow { width: 18px; height: 18px; }
.bouts { display: grid; gap: 4px; }
.bout { position: relative; display: block; aspect-ratio: 5/4; overflow: hidden; text-decoration: none; background: #111; }
.bout { background: var(--red-fill); } /* ช่องระหว่างสองมุมกลายเป็นเส้นทแยงแดง */
.corner { position: absolute; inset: 0; overflow: hidden; }
.corner.l { clip-path: polygon(0 0, 58.5% 0, 41.5% 100%, 0 100%); }
.corner.r { clip-path: polygon(61.5% 0, 100% 0, 100% 100%, 44.5% 100%); }
.corner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.2) brightness(.9); transition: filter .3s; }
.corner.l img { transform: translateX(-23%); } /* หน้าอยู่กลางครึ่งซ้าย */
.corner.r img { transform: translateX(28%); }  /* หน้าอยู่กลางครึ่งขวา */
.bout:hover .corner img, .bout:focus-visible .corner img { filter: grayscale(0) contrast(1.05) brightness(.95); }
.bout .vs { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%) rotate(-6deg); font: 900 clamp(64px, 8vw, 140px)/.8 "Archivo", sans-serif; font-stretch: 62%; color: transparent; -webkit-text-stroke: 2px var(--paper); transition: -webkit-text-stroke-color .2s; }
.bout:hover .vs, .bout:focus-visible .vs { -webkit-text-stroke-color: var(--red); }
.bout .cap { position: absolute; inset: auto 0 0 0; padding: 18px 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; background: linear-gradient(to top, rgba(10,10,10,.92), transparent); }
.bout h3 { font-size: clamp(26px, 3vw, 46px); line-height: 1.05; }
.bout h3 i { font-style: normal; color: var(--red); font-family: "Archivo", sans-serif; font-stretch: 62%; padding: 0 .12em; }
.bout .len { position: absolute; top: 14px; right: 14px; padding: 5px 8px; background: rgba(10,10,10,.72); font: 800 16px/1 "Archivo", sans-serif; font-stretch: 70%; letter-spacing: .08em; color: var(--paper); white-space: nowrap; }
.bout .n { position: absolute; top: 10px; left: 16px; font: 900 clamp(60px, 7vw, 120px)/.8 "Archivo", sans-serif; font-stretch: 62%; color: transparent; -webkit-text-stroke: 1.5px rgba(244,244,242,.7); }
.bout:hover .n, .bout:focus-visible .n { -webkit-text-stroke-color: var(--red); }

/* ── คำถาม ── */
.faq .grid { display: grid; gap: clamp(28px, 4vw, 72px); align-items: start; }
.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--paper); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-weight: 900; font-stretch: 62.5%; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 34px; height: 34px; flex: none; stroke: var(--red); stroke-width: 3; fill: none; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--red); }
.faq details p { padding: 0 56px 28px 0; color: var(--dim); font-size: clamp(17px, 1.4vw, 20px); max-width: 38em; }

/* ── อยากมาซ้อม (พื้นแดงเต็มส่วน) ── */
.join { position: relative; isolation: isolate; overflow: hidden; background: var(--red-fill); color: #fff; }
.join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/join-bg.webp") center / cover; filter: grayscale(1) contrast(1.5); mix-blend-mode: multiply; opacity: .6; }
.join .h-sec { color: #fff; }
.join :focus-visible { outline-color: #fff; }
.steps { list-style: none; padding: 0; margin: clamp(32px, 4vw, 56px) 0; display: grid; gap: 0; border-top: 2px solid #fff; }
.steps li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: clamp(16px, 2vw, 32px); padding: 18px 0; border-bottom: 2px solid rgba(255,255,255,.35); font-weight: 900; font-stretch: 62.5%; font-size: clamp(26px, 3.2vw, 48px); line-height: 1.15; }
.join .cta .btn { min-height: clamp(76px, 7vw, 104px); padding: 0 clamp(28px, 3vw, 48px); font-size: clamp(22px, 2.4vw, 34px); }
.join .cta .btn svg { width: 1.2em; height: 1.2em; }
.steps b { font: 900 clamp(44px, 5vw, 80px)/.85 "Archivo", sans-serif; font-stretch: 62%; color: transparent; -webkit-text-stroke: 2px #fff; }

/* ── ท้ายหน้า ── */
footer { padding: clamp(56px, 7vw, 96px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; overflow: hidden; } /* ไม่ให้ RESPECT ยักษ์ดันความกว้าง */
.mega { margin: 0 calc(var(--pad) * -1) -.2em; font: 900 32vw/.8 "Archivo", sans-serif; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.02em; color: var(--red); white-space: nowrap; user-select: none; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
footer nav a { padding: 6px 0; font: 900 clamp(32px, 5vw, 72px)/1 "Archivo", sans-serif; font-stretch: 62%; text-transform: uppercase; text-decoration: none; transition: color .15s; }
footer nav a:hover { color: var(--red); }
footer .base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 2px solid var(--line); color: var(--dim); font: 800 14px/1.4 "Archivo", sans-serif; font-stretch: 70%; letter-spacing: .12em; text-transform: uppercase; }
footer .base img { width: 44px; }

/* กล่องเลือกช่องทาง */
.contact[popover] { width: min(480px, calc(100% - 32px)); padding: 28px; margin: auto; background: var(--ink); color: var(--paper); border: 2px solid var(--paper); }
.contact::backdrop { background: rgba(10,10,10,.82); }
.contact-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.contact-head h2 { font-size: 40px; }
.contact-close { flex: none; width: 44px; height: 44px; margin: -6px -6px 0 0; display: grid; place-items: center; background: none; border: 0; color: var(--paper); cursor: pointer; }
.contact-close svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2.6; fill: none; }
.contact-close:hover { color: var(--red); }
.contact > p { color: var(--dim); margin-top: 4px; }
.contact ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.contact li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 2px solid var(--line); text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.contact li a:hover { border-color: var(--paper); }
.contact li b { display: block; font: 900 24px/1.1 "Archivo", sans-serif; font-stretch: 62%; text-transform: uppercase; }
.contact li small { color: var(--dim); font-size: 14px; }
.contact li a.primary { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.contact li a.primary small { color: rgba(255,255,255,.85); }
.contact li a.primary:hover { background: var(--ink); border-color: var(--paper); color: #fff; }

@media (max-width: 999px) {
  .bout .vs { top: 70%; font-size: 52px; } /* ใต้คางบนการ์ด 5:4 */
  .about .text { order: -1; }
  .join .cta .btn { width: 100%; }
}
@media (min-width: 760px) {
  .bouts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .under { grid-template-columns: 1fr auto; align-items: end; }
  .about .grid { grid-template-columns: minmax(300px, 400px) 1fr; }
  .bouts { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
  .bout { aspect-ratio: 9/14; }
  .bout:first-child { aspect-ratio: auto; }
  .faq .grid { grid-template-columns: 1fr 1.6fr; }
  .faq .h-sec { position: sticky; top: 40px; }
  .join .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
  .join .steps { margin: 0; }
  .join .cta { grid-column: 2; }
}

/* ── ปุ่มสลับภาษา TH / EN ── */
.bar-r { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.lang { display: flex; border: 2px solid var(--line); background: rgba(10,10,10,.55); }
.lang a { display: grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 10px; font: 900 16px/1 "Archivo", sans-serif; font-stretch: 62%; letter-spacing: .08em; text-decoration: none; color: var(--dim); transition: color .15s, background-color .15s; }
.lang a[aria-current] { background: var(--paper); color: var(--ink); }
.lang a:not([aria-current]):hover { color: var(--paper); }
@media (max-width: 520px) { .bar .meta { display: none; } } /* มือถือแคบ: เหลือแค่โลโก้กับปุ่มภาษา */

/* ── หน้าอังกฤษ: Archivo ทั้งหน้า หัวข้อ/ปุ่มเป็นตัวแคบตัวพิมพ์ใหญ่ ── */
html[lang="en"] body { font-family: "Archivo", sans-serif; }
html[lang="en"] :is(h1, h2, h3, .tenets li, .steps li, .faq summary) { font-family: "Archivo", sans-serif; font-stretch: 62%; text-transform: uppercase; letter-spacing: .005em; }
html[lang="en"] :is(.btn, .clip .play, .fights header a) { font-family: "Archivo", sans-serif; font-stretch: 70%; text-transform: uppercase; letter-spacing: .04em; }
html[lang="en"] .hero h1 { font-size: clamp(52px, 9vw, 160px); line-height: .92; }
@media (orientation: landscape) and (max-height: 600px) {
  html[lang="en"] .hero h1 { font-size: clamp(34px, 14svh, 120px); }
}

html[lang="en"] .bout h3 { font-size: clamp(22px, 2.2vw, 34px); }
html[lang="en"] .bout h3 i { padding: 0; }
html[lang="en"] .bout .len { flex: none; }
html[lang="en"] :is(.steps li, .bout h3) { line-height: 1.3; } /* ข้อความอังกฤษยาวตัดหลายบรรทัด ให้ระยะบรรทัดพอ */
