/* =========================================================
   YOTTA — AI Navigator · Character Intro (concept)
   Two phases: DAWN (pearl) / NIGHT (night city)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --font-hud: "Chakra Petch", "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  --font-en: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-sans: "Noto Sans TC", ui-sans-serif, system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;

  --topbar-h: 64px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  /* brand (fixed) */
  --yotta-blue: #1E40E6;
  --electric: #2F6BFF;
  --glow: #5FB8FF;
  --navy: #0A1A5C;
  --pearl: #E6EAF4;
  --night: #070D1F;
  --enemy: #FF2D8A;
  --plate: #E5E8EE;
  --sticker: #E6E9F1;
}

:root,
[data-phase="dawn"] {
  color-scheme: light;
  --bg-0: #F3F6FC;
  --bg-1: #E8EEF9;
  --bg-2: #DAE3F4;
  --ink: #0A1A5C;
  --ink-2: #3A4A80;
  --ink-3: #7380A8;
  --accent: #1E40E6;
  --line: rgba(10, 26, 92, .1);
  --line-2: rgba(10, 26, 92, .2);
  --glass: rgba(255, 255, 255, .55);
  --glass-2: rgba(255, 255, 255, .8);
  --glass-edge: rgba(255, 255, 255, .95);
  --shadow: 0 24px 60px -28px rgba(30, 64, 230, .38), 0 2px 6px rgba(10, 26, 92, .05);
  --word-fill: rgba(30, 64, 230, .05);
  --word-stroke: rgba(30, 64, 230, .26);
  --blob-a: rgba(95, 184, 255, .42);
  --blob-b: rgba(47, 107, 255, .18);
  --fade: 238, 242, 250;
  --spark: 47, 107, 255;
  --mark-y: url(#yGradBlue);
}

[data-phase="night"],
.tone-night {
  color-scheme: dark;
  --bg-0: #070D1F;
  --bg-1: #0A1430;
  --bg-2: #0F1D47;
  --ink: #EAF0FF;
  --ink-2: #AEBBE0;
  --ink-3: #7584B2;
  --accent: #5FB8FF;
  --line: rgba(174, 187, 224, .12);
  --line-2: rgba(174, 187, 224, .26);
  --glass: rgba(16, 28, 66, .5);
  --glass-2: rgba(18, 31, 74, .78);
  --glass-edge: rgba(95, 184, 255, .22);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(95, 184, 255, .04);
  --word-fill: rgba(95, 184, 255, .05);
  --word-stroke: rgba(95, 184, 255, .3);
  --blob-a: rgba(47, 107, 255, .32);
  --blob-b: rgba(95, 184, 255, .16);
  --fade: 7, 13, 31;
  --spark: 95, 184, 255;
  --mark-y: url(#yGradLight);
}
.tone-night { color: var(--ink); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }
/* author display rules (e.g. .menu { display: grid }) would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  background: radial-gradient(70% 55% at 50% 42%, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
  color: var(--ink);
  transition: opacity 1s var(--ease), visibility 1s, transform 1.2s var(--ease);
}
.loader.is-leaving { opacity: 0; visibility: hidden; transform: scale(1.08); pointer-events: none; }
.loader__core { position: relative; width: 220px; height: 220px; }
.loader__orbit, .loader__arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__orbit { animation: spin 22s linear infinite; }
.loader__orbit text { font: 600 11px var(--font-hud); fill: var(--ink-3); }
.loader__arc { transform: rotate(-90deg); }
.loader__track { fill: none; stroke: var(--line); stroke-width: 2; }
.loader__bar {
  fill: none; stroke: var(--electric); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(47, 107, 255, .7));
}
.loader__mark { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; translate: -50% -50%; color: var(--ink); animation: breathe 2.6s ease-in-out infinite; }
.loader__pct { font: 600 30px/1 var(--font-hud); letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; margin-top: 8px; }
.loader__pct small { font-size: 14px; margin-left: 2px; opacity: .7; }
.loader__status { font: 600 10.5px var(--font-hud); letter-spacing: .34em; color: var(--ink-3); }
.loader__gate { display: grid; justify-items: center; gap: 12px; margin-top: 22px; min-height: 112px; }
.loader__enter {
  position: relative; display: grid; justify-items: center; gap: 2px;
  padding: 14px 38px; border-radius: 99px;
  background: linear-gradient(135deg, var(--electric), var(--yotta-blue)); color: #fff;
  box-shadow: 0 16px 36px -12px rgba(30, 64, 230, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  opacity: 0; translate: 0 10px; pointer-events: none;
  transition: opacity .7s var(--ease), translate .7s var(--ease);
}
.loader__enter::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  border: 1px solid rgba(95, 184, 255, .7); opacity: 0;
}
.loader.is-ready .loader__enter { opacity: 1; translate: 0 0; pointer-events: auto; }
.loader.is-ready .loader__enter::after { animation: ping 2s var(--ease) infinite; }
.loader__enter-zh { font: 900 16px var(--font-serif); letter-spacing: .24em; margin-right: -.24em; }
.loader__enter-en { font: 600 9.5px var(--font-hud); letter-spacing: .42em; opacity: .8; margin-right: -.42em; }
.loader__sound {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  font: 600 10.5px var(--font-hud); letter-spacing: .2em; color: var(--ink-3);
  opacity: 0; transition: opacity .6s .25s, color .3s;
}
.loader__sound svg { width: 16px; height: 16px; }
.loader.is-ready .loader__sound { opacity: 1; }
.loader__sound[aria-pressed="true"] { color: var(--accent); }

/* ---------- Ambient ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-2) 100%); }
.ambient__blob { position: absolute; border-radius: 50%; }
.ambient__blob.a { width: 80vmax; height: 80vmax; right: -30vmax; top: -38vmax; background: radial-gradient(circle, var(--blob-a), transparent 62%); animation: drift 24s ease-in-out infinite alternate; }
.ambient__blob.b { width: 70vmax; height: 70vmax; left: -32vmax; bottom: -36vmax; background: radial-gradient(circle, var(--blob-b), transparent 62%); animation: drift 28s ease-in-out infinite alternate-reverse; }
.ambient__grid {
  position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 10%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 10%, transparent 80%);
}
#fx { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--topbar-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(var(--fade), .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .5s;
}
.topbar.is-solid::before { opacity: 1; }
.topbar.menu-open::before { opacity: 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; color: var(--ink); filter: drop-shadow(0 2px 8px rgba(var(--spark), .35)); }
.brand__text { display: grid; line-height: 1; }
.brand__text b { font: 700 17px var(--font-hud); letter-spacing: .26em; }
.brand__text small { font: 600 8px var(--font-hud); letter-spacing: .36em; color: var(--ink-3); margin-top: 4px; }
.topbar__right { display: flex; align-items: center; gap: 8px; }

/* phase switch */
.phase {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.phase__opt {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 11px; border-radius: 99px;
  font: 600 10.5px var(--font-hud); letter-spacing: .18em; color: var(--ink-3); transition: color .4s;
}
.phase__opt svg { width: 15px; height: 15px; flex: none; }
.phase__opt[aria-checked="true"] { color: #fff; }
.phase__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px;
  background: linear-gradient(135deg, var(--electric), var(--yotta-blue));
  box-shadow: 0 6px 16px -6px rgba(30, 64, 230, .8);
  transition: transform .7s var(--ease);
}
[data-phase="night"] .phase__thumb { transform: translateX(100%); }

.icon-btn, .burger {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--glass); border: 1px solid var(--line-2); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover, .burger:hover { transform: translateY(-1px); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.icon-btn .snd-on { display: none; }
.icon-btn[aria-pressed="true"] { background: linear-gradient(135deg, var(--electric), var(--yotta-blue)); border-color: transparent; color: #fff; }
.icon-btn[aria-pressed="true"] .snd-on { display: block; }
.icon-btn[aria-pressed="true"] .snd-off { display: none; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease), left .5s var(--ease); }
.burger i:first-child { top: 15px; }
.burger i:last-child { top: 22px; left: 17px; }
.burger[aria-expanded="true"] i:first-child { top: 18.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 18.5px; left: 12px; transform: rotate(-45deg); }

.pill {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 15px; border-radius: 99px;
  background: linear-gradient(135deg, var(--electric), var(--yotta-blue)); color: #fff;
  font: 700 13px var(--font-sans); letter-spacing: .14em;
  box-shadow: 0 10px 24px -10px rgba(30, 64, 230, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .3s var(--ease);
}
.pill:hover { transform: translateY(-1px); }
.pill svg { width: 17px; height: 17px; }
.pill__short { display: none; }

@media (max-width: 899px) {
  .topbar .pill { display: none; }
  .topbar .phase__opt span { display: none; }
  .topbar .phase__opt { width: 34px; padding: 0; }
  .brand__text small { display: none; }
}

/* ---------- Pager (desktop) ---------- */
.pager { display: none; }
@media (min-width: 900px) {
  .pager {
    position: fixed; right: calc(var(--gutter) * .5); top: 50%; translate: 0 -50%; z-index: 40;
    display: grid; justify-items: end; gap: 18px; color: var(--ink-3);
  }
  .pager ol { display: grid; gap: 2px; }
  .pager button { display: flex; align-items: center; gap: 10px; height: 26px; font: 600 10px var(--font-hud); letter-spacing: .22em; color: var(--ink-3); transition: color .3s; }
  .pager button::after { content: ""; width: 14px; height: 1.5px; background: currentColor; transition: width .6s var(--ease); }
  .pager__label { opacity: 0; translate: 6px 0; transition: opacity .4s, translate .4s var(--ease); }
  .pager button:hover .pager__label { opacity: 1; translate: 0 0; }
  .pager button:hover, .pager button[aria-current="true"] { color: var(--accent); }
  .pager button[aria-current="true"]::after { width: 34px; }
  .pager__count { font: 600 10px var(--font-hud); letter-spacing: .2em; }
  .pager__count b { color: var(--ink); font-size: 18px; letter-spacing: .04em; }
}

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; display: grid; place-items: center;
  background: rgba(var(--fade), .88);
  -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3);
  color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.menu.is-open { opacity: 1; pointer-events: auto; }
.menu__inner { display: grid; justify-items: center; gap: 30px; padding: var(--topbar-h) 24px 32px; }
.menu__list { display: grid; gap: 2px; text-align: center; }
.menu__list li { opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--i) * 45ms + 60ms); }
.menu.is-open .menu__list li { opacity: 1; translate: 0 0; }
.menu__list a { position: relative; display: grid; justify-items: center; padding: 8px 34px; }
.menu__list .no { position: absolute; left: 0; top: 14px; font: 600 10px var(--font-hud); letter-spacing: .1em; color: var(--accent); opacity: .7; }
.menu__list .zh { font: 900 clamp(21px, 2.6vw, 28px)/1.3 var(--font-serif); letter-spacing: .3em; margin-right: -.3em; transition: color .3s; }
.menu__list .en { font: 600 9px var(--font-hud); letter-spacing: .44em; color: var(--ink-3); margin-right: -.44em; }
.menu__list a:hover .zh, .menu__list a[aria-current="true"] .zh { color: var(--accent); }
.menu__list a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 1px; background: var(--accent); translate: -50% 0; transition: width .5s var(--ease); }
.menu__list a:hover::after, .menu__list a[aria-current="true"]::after { width: 40px; }
.menu__foot { display: grid; justify-items: center; gap: 18px; }
.menu__chat { display: flex; align-items: center; gap: 8px; font: 600 12px var(--font-hud); letter-spacing: .24em; color: var(--accent); }
.menu__chat svg { width: 16px; height: 16px; }

/* ---------- Scroller & sections ---------- */
.scroller {
  position: fixed; inset: 0; z-index: 2;
  overflow-x: hidden; overflow-y: auto;
  scroll-snap-type: y mandatory; overscroll-behavior: none;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.sec { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; isolation: isolate; }
.sec-inner {
  position: relative; z-index: 2; height: 100%;
  padding: calc(var(--topbar-h) + 12px) var(--gutter) 22px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 900px) {
  .sec-inner { padding: calc(var(--topbar-h) + 3.5vh) calc(var(--gutter) + 70px) 5vh var(--gutter); gap: 2.4vh; }
}

.sec-head { display: grid; gap: 4px; }
.sec-head__meta { display: flex; align-items: center; gap: 10px; font: 600 10.5px var(--font-hud); letter-spacing: .34em; color: var(--ink-3); }
.sec-head__meta b { font: 700 13px var(--font-hud); letter-spacing: .08em; color: var(--accent); }
.sec-head__meta i { width: 34px; height: 1px; background: var(--line-2); }
.sec-head__title { font: 900 clamp(26px, 3.2vw, 44px)/1.2 var(--font-serif); letter-spacing: .14em; }

.bigword {
  position: absolute; z-index: 1; right: -.05em; top: calc(var(--topbar-h) - .5vh);
  font: italic 300 clamp(104px, 20vw, 340px)/.8 var(--font-en); letter-spacing: -.02em;
  color: var(--word-fill); -webkit-text-stroke: 1px var(--word-stroke);
  white-space: nowrap; pointer-events: none; user-select: none;
  opacity: 0; translate: 8% 0; transition: opacity 1.4s var(--ease), translate 1.8s var(--ease);
}
.is-entered .is-in .bigword { opacity: 1; translate: 0 0; }

/* reveal */
.rv { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
.is-entered .is-in .rv { opacity: 1; translate: 0 0; transition-delay: calc(var(--d, 0s) + .12s); }

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 99px; overflow: hidden; white-space: nowrap;
  font: 700 14px var(--font-sans); letter-spacing: .14em;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  color: #fff; background: linear-gradient(135deg, var(--electric) 0%, var(--yotta-blue) 100%);
  box-shadow: 0 16px 32px -14px rgba(30, 64, 230, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  translate: -120% 0; transition: translate .9s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:hover::before { translate: 120% 0; }
.btn--ghost {
  color: var(--ink); background: var(--glass); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.hud-corner { position: absolute; z-index: 3; width: 18px; height: 18px; border: 0 solid var(--accent); pointer-events: none; }
.hud-corner.tl { top: var(--hc-t, 12px); left: var(--hc, 12px); border-top-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.tr { top: var(--hc-t, 12px); right: var(--hc, 12px); border-top-width: 1.5px; border-right-width: 1.5px; }
.hud-corner.bl { bottom: var(--hc, 12px); left: var(--hc, 12px); border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.br { bottom: var(--hc, 12px); right: var(--hc, 12px); border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* =========================================================
   01 HERO
   ========================================================= */
.hero { color: var(--ink); }
.hero__bg, .hero__word, .hero__stats { display: none; }
.hero__frame { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-1); --hc-t: calc(var(--topbar-h) + 4px); }
.kv {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%;
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 1.8s var(--ease);
  pointer-events: none;
}
.kv.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(var(--fade), .55) 0%, rgba(var(--fade), 0) 15%,
    rgba(var(--fade), 0) 38%, rgba(var(--fade), .5) 55%,
    rgba(var(--fade), .9) 72%, rgba(var(--fade), 1) 100%);
}
.hero__frame .hud-corner.bl, .hero__frame .hud-corner.br { display: none; }
.hero__tag { position: absolute; z-index: 3; top: calc(var(--topbar-h) + 10px); font: 600 9.5px var(--font-hud); letter-spacing: .24em; color: var(--ink-2); }
.hero__tag b { color: var(--accent); font-weight: 600; }
.hero__tag--tl { left: 38px; }
.hero__tag--tr { right: 38px; }
.hero__tag--tl { display: flex; align-items: center; gap: 6px; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); animation: blink 1.8s infinite; }

.hero__rings {
  position: absolute; z-index: 1; left: 50%; top: 27%; width: min(132vw, 640px);
  translate: -50% -50%; pointer-events: none; opacity: .55; overflow: visible;
}
.hero__rings circle { fill: none; stroke: var(--glow); stroke-width: .8; transform-box: fill-box; transform-origin: center; }
.hero__rings .r1 { stroke-dasharray: 2 10; animation: spin 50s linear infinite; }
.hero__rings .r2 { stroke-dasharray: 90 30 4 30; stroke-width: 1; animation: spin 30s linear infinite reverse; }
.hero__rings .r3 { stroke-dasharray: 1 7; opacity: .7; animation: spin 70s linear infinite; }

.hero__dock { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 54px; display: grid; gap: 14px; }
.hero__copy { display: grid; gap: 4px; }
.kicker { display: flex; align-items: center; gap: 9px; font: 600 10.5px var(--font-hud); letter-spacing: .32em; color: var(--accent); }
.kicker__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(var(--spark), .18); animation: blink 1.8s infinite; }
.hero__name {
  font: 700 clamp(58px, 17vw, 88px)/.92 var(--font-hud); letter-spacing: .08em; margin: 4px 0 2px;
  background: linear-gradient(100deg, var(--ink) 25%, var(--accent) 62%, var(--glow) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tagline { font: 900 21px/1.4 var(--font-serif); letter-spacing: .16em; }
.hero__tagline br { display: none; }
.hero__sub { font: italic 400 17px var(--font-en); color: var(--ink-2); letter-spacing: .04em; }
.hero__ctas { display: flex; gap: 10px; margin-top: 10px; }
.hero__ctas .btn--primary { flex: 1; }

.channel {
  display: flex; align-items: center; gap: 12px; padding: 7px 16px 7px 7px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.channel__btns { display: flex; align-items: center; gap: 2px; }
.channel__btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .3s; }
.channel__btn:hover { background: rgba(var(--spark), .14); }
.channel__btn svg { width: 15px; height: 15px; grid-area: 1 / 1; }
.channel__btn--main { width: 40px; height: 40px; background: var(--ink); color: rgb(var(--fade)); }
.channel__btn--main:hover { background: var(--accent); color: #fff; }
.channel__btn--main svg { width: 17px; height: 17px; }
.channel .ic-play { display: none; }
.channel.is-paused .ic-play { display: block; }
.channel.is-paused .ic-pause { display: none; }
.channel__meta { flex: 1; min-width: 0; display: grid; gap: 7px; }
.channel__label { display: flex; gap: 10px; font: 600 10.5px var(--font-hud); letter-spacing: .2em; white-space: nowrap; }
.channel__label b { color: var(--accent); font-weight: 600; }
.channel__bar { position: relative; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.channel__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--electric), var(--glow)); transform-origin: left; transform: scaleX(0); }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 10px; translate: -50% 0; display: grid; justify-items: center; gap: 6px; font: 600 8.5px var(--font-hud); letter-spacing: .42em; color: var(--ink-3); }
.scroll-cue span { margin-right: -.42em; }
.scroll-cue i { width: 1px; height: 20px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: cue 1.9s var(--ease-io) infinite; }

@media (min-width: 900px) {
  .hero { --fh: calc(100vh - var(--topbar-h) - 10vh); --fw: calc(var(--fh) * 9 / 16); }
  .hero__bg { display: block; position: absolute; inset: -5%; z-index: 0; }
  .bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
  .bgv.is-active { opacity: .95; }
  .hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 34% 60% at 50% 46%, rgba(var(--fade), .05), rgba(var(--fade), .7) 72%, rgba(var(--fade), .94) 100%),
      linear-gradient(180deg, rgba(var(--fade), .2), rgba(var(--fade), .55));
  }
  .hero__word {
    display: flex; position: absolute; z-index: 1; left: 50%; top: 47%; translate: -50% -50%;
    font: 700 clamp(170px, 24vw, 430px)/.8 var(--font-hud); letter-spacing: .03em;
    color: var(--word-fill); -webkit-text-stroke: 1.5px var(--word-stroke);
    white-space: nowrap; pointer-events: none; user-select: none;
  }
  .hero__word span { display: inline-block; opacity: 0; translate: 0 35%; transition: opacity 1s var(--ease), translate 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + .3s); }
  .is-entered .hero.is-in .hero__word span { opacity: 1; translate: 0 0; }

  .hero__frame {
    inset: auto; left: 50%; top: calc(var(--topbar-h) + 3vh); width: var(--fw); height: var(--fh);
    translate: -50% 0; z-index: 2; border-radius: 28px; --hc-t: 14px; --hc: 14px;
    box-shadow: 0 60px 120px -50px rgba(10, 26, 92, .6), 0 0 0 1px var(--glass-edge), 0 0 80px -20px rgba(var(--spark), .45);
    clip-path: inset(6% 6% 6% 6% round 28px);
    transition: clip-path 1.6s var(--ease);
  }
  .is-entered .hero.is-in .hero__frame { clip-path: inset(0 0 0 0 round 28px); }
  .hero__frame .hud-corner.bl, .hero__frame .hud-corner.br { display: block; }
  .hero__shade { background: linear-gradient(180deg, transparent 62%, rgba(var(--fade), .3) 100%); }
  .hero__tag { top: 16px; }
  .hero__tag--tl { left: 40px; }
  .hero__tag--tr { right: 40px; }
  .hero__rings { top: calc(var(--topbar-h) + 3vh + var(--fh) * .25); width: calc(var(--fw) * 1.75); opacity: .7; }

  .hero__dock {
    left: var(--gutter); right: calc(var(--gutter) + 70px); bottom: 7vh;
    grid-template-columns: minmax(0, 1fr) calc(var(--fw) + 7vw) minmax(0, 1fr); align-items: end; gap: 0;
  }
  .hero__copy { grid-column: 1; gap: 8px; max-width: 440px; }
  .hero__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero__tagline { font-size: clamp(30px, 2.8vw, 48px); line-height: 1.32; margin: 6px 0 2px; }
  .hero__tagline br { display: inline; }
  .hero__sub { font-size: 20px; }
  .hero__ctas { margin-top: 18px; }
  .hero__ctas .btn--primary { flex: none; }
  .hero__side { grid-column: 3; justify-self: end; display: grid; gap: 26px; width: min(100%, 320px); }
  .hero__stats { display: grid; gap: 10px; font: 600 10.5px var(--font-hud); letter-spacing: .22em; }
  .hero__stats div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 9px; border-bottom: 1px solid var(--line-2); }
  .hero__stats dt { color: var(--ink-3); }
  .hero__stats dd { display: flex; align-items: center; gap: 8px; color: var(--ink); }
  .scroll-cue { bottom: 1.6vh; }
}
/* narrower desktops: frame moves right, copy stacks left */
@media (min-width: 900px) and (max-width: 1279px) {
  .hero__frame { left: auto; right: calc(var(--gutter) + 80px); translate: 0 0; }
  .hero__rings { left: auto; right: calc(var(--gutter) + 80px + var(--fw) / 2); translate: 50% -50%; }
  .hero__word { left: 46%; }
  .hero__dock { grid-template-columns: minmax(0, 1fr) calc(var(--fw) + 120px); row-gap: 22px; }
  .hero__side { grid-column: 1; justify-self: start; width: min(100%, 380px); }
  .hero__stats { display: none; }
}

/* =========================================================
   02 PROFILE
   ========================================================= */
.profile__art { display: none; }
.profile__inner { gap: 16px; }

.idcard {
  position: relative; border-radius: 22px; padding: 14px 16px 14px;
  background: linear-gradient(150deg, var(--glass-2), var(--glass));
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow); overflow: hidden;
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease), opacity .9s var(--ease), translate 1.1s var(--ease);
}
.idcard::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--electric), var(--glow));
}
.idcard__holo {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background:
    radial-gradient(circle at var(--mx, 25%) var(--my, 15%), rgba(255, 255, 255, .7), transparent 42%),
    linear-gradient(115deg, transparent 22%, rgba(95, 184, 255, .35) 36%, rgba(52, 211, 153, .22) 46%, transparent 60%);
}
.idcard__top { display: flex; align-items: center; gap: 8px; padding-bottom: 11px; border-bottom: 1px dashed var(--line-2); font: 600 9px var(--font-hud); letter-spacing: .24em; color: var(--ink-3); }
.idcard__mark { width: 22px; height: 22px; color: var(--ink); flex: none; }
.idcard__no { margin-left: auto; font: 700 11px var(--font-hud); letter-spacing: .12em; color: var(--accent); }
.idcard__body { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 14px 0 12px; }
.idcard__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #E4E9F5; box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -14px rgba(10, 26, 92, .5); }
.idcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: opacity .25s, transform .5s var(--ease); }
.idcard__photo img.is-swapping { opacity: 0; transform: scale(1.06); }
.idcard__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px; font: 600 8px var(--font-hud); letter-spacing: .18em; color: #fff; background: linear-gradient(transparent, rgba(10, 26, 92, .78)); }
.idcard__label { font: 600 8.5px var(--font-hud); letter-spacing: .3em; color: var(--ink-3); }
.idcard__name { font: 700 34px/1 var(--font-hud); letter-spacing: .14em; margin: 3px 0 6px; }
.idcard__quote { font: 600 12.5px var(--font-serif); letter-spacing: .06em; color: var(--accent); margin-bottom: 9px; }
.idcard__stats { display: grid; gap: 3px; }
.idcard__stats div { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: baseline; font-size: 12.5px; }
.idcard__stats dt { font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.idcard__stats dd { font-weight: 500; }
.idcard__foot { display: grid; gap: 4px; padding-top: 11px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.idcard__foot p { display: grid; grid-template-columns: 38px minmax(0, 1fr); }
.idcard__foot span { font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.idcard__barcode {
  height: 22px; margin-top: 6px; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px);
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent);
}

.moods { display: grid; gap: 8px; margin-top: auto; }
.moods__title { display: flex; justify-content: space-between; align-items: baseline; font: 600 9px var(--font-hud); letter-spacing: .3em; color: var(--ink-3); }
.moods__title span { font: 400 10.5px var(--font-sans); letter-spacing: .1em; }
.moods__list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.mood { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #E4E9F5; opacity: .55; box-shadow: 0 0 0 1.5px var(--glass-edge), 0 6px 12px -8px rgba(10, 26, 92, .55); transition: opacity .3s, transform .35s var(--ease), box-shadow .3s; }
.mood img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.4); transform-origin: 50% 28%; }
.mood:hover { opacity: .9; transform: translateY(-2px); }
.mood[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--accent), 0 8px 16px -8px rgba(30, 64, 230, .8); }

.dialog {
  position: relative; margin-top: 12px; min-height: 112px; padding: 24px 18px 30px; border-radius: 18px; cursor: pointer; user-select: none;
  background: var(--glass-2); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: border-color .3s, opacity .9s var(--ease), translate 1.1s var(--ease);
}
.dialog:hover { border-color: var(--accent); }
.dialog__name {
  position: absolute; left: 16px; top: -12px; padding: 4px 16px; border-radius: 6px;
  background: linear-gradient(135deg, var(--electric), var(--yotta-blue)); color: #fff;
  font: 700 11px var(--font-hud); letter-spacing: .32em; box-shadow: 0 8px 18px -8px rgba(30, 64, 230, .9);
}
.dialog__text { min-height: 3.4em; font: 500 15px/1.7 var(--font-sans); letter-spacing: .05em; }
.dialog__text .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.dialog__meta { position: absolute; right: 16px; bottom: 10px; display: flex; align-items: center; gap: 10px; font: 600 9.5px var(--font-hud); letter-spacing: .2em; color: var(--ink-3); }
.dialog__next { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--accent); opacity: 0; transition: opacity .3s; animation: bob 1.2s ease-in-out infinite; }
.dialog.is-done .dialog__next { opacity: 1; }

@media (min-width: 900px) {
  .profile__art {
    display: block; position: absolute; z-index: 1; bottom: 0; left: max(1vw, calc(50% - 720px));
    width: 44%; height: 94%;
  }
  .profile__art img {
    position: absolute; left: 50%; bottom: -2%; height: 100%; width: auto; max-width: none; translate: -50% 0; z-index: 2;
    filter: drop-shadow(0 30px 50px rgba(10, 26, 92, .28));
    opacity: 0; transition: opacity 1.2s var(--ease), translate 1.6s var(--ease);
    translate: -42% 0;
  }
  .is-entered .profile.is-in .profile__art img { opacity: 1; translate: -50% 0; }
  .profile__halo { position: absolute; left: 50%; top: 30%; width: 80%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--spark), .38), transparent 66%); }
  .profile__ring { position: absolute; left: 50%; top: 30%; width: 96%; translate: -50% -50%; overflow: visible; }
  .profile__ring circle { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 9; transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
  .profile__ring circle + circle { stroke-dasharray: 120 40 6 40; stroke: rgba(var(--spark), .4); animation-direction: reverse; animation-duration: 40s; }
  .profile__vert { position: absolute; left: 6%; top: 12%; writing-mode: vertical-rl; font: 600 10px var(--font-hud); letter-spacing: .5em; color: var(--ink-3); }

  .profile__inner { padding-left: calc(max(1vw, 50% - 720px) + 44% + 1vw); padding-right: calc(var(--gutter) + 90px); max-width: none; justify-content: center; gap: 3vh; }
  .profile__inner > * { max-width: 600px; width: 100%; }
  .idcard { padding: 18px 22px; }
  .idcard__body { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 18px 0 16px; }
  .idcard__name { font-size: 46px; }
  .idcard__quote { font-size: 14px; }
  .idcard__stats div, .idcard__foot { font-size: 13.5px; }
  .idcard__stats div { grid-template-columns: 72px minmax(0, 1fr); }
  .idcard__foot p { grid-template-columns: 44px minmax(0, 1fr); }
  .moods { margin-top: 0; }
  .moods__list { gap: 10px; }
  .dialog { margin-top: 10px; padding: 28px 24px 30px; }
  .dialog__text { font-size: 16.5px; }
}

/* =========================================================
   03 DESIGN
   ========================================================= */
.design__inner { gap: 12px; }
.viewer { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.viewer__plate {
  position: relative; flex: 1 1 auto; min-height: 0; padding: 14px 0 22px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, #F1F3F7, var(--plate) 72%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), 0 0 70px -30px rgba(var(--spark), .55);
  touch-action: pan-y; cursor: grab;
}
.viewer__plate.is-drag { cursor: grabbing; }
.viewer__plate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(10, 26, 92, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 26, 92, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 25%, #000 80%); mask-image: radial-gradient(ellipse at center, transparent 25%, #000 80%);
}
.viewer__plate::after { content: ""; position: absolute; left: 50%; bottom: 16px; width: 46%; height: 14px; translate: -50% 0; border-radius: 50%; background: radial-gradient(rgba(10, 26, 92, .18), transparent 70%); pointer-events: none; }
.viewer__label { position: absolute; z-index: 2; font: 600 8.5px/1.5 var(--font-hud); letter-spacing: .26em; color: rgba(10, 26, 92, .5); pointer-events: none; }
.viewer__label b { font-size: 15px; letter-spacing: .08em; color: #1E40E6; }
.viewer__label--tl { left: 14px; top: 12px; }
.viewer__label--tr { right: 14px; top: 12px; color: #1E40E6; }
.viewer__label--bl { left: 50%; bottom: 6px; translate: -50% 0; white-space: nowrap; font-size: 8px; }
.viewer__fig { position: relative; z-index: 1; height: 100%; aspect-ratio: 384 / 965; margin: 0 auto; }
.viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.97); transition: opacity .45s var(--ease), transform .7s var(--ease); pointer-events: none; user-select: none; }
.viewer__img.is-active { opacity: 1; transform: none; }
.hotspots { position: absolute; inset: 0; transition: opacity .35s; }
.viewer:not([data-view="0"]) .hotspots { opacity: 0; pointer-events: none; }
.hs {
  position: absolute; left: var(--x); top: var(--y); width: 22px; height: 22px; translate: -50% -50%; border-radius: 50%;
  display: grid; place-items: center; font: 700 9.5px var(--font-hud); color: #1E40E6;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1.5px #1E40E6, 0 4px 10px rgba(10, 26, 92, .3);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.hs::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.hs::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid #2F6BFF; opacity: 0; animation: ping 2.4s var(--ease) infinite; animation-delay: calc(var(--i) * .22s); pointer-events: none; }
.hs:hover { transform: scale(1.12); }
.hs[aria-pressed="true"] { background: #1E40E6; color: #fff; transform: scale(1.18); box-shadow: 0 0 0 3px rgba(95, 184, 255, .5), 0 6px 14px rgba(30, 64, 230, .5); }

.viewer__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line-2); }
.viewer__tabs button { height: 30px; border-radius: 99px; font: 600 10px var(--font-hud); letter-spacing: .2em; color: var(--ink-3); transition: background .3s, color .3s; }
.viewer__tabs button[aria-selected="true"] { background: var(--ink); color: rgb(var(--fade)); }

.design__info { display: flex; flex-direction: column; gap: 12px; }
.detail {
  padding: 14px 16px; border-radius: 18px;
  background: var(--glass-2); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.detail__top { display: flex; align-items: center; justify-content: space-between; }
.detail__no { font: 700 24px/1 var(--font-hud); letter-spacing: .04em; color: var(--accent); }
.detail__no small { font-size: 11px; color: var(--ink-3); margin-left: 4px; letter-spacing: .1em; }
.detail__nav { display: flex; gap: 6px; }
.detail__btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color .3s, background .3s; }
.detail__btn:hover { border-color: var(--accent); background: rgba(var(--spark), .1); }
.detail__btn svg { width: 16px; height: 16px; }
.detail__title { font: 900 18px/1.3 var(--font-serif); letter-spacing: .12em; margin-top: 6px; }
.detail__en { font: 600 9px var(--font-hud); letter-spacing: .3em; color: var(--ink-3); margin: 2px 0 6px; }
.detail__desc { min-height: calc(1.7em * 3); font-size: 13px; line-height: 1.7; color: var(--ink-2); }

.parts { display: none; }
.palette__title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font: 600 9px var(--font-hud); letter-spacing: .3em; color: var(--ink-3); }
.palette__title span { font-family: var(--font-sans); letter-spacing: .1em; font-size: 10.5px; }
.palette__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch { width: 100%; display: grid; justify-items: center; gap: 6px; text-align: left; }
.swatch__chip { width: 100%; max-width: 46px; aspect-ratio: 1; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 16px -8px rgba(10, 26, 92, .45); transition: transform .35s var(--ease); }
.swatch:hover .swatch__chip { transform: translateY(-3px); }
.swatch__name, .swatch__hex { display: none; }

@media (min-width: 900px) {
  .design__inner { display: grid; grid-template-columns: minmax(320px, 42%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 2.4vh 4vw; }
  .design__inner .sec-head { grid-column: 1 / -1; }
  .viewer { grid-column: 1; grid-row: 2; }
  .design__info { grid-column: 2; grid-row: 2; justify-content: center; gap: 2.6vh; max-width: 580px; min-height: 0; }
  .viewer__label { font-size: 9.5px; }
  .viewer__label--tl, .viewer__label--tr { top: 18px; }
  .viewer__label--tl { left: 20px; }
  .viewer__label--tr { right: 20px; }
  .viewer__label--bl { font-size: 9px; bottom: 10px; }
  .viewer__plate { padding: 26px 0 32px; }
  .hs { width: 26px; height: 26px; font-size: 10.5px; }
  .detail { padding: 22px 26px; }
  .detail__no { font-size: 34px; }
  .detail__title { font-size: 24px; margin-top: 10px; }
  .detail__desc { font-size: 14.5px; }
  .parts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .parts button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); text-align: left; transition: color .3s, padding .3s var(--ease); }
  .parts b { font: 600 10px var(--font-hud); letter-spacing: .1em; color: var(--ink-3); }
  .parts button:hover { color: var(--ink); padding-left: 6px; }
  .parts button[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
  .parts button[aria-pressed="true"] b { color: var(--accent); }
  .palette__list { gap: 10px; }
  .swatch { justify-items: stretch; gap: 2px; }
  .swatch__chip { max-width: none; aspect-ratio: auto; height: 44px; margin-bottom: 6px; }
  .swatch__name { display: block; font: 600 9.5px var(--font-hud); letter-spacing: .08em; color: var(--ink); }
  .swatch__hex { display: block; font: 500 9.5px var(--font-hud); letter-spacing: .1em; color: var(--ink-3); }
}

/* =========================================================
   04 SKILLS
   ========================================================= */
.skills { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 14px; }
.skills__stage {
  position: relative; min-height: 0; border-radius: 20px; overflow: hidden; background: #050B1E;
  box-shadow: var(--shadow), 0 0 0 1px rgba(95, 184, 255, .15); touch-action: pan-y; --hc: 12px;
}
.skills__stage .hud-corner { border-color: #5FB8FF; }
.skills__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; opacity: 0; transform: scale(1.1); transition: opacity .8s var(--ease), transform 1.6s var(--ease); user-select: none; -webkit-user-drag: none; }
.skills__img.is-active { opacity: 1; transform: scale(1); }
.skills__num { position: absolute; z-index: 2; right: 18px; bottom: -6px; font: italic 300 110px/1 var(--font-en); color: rgba(255, 255, 255, .08); -webkit-text-stroke: 1px rgba(95, 184, 255, .45); pointer-events: none; }
.skills__scan { position: absolute; left: 0; right: 0; top: 0; height: 35%; z-index: 1; background: linear-gradient(180deg, transparent, rgba(95, 184, 255, .14) 60%, rgba(95, 184, 255, .35) 99%, transparent); animation: scan 4.5s linear infinite; pointer-events: none; mix-blend-mode: screen; }
.skills__type { font: 600 9.5px var(--font-hud); letter-spacing: .32em; color: var(--accent); }
.skills__name { font: 900 25px/1.25 var(--font-serif); letter-spacing: .12em; margin-top: 4px; }
.skills__en { font: 600 10px var(--font-hud); letter-spacing: .32em; color: var(--ink-3); margin-top: 2px; }
.skills__desc { min-height: calc(1.75em * 3); margin-top: 8px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.skills__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.skill { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #050B1E; opacity: .5; text-align: left; transition: opacity .35s, box-shadow .35s; }
.skill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.skill__no { position: absolute; z-index: 1; left: 7px; top: 5px; font: 700 10px var(--font-hud); color: #fff; }
.skill__name { display: none; }
.skill__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); }
.skill__bar i { position: absolute; inset: 0; background: var(--glow); transform-origin: left; transform: scaleX(0); }
.skill:hover { opacity: .8; }
.skill[aria-selected="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.skill[aria-selected="true"] .skill__bar i { animation: fillbar 6.5s linear forwards; }
.skills.is-paused .skill[aria-selected="true"] .skill__bar i { animation-play-state: paused; }

@media (min-width: 900px) {
  .skills { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 4.5vw; row-gap: 3vh; }
  .skills__stage { grid-column: 1; grid-row: 1 / 3; height: 100%; aspect-ratio: 1; max-width: 46vw; justify-self: start; }
  .skills__detail { grid-column: 2; grid-row: 1; align-self: end; max-width: 540px; }
  .skills__list { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; gap: 0; max-width: 540px; }
  .skills__name { font-size: clamp(30px, 3vw, 44px); margin-top: 8px; }
  .skills__en { font-size: 11px; }
  .skills__desc { font-size: 15px; margin-top: 14px; }
  .skills__num { font-size: 200px; right: 26px; bottom: -14px; }
  .skill { aspect-ratio: auto; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; padding: 15px 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line-2); opacity: .55; }
  .skill img { display: none; }
  .skill__no { position: static; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
  .skill__name { display: block; font: 700 17px var(--font-serif); letter-spacing: .14em; color: var(--ink); }
  .skill__bar { top: auto; bottom: -1px; height: 1.5px; background: transparent; }
  .skill__bar i { background: linear-gradient(90deg, var(--electric), var(--glow)); }
  .skill[aria-selected="true"] { box-shadow: none; }
  .skill[aria-selected="true"] .skill__no { color: var(--accent); }
}

/* =========================================================
   05 GALLERY
   ========================================================= */
.gallery__inner { gap: 12px; }
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-2); }
.tabs button { display: grid; justify-items: center; padding: 6px 0 9px; color: var(--ink-3); transition: color .3s; }
.tabs b { font: 900 15px var(--font-serif); letter-spacing: .22em; margin-right: -.22em; }
.tabs small { font: 600 8px var(--font-hud); letter-spacing: .32em; margin-right: -.32em; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs__ink { position: absolute; left: 0; bottom: -1px; width: calc(100% / 3); height: 2px; background: linear-gradient(90deg, var(--electric), var(--glow)); transform: translateX(calc(var(--t, 0) * 100%)); transition: transform .6s var(--ease); }
.panels { position: relative; flex: 1 1 auto; min-height: 0; }
.panel { height: 100%; }
.panel.is-active { animation: panelIn .7s var(--ease) both; }

.vgrid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 10px; height: 100%; }
.vgrid li { min-height: 0; }
.vcard { position: relative; display: block; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); text-align: left; }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.1s var(--ease); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 13, 31, .86)); }
.vcard:hover img { transform: scale(1.06); }
.vcard__play { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .45s var(--ease), background .3s; }
.vcard__play svg { width: 18px; height: 18px; margin-left: 2px; }
.vcard:hover .vcard__play { transform: scale(1.12); background: rgba(47, 107, 255, .75); }
.vcard__meta { position: absolute; z-index: 1; left: 12px; right: 56px; bottom: 10px; display: grid; color: #fff; }
.vcard__meta b { font: 900 14px var(--font-serif); letter-spacing: .1em; }
.vcard__meta small { font: 600 8.5px var(--font-hud); letter-spacing: .2em; opacity: .75; }

.walls { display: flex; justify-content: center; gap: 22px; height: 100%; }
.wall { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wall__phone { position: relative; height: calc(100% - 50px); aspect-ratio: 9 / 19; padding: 6px; border-radius: 28px; background: linear-gradient(145deg, #EEF1F7, #AEB8CC); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .8); }
.wall__phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; }
.wall__phone::before { content: ""; position: absolute; z-index: 1; top: 13px; left: 50%; width: 30%; height: 12px; translate: -50% 0; border-radius: 99px; background: #050B1E; }
.wall__time { position: absolute; left: 0; right: 0; top: 13%; text-align: center; font: 600 clamp(26px, 3.4vh, 40px) var(--font-hud); letter-spacing: .04em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.wall__meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.wall__meta p { display: grid; line-height: 1.3; }
.wall__meta b { font: 700 12px var(--font-hud); letter-spacing: .26em; }
.wall__meta small { font: 500 9.5px var(--font-hud); letter-spacing: .14em; color: var(--ink-3); }
.wall__dl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--electric), var(--yotta-blue)); box-shadow: 0 10px 20px -10px rgba(30, 64, 230, .9); transition: transform .3s var(--ease); }
.wall__dl:hover { transform: translateY(-2px); }
.wall__dl svg { width: 18px; height: 18px; }

.stickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stk { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--sticker); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 10px 22px -14px rgba(10, 26, 92, .55); transition: transform .45s var(--ease); }
.stk img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.stk--chibi img { width: 92%; height: 92%; }
.stk:hover { transform: translateY(-4px) rotate(-2deg); }
.stk.is-pop img { animation: pop .65s var(--ease); }
.stickers__hint { margin-top: 10px; text-align: center; font-size: 12px; letter-spacing: .12em; color: var(--ink-3); }

@media (min-width: 900px) {
  .panels { flex: 0 1 auto; height: min(62vh, 560px); }
  .vgrid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100%; gap: 16px; }
  .vcard__meta { left: 18px; right: 72px; bottom: 16px; }
  .vcard__meta b { font-size: 17px; }
  .vcard__play { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .walls { gap: 48px; }
  .stickers { grid-template-columns: repeat(9, 1fr); gap: 12px; align-content: center; height: calc(100% - 40px); }
  .gallery .tabs { max-width: 520px; }
}

/* =========================================================
   06 YOTTA RUN
   ========================================================= */
.run { background: #070D1F; }
.run__kv { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.run__kv img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 50%; transform: scale(1.12); transition: transform 7s var(--ease); }
.is-in .run__kv img { transform: scale(1); }
.run__speed {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background:
    linear-gradient(90deg, transparent, rgba(95, 184, 255, .7), transparent) 0 18% / 30% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent) 0 34% / 18% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(95, 184, 255, .55), transparent) 0 52% / 40% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent) 0 67% / 22% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(95, 184, 255, .6), transparent) 0 82% / 34% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent) 0 93% / 26% 1px no-repeat;
  animation: streak 1.4s linear infinite;
}
.run__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 13, 31, .7) 0%, rgba(7, 13, 31, .1) 22%, rgba(7, 13, 31, .35) 40%, rgba(7, 13, 31, .9) 62%, #070D1F 92%); }
.run__inner { justify-content: space-between; }
.run__copy { display: grid; gap: 10px; margin-top: auto; }
.run__kicker { font: 600 9.5px var(--font-hud); letter-spacing: .42em; color: var(--glow); }
.run__title { display: grid; font: 700 clamp(62px, 17vw, 150px)/.84 var(--font-hud); letter-spacing: .02em; color: #fff; transform: skewX(-8deg); transform-origin: left bottom; text-shadow: 0 0 40px rgba(47, 107, 255, .65); }
.run__title span:last-child { color: transparent; -webkit-text-stroke: 1.5px #5FB8FF; text-shadow: none; padding-left: .5em; }
.run__zh { font: 900 17px var(--font-serif); letter-spacing: .42em; }
.run__desc { max-width: 470px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.run__stats { display: flex; gap: 26px; margin: 2px 0; }
.run__stats li { display: grid; }
.run__stats b { font: 700 28px/1.1 var(--font-hud); color: #fff; }
.run__stats span { font: 600 9px var(--font-hud); letter-spacing: .22em; color: var(--ink-3); }
.run__bosses { display: grid; gap: 7px; }
.run__bosses p { font: 600 9px var(--font-hud); letter-spacing: .42em; color: var(--enemy); }
.run__bosses ul { display: flex; flex-wrap: wrap; gap: 6px; }
.run__bosses li { padding: 4px 11px; font-size: 12px; letter-spacing: .08em; color: #FFD6E8; background: rgba(255, 45, 138, .1); border: 1px solid rgba(255, 45, 138, .45); border-radius: 3px; }
.run__cta { margin-top: 6px; }
.btn--soon { cursor: default; gap: 12px; }
.btn--soon small { font: 500 12px var(--font-sans); letter-spacing: .2em; opacity: .8; }
.btn--soon:hover { transform: none; }

@media (min-width: 900px) {
  .run__kv img { object-position: 30% 50%; }
  .run__shade { background: linear-gradient(90deg, rgba(7, 13, 31, 0) 25%, rgba(7, 13, 31, .55) 50%, rgba(7, 13, 31, .92) 75%), linear-gradient(180deg, rgba(7, 13, 31, .55), transparent 20%, transparent 70%, rgba(7, 13, 31, .7)); }
  .run__copy { margin: auto 0 auto auto; width: min(44vw, 560px); gap: 14px; }
  .run__title { font-size: clamp(90px, 9vw, 160px); }
  .run__desc { font-size: 14.5px; }
}

/* =========================================================
   07 LOGBOOK
   ========================================================= */
.logbook__inner { gap: 12px; }
.log { display: grid; gap: 8px; }
.log__tabs { display: flex; gap: 6px; }
.log__tabs button { padding: 5px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12.5px; letter-spacing: .14em; color: var(--ink-3); transition: background .3s, color .3s, border-color .3s; }
.log__tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: rgb(var(--fade)); }
.log__list li { border-bottom: 1px solid var(--line-2); }
.log__list li.is-hidden { display: none; }
.log__list a { display: grid; grid-template-columns: auto auto minmax(0, 1fr) 20px; grid-template-areas: "time tag . arrow" "t t t arrow"; align-items: center; gap: 1px 10px; padding: 9px 2px; }
.log__list time { grid-area: time; font: 500 10.5px var(--font-hud); letter-spacing: .1em; color: var(--ink-3); }
.log__list .tag { grid-area: tag; padding: 0 8px; border-radius: 4px; font-size: 10px; letter-spacing: .12em; color: var(--accent); background: rgba(var(--spark), .12); }
.log__list .t { grid-area: t; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.log__list svg { grid-area: arrow; width: 18px; height: 18px; color: var(--ink-3); transition: transform .35s var(--ease), color .3s; }
.log__list a:hover .t, .log__list a:hover svg { color: var(--accent); }
.log__list a:hover svg { transform: translateX(4px); }
.log__note { font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; }

.finale {
  position: relative; margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 6px;
  border-radius: 22px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #2F6BFF 0%, #1E40E6 55%, #0A1A5C 100%);
  box-shadow: 0 30px 60px -30px rgba(30, 64, 230, .85);
}
.finale::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 30px rgba(255, 255, 255, .04), 0 0 0 60px rgba(255, 255, 255, .03); }
.finale__chibi { position: relative; width: 104px; flex: none; margin: -6px 0 -30px; filter: drop-shadow(0 12px 18px rgba(5, 11, 30, .45)); animation: float 4.5s ease-in-out infinite; }
.finale__copy { position: relative; display: grid; justify-items: start; }
.finale__kicker { font: 600 9px var(--font-hud); letter-spacing: .38em; opacity: .75; }
.finale__title { margin: 4px 0 10px; font: 900 17px/1.45 var(--font-serif); letter-spacing: .12em; }
.finale .btn--primary { height: 40px; padding: 0 16px; font-size: 13px; color: #1E40E6; background: #fff; box-shadow: 0 10px 24px -12px rgba(5, 11, 30, .7); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 9px var(--font-hud); letter-spacing: .16em; color: var(--ink-3); }
.foot__mark { width: 20px; height: 20px; color: var(--ink); }
.foot__note { margin-left: auto; }

@media (min-width: 900px) {
  .logbook__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 3vh 4vw; }
  .logbook__inner .sec-head, .foot { grid-column: 1 / -1; }
  .log { align-self: center; gap: 14px; }
  .log__list a { grid-template-columns: 96px 56px minmax(0, 1fr) 24px; grid-template-areas: "time tag t arrow"; padding: 16px 4px; }
  .log__list .t { font-size: 15px; }
  .finale { margin: 0; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 34px; min-height: 0; }
  .finale__chibi { position: absolute; right: -2%; bottom: -10%; width: 46%; max-width: 300px; margin: 0; }
  .finale__copy { max-width: 62%; }
  .finale__title { font-size: clamp(22px, 2.2vw, 34px); margin: 8px 0 22px; }
  .finale .btn--primary { height: 48px; padding: 0 22px; font-size: 14px; }
  .foot { padding-top: 2vh; border-top: 1px solid var(--line); }
}

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; color: #fff; max-width: 94vw; max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 8, 20, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox[open] { animation: lbIn .55s var(--ease); }
.lightbox video { max-width: 94vw; max-height: 78vh; border-radius: 16px; background: #000; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8); }
.lightbox__close { position: absolute; right: 0; top: -52px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); transition: background .3s; }
.lightbox__close:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__cap { margin-top: 14px; text-align: center; font: 600 10.5px var(--font-hud); letter-spacing: .32em; opacity: .8; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; translate: -50% 16px; opacity: 0; pointer-events: none;
  padding: 10px 20px; border-radius: 99px; white-space: nowrap;
  background: var(--ink); color: rgb(var(--fade)); font-size: 13px; letter-spacing: .08em; box-shadow: var(--shadow);
  transition: opacity .4s var(--ease), translate .5s var(--ease);
}
.toast.is-show { opacity: 1; translate: -50% 0; }

/* ---------- Phase transition ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Short desktop screens ---------- */
@media (min-width: 900px) and (max-height: 780px) {
  .sec-head__title { font-size: 30px; }
  .idcard__body { grid-template-columns: 124px minmax(0, 1fr); padding: 12px 0; }
  .idcard__name { font-size: 38px; }
  .idcard__foot p:nth-child(2) { display: none; }
  .moods { display: none; }
  .dialog { min-height: 96px; padding: 22px 22px 26px; }
  .detail { padding: 16px 22px; }
  .parts button { padding: 6px 2px; font-size: 12.5px; }
}

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { scale: 1.06; filter: drop-shadow(0 0 14px rgba(95, 184, 255, .7)); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes ping { 0% { transform: scale(.8); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes bob { 50% { translate: 0 3px; } }
@keyframes scan { from { translate: 0 -100%; } to { translate: 0 300%; } }
@keyframes fillbar { to { transform: scaleX(1); } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-6deg); } 65% { transform: scale(.94) rotate(3deg); } 100% { transform: scale(1); } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes drift { to { transform: translate(-6vmax, 5vmax) scale(1.08); } }
@keyframes streak {
  from { background-position: 170% 18%, 260% 34%, 200% 52%, 320% 67%, 230% 82%, 290% 93%; }
  to { background-position: -90% 18%, -70% 34%, -130% 52%, -50% 67%, -100% 82%, -60% 93%; }
}
@keyframes panelIn { from { opacity: 0; translate: 0 14px; } }
@keyframes lbIn { from { opacity: 0; scale: .94; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .skill__bar i { animation: none !important; }
  .run__speed, .skills__scan { display: none; }
}
