/* CipherTrail public site. Palette, type and components shared by every page. */
:root {
  --ink: #0E1430;
  --deep: #161E45;
  --deeper: #0A0F26;
  --raise: #1D2757;
  --paper: #EEF1FA;
  --slate: #8D97B8;
  --line: rgba(238, 241, 250, .12);
  --line-strong: rgba(238, 241, 250, .24);
  --amber: #FFB020;
  --cyan: #4FD1E8;
  --lilac: #A78BFA;
  --coral: #FF7A6B;
  --mint: #5EEAD4;
  --display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-variation-settings: "wdth" 80; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: 1.18rem; color: #C9CFE6; max-width: 58ch; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(14, 20, 48, .82); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-head.scrolled { border-bottom-color: var(--line); background: rgba(10, 15, 38, .92); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font: 500 .72rem/1 var(--body); color: var(--slate); letter-spacing: .02em; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: #C9CFE6; font-size: .95rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); background: rgba(238, 241, 250, .06); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--paper); margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 8px 28px -10px rgba(255, 176, 32, .7); }
.btn-primary:hover { background: #FFC24F; transform: translateY(-1px); }
.btn-line { border-color: var(--line-strong); color: var(--paper); background: transparent; }
.btn-line:hover { border-color: var(--paper); background: rgba(238, 241, 250, .05); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 8vw, 96px); isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--ink)); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid > *, .platform > *, .contact > *, .sec-head > * { min-width: 0; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.hero h1 .line:nth-child(1) > span { color: var(--amber); }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; color: var(--cyan); }
.hero .lede { margin-top: 24px; opacity: 0; animation: fade .8s .45s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; opacity: 0; animation: fade .8s .6s forwards; }
.hero-note { margin-top: 26px; color: var(--slate); font-size: .93rem; display: flex; gap: 10px; align-items: center; opacity: 0; animation: fade .8s .75s forwards; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94, 234, 212, .6); animation: ping 2.4s infinite; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(94, 234, 212, 0); } }

/* lesson card: the two-day method, live */
.lesson { background: linear-gradient(160deg, rgba(29, 39, 87, .92), rgba(14, 20, 48, .96)); border: 1px solid var(--line-strong); border-radius: 20px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); opacity: 0; transform: translateY(24px) rotate(1deg); animation: card-in 1s .35s var(--ease) forwards; }
@keyframes card-in { to { opacity: 1; transform: none; } }
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lesson-top b { font-family: var(--display); font-size: 1.15rem; }
.lesson-top .muted { font-size: .85rem; }
.daytabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--deeper); border-radius: 12px; padding: 4px; position: relative; }
.daytabs button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 8px; border-radius: 9px; cursor: pointer; text-align: left; color: var(--slate); transition: color .25s; }
.daytabs button strong { display: block; color: inherit; font-size: .95rem; }
.daytabs button small { font-size: .78rem; }
.daytabs button[aria-selected="true"] { color: var(--ink); }
.daytabs .slider { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--amber); transition: transform .45s var(--ease), background .45s; }
.daytabs[data-day="2"] .slider { transform: translateX(100%); background: var(--cyan); }
.daypanel { margin-top: 16px; min-height: 252px; }
.daypanel[hidden] { display: none; }
.concept { display: grid; gap: 10px; }
.concept-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; background: rgba(238, 241, 250, .04); opacity: 0; transform: translateX(-8px); }
.daypanel.show .concept-row { animation: row-in .5s var(--ease) forwards; }
.daypanel.show .concept-row:nth-child(2) { animation-delay: .08s; }
.daypanel.show .concept-row:nth-child(3) { animation-delay: .16s; }
.daypanel.show .concept-row:nth-child(4) { animation-delay: .24s; }
@keyframes row-in { to { opacity: 1; transform: none; } }
.concept-row i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: .8rem; font-weight: 700; background: rgba(255, 176, 32, .16); color: var(--amber); }
.concept-row p { font-size: .92rem; color: #D5DAEE; }
.query { font-family: var(--mono); font-size: .82rem; background: var(--deeper); border-radius: 10px; padding: 12px 14px; margin-top: 4px; color: #C9CFE6; overflow-x: auto; white-space: pre; }
.query .k { color: var(--cyan); } .query .s { color: var(--amber); } .query .bad { color: var(--coral); background: rgba(255, 122, 107, .12); border-radius: 3px; }
.term { font-family: var(--mono); font-size: .82rem; background: #070B1E; border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-height: 236px; color: #C9CFE6; overflow: hidden; }
.term .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3463; }
.term .ln { white-space: pre-wrap; min-height: 1.5em; }
.term .p { color: var(--cyan); } .term .ok { color: var(--mint); } .term .warn { color: var(--amber); } .term .dim { color: var(--slate); }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lesson-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: .82rem; color: var(--slate); }

/* ---------- facts ---------- */
.facts { border-block: 1px solid var(--line); background: rgba(10, 15, 38, .6); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font: 700 clamp(2rem, 3.4vw, 2.7rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--slate); font-size: .95rem; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.sec-head p { color: #C9CFE6; max-width: 52ch; }

/* ---------- trail map (signature) ---------- */
.trail { position: relative; }
.trail-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trail-svg path { fill: none; stroke-linecap: round; }
.trail-svg .ghost { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 10; }
.trail-svg .live { stroke: url(#trailGrad); stroke-width: 4; }
.stations { position: relative; display: grid; gap: 28px; }
@media (min-width: 821px) { .station + .station { margin-top: -90px; } }
.station { width: min(520px, 100%); position: relative; }
.station:nth-child(even) { justify-self: end; }
.station-pin { position: absolute; top: 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--c); transition: transform .5s var(--ease), box-shadow .5s; }
.station:nth-child(odd) .station-pin { right: -48px; }
.station:nth-child(even) .station-pin { left: -48px; }
.station.reached .station-pin { background: var(--c); transform: scale(1.15); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 18%, transparent); }
.station-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: linear-gradient(170deg, rgba(22, 30, 69, .9), rgba(14, 20, 48, .9)); transition: border-color .4s; }
.station.reached .station-card { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.station-head { display: flex; align-items: baseline; gap: 14px; }
.station-num { font: 800 3rem/1 var(--display); color: var(--c); letter-spacing: -.04em; }
.station h3 { font-size: 1.45rem; }
.station p { margin-top: 10px; color: #C9CFE6; }
.station ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.station li a { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; padding: 12px 14px; border-radius: 10px; background: rgba(238, 241, 250, .04); transition: background .2s, transform .25s var(--ease); }
.station li a:hover { background: rgba(238, 241, 250, .09); transform: translateX(4px); }
.station li a span { color: var(--slate); font-size: .85rem; white-space: nowrap; }
.c-amber { --c: var(--amber); } .c-cyan { --c: var(--cyan); } .c-lilac { --c: var(--lilac); } .c-coral { --c: var(--coral); } .c-mint { --c: var(--mint); }

/* ---------- course cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line-strong); background: transparent; color: #C9CFE6; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--paper); color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ccard { position: relative; display: flex; flex-direction: column; text-decoration: none; padding: 24px; border-radius: 16px; background: var(--deep); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.ccard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.ccard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.ccard.flag { grid-column: span 2; grid-row: span 2; padding: 32px; background: radial-gradient(120% 90% at 100% 0%, rgba(255,176,32,.16), transparent 55%), linear-gradient(140deg, #232E66, var(--deep) 60%); }
.ccard.flag p { font-size: 1.05rem; max-width: 46ch; flex: 0; }
.stagebar { margin-top: 28px; }
.stagebar-track { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px; }
.stagebar-track i { display: block; height: 100%; transform-origin: left; }
.stagebar-track i:nth-child(1) { background: var(--amber); } .stagebar-track i:nth-child(2) { background: var(--cyan); } .stagebar-track i:nth-child(3) { background: var(--coral); }
.stagebar-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .88rem; color: #C9CFE6; }
.stagebar-legend b { font-family: var(--display); font-size: 1.05rem; color: var(--paper); margin-right: 4px; }
.flag-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; flex: 1; align-content: flex-start; }
.flag-topics span { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: rgba(238,241,250,.06); color: #C9CFE6; }
.ccard .code { font: 600 .85rem var(--mono); color: var(--c); }
.ccard h3 { margin-top: 10px; font-size: 1.35rem; }
.ccard.flag h3 { font-size: 1.9rem; max-width: 18ch; }
.ccard p { margin-top: 10px; color: #C9CFE6; font-size: .95rem; flex: 1; }
.ccard dl { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: .88rem; }
.ccard dt { color: var(--slate); white-space: nowrap; }
.ccard dd { margin: 0 0 0 4px; font-weight: 600; }
.ccard dl div { display: flex; }
.ccard .go { margin-top: 18px; font-weight: 600; color: var(--c); }
.ccard.is-hidden { display: none; }

/* ---------- method ---------- */
.method { background: var(--deeper); border-block: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mcard { padding: 26px; border-radius: 16px; border: 1px solid var(--line); background: rgba(22, 30, 69, .5); }
.mcard h3 { margin-bottom: 10px; }
.mcard p { color: #C9CFE6; font-size: .97rem; }
.week { margin-top: 48px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.week-row { display: grid; grid-template-columns: 150px repeat(7, 1fr); border-top: 1px solid var(--line); }
.week-row:first-child { border-top: 0; background: rgba(238, 241, 250, .04); font-size: .85rem; color: var(--slate); }
.week-row > * { padding: 14px 12px; border-left: 1px solid var(--line); font-size: .9rem; }
.week-row > :first-child { border-left: 0; font-weight: 600; }
.slot { border-radius: 8px; padding: 6px 8px; font-size: .82rem; line-height: 1.35; }
.slot.u { background: rgba(255, 176, 32, .14); color: #FFD58A; }
.slot.t { background: rgba(79, 209, 232, .14); color: #A7ECF7; }
.slot.r { background: rgba(167, 139, 250, .16); color: #D3C5FF; }

/* ---------- lab platform ---------- */
.platform { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--raise); font: 700 1.05rem var(--display); color: var(--cyan); }
.steps b { display: block; }
.steps span { color: var(--slate); font-size: .95rem; }
.mock { border-radius: 18px; border: 1px solid var(--line-strong); background: #0B1130; padding: 18px; box-shadow: 0 50px 100px -50px rgba(79, 209, 232, .35); }
.mock-top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--slate); }
.mock-machine { margin-top: 14px; border-radius: 14px; background: var(--deep); padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.ring { width: 92px; height: 92px; }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: #26305F; }
.ring .fg { stroke: var(--cyan); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s linear; }
.ring text { fill: var(--paper); font: 700 15px var(--mono); text-anchor: middle; }
.mock-machine b { font-family: var(--display); font-size: 1.15rem; }
.ipline { margin-top: 8px; font: 500 .9rem var(--mono); color: var(--mint); }
.mock-flags { margin-top: 12px; display: grid; gap: 8px; }
.mflag { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--deep); font-size: .9rem; }
.mflag em { font-style: normal; color: var(--slate); font-size: .82rem; }
.mflag.done em { color: var(--mint); }
.vpn-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: rgba(94, 234, 212, .12); color: var(--mint); }
.vpn-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 1.12rem var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .ans { padding: 0 0 22px; color: #C9CFE6; max-width: 70ch; }
.faq details[open] .ans { animation: fade .4s; }

/* ---------- forms ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
.form { display: grid; gap: 16px; padding: 28px; border-radius: 18px; background: var(--deep); border: 1px solid var(--line); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: .92rem; color: #C9CFE6; }
.field input, .field select, .field textarea { width: 100%; background: var(--deeper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; color: var(--paper); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 32, .18); }
.field textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -5000px; }
.feedback { min-height: 1.4em; font-size: .93rem; color: var(--slate); }
.feedback.ok { color: var(--mint); } .feedback.err { color: var(--coral); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; color: #C9CFE6; }
.contact-list b { display: block; color: var(--paper); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0; color: var(--slate); font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--paper); }

.linkbtn { background: none; border: 0; color: var(--cyan); cursor: pointer; padding: 0; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--paper); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .platform, .contact, .sec-head { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .ccard.flag { grid-row: auto; }
  .method-grid { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .week { overflow-x: auto; }
  .week-row { min-width: 760px; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px; background: rgba(10, 15, 38, .98); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px; }
  .station, .station:nth-child(even) { justify-self: stretch; width: auto; margin-left: 40px; }
  .station:nth-child(odd) .station-pin, .station:nth-child(even) .station-pin { left: -40px; right: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .course-grid { grid-template-columns: 1fr; }
  .ccard.flag { grid-column: auto; grid-row: auto; }
  .form .two { grid-template-columns: 1fr; }
  .lesson { padding: 16px; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .daypanel { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
