/* Homepage */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: center; padding: calc(var(--header-h) + 2.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow: clip; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform-origin: 60% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 85% 40%, transparent 0%, rgb(12 12 13 / 0.35) 55%, rgb(12 12 13 / 0.85) 100%),
    linear-gradient(90deg, rgb(12 12 13 / 0.9) 0%, rgb(12 12 13 / 0.45) 45%, rgb(12 12 13 / 0.1) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 28%);
}

/* Viewfinder: corner marks + running timecode. */
.hero__frame { position: absolute; inset: calc(var(--header-h) + 12px) clamp(12px, 2vw, 28px) clamp(12px, 2vw, 28px); z-index: -1; pointer-events: none;
  --c: rgb(var(--fg-rgb) / 0.55); --l: 26px; --w: 1.5px;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--w) no-repeat, linear-gradient(var(--c) 0 0) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--w) no-repeat, linear-gradient(var(--c) 0 0) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--w) no-repeat, linear-gradient(var(--c) 0 0) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--w) no-repeat, linear-gradient(var(--c) 0 0) bottom right / var(--w) var(--l) no-repeat;
}
.hero__tc { position: absolute; right: 14px; top: 10px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: rgb(var(--fg-rgb) / 0.7); font-variant-numeric: tabular-nums; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
.hero__copy { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); align-content: center; align-self: start; padding-top: clamp(0rem, 4vh, 3rem); }
.hero__title { font-size: clamp(2.9rem, 1.6rem + 5.4vw, 6.6rem); line-height: 0.95; letter-spacing: -0.045em; max-width: 12ch; }

/* Retro TV treatment: slight RGB convergence error, faint scanlines and a one-off CRT power-on.
   The text is real, selectable and painted immediately (no JS), so it is also a fast LCP. */
.crt { position: relative; isolation: isolate; }
.crt__text { position: relative; display: inline-block; text-shadow: -0.035em 0 0 rgb(255 72 72 / 0.38), 0.035em 0 0 rgb(64 210 255 / 0.32), 0 0 0.45em rgb(245 197 24 / 0.12); }
.crt__accent { color: var(--accent); }
.crt__text::after {
  content: ""; position: absolute; inset: -0.08em -0.04em; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgb(0 0 0 / 0.28) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply; opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  .crt__text { animation: crt-on 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-origin: 50% 50%; }
  .crt__text::before {
    content: ""; position: absolute; left: 0; right: 0; height: 18%; top: -20%; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgb(var(--fg-rgb) / 0.07), transparent);
    animation: crt-roll 7s linear 1.4s infinite;
  }
}
@keyframes crt-on {
  0% { opacity: 0.01; transform: scale(1.04, 0.02); filter: brightness(3); }
  35% { opacity: 1; transform: scale(1.02, 0.08); filter: brightness(2.2); }
  60% { transform: scale(1, 1.03); filter: brightness(1.3); }
  100% { transform: none; filter: none; }
}
@keyframes crt-roll { to { top: 105%; } }
.hero__sub { font-size: var(--step-1); color: rgb(239 237 232 / 0.82); max-width: 40ch; line-height: 1.5; }
.hero__form { width: 100%; max-width: 520px; justify-self: end; }

@media (max-width: 1023px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 3rem); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__form { justify-self: stretch; max-width: none; }
  .hero__frame { display: none; }
}

/* ---------- Stats ---------- */
.stats { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); border-block: 1px solid var(--line); }
.stats__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats .stat { padding: 0.5rem clamp(1rem, 0.5rem + 1.5vw, 2rem); border-left: 1px solid var(--line); }
.stats .stat:first-child { border-left: 0; padding-left: 0; }
.stats .stat__value span { color: var(--text); }
.stats .stat:nth-child(2) .stat__value span { color: var(--accent); }
@media (max-width: 900px) {
  .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .stats .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Course reel ---------- */
.reel { padding-block: var(--section) calc(var(--section) * 0.7); overflow: clip; }
.reel.is-pinned { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 1rem) 2rem; }
.reel__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.reel__head .section-head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.reel__status { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-2); min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
.reel__controls { display: flex; align-items: center; gap: 0.5rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.reel__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color 0.25s, background-color 0.25s, opacity 0.25s; }
.reel__btn:hover:not(:disabled) { border-color: var(--accent); background: var(--brand); color: var(--brand-ink); }
.reel__btn:disabled { opacity: 0.35; cursor: default; }

.reel__track {
  display: flex; gap: clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel.is-pinned .reel__track { overflow: visible; scroll-snap-type: none; }

.reel-card { position: relative; flex: 0 0 clamp(270px, 24vw + 120px, 440px); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); transition: border-color 0.35s; }
.reel-card:hover { border-color: rgb(245 197 24 / 0.5); }
.reel-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.reel-card__media > div { position: absolute; inset: 0 -8%; }
.reel-card__media picture, .reel-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.reel-card:hover .reel-card__media img { transform: scale(1.05); }
.reel-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(19 19 21 / 0.95) 100%); }
.reel-card__body { position: relative; margin-top: -5.5rem; padding: 0 clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem) clamp(1.2rem, 1rem + 0.8vw, 1.7rem); display: grid; gap: 0.5rem; }
.reel-card__title { font-size: var(--step-2); letter-spacing: -0.03em; font-weight: 800; }
.reel-card__text { color: var(--text-2); font-size: 0.97rem; min-height: 3em; }
.reel-card .link-arrow { margin-top: 0.4rem; }

.reel__progress { height: 2px; margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); overflow: hidden; border-radius: 2px; }
.reel__progress span { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }

/* ---------- Recognition: editorial / newsprint treatment ---------- */
.press-wrap { padding-block: calc(var(--section) * 0.8); }
.press {
  --paper: #ece7dc; --ink-print: #17150f; --rule: #17150f;
  position: relative; isolation: isolate; max-width: 1080px; margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 3vw, 4rem);
  background: var(--paper); color: var(--ink-print); border-radius: 4px;
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.75);
  transform: rotate(-0.6deg);
}
/* Paper fibre: static noise, very low contrast. */
.press::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0.35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.press__mast { display: flex; align-items: center; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 3px double var(--rule); }
.press__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #111; flex: none; }
.press__icon .icon { width: 22px; height: 22px; }
.press__rule { flex: 1; height: 1px; background: var(--rule); opacity: 0.35; }
.press__date { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.12em; }
.press__headline { margin-top: clamp(1rem, 0.8rem + 1vw, 1.75rem); font-size: clamp(2.4rem, 1.2rem + 5vw, 5.6rem); line-height: 0.95; letter-spacing: -0.045em; color: var(--ink-print); text-wrap: balance; }
.press__deck { margin-top: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgb(23 21 15 / 0.3); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: var(--step-1); line-height: 1.45; max-width: 52ch; }
.press__deck strong { color: inherit; font-weight: 700; background: linear-gradient(transparent 62%, rgb(245 197 24 / 0.75) 62%); }
.press__body { margin-top: 1.1rem; max-width: 62ch; font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; line-height: 1.65; }
.press__body p::first-letter { float: left; font-family: var(--font-display); font-weight: 800; font-size: 3.2em; line-height: 0.85; padding: 0.06em 0.08em 0 0; }
.press__headline .sw { transition: opacity 0.2s linear; }
@media (max-width: 640px) { .press { transform: none; } }

/* ---------- Enhance (sticky split) ---------- */
.enhance__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 1rem + 5vw, 7rem); align-items: start; }
.enhance__aside { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 2rem; }
.enhance__media { aspect-ratio: 4 / 3; }
.enhance__list { display: grid; gap: 0; padding-top: 0.5rem; }
.enhance__list .feature { padding-block: 1.6rem; border-top: 1px solid var(--line); }
.enhance__list .feature:first-child { border-top: 0; padding-top: 0; }
.enhance__list h3 { font-size: var(--step-1); }
@media (max-width: 1023px) {
  .enhance__grid { grid-template-columns: minmax(0, 1fr); }
  .enhance__aside { position: static; }
}

/* ---------- Student work marquee ---------- */
.works { padding-block: clamp(1rem, 0.5rem + 2vw, 2.5rem); display: block; }
.works .marquee { display: block; }
.works__item { flex: none; width: clamp(240px, 18vw + 120px, 420px); aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.works__item picture, .works__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Advantage bento (4 items, 4 cells) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); gap: clamp(0.9rem, 0.6rem + 1vw, 1.4rem); }
.bento__cell { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 360px; border-radius: var(--radius); overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: var(--ink-2); }
.bento__cell--a { grid-column: span 7; }
.bento__cell--b { grid-column: span 5; }
.bento__cell--c { grid-column: span 5; }
.bento__cell--d { grid-column: span 7; }
.bento__media { position: absolute; inset: 0; z-index: -1; }
.bento__media picture, .bento__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.bento__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 12 13 / 0.05) 20%, rgb(12 12 13 / 0.92) 85%); }
.bento__cell:hover .bento__media img { transform: scale(1.04); }
.bento__body { padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: grid; gap: 0.6rem; max-width: 52ch; }
.bento__body h3 { font-size: var(--step-2); letter-spacing: -0.03em; font-weight: 800; }
.bento__body p { color: rgb(239 237 232 / 0.8); font-size: 0.98rem; }
.bento__cell:hover { border-color: rgb(245 197 24 / 0.45); }
@media (max-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__cell--a, .bento__cell--b, .bento__cell--c, .bento__cell--d { grid-column: auto; }
}

/* While pinned, size cards from the viewport height so the whole card is always in frame. */
.reel.is-pinned .reel-card { flex-basis: clamp(260px, calc((100dvh - var(--header-h) - 300px) * 0.8), 440px); }

@media (max-width: 767px) { .reel__head { flex-direction: column; align-items: stretch; gap: 0; } .reel__controls { justify-content: flex-end; } }

/* ---------- Explore Programs: niche finder as a small retro game ---------- */
@font-face { font-family: "Press Start 2P"; src: url("../../fonts/press-start-2p.woff2") format("woff2"); font-display: swap; }
.explorer { --pixel: "Press Start 2P", var(--font-mono); width: min(900px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.explorer::backdrop { background: rgb(6 6 7 / 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.explorer[open] { animation: ex-boot 0.55s var(--ease-out); }
@keyframes ex-boot { 0% { opacity: 0; transform: scale(1.02, 0.04); filter: brightness(3); } 45% { opacity: 1; transform: scale(1, 0.1); } 100% { transform: none; filter: none; } }

/* The console screen: bezel, scanlines, vignette. */
.explorer__screen {
  position: relative; isolation: isolate; max-height: calc(100dvh - 1.5rem); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(1.1rem, 0.8rem + 1.8vw, 2.2rem);
  background: radial-gradient(120% 90% at 50% 0%, #1c1b16 0%, #0d0d0e 60%), #0d0d0e;
  border: 3px solid #2a2a2c; border-radius: 22px;
  box-shadow: 0 0 0 8px #141416, 0 0 0 9px #2a2a2c, 0 40px 120px -30px rgb(0 0 0 / 0.9), inset 0 0 120px rgb(0 0 0 / 0.65);
}
.explorer__screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.028) 0 1px, transparent 1px 3px); }

/* HUD */
.explorer__hud { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding-bottom: 1rem; margin-bottom: clamp(1.2rem, 1rem + 1.2vw, 2rem); border-bottom: 2px dashed rgb(255 255 255 / 0.12); }
.explorer__title { font-family: var(--pixel); font-size: clamp(0.62rem, 0.55rem + 0.3vw, 0.8rem); line-height: 1.6; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; text-shadow: 0 0 12px rgb(245 197 24 / 0.45); }
.explorer__xp { display: flex; align-items: center; gap: 0.75rem; justify-self: end; }
.explorer__lvl { font-family: var(--pixel); font-size: 0.62rem; color: #7ed99a; text-shadow: 0 0 10px rgb(126 217 154 / 0.5); min-width: 4.5em; text-align: right; }
.explorer__bar { display: flex; gap: 4px; padding: 3px; margin: 0; list-style: none; border: 2px solid rgb(255 255 255 / 0.25); border-radius: 4px; }
.explorer__bar li { width: clamp(22px, 4vw, 40px); height: 12px; background: rgb(255 255 255 / 0.07); border-radius: 1px; transition: background-color 0.3s, box-shadow 0.3s; }
.explorer__bar li.is-done { background: #7ed99a; box-shadow: 0 0 10px rgb(126 217 154 / 0.6); }
.explorer__close { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid rgb(255 255 255 / 0.2); border-radius: 10px; color: var(--text); }
.explorer__close:hover { border-color: var(--brand); color: var(--brand); }

/* Steps */
.explorer__step { display: grid; gap: 1.1rem; }
.explorer__step[hidden] { display: none; }
.explorer__step.is-entering { animation: ex-step 0.45s steps(6, end) both; }
@keyframes ex-step { from { opacity: 0; transform: translateX(24px); } }
.explorer__quest { font-family: var(--pixel); font-size: 0.6rem; color: var(--text-3); text-transform: uppercase; }
.explorer__q { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem); letter-spacing: -0.035em; outline: none; }
.explorer__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0.7rem; margin-top: 0.3rem; }
.explorer__opt {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.9rem; min-height: 78px; padding: 0.9rem 2.6rem 0.9rem 0.9rem; text-align: left;
  background: #161618; color: var(--text); border: 2px solid #2c2c30; border-radius: 12px;
  box-shadow: 0 4px 0 #0a0a0b; font-weight: 700; line-height: 1.3;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.2s, background-color 0.2s;
}
.explorer__opt:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 0 #0a0a0b, 0 0 0 4px rgb(245 197 24 / 0.12); }
.explorer__opt:active { transform: translateY(3px); box-shadow: 0 1px 0 #0a0a0b; }
.explorer__opt:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.explorer__opt[aria-pressed="true"] { border-color: var(--brand); background: #1f1c10; }
.explorer__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: rgb(245 197 24 / 0.12); color: var(--brand); border: 2px solid rgb(245 197 24 / 0.35); }
.explorer__icon .icon { width: 24px; height: 24px; }
.explorer__key { position: absolute; top: 50%; right: 0.8rem; transform: translateY(-50%); font-family: var(--pixel); font-size: 0.6rem; min-width: 1.9em; height: 1.9em; display: grid; place-items: center; color: var(--text-2); border: 2px solid rgb(255 255 255 / 0.18); border-bottom-width: 4px; border-radius: 6px; background: #0f0f10; }
.explorer__plus { position: absolute; right: 1rem; top: 0.2rem; font-family: var(--pixel); font-size: 0.65rem; color: #7ed99a; opacity: 0; pointer-events: none; text-shadow: 0 0 8px rgb(126 217 154 / 0.7); }
.explorer__opt.is-picked .explorer__plus { animation: ex-xp 0.6s steps(8, end) forwards; }
@keyframes ex-xp { 0% { opacity: 1; transform: translateY(6px); } 100% { opacity: 0; transform: translateY(-26px); } }
.explorer__nav { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.4rem; }
.explorer__nav [hidden] { display: none; }
.explorer__nav [data-ex-skip] { margin-left: auto; }
.explorer__link { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.4rem; font-family: var(--pixel); font-size: 0.6rem; text-transform: uppercase; color: var(--text-2); }
.explorer__link .icon { width: 14px; height: 14px; }
.explorer__link:hover { color: var(--brand); }

/* Result: class unlocked */
.explorer__unlock { font-family: var(--pixel); font-size: clamp(0.9rem, 0.7rem + 1vw, 1.35rem); text-transform: uppercase; text-align: center; color: var(--brand); text-shadow: 0 0 18px rgb(245 197 24 / 0.6), 3px 3px 0 #3a2e05; }
.explorer__result.is-entering .explorer__unlock { animation: ex-flash 0.9s steps(5, end); }
@keyframes ex-flash { 0%, 40%, 80% { opacity: 0; } 20%, 60%, 100% { opacity: 1; } }
.explorer__result-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 1rem + 2vw, 2.5rem); align-items: start; }
.explorer__card { position: relative; display: grid; overflow: hidden; border-radius: 16px; border: 3px solid var(--brand); background: #141416; color: var(--text); text-decoration: none; box-shadow: 0 0 0 4px rgb(245 197 24 / 0.15), 0 24px 60px -24px rgb(245 197 24 / 0.35); transform: rotate(-1.5deg); outline: none; }
.explorer__card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.explorer__card-media { aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 3px solid var(--brand); }
.explorer__card-media picture, .explorer__card-media img { width: 100%; height: 100%; object-fit: cover; }
.explorer__card-body { display: grid; gap: 0.35rem; padding: 0.9rem 1rem 1.1rem; }
.explorer__card-kicker { font-family: var(--pixel); font-size: 0.55rem; color: #7ed99a; text-transform: uppercase; }
.explorer__card-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.05; letter-spacing: -0.03em; }
.explorer__card-line { color: var(--text-2); font-size: 0.92rem; }
.explorer__card-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.22) 45%, rgb(245 197 24 / 0.18) 52%, transparent 65%); transform: translateX(-120%); }
.explorer__result.is-entering .explorer__card-shine { animation: ex-shine 1.6s 0.5s var(--ease-in-out) both; }
@keyframes ex-shine { to { transform: translateX(120%); } }
.explorer__side { display: grid; gap: 1rem; align-content: start; }
.explorer__build { font-family: var(--pixel); font-size: 0.68rem; text-transform: uppercase; color: var(--text-2); }
.explorer__why { display: grid; gap: 0.55rem; padding: 0; }
.explorer__why li { display: grid; gap: 0.15rem; padding: 0.7rem 0.9rem; background: #161618; border: 2px solid #2c2c30; border-left: 4px solid #7ed99a; border-radius: 10px; }
.explorer__why li .muted { font-size: 0.78rem; }
.explorer__also { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.95rem; color: var(--text-2); text-decoration: none; }
.explorer__also strong { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 0.2em; }
.explorer__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.explorer__list { display: grid; padding: 0; }
.explorer__list a { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; border-bottom: 2px dashed rgb(255 255 255 / 0.12); font-weight: 700; font-size: var(--step-1); text-decoration: none; color: var(--text); }
.explorer__list a:hover { color: var(--brand); }
.explorer__list a .icon { color: var(--brand); }

@media (max-width: 700px) {
  .explorer { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; }
  .explorer__screen { max-height: 100dvh; min-height: 100dvh; border-radius: 0; border-width: 0; box-shadow: none; }
  .explorer__hud { grid-template-columns: 1fr auto; }
  .explorer__xp { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .explorer__result-grid { grid-template-columns: minmax(0, 1fr); }
  .explorer__card { grid-template-columns: 120px 1fr; transform: none; }
  .explorer__card-media { aspect-ratio: auto; border-bottom: 0; border-right: 3px solid var(--brand); }
  .explorer__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .explorer[open], .explorer__step.is-entering, .explorer__opt.is-picked .explorer__plus,
  .explorer__result.is-entering .explorer__unlock, .explorer__result.is-entering .explorer__card-shine { animation: none; }
}

/* ---------- Light theme composition (homepage) ---------- */
:root[data-theme-effective="light"] .hero::before {
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / 0.94) 0%, rgb(var(--bg-rgb) / 0.82) 30%, rgb(var(--bg-rgb) / 0.15) 58%, transparent 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 26%);
}
:root[data-theme-effective="light"] .hero__sub { color: var(--text-2); }
:root[data-theme-effective="light"] .hero__frame { --c: rgb(20 20 19 / 0.35); }
:root[data-theme-effective="light"] .hero__tc { color: var(--text-2); }
:root[data-theme-effective="light"] .crt__text { text-shadow: -0.025em 0 0 rgb(220 40 40 / 0.22), 0.025em 0 0 rgb(0 150 210 / 0.2); }
:root[data-theme-effective="light"] .crt__text::after { background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.4) 0 1px, transparent 1px 5px); mix-blend-mode: normal; opacity: 0.35; }
/* "creative" becomes a highlighter mark on paper. */
:root[data-theme-effective="light"] .crt__accent { color: var(--text); background: linear-gradient(transparent 58%, var(--brand) 58%, var(--brand) 92%, transparent 92%); padding-inline: 0.04em; }
:root[data-theme-effective="light"] .reel-card { background: var(--ink-2); border-color: var(--line); box-shadow: 0 20px 50px -38px rgb(40 36 20 / 0.5); }
:root[data-theme-effective="light"] .reel-card__media::after { display: none; }
:root[data-theme-effective="light"] .reel-card__body { margin-top: 0; padding-top: 1.1rem; }
:root[data-theme-effective="light"] .press { box-shadow: 0 30px 70px -40px rgb(40 36 20 / 0.55); }
@media (max-width: 1023px) {
  :root[data-theme-effective="light"] .hero::before { background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.55) 0%, rgb(var(--bg-rgb) / 0.88) 45%, var(--ink) 100%); }
}

/* ---------- Hero sky: night (dark theme) becomes day (light theme) ---------- */
.hero__media .sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky { --t: 2.6s; --ease: cubic-bezier(0.65, 0, 0.35, 1); }
.sky__day, .sky__dawn { opacity: 0; transition: opacity var(--t) var(--ease); }
.sky__night { transition: opacity var(--t) var(--ease); }
.sky__wheel { transform-box: view-box; transform-origin: 820px 900px; transition: transform var(--t) var(--ease); }
.sky__stars circle { fill: #fff; }
.sky__stars { transition: opacity 1.2s ease; }
.sky__shoot { stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 40 400; stroke-dashoffset: 440; opacity: 0.8; }
.sky__cloud ellipse { fill: #1d2742; transition: fill var(--t) var(--ease); }
.sky__cloud { transform: translate(-200px, var(--y)); }
.sky__birds { opacity: 0; transition: opacity 1.5s ease; fill: none; stroke: #2b3448; stroke-width: 2.4; stroke-linecap: round; transform: translate(-100px, 160px); }
.sky__balloon { transform: translate(1010px, 175px) scale(.8); }
.sky__burner { opacity: 0.9; }
.sky__hills { fill: #0e1529; transition: fill var(--t) var(--ease); }
.sky__city { fill: #080c1a; transition: fill var(--t) var(--ease); }
.sky__clap { fill: #f5c518; }
.sky__windows rect { fill: #ffcf4a; transition: opacity 0.6s ease; transition-delay: calc(var(--d) + 0.6s); }

/* Day */
:root[data-theme-effective="light"] .sky__night { opacity: 0; }
:root[data-theme-effective="light"] .sky__day { opacity: 1; }
:root[data-theme-effective="light"] .sky__wheel { transform: rotate(180deg); }
:root[data-theme-effective="light"] .sky__stars, :root[data-theme-effective="light"] .sky__shoot { opacity: 0; }
:root[data-theme-effective="light"] .sky__cloud ellipse { fill: #ffffff; }
:root[data-theme-effective="light"] .sky__birds { opacity: 1; }
:root[data-theme-effective="light"] .sky__burner { opacity: 0; }
:root[data-theme-effective="light"] .sky__hills { fill: #9cc7a4; }
:root[data-theme-effective="light"] .sky__city { fill: #6f8aa6; }
:root[data-theme-effective="light"] .sky__windows rect { opacity: 0; transition-delay: calc(var(--d) * 0.6); }
/* The dawn glow flashes through only while switching (theme.js adds .is-theme-switching briefly). */
:root.is-theme-switching .sky__dawn { opacity: 0.85; transition-duration: calc(var(--t) / 2); }

@media (prefers-reduced-motion: no-preference) {
  .sky__stars circle { animation: sky-twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
  .sky__shoot { animation: sky-shoot 9s ease-out 3s infinite; }
  .sky__cloud { animation: sky-drift var(--dur) linear infinite; animation-delay: var(--d); }
  .sky__birds { animation: sky-birds 38s linear infinite; }
  .sky__balloon { animation: sky-balloon 14s ease-in-out infinite alternate; }
  .sky__burner { animation: sky-twinkle 1.4s ease-in-out infinite; }
}
@keyframes sky-twinkle { 50% { opacity: 0.25; } }
@keyframes sky-shoot { 0%, 6% { stroke-dashoffset: 440; opacity: 0.9; } 12%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sky-drift { from { transform: translate(-260px, var(--y)); } to { transform: translate(1860px, var(--y)); } }
@keyframes sky-birds { from { transform: translate(-100px, 170px); } to { transform: translate(1700px, 110px); } }
@keyframes sky-balloon { from { transform: translate(1010px, 185px) scale(.8) rotate(-2deg); } to { transform: translate(1060px, 150px) scale(.8) rotate(2deg); } }
/* Phones see a narrow centre crop: keep the moon/sun clear of the headline. */
@media (max-width: 700px) { .sky__orbit { transform: translate(130px, -90px); } }
