/* ============================================================
   Azestian Training Facility — V2
   Mobile-first, bold sports-brand energy. The scroll-build film
   (#film canvas) is the fixed backdrop; content scenes scroll
   over it. High-contrast black/white + volt accent, impact type.
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --ink: #ffffff;
  --dim: #c6c1b6;
  --faint: #968f84;
  --volt: #c6ff2e;
  --volt-dim: #8fbf1f;
  --line: rgba(255,255,255,0.14);
  --panel: #0c0c0c;
  --disp: "Archivo Black", sans-serif;
  --grot: "Space Grotesk", sans-serif;
  --mono: "Space Mono", monospace;
  --body: "Inter", sans-serif;
  --ease: cubic-bezier(.16,.84,.34,1);
  --gut: 20px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* ---------- background film + legibility ---------- */
#film { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; background: #0a0a0a; display: block; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,8,0.80) 0%, rgba(8,8,8,0.46) 22%, rgba(8,8,8,0.48) 56%, rgba(8,8,8,0.86) 100%);
}
/* text legibility over the full-bleed film */
.cover__title, .big, .close__title, .hero__name { text-shadow: 0 2px 30px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.5); }
.ey, .cover__sub, .lead, .cover__cue, .pbar__row .a, .pbar__row .b, .pbar__today b,
.head b, .logrow__t, .logrow__sub, .logrow__tag, .rost__name, .rost__role,
.contact__line, .hero__role { text-shadow: 0 1px 10px rgba(0,0,0,0.72); }

/* ---------- top bar + scroll progress ---------- */
.prog { position: fixed; top: 0; left: 0; right: 0; z-index: 41; height: 3px; background: rgba(255,255,255,0.1); }
.prog span { display: block; height: 100%; width: 0; background: var(--volt); box-shadow: 0 0 10px rgba(198,255,46,0.7); }
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) var(--gut) 12px;
  background: linear-gradient(180deg, rgba(10,10,10,0.82), rgba(10,10,10,0));
}
.top__mark { font-family: var(--disp); font-size: 18px; text-transform: uppercase; line-height: 1; }
.top__mark i { color: var(--volt); font-style: normal; }
.top__live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.top__live b { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 9px var(--volt); animation: blink 1.3s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- scaffold ---------- */
.scene { position: relative; padding: 0 var(--gut); }
.ey { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--volt); }
.ey--w { color: var(--ink); }
.cut { border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 8px; }
.head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.head b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--faint); }

.rv { opacity: 0; transform: translateY(30px); }
.rv.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }

/* ---------- 1 · cover ---------- */
.cover { min-height: 100svh; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 42px; }
.cover__ey { margin-bottom: 16px; }
.cover__title { font-family: var(--disp); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.9; font-size: clamp(46px, 17vw, 84px); }
.cover__title u { text-decoration: none; color: var(--volt); }
.cover__sub { margin-top: 18px; max-width: 20ch; font-family: var(--grot); font-weight: 500; font-size: 16px; line-height: 1.35; }
.cover__cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.cover__cue b { width: 26px; height: 1px; background: var(--dim); }

/* ---------- 2 · scoreboard ---------- */
.band { background: var(--panel); margin-top: 92px; padding: 24px var(--gut) 34px; }
.statusbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.statusbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 9px var(--volt); flex: none; animation: blink 1.4s steps(1) infinite; }
.statusbar b { font-weight: 400; color: var(--ink); }
.statusbar em { font-style: normal; color: var(--faint); margin-left: auto; }
.stat { border-top: 1px solid var(--line); padding: 16px 0 12px; }
.stat:first-child { border-top: none; }
.stat__n { font-family: var(--disp); line-height: 0.84; font-size: clamp(58px, 23vw, 118px); letter-spacing: -0.02em; display: flex; align-items: flex-start; }
.stat__n i { font-style: normal; font-size: 0.4em; color: var(--volt); margin-left: 4px; margin-top: 0.1em; }
.stat--hl .stat__n { color: var(--volt); }
.stat__k { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-top: 8px; }

/* ---------- 3 · honest 25% ---------- */
.prog-scene { padding-top: 66px; padding-bottom: 66px; }
.big { font-family: var(--disp); text-transform: uppercase; font-size: clamp(32px, 11vw, 60px); line-height: 0.96; letter-spacing: -0.01em; margin: 16px 0 30px; }
.big u { text-decoration: none; color: var(--volt); }
.pbar { position: relative; height: 16px; background: rgba(255,255,255,0.12); border: 1px solid var(--line); }
.pbar__fill { height: 100%; background: var(--volt); box-shadow: 0 0 14px rgba(198,255,46,0.5); }
.pbar__proj { position: absolute; top: 0; right: 0; height: 100%; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.16) 0 6px, transparent 6px 12px); }
.pbar__today { position: absolute; top: -8px; width: 2px; height: 32px; background: var(--ink); }
.pbar__today b { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; white-space: nowrap; }
.pbar__row { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.pbar__row .a { color: var(--volt); }
.pbar__row .b { color: var(--faint); }
.lead { margin-top: 18px; font-family: var(--grot); font-weight: 500; font-size: 15px; line-height: 1.45; color: var(--dim); max-width: 30ch; }

/* ---------- 4 · build log ---------- */
.log { padding-top: 60px; }
.logrow { border-top: 1px solid var(--line); padding: 18px 0; }
.logrow:last-child { border-bottom: 1px solid var(--line); }
.logrow__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.logrow__t { font-family: var(--grot); font-weight: 700; font-size: 19px; text-transform: uppercase; line-height: 1.05; }
.logrow__tag { flex: none; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line); color: var(--dim); }
.logrow__tag.done { color: var(--bg); background: var(--volt); border-color: var(--volt); }
.logrow__tag.live { color: var(--volt); border-color: var(--volt-dim); }
.logrow__tag.up { color: var(--faint); }
.logrow__sub { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 6px; letter-spacing: 0.06em; }
.logrow__bar { height: 6px; background: rgba(255,255,255,0.1); margin-top: 12px; overflow: hidden; }
.logrow__bar i { display: block; height: 100%; width: 0; background: var(--volt); }
.rv.in .logrow__bar i { width: var(--w); transition: width .9s var(--ease) .15s; }
.logrow.up .logrow__bar i { background: repeating-linear-gradient(135deg, var(--faint) 0 5px, transparent 5px 10px); }

/* ---------- 5 · ticker ---------- */
.tick { margin-top: 60px; border-top: 2px solid var(--volt); border-bottom: 2px solid var(--volt); background: var(--panel); overflow: hidden; padding: 14px 0; }
.tick__track { display: inline-flex; white-space: nowrap; animation: ticker 24s linear infinite; will-change: transform; }
.tick__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.tick__item i { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); flex: none; }
.tick__item s { text-decoration: none; color: var(--volt); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 6 · squad ---------- */
.squad { padding-top: 60px; }
.hero { position: relative; margin-top: 6px; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(150deg,#16180f,#0a0a0a); display: flex; flex-direction: column; justify-content: flex-end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.92) 100%); }
.hero__no { position: absolute; top: 14px; right: 16px; font-family: var(--disp); font-size: 40px; color: var(--volt); line-height: 1; }
.hero__meta { position: relative; padding: 18px; }
.hero__name { font-family: var(--disp); text-transform: uppercase; font-size: clamp(30px, 11vw, 52px); line-height: 0.9; letter-spacing: -0.01em; }
.hero__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--volt); margin-top: 10px; }
.hero__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--volt); padding-bottom: 3px; }
.hero__link span { color: var(--volt); }
.roster { margin-top: 4px; }
.rost { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 16px 2px; }
.rost:last-child { border-bottom: 1px solid var(--line); }
.rost__no { font-family: var(--disp); font-size: 22px; color: var(--faint); line-height: 1; }
.rost__name { font-family: var(--grot); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.rost__role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

/* ---------- 7 · close / contact ---------- */
.close { min-height: 92svh; min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 80px; padding-bottom: 30px; }
.close__title { font-family: var(--disp); text-transform: uppercase; font-size: clamp(44px, 16vw, 84px); line-height: 0.88; letter-spacing: -0.01em; }
.close__title u { text-decoration: none; color: var(--volt); }
.contact { margin-top: 26px; border-top: 2px solid var(--ink); padding-top: 18px; }
.contact__line { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink); padding: 7px 0; }
.contact__line span { color: var(--volt); }
.contact__lock { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); padding: 7px 12px; width: max-content; }
.foot { margin-top: 40px; display: flex; align-items: baseline; justify-content: space-between; }
.foot b { font-family: var(--disp); font-size: 20px; text-transform: uppercase; }
.foot span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--faint); }
.tail { height: 40px; }

/* ---------- desktop: keep it mobile-shaped, centered ---------- */
@media (min-width: 720px) {
  .scroll, .band, .tick { max-width: 560px; margin-left: auto; margin-right: auto; }
  .band { margin-top: 100px; }
  #film { object-fit: cover; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .tick__track { animation: none; }
  .top__live b { animation: none; }
  .rv.in .logrow__bar i { transition: none; }
}
