/* ============================================================
   茶乐派 / Softea — 夜潭
   coal + bone + one ember. no webfonts. no framework.
   ============================================================ */

:root {
  --bg: #08090A;
  --bg-2: #101214;
  --bg-3: #15181A;
  --bone: #E9E2D6;
  --bone-dim: #CFC6B8;
  --muted: #9A9186;
  --muted-2: #6F6961;
  --line: rgba(233, 226, 214, .15);
  --line-soft: rgba(233, 226, 214, .08);
  --ember: #C26A1D;
  --ember-hi: #E89A4F;
  --ember-soft: rgba(194, 106, 29, .18);
  --serif: FangSong, STFangsong, "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --max: 1280px;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 760px at 50% -8%, #14181A 0%, #0A0C0D 46%, var(--bg) 100%),
    var(--bg);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }

::selection { background: var(--ember); color: #0B0C0D; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

img, svg, video, canvas { display: block; max-width: 100%; }

:focus-visible {
  outline: 1px solid var(--ember-hi);
  outline-offset: 4px;
}

/* grain: a quiet layer over everything, never interactive */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 9999;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ------------------------------------------------------------
   veil + scroll progress
   ------------------------------------------------------------ */

.veil {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #070808;
  pointer-events: none;
  transition: opacity 1.05s var(--ease-soft);
}

.veil.is-gone { opacity: 0; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 80;
  background: rgba(233, 226, 214, .06);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ember), var(--ember-hi));
  box-shadow: 0 0 12px rgba(194, 106, 29, .4);
}

/* ------------------------------------------------------------
   header
   ------------------------------------------------------------ */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 48px);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}

.site-head.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(8, 9, 10, .72);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--ember-hi);
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.brand-en {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--muted);
  margin-left: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 12px;
  letter-spacing: .08em;
}

.site-nav a {
  color: var(--bone-dim);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}

.site-nav a:not(.studio-link)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ember-hi);
  transition: right .35s var(--ease);
}

.site-nav a:hover { color: var(--bone); }
.site-nav a:not(.studio-link):hover::after { right: 0; }

.studio-link {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 13px !important;
  color: var(--bone) !important;
  transition: border-color .25s ease, background .25s ease;
}

.studio-link span { color: var(--ember-hi); margin-left: 4px; }
.studio-link:hover { border-color: var(--ember); background: rgba(194, 106, 29, .07); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(8, 9, 10, .6);
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--bone);
  transition: transform .3s var(--ease), top .3s var(--ease);
}

.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.site-head.nav-open .menu-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.site-head.nav-open .menu-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ------------------------------------------------------------
   reveal primitives
   ------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(12px) grayscale(1) brightness(.55);
  transition:
    opacity 1.2s var(--ease),
    transform 1.2s var(--ease),
    filter 1.45s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.eyebrow,
.section-index {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ember-hi);
}

.section-index { color: var(--muted); }
.section-index::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--ember);
}

/* ------------------------------------------------------------
   hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(20px, 5vw, 64px) 96px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 78vw;
  height: 58vw;
  max-width: 1080px;
  max-height: 780px;
  left: 50%;
  top: 44%;
  transform: translate(calc(-50% + var(--mx, 0px)), calc(-50% + var(--my, 0px)));
  background:
    radial-gradient(46% 46% at 50% 50%, rgba(194, 106, 29, .11) 0%, rgba(194, 106, 29, .03) 42%, transparent 72%),
    radial-gradient(42% 42% at 63% 38%, rgba(140, 110, 70, .06) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  transition: transform 1.2s var(--ease-soft);
}

.hero-ring {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(76vw, 860px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(233, 226, 214, .07);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(233, 226, 214, .055);
  border-radius: 50%;
  animation: orbitSpin 64s linear infinite;
}

.hero-ring-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--ember), transparent);
  transform: translateX(-50%);
}

.hero-ring-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--ember-hi);
  box-shadow: 0 0 12px var(--ember);
}

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

.hero-eyebrow { position: relative; z-index: 1; }

.hero-title {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(78px, 17.5vw, 252px);
  line-height: .96;
  letter-spacing: .12em;
  text-indent: .12em;
  color: var(--bone);
  text-shadow:
    0 0 34px rgba(233, 226, 214, .09),
    0 14px 60px rgba(0, 0, 0, .55);
  white-space: nowrap;
}

.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(48px) scale(.96);
  filter: blur(14px);
  animation: charIn 1.5s var(--ease) forwards;
  animation-delay: calc(380ms + var(--i) * 110ms);
}

.hero-title.is-floating .hero-char {
  animation:
    charIn 1.5s var(--ease) forwards,
    charFloat 9s ease-in-out infinite;
  animation-delay:
    calc(380ms + var(--i) * 110ms),
    calc(2.3s + var(--i) * -.8s);
}

@keyframes charIn {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes charFloat {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -8px; rotate: .35deg; }
}

.hero-sub {
  position: relative;
  z-index: 1;
  margin: clamp(24px, 4vw, 44px) 0 0;
  font-size: clamp(14px, 1.25vw, 17px);
  letter-spacing: .2em;
  color: var(--bone-dim);
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted-2);
}

.hero-meta span:nth-child(2) { color: var(--ember); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--muted);
  z-index: 1;
}

.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--ember), rgba(194, 106, 29, 0));
  transform-origin: top;
  animation: cueDrop 2.6s ease-in-out infinite;
}

@keyframes cueDrop {
  0%, 100% { transform: scaleY(.45); opacity: .45; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ------------------------------------------------------------
   section shell
   ------------------------------------------------------------ */

.works,
.site-foot {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.works { padding-top: clamp(100px, 14vw, 176px); }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 18px;
}

.section-head h2,
.arch-head h2,
.roadmap-head h2,
.opensource h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.12;
  letter-spacing: .04em;
  color: var(--bone);
}

.section-head-row > p {
  max-width: 320px;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  text-align: right;
}

/* ------------------------------------------------------------
   3D ring
   ------------------------------------------------------------ */

.ring-stage {
  position: relative;
  height: clamp(610px, 66vw, 720px);
  margin-top: clamp(40px, 6vw, 76px);
  perspective: 1600px;
  perspective-origin: 50% 42%;
  overflow: hidden;
  overflow: clip;
}

.ring-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(76vw, 780px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(64deg);
  transform-style: preserve-3d;
  pointer-events: none;
}

.orbit-disc {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(233, 226, 214, .18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 80px rgba(194, 106, 29, .055),
    0 0 100px rgba(194, 106, 29, .045),
    0 0 80px rgba(0, 0, 0, .35);
}

.orbit-disc::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(233, 226, 214, .085);
  border-radius: 50%;
}

.orbit-disc::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 1px solid rgba(194, 106, 29, .19);
  border-radius: 50%;
}

.orbit-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 50%;
  background: linear-gradient(rgba(233, 226, 214, .16), transparent 52%);
  transform-origin: 50% 0;
}

.orbit-tick.t2 { transform: rotate(120deg); }
.orbit-tick.t3 { transform: rotate(240deg); }

.orbit-node,
.orbit-label {
  position: absolute;
  transform: translate(-50%, -50%);
}

.orbit-node {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ember-hi);
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 10px rgba(194, 106, 29, .85),
    0 0 26px rgba(194, 106, 29, .32);
}

.orbit-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--muted-2);
}

.n1, .ol1 { left: 50%; top: 4%; }
.n2, .ol2 { left: 10%; top: 75%; }
.n3, .ol3 { left: 90%; top: 75%; }

.ring-cards {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.game-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(300px, 25vw, 366px);
  margin: calc(clamp(300px, 25vw, 366px) * -.72) 0 0 calc(clamp(300px, 25vw, 366px) * -.5);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(233, 226, 214, .16);
  border-radius: 14px;
  background: #0C0E0F;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .55),
    0 1px 0 rgba(255, 255, 255, .035) inset;
  pointer-events: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition: border-color .35s ease, box-shadow .35s ease;
}

.game-card.is-active {
  border-color: rgba(194, 106, 29, .48);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, .62),
    0 0 0 1px rgba(194, 106, 29, .08) inset;
}

.game-card:hover { border-color: rgba(233, 226, 214, .32); }
.game-card.is-active:hover { border-color: rgba(194, 106, 29, .7); }

.card-art {
  position: relative;
  flex: 0 0 54%;
  overflow: hidden;
  background: #0A101C;
  isolation: isolate;
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-soft), filter .6s ease;
}

.game-card:hover .card-art img { transform: scale(1.035); }

.art-jkhs {
  background:
    radial-gradient(80% 90% at 72% 28%, #15305c 0%, #0B1731 34%, #070A14 68%, #050609 100%);
}

.art-grid {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -18%;
  height: 78%;
  background:
    repeating-linear-gradient(90deg, rgba(97, 243, 255, .12) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(97, 243, 255, .09) 0 1px, transparent 1px 22px);
  transform: perspective(240px) rotateX(58deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(transparent 0%, #000 34%, #000 100%);
  -webkit-mask-image: linear-gradient(transparent 0%, #000 34%, #000 100%);
  opacity: .8;
}

.art-rain {
  position: absolute;
  inset: -10% 0 18% 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(120, 240, 255, .22) 17px 18px, transparent 18px 39px),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(120, 240, 255, .1) 7px 8px, transparent 8px 15px);
  mask-image: linear-gradient(180deg, transparent, #000 28%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%, transparent 78%);
  opacity: .33;
}

.art-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(3, 6, 12, .3) 0 1px, transparent 1px 3px);
  opacity: .5;
  mix-blend-mode: multiply;
}

.art-glow {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  right: -8%;
  top: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 236, 255, .28), transparent 66%);
  filter: blur(12px);
}

.art-word {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.1vw, 58px);
  line-height: .84;
  letter-spacing: .08em;
  color: #E9F7FF;
  text-shadow:
    -2px 0 rgba(81, 233, 255, .55),
    2px 0 rgba(194, 106, 29, .42),
    0 8px 30px rgba(0, 0, 0, .7);
  transform: rotate(-3deg);
}

.art-stamp {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 5px 7px;
  border: 1px solid rgba(232, 154, 79, .68);
  color: var(--ember-hi);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .1em;
  text-align: center;
  transform: rotate(5deg);
  background: rgba(12, 8, 4, .4);
}

.art-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 9, 0) 44%, rgba(6, 8, 9, .2) 72%, rgba(6, 8, 9, .9) 100%);
  pointer-events: none;
}

.art-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 4px 7px;
  border: 1px solid rgba(233, 226, 214, .32);
  background: rgba(6, 8, 9, .52);
  color: var(--bone-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.art-corner {
  position: absolute;
  right: 12px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .16em;
  text-align: right;
  color: rgba(233, 226, 214, .56);
}

.art-fish {
  background:
    radial-gradient(90% 100% at 50% 8%, #17444A 0%, #0B252C 42%, #061115 78%, #050A0C 100%);
}

.art-water {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(122, 236, 223, .18), transparent 64%),
    repeating-linear-gradient(0deg, rgba(122, 236, 223, .045) 0 1px, transparent 1px 9px);
  opacity: .9;
}

.art-caustic {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 10deg at 30% 30%, transparent 0 8%, rgba(167, 255, 241, .07) 9% 11%, transparent 12% 100%),
    conic-gradient(from 190deg at 70% 60%, transparent 0 12%, rgba(167, 255, 241, .055) 13% 15%, transparent 16% 100%);
  filter: blur(9px);
  animation: causticDrift 14s ease-in-out infinite alternate;
}

@keyframes causticDrift {
  from { transform: translate3d(-2%, -1%, 0) rotate(-2deg) scale(1.02); }
  to { transform: translate3d(2%, 2%, 0) rotate(2deg) scale(1.08); }
}

.art-fishline {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 72%;
  transform: translate(-50%, -50%) rotate(-3deg);
  color: rgba(233, 226, 214, .78);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5));
}

.art-fishline svg { width: 100%; height: auto; }

.art-bubble {
  position: absolute;
  border: 1px solid rgba(180, 255, 241, .4);
  border-radius: 50%;
  opacity: .55;
}

.art-bubble.b1 { width: 8px; height: 8px; left: 64%; top: 22%; }
.art-bubble.b2 { width: 4px; height: 4px; left: 72%; top: 32%; }
.art-bubble.b3 { width: 6px; height: 6px; left: 58%; top: 38%; }

.art-glitch {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 43px);
  line-height: 1;
  letter-spacing: .06em;
  color: var(--bone);
  text-shadow:
    -2px 0 rgba(91, 240, 196, .5),
    2px 1px rgba(194, 106, 29, .38);
  transform: rotate(-2deg);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 18px 17px;
  background:
    linear-gradient(180deg, rgba(20, 23, 25, .9), rgba(10, 12, 13, .98));
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-no {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--ember-hi);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--muted);
}

.card-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ember);
}

.card-title {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.1vw, 31px);
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--bone);
}

.card-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  color: var(--muted-2);
}

.card-desc {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.72;
  color: var(--muted);
}

.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--bone-dim);
}

.card-cta span {
  color: var(--ember-hi);
  font-size: 13px;
  transition: transform .3s var(--ease);
}

.game-card:hover .card-cta span { transform: translateX(4px); }

.ring-ui {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 5;
}

.ring-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 9, 10, .55);
  color: var(--bone-dim);
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ring-btn:hover {
  border-color: var(--ember);
  color: var(--bone);
  background: rgba(194, 106, 29, .1);
}

.ring-count {
  min-width: 64px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted);
}

.ring-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  max-width: 940px;
  margin: 46px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.ring-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--ember-hi);
}

.ring-caption h3 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: .04em;
}

.ring-caption p:last-child {
  max-width: 570px;
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.ring-open {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--bone-dim);
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease;
}

.ring-open span { color: var(--ember-hi); margin-left: 5px; }
.ring-open:hover { color: var(--bone); border-color: var(--ember); }

/* ------------------------------------------------------------
   note
   ------------------------------------------------------------ */

.note {
  position: relative;
  min-height: 92svh;
  margin-top: clamp(90px, 12vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(18px, 4vw, 48px);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(52% 44% at 50% 52%, rgba(194, 106, 29, .07), transparent 70%),
    #070808;
}

.note-glow {
  position: absolute;
  width: 70vw;
  height: 40vw;
  max-width: 900px;
  max-height: 520px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(194, 106, 29, .12), transparent 66%);
  filter: blur(40px);
  pointer-events: none;
}

.note-orbit {
  position: absolute;
  width: min(86vw, 1040px);
  aspect-ratio: 1;
  border: 1px solid rgba(233, 226, 214, .05);
  border-radius: 50%;
  pointer-events: none;
}

.note-orbit span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--ember-hi);
  box-shadow: 0 0 14px rgba(194, 106, 29, .8);
}

.note-index { position: relative; z-index: 1; margin-bottom: clamp(24px, 4vw, 48px); }

.note-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 7.2vw, 92px);
  line-height: 1.3;
  letter-spacing: .06em;
  text-align: center;
  color: var(--ember);
  text-shadow: 0 0 48px rgba(194, 106, 29, .18);
}

.quote-line { display: block; white-space: nowrap; }

.qchar {
  display: inline-block;
  opacity: 0;
  transform: translateY(42px);
  filter: blur(12px) brightness(.6);
}

.note.is-in .qchar {
  animation:
    qcharIn 1.35s var(--ease) forwards,
    qcharFloat 10s ease-in-out infinite;
  animation-delay:
    calc(var(--i, 0) * 55ms),
    calc(2s + var(--i, 0) * -.6s);
}

@keyframes qcharIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0) brightness(1); }
}

@keyframes qcharFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.note-sign {
  position: relative;
  z-index: 1;
  margin: clamp(30px, 5vw, 56px) 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--muted);
}

/* ------------------------------------------------------------
   plugin / nebula
   ------------------------------------------------------------ */

.plugin {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: #070809;
}

.nebula-wrap {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  margin-bottom: -100svh;
  pointer-events: none;
}

.nebula-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .95;
  pointer-events: none;
}

.nebula-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(38% 34% at 20% 24%, rgba(194, 106, 29, .16), transparent 72%),
    radial-gradient(34% 38% at 78% 40%, rgba(42, 122, 110, .18), transparent 72%),
    radial-gradient(48% 42% at 52% 66%, rgba(90, 50, 24, .12), transparent 74%);
}

.plugin::before,
.plugin::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 180px;
  z-index: 1;
  pointer-events: none;
}

.plugin::before { top: 0; background: linear-gradient(#08090A, transparent); }
.plugin::after { bottom: 0; background: linear-gradient(transparent, #08090A); }

.plugin-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(100px, 13vw, 168px) clamp(20px, 4vw, 48px) clamp(100px, 12vw, 150px);
}

.plugin-head { text-align: center; }

.converge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(120px, 15vw, 172px);
  margin-top: clamp(28px, 4vw, 48px);
}

.converge-icon {
  position: relative;
  flex: none;
  width: clamp(82px, 10vw, 122px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translateX(-42vw) rotate(-6deg);
  filter: blur(10px);
  transition:
    transform 1.45s var(--ease),
    opacity 1.1s var(--ease-soft),
    filter 1.25s var(--ease-soft);
}

.converge-icon img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .5));
}

.converge-halo {
  position: absolute;
  inset: -30%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 106, 29, .22), transparent 66%);
  filter: blur(12px);
}

.converge-text {
  position: relative;
  opacity: 0;
  transform: translateX(42vw);
  filter: blur(10px);
  text-align: left;
  padding-left: 14px;
  transition:
    transform 1.75s cubic-bezier(.7, 0, .2, 1),
    opacity 1.3s var(--ease-soft),
    filter 1.35s var(--ease-soft);
}

.converge-text h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.6vw, 88px);
  line-height: .98;
  letter-spacing: .035em;
  color: var(--bone);
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(233, 226, 214, .06);
}

.converge-text p {
  margin: 12px 0 0;
  font-size: clamp(12px, 1.15vw, 15px);
  letter-spacing: .12em;
  color: var(--muted);
}

.converge-spark {
  order: 2;
  flex: none;
  width: 8px;
  height: 1px;
  margin-left: 0;
  background: var(--ember-hi);
  opacity: 0;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(194, 106, 29, .8);
}

.converge-text { order: 3; }

.converge.is-in .converge-icon,
.converge.is-in .converge-text {
  opacity: 1;
  transform: translateX(0);
  filter: none;
}

.converge.is-in .converge-spark {
  animation: sparkIn 1.3s var(--ease) 1.35s forwards;
}

@keyframes sparkIn {
  0% { opacity: 0; transform: scaleX(0); }
  38% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

.plugin-lede {
  max-width: 700px;
  margin: clamp(26px, 4vw, 44px) auto 0;
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.95;
  color: var(--bone-dim);
}

.film {
  max-width: 980px;
  margin: clamp(56px, 8vw, 96px) auto 0;
}

.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(233, 226, 214, .17);
  border-radius: 3px;
  background: #030405;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.film-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #030405;
}

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(8, 9, 10, .15), rgba(8, 9, 10, .62));
  color: var(--bone);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  transition: opacity .4s ease, visibility .4s ease;
}

.film-play.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.film-play-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(233, 226, 214, .55);
  border-radius: 50%;
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
}

.film-play-icon::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 20px;
  border-left: 13px solid var(--bone);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.film-play:hover .film-play-icon {
  border-color: var(--ember-hi);
  background: rgba(194, 106, 29, .12);
  transform: scale(1.04);
}

.film-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: rgba(233, 226, 214, .35);
  border-style: solid;
  pointer-events: none;
}

.fc1 { left: 9px; top: 9px; border-width: 1px 0 0 1px; }
.fc2 { right: 9px; top: 9px; border-width: 1px 1px 0 0; }
.fc3 { left: 9px; bottom: 9px; border-width: 0 0 1px 1px; }
.fc4 { right: 9px; bottom: 9px; border-width: 0 1px 1px 0; }

.film figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-align: center;
  color: var(--muted-2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(70px, 9vw, 110px);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.feature {
  position: relative;
  min-height: 232px;
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 9, 10, .32);
  transition: background .35s ease;
}

.feature:hover { background: rgba(194, 106, 29, .035); }

.feature-no {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--ember-hi);
}

.feature h3 {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: .04em;
  color: var(--bone);
}

.feature p {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

.arch { margin-top: clamp(76px, 10vw, 120px); }

.arch-head { max-width: 720px; }
.arch-head h2,
.roadmap-head h2 { font-size: clamp(30px, 4vw, 48px); }

.arch-head > p:last-child,
.roadmap-head > p:last-child {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.arch-head code {
  font-family: var(--mono);
  font-size: .9em;
  color: var(--ember-hi);
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 116px 1fr;
  margin-top: 38px;
  border: 1px solid var(--line-soft);
  background: rgba(9, 11, 12, .4);
}

.arch-half { padding: clamp(24px, 3vw, 38px); }
.arch-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--ember-hi);
}

.arch-half h3 {
  margin: 15px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: .04em;
}

.arch-half ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.arch-half li {
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}

.arch-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--muted-2);
}

.arch-link i {
  width: 1px;
  height: 70px;
  background: linear-gradient(var(--ember), rgba(194, 106, 29, .08));
}

.opensource {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  margin-top: clamp(76px, 10vw, 120px);
  padding: clamp(34px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.opensource-mark {
  font-family: var(--serif);
  font-size: clamp(74px, 11vw, 148px);
  line-height: .78;
  letter-spacing: -.03em;
  color: var(--ember);
  opacity: .9;
}

.opensource-copy h2 {
  font-size: clamp(26px, 3.3vw, 42px);
  max-width: 600px;
}

.opensource-copy > p:last-child {
  max-width: 620px;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.opensource-link {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  white-space: nowrap;
  color: var(--bone-dim);
  transition: color .25s ease, border-color .25s ease;
}

.opensource-link span { color: var(--ember-hi); margin-left: 4px; }
.opensource-link:hover { color: var(--bone); border-color: var(--ember); }

.roadmap { margin-top: clamp(76px, 10vw, 120px); }

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 30px);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  position: relative;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.roadmap-no {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--ember-hi);
}

.roadmap-list h3 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .03em;
}

.roadmap-list p {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.todo-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 7px;
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--muted-2);
}

/* ------------------------------------------------------------
   footer
   ------------------------------------------------------------ */

.site-foot {
  padding-top: clamp(90px, 12vw, 150px);
  padding-bottom: 34px;
}

.foot-top h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(60px, 12vw, 152px);
  line-height: .9;
  letter-spacing: .08em;
}

.foot-line {
  margin: 20px 0 0;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--muted);
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(56px, 8vw, 96px);
}

.foot-links a {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  transition: border-color .3s ease;
}

.foot-links a > span:first-child {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--muted-2);
}

.foot-links strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: .03em;
  color: var(--bone-dim);
  transition: color .3s ease;
}

.foot-links a > span:last-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ember-hi);
}

.foot-links a:hover { border-color: var(--ember); }
.foot-links a:hover strong { color: var(--bone); }

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(56px, 9vw, 100px);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--muted-2);
}

/* ------------------------------------------------------------
   responsive
   ------------------------------------------------------------ */

@media (max-width: 980px) {
  .section-head-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .section-head-row > p { text-align: left; max-width: 440px; }
  .ring-stage { height: 650px; }
  .game-card {
    width: clamp(270px, 36vw, 330px);
    margin: calc(clamp(270px, 36vw, 330px) * -.72) 0 0 calc(clamp(270px, 36vw, 330px) * -.5);
  }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-list { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .opensource { grid-template-columns: auto 1fr; }
  .opensource-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .site-head { padding: 15px 20px; }
  .brand-en { display: none; }
  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(10, 12, 13, .96);
    border: 1px solid var(--line);
    border-radius: 3px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s var(--ease);
    pointer-events: none;
  }

  .site-head.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
  }

  .site-nav a:last-child { border-bottom: 0; margin-top: 10px; }
  .studio-link { text-align: center; }

  .hero { padding-top: 100px; }
  .hero-ring { width: 120vw; opacity: .7; }
  .hero-title { font-size: clamp(66px, 23vw, 120px); letter-spacing: .06em; text-indent: .06em; }
  .hero-sub { letter-spacing: .12em; font-size: 13px; }
  .hero-meta { font-size: 8px; letter-spacing: .1em; }
  .scroll-cue { bottom: 24px; }

  .works { padding-top: 96px; }
  .ring-stage {
    height: 590px;
    margin-top: 36px;
    perspective: 1100px;
  }
  .ring-orbit { width: 92vw; opacity: .7; }
  .game-card {
    width: min(76vw, 320px);
    margin: calc(min(76vw, 320px) * -.7) 0 0 calc(min(76vw, 320px) * -.5);
    border-radius: 12px;
  }
  .card-art { flex-basis: 52%; }
  .card-desc { display: none; }
  .card-body { padding: 13px 15px 15px; }
  .card-title { font-size: 25px; margin-top: 6px; }
  .card-sub { font-size: 7.5px; }
  .card-cta { font-size: 8px; padding-top: 10px; }
  .ring-ui { bottom: 4px; }
  .ring-caption { grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
  .ring-open { justify-self: start; }

  .note { min-height: 78svh; padding: 100px 16px; }
  .note-quote { font-size: clamp(31px, 8.7vw, 46px); line-height: 1.42; letter-spacing: .03em; }

  .plugin-inner { padding-left: 20px; padding-right: 20px; }

  .converge {
    flex-direction: column;
    min-height: 250px;
    gap: 0;
  }
  .converge-icon {
    width: 92px;
    transform: translateY(-34vh) rotate(-6deg);
  }
  .converge-spark {
    order: 2;
    width: 1px;
    height: 8px;
    margin: 8px 0 0;
    transform: scaleY(0);
  }
  .converge-text {
    order: 3;
    padding: 10px 0 0;
    text-align: center;
    transform: translateY(34vh);
  }
  .converge-text h2 { font-size: clamp(36px, 11.5vw, 62px); white-space: normal; }
  .converge-text p { font-size: 10.5px; letter-spacing: .08em; }
  .converge.is-in .converge-spark { animation: sparkInY 1.3s var(--ease) 1.35s forwards; }

  @keyframes sparkInY {
    0% { opacity: 0; transform: scaleY(0); }
    38% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(1); }
  }

  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 24px 20px 26px; }
  .feature h3 { margin-top: 18px; }

  .arch-grid { grid-template-columns: 1fr; }
  .arch-link {
    flex-direction: row;
    padding: 14px 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }
  .arch-link i { width: 54px; height: 1px; background: linear-gradient(90deg, var(--ember), rgba(194, 106, 29, .08)); }

  .opensource { grid-template-columns: 1fr; gap: 22px; }
  .opensource-link { grid-column: auto; }
  .roadmap-list { grid-template-columns: 1fr; gap: 0; }
  .roadmap-list li { padding: 22px 0 24px; }

  .foot-links { grid-template-columns: 1fr; gap: 22px; }
  .foot-base { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .ring-stage { height: 540px; }
  .game-card { width: min(80vw, 310px); margin: calc(min(80vw, 310px) * -.68) 0 0 calc(min(80vw, 310px) * -.5); }
  .hero-title { font-size: 22.5vw; }
  .card-art { flex-basis: 50%; }
  .card-title { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .veil { display: none; }
  .hero-char { opacity: 1; transform: none; filter: none; }
  .qchar { opacity: 1; transform: none; filter: none; }
  .converge-icon, .converge-text { opacity: 1; transform: none; filter: none; }
  .film-play { transition: none; }
}

/* ============================================================
   v2 — cove / xiaojingdai
   a colder sea after the ember. no purple, no white box.
   ============================================================ */

.cove {
  --cove-deep: #06131F;
  --cove-mid: #0A2636;
  --cove-ice: #7FB6CE;
  --cove-pearl: #EFE9DC;
  position: relative;
  overflow: clip;
  scroll-margin-top: 72px;
  padding: clamp(110px, 14vw, 180px) 0 clamp(100px, 12vw, 160px);
  background:
    linear-gradient(180deg, #070809 0%, #081018 9%, #0A1F2B 24%, #0B2634 56%, #07141E 100%);
  border-top: 1px solid rgba(127, 182, 206, .08);
}

.cove::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 8, 9, .96), rgba(7, 8, 9, 0));
}

.cove::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 20, 30, 0), #08090A);
}

.cove-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: clip;
}

.cove-canvas {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  opacity: .9;
  mix-blend-mode: screen;
}

.cove-glow {
  position: absolute;
  inset: 8% 0 auto;
  height: 70%;
  background:
    radial-gradient(42% 48% at 28% 48%, rgba(127, 182, 206, .13), transparent 70%),
    radial-gradient(30% 36% at 70% 32%, rgba(194, 106, 29, .05), transparent 72%);
  pointer-events: none;
}

.cove-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(24px, 5vw, 84px);
}

.cove-art-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(640px, 72vh);
  isolation: isolate;
}

.cove-orbit {
  position: absolute;
  width: min(480px, 92%);
  aspect-ratio: 1;
  border: 1px solid rgba(127, 182, 206, .18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 80px rgba(127, 182, 206, .04),
    0 0 80px rgba(127, 182, 206, .04);
  transform: rotate(-14deg) scaleY(.86);
}

.cove-orbit::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(127, 182, 206, .12);
  border-radius: 50%;
}

.cove-art {
  position: relative;
  z-index: 2;
  width: auto;
  height: min(68vh, 700px);
  filter:
    drop-shadow(0 30px 70px rgba(0, 0, 0, .62))
    drop-shadow(0 0 26px rgba(127, 182, 206, .14));
  animation: coveFloat 13s ease-in-out infinite;
  will-change: transform;
}

@keyframes coveFloat {
  0%, 100% { transform: translateY(0) rotate(-.35deg); }
  50% { transform: translateY(-14px) rotate(.35deg); }
}

.cove-bubble {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(127, 182, 206, .32);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(127, 182, 206, .12);
  animation: bubbleDrift 11s ease-in-out infinite;
}

.cove-bubble.b1 { left: 16%; top: 26%; animation-delay: -2s; }
.cove-bubble.b2 { right: 11%; top: 42%; width: 5px; height: 5px; animation-delay: -5s; }
.cove-bubble.b3 { left: 24%; bottom: 20%; width: 4px; height: 4px; animation-delay: -8s; }

@keyframes bubbleDrift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: .45; }
  50% { transform: translate3d(6px, -28px, 0); opacity: .9; }
}

.cove-copy {
  max-width: 680px;
}

.cove-copy .section-index {
  color: var(--cove-ice);
  border-color: rgba(127, 182, 206, .32);
}

.cove-copy h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(66px, 9.4vw, 142px);
  line-height: .92;
  letter-spacing: .09em;
  color: var(--cove-pearl);
  text-shadow: 0 0 46px rgba(127, 182, 206, .14);
}

.cove-role {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--cove-ice);
  text-transform: uppercase;
}

.cove-lede {
  margin: 22px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
  letter-spacing: .04em;
  color: #CFE0E2;
}

.cove-quote {
  margin: 26px 0 0;
  padding: 2px 0 2px 20px;
  border-left: 1px solid rgba(127, 182, 206, .42);
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.55;
  letter-spacing: .06em;
  color: #DCEFF2;
}

.cove-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.cove-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(233, 226, 214, .2);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--bone-dim);
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}

.cove-btn:hover {
  border-color: rgba(127, 182, 206, .7);
  background: rgba(127, 182, 206, .07);
  color: var(--cove-pearl);
}

.cove-btn-primary {
  border-color: rgba(127, 182, 206, .42);
  background: rgba(127, 182, 206, .1);
  color: #E7F4F5;
}

.cove-film {
  margin-top: 34px;
  max-width: 620px;
}

.cove-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(127, 182, 206, .24);
  background: #040B10;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}

.cove-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) brightness(.92);
  transition: transform 1.2s var(--ease), filter .6s ease;
}

.cove-poster:hover img {
  transform: scale(1.025);
  filter: saturate(.98) brightness(1);
}

.cove-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 11, 16, .06), rgba(4, 11, 16, .48));
  pointer-events: none;
}

.cove-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 1px solid rgba(239, 233, 220, .7);
  border-radius: 50%;
  background: rgba(6, 19, 31, .34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cove-pearl);
  font-size: 13px;
  line-height: 1;
  text-indent: 2px;
  transition: transform .35s var(--ease), background .35s ease;
}

.cove-poster:hover .cove-play {
  transform: scale(1.08);
  background: rgba(127, 182, 206, .16);
}

.cove-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(127, 182, 206, .24);
  background: #040B10;
}

.cove-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cove-frame-fallback {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid rgba(127, 182, 206, .42);
  background: rgba(4, 11, 16, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  color: #DCEFF2;
}

.cove-frame-fallback:hover {
  border-color: rgba(127, 182, 206, .8);
  background: rgba(127, 182, 206, .16);
}

.cove-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: .12em;
  color: var(--muted-2);
}

.cove-caption a {
  color: var(--cove-ice);
  border-bottom: 1px solid rgba(127, 182, 206, .28);
}

.plugin[data-webgl="off"] .nebula-wrap {
  background:
    radial-gradient(46% 42% at 24% 36%, rgba(194, 106, 29, .16), transparent 70%),
    radial-gradient(40% 38% at 78% 58%, rgba(22, 64, 63, .2), transparent 72%);
}

.cove[data-webgl="off"] .cove-media {
  background:
    radial-gradient(40% 44% at 26% 44%, rgba(127, 182, 206, .12), transparent 70%),
    radial-gradient(36% 40% at 76% 30%, rgba(127, 182, 206, .06), transparent 72%);
}

.cove[data-webgl="off"] .cove-canvas {
  display: none;
}

/* footer: the two Bilibili doors live in one column */
.foot-links {
  grid-template-columns: 1.3fr 1fr 1.15fr .75fr;
  gap: clamp(14px, 2.2vw, 30px);
}

.foot-links > a {
  min-width: 0;
}

.foot-links strong {
  font-size: clamp(14px, 1.25vw, 17px);
  letter-spacing: .01em;
  line-height: 1.45;
}

.foot-bili {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.foot-bili-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--muted-2);
}

.foot-bili a {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 0;
  border-top: 0;
}

.foot-bili a strong {
  font-size: clamp(15px, 1.4vw, 18px);
}

.foot-bili a > span:last-child {
  font-size: 10px;
  color: var(--cove-ice);
}

.foot-bili a:hover strong { color: var(--bone); }

@media (max-width: 980px) {
  .foot-links { grid-template-columns: repeat(2, 1fr); }
  .cove-inner { grid-template-columns: 1fr; gap: 20px; }
  .cove-art-wrap { min-height: 0; padding: 10px 0 0; }
  .cove-art { height: min(58vh, 620px); }
  .cove-copy { max-width: none; }
}

@media (max-width: 760px) {
  .cove { padding-top: 96px; }
  .cove-inner { width: min(100% - 32px, 680px); }
  .cove-art { height: min(52vh, 500px); }
  .cove-orbit { width: min(340px, 86%); }
  .cove-copy h2 { font-size: clamp(56px, 18vw, 92px); }
  .cove-lede { font-size: 15px; }
  .cove-quote { font-size: 20px; padding-left: 15px; }
  .cove-actions { flex-direction: column; align-items: stretch; }
  .cove-btn { justify-content: center; }
  .cove-film { margin-top: 28px; }
  .cove-play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .foot-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cove-art { animation: none; transform: none; }
  .cove-bubble { animation: none; }
  .cove-canvas { display: none; }
}

@media (max-width: 480px) {
  .cove-art { height: min(50vh, 430px); }
  .cove-caption { font-size: 7px; }
  .cove-frame { aspect-ratio: 4 / 3; }
}

/* keep the title readable when the nebula gets dense */
.plugin-head {
  position: relative;
  isolation: isolate;
}

.plugin-head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: -1;
  width: 108%;
  height: 118%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(52% 50% at 50% 50%, rgba(4, 6, 7, .58), rgba(4, 6, 7, 0) 74%);
}

.plugin-head h1,
.plugin-head h2,
.plugin-head .plugin-lede {
  text-shadow: 0 2px 28px rgba(3, 5, 6, .78);
}
