/* ===== 门光 MG — core ===== */
:root {
  --bg: #05070c;
  --bg-2: #080b12;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f6ff;
  --muted: #98a5ba;
  --muted-2: #6f7b90;
  --accent: #5b8cff;
  --cyan: #67e8f9;
  --pink: #ff8ec7;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
::selection { background: rgba(91, 140, 255, 0.35); }

/* ===== nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 46px);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img { height: 34px; width: auto; }
.nav-brand b { font-size: 17px; letter-spacing: 0.08em; font-weight: 650; }
.nav-brand span { font-size: 10px; letter-spacing: 0.3em; color: var(--muted-2); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: 0.25s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #06080d !important;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18); }

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 92px 24px 56px;
  overflow: hidden;
  isolation: isolate;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.aurora { position: absolute; inset: -20%; z-index: -1; filter: blur(90px); opacity: 0.65; }
.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 22s var(--ease) infinite alternate;
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 6%; top: 12%; background: radial-gradient(circle, rgba(56, 108, 255, 0.55), transparent 65%); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: 2%; top: 4%; background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 65%); animation-delay: -7s; }
.aurora i:nth-child(3) { width: 38vw; height: 38vw; left: 34%; bottom: -12%; background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 65%); animation-delay: -13s; }
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 1080px; }
.hero-logo {
  width: clamp(96px, 10vw, 132px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 30px 60px rgba(59, 125, 255, 0.35));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero h1 {
  margin: 0;
  font-size: clamp(52px, 8.6vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 18%, #a9c4ff 62%, #5b8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-en {
  margin: 14px 0 0;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: var(--muted);
  font-weight: 500;
}
.hero-tag {
  margin: 20px auto 0;
  max-width: 720px;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.16em;
  color: #dce6f7;
  font-weight: 300;
}
.hero-sub { margin: 14px auto 0; max-width: 620px; color: var(--muted); font-size: 15.5px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 550;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
  backdrop-filter: blur(12px);
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); }
.btn.primary {
  background: linear-gradient(180deg, #ffffff, #dfe9ff);
  color: #06080d;
  border-color: transparent;
  box-shadow: 0 18px 46px rgba(120, 160, 255, 0.28);
}
.btn.primary:hover { box-shadow: 0 24px 60px rgba(120, 160, 255, 0.4); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-meta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: clamp(22px, 5vw, 64px);
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-meta b { display: block; color: var(--text); font-size: 19px; letter-spacing: 0; margin-bottom: 2px; font-weight: 600; }

.scroll-hint { display: none;
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.3em;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.scroll-hint i {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), transparent);
  animation: hint 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hint { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ===== sections ===== */
.section {
  position: relative;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 60px);
  max-width: 1240px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.7; }
.section h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.section .lead { max-width: 660px; color: var(--muted); font-size: clamp(15px, 1.6vw, 19px); }

.statement { text-align: center; padding-top: 20px; }
.statement p {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(28px, 4.6vw, 58px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #e9eefb;
}
.statement p em {
  font-style: normal;
  background: linear-gradient(90deg, #7aa8ff, #67e8f9, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statement small { display: block; margin-top: 26px; color: var(--muted-2); letter-spacing: 0.24em; font-size: 12px; }

/* ===== tools bento ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 46px;
}
.tile {
  position: relative;
  grid-column: span 2;
  min-height: 158px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(91, 140, 255, 0.14), transparent 45%),
    var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.35), transparent 40%, transparent 65%, rgba(103,232,249,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tile:hover { transform: translateY(-4px); border-color: transparent; background: radial-gradient(120% 120% at 0% 0%, rgba(91, 140, 255, 0.22), transparent 50%), rgba(255,255,255,.06); }
.tile:hover::after { opacity: 1; }
.tile .glyph {
  font-family: var(--mono);
  font-size: 13px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #cfe0ff;
}
.tile h3 { margin: 18px 0 6px; font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }
.tile p { margin: 0; color: var(--muted); font-size: 13.5px; }
.tile .go { position: absolute; right: 20px; top: 20px; color: var(--muted-2); font-size: 16px; transition: 0.3s; }
.tile:hover .go { color: var(--cyan); transform: translate(2px, -2px); }
.tile.feature {
  grid-column: span 6;
  grid-row: auto;
  min-height: 300px;
  background:
    radial-gradient(90% 90% at 80% 10%, rgba(103, 232, 249, 0.16), transparent 55%),
    radial-gradient(90% 90% at 10% 90%, rgba(91, 140, 255, 0.22), transparent 55%),
    rgba(255, 255, 255, 0.05);
  justify-content: flex-end;
}
.tile.feature h3 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; }
.tile.feature p { font-size: 15px; max-width: 420px; }
.tile.feature .big-glyph {
  position: absolute;
  inset: 26px 26px auto auto;
  font-family: var(--mono);
  font-size: clamp(64px, 9vw, 118px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: -0.06em;
}

/* ===== downloads ===== */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.dl-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 50% at 50% 0%, rgba(91,140,255,.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.dl-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.dl-card:hover::before { opacity: 1; }
.dl-top { display: flex; align-items: center; gap: 14px; position: relative; }
.dl-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.dl-icon svg { width: 26px; height: 26px; }
.dl-card h3 { margin: 0; font-size: 19px; font-weight: 600; }
.dl-card .meta { color: var(--muted-2); font-size: 12px; letter-spacing: .04em; }
.dl-card p { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: .06em;
}
.tag.hot { color: var(--cyan); border-color: rgba(103,232,249,.3); background: rgba(103,232,249,.08); }
.mini-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.05);
  font-size: 13px; color: var(--text);
  transition: .25s;
  cursor: pointer;
}
.mini-btn:hover { background: rgba(255,255,255,.11); transform: translateY(-1px); }
.mini-btn.solid { background: var(--text); color: #06080d; border-color: transparent; font-weight: 600; }

/* ===== harness ===== */
.harness { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.mascot-wrap { position: relative; display: grid; place-items: center; min-height: 480px; }
.mascot {
  width: min(100%, 470px);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 97%);
  filter: drop-shadow(0 40px 80px rgba(40, 90, 220, 0.35));
  animation: float 9s ease-in-out infinite;
}
.mascot-ring {
  position: absolute;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  animation: spin 40s linear infinite;
}
.mascot-ring::before, .mascot-ring::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  top: -3px; left: 50%;
}
.mascot-ring::after { top: auto; bottom: -3px; left: 22%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.harness h2 { font-size: clamp(28px, 3.2vw, 46px); }
.harness-copy .lead { margin-bottom: 22px; }
.feature-list { display: grid; gap: 14px; margin: 28px 0 32px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 12px; color: #c7d3e6; font-size: 14.5px; }
.feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #cfe4ff, #5b8cff 60%, #1b3f9e);
  box-shadow: 0 0 12px rgba(91,140,255,.5);
}
.harness-stats { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.harness-stats div b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.harness-stats div span { font-size: 12px; color: var(--muted-2); letter-spacing: .08em; }
.note { margin-top: 18px; font-size: 12px; color: var(--muted-2); }

/* ===== footer ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 54px clamp(20px, 5vw, 60px) 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--muted);
}
footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
footer .f-brand img { height: 30px; width: auto; }
footer .f-brand b { color: var(--text); letter-spacing: .1em; }
footer p { margin: 0; font-size: 13px; max-width: 320px; color: var(--muted-2); }
footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
footer a:hover { color: var(--text); }
.copy {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ===== reveal ===== */
html.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); }
html.js .reveal.in { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== responsive ===== */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile { grid-column: span 2; }
  .tile.feature { grid-column: span 4; grid-row: auto; min-height: 320px; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .harness { grid-template-columns: 1fr; }
  .mascot-wrap { min-height: 380px; }
  footer { grid-template-columns: 1fr 1fr; }
}
@media (max-height: 820px) {
  .scroll-hint { display: none; display: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.feature { grid-column: span 2; min-height: 170px; }
  .dl-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 26px; flex-wrap: wrap; }
  .hero-meta b { font-size: 18px; }
  footer { grid-template-columns: 1fr; }
  .copy { flex-direction: column; }
}

.scroll-hint { display: none !important; }

/* ===== character sheet ===== */
.sheet {
  margin: 0;
  width: min(100%, 600px);
  padding: 12px 12px 8px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdff, #e6efff);
  box-shadow: 0 0 130px rgba(80, 130, 255, 0.28), 0 60px 110px rgba(4, 14, 40, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(-1.4deg);
  transition: transform 0.7s var(--ease);
}
.sheet:hover { transform: rotate(0deg) translateY(-4px); }
.sheet-frame { border-radius: 14px; overflow: hidden; background: #fff; }
.sheet img { display: block; width: 100%; height: auto; }
.sheet figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 6px 2px;
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a6b8f;
}
@media (max-width: 1000px) {
  .sheet { transform: none; }
}
/* ===== whale girl ===== */
.muse-stage {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 10px 0 0;
}
.muse-glow {
  position: absolute;
  width: min(90%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 130, 255, 0.36), rgba(80, 130, 255, 0.06) 45%, transparent 68%);
  filter: blur(30px);
  top: 12%;
}
.muse-img {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 44px 60px rgba(2, 8, 26, 0.7));
  animation: float 10s ease-in-out infinite;
}
.muse-stage figcaption {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.muse-stage figcaption span:last-child {
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* ===== MENGGUANG ring ===== */
.ring-section {
  position: relative;
  height: 260vh;
  overflow: clip;
  background:
    radial-gradient(55% 45% at 50% 45%, rgba(60, 110, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #05070c 0%, #060a14 45%, #05070c 100%);
}
.ring-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
#ring-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.ring-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  pointer-events: none;
}
.ring-caption span:first-child {
  color: rgba(200, 225, 255, 0.55);
  letter-spacing: 0.5em;
}
@media (max-height: 720px) {
  .ring-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ring-section { height: 100vh; }
}
/* ===== MENGGUANG spiral ===== */
.spiral-section {
  position: relative;
  height: 300vh;
  overflow: clip;
  background:
    radial-gradient(52% 44% at 50% 46%, rgba(64, 116, 255, 0.16), transparent 72%),
    linear-gradient(180deg, #05070c 0%, #060a14 45%, #05070c 100%);
}
.spiral-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
#spiral-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.spiral-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  pointer-events: none;
}
.spiral-caption span:first-child {
  color: rgba(200, 225, 255, 0.55);
  letter-spacing: 0.5em;
}
@media (max-height: 720px) {
  .spiral-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spiral-section { height: 120vh; }
}
.spiral-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s linear;
  will-change: opacity;
}
#spiral-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* ===== finale: powder becomes the portrait, lower-left ===== */
.finale {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.finale .muse-img { width: 100%; height: auto; }
.finale .muse-stage {
  position: absolute;
  left: clamp(40px, 16vw, 300px);
  bottom: 3vh;
  width: min(58vh, 545px);
  margin: 0;
}
.finale .harness-copy {
  position: absolute;
  right: clamp(20px, 4vw, 70px);
  top: 50%;
  transform: translateY(-50%);
  width: min(44vw, 540px);
}
.finale .harness-copy h2 { font-size: clamp(26px, 3vw, 40px); }
.finale .harness-copy .lead { font-size: 14px; }
.finale .feature-list { gap: 6px; }
.finale .feature-list li { font-size: 13px; }
.finale .harness-stats { margin-top: 14px; }
.finale .note { display: none; }
@media (max-width: 820px) {
  .finale .muse-stage { width: min(30vh, 250px); left: 50%; transform: translateX(-50%); bottom: 32vh; }
  .finale .harness-copy { left: 20px; right: 20px; width: auto; top: auto; bottom: 6vh; transform: none; }
  .finale .harness-copy .lead, .finale .feature-list, .finale .harness-stats { display: none; }
}

@media (max-width: 1250px) {
  .finale .muse-stage { width: min(42vh, 380px); left: 4vw; }
  .finale .harness-copy { width: min(50vw, 520px); }
}

.tile-wide {
  grid-column: span 6;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.tile-wide h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.tile-wide .go { margin-left: auto; }
.new-tag {
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.12em;
  padding: 4px 6px;
  border-radius: 5px;
  color: #04121f;
  background: linear-gradient(135deg, #7fe3ff, #5f8dff);
}
@media (max-width: 1000px) {
  .tile-wide { grid-column: span 4; }
}

/* ===== morph canvas + liquid glass toolbox ===== */
@property --ai-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

#morph-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s linear;
}

.toolbox-morph .bento .tile {
  opacity: 0 !important;
  transform: none !important;
}
.toolbox-morph .bento .tile.is-glass {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.35s ease;
}

.tile.is-glass {
  border: 0 !important;
  outline: 0 !important;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025) 45%, rgba(120, 160, 255, 0.045));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 20px rgba(140, 190, 255, 0.1);
}
.tile.is-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--ai-angle),
    #5ee7ff,
    #6a8dff,
    #b064ff,
    #ff6ec7,
    #ffb86b,
    #ffe27a,
    #5ee7ff
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ai-spin 16s linear infinite;
  pointer-events: none;
}
.tile.is-glass:hover {
  transform: translateY(-3px);
}
.tile.is-glass::after {
  content: none !important;
}
.tile.is-glass > * {
  animation: tile-content-in 0.35s ease both;
}
.tile.is-glass > .tile-glint {
  animation: none !important;
}

.tile-glint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  background: radial-gradient(
    120px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.12),
    rgba(160, 200, 255, 0.05) 40%,
    transparent 70%
  );
}
.tile.is-glint .tile-glint {
  opacity: 1;
}

@keyframes ai-spin {
  to { --ai-angle: 360deg; }
}
@keyframes tile-content-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile.is-glass::before { animation: none; }
  .tile.is-glass > * { animation: none; }
}

/* ambient color behind the glass grid (no filter, cheap) */
#tools { position: relative; }
#tools::before {
  content: "";
  position: absolute;
  inset: 10% -12% 16%;
  background:
    radial-gradient(46% 38% at 28% 32%, rgba(70, 120, 255, 0.16), transparent 72%),
    radial-gradient(42% 36% at 74% 58%, rgba(176, 100, 255, 0.12), transparent 72%),
    radial-gradient(36% 30% at 52% 82%, rgba(94, 231, 255, 0.09), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
#tools .bento { position: relative; z-index: 1; }

/* ===== gallery ===== */
.gallery .lead { max-width: 640px; }
.exhibit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  margin-top: 46px;
  border-radius: var(--radius);
  border: 1px solid rgba(230, 200, 147, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.45s, box-shadow 0.45s, transform 0.6s var(--ease);
}
#gallery .exhibit:hover {
  border-color: rgba(230, 200, 147, 0.48);
  transform: translateY(-4px);
  box-shadow: 0 40px 90px -50px rgba(230, 200, 147, 0.45);
}
.exhibit-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #070a10;
}
.exhibit-media picture { display: block; height: 100%; }
.exhibit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--ease);
}
.exhibit:hover .exhibit-media img { transform: scale(1.035); }
.exhibit-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 18, 0) 62%, rgba(8, 11, 18, 0.55) 100%);
  pointer-events: none;
}
.exhibit-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: #e6c893;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(230, 200, 147, 0.36);
  background: rgba(6, 9, 14, 0.55);
  backdrop-filter: blur(8px);
}
.exhibit-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3.4vw, 42px);
}
.exhibit-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #e6c893;
}
.exhibit-body h3 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
}
.exhibit-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.exhibit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}
.exhibit-meta li {
  font-size: 11.5px;
  color: var(--muted-2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.exhibit-cta {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e6c893;
  font-size: 13.5px;
  letter-spacing: 0.03em;
}
.exhibit-cta i { font-style: normal; transition: transform 0.4s var(--ease); }
.exhibit:hover .exhibit-cta i { transform: translate(3px, -3px); }

@media (max-width: 820px) {
  .exhibit { grid-template-columns: minmax(0, 1fr); }
  .exhibit-media { min-height: 0; aspect-ratio: 16 / 10; }
  .exhibit-media::after {
    background: linear-gradient(180deg, rgba(8, 11, 18, 0) 55%, rgba(8, 11, 18, 0.6) 100%);
  }
}

.copy .icp,
footer .icp {
  color: var(--muted-2, #8b93a7);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}
.copy .icp:hover,
footer .icp:hover { color: var(--text, #e7ecf3); }
