:root {
  --bg: #03060b; --sky: #0a1826; --deep: #10263a;
  --cyan: #5fe0f0; --ice: #8fd8ff; --ink: #dfeef5; --muted: rgba(223, 238, 245, 0.6);
  --font-en: 'JetBrains Mono', ui-monospace, monospace;
  --font-jp: 'Zen Kaku Gothic New', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); font-family: var(--font-jp); }
body { background: var(--bg); min-height: 100vh; overflow-x: hidden; }
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; }
#world-fallback { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 0; display: none; background: linear-gradient(180deg, #03060b 0%, #0a1826 55%, #10263a 100%); }
#world-fallback .layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease; }
#world-fallback .layer.active { opacity: 1; }
.world-still #world { display: none; }
.world-still #world-fallback { display: block; }
main { position: relative; z-index: 1; }
.stop { min-height: 190vh; padding: 12vh 7vw; }
.hero .name { font-family: var(--font-en); font-weight: 300; font-size: clamp(34px, 5vw, 76px); line-height: 1.1; text-shadow: 0 0 30px rgba(95, 224, 240, 0.25); }
.hero .jp { font-size: clamp(14px, 1.4vw, 20px); letter-spacing: 0.6em; margin-top: 14px; opacity: 0.8; }
.hero .tag { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.12em; margin-top: 22px; opacity: 0.65; }
.stop h2 { font-family: var(--font-en); font-weight: 300; font-size: 12px; letter-spacing: 0.4em; color: var(--cyan); }
.fade { position: fixed; z-index: 2; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.fade.show, .fade:focus-within { opacity: 1; transform: none; pointer-events: auto; }
.world-still .fade { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.hero .copy { top: 12vh; left: 7vw; }
.world-still .hero .copy { top: 0; left: 0; }
.stop .panel { left: 6vw; top: 18vh; width: min(420px, 38vw); max-height: 76vh; overflow-y: auto; padding: 28px 30px; background: rgba(3, 8, 16, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(95, 224, 240, 0.28); }
.world-still .stop .panel { top: 0; left: 0; width: min(420px, 100%); max-height: none; }
.stop .panel .ttl { font: 300 28px var(--font-en); letter-spacing: .06em; margin-top: 12px; }
.stop .panel .jp { font-size: 14px; letter-spacing: .5em; opacity: .75; margin-top: 6px; }
.stop .panel dl { display: grid; grid-template-columns: 7em 1fr; gap: 8px 12px; margin-top: 22px; font-size: 13px; }
.stop .panel dt { font: 300 11px var(--font-en); letter-spacing: .2em; color: var(--muted); padding-top: 2px; }
.stop .panel .bio { font-size: 13px; line-height: 1.9; margin-top: 18px; opacity: .85; }
.stop .panel .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stop .panel .tags span { font: 300 10px var(--font-en); letter-spacing: .2em; padding: 4px 10px; border: 1px solid rgba(95, 224, 240, .3); color: var(--muted); }
.stop .panel .onair { display: inline-block; margin-top: 18px; font: 300 11px var(--font-en); letter-spacing: .3em; padding: 4px 12px; border: 1px solid var(--cyan); color: var(--cyan); }
.stop .panel .onair.off { opacity: .25; }
.stop .panel .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.stop .panel .cards div { padding: 14px; border: 1px solid rgba(95, 224, 240, .22); background: rgba(95, 224, 240, .04); }
.stop .panel .cards h3 { font: 500 15px var(--font-jp); letter-spacing: .08em; }
.stop .panel .cards p { font-size: 12px; line-height: 1.7; opacity: .75; margin-top: 6px; }
.stop .panel .videos { margin-top: 20px; display: grid; gap: 10px; }
.stop .panel .videos a { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-size: 12px; line-height: 1.5; }
.stop .panel .videos a i { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, #1b2a55, #3b5a8a); }
.stop .panel .videos a:hover span, .stop .panel .videos a:focus-visible span { color: var(--cyan); }
.stop .panel .videos small { display: block; font: 300 10px var(--font-en); opacity: .6; letter-spacing: .1em; }
.stop .panel table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; }
.stop .panel td { padding: 7px 4px; border-bottom: 1px solid rgba(95, 224, 240, .14); }
.stop .panel td:first-child { font: 300 12px var(--font-en); color: var(--muted); letter-spacing: .1em; width: 6.5em; }
.stop .panel td:nth-child(2) { font: 500 13px var(--font-en); width: 4em; }
.stop .panel .note { margin-top: 12px; font-size: 11px; opacity: .6; }
.stop .panel .links { display: grid; gap: 8px; margin-top: 18px; }
.stop .panel .links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(95, 224, 240, .22); color: var(--ink); text-decoration: none; font: 500 13px var(--font-en); letter-spacing: .12em; }
.stop .panel .links a:hover, .stop .panel .links a:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.stop .panel .links svg { flex: none; color: var(--cyan); }
.stop .panel .links a.consult { border-color: rgba(95, 224, 240, .6); background: rgba(95, 224, 240, .08); font-family: var(--font-jp); letter-spacing: .08em; }
nav.site { position: fixed; top: 0; right: 0; z-index: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 28px; padding: 22px 7vw; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.3em; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a:focus-visible { color: var(--cyan); }
/* Portrait screens (same query as PORTRAIT_MQ in boot.js) use the bottom sheet, since their camera frames the motif in the upper half. */
@media (max-width: 640px), (max-aspect-ratio: 4/5) {
  nav.site { gap: 12px; padding: 16px; font-size: 10px; letter-spacing: 0.18em; }
  .stop { padding: 10vh 16px; }
  .hero .copy { top: 10vh; left: 16px; }
  .stop .panel { top: auto; bottom: 3vh; left: 12px; right: 12px; width: auto; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
  .world-still .stop .panel { bottom: 0; left: 0; right: 0; max-height: none; }
  .stop h2 { font-size: 10px; letter-spacing: .3em; }
  .stop .panel .ttl { font-size: 20px; margin-top: 6px; }
  .stop .panel .jp { font-size: 12px; letter-spacing: .3em; margin-top: 2px; }
  .stop .panel dl { grid-template-columns: 6.5em 1fr; gap: 3px 10px; margin-top: 10px; font-size: 12px; }
  .stop .panel dt { font-size: 10px; letter-spacing: .15em; }
  .stop .panel .bio { font-size: 12px; line-height: 1.6; margin-top: 8px; }
  .stop .panel .tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-top: 10px; }
  .stop .panel .tags span { flex: none; font-size: 9px; letter-spacing: .15em; padding: 3px 8px; }
  .stop .panel .onair { margin-top: 10px; font-size: 10px; padding: 3px 10px; }
  .stop .panel .cards { gap: 8px; margin-top: 10px; }
  .stop .panel .cards div { padding: 10px; }
  .stop .panel .cards h3 { font-size: 13px; }
  .stop .panel .cards p { font-size: 11px; line-height: 1.5; margin-top: 4px; }
  .stop .panel .videos { margin-top: 10px; gap: 8px; }
  .stop .panel .videos a { grid-template-columns: 64px 1fr; font-size: 11px; line-height: 1.4; }
  .stop .panel table { margin-top: 8px; font-size: 12px; }
  .stop .panel td { padding: 5px 3px; }
  .stop .panel td:first-child { font-size: 11px; letter-spacing: .04em; width: 5.8em; white-space: nowrap; }
  .stop .panel td:nth-child(2) { font-size: 12px; width: 3.6em; }
  .stop .panel .note { margin-top: 8px; font-size: 10px; }
  .stop .panel .links { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
  .stop .panel .links a { gap: 8px; padding: 9px 10px; font-size: 11px; letter-spacing: .08em; }
  .stop .panel .links a.consult { grid-column: 1 / -1; }
}
@media (max-width: 360px) { nav.site { font-size: 9px; gap: 10px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
