/* ==========================================================================
   beauty.css — a self-contained design system for index_beauty.html
   Loaded ONLY by index_beauty.html. index.html / stylesheet.css / hover.css
   are untouched.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Songti SC", "STSong", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f2f4f7;

  --ink: #12141a;
  --ink-2: #383e4b;
  --muted: #6a7280;
  --faint: #9aa1ad;

  --line: #e3e6ec;
  --line-soft: #edeff3;

  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: #eef0ff;
  --accent-line: #c7cbfb;

  --gold: #b45309;
  --gold-soft: #fdf4e6;
  --green: #047857;
  --green-soft: #ecfdf5;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 2px 6px -2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 14px -4px rgba(17, 24, 39, 0.09), 0 2px 5px -2px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 18px 44px -18px rgba(17, 24, 39, 0.22), 0 4px 12px -6px rgba(17, 24, 39, 0.08);

  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  --topbar-h: 62px;

  --egv-bg: #0b0e14;

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

body.dark-mode {
  --bg: #0a0b10;
  --bg-elevated: #101219;
  --surface: #13161e;
  --surface-2: #171a23;
  --surface-3: #1c202b;

  --ink: #e8eaf1;
  --ink-2: #c3c8d6;
  --muted: #8b93a5;
  --faint: #6b7386;

  --line: #242936;
  --line-soft: #1b1f29;

  --accent: #8e94ff;
  --accent-strong: #a5aaff;
  --accent-soft: #191d33;
  --accent-line: #343a63;

  --gold: #e0a458;
  --gold-soft: #241d12;
  --green: #34d399;
  --green-soft: #10231c;

  --egv-bg: #04060a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px -2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 6px 18px -6px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 50px -22px rgba(0, 0, 0, 0.8), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(79, 70, 229, 0.09), transparent 62%),
    radial-gradient(760px 420px at 4% 2%, rgba(14, 165, 233, 0.08), transparent 60%);
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}

body.dark-mode::before {
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(126, 118, 255, 0.16), transparent 62%),
    radial-gradient(760px 420px at 4% 2%, rgba(34, 211, 238, 0.09), transparent 60%);
}

/* fine dot-grid texture, faded out toward the bottom of the viewport */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--dot-grid) 1px, transparent 0);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(1100px 620px at 50% -6%, #000 0%, transparent 72%);
  mask-image: radial-gradient(1100px 620px at 50% -6%, #000 0%, transparent 72%);
}

:root {
  --dot-grid: rgba(79, 70, 229, 0.09);
}

body.dark-mode {
  --dot-grid: rgba(142, 148, 255, 0.11);
}

::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 3px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-line);
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

p {
  margin: 0 0 0.85em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--accent-strong);
}

strong {
  font-weight: 650;
  color: var(--ink);
}

b {
  font-weight: 650;
  color: var(--ink);
}

img {
  max-width: 100%;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* language switching */
.lang-content.hidden {
  display: none !important;
}

.lang-content {
  display: block;
}

span.lang-content,
span.inline-lang-content {
  display: inline;
}

.lang-content.inline-lang-content.hidden {
  display: none !important;
}

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.topbar.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.topbar__brand:hover {
  color: var(--ink);
}

.topbar__mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent) 0%, #7c6cf5 55%, #22b8cf 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 2px 8px -2px rgba(79, 70, 229, 0.55);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar__nav::-webkit-scrollbar {
  display: none;
}

.topbar__link {
  position: relative;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.topbar__link:hover {
  color: var(--ink);
  background: var(--surface-3);
}

.topbar__link.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 600;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-line);
  color: var(--accent-strong);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 4px -1px rgba(79, 70, 229, 0.6);
}

body.dark-mode .segmented button.is-active {
  color: #0a0b10;
}

.topbar__menu {
  display: none;
}

.topbar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #22b8cf);
  border-radius: 0 999px 999px 0;
  transition: width 0.12s linear;
}

/* ------------------------------------------------------------------ shell */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(46px, 6vw, 76px) 0 0;
  scroll-margin-top: calc(var(--topbar-h) + 18px);
}

.section--flush {
  padding-top: 0;
}

/* ------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: clamp(44px, 7vw, 86px) 0 clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(196px, 26vw, 296px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 13px 5px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.4vw, 4.1rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero__name-alt {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.16rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.hero__rule {
  width: 54px;
  height: 3px;
  margin: 22px 0 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #22b8cf);
}

.hero__bio {
  color: var(--ink-2);
  font-size: 0.975rem;
  max-width: 62ch;
}

.hero__bio p {
  margin-bottom: 0.9em;
}

.hero__bio .lang-en > p:first-of-type,
.hero__bio .lang-zh > p:first-of-type {
  font-size: 1.015em;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1em;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.855rem;
  font-weight: 550;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.pill--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pill--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.pill--primary .pill__dot {
  background: rgba(255, 255, 255, 0.85);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.stat {
  position: relative;
  flex: 1 1 130px;
  padding: 14px 16px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(34, 184, 207, 0.2) 70%, transparent);
  opacity: 0.65;
  transition: opacity 0.25s var(--ease);
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-sm);
}

.stat:hover::before {
  opacity: 1;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.stat__label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.685rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero__media {
  position: relative;
  margin: 0;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: -4% -6% 0 -6%;
  border-radius: 50% 46% 50% 50% / 48% 50% 50% 52%;
  background: linear-gradient(140deg, rgba(79, 70, 229, 0.16), rgba(34, 184, 207, 0.13));
  filter: blur(34px);
  opacity: 0.7;
  z-index: 0;
}

.hero__frame {
  position: relative;
  z-index: 1;
}

.hero__frame-offset {
  position: absolute;
  inset: 16px -12px -16px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 26px;
  pointer-events: none;
  z-index: 0;
  transition: inset 0.5s var(--ease), border-color 0.4s var(--ease);
}

.hero__frame > a {
  display: block;
  position: relative;
  z-index: 1;
}

.hero__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
  object-position: 58% 20%;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
}

.hero__media:hover .hero__photo {
  transform: translateY(-4px) scale(1.012);
}

.hero__media:hover .hero__frame-offset {
  inset: 22px -18px -22px 18px;
}

.hero__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  font-size: 0.85rem;
  font-weight: 550;
  letter-spacing: 0.005em;
  color: var(--muted);
}

.hero__status::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

/* ------------------------------------------------------------ marquee */
.venue-strip {
  position: relative;
  margin-top: clamp(30px, 4vw, 46px);
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.venue-strip__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 52s linear infinite;
}

.venue-strip:hover .venue-strip__track {
  animation-play-state: paused;
}

.venue-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: 38px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink-2);
}

.venue-strip__item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-left: 27px;
  background: var(--accent);
  opacity: 0.45;
}

.venue-strip__item em {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.655rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  border-radius: 999px;
  background: var(--gold-soft);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------- callout */
.callout {
  position: relative;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-top: clamp(26px, 3.5vw, 40px);
  padding: 20px 24px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 92%, transparent), var(--surface));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #22b8cf);
}

.callout__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  font-size: 1rem;
}

.callout__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 5px;
}

.callout__body {
  font-size: 0.895rem;
  color: var(--ink-2);
}

.callout__body small {
  color: var(--faint);
  font-size: 0.8rem;
}

/* ------------------------------------------------------ section heading */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.sec-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 2px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sec-title::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.sec-head--light .sec-title {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

/* ------------------------------------------------------------- journey */
.sec-lede {
  margin: -10px 0 26px;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.journey {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(26px, 3.4vw, 50px);
  align-items: start;
}

.journey__sticky {
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
  z-index: 5;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.journey__sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%,
      color-mix(in srgb, var(--accent) 9%, transparent) 50%, transparent 62%);
  background-size: 260% 100%;
  animation: cardShimmer 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardShimmer {

  0%,
  60%,
  100% {
    background-position: 130% 0;
  }

  85% {
    background-position: -30% 0;
  }
}

.chart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------------------------------------------------------------- stage */
.stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.stage__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-3);
}

.stage__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.stage__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.stage__dots i:nth-child(1) {
  background: #ff5f57;
}

.stage__dots i:nth-child(2) {
  background: #febc2e;
}

.stage__dots i:nth-child(3) {
  background: #28c840;
}

.stage__title {
  font-size: 0.795rem;
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.stage__badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.645rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stage__viewport {
  position: relative;
  aspect-ratio: 16 / 11.4;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 1px 1px, var(--dot-grid) 1px, transparent 0) 0 0 / 26px 26px,
    var(--surface-2);
  overflow: hidden;
  isolation: isolate;
}

.stage__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 30%),
      color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.stage:hover .stage__glow {
  opacity: 1;
}

/* per-scene aurora palette */
.scene[data-scene="0"] { --s1: #38bdf8; --s2: #6366f1; }
.scene[data-scene="1"] { --s1: #f59e0b; --s2: #ec4899; }
.scene[data-scene="2"] { --s1: #6366f1; --s2: #a855f7; }
.scene[data-scene="3"] { --s1: #10b981; --s2: #22b8cf; }
.scene[data-scene="4"] { --s1: #22d3ee; --s2: #8b5cf6; }
.scene[data-scene="5"] { --s1: #fb923c; --s2: #ef4444; }
.scene[data-scene="6"] { --s1: #0d9488; --s2: #d97706; }

.scene {
  position: absolute;
  inset: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translate(30px, 12px) scale(0.955);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

.stage.is-back .scene {
  transform: translate(-30px, 12px) scale(0.955);
}

.scene.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 16%, color-mix(in srgb, var(--s1) 22%, transparent), transparent 70%),
    radial-gradient(42% 46% at 82% 84%, color-mix(in srgb, var(--s2) 20%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  animation: auroraDrift 16s ease-in-out infinite;
}

.scene.is-active::before {
  opacity: 1;
}

@keyframes auroraDrift {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(3%, -4%, 0) scale(1.08);
  }
}

.scene > * {
  position: relative;
  z-index: 1;
}

/* big display metric in the corner */
.scene__metric {
  position: absolute;
  top: -4px;
  right: -2px;
  text-align: right;
  pointer-events: none;
}

.scene__metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 3.4rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
  background: linear-gradient(140deg, var(--s1), var(--s2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  animation: metricIn 0.7s var(--ease) both;
}

.scene__metric-value--word {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.scene__metric-label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.655rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  animation: metricIn 0.7s var(--ease) 0.12s both;
}

@keyframes metricIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.scene__caption {
  font-size: 0.775rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
  flex-shrink: 0;
}

.scene__legend {
  display: flex;
  gap: 18px;
  font-size: 0.72rem;
  color: var(--faint);
}

.scene__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lg {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--surface-3);
  border: 1px solid var(--line);
}

.lg--flag {
  background: color-mix(in srgb, #ef4444 22%, transparent);
  border-color: #ef4444;
}

.scene__tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.scenetag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.735rem;
  font-weight: 600;
  color: var(--ink-2);
}

.scenetag--gold {
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 32%, transparent);
  color: var(--gold);
}

.stage__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-3);
}

.stage__steps {
  display: flex;
  gap: 6px;
}

.stage__steps i {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.35s var(--ease), width 0.35s var(--ease);
}

.stage__steps i.is-active {
  width: 34px;
  background: var(--accent);
}

.stage__hint {
  margin-left: auto;
  font-size: 0.715rem;
  color: var(--faint);
}

/* ----------------------------------------------- scene 0 · tamper scan */
.scan-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-content: center;
  flex: 1;
  min-height: 0;
}

.patch {
  aspect-ratio: 1;
  border-radius: 7px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  opacity: 0;
  transform: scale(0.82);
}

.scene.is-active .patch {
  animation: patchIn 0.5s var(--ease) forwards;
}

.patch.is-flag {
  background: color-mix(in srgb, #ef4444 20%, transparent);
  border-color: #ef4444;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 12%, transparent);
}

.scene.is-active .patch.is-flag {
  animation: patchIn 0.5s var(--ease) forwards, flagPulse 2.4s ease-in-out infinite 0.7s;
}

.scan-grid .patch:nth-child(1) { animation-delay: 0.02s; }
.scan-grid .patch:nth-child(2) { animation-delay: 0.06s; }
.scan-grid .patch:nth-child(3) { animation-delay: 0.10s; }
.scan-grid .patch:nth-child(4) { animation-delay: 0.14s; }
.scan-grid .patch:nth-child(5) { animation-delay: 0.18s; }
.scan-grid .patch:nth-child(6) { animation-delay: 0.22s; }
.scan-grid .patch:nth-child(7) { animation-delay: 0.26s; }
.scan-grid .patch:nth-child(8) { animation-delay: 0.30s; }
.scan-grid .patch:nth-child(9) { animation-delay: 0.34s; }
.scan-grid .patch:nth-child(10) { animation-delay: 0.38s; }
.scan-grid .patch:nth-child(11) { animation-delay: 0.42s; }
.scan-grid .patch:nth-child(12) { animation-delay: 0.46s; }
.scan-grid .patch:nth-child(13) { animation-delay: 0.50s; }
.scan-grid .patch:nth-child(14) { animation-delay: 0.54s; }
.scan-grid .patch:nth-child(15) { animation-delay: 0.58s; }
.scan-grid .patch:nth-child(16) { animation-delay: 0.62s; }
.scan-grid .patch:nth-child(17) { animation-delay: 0.66s; }
.scan-grid .patch:nth-child(18) { animation-delay: 0.70s; }

@keyframes patchIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flagPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 12%, transparent);
  }

  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, #ef4444 4%, transparent);
  }
}

.scan-beam {
  position: absolute;
  top: -6%;
  bottom: -6%;
  left: 0;
  width: 46px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 42%, transparent), transparent);
  opacity: 0;
}

.scene.is-active .scan-beam {
  animation: beamSweep 2.9s ease-in-out infinite 0.5s;
}

@keyframes beamSweep {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    transform: translateX(calc(100% + 50px));
    opacity: 0;
  }
}

/* ----------------------------------------------- scene 1 · benchmark grid */
.matrix {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  align-content: center;
  flex: 1;
  min-height: 0;
}

.cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  opacity: 0;
  transform: scale(0.7);
}

.scene.is-active .cell {
  animation: patchIn 0.45s var(--ease) forwards;
}

.cell.is-star {
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  border-color: var(--gold);
  box-shadow: 0 0 14px -2px color-mix(in srgb, var(--gold) 75%, transparent);
  animation: patchIn 0.45s var(--ease) forwards, starPulse 2.6s ease-in-out infinite 1.4s !important;
}

@keyframes starPulse {

  0%,
  100% {
    box-shadow: 0 0 10px -2px color-mix(in srgb, var(--gold) 55%, transparent);
  }

  50% {
    box-shadow: 0 0 20px 0 color-mix(in srgb, var(--gold) 90%, transparent);
  }
}

.matrix .cell:nth-child(1) { animation-delay: 0.05s; }
.matrix .cell:nth-child(2) { animation-delay: 0.09s; }
.matrix .cell:nth-child(3) { animation-delay: 0.13s; }
.matrix .cell:nth-child(4) { animation-delay: 0.17s; }
.matrix .cell:nth-child(5) { animation-delay: 0.21s; }
.matrix .cell:nth-child(6) { animation-delay: 0.25s; }
.matrix .cell:nth-child(7) { animation-delay: 0.29s; }
.matrix .cell:nth-child(8) { animation-delay: 0.33s; }
.matrix .cell:nth-child(9) { animation-delay: 0.37s; }
.matrix .cell:nth-child(10) { animation-delay: 0.41s; }
.matrix .cell:nth-child(11) { animation-delay: 0.45s; }
.matrix .cell:nth-child(12) { animation-delay: 0.49s; }
.matrix .cell:nth-child(13) { animation-delay: 0.53s; }
.matrix .cell:nth-child(14) { animation-delay: 0.57s; }
.matrix .cell:nth-child(15) { animation-delay: 0.61s; }
.matrix .cell:nth-child(16) { animation-delay: 0.65s; }
.matrix .cell:nth-child(17) { animation-delay: 0.69s; }
.matrix .cell:nth-child(18) { animation-delay: 0.73s; }
.matrix .cell:nth-child(19) { animation-delay: 0.77s; }
.matrix .cell:nth-child(20) { animation-delay: 0.81s; }
.matrix .cell:nth-child(21) { animation-delay: 0.85s; }
.matrix .cell:nth-child(22) { animation-delay: 0.89s; }
.matrix .cell:nth-child(23) { animation-delay: 0.93s; }
.matrix .cell:nth-child(24) { animation-delay: 0.97s; }
.matrix .cell:nth-child(25) { animation-delay: 1.01s; }
.matrix .cell:nth-child(26) { animation-delay: 1.05s; }
.matrix .cell:nth-child(27) { animation-delay: 1.09s; }
.matrix .cell:nth-child(28) { animation-delay: 1.13s; }
.matrix .cell:nth-child(29) { animation-delay: 1.17s; }
.matrix .cell:nth-child(30) { animation-delay: 1.21s; }
.matrix .cell:nth-child(31) { animation-delay: 1.25s; }
.matrix .cell:nth-child(32) { animation-delay: 1.29s; }

/* --------------------------------------------- scene 2 · reasoning tree */
.scene__svg {
  display: block;
  width: 100%;
  height: auto;
  flex: 1;
  min-height: 0;
}

.tree-links line {
  stroke: var(--accent-line);
  stroke-width: 1.4;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}

.scene.is-active .tree-links line {
  animation: drawLine 0.6s var(--ease) forwards;
}

.tree-links line:nth-child(1) { animation-delay: 0.05s; }
.tree-links line:nth-child(2) { animation-delay: 0.12s; }
.tree-links line:nth-child(3) { animation-delay: 0.22s; }
.tree-links line:nth-child(4) { animation-delay: 0.26s; }
.tree-links line:nth-child(5) { animation-delay: 0.34s; }
.tree-links line:nth-child(6) { animation-delay: 0.38s; }
.tree-links line:nth-child(7) { animation-delay: 0.5s; }
.tree-links line:nth-child(8) { animation-delay: 0.54s; }
.tree-links line:nth-child(9) { animation-delay: 0.58s; }
.tree-links line:nth-child(10) { animation-delay: 0.62s; }
.tree-links line:nth-child(11) { animation-delay: 0.66s; }
.tree-links line:nth-child(12) { animation-delay: 0.7s; }
.tree-links line:nth-child(13) { animation-delay: 0.74s; }
.tree-links line:nth-child(14) { animation-delay: 0.78s; }

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.tnode {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

.scene.is-active .tnode {
  animation: nodeIn 0.42s var(--ease) forwards;
}

.tree-links--hot line {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 75%, transparent));
}

.scene.is-active .tree-links--hot line {
  animation: drawLine 0.6s var(--ease) forwards;
}

.tree-links--hot line:nth-child(1) { animation-delay: 0.08s; }
.tree-links--hot line:nth-child(2) { animation-delay: 0.34s; }
.tree-links--hot line:nth-child(3) { animation-delay: 0.6s; }

.tnode.is-hot {
  fill: var(--accent);
  stroke: none;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 80%, transparent));
}

.tnode--root {
  fill: var(--accent);
  stroke: none;
  animation-delay: 0s !important;
}

.tnode--leaf {
  fill: var(--accent-soft);
}

.tree-nodes .tnode:nth-child(1) { animation-delay: 0s; }
.tree-nodes .tnode:nth-child(2) { animation-delay: 0.16s; }
.tree-nodes .tnode:nth-child(3) { animation-delay: 0.24s; }
.tree-nodes .tnode:nth-child(4) { animation-delay: 0.32s; }
.tree-nodes .tnode:nth-child(5) { animation-delay: 0.4s; }
.tree-nodes .tnode:nth-child(6) { animation-delay: 0.48s; }
.tree-nodes .tnode:nth-child(7) { animation-delay: 0.56s; }
.tree-nodes .tnode:nth-child(8) { animation-delay: 0.62s; }
.tree-nodes .tnode:nth-child(9) { animation-delay: 0.72s; }
.tree-nodes .tnode:nth-child(10) { animation-delay: 0.78s; }
.tree-nodes .tnode:nth-child(11) { animation-delay: 0.84s; }
.tree-nodes .tnode:nth-child(12) { animation-delay: 0.9s; }
.tree-nodes .tnode:nth-child(13) { animation-delay: 0.96s; }
.tree-nodes .tnode:nth-child(14) { animation-delay: 1.02s; }
.tree-nodes .tnode:nth-child(15) { animation-delay: 1.08s; }

@keyframes nodeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --------------------------------------------- scene 3 · production flow */
.pipeline {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding-bottom: 6px;
}

.pline {
  display: flex;
  align-items: center;
  width: 100%;
}

.pnode {
  flex: 0 1 auto;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--ink-2);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.85);
}

.scene.is-active .pnode {
  animation: nodeIn 0.5s var(--ease) forwards;
}

.pnode em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 0.665rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--faint);
  white-space: nowrap;
}

.pnode--accent {
  position: relative;
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.loopring {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  display: block;
}

.loopring svg {
  width: 100%;
  height: 100%;
  animation: spin 4.5s linear infinite;
}

.loopring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pnode--gold {
  border-color: color-mix(in srgb, var(--gold) 34%, transparent);
  background: var(--gold-soft);
  color: var(--gold);
}

.pline .pnode:nth-child(1) { animation-delay: 0.1s; }
.pline .pnode:nth-child(3) { animation-delay: 0.34s; }
.pline .pnode:nth-child(5) { animation-delay: 0.58s; }
.pline .pnode:nth-child(7) { animation-delay: 0.82s; }

.pconn {
  position: relative;
  flex: 1 1 auto;
  height: 2px;
  margin: 0 4px;
  background: var(--line);
  overflow: hidden;
}

.pconn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-line);
  transform: scaleX(0);
  transform-origin: left;
}

.scene.is-active .pconn::before {
  animation: connDraw 0.45s var(--ease) forwards;
}

.pline .pconn:nth-child(2) { }
.pline .pconn:nth-child(2)::before { animation-delay: 0.22s; }
.pline .pconn:nth-child(4)::before { animation-delay: 0.46s; }
.pline .pconn:nth-child(6)::before { animation-delay: 0.7s; }

.pconn i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

.scene.is-active .pconn i {
  animation: particle 2.1s linear infinite 1.1s;
}

.pline .pconn:nth-child(4) i { animation-delay: 1.5s; }
.pline .pconn:nth-child(6) i { animation-delay: 1.9s; }

@keyframes connDraw {
  to {
    transform: scaleX(1);
  }
}

@keyframes particle {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    transform: translateX(calc(100% + 120px));
    opacity: 0;
  }
}

/* ------------------------------------------------------------- steps */
.journey__steps {
  display: grid;
  gap: clamp(38px, 7vw, 86px);
  padding: 6px 0 40px;
  list-style: none;
}

.jstep {
  position: relative;
  padding-left: 30px;
}

.journey.is-live .jstep {
  opacity: 0.3;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.journey.is-live .jstep.is-past,
.journey.is-live .jstep.is-active {
  opacity: 1;
  transform: none;
}

.jstep::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.jstep.is-active::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent);
}

.jstep__year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.jstep__title {
  margin: 7px 0 9px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.jstep__body {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.jstep__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.journey.is-live .jstep__chips .kw {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.journey.is-live .jstep.is-active .jstep__chips .kw,
.journey.is-live .jstep.is-past .jstep__chips .kw {
  opacity: 1;
  transform: none;
}

.journey.is-live .jstep.is-active .jstep__chips .kw:nth-child(1) {
  transition-delay: 0.04s;
}

.journey.is-live .jstep.is-active .jstep__chips .kw:nth-child(2) {
  transition-delay: 0.1s;
}

.journey.is-live .jstep.is-active .jstep__chips .kw:nth-child(3) {
  transition-delay: 0.16s;
}

.journey.is-live .jstep.is-active .jstep__chips .kw:nth-child(4) {
  transition-delay: 0.22s;
}

/* ------------------------------------------------------------- research */
.prose {
  color: var(--ink-2);
  font-size: 0.965rem;
  max-width: 74ch;
}

.focus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.focus__card {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.focus__card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}

.focus__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.focus__desc {
  font-size: 0.825rem;
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------- news timeline */
.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-line), var(--line) 22%, var(--line) 78%, transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 18px 0;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-line);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.tl-item:hover::before {
  border-color: var(--accent);
  transform: scale(1.12);
}

.tl-item.is-latest::before {
  border-color: var(--accent);
  background: var(--accent);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 0.745rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-bottom: 2px;
}

.tl-body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.925rem;
  line-height: 1.62;
  color: var(--ink-2);
}

.tl-body p {
  margin: 0;
}

.tl-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1;
}

/* --------------------------------------------------------------- buttons */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn-more:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.btn-more__chev {
  transition: transform 0.3s var(--ease);
  font-size: 0.8rem;
}

.btn-more.is-open .btn-more__chev {
  transform: rotate(180deg);
}

.collapse {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.35s var(--ease);
}

.collapse.is-open {
  opacity: 1;
}

/* ---------------------------------------------------------- publications */
.pubs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pub {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.pub::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.pub:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}

.pub:hover::after {
  opacity: 1;
}

.pub--feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
}

.pub__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.venue {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.735rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.venue--gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.venue--green {
  background: var(--green-soft);
  color: var(--green);
}

.pub__flags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0;
}

.pub__top .pub__flags {
  flex: 1 1 0;
  min-width: 0;
}

.pub__flags img {
  display: block;
  height: 19px;
  border-radius: 4px;
}

.pub__title {
  font-family: var(--font-display);
  font-size: 1.055rem;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.011em;
  color: var(--ink);
}

.pub--feature .pub__title {
  font-size: 1.22rem;
}

.pub__authors {
  margin: 0;
  font-size: 0.855rem;
  line-height: 1.6;
  color: var(--muted);
}

.pub__keys {
  display: block;
  margin-top: auto;
  padding-top: 3px;
}

.kw {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  color: var(--muted);
}

/* -------------------------------------------------------------- projects */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.011em;
  color: var(--ink);
}

.card > .venue {
  align-self: flex-start;
}

.card__meta {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.card__meta em {
  font-style: normal;
  color: var(--ink-2);
  font-weight: 600;
}

.card__body {
  margin: 0;
  font-size: 0.885rem;
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- tables */
.dtable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 0.9rem;
  line-height: 1.5;
}

.dtable thead th {
  padding: 11px 20px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  white-space: nowrap;
}

.dtable tbody td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  vertical-align: middle;
}

.dtable tbody tr:last-child td {
  border-bottom: 0;
}

.dtable tbody tr {
  transition: background-color 0.2s var(--ease);
}

.dtable tbody tr:hover td {
  background: var(--surface-2);
}

.dtable td.key {
  color: var(--ink);
  font-weight: 600;
}

.dtable td.meta {
  color: var(--muted);
  font-size: 0.855rem;
}

.dtable td.end {
  text-align: right;
  white-space: nowrap;
}

.dtable--award thead th:last-child {
  text-align: right;
}

.dtable td.period {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--faint);
  white-space: nowrap;
}

.dtable td.logo {
  width: 68px;
  text-align: right;
  padding-left: 0;
}

.dtable td.logo img {
  display: inline-block;
  max-width: 56px;
  max-height: 40px;
  object-fit: contain;
  vertical-align: middle;
}

.sub {
  display: block;
  margin-top: 1px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--faint);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-3);
  font-size: 0.79rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tag--accent {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-strong);
  font-weight: 650;
}

.tag--gold {
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 28%, transparent);
  color: var(--gold);
  font-weight: 650;
}

.tagset {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.tagset--left {
  justify-content: flex-start;
}

/* education table */
.dtable--edu td.key {
  min-width: 200px;
}

.dtable--edu td.degree {
  color: var(--ink-2);
}

/* experience table */
.dtable--exp td.exp-cell {
  width: 36%;
  min-width: 250px;
  vertical-align: top;
}

.exp-org {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-2);
  object-fit: contain;
}

.exp-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
}

.exp-name a {
  color: inherit;
}

.exp-name a:hover {
  color: var(--accent-strong);
}

.exp-sub {
  display: block;
  margin-top: 1px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--faint);
}

.exp-role {
  display: block;
  margin-top: 10px;
  font-size: 0.855rem;
  font-weight: 650;
  color: var(--accent-strong);
}

.exp-period {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--faint);
}

.exp-list {
  display: grid;
  gap: 6px;
}

.exp-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.885rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.exp-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-line);
}

/* --------------------------------------------------------------- friends */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.865rem;
  font-weight: 550;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chip-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-line);
  transition: background-color 0.2s var(--ease);
}

.chip-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.chip-link:hover::before {
  background: var(--accent);
}

/* ---------------------------------------------------------------- footer */
.foot {
  margin-top: clamp(52px, 7vw, 88px);
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.815rem;
  color: var(--faint);
}

.foot__sep {
  opacity: 0.45;
}

/* ----------------------------------------------------------- back to top */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 50;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s, border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.to-top:hover {
  border-color: var(--accent-line);
  color: var(--accent-strong);
}

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translate(-50%, 14px);
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.845rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------- reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero__media {
    max-width: 290px;
    order: -1;
  }

  .pubs {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .journey__sticky {
    position: static;
    top: auto;
  }

  .journey__steps {
    gap: 30px;
  }
}

@media (max-width: 780px) {
  :root {
    --topbar-h: 56px;
  }

  .topbar {
    justify-content: space-between;
  }

  .topbar__nav {
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
      visibility 0.24s;
  }

  .topbar__nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topbar__link {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
  }

  .topbar__menu {
    display: grid;
  }

  /* tables scroll horizontally on narrow screens instead of crushing columns */
  .dtable {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .dtable thead,
  .dtable tbody {
    display: table;
    width: 100%;
    min-width: 540px;
  }

  .dtable--exp td.exp-cell {
    width: 40%;
    min-width: 200px;
  }
}

@media (max-width: 520px) {
  .stage__chrome {
    flex-wrap: wrap;
    gap: 8px;
  }

  .stage__title {
    font-size: 0.74rem;
  }

  .topbar__brand {
    font-size: 0.98rem;
  }

  .topbar__mark {
    width: 24px;
    height: 24px;
  }

  .segmented button {
    padding: 4px 9px;
    font-size: 0.74rem;
  }

  .hero__stats {
    gap: 8px;
  }

  .stat {
    flex: 1 1 calc(50% - 8px);
  }

  .timeline {
    padding-left: 22px;
  }

  .tl-item::before {
    left: -22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------- scene 3 · agent retrieval flow */
.rflow {
  width: 100%;
  max-height: 100%;
}

.rflow text {
  user-select: none;
}

tspan.lang-content {
  display: inline;
}

.rq__box,
.rans__box {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.rq__label,
.rans__label,
.rcand__label,
.rcand__doc {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.rq__label,
.rans__label {
  fill: var(--accent);
}

.rcand__label {
  fill: var(--faint);
}

.rcand__doc {
  fill: var(--gold);
}

.rq__mono,
.rans__mono {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: var(--faint);
  opacity: 0;
}

.scene.is-active .rq__mono,
.scene.is-active .rans__mono {
  animation: rlabelIn 0.45s var(--ease) forwards;
}

.rq__text,
.rans__text {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  fill: var(--ink-2);
}

.scene.is-active .rq__box,
.scene.is-active .rans__box {
  animation: rboxIn 0.5s var(--ease) forwards;
}

.scene.is-active .rq__label,
.scene.is-active .rq__text,
.scene.is-active .rans__label,
.scene.is-active .rans__text,
.scene.is-active .rcand__label {
  animation: rlabelIn 0.45s var(--ease) forwards;
}

.rq__label { opacity: 0; }
.rq__text { opacity: 0; }
.rans__label { opacity: 0; }
.rans__text { opacity: 0; }
.rcand__label { opacity: 0; }

@keyframes rboxIn {
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes rlabelIn {
  to {
    opacity: 1;
  }
}

.rlink {
  stroke: var(--accent-line);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.scene.is-active .rlink {
  animation: rdraw 0.35s var(--ease) 0.3s forwards;
}

.rcand__tile {
  fill: var(--surface-3);
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.6);
}

.scene.is-active .rcand__tile {
  animation: rtileIn 0.34s var(--ease) forwards;
}

.rcand__tile.is-hit {
  fill: color-mix(in srgb, var(--gold) 16%, var(--surface));
  stroke: var(--gold);
  stroke-width: 1.2;
}

.rcand .rcand__tile:nth-child(2) { animation-delay: 0.50s; }
.rcand .rcand__tile:nth-child(3) { animation-delay: 0.53s; }
.rcand .rcand__tile:nth-child(4) { animation-delay: 0.56s; }
.rcand .rcand__tile:nth-child(5) { animation-delay: 0.60s; }
.rcand .rcand__tile:nth-child(6) { animation-delay: 0.63s; }
.rcand .rcand__tile:nth-child(7) { animation-delay: 0.66s; }
.rcand .rcand__tile:nth-child(8) { animation-delay: 0.69s; }
.rcand .rcand__tile:nth-child(9) { animation-delay: 0.72s; }
.rcand .rcand__tile:nth-child(10) { animation-delay: 0.76s; }
.rcand .rcand__tile:nth-child(11) { animation-delay: 0.79s; }
.rcand .rcand__tile:nth-child(12) { animation-delay: 0.82s; }
.rcand .rcand__tile:nth-child(13) { animation-delay: 0.85s; }

@keyframes rdraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rtileIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.rcand__beam {
  fill: color-mix(in srgb, var(--accent) 16%, transparent);
  opacity: 0;
}

.scene.is-active .rcand__beam {
  animation: rbeam 1.3s var(--ease) 0.45s 2;
}

@keyframes rbeam {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(77px);
  }
}

.rcand__ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.scene.is-active .rcand__ring {
  animation: rring 1.9s ease-out 1s infinite;
}

@keyframes rring {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }

  35% {
    opacity: 0.9;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

.rcand__tree line {
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.rcand__tree circle {
  fill: var(--gold);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

.scene.is-active .rcand__tree line {
  animation: rdraw 0.3s var(--ease) forwards;
}

.scene.is-active .rcand__tree circle {
  animation: rtileIn 0.3s var(--ease) forwards;
}

.rcand__tree line:nth-child(1) { animation-delay: 1.15s; }
.rcand__tree line:nth-child(2) { animation-delay: 1.22s; }
.rcand__tree circle:nth-child(3) { animation-delay: 1.1s; }
.rcand__tree circle:nth-child(4) { animation-delay: 1.28s; }
.rcand__tree circle:nth-child(5) { animation-delay: 1.34s; }

.rwire {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.scene.is-active .rwire {
  animation: rdraw 0.6s var(--ease) 1.4s forwards;
}

.rans__tick circle {
  fill: var(--green-soft);
  stroke: var(--green);
  stroke-width: 1.3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
}

.rans__tick path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.scene.is-active .rans__tick circle {
  animation: rtileIn 0.35s var(--ease) 1.85s forwards;
}

.scene.is-active .rans__tick path {
  animation: rdraw 0.3s var(--ease) 1.95s forwards;
}

/* --------------------------------------- scene 4 · how the glasses work */
.egv__frame {
  fill: var(--egv-bg);
  stroke: var(--line);
  stroke-width: 1;
}

.egv__label,
.egv__meta {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  fill: var(--faint);
}

.egv__meta {
  fill: var(--accent);
  opacity: 0.8;
}

.egv__ground {
  stroke: rgba(226, 236, 255, 0.18);
  stroke-width: 1;
  stroke-linecap: round;
}

.egv__obj rect,
.egv__obj path {
  fill: none;
  stroke: rgba(224, 236, 255, 0.6);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.egv__det path {
  fill: none;
  stroke: var(--s1);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.85;
}

.scene.is-active .egv__det path {
  animation: egvDet 2.6s ease-in-out infinite;
}

@keyframes egvDet {

  0%,
  100% {
    opacity: 0.9;
  }

  50% {
    opacity: 0.38;
  }
}

.egv__rail line {
  stroke: var(--accent-line);
  stroke-width: 1.3;
  opacity: 0.75;
}

.egv__node {
  fill: var(--surface);
  stroke: var(--accent-line);
  stroke-width: 1.5;
}

.egv__icon path,
.egv__icon circle {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.egv__icon--ok path {
  stroke: var(--green);
}

.egv__step {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--ink-2);
}

.egv__sub {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  fill: var(--muted);
}

.egv__row {
  opacity: 0.55;
}

.scene.is-active .egv__row {
  animation: egvRow 2.6s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * 0.65s);
}

@keyframes egvRow {

  0%,
  14% {
    opacity: 1;
  }

  26%,
  100% {
    opacity: 0.55;
  }
}

.egv__linkline {
  stroke: var(--accent-line);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.scene.is-active .egv__linkline {
  animation: rdraw 0.5s var(--ease) 0.15s forwards;
}

.egv__linkdot {
  fill: var(--accent);
  opacity: 0;
}

.scene.is-active .egv__linkdot {
  animation: egvLink 2.6s linear infinite;
}

@keyframes egvLink {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  55% {
    opacity: 1;
  }

  70% {
    transform: translateX(42px);
    opacity: 0;
  }

  100% {
    transform: translateX(42px);
    opacity: 0;
  }
}

/* ------------------------------------- scene 6 · beyond the paper ledger */
.beyond {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.bcard {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 30px 152px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(10px);
}

.bcard:last-child {
  border-bottom: 0;
}

.bcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--s1), var(--s2));
  transform: scaleY(0);
  transform-origin: top;
}

.scene.is-active .bcard {
  animation: bcardIn 0.5s var(--ease) forwards;
}

.scene.is-active .bcard::before {
  animation: bcardRule 0.7s var(--ease) forwards;
}

.beyond .bcard:nth-child(1) { animation-delay: 0.12s; }
.beyond .bcard:nth-child(2) { animation-delay: 0.26s; }
.beyond .bcard:nth-child(3) { animation-delay: 0.4s; }

.beyond .bcard:nth-child(1)::before { animation-delay: 0.2s; }
.beyond .bcard:nth-child(2)::before { animation-delay: 0.34s; }
.beyond .bcard:nth-child(3)::before { animation-delay: 0.48s; }

@keyframes bcardIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bcardRule {
  to {
    transform: scaleY(1);
  }
}

.bcard__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--s1) 12%, transparent);
  color: var(--s1);
}

.bcard__icon svg {
  width: 16px;
  height: 16px;
}

.bcard__head,
.bcard__detail {
  min-width: 0;
}

.bcard__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.bcard__meta {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: 0.615rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.bcard__line {
  margin: 0;
  font-size: 0.745rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-2);
}

.bcard__sub {
  margin: 3px 0 0;
  font-size: 0.665rem;
  line-height: 1.4;
  color: var(--faint);
}

/* ------------------------------------------- small screens: compact ledger */
@media (max-width: 620px) {
  .stage__viewport {
    aspect-ratio: 4 / 5;
    padding: 14px;
  }

  .scene {
    inset: 16px 14px;
  }

  .scene__metric-value {
    font-size: 1.9rem;
  }

  .scene__metric-value--word {
    font-size: 1.2rem;
  }

  .scene__metric-label {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  .scene__caption {
    padding-right: 86px;
  }

  .scene__tagrow {
    gap: 6px;
  }

  .scenetag {
    padding: 3px 8px;
    font-size: 0.63rem;
  }

  .beyond {
    overflow-y: auto;
  }

  .bcard {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 3px 9px;
    padding: 9px 12px;
  }

  .bcard__icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .bcard__icon svg {
    width: 13px;
    height: 13px;
  }

  .bcard__head {
    grid-column: 2;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .bcard__detail {
    grid-column: 2;
  }

  .bcard__title {
    font-size: 0.78rem;
  }

  .bcard__meta {
    margin: 0;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
  }

  .bcard__line {
    font-size: 0.665rem;
  }

  .bcard__sub {
    font-size: 0.615rem;
  }
}
