/* ============================================================
   SEASON ONE · VARIATION B / PROTOCOL
   The briefing sheet: near-white greige ground, flat hairline
   geometry, registration marks, black pill actions, dot-matrix
   numerals, one lime slash. 4 FALLS x PlayerZero x the Neon
   poster. Layout system inherited from Season One verbatim.
   ============================================================ */

@font-face {
  font-family: 'Maintanker';
  src: url('../assets/fonts/maintanker.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f2f1ed;
  --paper-2: #e9e8e3;
  --plate: #fbfaf7;
  --blk: #1a1b1d;
  --blk-2: #26272a;
  --stroke: rgba(28, 28, 26, 0.18);
  --stroke-soft: rgba(28, 28, 26, 0.1);
  --ink: #1c1c1a;
  --ink-2: #4a4a46;
  --ink-3: #80807a;
  --ink-on-dark: #f3f2ee;
  --ink-on-dark-3: #9c9c96;
  --lime: #ced600;
  --lime-ink: #797f00;
  --lime-soft: rgba(206, 214, 0, 0.45);
  --lime-faint: rgba(206, 214, 0, 0.14);
  --env: oklch(45% 0.12 150);
  --prop: oklch(52% 0.15 55);
  --char: oklch(56% 0.12 95);
  --key: oklch(45% 0.07 60);
  --disp: 'Archivo', system-ui, sans-serif;
  --dot: 'Doto', 'Archivo', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--disp);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.13em;
  font-size: 11px;
  text-transform: uppercase;
}

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

.anchor { scroll-margin-top: 132px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cham :focus-visible,
.node:focus-visible,
.slot:focus-visible,
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--blk); color: var(--ink-on-dark); font-family: var(--mono);
  font-size: 12px; padding: 10px 16px; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------
   Plate utility: flat sheet panels, 1px hairline, no radius,
   no shadow. Registration corners on the big plates.
   --------------------------------------------------------- */
.cham {
  background: var(--stroke);
  padding: 1px;
  position: relative;
}
.cham-in {
  background: var(--plate);
  position: relative;
  z-index: 1;
  height: 100%;
  display: block;
}

/* registration corner marks, 4 FALLS style */
.act .cham-in::before, .energy-plate .cham-in::before {
  content: ''; position: absolute; left: 8px; top: 8px; width: 9px; height: 9px;
  border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); opacity: 0.5;
}
.act .cham-in::after, .energy-plate .cham-in::after {
  content: ''; position: absolute; right: 8px; bottom: 8px; width: 9px; height: 9px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); opacity: 0.5;
}

/* type glyphs */
.glyph { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.glyph .f { fill: currentColor; stroke: none; }

/* =========================================================
   HEADER
   ========================================================= */
.season-head {
  position: relative;
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
  padding: 30px 0 0;
}
.head-canvas { display: none; }
.head-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(28, 28, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 28, 26, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(28, 28, 26, 0.24) 1px, transparent 1.5px);
  background-size: 56px 56px, 56px 56px, 56px 56px;
  background-position: 0 0, 0 0, 28px 28px;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 30%, transparent 74%);
  mask-image: radial-gradient(130% 100% at 50% 0%, #000 30%, transparent 74%);
}
.head-wrap { position: relative; }

.head-topline {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 34px;
}
.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.brand-mark {
  font-family: 'Maintanker', var(--disp);
  font-synthesis: none;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-sub { color: var(--ink-3); }
.session-plate {
  color: var(--ink-2);
  border: 1px solid var(--ink);
  padding: 8px 14px;
  white-space: nowrap;
  background: var(--plate);
  position: relative;
}

.session-plate b { color: var(--ink); font-weight: 700; }

.season-title {
  font-weight: 900;
  font-size: clamp(62px, 8.4vw, 118px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.22em;
  align-items: baseline;
  color: var(--ink);
}
.st-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(28, 28, 26, 0.75);
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}
.st-slash {
  width: 0.42em; height: 0.72em;
  background: var(--lime);
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
  transform: translateY(0.06em);
}
.season-dek { color: var(--ink-3); margin-top: 20px; }
.season-dek b { color: var(--ink-2); font-weight: 500; }

/* year switcher: three file tabs on the sheet */
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 34px;
}
.slot { display: block; text-align: left; }
.slot .cham-in { background: var(--plate); padding: 13px 18px 15px; transition: background 0.18s ease; }
.slot:hover .cham-in { background: #ffffff; }
.slot-track { color: var(--ink-3); font-size: 10px; display: flex; justify-content: space-between; }
.slot-mid { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; }
.slot-year {
  display: block;
  font-weight: 800; font-size: 22px; letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.slot-cohort { color: var(--ink-3); font-size: 9.5px; white-space: nowrap; }
.slot-now { display: flex; align-items: baseline; gap: 8px; margin-top: 7px; min-width: 0; }
.slot-now .ln-label { color: var(--ink-3); font-size: 9px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.ln-dot { width: 6px; height: 6px; background: var(--ink-3); opacity: 0.5; display: inline-block; }
.ln-dot.live { background: var(--lime); opacity: 1; outline: 1px solid rgba(28, 28, 26, 0.35); }
.slot-now b { font-weight: 600; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.slot-bar { display: block; height: 2px; background: var(--paper-2); margin-top: 12px; position: relative; overflow: hidden; }
.slot-bar i { position: absolute; inset: 0; right: auto; background: var(--ink-3); width: var(--pct); }

.slot[aria-pressed="true"] { background: var(--ink); }
.slot[aria-pressed="true"] .cham-in { background: var(--blk); }
.slot[aria-pressed="true"]:hover .cham-in { background: var(--blk-2); }
.slot[aria-pressed="true"] .slot-year { color: var(--ink-on-dark); }
.slot[aria-pressed="true"] .slot-track { color: var(--ink-on-dark-3); }
.slot[aria-pressed="true"] .slot-track b { color: var(--lime); }
.slot[aria-pressed="true"] .slot-cohort { color: var(--ink-on-dark-3); }
.slot[aria-pressed="true"] .slot-now .ln-label { color: var(--ink-on-dark-3); }
.slot[aria-pressed="true"] .slot-now b { color: var(--ink-on-dark); }
.slot[aria-pressed="true"] .slot-bar { background: rgba(255, 255, 255, 0.16); }
.slot[aria-pressed="true"] .slot-bar i { background: var(--lime); }

/* =========================================================
   SEASON RAIL (sticky dock)
   ========================================================= */
.rail-dock {
  position: sticky; top: 0; z-index: 60;
  background: rgba(242, 241, 237, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.rail-wrap { padding-top: 8px; padding-bottom: 8px; position: relative; }
.rail-scroll { overflow: hidden; }
.rail-inner { position: relative; padding-top: 24px; min-width: 100%; }

.rail-nodes {
  display: grid;
  grid-template-columns: repeat(38, minmax(0, 1fr));
  gap: 3px;
  height: 26px;
  position: relative;
  z-index: 2;
}
.node {
  position: relative;
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--stroke-soft);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.node.is-course { background: var(--tc); box-shadow: none; }
.node.is-course.is-past { opacity: 0.3; filter: saturate(0.2); }
.node.is-self.is-past { opacity: 0.55; background: var(--paper-2); }
.node.is-off {
  background: repeating-linear-gradient(-45deg, rgba(28, 28, 26, 0.14) 0 3px, transparent 3px 7px);
  box-shadow: inset 0 0 0 1px var(--stroke-soft);
}
.node.is-now { box-shadow: inset 0 0 0 2px var(--ink); }
button.node { cursor: pointer; }
button.node:hover { transform: translateY(-3px); filter: brightness(1.05); opacity: 1; }

.rail-tip {
  position: absolute; top: 54px; left: 0;
  transform: translate(-50%, -4px);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  white-space: nowrap; text-transform: uppercase;
  background: var(--blk); color: var(--ink-on-dark);
  padding: 5px 9px; pointer-events: none;
  opacity: 0; transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 30;
}
.rail-tip.on { opacity: 1; transform: translate(-50%, 0); }

.rail-burn {
  position: absolute; left: 0; top: 24px; height: 26px;
  width: var(--burn, 0%);
  background: linear-gradient(90deg, transparent, rgba(28, 28, 26, 0.045));
  border-bottom: 1px solid rgba(28, 28, 26, 0.3);
  z-index: 1;
}

.rail-months { position: relative; height: 18px; margin-top: 7px; }
.rail-months span {
  position: absolute; top: 2px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase;
  padding-left: 7px;
}
.rail-months span::before {
  content: ''; position: absolute; left: 0; top: -1px;
  width: 1px; height: 12px; background: rgba(28, 28, 26, 0.3);
}

.rail-playhead {
  position: absolute; top: 0; bottom: 14px; left: var(--ph, 25%);
  z-index: 5; pointer-events: none;
}
.ph-line {
  position: absolute; top: 20px; bottom: 0; left: -1px; width: 2px;
  background: var(--ink);
}
.ph-line::after {
  content: ''; position: absolute; left: -3px; bottom: -4px;
  width: 8px; height: 8px; background: var(--lime);
  outline: 1px solid rgba(28, 28, 26, 0.45);
  clip-path: none;
}
.ph-label {
  position: absolute; top: -2px; left: -1px;
  background: var(--lime); color: var(--ink);
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 8px; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.ph-label b { font-weight: 700; text-transform: none; }

.rail-viewing {
  position: absolute; top: 20px; height: 34px;
  left: 0; width: 0; opacity: 0;
  border-top: 1px solid rgba(28, 28, 26, 0.4);
  border-bottom: 1px solid rgba(28, 28, 26, 0.4);
  transition: left 0.28s ease, width 0.28s ease, opacity 0.2s ease;
  z-index: 3; pointer-events: none;
}
.rail-viewing.on { opacity: 1; }
.rail-viewing i { position: absolute; width: 5px; height: 5px; background: var(--ink); }
.rail-viewing i:first-child { left: -1px; top: -1px; }
.rail-viewing i:last-child { right: -1px; bottom: -1px; }

.rail-legend {
  display: flex; gap: 18px; justify-content: flex-end;
  margin-top: 6px; font-size: 9.5px; color: var(--ink-3);
}
.rail-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.rail-legend i { width: 9px; height: 9px; display: inline-block; }
.lg-t { border-radius: 0; }
.lg-self { background: var(--plate); box-shadow: inset 0 0 0 1px var(--stroke); }
.lg-off { background: repeating-linear-gradient(-45deg, rgba(28, 28, 26, 0.25) 0 2px, transparent 2px 5px); }

/* =========================================================
   SECTIONS
   ========================================================= */
.sec-head { margin: 54px 0 18px; }
.sec-kicker { display: block; color: var(--ink-3); margin-bottom: 8px; }
.sec-kicker::before { content: '[ '; color: var(--ink); }
.sec-kicker::after { content: ' ]'; color: var(--ink); }
.sec-title {
  font-weight: 900; text-transform: uppercase;
  font-size: 32px; line-height: 1; letter-spacing: -0.01em;
}

/* =========================================================
   FEATURED HERO
   ========================================================= */
.hero { background: var(--ink); padding: 1px; }
.hero::before { content: none; }

.hero .cham-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--plate);
}
/* the one lime slash of the sheet crosses the hero's spine */
.hero .cham-in::after {
  content: ''; position: absolute; left: calc(51.2% - 20px); top: -8px; bottom: -8px;
  width: 30px; background: var(--lime);
  transform: skewX(-14deg);
  z-index: 2; pointer-events: none;
  opacity: 0.95;
}
.hero-cover { position: relative; min-height: 400px; overflow: hidden; background: var(--blk); }
.hero-cover::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--tc, transparent); z-index: 2; opacity: 0.9;
}
.hero-cover img {
  position: absolute; inset: -6% 0; width: 100%; height: 112%;
  object-fit: cover; object-position: 50% 12%;
}
.hero-cover::after { content: none; }
.hero-ch {
  position: absolute; left: 0; top: 18px; z-index: 3;
  background: var(--blk); color: var(--ink-on-dark);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px 7px 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.hero-body { padding: 30px 34px 28px 44px; display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; display: inline-flex; align-items: center; gap: 6px;
}
.chip-live { background: var(--ink); color: var(--lime); }
.chip-type { color: var(--tc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 50%, transparent); background: var(--plate); }
.chip-status { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--stroke); }
.chip-num { color: var(--ink-3); font-weight: 500; padding: 5px 2px; }

.hero-name {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 1.02;
  letter-spacing: -0.01em; margin: 16px 0 6px;
  text-wrap: balance;
}
.hero-inst { margin: 6px 0 14px; }
.inst-label { color: var(--ink-3); display: block; margin-bottom: 2px; }
.inst-name { font-size: 17px; font-weight: 600; color: var(--ink); }
.hero-blurb { color: var(--ink-2); font-size: 15.5px; max-width: 54ch; text-wrap: pretty; }

.telemetry {
  margin: 22px 0 8px; padding: 16px 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--stroke);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.tele-day { display: flex; align-items: baseline; gap: 8px; }
.tele-day b { font-family: var(--dot); font-size: 42px; font-weight: 900; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.tele-day span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }
.tele-cells { display: flex; gap: 4px; }
.tele-cells i { width: 15px; height: 26px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--stroke); }
.tele-cells i.done { background: var(--ink); box-shadow: none; }
.tele-left { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-2); text-transform: uppercase; }

.skills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.skill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-2);
  padding: 4px 9px; background: transparent;
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.hero-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.meta-line { color: var(--ink-3); }
.meta-line b { color: var(--ink); font-weight: 600; }

/* black pill actions, PlayerZero style */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-on-dark);
  padding: 13px 24px;
  min-height: 44px;
  background: var(--blk);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn i { width: 7px; height: 7px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform 0.15s ease; }
.btn:hover { background: var(--blk-2); color: var(--lime); }
.btn:hover i { transform: translateX(3px); }
.btn-live { background: var(--blk); color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.btn-live:hover { background: var(--lime); color: var(--ink); box-shadow: none; }

/* =========================================================
   ENERGY BAR
   ========================================================= */
.energy-sec { margin-top: 30px; }
.energy-in {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px; padding: 26px 30px; align-items: center;
  background: var(--plate);
}
.energy-kicker { color: var(--ink-3); font-weight: 500; }
.energy-fig { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.energy-num { font-family: var(--dot); font-size: 76px; font-weight: 900; line-height: 0.9; color: var(--ink); font-variant-numeric: tabular-nums; }
.energy-of { color: var(--ink-2); font-size: 12px; }
.energy-note { color: var(--ink-3); margin-top: 10px; font-size: 10.5px; }
.energy-cells { display: flex; flex-wrap: wrap; gap: 8px 10px; align-content: center; }
.eg { display: flex; gap: 2px; cursor: help; }
.eg i {
  width: 9px; height: 24px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.eg i.done { background: var(--blk); box-shadow: none; }

/* =========================================================
   ACT PLATES (semesters)
   ========================================================= */
.act { margin: 56px 0 26px; }
.act .cham-in {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(240px, 380px);
  gap: 30px; align-items: center; padding: 24px 30px;
  background: var(--plate);
}
.act-num {
  font-weight: 900; font-size: 58px; line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1.2px rgba(28, 28, 26, 0.55);
  text-transform: uppercase; white-space: nowrap;
}
.act-num b { font-family: var(--dot); color: var(--ink); -webkit-text-stroke: 0; font-weight: 900; }
.act-meta h2 { font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0; }
.act-meta p { color: var(--ink-3); margin-top: 5px; }
.act-xp .xp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.act-xp .xp-label { color: var(--ink-3); }
.act-xp .xp-pct { font-family: var(--dot); font-weight: 900; font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.act-xp .xp-pct.zero { color: var(--ink-3); }
.xp-bar { height: 9px; background: var(--paper-2); position: relative; box-shadow: inset 0 0 0 1px var(--stroke-soft); }
.xp-bar i { position: absolute; inset: 0; right: auto; width: var(--pct); background: var(--ink); }
.xp-bar i::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); }

/* =========================================================
   NOW MARKER in flow
   ========================================================= */
.now-marker { display: flex; align-items: center; gap: 12px; margin: 34px 0 12px; }
.now-marker .nm-plate {
  background: var(--lime); color: var(--ink);
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  padding: 6px 12px; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.now-marker .nm-plate b { text-transform: none; }
.now-marker .nm-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(28, 28, 26, 0.4), transparent); }

/* =========================================================
   CHAPTER CARDS
   ========================================================= */
.chapter { margin-bottom: 16px; }
.chapter .cham-in {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 236px;
  background: var(--plate);
  transition: background 0.18s ease;
}
.chapter:hover .cham-in { background: #ffffff; }
.chapter { transition: transform 0.18s ease; }
.chapter:hover { transform: translateY(-2px); }

.chapter.is-current { background: var(--ink); }
.chapter.is-current .cham-in { box-shadow: inset 0 0 0 1px var(--lime); }
.chapter.is-done .cham-in { background: #f4f3ef; }

.ch-cover { position: relative; min-height: 208px; overflow: hidden; background: var(--blk); }
.ch-cover::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--tc, transparent); z-index: 2; opacity: 0.85;
}
.chapter.is-done .ch-cover::before { opacity: 0.35; }
.ch-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 0.25s ease; }
.chapter.is-done .ch-cover img { filter: grayscale(0.92) brightness(0.96) contrast(0.95); }
.chapter.is-done:hover .ch-cover img { filter: grayscale(0.25) brightness(0.99); }
.chapter.is-upcoming .ch-cover img { filter: saturate(0.58) brightness(0.95); }
.chapter.is-upcoming:hover .ch-cover img { filter: saturate(0.9) brightness(0.99); }
/* covers whose artwork carries baked-in poster lettering: crop the lettering out */
.chapter[data-course="c-y1-01"] .ch-cover img { object-position: 50% 72%; }
.chapter[data-course="c-y1-06"] .ch-cover img { object-position: 50% 12%; }
.chapter[data-course="c-y1-07"] .ch-cover img { object-position: 50% 4%; }
.chip-ref {
  color: var(--ink-3); text-decoration: none;
  border: 1px solid var(--stroke);
}
.chip-ref:hover, .chip-ref:focus-visible { color: var(--ink); border-color: var(--ink); }
.tail-grid { margin: 30px 0 6px; padding: 18px 20px 16px; border: 1px dashed rgba(28, 28, 26, 0.3); }
.tg-label { color: var(--ink-3); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.tg-cells { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.tg-cell { display: grid; gap: 4px; justify-items: center; }
.tg-cell i { display: block; width: 34px; height: 20px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--stroke); }
.tg-cell b { font-size: 9px; font-weight: 400; color: var(--ink-3); }
.tg-cell em { font-style: normal; font-size: 9px; color: var(--lime-ink); letter-spacing: 0.08em; }
.ch-cover::after { content: none; }
.ch-num {
  position: absolute; left: 0; top: 12px; z-index: 2;
  background: var(--blk); color: var(--ink-on-dark);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  padding: 5px 12px 5px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.chapter.is-done .ch-num::after { content: ' · CLEARED'; color: rgba(206, 214, 0, 0.9); font-size: 9px; }

.ch-body { padding: 20px 26px 20px; min-width: 0; display: flex; flex-direction: column; }
.ch-name {
  font-weight: 800; text-transform: uppercase;
  font-size: 22px; line-height: 1.08; letter-spacing: 0;
  margin: 12px 0 2px; text-wrap: balance;
}
.chapter.is-done .ch-name { color: var(--ink-2); }
.ch-inst { margin: 8px 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ch-inst .inst-name { font-size: 15px; }
.inst-tbd {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em;
  color: var(--ink-3); padding: 4px 10px;
  border: 1px dashed rgba(28, 28, 26, 0.4);
}
.ch-blurb { color: var(--ink-2); font-size: 14px; max-width: 58ch; text-wrap: pretty; }
.chapter.is-done .ch-blurb { color: var(--ink-3); }
.ch-lock { font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; color: var(--ink-3); text-transform: uppercase; margin-top: 10px; }
.ch-lock b { color: var(--ink); font-weight: 600; }
.ch-body .skills { margin-top: 12px; }

.ch-data {
  border-left: 1px solid var(--stroke);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
}
.dt-label { color: var(--ink-3); font-size: 10px; display: block; margin-bottom: 5px; }
.day-cells { display: flex; flex-wrap: wrap; gap: 3px; }
.day-cells i {
  width: 10px; height: 18px;
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.day-cells i.done { background: var(--blk); box-shadow: none; }
.day-read { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-2); text-transform: uppercase; margin-top: 6px; }
.day-read b { color: var(--ink); font-weight: 700; }
.dt-stats { display: flex; gap: 22px; }
.dt-stat b { font-size: 15px; font-weight: 700; color: var(--ink); display: block; }
.chapter .btn { margin-top: auto; justify-content: center; }
.chapter.is-done .btn { color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--stroke); }
.chapter.is-done .btn:hover { background: var(--blk); color: var(--ink-on-dark); box-shadow: none; }

/* self-study gap dividers between chapters */
.gap-div { display: flex; align-items: center; gap: 16px; margin: 28px 2px; }
.gap-div .gd-line {
  flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(28, 28, 26, 0.3) 0 6px, transparent 6px 13px);
}
.gap-div span { color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.gap-div b { color: var(--ink); font-weight: 700; font-size: 12px; }

/* season end terminator */
.season-end { margin: 52px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.se-title {
  font-weight: 900; font-size: 34px; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.2px rgba(28, 28, 26, 0.5); line-height: 1;
}
.se-sub { color: var(--ink-3); }
.se-tick { width: 2px; height: 26px; background: linear-gradient(180deg, rgba(28, 28, 26, 0.45), transparent); }

/* =========================================================
   OFF-SEASON BAND
   ========================================================= */
.offseason { margin: 34px 0; background: var(--stroke); }
.offseason .cham-in {
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
  padding: 30px 34px;
  background:
    repeating-linear-gradient(-45deg, rgba(28, 28, 26, 0.035) 0 12px, transparent 12px 24px),
    var(--paper);
}
.off-title {
  font-weight: 900; font-size: 42px; line-height: 0.95;
  text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 1.2px rgba(28, 28, 26, 0.55);
  white-space: nowrap;
}
.off-meta { color: var(--ink-3); }
.off-meta .off-blurb { color: var(--ink-2); font-size: 15px; margin-bottom: 6px; font-weight: 500; }
.off-dates { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; }

/* =========================================================
   FOOTER + LAB CHROME
   ========================================================= */
.foot { padding: 64px 0 90px; border-top: 1px solid var(--stroke); margin-top: 60px; }
.foot p { color: var(--ink-3); }
.foot-brand { margin-top: 8px; color: var(--ink-3); font-size: 11px; }

.lab-chrome {
  position: fixed; right: 14px; bottom: 12px; z-index: 90;
  display: flex; gap: 8px; align-items: center;
  background: rgba(251, 250, 247, 0.92);
  border: 1px solid var(--stroke);
  padding: 5px 10px;
  font-size: 9.5px; color: var(--ink-3);
  opacity: 0.9;
}
.lab-chrome:hover, .lab-chrome:focus-within { opacity: 1; }
.lab-chrome a { color: var(--ink-2); text-decoration: none; padding: 4px 2px; }
.lab-chrome a:hover { color: var(--ink); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .node, .chapter, .btn i, .rail-viewing { transition: none; }
}

/* =========================================================
   RESPONSIVE (identical grid to Season One)
   ========================================================= */
@media (max-width: 1180px) {
  .chapter .cham-in { grid-template-columns: 250px minmax(0, 1fr) 210px; }
  .energy-in { grid-template-columns: 260px minmax(0, 1fr); }
  .act .cham-in { grid-template-columns: auto minmax(0, 1fr); }
  .act-xp { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .hero .cham-in { grid-template-columns: 1fr; }
  .hero .cham-in::after { content: none; }
  .hero-body { padding-left: 34px; }
  .hero-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .chapter .cham-in { grid-template-columns: 1fr; }
  .ch-cover { min-height: 0; aspect-ratio: 16 / 8; }
  .ch-data {
    border-left: 0; border-top: 1px solid var(--stroke);
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px;
  }
  .ch-data .btn { margin-top: 0; flex: 1 0 100%; justify-content: center; }
  .energy-in { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  body { font-size: 14px; }

  .season-head { padding-top: 20px; }
  .head-topline { margin-bottom: 24px; }
  .season-title { font-size: clamp(50px, 15vw, 74px); }
  .season-dek { margin-top: 14px; font-size: 10px; }

  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 22px 0 26px; }
  .slot .cham-in { padding: 10px 10px 12px; }
  .slot-mid { display: block; margin-top: 4px; }
  .slot-year { font-size: 16px; }
  .slot-cohort { display: block; font-size: 8.5px; margin-top: 2px; }
  .slot-now { margin-top: 5px; display: block; }
  .slot-now .ln-label { font-size: 8px; }
  .slot-now b { display: block; font-size: 10.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .slot-track { font-size: 8.5px; }

  .rail-scroll { overflow-x: auto; scrollbar-width: none; }
  .rail-scroll::-webkit-scrollbar { display: none; }
  .rail-inner { width: calc(38 * 44px + 37 * 3px); }
  .rail-nodes { grid-template-columns: repeat(38, 44px); height: 30px; }
  .rail-burn { height: 30px; }
  .rail-viewing { height: 38px; }
  .rail-legend { flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
  .lab-chrome { position: static; width: max-content; margin: 22px auto 10px; opacity: 1; }
  .node[data-tip]::after { display: none; }

  .sec-head { margin-top: 36px; }
  .sec-title { font-size: 24px; }

  .hero-body { padding: 20px 18px 22px; }
  .hero-name { font-size: 26px; }
  .telemetry { gap: 14px; padding: 14px; }
  .tele-day b { font-size: 34px; }
  .tele-cells i { width: 12px; height: 22px; }

  .energy-num { font-size: 54px; }
  .energy-in { padding: 20px 18px; }
  .eg i { width: 7px; height: 20px; }

  .act .cham-in { grid-template-columns: 1fr; gap: 14px; padding: 20px 18px; }
  .act-num { font-size: 42px; }

  .ch-body { padding: 16px 16px 18px; }
  .ch-data { padding: 14px 16px 16px; }
  .off-title { font-size: 30px; white-space: normal; }
  .offseason .cham-in { padding: 22px 18px; gap: 16px; }

  .foot { padding-bottom: 110px; }
}
