/* TOPCAST site chrome: tokens, base type, header, buttons and footer shared by every public page.
   Look follows the 2026 showreel: near-black stage, orange accent, cyan HUD labels. Light theme keeps the same structure. */
:root {
  color-scheme: dark;
  --bg: #07080B;
  --bg-2: #0B0D12;
  --surface: #11141A;
  --surface-2: #171B23;
  --ink: #F2F0EB;
  --muted: #A3AAB6;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .2);
  --accent: #FF5A1F;
  --accent-hover: #FF7A45;
  --accent-text: #FF7240;
  --on-accent: #0B0C10;
  --cyan: #33E6FF;
  --gold: #FFC23D;
  --green: #3DFF8A;
  --red: #FF3B4E;
  --focus: #33E6FF;
  --media-surface: #151922;
  --control-border: rgba(255, 255, 255, .26);
  --header-bg: rgba(7, 8, 11, .82);
  --grid-line: rgba(51, 230, 255, .055);
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'DejaVu Sans Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius: 16px;
  --header-h: 76px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F0EB;
  --bg-2: #E9E6DE;
  --surface: #FFFFFF;
  --surface-2: #F8F6F1;
  --ink: #0B0C10;
  --muted: #545A64;
  --line: rgba(11, 12, 16, .12);
  --line-strong: rgba(11, 12, 16, .26);
  --accent: #F05214;
  --accent-hover: #D9460C;
  --accent-text: #B53A08;
  --on-accent: #0B0C10;
  --cyan: #0A6F7E;
  --gold: #8F6300;
  --green: #12804A;
  --red: #C8102E;
  --focus: #0B5CD6;
  --media-surface: #DAD6CD;
  --control-border: rgba(11, 12, 16, .32);
  --header-bg: rgba(242, 240, 235, .86);
  --grid-line: rgba(11, 12, 16, .05);
  --shadow: 0 24px 60px rgba(30, 24, 10, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body, a, button { -webkit-tap-highlight-color: transparent; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 12px; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell > main { flex: 1; }

.eyebrow { margin: 0 0 16px; font: 700 .75rem/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.section-title { margin: 0; font: 800 clamp(2.4rem, 4.6vw, 4.4rem)/.95 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.section-lead { margin: 20px 0 0; max-width: 620px; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 44px; }
.topcast-mark { position: relative; display: block; width: 50px; height: 35px; flex-shrink: 0; }
.topcast-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.topcast-mark .logo-light { display: none; }
:root[data-theme="light"] .topcast-mark .logo-light { display: block; }
:root[data-theme="light"] .topcast-mark .logo-dark { display: none; }
.brand-name { display: block; font: 800 1.4rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.brand-small { display: block; margin-top: 5px; font: 600 .58rem/1 var(--mono); letter-spacing: .22em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: .875rem; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .nav-contact { margin-left: 8px; padding: 0 18px; background: var(--accent); color: var(--on-accent); }
.nav .nav-contact:hover { background: var(--accent-hover); color: var(--on-accent); }
.language-control { display: flex; align-items: center; gap: 6px; flex-shrink: 0; width: 178px; padding-left: 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); }
.language-control svg { flex-shrink: 0; color: var(--muted); }
.language-control select { width: 100%; min-width: 0; min-height: 42px; padding: 6px 8px 6px 2px; background: transparent; border: 0; border-radius: 999px; font: 600 .8125rem/1.4 var(--body); cursor: pointer; }
.language-control select:focus-visible { outline: 0; }
.language-control:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.language-control option { background: var(--bg); color: var(--ink); }
.theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: space-around; flex-shrink: 0; width: 66px; min-height: 42px; padding: 6px; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }
.theme-toggle::before { content: ''; position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); transition: transform .2s ease; }
.theme-toggle svg { position: relative; z-index: 1; width: 17px; height: 17px; }
.theme-toggle .theme-sun { color: var(--bg); }
:root[data-theme="dark"] .theme-toggle::before { transform: translateX(24px); }
:root[data-theme="dark"] .theme-toggle .theme-sun { color: var(--muted); }
:root[data-theme="dark"] .theme-toggle .theme-moon { color: var(--bg); }
.theme-toggle:hover { border-color: var(--ink); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font: 700 .8125rem/1 var(--body); }
.menu-icon { display: grid; gap: 5px; width: 16px; }
.menu-icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.menu-open .menu-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.scroll-meter { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font: 800 .9375rem/1.2 var(--body); letter-spacing: .01em; transition: transform .2s ease, background-color .2s, border-color .2s, color .2s; text-align: left; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-glyph { display: inline-grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border: 2px solid currentColor; border-radius: 50%; font: 800 .75rem/1 var(--body); }
.btn-play { flex-shrink: 0; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.btn-time { font: 700 .75rem/1 var(--mono); letter-spacing: .08em; opacity: .7; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .2s; }
.text-link:hover { color: var(--accent-text); }

/* HUD corner brackets used on media frames */
.corner { position: absolute; z-index: 3; width: 22px; height: 22px; border: 0 solid rgba(242, 240, 235, .85); pointer-events: none; }
.corner-tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.corner-tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.corner-bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.corner-br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- footer ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-word { padding-top: 34px; font: 800 clamp(3.2rem, 12.5vw, 12rem)/.82 var(--display); letter-spacing: -.01em; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-strong); user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 22px 0 28px; border-top: 1px solid var(--line); font: 600 .6875rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.footer-bottom a:hover { color: var(--accent-text); }

/* ---------- responsive header ---------- */
@media (max-width: 1240px) {
  .nav a { padding: 0 9px; }
}
@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .js-ready .nav { position: fixed; z-index: 59; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 14px 20px 26px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js-ready.menu-open .nav { display: flex; }
  .js-ready .nav a { min-height: 52px; padding: 0 14px; border-radius: 12px; font-size: 1.05rem; color: var(--ink); }
  .js-ready .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .js-ready .nav .nav-contact { margin: 10px 0 0; justify-content: center; }
  .nav { flex-wrap: wrap; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .wrap { width: calc(100% - 40px); }
  .brand { gap: 9px; }
  .topcast-mark { width: 40px; height: 28px; }
  .brand-name { font-size: 1.15rem; }
  .brand-small { display: none; }
  .language-control { width: 44px; height: 44px; padding: 0; justify-content: center; position: relative; }
  .language-control svg { position: absolute; pointer-events: none; color: var(--ink); }
  .language-control select { position: absolute; inset: 0; opacity: 0; width: 100%; }
  .theme-toggle { width: 44px; border-radius: 999px; }
  .theme-toggle::before { display: none; }
  .theme-toggle .theme-sun { color: var(--ink); }
  .theme-toggle .theme-moon { display: none; }
  :root[data-theme="dark"] .theme-toggle .theme-sun { display: none; }
  :root[data-theme="dark"] .theme-toggle .theme-moon { display: block; color: var(--ink); }
  .menu-label { display: none; }
  .menu-toggle { padding: 0; width: 44px; justify-content: center; }
  .header-actions { gap: 8px; }
  .section-lead { font-size: 1rem; }
  .footer-bottom { font-size: .625rem; }
}
@media (max-width: 400px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1rem; }
  .topcast-mark { width: 34px; height: 24px; }
  .header-actions { gap: 6px; }
  .language-control, .theme-toggle, .menu-toggle { width: 42px; height: 42px; min-height: 42px; }
}

/* Myanmar and Thai need their own fonts and line height. */
html:lang(my) { --body: 'Noto Sans Myanmar', 'Myanmar Text', sans-serif; }
html:lang(th) { --body: 'Noto Sans Thai', 'Manrope', sans-serif; }
html:lang(my) body { line-height: 1.85; }
html:lang(th) body { line-height: 1.75; }
html:lang(my) .eyebrow, html:lang(th) .eyebrow { letter-spacing: .04em; line-height: 1.8; }
html:lang(my) .section-title, html:lang(th) .section-title { font-family: var(--body); font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.35; font-size: clamp(1.7rem, 3.2vw, 2.8rem); }
html:lang(my) .section-title { line-height: 1.6; font-size: clamp(1.45rem, 2.7vw, 2.4rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
