:root {
  --porcelain: #f4f6f8;
  --paper: #fbfcfd;
  --cool: #dfe4e9;
  --steel: #a7b0bc;
  --ink: #17234d;
  --ink-soft: #536079;
  --sakura: #f5a3b7;
  --sakura-deep: #d86f8d;
  --night: #111a3b;
  --gap: clamp(5rem, 9vw, 9rem);
  --shadow: 0 24px 60px rgba(35, 49, 82, .13), 0 5px 18px rgba(35, 49, 82, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 7%, rgba(255,255,255,.95) 0 10%, transparent 34%),
    linear-gradient(105deg, #edf1f4 0%, #f8fafb 45%, #e8edf1 100%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; }
::selection { background: var(--sakura); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--sakura-deep); outline-offset: 4px; }

.page-seam {
  position: fixed;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 12px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8) 45% 55%, transparent);
  box-shadow: 0 0 18px rgba(245,163,183,.44), 0 0 48px rgba(255,255,255,.9);
}
.page-seam span {
  position: absolute;
  inset: 0 4px;
  background: linear-gradient(to bottom, transparent, var(--sakura) 11%, #fff 32%, var(--sakura) 61%, transparent 97%);
  opacity: .58;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 40px), 1320px);
  min-height: 64px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 8px 11px 8px 20px;
  background: rgba(252,253,254,.82);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 14px 40px rgba(34, 47, 76, .14), 0 2px 9px rgba(34,47,76,.08);
  backdrop-filter: blur(18px) saturate(1.1);
  border-radius: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  width: max-content;
  text-decoration: none;
  letter-spacing: -.04em;
  font-weight: 900;
  line-height: .9;
}
.brand svg { width: 35px; fill: none; stroke: var(--sakura-deep); stroke-width: 2; }
.brand small { display: block; margin-top: .35rem; font: 500 .53rem/1 'IBM Plex Mono', monospace; letter-spacing: .24em; color: var(--ink-soft); }
.primary-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.8rem); }
.primary-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #39455f;
  font-size: .83rem;
  font-weight: 500;
  text-decoration: none;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sakura-deep);
  transform: translate(-50%, 7px) scale(0);
  transition: transform .28s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: translate(-50%, 0) scale(1); }
.header-time {
  justify-self: end;
  min-width: 136px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem .85rem .35rem 1rem;
  color: white;
  background: var(--ink);
  border-radius: 11px;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  transition: transform .25s ease, box-shadow .25s ease;
}
.header-time:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(23,35,77,.24); }
.header-time span { font-size: .49rem; letter-spacing: .08em; }
.header-time strong { color: var(--sakura); font-size: .82rem; }
.nav-toggle { display: none; }

[data-reveal] { opacity: 0; transform: translateY(14px); }
.is-loaded [data-reveal] { animation: reveal .8s cubic-bezier(.22,.8,.2,1) forwards; animation-delay: calc(var(--d, 0) * 110ms); }
[data-reveal="1"] { --d: 1; }
[data-reveal="2"] { --d: 2; }
[data-reveal="3"] { --d: 3; }
[data-reveal="4"] { --d: 4; }
[data-reveal="5"] { --d: 5; }
@keyframes reveal { to { opacity: 1; transform: none; } }

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(520px, 1.55fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 4rem);
  padding: clamp(7rem, 12vh, 9rem) max(5vw, calc((100vw - 1320px)/2)) 4rem;
}
.hero-copy { position: relative; z-index: 3; padding-left: clamp(1rem, 3vw, 2.5rem); }
.route-code, .section-mark, .journey-code {
  margin: 0 0 1.5rem;
  color: #59647a;
  font: 500 .65rem/1 'IBM Plex Mono', monospace;
  letter-spacing: .18em;
}
.hero h1 {
  max-width: 7.7em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.3rem, 7.4vw, 8.2rem);
  font-weight: 300;
  letter-spacing: -.075em;
  line-height: .84;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-intro {
  max-width: 31rem;
  margin: 2rem 0 2rem;
  color: #49566e;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
}
.hero-route-link {
  display: inline-grid;
  gap: .48rem;
  min-height: 44px;
  align-content: center;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.hero-route-link svg { width: 160px; fill: none; stroke: var(--sakura-deep); stroke-width: 1.5; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.hero-route-link:hover svg { transform: translateX(12px); }
.hero-machine {
  position: relative;
  min-height: min(67vh, 650px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -4vw;
  overflow: hidden;
}
.hero-machine::before {
  content: "";
  position: absolute;
  inset: 7% 0 8% 8%;
  background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(219,225,232,.58));
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 17px 0 0 17px;
  box-shadow: var(--shadow);
}
.hero-machine::after {
  content: "";
  position: absolute;
  inset: 7% 0 8% 8%;
  border-radius: 17px 0 0 17px;
  background-image: linear-gradient(rgba(23,35,77,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23,35,77,.045) 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: linear-gradient(90deg, transparent, black 45%);
}
.hero-sun {
  position: absolute;
  z-index: 1;
  width: min(29vw, 390px);
  aspect-ratio: 1;
  right: 5%;
  top: 13%;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 42%, #ffdbe3 0 22%, var(--sakura) 65%, #e6859f 100%);
  box-shadow: 0 30px 80px rgba(245,163,183,.38);
}
.train-wrap { position: relative; z-index: 3; width: 112%; transform: translateX(2%); }
.train-profile { width: 100%; filter: drop-shadow(0 22px 19px rgba(34,43,68,.24)); animation: float-train 4.5s ease-in-out infinite; }
@keyframes float-train { 0%,100% { transform: translateY(-4px); } 50% { transform: translateY(-14px); } }
.train-profile .sakura-stripe { filter: drop-shadow(0 0 6px rgba(245,163,183,.72)); }
.air-gap { height: 35px; margin: -9% 14% 0 20%; display: flex; align-items: center; gap: .7rem; color: var(--sakura-deep); font: 600 .6rem/1 'IBM Plex Mono', monospace; letter-spacing: .08em; }
.air-gap i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--sakura), transparent); box-shadow: 0 0 10px var(--sakura); }
.guideway { position: relative; height: 55px; margin-left: 7%; background: linear-gradient(#bbc3cc, #747f91); clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%); box-shadow: 0 18px 30px rgba(31,41,67,.2); }
.guideway::before { content: ""; position: absolute; inset: 9px 0 auto 6%; height: 12px; background: var(--night); }
.guideway span { position: absolute; top: 13px; left: 21%; right: 6%; height: 3px; background: var(--sakura); box-shadow: 0 0 12px var(--sakura); }
.hero-specs {
  position: absolute;
  z-index: 4;
  right: 3.3vw;
  bottom: 12%;
  display: grid;
  grid-template-columns: auto auto;
  gap: .1rem 1rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 22px rgba(23,35,77,.12);
  backdrop-filter: blur(10px);
  font-family: 'IBM Plex Mono', monospace;
}
.hero-specs span { color: #647086; font-size: .48rem; letter-spacing: .1em; }
.hero-specs strong { font-size: .68rem; }
.hero-index { position: absolute; left: max(5vw, calc((100vw - 1320px)/2)); right: max(5vw, calc((100vw - 1320px)/2)); bottom: 1.5rem; display: flex; justify-content: space-between; color: #7b8494; font: 500 .56rem/1 'IBM Plex Mono', monospace; letter-spacing: .12em; }

.floating-section {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), 1320px);
  margin: var(--gap) auto;
  background: rgba(251,252,253,.94);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 17px;
  box-shadow: var(--shadow);
}
.departure { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 670px; overflow: hidden; }
.departure-lead { padding: clamp(3rem, 6vw, 6.5rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(145deg, #fbfcfd, #edf1f4); }
.departure h2, .field-lab h2, .dusk h2, .timetable h2, .arrival h2, .journey h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -.06em;
  line-height: .95;
}
.departure-lead > p:not(.section-mark), .field-copy > p, .journey-head > p:last-child {
  max-width: 33rem;
  margin: 2rem 0 2.6rem;
  color: #526079;
  line-height: 1.8;
}
.departure-trigger {
  width: min(100%, 260px);
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .55rem .5rem 1.3rem;
  border: 1px solid #bdc6cf;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: .83rem;
  font-weight: 700;
  transition: background .3s ease, color .3s ease, transform .2s ease;
}
.departure-trigger b { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); background: var(--sakura); border-radius: 9px; font: 600 .72rem/1 'IBM Plex Mono', monospace; }
.departure-trigger:hover { color: white; background: var(--ink); transform: translateY(-2px); }
.departure-trigger:active { transform: translateY(1px); }
.departure-trigger:disabled { cursor: progress; }
.departure-console { position: relative; display: grid; grid-template-columns: 240px 1fr; align-content: center; gap: 3rem; padding: 5rem clamp(2.5rem, 5vw, 5rem); color: white; background: var(--night); overflow: hidden; }
.departure-console::before { content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -18%; top: -23%; border: 1px solid rgba(245,163,183,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(245,163,183,.025), 0 0 0 140px rgba(245,163,183,.02); }
.countdown-ring { position: relative; width: 210px; aspect-ratio: 1; align-self: center; }
.countdown-ring svg { width: 100%; transform: rotate(-90deg); }
.countdown-ring circle { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1; }
.countdown-ring .ring-progress { stroke: var(--sakura); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: calc(377 - (377 * var(--progress))); filter: drop-shadow(0 0 5px var(--sakura)); }
.countdown-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.countdown-ring strong { font: 300 3.25rem/1 'IBM Plex Mono', monospace; letter-spacing: -.08em; }
.countdown-ring span { margin-top: .8rem; color: var(--sakura); font: 500 .55rem/1 'IBM Plex Mono', monospace; letter-spacing: .2em; }
.sequence { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.sequence li { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: center; gap: 1rem; min-height: 61px; border-bottom: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.43); transition: color .25s ease, transform .25s ease; }
.sequence li.active, .sequence li.done { color: white; }
.sequence li.active { transform: translateX(7px); }
.sequence li.active::before { content: ""; position: absolute; left: -15px; width: 4px; height: 4px; border-radius: 50%; background: var(--sakura); box-shadow: 0 0 8px var(--sakura); }
.sequence time, .sequence b { font: 500 .59rem/1 'IBM Plex Mono', monospace; }
.sequence b { color: var(--sakura); font-weight: 400; }
.sequence span { font-size: .78rem; }
.departure-track { position: absolute; left: 0; right: 0; bottom: 2.3rem; height: 20px; }
.departure-track > span { position: absolute; left: 5%; right: 4%; bottom: 0; height: 1px; background: rgba(255,255,255,.18); }
.mini-train { position: absolute; z-index: 2; left: calc(7% + (var(--progress, 0) * 74%)); bottom: 5px; width: 68px; height: 12px; border-radius: 100% 20% 10% 15%; background: var(--porcelain); transition: left .1s linear; }
.mini-train::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: -4px; height: 2px; background: var(--sakura); box-shadow: 0 0 6px var(--sakura); }

.journey {
  position: relative;
  z-index: 1;
  min-height: 300vh;
  padding: 8rem max(4vw, calc((100vw - 1320px)/2));
  color: white;
  background: var(--night);
  overflow: clip;
  isolation: isolate;
}
#speed-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .7; }
.journey::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 72% 12%, rgba(245,163,183,.16), transparent 28%), linear-gradient(90deg, rgba(17,26,59,.94) 0 22%, rgba(17,26,59,.7) 50%, rgba(17,26,59,.93)); }
.journey-head { width: min(650px, 88%); margin: 0 auto 7rem; text-align: center; }
.journey-code { color: var(--sakura); }
.journey-head p:last-child { margin-inline: auto; color: #c5cad7; }
.route-rail { position: absolute; top: 23rem; bottom: 11rem; left: calc(max(4vw, (100vw - 1320px)/2) + 16px); width: 1px; background: rgba(255,255,255,.2); }
.route-rail .route-progress { position: absolute; top: 0; left: 0; width: 2px; height: var(--route, 0%); background: var(--sakura); box-shadow: 0 0 10px var(--sakura); }
.route-rail i { position: absolute; left: -5px; width: 11px; height: 11px; border: 2px solid var(--sakura); border-radius: 50%; background: var(--night); }
.route-rail i:nth-of-type(1) { top: 2%; }.route-rail i:nth-of-type(2) { top: 35%; }.route-rail i:nth-of-type(3) { top: 67%; }.route-rail i:nth-of-type(4) { top: 98%; }
.stations { width: min(1100px, calc(100% - 3rem)); margin: auto; }
.station { min-height: 62vh; display: grid; grid-template-columns: 1.45fr .7fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.station:nth-child(even) { grid-template-columns: .7fr 1.45fr; }
.station:nth-child(even) .station-visual { order: 2; }
.station:nth-child(even) .station-card { order: 1; text-align: right; }
.station-visual { position: relative; height: clamp(300px, 40vw, 500px); overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 28px 70px rgba(0,0,0,.32), 0 0 0 10px rgba(255,255,255,.025); transform: perspective(900px) rotateY(var(--tilt, -3deg)) translateY(16px); filter: blur(var(--land-blur, 4px)) saturate(calc(1 - var(--speed, .5) * .25)); transition: filter .28s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.station:nth-child(even) .station-visual { --tilt: 3deg; }
.station.is-sharp .station-visual { --land-blur: 0px; transform: perspective(900px) rotateY(0) translateY(0); }
.station-visual::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 7%, rgba(255,255,255,.1) 7.2% 7.4%, transparent 7.6% 14%); opacity: var(--speed, .2); transform: scaleX(1.5); mix-blend-mode: screen; }
.station-card { position: relative; padding: 2rem 0; }
.station-card span { color: var(--sakura); font: 500 .61rem/1 'IBM Plex Mono', monospace; letter-spacing: .1em; }
.station-card h3 { margin: .8rem 0 1rem; font-size: clamp(2.4rem, 4.3vw, 4.7rem); font-weight: 300; letter-spacing: -.06em; line-height: 1; }
.station-card p { margin: 0; color: #c3c9d5; line-height: 1.75; }
.station-card strong { display: block; margin-top: 1.4rem; color: white; font: 300 clamp(1.3rem, 2vw, 2rem)/1 'IBM Plex Mono', monospace; }
.sumi { background: linear-gradient(#d2cbd7 0 45%, #7a87a1 46% 56%, #303b5c 57%); }
.awa { background: linear-gradient(#f3a5b7 0 42%, #b888ac 43% 54%, #344b77 55%); }
.kasumi { background: linear-gradient(#9daac0 0 38%, #71869a 39% 48%, #263957 49%); }
.tsukino { background: linear-gradient(#111936 0 60%, #202c51 61%); }
.ridge { position: absolute; left: -10%; right: -10%; bottom: 36%; height: 48%; background: #4d5a77; clip-path: polygon(0 100%, 0 62%, 12% 46%, 20% 68%, 35% 22%, 43% 54%, 55% 35%, 66% 72%, 78% 36%, 87% 59%, 100% 26%, 100% 100%); }
.ridge.r2 { bottom: 28%; height: 38%; background: #2a385b; opacity: .85; transform: translateX(7%); }
.city-lines, .water-lines, .field-lines, .night-city { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; }
.city-lines { background: repeating-linear-gradient(90deg, #d3d8df 0 7px, transparent 7px 12px), linear-gradient(#66718a, #252f51); clip-path: polygon(0 45%, 5% 45%, 5% 16%, 9% 16%, 9% 38%, 12% 38%, 12% 0, 15% 0, 15% 32%, 20% 32%, 20% 63%, 100% 63%, 100% 100%, 0 100%); }
.water-lines { background: repeating-linear-gradient(176deg, transparent 0 12px, rgba(255,203,215,.34) 13px 15px), linear-gradient(#5b7298, #233859); }
.field-lines { background: repeating-linear-gradient(166deg, #334e57 0 9px, #658078 10px 16px, #283d4a 17px 27px); }
.night-city { background: repeating-linear-gradient(90deg, #172347 0 15px, #27345c 16px 25px, #121d40 26px 36px); clip-path: polygon(0 28%, 5% 28%, 5% 4%, 9% 4%, 9% 40%, 14% 40%, 14% 17%, 19% 17%, 19% 52%, 25% 52%, 25% 10%, 31% 10%, 31% 34%, 38% 34%, 38% 0, 44% 0, 44% 42%, 50% 42%, 50% 19%, 58% 19%, 58% 49%, 64% 49%, 64% 6%, 72% 6%, 72% 38%, 79% 38%, 79% 22%, 86% 22%, 86% 44%, 93% 44%, 93% 12%, 100% 12%, 100% 100%, 0 100%); }
.night-city::after { content: ""; position: absolute; inset: 12% 0; background-image: radial-gradient(circle, #f5a3b7 0 1px, transparent 2px); background-size: 27px 17px; opacity: .7; }
.moon { position: absolute; right: 12%; top: 10%; width: 70px; aspect-ratio: 1; border-radius: 50%; background: #f6d8df; box-shadow: 0 0 35px rgba(245,163,183,.3); }

.field-lab { min-height: 780px; display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; }
.field-copy { position: relative; padding: clamp(4rem, 7vw, 7rem); display: flex; flex-direction: column; justify-content: center; }
.vertical-note { position: absolute; left: 1.4rem; top: 50%; color: #919aa9; font: 500 .52rem/1 'IBM Plex Mono', monospace; letter-spacing: .13em; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); }
.polarity-switch { min-height: 68px; display: flex; align-items: center; gap: 1rem; padding: .65rem 1.25rem .65rem .7rem; border: 0; border-radius: 13px; color: white; background: var(--ink); cursor: pointer; box-shadow: 0 12px 25px rgba(23,35,77,.22); transition: transform .25s ease; }
.polarity-switch:hover { transform: translateY(-3px); }
.polarity-switch:active { transform: scale(.98); }
.switch-track { position: relative; width: 63px; height: 45px; flex: none; border-radius: 9px; background: rgba(255,255,255,.13); }
.switch-track i { position: absolute; width: 29px; height: 29px; left: 8px; top: 8px; border-radius: 7px; background: var(--sakura); box-shadow: 0 0 11px rgba(245,163,183,.45); transition: transform .4s cubic-bezier(.22,.8,.2,1); }
.polarity-switch[aria-pressed="true"] .switch-track i { transform: translateX(18px); }
.switch-copy { text-align: left; line-height: 1.1; }
.switch-copy small { display: block; margin-bottom: .35rem; color: #aeb6c6; font: 500 .5rem/1 'IBM Plex Mono', monospace; letter-spacing: .12em; }
.switch-copy b { font-size: .86rem; }
.magnet-model { position: relative; min-height: 780px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(155deg, #e1e6eb, #c7cfd8); overflow: hidden; }
.magnet-model::before { content: ""; position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(rgba(23,35,77,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(23,35,77,.07) 1px, transparent 1px); background-size: 40px 40px; }
.model-labels { position: absolute; z-index: 4; inset: 1.8rem 2rem auto; display: flex; justify-content: space-between; color: #667188; font: 500 .54rem/1 'IBM Plex Mono', monospace; letter-spacing: .15em; }
.carriage-section { position: relative; z-index: 3; width: min(79%, 570px); height: 255px; transform: translateY(var(--lift, -22px)); transition: transform .7s cubic-bezier(.2,.85,.2,1); }
.section-cabin { position: absolute; inset: 0 0 56px; border: 3px solid var(--ink); border-radius: 110px 110px 35px 35px; background: linear-gradient(180deg, #fff, #e8edf1); box-shadow: 0 26px 35px rgba(23,35,77,.17); }
.section-cabin::after { content: ""; position: absolute; left: 12%; right: 12%; top: 55%; height: 2px; background: var(--sakura); box-shadow: 0 0 7px var(--sakura); }
.section-cabin span { position: absolute; top: 23%; width: 14%; height: 34%; border: 2px solid var(--ink); border-radius: 22px 22px 5px 5px; background: #29385d; }
.section-cabin span:nth-child(1){left:19%}.section-cabin span:nth-child(2){left:43%}.section-cabin span:nth-child(3){left:67%}
.bogie { position: absolute; left: 23%; right: 23%; bottom: 0; height: 65px; display: flex; justify-content: space-between; align-items: center; padding: .5rem 1rem; background: #5c687a; border-radius: 8px; }
.coil { width: 58px; height: 43px; display: grid; place-items: center; border-radius: 7px; color: white; font: 600 .85rem/1 'IBM Plex Mono', monospace; font-style: normal; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.coil.north { background: var(--sakura-deep); }.coil.south { background: var(--ink); }
.magnet-model .field-lines { position: relative; z-index: 2; width: 54%; height: 105px; flex: none; background: none; }
.magnet-model .field-lines i { position: absolute; left: 50%; width: calc(65% + var(--n, 0) * 10%); height: 130px; border: 2px solid rgba(216,111,141,.56); border-left: 0; border-right: 0; border-radius: 50%; transform: translate(-50%, -13%); animation: field-pulse 2.4s ease-in-out infinite; }
.magnet-model .field-lines i:nth-child(1){--n:0}.magnet-model .field-lines i:nth-child(2){--n:1;animation-delay:-.3s}.magnet-model .field-lines i:nth-child(3){--n:2;animation-delay:-.6s}.magnet-model .field-lines i:nth-child(4){--n:3;animation-delay:-.9s}.magnet-model .field-lines i:nth-child(5){--n:4;animation-delay:-1.2s}
@keyframes field-pulse { 50% { opacity: .28; transform: translate(-50%,-13%) scaleY(.8); } }
.gap-readout { position: absolute; z-index: 4; right: 5%; top: 52%; display: flex; align-items: center; gap: .5rem; color: var(--sakura-deep); font: 600 .62rem/1 'IBM Plex Mono', monospace; }
.gap-readout span { width: 22px; height: 1px; background: var(--sakura-deep); }
.guide-section { position: relative; z-index: 3; width: min(84%, 610px); height: 115px; display: flex; justify-content: center; align-items: flex-start; gap: 32%; padding-top: 1.1rem; background: linear-gradient(#778293, #4c586c); clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }
.guide-core { position: absolute; left: 19%; right: 19%; bottom: 0; height: 44px; background: #313e58; }
.force-meter { position: absolute; z-index: 4; bottom: 2rem; left: 2rem; right: 2rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; color: #657087; font: 500 .5rem/1 'IBM Plex Mono', monospace; letter-spacing: .11em; }
.force-meter div { height: 3px; background: rgba(23,35,77,.12); }
.force-meter i { display: block; width: var(--force, 80%); height: 100%; margin-left: auto; background: var(--sakura-deep); box-shadow: 0 0 7px var(--sakura); transition: width .6s ease; }
.magnet-model.attract { --lift: 8px; --force: 24%; }
.magnet-model.attract .field-lines i { border-color: rgba(23,35,77,.45); transform: translate(-50%,-13%) scaleY(.64); }

.dusk { position: relative; z-index: 2; padding: clamp(5rem, 9vw, 9rem) max(4vw, calc((100vw - 1320px)/2)); color: white; background: linear-gradient(138deg, #202b54, #101833 70%); overflow: hidden; }
.dusk::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(110deg, transparent 48%, var(--sakura) 49%, transparent 50%); background-size: 260px 100%; }
.dusk-heading { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 4rem; margin-bottom: 5rem; }
.dusk-control { max-width: 490px; justify-self: end; width: 100%; }
.dusk-control label { display: flex; justify-content: space-between; margin-bottom: 1rem; color: #d9dce5; font-size: .82rem; }
.dusk-control output { color: var(--sakura); font-family: 'IBM Plex Mono', monospace; }
.dusk-control input { width: 100%; height: 44px; margin: 0; accent-color: var(--sakura); cursor: ew-resize; }
.dusk-control > div { display: flex; justify-content: space-between; color: #8892aa; font: 500 .5rem/1 'IBM Plex Mono', monospace; letter-spacing: .12em; }
.window-carriage { position: relative; display: grid; grid-template-columns: 1fr 1.15fr .92fr; gap: clamp(1rem, 2vw, 2.2rem); align-items: start; }
.window-carriage::before { content: ""; position: absolute; left: -8vw; right: -8vw; top: -1.5rem; height: 2px; background: rgba(255,255,255,.14); box-shadow: 0 20rem 0 rgba(255,255,255,.08); }
.seat-window { margin: 0; }
.seat-window:nth-child(2) { margin-top: 3.8rem; }
.seat-window:nth-child(3) { margin-top: 1.3rem; }
.window-two .window-view { background: linear-gradient(rgba(17,26,59, calc(var(--dusk) / 145)), rgba(17,26,59, calc(var(--dusk) / 100))), linear-gradient(180deg, #dfa6bc 0 42%, #607b8f 43% 62%, #294c51 63%); }
.window-two .window-view::before { bottom: 10%; height: 43%; transform: scaleX(1.25) translateX(-6%); }
.window-two .window-view b { background: repeating-linear-gradient(80deg, transparent 0 16px, rgba(143,183,163,.35) 17px 20px), #1c3e49; }
.window-three .window-view { background: linear-gradient(rgba(17,26,59, calc(var(--dusk) / 108)), rgba(17,26,59, calc(var(--dusk) / 86))), linear-gradient(180deg, #b17fa5 0 44%, #3f567c 45% 64%, #1a294a 65%); }
.window-three .window-view::before { opacity: .34; transform: translateY(25%) scaleX(1.4); }
.window-three .window-view b { inset: 55% 0 0; background: repeating-linear-gradient(90deg, #172746 0 18px, #263656 19px 34px, #101e40 35px 48px); clip-path: polygon(0 30%,8% 30%,8% 0,16% 0,16% 45%,26% 45%,26% 12%,36% 12%,36% 55%,47% 55%,47% 4%,58% 4%,58% 38%,68% 38%,68% 18%,79% 18%,79% 48%,90% 48%,90% 8%,100% 8%,100% 100%,0 100%); }
.window-view { position: relative; aspect-ratio: .96; overflow: hidden; border: 12px solid #2e385a; border-radius: 48% 48% 19% 19%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 20px 40px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08); background:
  linear-gradient(rgba(17,26,59, calc(var(--dusk) / 140)), rgba(17,26,59, calc(var(--dusk) / 100))),
  linear-gradient(180deg, #f5b0c1 0 43%, #677e9c 44% 65%, #273e5b 66%);
}
.window-view::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: 16%; height: 32%; background: #1d3550; clip-path: polygon(0 100%,0 80%,15% 34%,25% 62%,37% 0,51% 57%,65% 13%,78% 75%,91% 33%,100% 72%,100% 100%); filter: blur(calc((100 - var(--dusk)) * .018px)); }
.window-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.3), transparent 22% 76%, rgba(245,163,183,.13)); mix-blend-mode: screen; }
.distant-sun { position: absolute; right: 18%; top: calc(28% + var(--dusk) * .3%); width: 14%; aspect-ratio: 1; border-radius: 50%; background: #ffe7ec; box-shadow: 0 0 25px var(--sakura); opacity: calc((100 - var(--dusk)) / 100); }
.window-view b { position: absolute; inset: 65% 0 0; background: repeating-linear-gradient(90deg, transparent 0 25px, rgba(245,163,183,calc(var(--dusk)/130)) 26px 29px), #172746; }
.seat-window p { max-width: 27ch; margin: 1.3rem 1rem 0; color: #cbd0dd; font-size: .83rem; line-height: 1.7; }
.seat-window p span { display: block; margin-bottom: .5rem; color: var(--sakura); font: 500 .54rem/1 'IBM Plex Mono', monospace; letter-spacing: .1em; }
.carriage-note { position: relative; max-width: 52rem; margin: 4.5rem 0 0 auto; padding-left: 4rem; color: #aeb6c9; font-size: 1rem; border-left: 1px solid var(--sakura); }

.timetable { padding: clamp(3rem, 6vw, 6rem); }
.timetable-top { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 5rem; }
.timetable-top > p { max-width: 32rem; margin: 0 0 .5rem; color: #59657a; }
.table-wrap { margin-top: 4rem; overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; min-width: 790px; border-collapse: collapse; font-family: 'IBM Plex Mono', monospace; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
th, td { padding: 1.35rem 1rem; text-align: left; border-bottom: 1px solid #d6dce2; }
th { color: #758094; font-size: .56rem; letter-spacing: .08em; font-weight: 500; }
td { font-size: .72rem; }
td:first-child { width: 180px; }
td b, td span { display: block; }
td span { margin-top: .3rem; color: #8b94a3; font: 400 .56rem/1 'Zen Kaku Gothic New', sans-serif; }
.current { background: var(--ink); color: white; box-shadow: 0 8px 24px rgba(23,35,77,.16); }
.current td { border-color: var(--ink); }.current td span { color: var(--sakura); }
.service-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 4rem; background: #d4dae1; }
.service-facts div { padding: 2rem; background: var(--paper); }
.service-facts strong { display: block; font: 300 clamp(2.4rem, 4vw, 4.2rem)/1 'IBM Plex Mono', monospace; letter-spacing: -.08em; }
.service-facts span { display: block; margin-top: .8rem; color: #6a7588; font: 500 .53rem/1 'IBM Plex Mono', monospace; letter-spacing: .13em; }

.arrival { position: relative; z-index: 2; min-height: 640px; display: grid; place-items: center; color: white; background: var(--night); overflow: hidden; text-align: center; }
.arrival::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center 62%, rgba(245,163,183,.18), transparent 28%); }
.arrival-horizon { position: absolute; inset: 0; }
.arrival-horizon::before, .arrival-horizon::after { content: ""; position: absolute; left: 0; right: 0; top: 54%; height: 1px; background: linear-gradient(90deg, transparent, rgba(245,163,183,.7), transparent); box-shadow: 0 0 15px var(--sakura); }
.arrival-horizon::after { top: calc(54% + 62px); background: #566078; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.arrival-train { position: absolute; left: 50%; top: calc(54% - 16px); width: min(620px, 80vw); height: 36px; border-radius: 80% 12% 6% 10%; background: linear-gradient(#fff, #cbd1d9); transform: translateX(-50%); box-shadow: 0 9px 13px rgba(0,0,0,.4); }
.arrival-train::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 3px; height: 3px; background: var(--sakura); box-shadow: 0 0 10px var(--sakura); }
.arrival-train::before { content: ""; position: absolute; left: 21%; right: 17%; top: 7px; height: 11px; border-radius: 9px 9px 2px 2px; background: var(--night); opacity: .88; }
.arrival-train i { position: absolute; z-index: 2; top: 8px; width: 1px; height: 9px; background: rgba(255,255,255,.25); }
.arrival-train i:nth-child(1) { left: 36%; }.arrival-train i:nth-child(2) { left: 48%; }.arrival-train i:nth-child(3) { left: 60%; }.arrival-train i:nth-child(4) { left: 72%; }
.arrival-copy { position: relative; z-index: 2; transform: translateY(-8rem); }
.arrival-copy span { color: var(--sakura); font: 500 .58rem/1 'IBM Plex Mono', monospace; letter-spacing: .15em; }
.arrival-copy h2 { margin-top: 1.2rem; font-size: clamp(3.6rem, 7vw, 7rem); }
.arrival-copy p { max-width: 36rem; margin: 1.6rem auto 0; color: #bec5d4; }

.site-footer { position: relative; z-index: 2; min-height: 180px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 3rem max(4vw, calc((100vw - 1320px)/2)); color: #4c5870; background: #e8edf1; font-size: .72rem; }
.footer-mark { display: flex; align-items: center; gap: .8rem; color: var(--ink); font-weight: 700; letter-spacing: .08em; }
.footer-mark svg { width: 32px; fill: none; stroke: var(--sakura-deep); stroke-width: 2; }
.site-footer p { text-align: center; }
.site-footer nav { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: .8fr 1.2fr; padding-inline: 3vw; }
  .hero-machine { margin-right: 0; }
  .departure-console { grid-template-columns: 170px 1fr; gap: 1.5rem; padding-inline: 2.5rem; }
  .countdown-ring { width: 165px; }
  .field-copy { padding: 4rem; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer p { text-align: right; }.site-footer nav { grid-column: 1 / -1; justify-self: start; }
}

@media (min-width: 781px) and (max-width: 1040px) {
  .hero { min-height: 920px; align-items: start; padding-top: 10.5rem; }
  .hero-machine { min-height: 620px; margin-top: -1.5rem; }
}

@media (max-width: 780px) {
  :root { --gap: 4.5rem; }
  .site-header { top: 10px; width: calc(100% - 24px); grid-template-columns: 1fr auto; min-height: 60px; padding-left: 14px; gap: .5rem; }
  .header-time { display: none; }
  .nav-toggle { position: relative; z-index: 2; display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: var(--ink); cursor: pointer; }
  .nav-toggle span:not(.sr-only) { width: 19px; height: 1px; background: white; transition: transform .25s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; grid-template-columns: 1fr 1fr; gap: 1px; padding: 8px; background: rgba(251,252,253,.98); border-radius: 13px; box-shadow: var(--shadow); }
  .primary-nav.open { display: grid; }
  .primary-nav a { min-height: 48px; background: #edf1f4; border-radius: 8px; }
  .hero { min-height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 1.4rem; padding: 8rem 0 3.5rem 1.25rem; }
  .hero-copy { padding: 0 1rem 0 0; }
  .hero h1 { font-size: clamp(4.2rem, 18.6vw, 6.3rem); line-height: .86; }
  .hero-intro { margin-block: 1.5rem; }
  .hero-machine { min-height: 430px; margin: 0; }
  .hero-machine::before, .hero-machine::after { inset: 3% 0 3% 4%; }
  .hero-sun { width: 210px; top: 9%; right: 8%; }
  .train-wrap { width: 125%; transform: translateX(-4%); }
  .hero-specs { right: 7%; bottom: 6%; }
  .hero-index { display: none; }
  .floating-section { width: calc(100% - 24px); }
  .departure { grid-template-columns: 1fr; }
  .departure-lead { padding: 4rem 2rem; }
  .departure-console { min-height: 600px; grid-template-columns: 1fr; gap: 1rem; padding: 3rem 2rem 5rem; }
  .countdown-ring { width: 160px; justify-self: center; }
  .journey { min-height: auto; padding: 6rem 1.5rem; }
  .journey-head { margin-bottom: 4rem; }
  .route-rail { display: none; }
  .stations { width: 100%; }
  .station, .station:nth-child(even) { min-height: auto; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 7rem; }
  .station:nth-child(even) .station-visual, .station:nth-child(even) .station-card { order: initial; text-align: left; }
  .station-visual { height: min(68vw, 420px); transform: none; }
  .field-lab { grid-template-columns: 1fr; }
  .field-copy { padding: 5rem 2.5rem; }
  .vertical-note { display: none; }
  .magnet-model { min-height: 680px; }
  .dusk { padding-inline: 1.5rem; }
  .dusk-heading { grid-template-columns: 1fr; gap: 2.5rem; }
  .dusk-control { justify-self: start; }
  .window-carriage { grid-template-columns: 1fr 1fr; }
  .seat-window:nth-child(2) { margin-top: 3rem; }.seat-window:nth-child(3) { margin: 2rem 15% 0 15%; grid-column: 1 / -1; }
  .timetable { padding: 4rem 2rem; }
  .timetable-top { grid-template-columns: 1fr; gap: 2rem; }
  .service-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .page-seam { left: 71%; opacity: .7; }
  .brand { font-size: .85rem; }.brand svg { width: 29px; }
  .route-code { margin-bottom: 1.2rem; }
  .hero h1 { font-size: clamp(4rem, 20vw, 5.5rem); }
  .hero-intro { font-size: .95rem; }
  .hero-machine { min-height: 310px; margin-right: 0; }
  .hero-machine::before, .hero-machine::after { inset: 2% 0; border-radius: 12px 0 0 12px; }
  .hero-sun { width: 150px; }
  .train-wrap { width: 112%; transform: translateX(-2%); }
  .air-gap { height: 24px; }.guideway { height: 36px; }
  .hero-specs { bottom: 2%; right: 10%; grid-template-columns: auto; gap: .2rem; padding: .55rem .7rem; }
  .hero-specs span:nth-of-type(2), .hero-specs strong:nth-of-type(2) { display: none; }
  .departure h2, .field-lab h2, .dusk h2, .timetable h2, .arrival h2, .journey h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .departure-lead { padding: 3.5rem 1.4rem; }
  .departure-console { padding-inline: 1.2rem; }
  .sequence li { grid-template-columns: 3rem 1fr; gap: .5rem; }
  .sequence b { grid-column: 2; margin-top: -.8rem; padding-bottom: .65rem; }
  .journey { padding-inline: 1rem; }
  .journey-head { width: 100%; text-align: left; }
  .station { margin-bottom: 5rem; }
  .station-visual { height: 74vw; }
  .field-copy { padding: 4rem 1.5rem; }
  .magnet-model { min-height: 580px; }
  .carriage-section { height: 210px; width: 88%; }.section-cabin { bottom: 50px; }.coil { width: 46px; height: 37px; }
  .magnet-model .field-lines { height: 85px; }.guide-section { height: 100px; }.gap-readout { top: 51%; right: 2%; }
  .dusk { padding: 4.5rem 1rem; }
  .window-carriage { grid-template-columns: 1fr; gap: 3rem; }
  .seat-window, .seat-window:nth-child(2), .seat-window:nth-child(3) { grid-column: auto; margin: 0 8%; }
  .window-view { aspect-ratio: 1.08; border-width: 9px; }
  .carriage-note { margin-top: 3.5rem; padding-left: 1.5rem; }
  .timetable { padding: 3.5rem 1.2rem; }
  .table-wrap { margin-top: 2.5rem; }
  .service-facts div { padding: 1.25rem; }
  .service-facts strong { font-size: 2.4rem; }
  .arrival { min-height: 560px; }
  .arrival-copy { padding-inline: 1.2rem; transform: translateY(-6rem); }
  .arrival-copy h2 { font-size: 3.5rem; }
  .arrival-train { width: 110vw; }
  .site-footer { grid-template-columns: 1fr; padding: 3.5rem 1.5rem; gap: 1rem; }
  .site-footer p { text-align: left; }.site-footer nav { grid-column: auto; flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .train-profile { transform: translateY(-8px); }
  .station-visual { filter: none; transform: none; }
}

/* Pass 2: the levitation gap becomes the governing visual instrument. */
body {
  background:
    radial-gradient(ellipse at 8% 2%, rgba(255,255,255,.98), transparent 34%),
    radial-gradient(ellipse at 88% 18%, rgba(210,220,230,.6), transparent 38%),
    linear-gradient(112deg, #e8edf2 0%, #f8fafb 34%, #eef2f5 62%, #dfe6ed 100%);
}
body::after {
  content: "";
  position: fixed;
  z-index: 19;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(246,248,250,.98) 0 49.8%, rgba(245,163,183,.8) 49.9% 50.1%, rgba(246,248,250,.98) 50.2%);
  transform-origin: 50% 50%;
  animation: launch-aperture 1.25s .08s cubic-bezier(.76,0,.18,1) both;
}
@keyframes launch-aperture { 0%,22% { clip-path: inset(0 0); } 100% { clip-path: inset(0 50%); } }

.page-seam {
  width: 20px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 18px, rgba(216,111,141,.22) 18px 19px, transparent 19px 38px),
    linear-gradient(90deg, transparent 0 34%, rgba(255,255,255,.92) 35% 64%, transparent 65%);
  box-shadow: 0 0 12px rgba(245,163,183,.28), 0 0 44px rgba(255,255,255,.96);
}
.page-seam span { inset: 0 8px; opacity: .72; }
.page-seam::after {
  content: "FIELD / 100 MM / FIELD / 100 MM";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13px;
  width: 8px;
  color: rgba(115,84,105,.46);
  font: 500 5px/68px 'IBM Plex Mono', monospace;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.site-header {
  min-height: 62px;
  background: rgba(250,252,253,.96);
  border-color: rgba(255,255,255,.98);
  border-radius: 3px 18px 3px 18px;
  box-shadow: 0 16px 35px rgba(32,47,78,.12), 0 1px 0 rgba(23,35,77,.08);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sakura), transparent);
  opacity: .7;
}
.brand span { letter-spacing: -.025em; }
.primary-nav a { letter-spacing: .015em; }

.hero {
  grid-template-columns: minmax(320px,.72fr) minmax(620px,1.45fr);
  gap: 0;
  padding-top: clamp(7rem, 12vh, 9rem);
}
.hero-copy { padding-left: clamp(0rem,2vw,2rem); }
.hero h1 { font-size: clamp(4.7rem,7.8vw,8.75rem); line-height: .82; letter-spacing: -.086em; }
.hero h1 span:nth-child(2) { position: relative; z-index: 1; font-weight: 500; }
.hero h1 span:nth-child(2)::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.02em;
  right: -.1em;
  bottom: .04em;
  height: .09em;
  background: linear-gradient(90deg, var(--sakura-deep), var(--sakura), transparent 94%);
  transform-origin: left;
  animation: draw-seam .9s 1.05s cubic-bezier(.22,.8,.2,1) both;
}
@keyframes draw-seam { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-intro { max-width: 29rem; margin-bottom: 1.5rem; }
.hero-ledger {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  max-width: 31rem;
  margin: 0 0 1.45rem;
  border-top: 1px solid rgba(23,35,77,.16);
  border-bottom: 1px solid rgba(23,35,77,.16);
}
.hero-ledger div { padding: .9rem .7rem .9rem 0; }
.hero-ledger div + div { padding-left: .8rem; border-left: 1px solid rgba(23,35,77,.12); }
.hero-ledger dt { color: #69758a; font: 500 .47rem/1 'IBM Plex Mono', monospace; letter-spacing: .13em; }
.hero-ledger dd { margin: .45rem 0 0; font: 500 .69rem/1 'IBM Plex Mono', monospace; }
.hero-route-link { grid-template-columns: auto 160px; align-items: center; gap: 1rem; }
.hero-route-link svg { grid-column: 2; }
.hero-machine { min-height: min(72vh,690px); margin-right: -7vw; }
.hero-machine::before,
.hero-machine::after { inset: 4% 0 5% 3%; border-radius: 40px 0 0 4px; }
.hero-machine::before {
  background:
    radial-gradient(circle at 75% 38%, rgba(255,255,255,.96), transparent 28%),
    linear-gradient(135deg, rgba(252,253,254,.95), rgba(210,219,228,.64));
  box-shadow: 0 36px 70px rgba(26,42,75,.18), 0 3px 0 rgba(255,255,255,.9);
}
.velocity-number {
  position: absolute;
  z-index: 1;
  left: 5%;
  top: 5%;
  color: rgba(23,35,77,.06);
  font: 300 clamp(8rem,19vw,19rem)/.75 'IBM Plex Mono', monospace;
  letter-spacing: -.14em;
}
.velocity-number small { position: absolute; left: .28em; bottom: -.9em; color: rgba(23,35,77,.32); font-size: .045em; letter-spacing: .22em; }
.hero-sun { z-index: 2; top: 7%; right: 4%; box-shadow: 0 28px 75px rgba(213,105,136,.26); }
.train-wrap { --train-x: 1%; width: 116%; transform: translateX(var(--train-x)); }
.is-loaded .train-wrap { animation: enter-train 1.35s .35s cubic-bezier(.16,.82,.18,1) both; }
.is-loaded .hero-sun { animation: sun-charge 1.1s .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes enter-train { from { opacity: 0; transform: translateX(34%); } to { opacity: 1; transform: translateX(var(--train-x)); } }
@keyframes sun-charge { from { opacity: 0; transform: scale(.72); filter: blur(18px); } to { opacity: 1; transform: scale(1); filter: none; } }
.air-gap { color: #b83f69; }
.air-gap i { height: 2px; box-shadow: 0 0 6px rgba(245,163,183,.7); }
.guideway { background: linear-gradient(#c5ccd4 0 14%,#6d798d 15% 100%); }

.floating-section {
  border-radius: 3px 20px 3px 20px;
  box-shadow: 0 34px 62px rgba(29,44,75,.15), 0 8px 15px rgba(29,44,75,.08), inset 0 1px rgba(255,255,255,.95);
}
.floating-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 7px;
  border-radius: 50%;
  background: rgba(23,35,77,.13);
  filter: blur(9px);
}
.departure { min-height: 720px; }
.departure-lead { position: relative; background: linear-gradient(155deg,#fcfdfe 0 55%,#e9eef2 100%); }
.departure-lead::before { content: "20"; position: absolute; right: 4%; top: 2%; color: rgba(23,35,77,.045); font: 300 17rem/.8 'IBM Plex Mono',monospace; letter-spacing: -.16em; }
.departure h2 { position: relative; }
.departure-console { background: radial-gradient(circle at 16% 48%,#26345e 0,transparent 31%), linear-gradient(145deg,#131d42,#0d1532); }
.departure-console::after { content: "MAGNETIC CLEARANCE / NOMINAL"; position: absolute; right: 2rem; bottom: 1.2rem; color: rgba(255,255,255,.35); font: 500 .48rem/1 'IBM Plex Mono',monospace; letter-spacing: .15em; }
.departure-trigger { border-radius: 2px 13px 2px 13px; background: rgba(255,255,255,.5); }
.countdown-ring { filter: drop-shadow(0 18px 24px rgba(0,0,0,.2)); }
.sequence li.active { transform: translateX(12px); }

.journey { min-height: 360vh; padding-top: 10rem; background: #0e1735; }
.journey::before {
  background:
    linear-gradient(90deg,transparent 49.8%,rgba(245,163,183,.11) 49.9% 50.1%,transparent 50.2%),
    radial-gradient(ellipse at 68% 9%,rgba(245,163,183,.22),transparent 25%),
    linear-gradient(90deg,rgba(9,16,39,.96) 0 18%,rgba(17,26,59,.72) 50%,rgba(8,15,37,.96));
}
.journey-head { margin-bottom: 2rem; text-align: left; transform: translateX(-14vw); }
.journey-head h2 { font-size: clamp(4rem,7vw,7.5rem); }
.velocity-hud {
  position: sticky;
  z-index: 7;
  top: 100px;
  width: min(420px,42vw);
  min-height: 58px;
  margin: 0 0 1rem auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: .7rem 1rem;
  color: white;
  background: rgba(9,16,39,.76);
  border: 1px solid rgba(245,163,183,.3);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  font-family: 'IBM Plex Mono',monospace;
}
.velocity-hud::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sakura); box-shadow: 0 0 12px var(--sakura); }
.hud-mode { color: var(--sakura); font-size: .48rem; letter-spacing: .12em; }
.hud-station { font-size: .63rem; letter-spacing: .16em; text-align: center; }
.hud-velocity { font-size: .58rem; }
.velocity-hud i { display: none; }
.route-rail { top: 31rem; bottom: 15rem; }
.stations { width: min(1160px,calc(100% - 4rem)); }
.station { min-height: 82vh; grid-template-columns: 1.55fr .68fr; }
.station-visual {
  height: clamp(350px,42vw,540px);
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 34px 80px rgba(0,0,0,.42), 0 0 0 8px rgba(255,255,255,.025);
  transform: perspective(950px) rotateY(var(--tilt,-4deg)) translate3d(calc(var(--speed,.3) * -20px),18px,0) scaleX(calc(1 + var(--speed,.3) * .035));
  transition: filter .2s linear, transform .65s cubic-bezier(.16,.82,.18,1), box-shadow .5s ease;
}
.station-visual::before { content: ""; position: absolute; z-index: 5; inset: 0; box-shadow: inset 0 0 80px rgba(8,14,35,.35); background: linear-gradient(115deg,rgba(255,255,255,.16),transparent 18% 72%,rgba(245,163,183,.12)); pointer-events:none; }
.station-visual::after { z-index: 6; background: repeating-linear-gradient(90deg,transparent 0 4%,rgba(255,255,255,.18) 4.1% 4.25%,transparent 4.35% 8%); transform: scaleX(calc(1 + var(--speed,.2) * 3)); transform-origin: center; }
.station.is-sharp .station-visual { box-shadow: 0 42px 90px rgba(0,0,0,.45),0 0 0 1px rgba(245,163,183,.38),0 0 0 10px rgba(255,255,255,.025); }
.station-card h3 { font-size: clamp(3rem,5vw,5.4rem); }
.station-card::after { content: attr(data-distance); }
.sumi { background: linear-gradient(180deg,#d9d4de 0 36%,#9aa5b6 37% 49%,#46526d 50% 57%,#273352 58%); }
.awa { background: linear-gradient(180deg,#ffc1ce 0 34%,#c492b5 35% 47%,#6b7f9d 48% 58%,#2b426b 59%); }
.kasumi { background: linear-gradient(180deg,#b7c1ce 0 32%,#899bad 33% 48%,#566d79 49% 59%,#24394f 60%); }
.tsukino { background: radial-gradient(circle at 82% 16%,rgba(245,216,223,.12),transparent 18%),linear-gradient(#0d1532 0 58%,#202d54 59%); }

.field-lab { min-height: 850px; }
.field-copy { background: linear-gradient(135deg,#fff,#eef2f5); }
.field-state { display: grid; gap: .35rem; margin: 1.2rem 0 0; padding-left: 1rem; border-left: 2px solid var(--sakura-deep); color: #59667d; font-size: .78rem; line-height: 1.45; }
.field-state b { color: var(--ink); font: 600 .65rem/1 'IBM Plex Mono',monospace; }
.gap-readout { color:#9f3158; }
.magnet-model { min-height: 850px; background: radial-gradient(circle at 50% 46%,rgba(255,255,255,.9),transparent 28%),linear-gradient(145deg,#dfe5eb,#bfc9d3); }
.magnet-model::after { content: "SUPERCONDUCTING ARRAY / −269°C"; position:absolute; right: 1.5rem; top:50%; color:rgba(23,35,77,.38); font:500 .46rem/1 'IBM Plex Mono',monospace; letter-spacing:.15em; writing-mode:vertical-rl; }
.magnet-model.attract .section-cabin::after { background: var(--ink); box-shadow:0 0 7px rgba(23,35,77,.5); }

.dusk { background: radial-gradient(ellipse at 72% 0,rgba(245,163,183,.16),transparent 34%),linear-gradient(135deg,#29365f 0,#111a3b 58%,#0a122d 100%); }
.dusk-control input { appearance: none; height: 44px; background: transparent; }
.dusk-control input::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg,var(--sakura),#8592ab 55%,#34405f); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.dusk-control input::-webkit-slider-thumb { appearance:none; width:28px; height:28px; margin-top:-12px; border:7px solid var(--night); border-radius:50%; background:var(--sakura); box-shadow:0 0 0 1px rgba(255,255,255,.7),0 0 18px rgba(245,163,183,.5); }
.window-view { border-radius: 52% 52% 10% 10%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28),0 30px 55px rgba(0,0,0,.32),0 8px 0 #121a38; }

.timetable { overflow: hidden; }
.timetable::before { content:"48:00"; position:absolute; right:-.05em; top:-.15em; color:rgba(23,35,77,.035); font:300 14rem/1 'IBM Plex Mono',monospace; letter-spacing:-.12em; }
.timetable-top,.table-wrap,.service-facts { position:relative; }

.arrival { min-height: 680px; background: radial-gradient(ellipse at 50% 58%,#252e58 0,#111a3b 47%,#09112b 100%); }
.arrival::after { content:"FLOATING / 100 MM"; position:absolute; bottom:2rem; color:rgba(255,255,255,.28); font:500 .48rem/1 'IBM Plex Mono',monospace; letter-spacing:.18em; }
.arrival-copy h2 { letter-spacing:-.075em; }
.site-footer { background: linear-gradient(105deg,#e1e7ec,#f7f9fa 52%,#e4eaf0); }

@media (max-width: 1040px) {
  .hero { grid-template-columns: .82fr 1.18fr; }
  .hero h1 { font-size: clamp(4rem,8.5vw,6rem); }
  .hero-machine { margin-right: -3vw; }
  .journey-head { transform: none; }
}

@media (max-width: 780px) {
  body::after { display:none; }
  .site-header { background: rgba(250,252,253,.98); border-radius: 3px 16px 3px 16px; }
  .hero { gap: .4rem; padding-top: 7.5rem; }
  .hero-machine { margin-right:0; }
  .hero-machine::before,.hero-machine::after { inset:2% 0 2% 3%; border-radius:30px 0 0 3px; }
  .train-wrap { --train-x:-3%; }
  .velocity-number { top:8%; font-size:clamp(7rem,30vw,13rem); }
  .departure { min-height:auto; }
  .journey { min-height:auto; padding-top:7rem; }
  .velocity-hud { top:82px; width:min(430px,calc(100vw - 3rem)); margin-bottom:3rem; }
  .stations { width:100%; }
  .station,.station:nth-child(even) { min-height:auto; margin-bottom:8rem; }
  .field-lab,.magnet-model { min-height:auto; }
  .magnet-model { min-height:700px; }
}

@media (max-width: 520px) {
  .page-seam { left:72%; width:16px; }
  .page-seam::after { display:none; }
  .hero { padding-left:1rem; padding-bottom:4rem; }
  .hero h1 { font-size:clamp(3.85rem,19vw,5rem); line-height:.85; }
  .hero-intro { max-width:34ch; line-height:1.7; }
  .hero-ledger { margin-right:1rem; }
  .hero-ledger div { padding:.8rem .35rem .8rem 0; }
  .hero-ledger div + div { padding-left:.45rem; }
  .hero-ledger dt { font-size:.4rem; letter-spacing:.07em; }
  .hero-ledger dd { font-size:.6rem; }
  .hero-route-link { grid-template-columns:auto; gap:.25rem; }
  .hero-route-link svg { grid-column:auto; }
  .hero-machine { min-height:340px; margin-left:-1rem; }
  .hero-machine::before,.hero-machine::after { inset:2% 0; }
  .train-wrap { --train-x:-2%; width:116%; }
  .hero-sun { width:165px; }
  .hero-specs { bottom:1%; }
  .floating-section { border-radius:2px 15px 2px 15px; }
  .departure-lead::before { font-size:10rem; }
  .departure-console::after { display:none; }
  .journey-head h2 { font-size:3.65rem; }
  .velocity-hud { width:calc(100vw - 2rem); grid-template-columns:1fr auto; gap:.25rem .8rem; padding:.65rem .8rem; }
  .hud-mode { grid-column:1; }.hud-station { grid-column:1; text-align:left; }.hud-velocity { grid-column:2; grid-row:1 / 3; }
  .station,.station:nth-child(even) { margin-bottom:6.5rem; }
  .station-visual { height:78vw; }
  .station-card h3 { font-size:3.2rem; }
  .field-state { margin-bottom:0; }
  .magnet-model { min-height:620px; }
  .arrival { min-height:600px; }
  .arrival-copy { transform:translateY(-4.75rem); }
  .arrival-copy h2 { font-size:clamp(2.75rem,14vw,3.5rem); line-height:.88; }
  .arrival-copy p { max-width:30ch; margin-top:1.25rem; }
  .arrival-train { top:56%; }
  .arrival-horizon::before { top:56%; }.arrival-horizon::after { top:calc(56% + 62px); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { display:none; }
  .hero h1 span:nth-child(2)::after,.is-loaded .train-wrap,.is-loaded .hero-sun { animation:none; }
  .train-wrap { opacity:1; transform:translateX(var(--train-x,1%)); }
}

/* Pass 3: field pressure, optical typography, and final interaction polish. */
html {
  scrollbar-color: var(--sakura-deep) #dce3e9;
  scrollbar-width: thin;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #dce3e9; }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--sakura-deep), #b94a70);
  border: 2px solid #dce3e9;
  border-radius: 999px;
}
body { font-optical-sizing: auto; }
a, button, input { touch-action: manipulation; -webkit-tap-highlight-color: rgba(216,111,141,.18); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
section[id], main[id] { scroll-margin-top: 7rem; }
.route-code, .section-mark, .journey-code, .hero-ledger, .hero-specs,
.header-time, .velocity-number, .velocity-hud, .sequence, .field-state,
.gap-readout, .service-facts, table, .arrival-copy > span {
  font-variant-numeric: tabular-nums slashed-zero;
}

.brand { transition: color .28s ease, transform .32s cubic-bezier(.16,.82,.18,1); }
.brand svg { transition: filter .28s ease, transform .32s cubic-bezier(.16,.82,.18,1); transform-origin: 50% 50%; }
.site-footer a, .return-link, .hero-route-link span {
  text-decoration-color: rgba(23,35,77,.35);
  text-decoration-thickness: 1px;
  transition: color .24s ease, text-decoration-color .24s ease;
}
.dusk-control input:focus-visible { outline: 3px solid var(--sakura); outline-offset: 5px; }

.page-seam > .field-pulse-wave {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: 108px;
  height: 18vh;
  opacity: 0;
  transform: translate(-50%,-22vh);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.98) 0 4%, rgba(245,163,183,.72) 8%, rgba(245,163,183,.16) 34%, transparent 69%);
  filter: blur(2px);
  pointer-events: none;
}

.field-pulse-trigger {
  position: absolute;
  z-index: 7;
  left: 7%;
  bottom: 11%;
  width: 166px;
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr 25px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: .28rem .65rem;
  padding: .72rem .75rem .68rem .9rem;
  overflow: hidden;
  color: white;
  text-align: left;
  background: rgba(17,26,59,.92);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 2px 11px 2px 11px;
  box-shadow: 0 15px 28px rgba(23,35,77,.22), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .28s cubic-bezier(.16,.82,.18,1), box-shadow .28s ease, background-color .28s ease;
}
.field-pulse-trigger span {
  color: var(--sakura);
  font: 500 .43rem/1 'IBM Plex Mono', monospace;
  letter-spacing: .15em;
}
.field-pulse-trigger b {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.15;
}
.field-pulse-trigger i {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(245,163,183,.62);
  border-radius: 50%;
}
.field-pulse-trigger i::before,
.field-pulse-trigger i::after {
  content: "";
  position: absolute;
  background: var(--sakura);
  box-shadow: 0 0 6px var(--sakura);
}
.field-pulse-trigger i::before { left: 4px; right: 4px; top: 11px; height: 1px; }
.field-pulse-trigger i::after { top: 4px; bottom: 4px; left: 11px; width: 1px; }
.field-pulse-trigger.is-confirmed { background: #24345e; box-shadow: 0 18px 34px rgba(23,35,77,.28), 0 0 20px rgba(245,163,183,.28); }

.journey::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .2;
  background:
    repeating-linear-gradient(0deg, transparent 0 139px, rgba(255,255,255,.035) 140px 141px),
    linear-gradient(90deg, transparent 0 49.85%, rgba(245,163,183,.18) 49.9% 50.1%, transparent 50.15%);
  mask-image: linear-gradient(90deg, transparent, black 18% 82%, transparent);
  pointer-events: none;
}
.station-card { font-variant-numeric: tabular-nums; }
.station-card::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg,var(--sakura),transparent);
  transform-origin: left;
  transform: scaleX(.35);
  transition: transform .5s cubic-bezier(.16,.82,.18,1), width .5s ease;
}
.station:nth-child(even) .station-card::before { margin-left: auto; transform-origin: right; }
.station.is-sharp .station-card::before { width: 62px; transform: scaleX(1); }

.flux-bloom {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 52%;
  width: min(72%, 540px);
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.flux-bloom i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(35% + var(--ring, 0) * 12%);
  aspect-ratio: 1;
  opacity: 0;
  border: 1px solid rgba(216,111,141,.66);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(.35);
  box-shadow: 0 0 22px rgba(245,163,183,.16), inset 0 0 18px rgba(245,163,183,.09);
}
.flux-bloom i:nth-child(1) { --ring: 0; }
.flux-bloom i:nth-child(2) { --ring: 1; }
.flux-bloom i:nth-child(3) { --ring: 2; }
.flux-bloom i:nth-child(4) { --ring: 3; }

@media (hover: hover) {
  .brand:hover { color: #a4335c; transform: translateY(-2px); }
  .brand:hover svg { filter: drop-shadow(0 0 7px rgba(216,111,141,.45)); transform: translateX(3px); }
  .field-pulse-trigger:hover { transform: translateY(-4px); box-shadow: 0 21px 36px rgba(23,35,77,.3), 0 0 18px rgba(245,163,183,.18); }
  .site-footer a:hover, .return-link:hover, .hero-route-link:hover span { color: #a4335c; text-decoration-color: var(--sakura-deep); }
}
.field-pulse-trigger:active { transform: translateY(1px) scale(.985); }

@supports (top: max(1px, 2px)) {
  .site-header { top: max(18px, env(safe-area-inset-top)); }
  .site-footer { padding-bottom: max(3rem, env(safe-area-inset-bottom)); }
}

@media (max-width: 780px) {
  section[id], main[id] { scroll-margin-top: 5.5rem; }
  @supports (top: max(1px, 2px)) { .site-header { top: max(10px, env(safe-area-inset-top)); } }
  .field-pulse-trigger { left: 6%; bottom: 7%; }
  .station:nth-child(even) .station-card::before { margin-left: 0; transform-origin: left; }
}

@media (max-width: 520px) {
  .field-pulse-trigger {
    left: 5%;
    bottom: 5%;
    width: 150px;
    min-height: 52px;
    padding: .62rem .65rem .6rem .75rem;
  }
  .field-pulse-trigger span { font-size: .39rem; }
  .field-pulse-trigger b { font-size: .62rem; }
  .field-pulse-trigger i { width: 23px; height: 23px; }
  .field-pulse-trigger i::before { top: 10px; }
  .field-pulse-trigger i::after { left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-seam > .field-pulse-wave { display: none; }
  .field-pulse-trigger.is-confirmed { background: #24345e; border-color: var(--sakura); }
}
