/* ============================================================
   Aussie Training Portal, brand styles
   Same DNA as the AFP WOD reel cards: black, AFP red,
   Bebas Neue display, Jost body, letter-spaced labels.
   ============================================================ */

:root {
  --bg: #ffffff;
  --panel: #f5f4f2;
  --panel-2: #efedea;
  --line: rgba(0, 0, 0, 0.13);
  --ink: #15110f;
  --ink-dim: #4c4845;
  --ink-faint: #8c8884;
  --red: #d8392f;
  --red-deep: #b42a22;
  --disp: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Jost", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
}

.wrap { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 10px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }

.brand img { height: 34px; width: auto; display: block; align-self: center; }
.brand-sep { width: 1px; height: 26px; background: var(--line); }

.brand-word {
  font-family: var(--disp);
  font-size: 23px;
  letter-spacing: 4px;
  color: var(--ink-dim);
}
.brand-word b { color: var(--red); font-weight: 400; }

.value-chip {
  margin-left: auto;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  white-space: nowrap;
}

nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }

nav button {
  appearance: none;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-family: var(--disp);
  font-size: 19px;
  letter-spacing: 3px;
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
nav button:hover { color: var(--ink); }
nav button.on { color: var(--ink); border-bottom-color: var(--red); }

/* ---------- access gate ---------- */
.gate { display: none; position: fixed; inset: 0; z-index: 300; background: var(--bg); align-items: center; justify-content: center; padding: 32px 24px; overflow-y: auto; }
body.gated .gate { display: flex; }
body.gated header, body.gated main, body.gated footer { display: none; }
body.gated { overflow: hidden; }
.gate-card { width: min(440px, 100%); text-align: center; }
.gate-logo { height: 42px; width: auto; margin-bottom: 22px; }
.gate-h { font-family: var(--disp); font-weight: 400; font-size: clamp(38px, 8vw, 54px); line-height: 0.9; letter-spacing: 2px; }
.gate-sub { color: var(--ink-dim); font-size: 15.5px; margin: 12px auto 22px; max-width: 380px; }
.gate-sub strong { color: var(--ink); font-weight: 600; }

.gate-price { margin: 14px 0 18px; }
.gate-price .amt { font-family: var(--disp); font-size: 60px; letter-spacing: 1px; color: var(--ink); line-height: 1; }
.gate-price .per { font-size: 16px; color: var(--ink-faint); letter-spacing: 1px; margin-left: 2px; }

.gate-value { list-style: none; text-align: left; max-width: 330px; margin: 0 auto 24px; }
.gate-value li { color: var(--ink-dim); font-size: 14.5px; padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.gate-value li:last-child { border-bottom: none; }
.gate-value li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 11px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

.gate-card form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.gate-card input {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--body); font-size: 15px; padding: 13px 15px; width: 100%;
}
.gate-card input::placeholder { color: var(--ink-faint); }
.gate-card input:focus { outline: none; border-color: var(--ink); }
.gate-card .btn { width: 100%; margin-top: 4px; text-align: center; }
.gate-card .btn:disabled { opacity: 0.5; cursor: default; }
.gate-pay { font-size: 22px; }

.gate-or { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin: 20px 0 14px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.gate-err { color: var(--red); font-size: 13.5px; margin-top: 8px; }
.gate-note { color: var(--ink-faint); font-size: 13px; margin-top: 10px; line-height: 1.45; }
.gate-back { appearance: none; background: none; border: none; color: var(--ink-faint); font-size: 13px; cursor: pointer; margin-top: 18px; font-family: var(--body); }
.gate-back:hover { color: var(--ink); }

/* ---------- tabs ---------- */
.tab { display: none; padding: 44px 0 80px; }
.tab.active { display: block; animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- shared type ---------- */
.toplabel {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(54px, 9vw, 96px);
  line-height: 0.92;
  letter-spacing: 2px;
}

.h2 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 6px;
}

.lede { max-width: 620px; color: var(--ink-dim); font-size: 17px; margin-top: 18px; }

.safety-note {
  max-width: 620px;
  margin-top: 20px;
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  background: var(--panel);
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.5;
}

.rule { display: flex; align-items: center; gap: 16px; margin: 26px 0; }
.rule span { height: 2px; width: 54px; background: var(--red); }
.rule em {
  font-style: normal;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ---------- start / hero ---------- */
.hero { position: relative; padding: 26px 0 8px; }

.hero-art {
  position: absolute;
  right: -30px;
  top: -10px;
  width: min(380px, 38vw);
  opacity: 0.55;
  pointer-events: none;
}
.hero-art svg { width: 100%; height: auto; }

.teaser {
  margin-top: 34px;
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.teaser p { color: var(--ink-dim); flex: 1 1 280px; }
.teaser p b { color: var(--ink); font-weight: 600; }

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--disp);
  font-size: 20px;
  letter-spacing: 3px;
  padding: 12px 26px;
  background: var(--ink);
  color: #fff;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--ink-dim); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: none; }

/* feature trio on start page */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.trio article {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.trio article:hover { transform: translateY(-3px); border-color: rgba(218, 63, 63, 0.5); }
.trio h3 { font-family: var(--disp); font-weight: 400; font-size: 26px; letter-spacing: 2px; margin: 0 0 6px; }
.trio .n { color: var(--red); font-family: var(--disp); font-size: 15px; letter-spacing: 3px; display: block; margin-bottom: 14px; }
.trio p { color: var(--ink-faint); font-size: 14.5px; }

/* video grid */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }

.vid-card { background: var(--panel); border: 1px solid var(--line); }
.vid-card h3 { font-family: var(--disp); font-weight: 400; font-size: 22px; letter-spacing: 1.5px; padding: 16px 18px 2px; }
.vid-card p { color: var(--ink-faint); font-size: 14px; padding: 0 18px 18px; }

.vid-placeholder, .vid-embed {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #1a1a1a, #121212);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.vid-embed { display: block; position: relative; }
.vid-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vid-play {
  width: 52px; height: 52px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  padding-left: 4px;
}
.vid-soon { color: var(--ink-faint); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }

/* ---------- WOD generator ---------- */
.controls { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 30px; }

.ctl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ctl-row label {
  width: 64px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.segwrap { display: flex; gap: 6px; flex-wrap: wrap; }

.seg, .pill {
  appearance: none;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  transition: all 0.15s;
}
.seg:hover, .pill:hover { border-color: rgba(218, 63, 63, 0.55); color: var(--ink); }
.seg.on, .pill.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.wod-actions { display: flex; gap: 10px; margin-top: 4px; }

/* session card, styled like the AFP reel cards */
.wod-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(26px, 5vw, 52px);
  max-width: 720px;
}
.wod-card.pop { animation: rise 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

.wod-toplabel { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; }

.wod-badge {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--disp);
  font-size: 19px;
  letter-spacing: 3px;
  padding: 6px 18px;
  margin: 16px 0 18px;
}

.wod-title {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 84px);
  line-height: 0.92;
  letter-spacing: 2px;
}

.wod-rule { display: flex; align-items: center; gap: 14px; margin: 18px 0 26px; }
.wod-rule span { height: 2px; width: 44px; background: var(--red); }
.wod-rule em { font-style: normal; color: var(--ink-faint); font-size: 12.5px; letter-spacing: 4px; text-transform: uppercase; }

.wod-block { margin-bottom: 22px; }
.wod-block h4 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 2.5px;
  color: var(--ink);
  margin-bottom: 8px;
}
.wod-block ol { list-style: none; counter-reset: mv; }
.wod-block li {
  counter-increment: mv;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 15.5px;
  display: flex;
  gap: 14px;
}
.wod-block li::before {
  content: counter(mv, decimal-leading-zero);
  color: var(--red);
  font-family: var(--disp);
  font-size: 16px;
  letter-spacing: 1px;
  min-width: 22px;
  padding-top: 1px;
}

.wod-note { margin-top: 10px; color: var(--ink-faint); font-size: 13.5px; font-style: italic; }

/* Classic EMOM minute table */
.emom-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.emom-table th {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--red);
}
.emom-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 15.5px;
}
.emom-table td:first-child {
  font-family: var(--disp);
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--red);
  width: 70px;
}
.emom-table td:nth-child(2) { color: var(--ink); font-weight: 500; }
.emom-rounds { color: var(--ink); font-size: 15px; font-weight: 500; margin-bottom: 6px; }

/* ---------- exercise library ---------- */
.lib-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 22px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.count { color: var(--ink-faint); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }

.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 14px; }

.ex-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
  transition: transform 0.18s, border-color 0.18s;
  animation: rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ex-card:hover { transform: translateY(-3px); border-color: rgba(218, 63, 63, 0.45); }

.ex-art {
  position: relative;
  background: #ececea;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  overflow: hidden;
}
.ex-art svg { display: block; width: 100%; height: auto; }
.ex-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ex-vid { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.ex-steps { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ex-howto, .ex-steps-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(218, 63, 63, 0.94);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ex-howto::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.ex-steps-tag { left: auto; right: 10px; background: rgba(14, 14, 14, 0.86); border: 1px solid rgba(218, 63, 63, 0.7); }
.ex-steps-tag::before {
  content: "";
  width: 11px;
  height: 9px;
  background:
    linear-gradient(var(--red), var(--red)) left / 2.5px 100% no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2.5px 100% no-repeat,
    linear-gradient(var(--red), var(--red)) right / 2.5px 100% no-repeat;
}

.ex-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ex-head h3 { font-family: var(--disp); font-weight: 400; font-size: 21px; letter-spacing: 1.5px; line-height: 1.05; }

.tag {
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
}
.tag-tread, .tag-sled { border-color: rgba(218, 63, 63, 0.6); color: var(--red); }
.tag-sandbag, .tag-shortband, .tag-longband, .tag-slider { border-color: rgba(242, 237, 230, 0.35); color: var(--ink-dim); }

.ex-rx { color: var(--ink-dim); font-size: 13.5px; margin: 8px 0 10px; }

.ex-more summary {
  cursor: pointer;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  list-style: none;
}
.ex-more summary::-webkit-details-marker { display: none; }
.ex-more summary::after { content: " +"; }
.ex-more[open] summary::after { content: " \2212"; }

.ex-more ul { margin: 12px 0 10px; padding-left: 0; list-style: none; }
.ex-more li { color: var(--ink-dim); font-size: 13.5px; padding: 5px 0 5px 16px; position: relative; }
.ex-more li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 2px; background: var(--red); }

.ex-why { color: var(--ink-faint); font-size: 13px; font-style: italic; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- plans ---------- */
.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.plan summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}
.plan summary::-webkit-details-marker { display: none; }
.plan summary:hover { background: rgba(255, 255, 255, 0.02); }

.plan-num { font-family: var(--disp); font-size: 30px; color: var(--red); letter-spacing: 2px; }
.plan-head { display: flex; flex-direction: column; gap: 2px; }
.plan-head strong { font-family: var(--disp); font-weight: 400; font-size: 28px; letter-spacing: 2px; line-height: 1; }
.plan-head em { font-style: normal; color: var(--ink-faint); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.plan-open { margin-left: auto; color: var(--red); font-size: 26px; font-weight: 300; transition: transform 0.2s; }
.plan[open] .plan-open { transform: rotate(45deg); }

.plan-blurb { color: var(--ink-dim); padding: 0 24px 8px; max-width: 640px; }

.week { padding: 14px 24px 10px; border-top: 1px solid var(--line); }
.week h4 { font-family: var(--disp); font-weight: 400; font-size: 20px; letter-spacing: 2px; color: var(--red); margin-bottom: 8px; }
.sess { color: var(--ink-dim); font-size: 14.5px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.sess:last-child { border-bottom: none; }
.sess b { color: var(--ink); font-weight: 600; display: inline-block; min-width: 86px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; }
.foot-in { display: flex; flex-direction: column; gap: 10px; }
.foot-brand { font-family: var(--disp); font-size: 20px; letter-spacing: 3px; }
.foot-brand i { font-style: normal; color: var(--red); }
footer p { color: var(--ink-faint); font-size: 13px; max-width: 560px; }
footer a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid rgba(218, 63, 63, 0.5); }
footer a:hover { color: var(--ink); }
.dot { display: inline-block; width: 5px; height: 5px; background: var(--red); border-radius: 50%; margin: 0 10px; vertical-align: middle; }
.linkbtn { appearance: none; background: none; border: none; padding: 0; cursor: pointer; font-family: var(--body); font-size: 13px; color: var(--ink-dim); border-bottom: 1px solid rgba(216, 57, 47, 0.5); }
.linkbtn:hover { color: var(--ink); }

/* ---------- start: clickable trio + intro video ---------- */
.trio article { cursor: pointer; }
.trio .go { display: inline-block; margin-top: 14px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.intro-video { margin: 34px 0 6px; }

/* ---------- video tiles ---------- */
.vrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vrow-solo { grid-template-columns: minmax(0, 620px); }

.vtile {
  appearance: none;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s;
  font-family: var(--body);
}
.vtile:hover { transform: translateY(-3px); border-color: rgba(218, 63, 63, 0.5); }
.vtile-poster { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vtile-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vtile-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(218, 63, 63, 0.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; padding-left: 3px;
  transition: transform 0.18s, background 0.18s;
}
.vtile:hover .vtile-play { transform: translate(-50%, -50%) scale(1.08); background: var(--red); }
.vtile-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(14, 14, 14, 0.82); color: var(--ink-dim);
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid var(--line);
}
.vtile-title {
  font-family: var(--disp); font-weight: 400; font-size: 21px; letter-spacing: 1px;
  color: var(--ink); padding: 13px 16px 15px; line-height: 1.05;
}
.vtile.wide .vtile-title { font-size: 26px; padding: 16px 20px 18px; }
.vtile.disabled { cursor: default; opacity: 0.5; }
.vtile.disabled:hover { transform: none; border-color: var(--line); }
.vtile-soon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--ink-faint); font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
}

/* ---------- programs ---------- */
.program { margin-bottom: 44px; }
.program-head { margin-bottom: 18px; }
.program-kicker { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.program-head h3 { font-family: var(--disp); font-weight: 400; font-size: clamp(30px, 4vw, 42px); letter-spacing: 1.5px; line-height: 1; margin: 8px 0 8px; }
.program-head p { color: var(--ink-dim); max-width: 640px; font-size: 15.5px; }

.week-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.wtab {
  appearance: none; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink-dim);
  font-family: var(--disp); font-size: 18px; letter-spacing: 2px;
  padding: 8px 20px; transition: all 0.15s;
}
.wtab:hover { border-color: rgba(218, 63, 63, 0.55); color: var(--ink); }
.wtab.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- movements grid + search ---------- */
.mov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 13px; }
.mov-search {
  flex: 1 1 260px; max-width: 340px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--body); font-size: 14px; padding: 10px 14px;
}
.mov-search::placeholder { color: var(--ink-faint); }
.mov-search:focus { outline: none; border-color: rgba(218, 63, 63, 0.6); }

/* ---------- video modal ---------- */
body.modal-open { overflow: hidden; }
.vmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vmodal[hidden] { display: none; }
.vmodal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(4px); }
.vmodal-box { position: relative; z-index: 1; width: min(960px, 100%); background: var(--panel); border: 1px solid var(--line); animation: rise 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.vmodal-close {
  position: absolute; top: -44px; right: 0; z-index: 2;
  appearance: none; background: none; border: none; color: var(--ink-dim);
  font-size: 34px; line-height: 1; cursor: pointer; padding: 0 6px;
}
.vmodal-close:hover { color: var(--ink); }
.vmodal-frame { background: #000; aspect-ratio: 16 / 9; }
.vmodal-frame video, .vmodal-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.vmodal-meta { padding: 16px 22px 20px; }
.vmodal-tag { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.vmodal-meta h3 { font-family: var(--disp); font-weight: 400; font-size: 28px; letter-spacing: 1px; margin-top: 5px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .trio { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  /* keep the value message on phones (where most QR scans land); make room by
     dropping the redundant "TRAINING PORTAL" wordmark (the logo already says AFP) */
  .brand-word, .brand-sep { display: none; }
  .value-chip { font-size: 9.5px; letter-spacing: 1.5px; padding: 5px 9px; }
  nav { gap: 0; }
  nav button { font-size: 14px; letter-spacing: 1.2px; padding: 8px 9px; }
  .ctl-row label { width: 100%; }
  .vmodal { padding: 0; }
  .vmodal-close { top: 6px; right: 6px; background: rgba(0,0,0,0.5); border-radius: 50%; width: 38px; height: 38px; color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
