:root {
  --asphalt: #2f3236;
  --asphalt-deep: #25272b;
  --asphalt-raise: #3a3d42;
  --rule: #4b4f55;
  --paint: #eceee8;
  --muted: #aab0a9;
  --sign-green: #1b7a4e;
  --sign-green-deep: #146140;
  --sign-blue: #1e5aa8;
  --lane: #f2b33d;
  --peach: #f3a58e;

  --font-latin: "Overpass", system-ui, sans-serif;
  --font-jp: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", sans-serif;

  --gutter: clamp(40px, 10vw, 150px);
  --measure: 38em;
  --content: 1040px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--asphalt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--paint);
  font-family: var(--font-jp);
  font-size: 1rem;
  line-height: 1.9;
  font-feature-settings: "palt" 0;
  overflow-x: clip;
}

h1, h2, h3, h4, .statement, .project-why, .snap figcaption, .arrival-card p, .hero-tagline { word-break: auto-phrase; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--lane); color: #1d1d1d; padding: 8px 14px; border-radius: 6px;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 16px; }

.num, .hud-speed b, .dest-km, .kp { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }

.sign {
  --sign-bg: var(--sign-green);
  position: relative;
  margin: 0;
  background: var(--sign-bg);
  color: #fff;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 4px var(--sign-bg),
    inset 0 0 0 6.5px #fff,
    0 18px 40px -18px rgba(0, 0, 0, .7);
}
.sign--blue { --sign-bg: var(--sign-blue); }

.sign-post { position: relative; margin-bottom: clamp(40px, 6vw, 72px); }
.sign-post .sign {
  display: inline-flex; flex-direction: column;
  padding: 18px 104px 16px 30px;
  min-width: min(400px, 100%);
  background:
    radial-gradient(circle at 14px 14px, #d9dde1 0 2.6px, #6f757b 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) 14px, #d9dde1 0 2.6px, #6f757b 3px, transparent 3.6px),
    radial-gradient(circle at 14px calc(100% - 14px), #d9dde1 0 2.6px, #6f757b 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #d9dde1 0 2.6px, #6f757b 3px, transparent 3.6px),
    linear-gradient(115deg, rgba(255, 255, 255, .1) 0 30%, rgba(255, 255, 255, 0) 55%),
    var(--sign-bg);
  box-shadow:
    inset 0 0 0 4px var(--sign-bg),
    inset 0 0 0 6.5px #fff,
    0 4px 0 color-mix(in srgb, var(--sign-bg) 55%, #000),
    0 22px 40px -18px rgba(0, 0, 0, .75);
}
.sign-post .sign::after {
  content: ""; position: absolute; right: 30px; top: 50%;
  width: 48px; height: 48px; margin-top: -24px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 5h19v6.5h-8.2L36 31.7 31.7 36 11.5 15.8V24H5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 5h19v6.5h-8.2L36 31.7 31.7 36 11.5 15.8V24H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sign-post::before, .sign-post::after {
  content: ""; position: absolute; right: 100%;
  width: calc(var(--gutter) * .45 + 6px); height: 6px; margin-right: -6px;
  background: linear-gradient(#a3a9ae, #62676d);
  border-radius: 3px 0 0 3px;
}
.sign-post::before { top: 30%; }
.sign-post::after { top: 70%; }
.sign-jp { font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.2; letter-spacing: .06em; }
.sign-en { font-family: var(--font-latin); font-weight: 600; font-size: clamp(1rem, 1.7vw, 1.3rem); line-height: 1.3; letter-spacing: .01em; }

@media (prefers-reduced-motion: no-preference) {
  .js .sign-post .sign { transform-origin: 50% -40px; opacity: 0; transform: perspective(700px) rotateX(-70deg); }
  .js .sign-post.is-in .sign { animation: sign-swing 1.1s var(--ease-out) forwards; }
}
@keyframes sign-swing {
  0% { opacity: 0; transform: perspective(700px) rotateX(-70deg); }
  45% { opacity: 1; transform: perspective(700px) rotateX(14deg); }
  70% { transform: perspective(700px) rotateX(-6deg); }
  88% { transform: perspective(700px) rotateX(2deg); }
  100% { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #2c76e0;
  isolation: isolate;
  z-index: 1;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.arrival-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 9s ease-out;
  pointer-events: none;
}
.hero.is-arrived .arrival-photo { opacity: 1; transform: scale(1); }

.gantry {
  position: relative; z-index: 2;
  padding: clamp(20px, 5vh, 56px) max(16px, 3vw) 0;
  display: flex; justify-content: flex-start; align-items: flex-start;
}
.gantry-beam {
  position: absolute; left: 0; right: 0; top: calc(clamp(20px, 5vh, 56px) + 26px);
  height: 10px; background: linear-gradient(#8d939a, #555a60);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}
.sign--hero {
  position: relative;
  width: min(1120px, 100%);
  display: grid; grid-template-columns: 1.15fr 1fr;
  padding: 28px 30px 26px 36px;
}
.hero-id { padding-right: 28px; }
.hero-name {
  margin: 0;
  font-family: var(--font-latin); font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  line-height: .98; letter-spacing: -.015em;
}
.hero-role { margin: 18px 0 0; font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; }
.hero-role span { display: block; font-weight: 400; font-size: .86em; opacity: .92; }
.hero-tagline { margin: 16px 0 0; font-size: .95rem; opacity: .85; }

.hero-nav { border-left: 2.5px solid #fff; padding-left: 26px; }
.hero-nav ul { list-style: none; margin: 0; padding: 0; }
.hero-nav li + li { border-top: 1.5px solid rgba(255, 255, 255, .5); }
.hero-nav a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 14px;
  padding: 6px 4px; text-decoration: none; border-radius: 6px;
  transition: background-color .2s ease;
}
.hero-nav a:hover { background: rgba(255, 255, 255, .1); }
.dest-jp { grid-column: 1; font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.3; }
.dest-en { grid-column: 1; font-family: var(--font-latin); font-weight: 600; font-size: .8rem; line-height: 1.2; opacity: .9; }
.dest-km { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-size: 1.05rem; }
.dest-km::after { content: " km"; font-weight: 600; font-size: .8em; }

@media (prefers-reduced-motion: no-preference) {
  .js .gantry { animation: gantry-drop 1.4s .35s var(--ease-out) both; transform-origin: 50% 0; }
  .js .cockpit { animation: rise 1s 1.2s var(--ease-out) backwards; }
}
@keyframes gantry-drop {
  0% { transform: translateY(-110%); }
  55% { transform: translateY(3%) rotate(.4deg); }
  75% { transform: translateY(-1%) rotate(-.2deg); }
  100% { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.cockpit {
  position: absolute; z-index: 2; left: 50%; bottom: clamp(18px, 5vh, 48px);
  translate: -50% 0;
  width: min(600px, calc(100% - 32px));
  display: grid; grid-template-columns: 1fr auto; gap: 10px 22px; align-items: center;
  padding: 16px 16px 14px 22px;
  background: rgba(20, 22, 26, .62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
}
.pedal {
  width: 84px; height: 96px; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: end center;
  background: none; position: relative;
  touch-action: none; user-select: none; -webkit-user-select: none;
  grid-column: 2; grid-row: 1;
}
.pedal-face {
  position: absolute; inset: 0 10px 30px;
  border-radius: 10px 10px 14px 14px;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(0, 0, 0, .35) 7px 10px),
    linear-gradient(#5b6067, #34373c);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 6px 0 #1b1d20;
  transform-origin: 50% 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pedal.is-down .pedal-face { transform: perspective(200px) rotateX(24deg) translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .15), 0 1px 0 #1b1d20; }
.pedal-label { font-weight: 700; font-size: .85rem; }
.gauges { grid-column: 1; grid-row: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.corsa {
  --corsa-y: #ffc21a; --corsa-o: #ff7a1a; --corsa-r: #ff2d2d;
  position: relative;
  padding: 12px 16px 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48' viewBox='0 0 28 48'%3E%3Cpath d='M14 0l14 8v16L14 32 0 24V8zM14 32v16' fill='none' stroke='%23fff' stroke-opacity='.035' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(#111317, #0a0b0d);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  font-family: "Chakra Petch", var(--font-latin);
  color: #fff;
}
.corsa-segs { display: flex; align-items: flex-end; gap: 2px; height: 26px; padding: 0 4px; }
.corsa-segs i {
  flex: 1; height: calc(var(--h) * 100%);
  background: rgba(255, 255, 255, .08);
  transform: skewX(-20deg);
}
.corsa-segs i.z-red { background: rgba(255, 45, 45, .2); }
.corsa-segs i.on { background: var(--corsa-y); box-shadow: 0 0 6px rgba(255, 194, 26, .55); }
.corsa-segs i.z-hot.on { background: var(--corsa-o); box-shadow: 0 0 6px rgba(255, 122, 26, .6); }
.corsa-segs i.z-red.on { background: var(--corsa-r); box-shadow: 0 0 9px rgba(255, 45, 45, .75); }
.corsa-scale { position: relative; height: 13px; margin: 3px 4px 0; font-size: 10px; font-weight: 500; line-height: 13px; color: rgba(255, 255, 255, .5); }
.corsa-scale span { position: absolute; left: var(--x); translate: -50% 0; }
.corsa-scale span.red { color: var(--corsa-r); }
.corsa-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; padding: 0 4px; }
.corsa-gear { position: relative; flex: none; width: 58px; height: 64px; display: grid; place-items: center; }
.corsa-gear::before, .corsa-gear::after, .corsa-ring {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.corsa-gear::before { background: var(--corsa-y); }
.corsa-gear::after { inset: 3px; background: linear-gradient(#1a1c20, #0d0e10); }
.corsa-ring { background: var(--corsa-y); opacity: 0; pointer-events: none; }
.corsa-gear-num { position: relative; z-index: 1; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.corsa-speed { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.corsa-speed b { font-size: 3.4rem; font-weight: 700; line-height: 1; min-width: 1.86em; text-align: right; }
.corsa-speed .d, .corsa-odo .d { display: inline-block; width: .62em; text-align: center; }
.corsa-unit { font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .6); }
.corsa-foot {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 12px;
  margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.corsa-odo { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.corsa-odo-label { font-family: var(--font-jp); font-size: .75rem; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.corsa-odo b { font-size: 1.25rem; font-weight: 700; min-width: 1.24em; text-align: right; }

@media (prefers-reduced-motion: no-preference) {
  .corsa.is-redline .corsa-segs i.on { animation: corsa-redline .1s step-end infinite; }
  .corsa.shift-up .corsa-gear-num { animation: corsa-gear-up .4s cubic-bezier(.2, .9, .3, 1.35); }
  .corsa.shift-up .corsa-gear::before { animation: corsa-flash .4s ease-out; }
  .corsa.shift-up .corsa-ring { animation: corsa-ring .5s ease-out; }
  .corsa.shift-up { animation: corsa-jolt .24s ease-out; }
  .corsa.shift-down .corsa-gear-num { animation: corsa-gear-down .28s var(--ease-out); }
}
@keyframes corsa-redline { 50% { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .9); } }
@keyframes corsa-gear-up {
  0% { transform: translateY(60%) scale(1.4); opacity: 0; filter: blur(2px); }
  55% { opacity: 1; filter: none; }
  100% { transform: none; opacity: 1; }
}
@keyframes corsa-gear-down { from { transform: translateY(-50%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes corsa-flash { from { background: #fff; } to { background: var(--corsa-y); } }
@keyframes corsa-ring { from { transform: scale(1); opacity: .85; } to { transform: scale(1.8); opacity: 0; } }
@keyframes corsa-jolt { 30% { transform: translateY(-2px); } 100% { transform: none; } }
.pedal-hint { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.6; }

.arrival {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: clamp(80px, 16vh, 160px) clamp(20px, 5vw, 64px) clamp(28px, 6vh, 56px);
  background: linear-gradient(rgba(10, 14, 22, 0), rgba(10, 14, 22, .78));
  visibility: hidden; pointer-events: none;
}
.arrival-card {
  color: #fff; max-width: 900px; margin: 0 auto;
  opacity: 0; transform: translateY(16px); transition: opacity .8s ease .9s, transform 1s var(--ease-out) .9s;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.arrival-card p { margin: 0; }
.arrival-title { font-weight: 700; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.3; letter-spacing: .02em; }
.arrival-card p:not(.arrival-title) { margin-top: 8px; font-size: clamp(1rem, 1.6vw, 1.15rem); opacity: .9; }
.arrival-again {
  margin-top: 22px; border: 1.5px solid rgba(255, 255, 255, .8); background: transparent; color: #fff;
  border-radius: 999px; padding: 9px 22px; font-weight: 700; cursor: pointer; pointer-events: auto;
  transition: background-color .2s ease, color .2s ease;
}
.arrival-again:hover { background: #fff; color: #16223a; }
.hero.is-arrived .arrival { visibility: visible; }
.hero.is-arrived .arrival-card { opacity: 1; transform: none; }
.hero.is-arrived .cockpit { opacity: 0; pointer-events: none; transition: opacity .4s ease; }

main {
  position: relative;
  padding-left: var(--gutter);
  padding-right: 16px;
}
.route {
  position: absolute; left: 0; top: 0;
  width: var(--gutter); height: 100%;
  overflow: visible; pointer-events: none;
}
.route path, .route-ramps path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-edge, .route-ramps .ramp-edge { stroke: rgba(236, 238, 232, .55); }
.route-road, .route-ramps .ramp-road { stroke: #1f2124; }
.route-center { stroke: rgba(236, 238, 232, .28); stroke-dasharray: 14 18; stroke-width: 2; }
.route-lit { stroke: var(--lane); stroke-width: 2.5; filter: drop-shadow(0 0 4px rgba(242, 179, 61, .6)); }

.car {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: var(--car-w, 20px); height: calc(var(--car-w, 20px) * 2.1);
  margin-left: calc(var(--car-w, 20px) / -2); margin-top: calc(var(--car-w, 20px) * -1.05);
  pointer-events: none; will-change: transform;
  opacity: 0; transition: opacity .4s ease;
}
.car svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }

.stage {
  position: relative; z-index: 2;
  max-width: var(--content);
  margin-left: clamp(16px, 4vw, 64px);
  padding-block: clamp(96px, 14vw, 180px) 0;
}
.stage-intro { margin: -24px 0 56px; font-size: 1.15rem; max-width: var(--measure); color: var(--muted); }

.block-title {
  margin: 0 0 18px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: .04em;
  display: flex; align-items: center; gap: 12px;
}
.block-title::before { content: ""; width: 22px; height: 3px; background: var(--lane); border-radius: 2px; flex: none; }

.profile { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.profile-text p { margin: 0 0 1em; max-width: var(--measure); }
.profile-text p:last-child { margin-bottom: 0; color: var(--muted); }
.statement {
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.5; letter-spacing: .02em;
}
.spec {
  margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--asphalt-deep);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7);
}
.spec div { padding: 20px 24px; display: grid; gap: 8px; align-content: start; }
.spec div:nth-child(2), .spec div:nth-child(4) { border-right: 1px solid var(--rule); }
.spec div:nth-child(n+2) { border-top: 1px solid var(--rule); }
.spec dt { color: var(--muted); font-size: .8rem; letter-spacing: .04em; line-height: 1.4; }
.spec dd { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.5; word-break: auto-phrase; }
.spec div:first-child { grid-column: 1 / -1; padding: 24px 24px 22px; }
.spec dd[lang="en"] { font-family: var(--font-latin); font-weight: 800; font-size: clamp(1.8rem, 2.8vw, 2.3rem); line-height: 1.1; letter-spacing: -.01em; }
.spec div:nth-child(n+5) { grid-column: 1 / -1; }
.spec div:nth-child(3) { grid-row: span 2; align-content: center; }
.spec .num { font-size: 3.4rem; font-weight: 800; line-height: 1; margin-right: 4px; color: var(--lane); }

.work-lead { max-width: 46em; margin-bottom: clamp(56px, 8vw, 96px); }
.work-lead h3 { margin: 0 0 16px; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.45; }
.work-lead p { margin: 0; max-width: var(--measure); }

.howto {
  background: var(--asphalt-deep);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: clamp(56px, 8vw, 96px);
}
.howto > p { max-width: var(--measure); margin: 0 0 36px; }
.ic-route {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
  counter-reset: ic;
}
.ic-route::before {
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 13px; height: 8px;
  background: var(--sign-green); border-radius: 4px;
}
.ic-route li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; counter-increment: ic; }
.ic-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 6px solid var(--sign-green);
  position: relative;
}
.ic-name { font-weight: 700; font-size: .98rem; line-height: 1.4; }
.ic-name::before { content: counter(ic) " "; font-family: var(--font-latin); font-weight: 800; color: var(--lane); }
@media (prefers-reduced-motion: no-preference) {
  .js .ic-route::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
  .js .ic-route li { opacity: 0; transition: opacity .5s ease; }
  .js .ic-route.is-in::before { transform: none; }
  .js .ic-route.is-in li { opacity: 1; }
  .js .ic-route.is-in li:nth-child(2) { transition-delay: .35s; }
  .js .ic-route.is-in li:nth-child(3) { transition-delay: .7s; }
  .js .ic-route.is-in li:nth-child(4) { transition-delay: 1.05s; }
}

.cases { border-top: 2px solid var(--paint); margin-bottom: clamp(64px, 9vw, 110px); }
.case { border-bottom: 1px solid var(--rule); }
.case summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 9em 1fr 32px; gap: 6px 24px; align-items: baseline;
  padding: 24px 4px;
}
.case summary::-webkit-details-marker { display: none; }
.case-kind {
  justify-self: start;
  font-size: .78rem; font-weight: 700; line-height: 1;
  padding: 7px 10px 6px; border-radius: 6px;
  background: var(--sign-green); color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--sign-green), inset 0 0 0 2.5px rgba(255, 255, 255, .8);
}
.case-name { font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; }
.case-desc { grid-column: 2; color: var(--muted); font-size: .95rem; max-width: var(--measure); }
.case-desc--line { max-width: none; }
.case-toggle { grid-column: 3; grid-row: 1; justify-self: end; width: 22px; height: 22px; position: relative; align-self: center; }
.case-toggle::before, .case-toggle::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2.5px; margin-top: -1.25px; background: var(--paint); border-radius: 2px;
  transition: transform .35s var(--ease-out);
}
.case-toggle::after { transform: rotate(90deg); }
.case[open] .case-toggle::after { transform: rotate(0); }
.case summary:hover .case-name { text-decoration: underline; text-decoration-color: var(--lane); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.case ul { margin: 0 0 28px calc(9em + 24px); padding: 0; list-style: none; max-width: var(--measure); }
.case li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.case li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 3px; background: var(--lane); border-radius: 2px; }

@supports (interpolate-size: allow-keywords) {
  .cases { interpolate-size: allow-keywords; }
  .case::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
  .case[open]::details-content { block-size: auto; }
  @media (prefers-reduced-motion: reduce) { .case::details-content { transition: none; } }
}

.previous {
  border-left: 4px solid var(--rule);
  padding-left: clamp(18px, 3vw, 36px);
  max-width: 50em;
}
.previous-company { margin: 0; color: var(--muted); }
.previous h4 { margin: 2px 0 12px; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; }
.previous > p { max-width: var(--measure); }
.previous ul:not(.chips) { padding-left: 1.2em; margin: 0 0 20px; }
.previous ul:not(.chips) li::marker { color: var(--lane); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--font-latin), var(--font-jp);
  font-weight: 600; font-size: .88rem; line-height: 1;
  padding: 8px 12px 7px; border: 1.5px solid var(--rule); border-radius: 999px;
}
.chips small { font-family: var(--font-jp); font-weight: 400; font-size: .74rem; margin-left: 6px; opacity: .72; }

#projects { max-width: 1360px; margin-right: clamp(16px, 4vw, 64px); }
.project {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 56px) clamp(24px, 3.5vw, 56px);
  align-items: start;
  margin-bottom: clamp(110px, 14vw, 200px);
}
.project-title { grid-column: 1 / -1; grid-row: 1; margin: 0 0 calc(clamp(32px, 4vw, 56px) * -0.5); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.35; }
.project-shot--wide { grid-column: 1 / -1; grid-row: 2; }
.project-text { grid-column: 1 / span 5; grid-row: 3; padding-top: 8px; }
.project-shot--sub { grid-column: 6 / -1; grid-row: 3 / span 2; }
.project-text--sub { grid-column: 1 / span 5; grid-row: 4; align-self: end; }
.project-title[lang="en"] { font-family: var(--font-latin); font-weight: 800; letter-spacing: -.01em; }
.project-text h4 { margin: 0 0 8px; font-size: 1.1rem; }
.project-text p { margin: 0 0 .8em; }
.project-why { font-weight: 700; }
.project-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.project-langs span { color: var(--muted); font-size: .8rem; letter-spacing: .04em; }

.zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 10px; overflow: hidden;
}
.zoom img { width: 100%; transition: transform .6s var(--ease-out); }
.zoom:hover img { transform: scale(1.03); }
.project-shot .zoom { box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -30px rgba(0, 0, 0, .8); }

.music-stage { grid-column: 1 / -1; grid-row: 2; position: relative; padding: 0 16% 12% 0; }
.music-pc { box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.music-phone {
  position: absolute; width: 17%; bottom: 0;
  border-radius: 22px; border: 5px solid #16181b;
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .8);
}
.music-phone--a { right: 16%; }
.music-phone--b { right: 0; bottom: 8%; }
.project--music .project-text { grid-column: 1 / span 7; grid-row: 3; }

.stage--offhours { padding-bottom: 8px; }
.window { position: relative; z-index: 3; margin-left: calc(var(--gutter) * -1); margin-right: -16px; }
.window-sticky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(#34476a 0%, #6f86a8 48%, #c9b6a6 70%, #3a3d42 70.2%, #2a2c30 100%);
}
.window-sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  border-radius: 48px;
  box-shadow: 0 0 0 40px var(--asphalt-deep), inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 80px rgba(0, 0, 0, .45);
}
.window-far {
  position: absolute; left: 0; bottom: 30%; height: 26%; width: 300%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V120L80 90 170 110 260 60 330 95 420 40 520 100 600 70 700 115 790 50 880 95 960 65 1060 105 1140 75 1200 95V200Z' fill='%234a5a78'/%3E%3Cpath d='M0 200V150L110 130 220 150 340 118 450 150 560 128 680 155 800 125 920 150 1040 132 1200 150V200Z' fill='%233b4a63'/%3E%3C/svg%3E") repeat-x 0 100% / 1200px 100%;
  will-change: transform;
}
.window-track {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: clamp(28px, 4vw, 64px);
  height: 100%;
  padding: 0 max(8vw, 72px);
  will-change: transform;
}
.window-car {
  display: none;
  position: absolute; left: 0; bottom: calc(7% + 30px); z-index: 3;
  width: clamp(200px, 20vw, 360px);
  pointer-events: none;
  will-change: transform;
}
.window-car-body { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .5)); }
.window-wheel { position: absolute; width: 15.833%; height: auto; will-change: transform; }
.window-wheel--rear { left: 10.417%; top: 49.675%; }
.window-wheel--front { left: 72.083%; top: 50.325%; }
.window.is-pinned .window-car { display: block; transform: translate3d(-100%, 0, 0); }
.window-rail {
  position: absolute; left: 0; right: 0; bottom: 7%; height: 46px; z-index: 3;
  background:
    linear-gradient(transparent 6px, #c7ccd1 6px, #c7ccd1 14px, #7e848a 14px, #7e848a 18px, transparent 18px),
    repeating-linear-gradient(90deg, transparent 0 116px, #6d7278 116px 124px);
  background-size: 100% 100%, 124px 100%;
  opacity: .9;
  will-change: background-position;
}

.board {
  flex: none; width: min(380px, 78vw);
  background: var(--sign-blue); color: #fff; border-radius: 12px;
  padding: 24px 26px 22px;
  box-shadow: inset 0 0 0 4px var(--sign-blue), inset 0 0 0 6.5px #fff, 0 24px 40px -18px rgba(0, 0, 0, .65);
  font-size: .95rem; line-height: 1.85;
}
.board h3 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.45; }
.board p { margin: 0 0 .6em; }
.board-hint { font-size: .85rem; opacity: .85; }
.board--intro, .board--wide { width: min(480px, 86vw); }

@media (min-width: 768px) {
  .nowrap-desk { white-space: nowrap; }
}
@media (min-width: 1100px) {
  .case-desc--line { white-space: nowrap; }
}
.snap { flex: none; margin: 0; }
.snap .zoom { border-radius: 8px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .75); }
.snap img { height: 100%; width: auto; max-width: none; object-fit: cover; }
.snap { width: min-content; }
.snap .zoom { height: var(--h); width: auto; }
.snap--xl { --h: min(56vh, 480px); }
.snap--tall { --h: min(50vh, 440px); }
.snap--mid { --h: min(40vh, 340px); }
.snap--wide { --h: min(38vh, 320px); }
.snap--high { align-self: center; translate: 0 -8vh; }
.snap--low { align-self: center; translate: 0 6vh; }
.snap figcaption { margin-top: 10px; font-size: .88rem; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

.window.is-pinned { height: var(--pin-h, 400vh); }
.window.is-pinned .window-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }

.window:not(.is-pinned) .window-sticky { padding-block: 64px 90px; }
.window:not(.is-pinned) .window-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 8vh; scrollbar-width: thin; }
.window:not(.is-pinned) .window-track > * { scroll-snap-align: center; }
.window:not(.is-pinned) .window-far { width: 100%; }

.posts { list-style: none; margin: 0 0 clamp(64px, 9vw, 110px); padding: 0; position: relative; max-width: 44em; }
.posts li {
  display: grid; grid-template-columns: 6.2em 1fr; gap: 24px; align-items: start;
  padding: 12px 0;
}
.kp {
  justify-self: start;
  background: #fff; color: var(--sign-green-deep);
  font-weight: 800; font-size: .95rem; line-height: 1;
  padding: 8px 10px 6px; border-radius: 4px;
  border-top: 5px solid var(--sign-green);
  box-shadow: 0 6px 0 -2px #7d838a;
  min-width: 5.6em; text-align: center;
}
.posts p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.posts small { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.posts-now .kp { background: var(--lane); color: #1e1f22; border-top-color: #c98d17; font-family: var(--font-jp); }

.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.skills > div:last-child { grid-column: 1 / -1; }
.plain { margin: 0; padding-left: 1.1em; }
.plain li { margin-bottom: 8px; }
.plain li::marker { color: var(--lane); }

.goal {
  position: relative; z-index: 2;
  display: flex; gap: 28px; align-items: center;
  margin-left: clamp(16px, 4vw, 64px);
  padding: clamp(110px, 15vw, 190px) 0 clamp(120px, 14vw, 160px);
}
.goal-sign {
  flex: none; width: 96px; height: 96px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sign-blue); color: #fff;
  font-family: var(--font-latin); font-weight: 800; font-size: 3.6rem; line-height: 1; padding-top: 8px;
  box-shadow: inset 0 0 0 4px var(--sign-blue), inset 0 0 0 6.5px #fff;
}
.goal-text p { margin: 0; }
.goal-name { font-family: var(--font-latin); font-weight: 800; font-size: 1.6rem; }
.goal-back {
  display: inline-block; margin-top: 16px; padding: 10px 20px;
  background: var(--lane); color: #1e1f22; font-weight: 700; text-decoration: none; border-radius: 999px;
  transition: transform .2s ease;
}
.goal-back:hover { transform: translateY(-2px); }

.hud {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 4px 18px;
  padding: 10px 12px 12px 18px;
  background: rgba(22, 24, 27, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s ease, transform .35s var(--ease-out);
}
.hud.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hud p { margin: 0; }
.hud-speed { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-latin); }
.hud-speed b { font-size: 1.7rem; font-weight: 800; min-width: 2.2ch; text-align: right; line-height: 1; }
.hud-speed span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.hud-loc { display: grid; line-height: 1.35; min-width: 6.5em; }
.hud-label { font-size: .72rem; color: var(--muted); }
.hud-loc span:last-child { font-weight: 700; font-size: .95rem; }
.hud-menu-btn {
  border: 1.5px solid var(--paint); background: transparent; border-radius: 999px;
  padding: 5px 14px; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.hud-menu-btn[aria-expanded="true"] { background: var(--paint); color: var(--asphalt-deep); }
.hud-bar { grid-column: 1 / -1; height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 100%; background: var(--lane); transform-origin: left; transform: scaleX(0); }
.hud-menu {
  position: absolute; right: 0; bottom: calc(100% + 10px);
  display: grid; min-width: 200px; padding: 8px;
  background: var(--sign-green); border-radius: 12px;
  box-shadow: inset 0 0 0 3px var(--sign-green), inset 0 0 0 5px #fff, 0 20px 40px -16px rgba(0, 0, 0, .7);
}
.hud-menu[hidden] { display: none; }
.hud-menu a { color: #fff; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 8px; }
.hud-menu a:hover, .hud-menu a[aria-current="true"] { background: rgba(255, 255, 255, .16); }

.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--paint);
  max-width: 94vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(14, 15, 17, .9); }
.lightbox-img { max-width: 94vw; max-height: 82vh; width: auto; border-radius: 8px; }
.lightbox-cap { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.lightbox form { position: absolute; right: 0; top: -46px; }
.lightbox-close {
  border: 1.5px solid var(--paint); background: transparent; border-radius: 999px; padding: 4px 16px; font-weight: 700; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox-img { animation: zoom-in .45s var(--ease-out); }
  .lightbox[open]::backdrop { animation: fade .3s ease; }
}
@keyframes zoom-in { from { opacity: 0; transform: scale(.92); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 999px) {
  .sign--hero { grid-template-columns: 1fr; padding: 22px 22px 18px 24px; }
  .hero-id { padding-right: 0; padding-bottom: 14px; }
  .hero-tagline { display: none; }
  .hero-nav { border-left: 0; border-top: 2.5px solid #fff; padding: 8px 0 0; }
  .hero-nav a { padding: 5px 2px; }
}
@media (min-width: 1000px) {
  .cockpit { left: auto; right: 24px; bottom: clamp(14px, 3vh, 28px); translate: none; width: min(520px, 40vw); }
}
@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .music-stage { padding-right: 16%; }
  .skills { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 34px; }
  body { font-size: .95rem; }
  .stage { margin-left: 14px; }
  .goal { margin-left: 14px; flex-direction: column; align-items: flex-start; }
  .sign-post .sign { padding: 14px 64px 12px 20px; min-width: 0; }
  .sign-post .sign::after { right: 18px; width: 32px; height: 32px; margin-top: -16px; }
  .hero { min-height: 700px; }
  .hero-nav .dest-en { display: none; }
  .cockpit { grid-template-columns: 1fr auto; padding: 12px 14px; gap: 6px 14px; }
  .pedal { width: 64px; height: 76px; }
  .corsa { padding: 10px 12px 8px; }
  .corsa-segs { height: 20px; gap: 1.5px; }
  .corsa-body { gap: 12px; }
  .corsa-gear { width: 46px; height: 51px; }
  .corsa-gear-num { font-size: 1.9rem; }
  .corsa-speed b { font-size: 2.4rem; }
  .ic-route { grid-template-columns: 1fr; gap: 18px; }
  .ic-route::before { left: 13px; right: auto; top: 17px; bottom: 17px; width: 8px; height: auto; }
  .ic-route li { grid-template-columns: 34px 1fr; justify-items: start; align-items: center; text-align: left; gap: 14px; }
  @media (prefers-reduced-motion: no-preference) {
    .js .ic-route::before { transform: scaleY(0); transform-origin: top; }
  }
  .case summary { grid-template-columns: 1fr 28px; }
  .case-kind { grid-column: 1; }
  .case-name, .case-desc { grid-column: 1; }
  .case-toggle { grid-column: 2; grid-row: 1 / span 3; }
  .case ul { margin-left: 0; }
  .posts li { grid-template-columns: 1fr; gap: 6px; }
  .hud { left: 12px; right: 12px; bottom: 12px; grid-template-columns: auto 1fr auto; gap: 4px 12px; }
  .window-sticky::after { border-radius: 26px; box-shadow: 0 0 0 20px var(--asphalt-deep), inset 0 0 50px rgba(0, 0, 0, .45); }
  .snap--high, .snap--low { translate: none; }
}

@media (max-width: 359px) {
  .hero { min-height: 720px; }
  .cockpit { gap: 6px 10px; padding-inline: 12px; }
  .corsa { padding-inline: 8px; }
  .corsa-body { gap: 8px; }
  .corsa-gear { width: 40px; height: 44px; }
  .corsa-gear-num { font-size: 1.6rem; }
  .corsa-speed b { font-size: 2rem; }
}
