/* Scroll scenes (see inc/scenes.php). Without the scene script everything here falls back to a normal, static layout. */

/* ============ The Neutrino's journey (Neutrino Hero → Scroll intro) ============ */
.nt-journey, .nt-jcap, .nt-jhint { display: none; }
.hero.nt-j-on { min-height: calc(100vh - var(--nt-hh, 0px)); min-height: calc(100svh - var(--nt-hh, 0px)); display: flex; align-items: center; }
.hero.nt-j-on > .hero-inner { width: 100%; }
.nt-j-on .nt-journey { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nt-j-on .nt-jcap { display: block; position: absolute; left: 0; right: 0; top: 16%; z-index: 2; text-align: center; pointer-events: none; opacity: 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.nt-jcap p { margin: 0 auto; max-width: 30ch; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 4.6vw, 2.6rem); line-height: 1.15; color: #eaf2ff; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.nt-jcap .nt-jnum { font-family: var(--f-mono); font-weight: 600; font-size: clamp(2.4rem, 9vw, 5rem); line-height: 1; color: #f5c45a; margin-bottom: 10px; text-shadow: 0 0 30px rgba(245, 196, 90, .35); }
.nt-jcap .nt-jnum sup { font-size: .5em; }
.nt-jcap p.nt-jsmall { font-family: var(--f-body); font-weight: 400; font-size: clamp(1rem, 2.6vw, 1.25rem); color: #b9c9e4; max-width: 34ch; }
.nt-j-on .nt-jhint {
  display: grid; justify-items: center; gap: 6px; position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 2; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb4d8; pointer-events: none;
}
.nt-jhint::after { content: ""; width: 1px; height: 28px; background: linear-gradient(#9fb4d8, transparent); animation: nt-drip 1.6s ease-in-out infinite; }
@keyframes nt-drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) {
  .hero.nt-j-on { align-items: flex-end; }
}

/* ============ Years of NASC (Neutrino Years widget) ============ */
/* Static layout: a row of album cards you can swipe. */
.nt-years { position: relative; }
.ny-stage { display: grid; gap: 16px; }
.ny-info .ny-yr, .ny-info .ny-alb, .ny-tl { display: none; }
.ny-deck { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.ny-card {
  position: relative; flex: 0 0 min(80%, 420px); aspect-ratio: 3 / 2; max-width: 100%; scroll-snap-align: start; overflow: hidden; border-radius: 16px;
  background: #e9eff7; border: 1px solid var(--line); text-decoration: none; color: #fff; display: block;
  box-shadow: 0 2px 4px rgba(16, 42, 84, .06), 0 22px 44px -22px rgba(16, 42, 84, .45);
}
.ny-card img, .ny-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ny-ph { background: radial-gradient(120% 90% at 20% 10%, #3a8fd8, #0e1f3a); }
.ny-fig, .ny-cnt { position: absolute; top: 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: #fff; padding: 5px 9px; border-radius: 6px; }
.ny-fig { left: 12px; text-transform: uppercase; background: rgba(14, 31, 58, .62); backdrop-filter: blur(6px); }
.ny-cnt { right: 12px; background: rgba(22, 115, 196, .9); }
.ny-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 14px; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; background: linear-gradient(to top, rgba(14, 31, 58, .88), rgba(14, 31, 58, 0)); }
.ny-cap small { display: block; margin-top: 4px; font-family: var(--f-mono); font-weight: 400; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

/* Scroll flip-book (added by assets/js/scenes.js). */
.nt-years.ny-on .ny-stage {
  position: relative; height: calc(100vh - var(--nt-hh, 0px)); height: calc(100svh - var(--nt-hh, 0px));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: center; align-content: center; padding-block: 24px 84px;
}
.nt-years.ny-on .ny-info { display: grid; gap: 10px; min-width: 0; }
.nt-years.ny-on .ny-yr { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(4.2rem, 13vw, 9.5rem); line-height: .9; letter-spacing: -.04em; color: var(--chalk); font-variant-numeric: tabular-nums; }
.ny-yr .d { display: inline-block; overflow: hidden; height: .92em; vertical-align: top; }
.ny-yr .d i { display: block; font-style: normal; }
.nt-years.ny-on .ny-alb { display: grid; gap: 4px; min-height: 5.2em; }
.ny-alb h3 { font-size: clamp(1.25rem, 3.4vw, 1.8rem); }
.ny-alb .ny-m { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-dim); margin: 0; }
.ny-alb .ny-m b { color: var(--ice); font-weight: 600; }
.nt-years.ny-on .ny-deck { display: block; position: relative; overflow: visible; aspect-ratio: 3 / 2; width: 100%; padding: 0; }
.nt-years.ny-on .ny-card { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.nt-years.ny-on .ny-card.is-top { pointer-events: auto; }
.nt-years.ny-on .ny-tl { display: block; position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.ny-track { position: relative; height: 2px; background: var(--line); border-radius: 2px; }
.ny-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--ice), var(--yolk)); border-radius: 2px; }
.ny-ticks { position: relative; height: 24px; margin-top: 8px; }
.ny-ticks span { position: absolute; transform: translateX(-50%); font-family: var(--f-mono); font-size: .66rem; color: var(--chalk-dim); white-space: nowrap; }
.ny-ticks span::before { content: ""; position: absolute; left: 50%; top: -14px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff; border: 1.5px solid var(--chalk-dim); }
.ny-ticks span.on { color: var(--chalk); font-weight: 600; }
.ny-ticks span.on::before { background: var(--yolk); border-color: var(--yolk); }
@media (max-width: 700px) {
  .nt-years.ny-on .ny-stage { grid-template-columns: 1fr; gap: 16px; padding-block: 16px 76px; }
  .nt-years.ny-on .ny-yr { font-size: clamp(3.4rem, 20vw, 5.6rem); }
  .nt-years.ny-on .ny-alb { min-height: 4.4em; }
  .ny-ticks span.minor { display: none; }
}

@media (prefers-reduced-motion: reduce) { .nt-jhint::after { animation: none; } }
