/* ==========================================================================
   Base / tokens
   ========================================================================== */

@font-face {
  font-family: "GuinBody";
  src: url("../font/LXGWZhiSongMN.woff2") format("woff2"),
       url("../font/LXGWZhiSongMN.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "GuinTitle";
  src: url("../font/JINGHUALAOSONGTI.woff2") format("woff2"),
       url("../font/JINGHUALAOSONGTI.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "GuinQuote";
  src: url("../font/hanyilichangsongkeben.woff2") format("woff2"),
       url("../font/hanyilichangsongkeben.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg-void: #040c13;
  --bg-midnight: #0b1724;
  --bg-deep: #112231;
  --ink-main: #efe6d2;
  --ink-soft: rgba(239, 230, 210, 0.74);
  --ink-muted: rgba(239, 230, 210, 0.58);
  --line-soft: rgba(216, 187, 130, 0.2);
  --line-strong: rgba(216, 187, 130, 0.42);
  --gold: #d7b77d;
  --gold-bright: #f2d79a;
  --celadon: #a4d5d9;
  --ember: #b66754;
  --rose: #bf6b6d;
  --ice: #a8d1e7;
  --panel: rgba(10, 21, 33, 0.78);
  --panel-strong: rgba(8, 17, 27, 0.88);
  --primary-color: var(--gold);
  --primary-color-light: var(--gold-bright);
  --secondary-color: var(--celadon);
  --accent-color: var(--celadon);
  --accent-warm: var(--ember);
  --text-color: var(--ink-main);
  --text-muted: var(--ink-muted);
  --text-soft: var(--ink-soft);
  --background-color: var(--bg-void);
  --surface-color: var(--panel);
  --surface-strong: var(--panel-strong);
  --border-color: var(--line-soft);
  --shadow-deep: 0 18px 40px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 28px rgba(2, 8, 14, 0.28);
  --shadow-panel: 0 24px 56px rgba(2, 8, 14, 0.3);
  --glow-gold-soft: 0 0 24px rgba(242, 215, 154, 0.12);
  --lift-soft: translateY(-3px);
  --ease-emphasis: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: "GuinBody", "Source Han Serif SC", "Noto Serif SC", serif;
  --font-title: "GuinTitle", "Songti SC", serif;
  --font-quote: "GuinQuote", "Source Han Serif SC", serif;
  --section-width: min(1320px, calc(100vw - 48px));
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(164, 213, 217, 0.12), transparent 28%),
    radial-gradient(circle at 80% 14%, rgba(190, 110, 92, 0.16), transparent 30%),
    linear-gradient(180deg, #07121d 0%, #050b12 38%, #03070c 100%);
  color: var(--ink-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.index-app {
  position: relative;
  isolation: isolate;
}

.global-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0 0.8px, transparent 1px),
    radial-gradient(circle at 70% 45%, rgba(255, 255, 255, 0.12) 0 0.7px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0 0.9px, transparent 1px);
  background-size: 220px 220px, 180px 180px, 260px 260px;
}

.section-orbit-nav {
  position: fixed;
  top: 50%;
  right: clamp(18px, 2.8vw, 42px);
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 6px;
  transform: translateY(-50%);
  pointer-events: none;
}

.section-orbit-nav::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(216, 187, 130, 0.2), rgba(164, 213, 217, 0.16), transparent);
}

.section-orbit-nav__node {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  outline: none;
  pointer-events: auto;
}

.section-orbit-nav__node::before,
.section-orbit-nav__node::after,
.section-orbit-nav__node span {
  content: "";
  grid-area: 1 / 1;
  border-radius: inherit;
}

.section-orbit-nav__node span {
  width: 6px;
  height: 6px;
  background: rgba(239, 230, 210, 0.62);
  box-shadow: 0 0 10px rgba(164, 213, 217, 0.18);
  transition: transform 0.24s var(--ease-silk), background 0.24s ease, box-shadow 0.24s ease;
}

.section-orbit-nav__node::before {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(216, 187, 130, 0.12);
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 0.24s ease, transform 0.24s var(--ease-silk), border-color 0.24s ease;
}

.section-orbit-nav__node::after {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(164, 213, 217, 0);
  transform: scale(0.72);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-silk);
}

.section-orbit-nav__node:hover span,
.section-orbit-nav__node:focus-visible span,
.section-orbit-nav__node.is-active span {
  background: var(--gold-bright);
  box-shadow:
    0 0 10px rgba(242, 215, 154, 0.54),
    0 0 22px rgba(164, 213, 217, 0.2);
  transform: scale(1.32);
}

.section-orbit-nav__node:hover::before,
.section-orbit-nav__node:focus-visible::before,
.section-orbit-nav__node.is-active::before {
  border-color: rgba(242, 215, 154, 0.34);
  opacity: 1;
  transform: scale(1);
}

.section-orbit-nav__node:focus-visible::after {
  border-color: rgba(164, 213, 217, 0.7);
  transform: scale(1);
}

.section {
  position: relative;
  padding: 96px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-shell {
  width: var(--section-width);
  margin: 0 auto;
}

.section-head {
  max-width: 100%;
  margin-bottom: 34px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-emphasis), transform 0.85s var(--ease-emphasis);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section.is-visible .section-head {
  opacity: 1;
  transform: none;
}

.section-head__eyebrow,
.graph-panel__eyebrow,
.gateway-modal__eyebrow,
.hero__ruby {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
  opacity: 0.82;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.22;
  text-wrap: normal;
}

.section-title-break {
  display: none;
}

@media (max-width: 680px) {
  .section-title-break {
    display: block;
  }
}

.section-head__lead,
.section-note,
.graph-panel__summary,
.gateway-modal__lead {
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.9;
  font-size: 1rem;
  text-wrap: pretty;
}

.section-head__lead {
  max-width: 820px;
}

.section-head--center .section-head__lead {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  padding: 0;
  overflow: clip;
  background:
    radial-gradient(circle at 50% 50%, rgba(29, 68, 88, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(6, 13, 22, 0.28) 0%, rgba(5, 11, 18, 0.7) 70%, rgba(5, 11, 18, 1) 100%);
}

.hero__starfield,
.hero__skyline,
.hero__fragments,
.hero__chart {
  position: absolute;
  inset: 0;
}

.hero__starfield,
.hero__fragments,
.hero__chart {
  will-change: transform;
}

.hero__starfield {
  width: 100%;
  height: 100%;
  z-index: -3;
}

.hero__skyline {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 12%, rgba(212, 183, 125, 0.14), transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(164, 213, 217, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 32%),
    linear-gradient(180deg, transparent 0%, rgba(4, 8, 13, 0.12) 100%);
}

.hero__chart {
  z-index: -1;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.hero__chart svg {
  width: 100%;
  height: 100%;
}

.hero__chart-rings {
  transform-origin: 500px 500px;
  animation: chartSpin 160s linear infinite;
}

.hero--offscreen .hero__chart-rings,
.hero--offscreen .hero__chart-lines,
.hero--offscreen .hero__chart-stars {
  animation-play-state: paused;
}

.hero__chart-rings circle {
  fill: none;
  stroke: rgba(164, 213, 217, 0.22);
  stroke-width: 1.2;
  stroke-dasharray: 4 24;
  stroke-linecap: round;
}

.hero__chart-lines {
  transform-origin: 500px 500px;
  animation: chartSpinReverse 240s linear infinite;
}

.hero__chart-lines path {
  fill: none;
  stroke: rgba(216, 187, 130, 0.2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 12;
}

.hero__chart-stars {
  transform-origin: 500px 500px;
  animation: chartSpinReverse 240s linear infinite;
}

.hero__chart-stars circle {
  fill: rgba(242, 215, 154, 0.88);
}

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .hero__chart-stars {
    filter: none !important;
  }

  .hero__chart-stars circle {
    fill: rgba(242, 215, 154, 0.78);
  }

  .hero--mobile-scrolling .hero__chart-rings,
  .hero--mobile-scrolling .hero__chart-lines,
  .hero--mobile-scrolling .hero__chart-stars {
    animation-play-state: paused;
  }
}

.hero__fragments {
  z-index: -1;
  pointer-events: none;
}

.hero-fragment {
  position: absolute;
  width: clamp(180px, 18vw, 320px);
  aspect-ratio: 3 / 4;
  left: var(--fragment-left);
  top: var(--fragment-top);
  transform: translate(-50%, -50%) rotate(var(--fragment-rotate));
  border-radius: 28px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 16, 24, 0.4)),
    var(--fragment-image);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(216, 187, 130, 0.16);
  opacity: var(--fragment-opacity);
  filter: saturate(0.75) sepia(0.12) blur(0.2px);
  box-shadow: 0 24px 80px rgba(2, 8, 14, 0.3);
  overflow: hidden;
  animation: fragmentFloat var(--fragment-duration) ease-in-out infinite alternate;
  animation-delay: var(--fragment-delay);
}

.hero-fragment::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(7, 14, 23, 0.08), rgba(7, 14, 23, 0.58));
}



.hero__content {
  position: relative;
  width: min(980px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 0 88px;
}

.hero__title,
.hero__ruby,
.hero__subtitle,
.hero__slogans {
  align-self: flex-start;
}

.hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.11em;
  text-shadow: 0 0 22px rgba(255, 239, 202, 0.1);
}

.hero__title-main {
  display: block;
  font-size: clamp(3.6rem, 9vw, 7.6rem);
  letter-spacing: 0.14em;
}

.hero__title-sub {
  display: block;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-top: 14px;
  margin-inline-start: 5px; /* Optical alignment to match the giant '古' */
}

.hero__subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.95;
  transform: translateX(9px); /* Optical alignment fixing */
}

.hero__slogans {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: 28px;
  perspective: 1200px;
}

.hero__slogan {
  --slogan-glow-x: 14%;
  --slogan-glow-y: 50%;
  --slogan-lift: 0px;
  --slogan-scale: 1;
  position: relative;
  margin: 0;
  padding: 18px 24px 18px 32px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(164, 213, 217, 0.08), rgba(10, 21, 33, 0.5)),
    rgba(8, 17, 27, 0.32);
  border: 1px solid rgba(164, 213, 217, 0.14);
  box-shadow: var(--shadow-soft);
  color: var(--ink-main);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.9;
  overflow: hidden;
  isolation: isolate;
  transform-origin: left center;
  transform: translate3d(var(--slogan-x, 0px), var(--slogan-lift), 0) scale(var(--slogan-scale));
  will-change: transform, opacity, box-shadow, filter;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.58s var(--ease-silk),
    opacity 0.42s ease,
    box-shadow 0.58s var(--ease-silk),
    border-color 0.42s ease,
    background 0.58s var(--ease-silk),
    filter 0.58s var(--ease-silk);
}

.hero__slogan:nth-child(1) {
  --slogan-x: 0px;
  --slogan-o: 1;
  opacity: var(--slogan-o);
}

.hero__slogan:nth-child(2) {
  --slogan-x: 88px;
  --slogan-o: 0.72;
  opacity: var(--slogan-o);
}

.hero__slogan:nth-child(3) {
  --slogan-x: 176px;
  --slogan-o: 0.48;
  opacity: var(--slogan-o);
}

.hero__slogan::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--slogan-glow-x) var(--slogan-glow-y), rgba(242, 215, 154, 0.16), transparent 22%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.06), transparent 38%, transparent 62%, rgba(164, 213, 217, 0.08));
  opacity: 0;
  transition: opacity 0.52s var(--ease-silk);
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) and (pointer: fine) {
  .hero__slogans:hover .hero__slogan:not(:hover) {
    filter: saturate(0.92) brightness(0.96);
  }

  .hero__slogan:hover {
    transform: translate3d(var(--slogan-x, 0px), -6px, 0) scale(1.015) !important;
    opacity: 1 !important;
    z-index: 10;
    border-color: rgba(216, 187, 130, 0.34);
    background:
      linear-gradient(135deg, rgba(164, 213, 217, 0.14), rgba(10, 21, 33, 0.62)),
      rgba(8, 17, 27, 0.46);
    box-shadow:
      0 18px 36px rgba(2, 8, 14, 0.34),
      0 0 0 1px rgba(242, 215, 154, 0.08),
      0 0 24px rgba(242, 215, 154, 0.12);
    filter: saturate(1.06) brightness(1.03);
  }

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

@media (hover: none), (pointer: coarse) {
  .hero__slogans {
    gap: 12px;
  }

  .hero__slogan:nth-child(1),
  .hero__slogan:nth-child(2),
  .hero__slogan:nth-child(3) {
    --slogan-x: 0px;
    --slogan-o: 1;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .hero__slogans.is-touch-active .hero__slogan {
    opacity: 0.58;
    filter: saturate(0.92) brightness(0.96);
    transform: translate3d(0, 0, 0) scale(0.992);
  }

  .hero__slogans.is-touch-active .hero__slogan.is-touch-active {
    opacity: 1;
    z-index: 10;
    border-color: rgba(216, 187, 130, 0.34);
    background:
      linear-gradient(135deg, rgba(164, 213, 217, 0.14), rgba(10, 21, 33, 0.62)),
      rgba(8, 17, 27, 0.46);
    box-shadow:
      0 16px 32px rgba(2, 8, 14, 0.32),
      0 0 0 1px rgba(242, 215, 154, 0.08),
      0 0 20px rgba(242, 215, 154, 0.12);
    filter: saturate(1.04) brightness(1.02);
    transform: translate3d(0, -4px, 0) scale(1.012) !important;
  }

  .hero__slogans.is-touch-active .hero__slogan.is-touch-active::after {
    opacity: 1;
  }

  .hero__slogan:active {
    transform: translate3d(0, -2px, 0) scale(1.005);
  }
}

.hero__slogan::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 4px;
  height: 52%;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(242, 215, 154, 0.1), rgba(242, 215, 154, 0.92), rgba(164, 213, 217, 0.22));
  box-shadow: 0 0 16px rgba(242, 215, 154, 0.3);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(216, 187, 130, 0.26);
  background: rgba(7, 14, 23, 0.4);
  backdrop-filter: blur(10px);
  color: var(--ink-main);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(216, 187, 130, 0.46);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.hero__scroll-label {
  letter-spacing: 0.08em;
}

.hero__scroll-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(216, 187, 130, 0.12);
  color: var(--gold-bright);
}

.hero__entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(164, 213, 217, 0.3);
  background: transparent;
  backdrop-filter: blur(10px);
  color: var(--celadon);
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.hero__entry-btn:hover,
.hero__entry-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(164, 213, 217, 0.55);
  background: rgba(164, 213, 217, 0.06);
  box-shadow: 0 0 18px rgba(164, 213, 217, 0.12);
  outline: none;
}

.hero__entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(164, 213, 217, 0.12);
  color: var(--celadon);
  font-size: 0.9rem;
}

.hero__entry-label {
  letter-spacing: 0.08em;
}

/* --- Hero Loading Entrance Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .hero__chart {
    animation: heroFadeIn 2.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero__topbar {
    animation: heroSlideDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  }
  .hero__ruby {
    animation: heroSlideRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
  }
  .hero__title-main {
    animation: heroSlideRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
  }
  .hero__title-sub {
    animation: heroSlideRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
  }
  .hero__subtitle {
    animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
  }
  .hero__slogan:nth-child(1) {
    animation: heroSlideUpSlogan 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
  }
  .hero__slogan:nth-child(2) {
    animation: heroSlideUpSlogan 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.18s both;
  }
  .hero__slogan:nth-child(3) {
    animation: heroSlideUpSlogan 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.26s both;
  }
  .hero__actions {
    animation: heroPopIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both;
  }

  @keyframes heroFadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 0.8; transform: scale(1); }
  }
  @keyframes heroSlideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroSlideRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroSlideUpSlogan {
    from { opacity: 0; transform: translateX(var(--slogan-x, 0)) translateY(30px); }
    to { opacity: var(--slogan-o, 1); transform: translateX(var(--slogan-x, 0)) translateY(0); }
  }
  @keyframes heroPopIn {
    from { opacity: 0; transform: scale(0.92) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
}

/* ==========================================================================
   Cover showcase
   ========================================================================== */

.cover-showcase {
  overflow: clip;
}

.cover-showcase::before {
  background:
    radial-gradient(circle at 18% 34%, rgba(216, 187, 130, 0.1), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(164, 213, 217, 0.12), transparent 26%),
    radial-gradient(circle at 74% 84%, rgba(190, 110, 92, 0.08), transparent 24%);
}

.cover-showcase__shell {
  position: relative;
}

.cover-showcase__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(460px, 660px) minmax(300px, 420px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 34px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s var(--ease-emphasis) 0.08s, transform 0.95s var(--ease-emphasis) 0.08s;
}

.cover-showcase.is-visible .cover-showcase__layout {
  opacity: 1;
  transform: none;
}

.cover-showcase__feature {
  position: relative;
  width: min(100%, 660px);
  justify-self: center;
  perspective: 1200px;
  contain: paint;
}

.cover-showcase__feature::before,
.cover-showcase__feature::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(216, 187, 130, 0.16);
  pointer-events: none;
}

.cover-showcase__feature::before {
  transform: rotate(-18deg) scale(1.22);
  box-shadow:
    0 0 0 34px rgba(164, 213, 217, 0.025),
    0 0 42px rgba(242, 215, 154, 0.08);
}

.cover-showcase__feature::after {
  transform: rotate(18deg) scale(1.06);
  border-color: rgba(164, 213, 217, 0.14);
}

.cover-showcase__compare {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
  border-radius: 30px;
  padding: clamp(14px, 2vw, 18px);
  border: 1px solid rgba(216, 187, 130, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 17, 27, 0.16)),
    rgba(8, 17, 27, 0.62);
  box-shadow:
    0 34px 74px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(242, 215, 154, 0.05),
    var(--glow-gold-soft);
  text-decoration: none;
  transform: rotateY(-4deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-silk), border-color 0.32s ease, box-shadow 0.5s ease;
}

.cover-showcase__compare:hover,
.cover-showcase__compare:focus-within {
  transform: rotateY(0deg) rotateX(0deg) translateY(-5px);
  border-color: rgba(242, 215, 154, 0.44);
  box-shadow:
    0 40px 82px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(242, 215, 154, 0.16);
}

.cover-showcase__feature-aura {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.2), transparent 16%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 34%, transparent 64%, rgba(164, 213, 217, 0.12));
  mix-blend-mode: screen;
  opacity: 0.74;
  pointer-events: none;
}

.cover-showcase__compare-column {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  min-width: 0;
  perspective: 1100px;
}

.cover-showcase__compare-pane {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(216, 187, 130, 0.2);
  background: rgba(7, 14, 23, 0.54);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  cursor: zoom-in;
  --page-turn-angle: -72deg;
  transform-origin: left center;
  backface-visibility: hidden;
  transition: transform 0.28s var(--ease-silk), border-color 0.28s ease, box-shadow 0.28s ease;
}

.cover-showcase__compare-pane:hover,
.cover-showcase__compare-pane:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(242, 215, 154, 0.48);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.3);
  outline: none;
}

.cover-showcase__compare-pane--ai {
  border-color: rgba(164, 213, 217, 0.24);
  --page-turn-angle: 72deg;
  transform-origin: right center;
}

.cover-showcase__compare-label {
  position: relative;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(216, 187, 130, 0.14);
  background: rgba(3, 7, 13, 0.28);
  color: rgba(242, 215, 154, 0.72);
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.cover-showcase__compare-column--ai .cover-showcase__compare-label {
  border-color: rgba(164, 213, 217, 0.14);
  color: rgba(164, 213, 217, 0.72);
}

.cover-showcase__compare-image {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(7, 14, 23, 0.54);
}

.cover-showcase__page-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(105deg, transparent 18%, rgba(255, 244, 210, 0.32) 45%, transparent 70%),
    radial-gradient(circle at 50% 0%, rgba(242, 215, 154, 0.18), transparent 32%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translateX(-42%) skewX(-12deg);
}

.cover-showcase__panel {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 32px;
  border: 1px solid rgba(216, 187, 130, 0.14);
  background:
    radial-gradient(circle at 14% 0%, rgba(242, 215, 154, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(7, 14, 23, 0.58);
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.cover-showcase__panel::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 215, 154, 0.72), transparent);
}

.cover-showcase__meta {
  position: relative;
  min-height: 142px;
}

.cover-showcase__kind {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
}

.cover-showcase__active-title {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.cover-showcase__active-volume {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  line-height: 1.35;
  letter-spacing: 0.14em;
}

.cover-showcase__active-name {
  color: var(--ink-main);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.cover-showcase__active-note {
  max-width: 34em;
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.86;
  text-wrap: pretty;
}

.cover-showcase__select-label {
  position: relative;
  display: block;
  margin: 22px 0 8px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.cover-showcase__select-wrap {
  position: relative;
  z-index: 24;
}

.cover-showcase__select-wrap.is-open {
  z-index: 50;
}

.cover-showcase__select-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 12px 44px 12px 15px;
  border: 1px solid rgba(216, 187, 130, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(3, 7, 13, 0.42);
  color: var(--ink-main);
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.cover-showcase__select-trigger:hover,
.cover-showcase__select-trigger:focus-visible,
.cover-showcase__select-wrap.is-open .cover-showcase__select-trigger {
  border-color: rgba(242, 215, 154, 0.42);
  box-shadow:
    0 0 18px rgba(242, 215, 154, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  outline: none;
}

.cover-showcase__select-current {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-showcase__select-trigger i {
  flex: none;
  color: var(--gold);
  transition: transform 0.24s ease, color 0.24s ease;
}

.cover-showcase__select-wrap.is-open .cover-showcase__select-trigger i {
  color: var(--gold-bright);
  transform: rotate(180deg);
}

.cover-showcase__select-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(46vh, 420px);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(216, 187, 130, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 215, 154, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    rgba(5, 12, 20, 0.96);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.24s var(--ease-silk), visibility 0.2s ease;
}

.cover-showcase__select-wrap.is-open .cover-showcase__select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cover-showcase__select-option {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cover-showcase__select-option:hover,
.cover-showcase__select-option:focus-visible {
  background: rgba(164, 213, 217, 0.08);
  border-color: rgba(164, 213, 217, 0.18);
  color: var(--ink-main);
  outline: none;
}

.cover-showcase__select-option.is-active {
  background: rgba(216, 187, 130, 0.13);
  border-color: rgba(216, 187, 130, 0.28);
  color: var(--gold-bright);
}

.cover-showcase__select-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-showcase__select-option-meta {
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.cover-showcase__toolbar {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cover-showcase__tabs,
.cover-showcase__nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cover-showcase__tabs {
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(216, 187, 130, 0.14);
  background: rgba(3, 7, 13, 0.34);
}

.cover-showcase__tab,
.cover-showcase__nav-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.cover-showcase__tab {
  min-width: 92px;
  padding: 10px 16px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.cover-showcase__tab.is-active,
.cover-showcase__tab:hover,
.cover-showcase__tab:focus-visible {
  background: rgba(216, 187, 130, 0.14);
  border-color: rgba(216, 187, 130, 0.24);
  color: var(--gold-bright);
  outline: none;
}

.cover-showcase__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border-color: rgba(216, 187, 130, 0.18);
  background: rgba(7, 14, 23, 0.46);
}

.cover-showcase__nav-btn:hover,
.cover-showcase__nav-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 215, 154, 0.42);
  color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(242, 215, 154, 0.12);
  outline: none;
}

.cover-showcase__track-wrap {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(164, 213, 217, 0.1);
  background:
    radial-gradient(circle at 50% 0%, rgba(164, 213, 217, 0.08), transparent 34%),
    rgba(3, 7, 13, 0.24);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.cover-showcase__track {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 176px;
  padding: 28px 28px 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 187, 130, 0.36) rgba(255, 255, 255, 0.04);
}

.cover-thumb {
  position: relative;
  flex: 0 0 clamp(66px, 7vw, 88px);
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 1px solid rgba(216, 187, 130, 0.14);
  border-radius: 14px;
  background: rgba(7, 14, 23, 0.58);
  color: var(--ink-main);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: center;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 88px 132px;
  transform: translateY(var(--thumb-y, 0px)) rotate(var(--thumb-rotate, 0deg));
  z-index: var(--thumb-z, 1);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
  transition: transform 0.34s var(--ease-silk), border-color 0.28s ease, box-shadow 0.34s ease, filter 0.28s ease;
}

@media (hover: none), (pointer: coarse) {
  .cover-showcase__track {
    scroll-snap-type: x mandatory;
  }
}

.cover-thumb:hover,
.cover-thumb:focus-visible {
  transform: translateY(calc(var(--thumb-y, 0px) - 8px)) rotate(0deg) scale(1.05);
  border-color: rgba(242, 215, 154, 0.48);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.32);
  outline: none;
}

.cover-thumb.is-active {
  transform: translateY(-12px) rotate(0deg) scale(1.08);
  border-color: rgba(242, 215, 154, 0.68);
  box-shadow:
    0 24px 38px rgba(0, 0, 0, 0.36),
    0 0 18px rgba(242, 215, 154, 0.18);
}

.cover-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.9);
  transition: filter 0.3s ease;
}

.cover-thumb:hover img,
.cover-thumb:focus-visible img,
.cover-thumb.is-active img {
  filter: saturate(1.08) brightness(1.04);
}

.cover-thumb__label {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(3, 7, 13, 0.68);
  color: var(--ink-main);
  font-size: 0.66rem;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cover-showcase__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cover-showcase__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(216, 187, 130, 0.24);
  background: rgba(216, 187, 130, 0.1);
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.cover-showcase__cta:hover,
.cover-showcase__cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 215, 154, 0.46);
  background: rgba(216, 187, 130, 0.16);
  box-shadow: 0 0 18px rgba(242, 215, 154, 0.14);
  outline: none;
}

.cover-preview-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 54px);
  visibility: hidden;
  pointer-events: none;
  z-index: 28;
}

.cover-preview-modal.is-mounted {
  visibility: visible;
  pointer-events: auto;
}

.cover-preview-modal__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(216, 187, 130, 0.1), transparent 28%),
    rgba(2, 6, 10, 0.72);
  opacity: 0;
  backdrop-filter: blur(0);
  cursor: zoom-out;
  transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
}

.cover-preview-modal.is-open .cover-preview-modal__scrim {
  opacity: 1;
  backdrop-filter: blur(12px);
}

.cover-preview-modal__float {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.28s var(--ease-silk), transform 0.28s var(--ease-silk);
}

.cover-preview-modal.is-open .cover-preview-modal__float {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cover-preview-modal__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cover-preview-modal__close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 2;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(216, 187, 130, 0.26);
  background: rgba(3, 7, 13, 0.72);
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.cover-preview-modal__close:hover,
.cover-preview-modal__close:focus-visible {
  transform: translateY(-1px);
  color: var(--gold-bright);
  background: rgba(216, 187, 130, 0.14);
  border-color: rgba(216, 187, 130, 0.36);
  outline: none;
}

.cover-preview-modal__image {
  display: block;
  width: min(72vw, 560px);
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 104px);
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(242, 215, 154, 0.08);
}

.cover-preview-modal__image[data-preview-kind="ai"] {
  width: min(78vw, 640px);
}

.cover-preview-modal__hint {
  margin: 12px 0 0;
  color: rgba(239, 230, 210, 0.66);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.86);
}


/* ==========================================================================
   Cover sealed state
   ========================================================================== */

.cover-showcase__reveal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 18px;
  transform: translateY(5px);
}

.cover-showcase__reveal-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(216, 187, 130, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(7, 14, 23, 0.58);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.28s var(--ease-silk), border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.cover-showcase__reveal-btn:hover,
.cover-showcase__reveal-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 215, 154, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(216, 187, 130, 0.12);
  box-shadow:
    0 0 18px rgba(242, 215, 154, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.cover-showcase__reveal-btn i {
  color: var(--gold);
  font-size: 0.88em;
}

.cover-showcase__reveal-btn--first {
  border-color: rgba(164, 213, 217, 0.22);
}

.cover-showcase__reveal-btn--first:hover,
.cover-showcase__reveal-btn--first:focus-visible {
  border-color: rgba(164, 213, 217, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    rgba(164, 213, 217, 0.1);
  box-shadow: 0 0 18px rgba(164, 213, 217, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cover-showcase__reveal-btn--first i {
  color: var(--cyan);
}

/* Card back overlay - inside .cover-showcase__compare, covers both panes */
.cover-showcase__card-back {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
  padding: clamp(14px, 2vw, 18px);
  border-radius: 30px;
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.5s var(--ease-silk), transform 0.5s var(--ease-silk);
}

.cover-showcase__card-back-face {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(216, 187, 130, 0.2);
  background: rgba(5, 12, 22, 0.95);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
  backface-visibility: hidden;
}

.cover-showcase__card-back-face:nth-child(2) {
  border-color: rgba(164, 213, 217, 0.24);
}

.cover-showcase__card-back-pattern {
  display: block;
  width: 100%;
  height: 100%;
}

/* ========== Sealed state: centered layout + FLIP reveal ========== */

/* Sealed: single-column centered layout */
.cover-showcase--sealed .cover-showcase__layout {
  grid-template-columns: 1fr;
  justify-items: center;
  justify-content: center;
  align-items: start;
}

.cover-showcase--sealed .cover-showcase__feature {
  max-width: 660px;
  width: 100%;
}

/* Panel hidden in sealed state */
.cover-showcase--sealed .cover-showcase__panel {
  display: none;
}

/* Compare inner elements hidden (card-back covers them) */
.cover-showcase--sealed .cover-showcase__compare-label,
.cover-showcase--sealed .cover-showcase__compare-image,
.cover-showcase--sealed .cover-showcase__compare-pane {
  opacity: 0;
}

.cover-showcase--sealed .cover-showcase__feature-aura {
  opacity: 0;
}

/* Unsealed: panel transitions in from right */
.cover-showcase:not(.cover-showcase--sealed) .cover-showcase__panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition: opacity 0.55s var(--ease-silk) 0.1s, transform 0.55s var(--ease-silk) 0.1s;
}

/* Compare children fade in */
.cover-showcase:not(.cover-showcase--sealed) .cover-showcase__compare-label,
.cover-showcase:not(.cover-showcase--sealed) .cover-showcase__compare-image,
.cover-showcase:not(.cover-showcase--sealed) .cover-showcase__compare-pane {
  opacity: 1;
  transition: opacity 0.4s var(--ease-silk) 0.3s;
}

/* Card-back hidden after reveal */
.cover-showcase:not(.cover-showcase--sealed) .cover-showcase__card-back {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.cover-showcase:not(.cover-showcase--sealed) .cover-showcase__compare {
  opacity: 1;
  transition: opacity 0.35s var(--ease-silk) 0.1s;
}

/* FLIP slide class: applied by JS during reveal */
.cover-showcase__feature.is-sliding {
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Panel initial state for slide-in (applied by JS before removing sealed) */
.cover-showcase__panel.is-entering {
  display: block;
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-showcase__panel.is-entering.is-entered {
  opacity: 1;
  transform: translateX(0);
}

/* Card-back reveal animation */
.cover-showcase__card-back.is-revealing .cover-showcase__card-back-face {
  animation: cardRevealFlip 0.7s var(--ease-silk) forwards;
}

.cover-showcase__card-back.is-revealing .cover-showcase__card-back-face:nth-child(2) {
  animation-delay: 0.1s;
}

@keyframes cardRevealFlip {
  0% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotateY(90deg) scale(1.02);
    opacity: 0.6;
  }
  100% {
    transform: rotateY(180deg) scale(0.95);
    opacity: 0;
  }
}

/* ========== End Cover Showcase sealed state ========== */

/* ========== Skeleton / Loading States (2.3) ========== */

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-shine {
  background: linear-gradient(
    90deg,
    rgba(216, 187, 130, 0.04) 0%,
    rgba(216, 187, 130, 0.1) 40%,
    rgba(216, 187, 130, 0.04) 80%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 2s ease-in-out infinite;
}

/* Cover compare pane skeleton: shown when image hasn't loaded yet */
.cover-showcase__compare-pane:empty,
.cover-showcase__compare-pane img:not([src]),
.cover-showcase__compare-pane img[src=""] {
  background: linear-gradient(
    90deg,
    rgba(216, 187, 130, 0.04) 0%,
    rgba(216, 187, 130, 0.1) 40%,
    rgba(216, 187, 130, 0.04) 80%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 2s ease-in-out infinite;
}

/* Gateway card skeleton: when text hasn't been injected yet */
.gateway-card:empty {
  background: linear-gradient(
    90deg,
    rgba(216, 187, 130, 0.04) 0%,
    rgba(216, 187, 130, 0.08) 40%,
    rgba(216, 187, 130, 0.04) 80%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 2.4s ease-in-out infinite;
  min-height: 200px;
}

/* Cover track thumbnail lazy: placeholder until image loads */
.cover-thumb img[data-src]:not([src]) {
  background: rgba(216, 187, 130, 0.06);
}

/* ========== End Skeleton States ========== */

/* ==========================================================================
   Cloud
   ========================================================================== */

.cover-showcase::before,
.cloud-section::before,
.graph-section::before,
.entry-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud-section::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(164, 213, 217, 0.1), transparent 22%),
    radial-gradient(circle at 86% 74%, rgba(190, 110, 92, 0.08), transparent 26%);
}

.cloud-stage-wrap {
  position: relative;
  margin-top: 22px;
  padding: 24px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 215, 154, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(7, 14, 23, 0.44);
  border: 1px solid rgba(216, 187, 130, 0.12);
  overflow: hidden;
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.95s var(--ease-emphasis) 0.08s, transform 0.95s var(--ease-emphasis) 0.08s;
}

.cloud-stage-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(220px, calc(100% - 96px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(242, 215, 154, 0.86), transparent);
  opacity: 0.75;
}

.cloud-section.is-visible .cloud-stage-wrap {
  opacity: 1;
  transform: none;
}

.cloud-stage {
  position: relative;
  min-height: min(74vh, 760px);
  isolation: isolate;
}

.cloud-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(164, 213, 217, 0.05), transparent 30%),
    radial-gradient(circle at 24% 24%, rgba(216, 187, 130, 0.05), transparent 24%),
    radial-gradient(circle at 74% 72%, rgba(216, 187, 130, 0.04), transparent 20%);
  pointer-events: none;
  z-index: 0;
}

.cloud-stage::after {
  content: "";
  position: absolute;
  inset: -200px;
  background:
    radial-gradient(circle at 50% 50%, rgba(12, 22, 32, 0.06), rgba(3, 7, 13, 0.82) 48%),
    rgba(3, 7, 13, 0.4);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, backdrop-filter 0.45s ease;
  backdrop-filter: blur(0);
}

.cloud-stage.has-active::after {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.cloud-card {
  position: absolute;
  left: var(--card-x);
  top: var(--card-y);
  width: var(--card-width);
  transform: translate(-50%, -50%) rotate(var(--card-rotation));
  z-index: var(--card-z);
  padding: 20px 20px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 215, 154, 0.1), transparent 30%),
    linear-gradient(160deg, rgba(164, 213, 217, 0.055) 0%, rgba(10, 21, 33, 0.2) 44%, rgba(190, 110, 92, 0.035) 100%),
    rgba(6, 14, 24, 0.9);
  border: 1px solid rgba(216, 187, 130, 0.18);
  box-shadow:
    0 18px 38px rgba(2, 8, 14, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 1px 0 rgba(242, 215, 154, 0.08);
  text-align: left;
  color: inherit;
  appearance: none;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.5s ease, background 0.4s ease, opacity 0.35s ease;
  transform-style: preserve-3d;
  animation: cloudDrift var(--card-duration) ease-in-out infinite alternate;
}

/* Arcane shimmer edge-light */
.cloud-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(242, 215, 154, 0.13), transparent 35%),
    radial-gradient(ellipse at 85% 110%, rgba(164, 213, 217, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%);
  opacity: 0.78;
  pointer-events: none;
}

.cloud-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.08) 34%, transparent 55%),
    linear-gradient(180deg, transparent 62%, rgba(255, 255, 255, 0.03) 100%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cloud-card--front {
  filter: none;
}

.cloud-card--mid {
  opacity: 0.95;
}

.cloud-card--back {
  opacity: 0.86;
}

.cloud-stage.is-paused .cloud-card,
.cloud-stage.is-paused .cloud-card__arcane {
  animation-play-state: paused;
}

/* Arcane magic circle corner ornaments */
.cloud-card__arcane {
  position: absolute;
  pointer-events: none;
  color: rgba(216, 187, 130, 0.6);
  stroke: rgba(216, 187, 130, 0.4);
  stroke-width: 1;
  opacity: 0.75;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.cloud-card__arcane--br {
  width: 56px;
  height: 56px;
  bottom: -12px;
  right: -12px;
  animation: arcaneSpinSlow 60s linear infinite;
}

.cloud-card.is-hovered .cloud-card__arcane,
.cloud-card.is-active .cloud-card__arcane {
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(216, 187, 130, 0.3));
}

.cloud-card.is-active .cloud-card__arcane {
  color: rgba(216, 187, 130, 0.5);
  stroke: rgba(216, 187, 130, 0.3);
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(216, 187, 130, 0.4));
}

@keyframes arcaneSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cloud-card.is-hovered {
  border-color: rgba(216, 187, 130, 0.34);
  box-shadow:
    0 28px 62px rgba(3, 8, 14, 0.46),
    inset 0 0 30px rgba(242, 215, 154, 0.06),
    0 0 18px rgba(216, 187, 130, 0.1);
  transform: translate(-50%, -50%) rotate(calc(var(--card-rotation) * 0.45)) scale(1.04);
  z-index: calc(var(--card-z) + 20);
}

.cloud-card.is-hovered::after,
.cloud-card.is-active::after {
  opacity: 0.88;
  transform: translateX(4%);
}

.cloud-card.is-active {
  left: var(--center-x) !important;
  top: var(--center-y) !important;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.26) !important;
  z-index: 100 !important;
  border-color: rgba(216, 187, 130, 0.54);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 215, 154, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(164, 213, 217, 0.06) 0%, rgba(6, 14, 24, 0.95) 50%, rgba(190, 110, 92, 0.04) 100%),
    rgba(6, 14, 24, 0.98);
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.72),
    0 0 36px rgba(216, 187, 130, 0.14),
    0 0 0 1px rgba(216, 187, 130, 0.4),
    inset 0 0 40px rgba(242, 215, 154, 0.05);
  backdrop-filter: blur(4px) saturate(1.04);
  animation-play-state: paused;
}

.cloud-card.is-sibling-up,
.cloud-card.is-sibling-down {
  --sibling-y: 280px;
  left: var(--center-x) !important;
  top: var(--center-y) !important;
  z-index: 90 !important;
  border-color: rgba(216, 187, 130, 0.34);
  background: rgba(6, 14, 24, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.56);
  opacity: 0.92;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  animation-play-state: paused;
}

.cloud-card.is-sibling-up {
  transform: translate(-50%, calc(-50% - var(--sibling-y))) rotate(0deg) scale(0.92) !important;
}

.cloud-card.is-sibling-down {
  transform: translate(-50%, calc(-50% + var(--sibling-y))) rotate(0deg) scale(0.92) !important;
}

.cloud-card.is-sibling-up:hover,
.cloud-card.is-sibling-down:hover {
  opacity: 1;
  transform: translate(-50%, calc(-50% - var(--sibling-y))) rotate(0deg) scale(0.96) !important;
}

.cloud-card.is-sibling-down:hover {
  transform: translate(-50%, calc(-50% + var(--sibling-y))) rotate(0deg) scale(0.96) !important;
}

@keyframes floatArrowUp {
  0% { transform: translateX(-50%) translateY(4px) rotate(45deg); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(-50%) translateY(-20px) rotate(45deg); opacity: 0; }
}

@keyframes floatArrowDown {
  0% { transform: translateX(-50%) translateY(-4px) rotate(45deg); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(-50%) translateY(20px) rotate(45deg); opacity: 0; }
}

.cloud-card.is-active.has-prev-sibling::before,
.cloud-card.is-active.has-next-sibling::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(242, 215, 154, 0.9));
}

.cloud-card.is-active.has-prev-sibling::before {
  top: -50px;
  border-top: 3.5px solid rgba(242, 215, 154, 1);
  border-left: 3.5px solid rgba(242, 215, 154, 1);
  transform: translateX(-50%) rotate(45deg);
  animation: floatArrowUp 1.6s infinite ease-in-out;
}

.cloud-card.is-active.has-next-sibling::after {
  bottom: -50px;
  border-bottom: 3.5px solid rgba(242, 215, 154, 1);
  border-right: 3.5px solid rgba(242, 215, 154, 1);
  transform: translateX(-50%) rotate(45deg);
  animation: floatArrowDown 1.6s infinite ease-in-out;
}

.cloud-card.is-sibling-up::before,
.cloud-card.is-sibling-down::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 80px;
  pointer-events: none;
  transform: translateX(-50%);
}

.cloud-card.is-sibling-up::before {
  bottom: -90px;
  background: linear-gradient(to bottom, rgba(242, 215, 154, 0.7), rgba(242, 215, 154, 0));
}

.cloud-card.is-sibling-down::before {
  top: -90px;
  background: linear-gradient(to top, rgba(242, 215, 154, 0.7), rgba(242, 215, 154, 0));
}

.cloud-card__meta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.portrait-coin {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(216, 187, 130, 0.22);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 18, 28, 0.1)),
    var(--portrait-image),
    linear-gradient(135deg, rgba(164, 213, 217, 0.2), rgba(7, 14, 23, 0.92));
  background-size: cover;
  background-position: var(--portrait-position);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(164, 213, 217, 0.08), 0 0 18px rgba(164, 213, 217, 0.14);
}

.portrait-coin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.portrait-coin__sigil {
  position: absolute;
  right: -2px;
  bottom: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 11, 18, 0.88);
  border: 1px solid rgba(216, 187, 130, 0.24);
  color: var(--gold-bright);
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.cloud-card__info {
  min-width: 0;
}

.cloud-card__name {
  margin: 0;
  color: var(--ink-main);
  font-size: 1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cloud-card__volume {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cloud-card__story {
  align-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(164, 213, 217, 0.1), rgba(216, 187, 130, 0.06));
  border: 1px solid rgba(164, 213, 217, 0.18);
  color: var(--celadon);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(164, 213, 217, 0.08);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.cloud-card__story:hover,
.cloud-card__story:focus-visible {
  background: rgba(164, 213, 217, 0.18);
  border-color: rgba(164, 213, 217, 0.36);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(164, 213, 217, 0.15);
  transform: translateY(-1px);
}

.cloud-card__quote {
  position: relative;
  margin: 0;
  color: rgba(248, 241, 228, 0.96);
  font-family: var(--font-quote);
  font-size: var(--card-font-size);
  line-height: 1.72;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

.section-note {
  margin-top: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease-emphasis) 0.2s, transform 0.85s var(--ease-emphasis) 0.2s;
}

.cloud-section.is-visible .section-note,
.graph-section.is-visible .section-note,
.entry-section.is-visible .section-note {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Graph
   ========================================================================== */

.graph-section::before {
  background:
    radial-gradient(circle at 78% 18%, rgba(164, 213, 217, 0.08), transparent 20%),
    radial-gradient(circle at 14% 76%, rgba(216, 187, 130, 0.06), transparent 26%);
}

.graph-toolbar {
  display: inline-flex;
  gap: 12px;
  padding: 6px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(7, 14, 23, 0.46);
  border: 1px solid rgba(216, 187, 130, 0.14);
  margin-bottom: 22px;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-emphasis), transform 0.85s var(--ease-emphasis);
}

.graph-section.is-visible .graph-toolbar {
  opacity: 1;
  transform: none;
}

.graph-filter {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.graph-filter.is-active {
  background: linear-gradient(180deg, rgba(216, 187, 130, 0.18), rgba(216, 187, 130, 0.08));
  color: var(--ink-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 16px rgba(242, 215, 154, 0.08);
}

.graph-filter:hover,
.graph-filter:focus-visible {
  transform: translateY(-1px);
}

.graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 26px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.92s var(--ease-emphasis) 0.08s, transform 0.92s var(--ease-emphasis) 0.08s;
}

.graph-section.is-visible .graph-layout {
  opacity: 1;
  transform: none;
}

.graph-stage,
.graph-panel {
  border-radius: 34px;
  border: 1px solid rgba(216, 187, 130, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0)),
    rgba(7, 14, 23, 0.48);
}

.graph-stage {
  position: relative;
  min-height: 760px;
  padding: 12px;
  overflow: hidden;
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.graph-stage::before,
.graph-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.graph-stage::before {
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(164, 213, 217, 0.08), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(216, 187, 130, 0.08), transparent 18%),
    radial-gradient(circle at 56% 74%, rgba(182, 103, 84, 0.06), transparent 20%);
  filter: blur(16px);
  opacity: 0.9;
}

.graph-stage::after {
  inset: 18px;
  border-radius: 26px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.78), transparent 84%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.78), transparent 84%);
  opacity: 0.26;
}

.graph-stage.has-active-node::before {
  opacity: 1;
}

.graph-stage.is-locked {
  border-color: rgba(242, 215, 154, 0.24);
  box-shadow:
    var(--shadow-panel),
    0 0 0 1px rgba(242, 215, 154, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.graph-unlock-ripple {
  position: absolute;
  z-index: 12;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 1px solid rgba(242, 215, 154, 0.68);
  background: radial-gradient(circle, rgba(242, 215, 154, 0.24), rgba(242, 215, 154, 0.04) 42%, transparent 68%);
  pointer-events: none;
  animation: graphUnlockRipple 0.72s ease-out forwards;
}

.graph-zoom-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.graph-zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(216, 187, 130, 0.26);
  background: rgba(7, 14, 23, 0.7);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.graph-zoom-btn:hover:not(:disabled) {
  border-color: rgba(216, 187, 130, 0.5);
  background: rgba(7, 14, 23, 0.88);
  transform: scale(1.08);
  box-shadow: var(--glow-gold-soft);
}

.graph-zoom-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.graph-svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.graph-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  padding: 24px;
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, opacity 0.15s ease, transform 0.15s ease;
}

.graph-panel.is-locked {
  border-color: rgba(242, 215, 154, 0.24);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(242, 215, 154, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.graph-panel::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 215, 154, 0.7), transparent);
  opacity: 0.8;
}

.graph-panel__body,
.graph-panel__portrait {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.graph-panel__body {
  min-width: 0;
}

.graph-panel.is-transitioning .graph-panel__body {
  opacity: 0;
}

.graph-panel.is-transitioning .graph-panel__portrait {
  opacity: 0;
  transform: scale(0.88);
}

.graph-panel__eyebrow {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.graph-panel__lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(242, 215, 154, 0.24);
  background: rgba(242, 215, 154, 0.08);
  color: rgba(255, 244, 220, 0.92);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(242, 215, 154, 0.08);
}

.graph-panel__portrait {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 14, 23, 0.14)),
    linear-gradient(135deg, rgba(164, 213, 217, 0.2), rgba(7, 14, 23, 0.9));
  border: 1px solid rgba(216, 187, 130, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.graph-panel__portrait .portrait-coin {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 28px;
  box-shadow: none;
}

.graph-panel__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-wrap: balance;
}

.graph-panel__role {
  margin: 12px 0 0;
  color: var(--gold);
  line-height: 1.8;
}

.graph-panel__summary {
  margin-top: 14px;
}

.graph-panel__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.graph-stat {
  padding: 8px 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(164, 213, 217, 0.07);
  border: 1px solid rgba(164, 213, 217, 0.12);
  color: var(--ink-soft);
  font-size: 0.82rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.graph-stat--lock {
  background:
    linear-gradient(180deg, rgba(242, 215, 154, 0.12), rgba(242, 215, 154, 0.04)),
    rgba(7, 14, 23, 0.4);
  border-color: rgba(242, 215, 154, 0.22);
  color: rgba(255, 244, 220, 0.9);
}

.graph-panel__relations {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.graph-relation {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(216, 187, 130, 0.08);
}

.graph-relation__name {
  color: var(--ink-main);
}

.graph-relation__weight {
  color: var(--gold);
  font-size: 0.8rem;
  white-space: nowrap;
}

.graph-edge {
  fill: none;
  stroke: rgba(164, 213, 217, 0.24);
  stroke-linecap: round;
  stroke-dasharray: 5 10;
  opacity: 0.2;
  transition: opacity 0.25s ease, stroke 0.25s ease;
}

.graph-edge.is-dimmed {
  opacity: 0.08 !important;
}

.graph-edge.is-highlighted {
  opacity: 0.88 !important;
  stroke: rgba(242, 215, 154, 0.88);
  stroke-dasharray: 7 8;
  animation: edgePulse 10s linear infinite;
}

.graph-node {
  cursor: pointer;
  transition: opacity 0.22s ease, filter 0.25s ease;
}

.graph-node__halo {
  fill: rgba(216, 187, 130, 0.05);
  opacity: 0.18;
  transition: opacity 0.22s ease, fill 0.22s ease, stroke 0.22s ease, filter 0.22s ease;
}

.graph-node__core {
  fill: rgba(9, 18, 28, 0.92);
  stroke: rgba(216, 187, 130, 0.22);
  stroke-width: 1.2;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.graph-node__name {
  fill: rgba(248, 241, 228, 0.92);
  font-family: var(--font-body);
  font-size: 9px;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.04em;
  pointer-events: none;
  transition: fill 0.2s ease, font-size 0.2s ease;
}

.graph-node.is-highlighted .graph-node__core,
.graph-node:hover .graph-node__core,
.graph-node:focus-visible .graph-node__core {
  fill: rgba(14, 28, 40, 0.96);
  stroke: rgba(242, 215, 154, 0.56);
  filter: drop-shadow(0 0 10px rgba(242, 215, 154, 0.15));
}

.graph-node.is-highlighted .graph-node__name {
  fill: rgba(248, 241, 228, 1);
  font-size: 11px;
}

.graph-node.is-highlighted .graph-node__halo {
  opacity: 0.46;
}

.graph-node.is-focused .graph-node__halo {
  fill: rgba(242, 215, 154, 0.24);
  stroke: rgba(242, 215, 154, 0.66);
  stroke-width: 1.4;
  opacity: 0.78;
}

.graph-node.is-focused .graph-node__core {
  fill: rgba(19, 31, 39, 0.98);
  stroke: rgba(255, 228, 169, 0.92);
  stroke-width: 2.3;
  filter:
    drop-shadow(0 0 10px rgba(242, 215, 154, 0.28))
    drop-shadow(0 0 24px rgba(242, 215, 154, 0.16));
}

.graph-node.is-focused .graph-node__name {
  fill: #fff6df;
  font-size: 11px;
  font-weight: 600;
}

.graph-node.is-dimmed {
  opacity: 0.16;
}



.entry-section::before {
  background:
    radial-gradient(circle at 50% 20%, rgba(242, 215, 154, 0.08), transparent 24%),
    radial-gradient(circle at 28% 80%, rgba(164, 213, 217, 0.08), transparent 22%),
    radial-gradient(circle at 72% 74%, rgba(190, 110, 92, 0.06), transparent 22%);
}

/* ==========================================================================
   Gateway
   ========================================================================== */

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.92s var(--ease-emphasis) 0.08s, transform 0.92s var(--ease-emphasis) 0.08s;
}

.entry-section.is-visible .gateway-grid {
  opacity: 1;
  transform: none;
}

.gateway-card {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(216, 187, 130, 0.16);
  border-radius: 34px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(8, 17, 27, 0.76);
  box-shadow:
    var(--shadow-deep),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 0.32s var(--ease-silk), border-color 0.28s ease, box-shadow 0.32s ease, background 0.32s ease;
}

.gateway-card:hover,
.gateway-card:focus-visible {
  transform: var(--lift-soft);
  border-color: rgba(216, 187, 130, 0.28);
  box-shadow:
    0 28px 52px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.gateway-card--main {
  border-color: rgba(215, 183, 125, 0.2);
  background:
    radial-gradient(circle at 18% 18%, rgba(215, 183, 125, 0.11), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(182, 103, 84, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(8, 17, 27, 0.76);
}

.gateway-card--side {
  border-color: rgba(164, 213, 217, 0.2);
  background:
    radial-gradient(circle at 18% 18%, rgba(164, 213, 217, 0.1), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(100, 168, 192, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(8, 17, 27, 0.76);
}

.gateway-card::before,
.gateway-card::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.6s ease;
}

.gateway-card:hover::before,
.gateway-card:focus-visible::before {
  animation: gatewayOrbitSpin 18s linear infinite;
}

.gateway-card::before {
  width: 320px;
  height: 320px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(216, 187, 130, 0.16);
  box-shadow: 0 0 0 42px rgba(164, 213, 217, 0.03), 0 0 0 84px rgba(216, 187, 130, 0.02);
}

.gateway-card--main::before {
  border-color: rgba(242, 215, 154, 0.2);
  box-shadow:
    0 0 0 42px rgba(215, 183, 125, 0.035),
    0 0 0 84px rgba(182, 103, 84, 0.025);
}

.gateway-card--side::before {
  border-color: rgba(164, 213, 217, 0.2);
  box-shadow:
    0 0 0 42px rgba(164, 213, 217, 0.035),
    0 0 0 84px rgba(100, 168, 192, 0.025);
}

.gateway-card--main::after {
  width: 260px;
  height: 260px;
  right: 26px;
  bottom: -56px;
  background:
    radial-gradient(circle, rgba(215, 183, 125, 0.3), rgba(182, 103, 84, 0.13) 42%, transparent 68%),
    conic-gradient(from 20deg, transparent, rgba(242, 215, 154, 0.16), transparent 28%, rgba(182, 103, 84, 0.12), transparent 56%);
  filter: blur(14px);
}

.gateway-card--main:hover::after,
.gateway-card--main:focus-visible::after {
  background:
    radial-gradient(circle, rgba(215, 183, 125, 0.4), rgba(182, 103, 84, 0.18) 42%, transparent 68%),
    conic-gradient(from 20deg, transparent, rgba(242, 215, 154, 0.22), transparent 28%, rgba(182, 103, 84, 0.16), transparent 56%);
}

.gateway-card--side::after {
  width: 260px;
  height: 260px;
  right: 26px;
  bottom: -56px;
  background:
    radial-gradient(circle, rgba(164, 213, 217, 0.3), rgba(100, 168, 192, 0.12) 42%, transparent 68%),
    repeating-radial-gradient(circle, transparent 0 20px, rgba(164, 213, 217, 0.08) 22px 24px);
  filter: blur(14px);
}

.gateway-card--side:hover::after,
.gateway-card--side:focus-visible::after {
  background:
    radial-gradient(circle, rgba(164, 213, 217, 0.4), rgba(100, 168, 192, 0.16) 42%, transparent 68%),
    repeating-radial-gradient(circle, transparent 0 18px, rgba(164, 213, 217, 0.12) 21px 23px);
}

.gateway-card__eyebrow {
  position: relative;
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.gateway-card__title {
  position: relative;
  margin: 20px 0 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.gateway-card__lead {
  position: relative;
  margin: 16px 0 0;
  max-width: 24em;
  color: var(--ink-soft);
  line-height: 1.9;
  text-wrap: pretty;
}

.gateway-card__orbit {
  position: absolute;
  inset: auto 28px 26px auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(7, 14, 23, 0.56);
  border: 1px solid rgba(216, 187, 130, 0.14);
  color: var(--ink-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gateway-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  z-index: 24;
  perspective: 1000px;
}

.gateway-modal.is-mounted {
  visibility: visible;
  pointer-events: auto;
}

.gateway-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 12, 0.72);
  opacity: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 200ms ease-out;
  will-change: opacity;
}

.gateway-modal.is-open .gateway-modal__scrim {
  opacity: 1;
}

.gateway-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100vw - 32px));
  max-height: min(calc(100vh - 32px), 920px);
  padding: 42px 32px 30px;
  border-radius: 32px;
  border: 1px solid rgba(216, 187, 130, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 215, 154, 0.13), transparent 32%),
    radial-gradient(circle at 12% 18%, rgba(164, 213, 217, 0.12), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(182, 103, 84, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(18, 30, 44, 0.96), rgba(8, 15, 24, 0.98)),
    rgba(6, 12, 20, 0.92);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
  overflow: auto;
  isolation: isolate;
  opacity: 0;
  transform: translateY(18px) scale(0.988);
  transition: opacity 260ms var(--ease-silk), transform 260ms var(--ease-silk);
  will-change: opacity, transform;
}

.gateway-modal__dialog::before,
.gateway-modal__dialog::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.gateway-modal__dialog::before {
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(216, 187, 130, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.gateway-modal__dialog::after {
  left: 50%;
  top: 22px;
  width: min(180px, calc(100% - 96px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(242, 215, 154, 0.72), transparent);
  opacity: 0.9;
}

.gateway-modal.is-open .gateway-modal__dialog {
  opacity: 1;
  transform: none;
  transition-delay: 60ms;
}

.gateway-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(216, 187, 130, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 14, 23, 0.72);
  cursor: pointer;
  color: var(--ink-soft);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.gateway-modal__close:hover,
.gateway-modal__close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 215, 154, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(10, 19, 30, 0.84);
  color: var(--ink-main);
  outline: none;
}

.gateway-modal__close i {
  font-size: 1rem;
}

.gateway-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(216, 187, 130, 0.16);
  background: rgba(7, 14, 23, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gateway-modal[data-kind="main"] .gateway-modal__eyebrow {
  border-color: rgba(216, 187, 130, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 20px rgba(242, 215, 154, 0.08);
}

.gateway-modal[data-kind="side"] .gateway-modal__eyebrow {
  border-color: rgba(164, 213, 217, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 20px rgba(164, 213, 217, 0.08);
}

.gateway-modal__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
}

.gateway-modal__lead {
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.gateway-modal__options {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  transform-style: preserve-3d;
}

.gateway-option {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex: none;
  width: min(100%, 500px);
  max-width: 500px;
  min-height: 168px;
  padding: 20px 22px;
  gap: 18px;
  border-radius: 26px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 24%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, rgba(10, 18, 28, 0.82), rgba(7, 13, 22, 0.94));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 187, 130, 0.1);
  box-shadow:
    0 20px 44px -10px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  transform: translateY(22px) scale(0.985);
  opacity: 0;
  will-change: transform, opacity;
}

.gateway-modal.is-open .gateway-option {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gateway-option::before,
.gateway-option::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.gateway-option::before {
  inset: 1px auto 1px 1px;
  width: min(168px, 36%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.92;
}

.gateway-option::after {
  inset: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 0 44px rgba(216, 187, 130, 0.04);
  transition: box-shadow 0.4s ease;
}

#gateway-option-intro {
  background:
    radial-gradient(circle at 80% 16%, rgba(215, 183, 125, 0.22), transparent 30%),
    radial-gradient(circle at 20% 88%, rgba(182, 103, 84, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(10, 18, 28, 0.82), rgba(7, 13, 22, 0.94));
}

#gateway-option-reader {
  background:
    radial-gradient(circle at 80% 16%, rgba(164, 213, 217, 0.2), transparent 30%),
    radial-gradient(circle at 20% 88%, rgba(168, 209, 231, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(10, 18, 28, 0.82), rgba(7, 13, 22, 0.94));
}

.gateway-option:hover,
.gateway-option:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(216, 187, 130, 0.24);
  box-shadow:
    0 20px 36px -12px rgba(0, 0, 0, 0.54),
    0 0 32px rgba(242, 215, 154, 0.08),
    inset 0 0 0 1px rgba(216, 187, 130, 0.1);
  outline: none;
}

.gateway-option:hover::after,
.gateway-option:focus-visible::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 66px rgba(216, 187, 130, 0.08);
}

.gateway-option__icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(216, 187, 130, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 14, 23, 0.68);
  color: var(--gold-bright);
  font-size: 1.2rem;
  margin-bottom: 0;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

#gateway-option-reader .gateway-option__icon {
  color: var(--celadon);
  border-color: rgba(164, 213, 217, 0.2);
}

.gateway-option:hover .gateway-option__icon,
.gateway-option:focus-visible .gateway-option__icon {
  transform: scale(1.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(10, 19, 30, 0.84);
  color: #fff;
}

.gateway-option__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex: 1;
  justify-content: center;
}

.gateway-option__body strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.34rem;
  color: var(--ink-main);
  letter-spacing: 0.06em;
  line-height: 1.26;
}

.gateway-option__body small {
  display: block;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 187, 130, 0.1);
  color: rgba(248, 241, 228, 0.7);
  line-height: 1.65;
  font-size: 0.88rem;
}

.is-loading {
  position: relative;
}

.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  border: 1.5px solid rgba(216, 187, 130, 0.1);
  box-shadow:
    0 0 0 18px rgba(164, 213, 217, 0.04),
    0 0 0 36px rgba(216, 187, 130, 0.02);
  animation: constellationSpin 2.8s linear infinite;
}

.is-loading::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(242, 215, 154, 0.82);
  box-shadow:
    22px -8px 0 -1px rgba(164, 213, 217, 0.72),
    -14px 18px 0 -2px rgba(242, 215, 154, 0.56),
    8px 24px 0 -1.5px rgba(164, 213, 217, 0.52);
  animation: constellationPulse 2.4s ease-in-out infinite;
  z-index: 1;
}

.data-load-error {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(32em, calc(100% - 48px));
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(190, 110, 92, 0.28);
  border-radius: 16px;
  background: rgba(7, 14, 23, 0.78);
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: center;
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   Animations
   ========================================================================== */

.cloud-card--entering {
  animation: cardFadeIn 0.34s ease forwards;
}

.cloud-card--exiting {
  animation: cardFadeOut 0.3s ease forwards;
  pointer-events: none;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--card-rotation)) scale(0.92); filter: blur(4px); }
  to   { opacity: 1; transform: translate(-50%, -50%) rotate(var(--card-rotation)) scale(1); filter: blur(0); }
}

@keyframes cardFadeOut {
  from { opacity: 1; transform: translate(-50%, -50%) rotate(var(--card-rotation)) scale(1); filter: blur(0); }
  to   { opacity: 0; transform: translate(-50%, -50%) rotate(var(--card-rotation)) scale(0.92); filter: blur(4px); }
}

@keyframes focusGlow {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.52; }
}

@keyframes graphUnlockRipple {
  from {
    opacity: 0.82;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(7);
  }
}

@keyframes chartSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes chartSpinReverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@keyframes constellationSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes constellationPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes fragmentFloat {
  from {
    transform: translate(-50%, -50%) rotate(var(--fragment-rotate)) translateY(-10px);
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--fragment-rotate) + 2deg)) translateY(10px);
  }
}

@keyframes cloudDrift {
  from {
    transform: translate(-50%, -50%) rotate(var(--card-rotation)) translate3d(0, -4px, 0);
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--card-rotation) + 0.8deg)) translate3d(0, 4px, 0);
  }
}

@keyframes edgePulse {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -160;
  }
}

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

@keyframes gatewayOrbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) and (hover: hover) and (pointer: fine) {
  .hero__slogan:nth-child(2) {
    --slogan-x: 44px;
  }

  .hero__slogan:nth-child(3) {
    --slogan-x: 88px;
  }
}

@media (max-width: 1080px) {
  .cover-showcase__layout {
    grid-template-columns: minmax(420px, 1fr) minmax(280px, 380px);
    gap: 32px;
  }

  .graph-layout {
    grid-template-columns: 1fr;
  }

  .graph-panel {
    position: relative;
    top: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --section-width: min(100vw - 32px, 1320px);
  }

  .hero__content {
    width: min(100vw - 32px, 980px);
  }

  .hero__slogan:nth-child(1),
  .hero__slogan:nth-child(2),
  .hero__slogan:nth-child(3) {
    --slogan-x: 0px;
    --slogan-o: 1;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .cover-showcase__layout {
    grid-template-columns: 1fr;
  }

  .cover-showcase__feature {
    width: min(100%, 620px);
  }

  .cover-showcase__panel {
    width: 100%;
  }

  .gateway-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section-orbit-nav {
    display: none;
  }

  .hero__chart {
    opacity: 0.48;
    mix-blend-mode: normal;
  }

  .section {
    padding: 72px 0;
  }

  .hero__topbar {
    right: 16px;
    top: 16px;
  }

  .hero__content {
    justify-content: flex-end;
    padding: 60px 0 60px;
  }

  .hero__title-sub {
    margin-top: 18px;
  }

  .hero__subtitle {
    margin-top: 28px;
  }

  .hero__slogans {
    margin-top: 32px;
  }

  .hero__actions {
    gap: 12px;
    margin-top: 32px;
  }

  .cover-showcase__layout {
    gap: 26px;
    margin-top: 26px;
  }

  .cover-showcase__feature {
    width: min(100%, 520px);
  }

  .cover-showcase__compare {
    border-radius: 24px;
    transform: none;
    gap: 12px;
    padding: 12px;
  }

  .cover-showcase__compare-pane {
    border-radius: 18px;
  }

  .cover-showcase__panel {
    padding: 18px;
    border-radius: 26px;
  }

  .cover-showcase__meta {
    min-height: 0;
  }

  .cover-showcase__active-title {
    gap: 7px;
  }

  .cover-showcase__active-volume {
    font-size: 0.82rem;
  }

  .cover-showcase__active-name {
    font-size: clamp(1.28rem, 5.8vw, 1.85rem);
  }

  .cover-showcase__select-list {
    position: static;
    max-height: 0;
    margin-top: 0;
    padding: 0 6px;
    border-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    transition: max-height 0.28s var(--ease-silk), margin-top 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
  }

  .cover-showcase__select-wrap.is-open .cover-showcase__select-list {
    max-height: min(52vh, 360px);
    margin-top: 8px;
    padding: 6px;
    border-width: 1px;
    pointer-events: auto;
  }

  .cover-showcase__toolbar {
    align-items: stretch;
  }

  .cover-showcase__tabs {
    flex: 1 1 auto;
  }

  .cover-showcase__tab {
    flex: 1 1 0;
    min-width: 0;
  }

  .cover-showcase__track-wrap {
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 22px;
  }

  .cover-showcase__track {
    min-height: 148px;
    padding: 24px 20px 20px;
    gap: 12px;
  }

  .cover-thumb {
    flex-basis: 62px;
  }

  .hero__subtitle,
  .section-head__lead,
  .section-note,
  .graph-panel__summary,
  .gateway-modal__lead {
    line-height: 1.82;
  }

  .gateway-modal__options {
    gap: 12px;
    margin-top: 24px;
  }

  .gateway-modal__dialog {
    width: min(calc(100vw - 20px), 640px);
    max-height: calc(100vh - 24px);
    padding: 52px 16px 16px;
    border-radius: 24px;
  }

  .gateway-modal__dialog::before {
    inset: 10px;
    border-radius: 18px;
  }

  .gateway-modal__dialog::after {
    top: 18px;
    width: min(180px, calc(100% - 72px));
  }

  .gateway-modal__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .gateway-option {
    width: min(100%, 460px);
    max-width: none;
    min-height: 136px;
    padding: 16px 14px;
    gap: 14px;
  }

  .gateway-option__icon {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }

  .gateway-option__body strong {
    font-size: 1.08rem;
  }

  .gateway-option__body small {
    padding-top: 8px;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .cloud-stage-wrap {
    padding: 14px;
    border-radius: 28px;
  }

  .cloud-stage {
    min-height: 560px;
  }

  .cloud-card {
    padding: 14px 14px 12px;
    border-radius: 16px;
  }

  .cloud-card.is-active {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.15) !important;
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.7),
      0 0 20px rgba(216, 187, 130, 0.12),
      inset 0 0 20px rgba(242, 215, 154, 0.04);
  }

  .cloud-card.is-sibling-up,
  .cloud-card.is-sibling-down {
    --sibling-y: 200px;
  }

  .cloud-card.is-sibling-up {
    transform: translate(-50%, calc(-50% - var(--sibling-y))) rotate(0deg) scale(1.0) !important;
  }

  .cloud-card.is-sibling-down {
    transform: translate(-50%, calc(-50% + var(--sibling-y))) rotate(0deg) scale(1.0) !important;
  }

  .cloud-card.is-sibling-up .cloud-card__quote,
  .cloud-card.is-sibling-down .cloud-card__quote {
    display: none;
  }

  .cloud-card__arcane--br {
    width: 36px;
    height: 36px;
    bottom: -8px;
    right: -8px;
  }

  .cloud-card__meta {
    gap: 10px;
    margin-bottom: 10px;
  }

  .portrait-coin {
    width: 42px;
    height: 42px;
  }

  .cloud-card__name {
    font-size: 0.88rem;
  }

  .cloud-card__volume {
    font-size: 0.72rem;
  }

  .cloud-card__story {
    padding: 4px 8px;
    font-size: 0.64rem;
  }

  .cloud-card__quote {
    font-size: 0.85rem !important;
    line-height: 1.6;
  }

  .graph-stage {
    min-height: 560px;
  }

  .graph-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    z-index: 1;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    padding: 0 16px;
    border-width: 0;
    border-radius: 26px 26px 20px 20px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition:
      max-height 0.34s var(--ease-silk),
      margin-top 0.24s ease,
      padding 0.24s ease,
      opacity 0.24s ease,
      transform 0.32s var(--ease-silk),
      border-color 0.24s ease,
      border-width 0.18s ease,
      box-shadow 0.24s ease;
  }

  .graph-panel.is-open {
    max-height: min(72vh, 620px);
    margin-top: 16px;
    padding: 30px 16px 16px;
    border-width: 1px;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .graph-panel::before {
    left: 18px;
    right: 18px;
  }

  .graph-panel::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: rgba(242, 215, 154, 0.36);
    transform: translateX(-50%);
  }

  .graph-panel__portrait {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .graph-panel__portrait .portrait-coin {
    border-radius: 20px;
  }

  .graph-panel__title {
    font-size: 1.28rem;
    line-height: 1.28;
  }

  .graph-panel__role {
    margin-top: 7px;
    line-height: 1.55;
  }

  .graph-panel__summary {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .graph-panel__stats,
  .graph-panel__relations {
    grid-column: 1 / -1;
  }

  .gateway-card {
    min-height: 260px;
  }

  .gateway-card__orbit {
    inset: auto 18px 18px auto;
  }

  .hero__slogan:nth-child(1),
  .hero__slogan:nth-child(2),
  .hero__slogan:nth-child(3) {
    --slogan-x: 0px;
    --slogan-o: 1;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 520px) {
  :root {
    --section-width: calc(100vw - 24px);
  }

  .section-head__title {
    font-size: 1.8rem;
  }

  .hero__title-main {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .hero__title-sub {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero__slogan {
    padding-left: 26px;
    padding-right: 16px;
    border-radius: 18px;
    line-height: 1.78;
  }

  .cover-showcase__feature {
    width: 100%;
  }

  .cover-showcase__compare {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
  }

  .cover-showcase__compare-label {
    font-size: 0.62rem;
    padding: 3px 7px;
  }

  .cover-showcase__toolbar {
    gap: 12px;
  }

  .cover-showcase__select-trigger {
    padding-right: 14px;
  }

  .cover-showcase__select-option {
    grid-template-columns: 1fr;
    gap: 3px;
    align-items: start;
  }

  .cover-showcase__select-option-label {
    white-space: normal;
    line-height: 1.45;
  }

  .cover-showcase__nav {
    width: 100%;
    justify-content: flex-end;
  }

  .cover-showcase__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cover-showcase__cta {
    width: 100%;
    justify-content: center;
  }

  .cover-preview-modal__image {
    width: min(82vw, 440px);
    max-height: calc(100vh - 96px);
  }

  .cover-preview-modal__image[data-preview-kind="ai"] {
    width: min(86vw, 500px);
  }

  .cover-preview-modal__close {
    right: 0;
  }

  .graph-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .graph-panel {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 22px 22px 18px 18px;
  }

  .graph-panel.is-open {
    padding-top: 28px;
    padding-bottom: 14px;
  }

  .graph-panel__portrait {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .graph-panel__portrait .portrait-coin {
    border-radius: 16px;
  }

  .graph-panel__eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
  }

  .graph-panel__title {
    font-size: 1.12rem;
  }

  .graph-stat {
    padding: 7px 10px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

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

  .section,
  .section-orbit-nav__node,
  .section-orbit-nav__node::before,
  .section-orbit-nav__node::after,
  .section-orbit-nav__node span,
  .section-head,
  .hero__slogan,
  .hero__slogan::after,
  .cover-showcase__layout,
  .cover-showcase__compare,
  .cover-showcase__page-sheen,
  .cover-showcase__compare-pane,
  .cover-showcase__select-trigger,
  .cover-showcase__select-list,
  .cover-showcase__select-option,
  .cover-showcase__tab,
  .cover-showcase__nav-btn,
  .cover-thumb,
  .cover-thumb img,
  .cover-showcase__cta,
  .cover-preview-modal__scrim,
  .cover-preview-modal__float,
  .cloud-stage-wrap,
  .graph-toolbar,
  .graph-layout,
  .graph-panel,
  .graph-unlock-ripple,
  .gateway-grid,
  .gateway-card::before,
  .gateway-card::after,
  .hero-fragment,
  .cloud-card,
  .cloud-card::before,
  .cloud-card--entering,
  .cloud-card--exiting,
  .graph-edge,
  .graph-node__halo,
  .is-loading::after,
  .is-loading::before {
    animation: none !important;
    transition-duration: 0s !important;
  }

  .gateway-modal__scrim,
  .gateway-modal__dialog,
  .gateway-option {
    animation: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .gateway-modal.is-open .gateway-option {
    opacity: 1;
    transform: none;
  }

  .hero__slogans.is-touch-active .hero__slogan,
  .hero__slogans.is-touch-active .hero__slogan.is-touch-active,
  .hero__slogan:active {
    transform: none !important;
    filter: none !important;
  }
}

@media (min-width: 1600px) {
  :root {
    --section-width: min(1600px, calc(100vw - 64px));
  }

  .hero__content {
    width: min(1200px, calc(100vw - 64px));
  }

  .hero__title-main {
    font-size: 8.4rem;
  }

  .hero__title-sub {
    font-size: 4.8rem;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    min-height: auto;
    padding: 60px 0 40px;
  }

  .hero__slogans {
    display: none;
  }
}
