/* ============================================================
   SEASON ONE · VARIATION A / INSTRUMENT
   The keyboard reference as an interface: warm chassis white,
   course plates as black keys, lime kept to the two knobs
   (now + live). Rounded key-cap geometry, micro-etched labels.
   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 {
  --chassis: #eceae5;          /* page ground: warm chassis */
  --chassis-2: #e4e2dc;        /* inset wells */
  --key-white: #f8f7f4;        /* white key caps (plates) */
  --key-black: #16171b;        /* black key caps (covers, buttons) */
  --key-black-2: #1f2126;
  --stroke: rgba(22, 23, 27, 0.16);
  --stroke-soft: rgba(22, 23, 27, 0.09);
  --ink: #191a1e;
  --ink-2: #45484f;
  --ink-3: #7a7e88;
  --ink-on-dark: #f2f2ef;
  --ink-on-dark-3: #9a9da6;
  --lime: #ced600;
  --lime-ink: #7d8300;         /* readable lime for text on light */
  --lime-soft: rgba(206, 214, 0, 0.45);
  --lime-faint: rgba(206, 214, 0, 0.16);
  --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: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --r: 16px;                   /* plate radius (key caps) */
  --r-s: 8px;                  /* small radius */
  --shadow-key: 0 1px 2px rgba(22, 23, 27, 0.05), 0 10px 26px -20px rgba(22, 23, 27, 0.35);
}

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

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

body {
  background: var(--chassis);
  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(--lime-ink); }

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

/* ---------------------------------------------------------
   Plate utility, re-read as key caps: rounded, 1px stroke,
   soft key shadow. Same DOM contract as the chamfer pair.
   --------------------------------------------------------- */
.cham {
  border-radius: var(--r);
  background: var(--stroke);
  padding: 1px;
  position: relative;
  box-shadow: var(--shadow-key);
}
.cham-in {
  border-radius: calc(var(--r) - 1px);
  background: var(--key-white);
  position: relative;
  z-index: 1;
  height: 100%;
  display: block;
  overflow: hidden;
}

/* type glyphs (etched line icons) */
.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-soft);
  overflow: hidden;
  padding: 30px 0 0;
}
.head-canvas { display: none; }
.head-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(22, 23, 27, 0.05) 1px, transparent 1px);
  background-size: 100% 96px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 66%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 66%);
}
.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(--stroke);
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--key-white);
}
.session-plate b { color: var(--ink); font-weight: 700; }

.season-title {
  font-weight: 800;
  font-size: clamp(60px, 8.2vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  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: 2px rgba(25, 26, 30, 0.6);
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}
.st-slash {
  width: 0.4em; height: 0.68em;
  background: var(--lime);
  border-radius: 0.09em;
  clip-path: none;
  transform: translateY(0.05em) skewX(-14deg);
}
.season-dek { color: var(--ink-3); margin-top: 20px; }
.season-dek b { color: var(--ink-2); font-weight: 500; }

/* year switcher: three key caps */
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 34px;
}
.slot { --r: 14px; display: block; text-align: left; }
.slot .cham-in { background: var(--key-white); padding: 13px 18px 15px; transition: background 0.18s ease, transform 0.12s ease; }
.slot:hover .cham-in { background: #fdfcfa; }
.slot:active .cham-in { transform: translateY(1px); }
.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: 700; font-size: 22px; letter-spacing: -0.015em;
  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: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; display: inline-block; }
.ln-dot.live { background: var(--lime); opacity: 1; box-shadow: 0 0 0 3px var(--lime-faint); }
.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: 3px; border-radius: 2px; background: var(--chassis-2); margin-top: 11px; position: relative; overflow: hidden; }
.slot-bar i { position: absolute; inset: 0; right: auto; border-radius: 2px; background: var(--ink-3); width: var(--pct); }

/* the pressed key: active year goes black-key */
.slot[aria-pressed="true"] { background: var(--key-black); box-shadow: 0 2px 3px rgba(22, 23, 27, 0.2), 0 14px 30px -18px rgba(22, 23, 27, 0.55); }
.slot[aria-pressed="true"] .cham-in { background: var(--key-black); }
.slot[aria-pressed="true"]:hover .cham-in { background: var(--key-black-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.14); }
.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(236, 234, 229, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke-soft);
}
.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: 4px;
  height: 26px;
  position: relative;
  z-index: 2;
}
.node {
  position: relative;
  border-radius: 5px;
  background: var(--key-white);
  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.32; filter: saturate(0.25); }
.node.is-self.is-past { opacity: 0.55; background: var(--chassis-2); }
.node.is-off {
  background: repeating-linear-gradient(-45deg, rgba(22, 23, 27, 0.12) 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.06); 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(--key-black); color: var(--ink-on-dark);
  border-radius: 6px;
  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(22, 23, 27, 0.05));
  border-bottom: 1px solid rgba(22, 23, 27, 0.22);
  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(22, 23, 27, 0.25);
}

/* the knob: NOW playhead is one of the two lime moments */
.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);
  border: 1px solid rgba(22, 23, 27, 0.4);
  border-radius: 50%;
  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 9px; white-space: nowrap;
  border-radius: 999px;
  clip-path: none;
}
.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(22, 23, 27, 0.35);
  border-bottom: 1px solid rgba(22, 23, 27, 0.35);
  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; border-radius: 50%; background: var(--ink); }
.rail-viewing i:first-child { left: -2px; top: -3px; }
.rail-viewing i:last-child { right: -2px; bottom: -3px; }

.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; border-radius: 3px; }
.lg-t { border-radius: 3px; }
.lg-self { background: var(--key-white); box-shadow: inset 0 0 0 1px var(--stroke); }
.lg-off { background: repeating-linear-gradient(-45deg, rgba(22, 23, 27, 0.22) 0 2px, transparent 2px 5px); }

/* =========================================================
   SECTIONS
   ========================================================= */
.sec-head { margin: 54px 0 18px; }
.sec-kicker { display: block; color: var(--lime-ink); margin-bottom: 8px; }
.sec-title {
  font-weight: 800; text-transform: uppercase;
  font-size: 32px; line-height: 1; letter-spacing: -0.02em;
}

/* =========================================================
   FEATURED HERO
   ========================================================= */
.hero { --r: 22px; background: var(--stroke); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  border-radius: var(--r);
  background: var(--lime);
  opacity: 0;
  animation: edgePulse 2.6s ease-in-out infinite;
}
@keyframes edgePulse { 0%, 100% { opacity: 0; } 50% { opacity: 0.55; } }

.hero .cham-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--key-white);
}
.hero-cover { position: relative; min-height: 400px; overflow: hidden; background: var(--key-black); }
.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: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(248, 247, 244, 0.16) 96%);
  pointer-events: none;
}
.hero-ch {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: rgba(22, 23, 27, 0.82); color: var(--ink-on-dark);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  clip-path: none;
}
.hero-body { padding: 30px 34px 28px; display: flex; flex-direction: column; min-width: 0; }
.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 11px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px;
  clip-path: none;
}
.chip-live { background: var(--lime); color: var(--ink); }
.chip-type { color: var(--tc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 45%, transparent); background: color-mix(in srgb, var(--tc) 8%, transparent); }
.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: 800; text-transform: uppercase;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 1.02;
  letter-spacing: -0.025em; 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; }

/* the display: a black screen with lime digits, like the keyboard's */
.telemetry {
  margin: 22px 0 8px; padding: 16px 18px;
  background: var(--key-black);
  border-radius: 14px;
  clip-path: none;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.tele-day { display: flex; align-items: baseline; gap: 8px; }
.tele-day b { font-size: 40px; font-weight: 800; color: var(--lime); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tele-day span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-on-dark-3); text-transform: uppercase; }
.tele-cells { display: flex; gap: 4px; }
.tele-cells i { width: 15px; height: 26px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); clip-path: none; }
.tele-cells i.done { background: var(--lime); box-shadow: none; }
.tele-left { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-on-dark-3); 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 10px; background: var(--chassis);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--stroke-soft);
}
.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-2); font-weight: 600; }

/* buttons as key caps */
.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 22px;
  min-height: 44px;
  background: var(--key-black);
  box-shadow: 0 1px 2px rgba(22, 23, 27, 0.25), 0 8px 18px -12px rgba(22, 23, 27, 0.5);
  border-radius: 12px;
  clip-path: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 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(--key-black-2); color: var(--lime); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); box-shadow: 0 0 1px rgba(22, 23, 27, 0.3); }
.btn-live { color: var(--ink); background: var(--lime); }
.btn-live:hover { background: #dbe300; color: var(--ink); }

/* =========================================================
   ENERGY BAR
   ========================================================= */
.energy-sec { margin-top: 30px; }
.energy-plate { --r: 18px; }
.energy-in {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px; padding: 26px 30px; align-items: center;
  background: var(--key-white);
}
.energy-kicker { color: var(--ink-3); font-weight: 500; }
.energy-fig { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.energy-num { font-size: 78px; font-weight: 800; line-height: 0.9; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.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; border-radius: 2.5px;
  background: var(--chassis);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.eg i.done { background: var(--key-black); box-shadow: none; }

/* =========================================================
   ACT PLATES (semesters)
   ========================================================= */
.act { --r: 18px; 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(--key-white);
}
.act-num {
  font-weight: 800; font-size: 58px; line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1.5px rgba(25, 26, 30, 0.4);
  text-transform: uppercase; white-space: nowrap; letter-spacing: -0.02em;
}
.act-num b { color: var(--ink); -webkit-text-stroke: 0; font-weight: 800; }
.act-meta h2 { font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; }
.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-weight: 800; font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.act-xp .xp-pct.zero { color: var(--ink-3); }
.xp-bar { height: 10px; border-radius: 6px; background: var(--chassis-2); position: relative; clip-path: none; overflow: hidden; }
.xp-bar i { position: absolute; inset: 0; right: auto; width: var(--pct); border-radius: 6px; background: var(--key-black); }
.xp-bar i::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; 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 13px; text-transform: uppercase;
  border-radius: 999px;
  clip-path: none;
}
.now-marker .nm-plate b { text-transform: none; }
.now-marker .nm-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(22, 23, 27, 0.3), transparent); }

/* =========================================================
   CHAPTER CARDS
   ========================================================= */
.chapter { margin-bottom: 16px; }
.chapter .cham-in {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 236px;
  background: var(--key-white);
  transition: background 0.18s ease;
}
.chapter:hover .cham-in { background: #fdfcfa; }
.chapter { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.chapter:hover { transform: translateY(-2px); box-shadow: 0 2px 3px rgba(22, 23, 27, 0.06), 0 18px 34px -22px rgba(22, 23, 27, 0.4); }

.chapter.is-current { background: linear-gradient(135deg, var(--lime), var(--lime-soft) 30%, var(--stroke) 60%, var(--lime-soft)); }
.chapter.is-done .cham-in { background: #f3f2ee; }

.ch-cover { position: relative; min-height: 208px; overflow: hidden; background: var(--key-black); }
.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.9) brightness(0.94) contrast(0.96); }
.chapter.is-done:hover .ch-cover img { filter: grayscale(0.25) brightness(0.98); }
.chapter.is-upcoming .ch-cover img { filter: saturate(0.6) brightness(0.94); }
.chapter.is-upcoming:hover .ch-cover img { filter: saturate(0.9) brightness(0.98); }
/* 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(22, 23, 27, 0.25); border-radius: var(--r); }
.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; border-radius: 6px; background: var(--key-white); 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: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 68%, rgba(248, 247, 244, 0.12));
  pointer-events: none;
}
.ch-num {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: rgba(22, 23, 27, 0.82); color: var(--ink-on-dark);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 999px;
  clip-path: none;
}
.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: 700; text-transform: uppercase;
  font-size: 22px; line-height: 1.08; letter-spacing: -0.02em;
  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-radius: 999px;
  border: 1px dashed rgba(22, 23, 27, 0.35);
}
.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-2); font-weight: 600; }
.ch-body .skills { margin-top: 12px; }

.ch-data {
  border-left: 1px solid var(--stroke-soft);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(22, 23, 27, 0.018);
}
.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; border-radius: 3px;
  background: var(--key-white);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.day-cells i.done { background: var(--key-black); 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: var(--chassis); box-shadow: inset 0 0 0 1px var(--stroke-soft); }
.chapter.is-done .btn:hover { background: var(--key-black); 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(22, 23, 27, 0.25) 0 6px, transparent 6px 13px);
}
.gap-div span { color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.gap-div b { color: var(--ink-2); 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: 800; font-size: 34px; text-transform: uppercase; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(25, 26, 30, 0.35); line-height: 1;
}
.se-sub { color: var(--ink-3); }
.se-tick { width: 2px; height: 26px; background: linear-gradient(180deg, rgba(22, 23, 27, 0.35), transparent); }

/* =========================================================
   OFF-SEASON BAND
   ========================================================= */
.offseason { --r: 18px; margin: 34px 0; background: var(--stroke-soft); box-shadow: none; }
.offseason .cham-in {
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
  padding: 30px 34px;
  background:
    repeating-linear-gradient(-45deg, rgba(22, 23, 27, 0.03) 0 12px, transparent 12px 24px),
    var(--chassis);
}
.off-title {
  font-weight: 800; font-size: 42px; line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 1.5px rgba(25, 26, 30, 0.4);
  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-soft); 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(248, 247, 244, 0.9);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 9.5px; color: var(--ink-3);
  clip-path: none;
  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) {
  .hero::before { animation: none; opacity: 0.3; }
  .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-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-soft);
    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(48px, 14.5vw, 72px); }
  .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 * 4px); }
  .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: 32px; }
  .tele-cells i { width: 12px; height: 22px; }

  .energy-num { font-size: 56px; }
  .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; }
}
