/* Only the time-travel overlay: the original museum and classroom stay intact. */
#warp { background: #171510; }
#warp .journey-scenes, #warp .journey-scene, #warp .journey-shade { position: absolute; inset: 0; overflow: hidden; }
#warp .journey-scene { opacity: 0; transform: scale(1); transition: opacity 1.4s ease, transform 1.8s ease; }
#warp .journey-scene.is-current { opacity: 1; }
#warp .journey-scene.is-leaving { transform: scale(1.14); }
#warp .journey-scene img { width: 100%; height: 100%; object-fit: cover; object-position: var(--scene-position); transform: scale(1.015); }
#warp .journey-scene.is-current img { animation: journey-push 14s linear both; }
#warp .journey-scene.is-current[data-camera="glide"] img { animation-name: journey-glide; }
#warp .journey-scene.is-current[data-camera="drift"] img { animation-name: journey-drift; }
#warp .journey-shade { pointer-events: none; background: linear-gradient(180deg, rgba(13, 18, 17, .70), transparent 29%, transparent 62%, rgba(16, 17, 16, .91)), linear-gradient(90deg, rgba(19, 17, 14, .2), transparent 50%); }
#warp #warp-canvas { z-index: 2; opacity: .06; pointer-events: none; transition: opacity .8s ease; mix-blend-mode: screen; }
#warp.is-tunneling #warp-canvas { opacity: .95; }
#warp.is-tunneling .journey-scenes { filter: brightness(.48); }
#warp .journey-scenes { transition: filter .8s ease; }
#warp .warp-center { z-index: 3; inset: 34px auto auto 48px; align-items: flex-start; text-align: left; gap: 3px; }
#warp .warp-title { font-size: 17px; letter-spacing: .18em; color: #ffe6ad; }
#warp .warp-year { font-size: clamp(32px, calc(4.5 * var(--vw)), 64px); line-height: 1.2; text-shadow: 0 2px 18px #3e3017; letter-spacing: .025em; }
#warp .warp-sub { font-family: var(--font-title); font-size: clamp(19px, calc(2.1 * var(--vw)), 28px); letter-spacing: .08em; text-shadow: 0 2px 12px #241b12; }
#warp .journey-actions { z-index: 5; position: absolute; top: 32px; right: 36px; display: flex; gap: 10px; }
#warp .journey-actions :is(button, a) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 42px; padding: 8px 17px; border: 1px solid #ffedb65c; border-radius: 24px; background: #171d1bd9; color: #fff2d3; font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
#warp .journey-actions :is(button, a):is(:hover, :focus-visible) { background: #f0b93c; color: #151515; outline: 3px solid #fff7de; outline-offset: 3px; }
#warp .journey-caption { position: absolute; z-index: 4; left: 48px; right: 225px; bottom: 124px; display: flex; align-items: center; gap: 18px; pointer-events: none; }
#warp .journey-avatar { width: 75px; height: 98px; flex: 0 0 auto; filter: drop-shadow(0 3px 12px #1a140f99); }
#warp .journey-avatar svg { width: 100%; height: 100%; }
#warp .journey-caption-copy { max-width: 750px; }
#warp .journey-caption-copy b { font-size: 12px; letter-spacing: .14em; color: #f2c874; }
#warp .journey-caption p { margin: 7px 0 0; font-size: clamp(17px, calc(1.7 * var(--vw)), 23px); line-height: 1.65; color: #fff8e8; text-shadow: 0 2px 8px #17110d; }
#warp #warp-proof { display: block; margin-top: 8px; font-size: 11px; line-height: 1.6; color: #e3d7be; text-shadow: 0 2px 5px #17110d; }
#warp .journey-track { position: absolute; z-index: 4; bottom: 25px; left: max(48px, calc((100% - 980px)/2)); right: max(48px, calc((100% - 980px)/2)); color: #fff1d6; }
#warp .journey-track ol { list-style: none; padding: 0; margin: 0; display: flex; justify-content: space-between; position: relative; }
#warp .journey-track ol::before, #warp .journey-track ol::after { content: ''; position: absolute; top: 7px; left: 7%; right: 7%; height: 2px; background: #ffefcf3d; }
#warp .journey-track ol::after { right: auto; width: calc(var(--journey-progress, 0%) * .86); background: #f0b93c; transition: width 1.6s ease; }
#warp .journey-track li { display: grid; justify-items: center; gap: 3px; width: 14%; z-index: 1; opacity: .5; transition: opacity .8s; }
#warp .journey-dot { width: 16px; height: 16px; border: 2px solid #baae93; border-radius: 50%; background: #292924; margin-bottom: 5px; transition: background .6s, box-shadow .6s; }
#warp .journey-track b { font-size: 15px; font-weight: 500; }
#warp .journey-track small { font-size: 10px; font-variant-numeric: tabular-nums; }
#warp .journey-track .is-past, #warp .journey-track .is-current { opacity: 1; }
#warp .is-past .journey-dot, #warp .is-current .journey-dot { border-color: #f0b93c; background: #f0b93c; }
#warp .is-current .journey-dot { box-shadow: 0 0 0 5px #f0b93c30, 0 0 22px #f0b93c; }
#warp .journey-note { position: absolute; right: 35px; bottom: 101px; z-index: 4; color: #e6d4b4b8; font-size: 10px; letter-spacing: .12em; }
#warp .warp-train { z-index: 4; left: auto; right: 4px; bottom: 137px; animation: none; }
#warp.show .warp-train { animation: train-rush 2s ease-in-out both; }
#warp.has-scenes .warp-train { animation: journey-train 1.1s ease-in-out infinite alternate; }
#warp.is-arriving .warp-train { animation: train-rush 1.1s ease-in both; }
#warp .warp-train svg { width: 118px; height: auto; }
#warp .journey-air { position: absolute; inset: 0; pointer-events: none; }
#warp .journey-air i { position: absolute; top: var(--smoke-y); left: var(--smoke-x); width: 5%; height: 12%; opacity: 0; border-radius: 50%; background: radial-gradient(ellipse, #fff4db50, transparent 65%); filter: blur(7px); }
#warp .is-current .journey-air i { animation: journey-smoke 6s ease-out infinite; }
#warp .journey-air i:nth-child(2) { animation-delay: 2s; }
#warp .journey-air i:nth-child(3) { animation-delay: 4s; }
#warp .journey-air span { position: absolute; left: 18%; top: 68%; width: 4px; height: 4px; border-radius: 50%; background: #ffe3a2; opacity: 0; box-shadow: 0 0 8px #f8cb62; }
#warp .is-current .journey-air span { animation: journey-mote 7s linear infinite; }
#warp .journey-air span:nth-of-type(2) { left: 41%; top: 75%; animation-delay: -2s; }
#warp .journey-air span:nth-of-type(3) { left: 77%; top: 55%; animation-delay: -4s; }
#warp .journey-air span:nth-of-type(4) { left: 88%; top: 80%; animation-delay: -6s; }
#warp .journey-ripple { position: absolute; left: 65%; top: 37%; width: 9%; height: 1.4%; border-top: 2px solid #effaff85; border-radius: 50%; opacity: 0; }
#warp .is-current .journey-ripple { animation: journey-ripple 4.5s ease-out infinite; }
#warp .journey-ripple:nth-of-type(2) { left: 53%; top: 33%; animation-delay: -1.4s; }
#warp .journey-ripple:nth-of-type(3) { left: 84%; top: 40%; animation-delay: -2.8s; }
#warp [data-motion="river"] .journey-air span { display: none; }
@keyframes journey-push { from { transform: scale(1.015) translateX(0); } to { transform: scale(1.1) translateX(-.6%); } }
@keyframes journey-glide { from { transform: scale(1.07) translateX(-1.5%); } to { transform: scale(1.07) translateX(1.5%); } }
@keyframes journey-drift { from { transform: scale(1.04) translateY(.6%); } to { transform: scale(1.09) translateY(-.6%); } }
@keyframes journey-ripple { 0% { opacity: 0; transform: scaleX(.55); } 35% { opacity: .7; } 100% { opacity: 0; transform: scaleX(1.55) translateY(12px); } }
@keyframes journey-train { from { transform: translate(-50%, 3px) rotate(-2deg); } to { transform: translate(-50%, -3px) rotate(1deg); } }
@keyframes journey-smoke { 0% { opacity: 0; transform: translate(-50%, 0) scale(.5); } 30% { opacity: .45; } 100% { opacity: 0; transform: translate(-85%, -130px) scale(2); } }
@keyframes journey-mote { 0% { opacity: 0; transform: translate(0, 15px); } 30% { opacity: .75; } 100% { opacity: 0; transform: translate(45px, -100px); } }
@media (max-width: 700px) {
  #warp .warp-center { top: 78px; left: 22px; gap: 5px; }
  #warp .warp-title { font-size: 12px; }
  #warp .warp-year { font-size: 39px; }
  #warp .warp-sub { font-size: 21px; }
  #warp .journey-actions { top: max(16px, env(safe-area-inset-top)); right: 18px; gap: 8px; }
  #warp .journey-actions :is(button, a) { min-height: 40px; font-size: 12px; padding: 7px 11px; }
  #warp .journey-caption { left: 17px; right: 20px; bottom: 132px; gap: 10px; align-items: flex-end; }
  #warp .journey-avatar { width: 48px; height: 66px; }
  #warp .journey-caption-copy b { font-size: 10px; }
  #warp .journey-caption p { font-size: 17px; line-height: 1.6; margin-top: 6px; }
  #warp #warp-proof { font-size: 10px; margin-top: 5px; }
  #warp .journey-track { left: 18px; right: 18px; bottom: max(28px, env(safe-area-inset-bottom)); }
  #warp .journey-track li { width: 18%; }
  #warp .journey-track ol::before, #warp .journey-track ol::after { left: 9%; right: 9%; }
  #warp .journey-track ol::after { right: auto; width: calc(var(--journey-progress, 0%) * .82); }
  #warp .journey-track b { font-size: 14px; }
  #warp .journey-track small { font-size: 9px; white-space: nowrap; }
  #warp .journey-note { right: 20px; bottom: 105px; font-size: 9px; }
  #warp .warp-train { right: -22px; bottom: 248px; }
  #warp .warp-train svg { width: 75px; }
  #warp .journey-scene img { position: absolute; top: 26%; height: 36%; object-fit: cover; object-position: var(--scene-position); }
  #warp .journey-scene { background: #26312c; }
  #warp .journey-scene::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 48%, #c2a67836, #121c18 78%); }
  #warp .journey-shade { background: linear-gradient(180deg, #121c1844, transparent 30%, transparent 58%, #131916 83%); }
  #warp .journey-air { display: none; }
}
@media (max-height: 600px) and (min-width: 701px) {
  body:not([data-display-mode="desktop"]) #warp .warp-center { top: 20px; left: 30px; }
  body:not([data-display-mode="desktop"]) #warp .warp-year { font-size: 34px; }
  body:not([data-display-mode="desktop"]) #warp .warp-title { font-size: 12px; }
  body:not([data-display-mode="desktop"]) #warp .warp-sub { font-size: 19px; }
  body:not([data-display-mode="desktop"]) #warp .journey-caption { left: 25px; bottom: 92px; }
  body:not([data-display-mode="desktop"]) #warp .journey-avatar { width: 44px; height: 58px; }
  body:not([data-display-mode="desktop"]) #warp .journey-caption p { font-size: 16px; }
  body:not([data-display-mode="desktop"]) #warp .journey-track { bottom: 12px; }
  body:not([data-display-mode="desktop"]) #warp .journey-note { bottom: 82px; }
  body:not([data-display-mode="desktop"]) #warp .warp-train { bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  #warp *, #warp *::before, #warp *::after { animation: none !important; transition-duration: .2s !important; }
  #warp #warp-canvas { opacity: .08 !important; }
  #warp .journey-scene.is-leaving { transform: none; }
  #warp .journey-air { display: none; }
}
