/* =========================================================================
   Neon Anvil — portfolio skeleton
   Dark editorial theme. No @import, no web fonts (works offline / file://).
   ========================================================================= */

:root {
  --bg: #0a0a0c;
  --bg-soft: #101014;
  --panel: #131319;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --ink: #f4f2ec;
  --ink-2: #cfccc4;
  --muted: #8b8a92;
  --acid: #d7ff3e;
  --violet: #7c5cff;
  /* ---- 导航栏配色：日常只需要改这 6 行（见 README「换导航栏颜色」） ---- */
  --header-bg: rgba(10, 10, 12, 0.66); /* 页面顶部时的背景（带一点透明） */
  --header-bg-scrolled: rgba(10, 10, 12, 0.9); /* 向下滚动后的背景 */
  --nav-ink: var(--ink-2); /* 普通导航文字 */
  --nav-ink-hover: var(--ink); /* 鼠标悬停 */
  --nav-ink-active: var(--acid); /* 当前页（含下划线） */
  --menu-bg: #0b0b0e; /* 手机上展开的菜单面板 */
  --radius: 18px;
  --maxw: 1200px;
  --header-h: 74px;
  --font-sans: "Inter Tight", "Segoe UI Variable Display", "Segoe UI", system-ui,
    -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Noto Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ------------------------------------------------------------------ reset */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% -12%, rgba(124, 92, 255, 0.16), transparent 62%),
    radial-gradient(760px 520px at 98% 2%, rgba(215, 255, 62, 0.07), transparent 60%);
}

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--acid);
  color: #0a0a0c;
}

/* -------------------------------------------------------------- utilities */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 44px);
}

.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--acid);
  color: #0a0a0c;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 0.9rem;
}

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--acid);
  opacity: 0.85;
}

.kicker {
  color: var(--acid);
  letter-spacing: 0.22em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--acid), #7dffb2 70%, #7c5cff);
  box-shadow: 0 0 24px rgba(215, 255, 62, 0.25);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: var(--bg);
}

/* 自己的 logo 图片（assets/img/logo.svg 等）；没有则用上面的 CSS 方块 */
.brand__logo {
  display: block;
  height: 26px;
  width: auto; /* 非正方形的 logo 按比例自动放宽 */
  max-width: 150px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__word {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
}

.brand__sub {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-left: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2rem);
}

.nav__link {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--nav-ink);
  transition: color 0.2s ease;
}

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

.nav__link[aria-current="page"] {
  color: var(--nav-ink-active);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--nav-ink-active);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.lang__btn {
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

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

.lang__btn[aria-current="true"] {
  background: var(--ink);
  color: #0a0a0c;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 78%;
  pointer-events: none;
  background:
    radial-gradient(52% 56% at 24% 18%, rgba(124, 92, 255, 0.34), transparent 70%),
    radial-gradient(46% 48% at 78% 6%, rgba(215, 255, 62, 0.16), transparent 70%);
  filter: blur(28px);
}

.hero__inner {
  position: relative;
}

.hero__title {
  max-width: 17ch;
  margin: 1.2rem 0 1.6rem;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--acid);
}

:lang(zh) .hero__title em {
  white-space: nowrap;
}

.hero__lead {
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 620px;
  margin-top: clamp(2.5rem, 5vw, 3.8rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.stat__num {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__key {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- marquee */

.marquee {
  overflow: hidden;
  padding-block: 0.85rem;
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.marquee__item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 242, 236, 0.55);
  white-space: nowrap;
}

.marquee__dot {
  font-size: 0.45rem;
  color: var(--acid);
  opacity: 0.65;
}

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

/* ------------------------------------------------------------------- cover */

.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(95% 85% at 16% 10%, var(--c1, #7c5cff), transparent 62%),
    radial-gradient(90% 80% at 86% 90%, var(--c2, #22d3ee), transparent 58%),
    #121219;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.55);
}

/* Real cover art, when a file exists in assets/img/games/<id>.<ext> */
.cover__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__grid {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.cover--grid .cover__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 95% at 28% 18%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 95% at 28% 18%, #000 20%, transparent 78%);
}

.cover--rings .cover__grid {
  background: repeating-radial-gradient(
    circle at 72% 32%,
    transparent 0 22px,
    rgba(255, 255, 255, 0.075) 22px 23px
  );
}

.cover--stripes .cover__grid {
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.07) 0 2px,
    transparent 2px 18px
  );
}

.cover--dots .cover__grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.17) 1.1px, transparent 1.2px);
  background-size: 16px 16px;
}

.cover--arcs .cover__grid {
  background: repeating-conic-gradient(
    from 195deg at 50% 112%,
    transparent 0deg 8deg,
    rgba(255, 255, 255, 0.09) 8deg 9.4deg,
    transparent 9.4deg 17deg
  );
}

.cover__mono {
  position: absolute;
  left: -0.02em;
  bottom: -0.05em;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.17);
}

.cover__year {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------- sections */

.section {
  padding-block: clamp(3.2rem, 7vw, 6.4rem);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__title {
  margin: 0.9rem 0 1rem;
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section__lead {
  color: var(--muted);
  line-height: 1.75;
}

/* --------------------------------------------------------------- featured */

.feature {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.8rem);
}

.feature__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95);
}

.feature .cover {
  aspect-ratio: 16 / 10;
}

.feature .cover__mono {
  font-size: clamp(6rem, 13vw, 10.5rem);
}

.feature__title {
  margin: 0.9rem 0 0.5rem;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.feature__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature__lead {
  margin: 1.1rem 0 1.6rem;
  max-width: 44ch;
  color: var(--ink-2);
  line-height: 1.75;
}

.feature__body {
  max-width: 46ch;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--acid);
  color: #0a0a0c;
}

.btn--solid:hover {
  background: #e8ff7d;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
}

/* ----------------------------------------------------------------- studio */

.studio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.studio__item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.studio__n {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--acid);
}

.studio__item h3 {
  margin: 0.65rem 0 0.5rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.studio__item p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.quote {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.09), transparent 62%);
}

.quote p {
  max-width: 34ch;
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.quote cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- cta band */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(215, 255, 62, 0.07), transparent 55%),
    var(--bg-soft);
}

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

.cta p {
  margin-top: 0.5rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------- page heads */

.page-head {
  padding-block: clamp(2.8rem, 6vw, 5rem) clamp(1.8rem, 3.5vw, 2.6rem);
}

.page-head__title {
  margin: 0.9rem 0 1rem;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.page-head__lead {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.75;
}

.page-head__meta {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* ------------------------------------------------------------- game cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem);
}

.card__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease, box-shadow 0.45s ease;
}

.card .cover {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover .card__frame {
  transform: translateY(-5px);
  border-color: rgba(215, 255, 62, 0.32);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.9);
}

.card:hover .cover {
  transform: scale(1.045);
}

.card__title {
  margin: 0.95rem 0 0.35rem;
  font-size: 1.16rem;
  letter-spacing: -0.015em;
  transition: color 0.25s ease;
}

.card__body {
  padding-top: 0.1rem;
}

.card:hover .card__title {
  color: var(--acid);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__sep {
  color: rgba(255, 255, 255, 0.24);
}

.card__blurb {
  margin-top: 0.6rem;
  max-width: 40ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* --------------------------------------------------------------- paginator */

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding-top: clamp(2.6rem, 5vw, 4rem);
}

.pager__edge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a.pager__edge:hover {
  color: var(--ink);
  border-color: var(--line);
}

.pager__edge.is-disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.pager__nums {
  display: flex;
  gap: 0.35rem;
}

.pager__num {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pager__num:hover {
  color: var(--ink);
  border-color: rgba(215, 255, 62, 0.5);
}

.pager__num.is-active {
  border-color: var(--acid);
  background: var(--acid);
  color: #0a0a0c;
  font-weight: 650;
}

/* ------------------------------------------------------------------ legal */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.8rem, 6vw, 4.8rem) clamp(3rem, 6vw, 5rem);
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 1.6rem);
  align-self: start;
  font-size: 0.85rem;
}

.legal__toc-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.legal__toc ol {
  display: grid;
  gap: 0.55rem;
  counter-reset: toc;
}

.legal__toc li {
  counter-increment: toc;
}

.legal__toc a {
  display: block;
  padding-left: 0.7rem;
  border-left: 1px solid transparent;
  line-height: 1.45;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal__toc a::before {
  content: counter(toc, decimal-leading-zero) " ";
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.26);
}

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

.legal__toc a.is-current {
  color: var(--acid);
  border-left-color: var(--acid);
}

.legal__doc {
  max-width: 74ch;
}

.legal__title {
  margin: 0.7rem 0 0.8rem;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.legal__updated {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.legal__intro {
  margin-bottom: 2.6rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--acid);
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--ink-2);
}

.legal__section {
  margin-top: 2.4rem;
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

.legal__section h2 {
  margin-bottom: 0.7rem;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.legal__section p {
  margin-bottom: 0.9rem;
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.legal__section ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.5rem 0 1rem;
}

.legal__section li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.legal__section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 1px;
  background: var(--acid);
}

.legal__foot {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.legal__foot a {
  color: var(--acid);
  border-bottom: 1px solid rgba(215, 255, 62, 0.35);
}

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

.site-footer {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-block: 3rem 1.6rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 0.8fr;
  gap: 2rem;
}

.footer__word {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.footer__brand {
  max-width: 34ch;
}

.footer__tag {
  margin-top: 0.5rem;
  max-width: 26ch;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer__note {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.footer__h {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer__col ul {
  display: grid;
  gap: 0.55rem;
}

.footer__col a {
  font-size: 0.88rem;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--acid);
}

.footer__col ul.footer__lang {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.34);
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}

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

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

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

@media (max-width: 1020px) {
  .feature {
    grid-template-columns: 1fr;
  }

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

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

  .legal__toc {
    position: static;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
  }

  .legal__toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .header__inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin: 0;
    padding: 0.4rem clamp(20px, 5vw, 32px) 1.4rem;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .lang {
    align-self: flex-start;
    margin-top: 0.2rem;
    padding: 4px;
  }

  .lang__btn {
    padding: 0.38rem 0.7rem;
    font-size: 0.78rem;
  }

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

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 1rem;
  }

  .legal__toc ol {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .brand__sub {
    display: none;
  }
}

/* ------------------------------------------------------------------- misc */

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

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

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

  .marquee__track {
    animation: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .site-header,
  .site-footer,
  .legal__toc,
  .hero__glow,
  .marquee,
  .skip {
    display: none !important;
  }

  .legal {
    display: block;
    padding: 0;
  }

  .legal__doc {
    max-width: none;
  }

  .legal__section p,
  .legal__intro,
  .legal__section li {
    color: #222;
  }

  a {
    text-decoration: underline;
  }
}

/* =========================================================================
   LIGHT THEME — white pages, dark navigation bar
   Kept at the end on purpose: later rules win with equal specificity, so the
   whole palette can be flipped without touching the layout rules above.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --panel: #ffffff;
  --line: rgba(17, 19, 24, 0.12);
  --line-soft: rgba(17, 19, 24, 0.07);
  --ink: #14161c;
  --ink-2: #3c4048;
  --muted: #6b6f7a;
  --acid: #7c3aed;
  --header-bg: #0a0a0c;
  --header-bg-scrolled: #0a0a0c;
  --nav-ink: rgba(255, 255, 255, 0.72);
  --nav-ink-hover: #ffffff;
  --nav-ink-active: #c4b5fd;
  --menu-bg: #0a0a0c;
}

body {
  background: var(--bg);
  color: var(--ink);
}

body::before {
  background:
    radial-gradient(900px 620px at 8% -12%, rgba(124, 58, 237, 0.1), transparent 62%),
    radial-gradient(760px 520px at 98% 2%, rgba(34, 211, 238, 0.1), transparent 60%);
}

/* the bar stays dark, so its own text/controls need light values */
.site-header {
  color: #f4f2ec;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header .brand__sub {
  color: rgba(255, 255, 255, 0.6);
}

.site-header .nav-toggle {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f4f2ec;
}

.site-header .lang {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.site-header .lang__btn {
  color: rgba(255, 255, 255, 0.62);
}

.site-header .lang__btn[aria-current="true"] {
  background: #ffffff;
  color: #0a0a0c;
}

/* wide artwork logo: fixed height, width follows the aspect ratio */
.brand__logo {
  height: 30px;
  max-width: 190px;
}

.hero {
  padding-bottom: 0;
}

.hero__glow {
  background:
    radial-gradient(52% 56% at 24% 18%, rgba(124, 58, 237, 0.16), transparent 70%),
    radial-gradient(46% 48% at 78% 6%, rgba(34, 211, 238, 0.14), transparent 70%);
}

.btn--solid {
  background: var(--ink);
  color: #ffffff;
}

.btn--solid:hover {
  background: #2b2f38;
}

.btn--ghost {
  border-color: rgba(17, 19, 24, 0.22);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.pager__num.is-active {
  color: #ffffff;
}

.cta {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(124, 58, 237, 0.06), transparent 55%),
    var(--bg-soft);
}

.site-footer {
  background: var(--bg-soft);
}

.feature__frame {
  box-shadow: 0 40px 70px -50px rgba(0, 0, 0, 0.35);
}

.card:hover .card__frame {
  box-shadow: 0 24px 44px -32px rgba(0, 0, 0, 0.28);
}

.page-head__meta,
.legal__updated,
.legal__toc-title,
.footer__h,
.footer__bottom {
  color: var(--muted);
}

.card__sep {
  color: rgba(17, 19, 24, 0.32);
}

.legal__toc a::before {
  color: rgba(17, 19, 24, 0.32);
}

::selection {
  background: var(--acid);
  color: #ffffff;
}
