/* ============================================================
   Starbound — design system
   ============================================================ */

:root {
  --bg: #06041a;
  --bg-2: #0d0928;
  --bg-3: #150f38;
  --ink: #f7f2ff;
  --ink-2: #d9d0f5;
  --muted: #a49ac9;
  --faint: #6f6799;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);

  --gold: #ffc978;
  --cream: #fff4cf;
  --peach: #ffad7a;
  --pink: #ff6fb5;
  --violet: #8b7cff;
  --lilac: #b9a6ff;
  --cyan: #6ee7f9;
  --mint: #7cf5c6;
  --red: #ff7a7a;

  --fire: #ff8a5c;
  --earth: #9ee37d;
  --air: #7cc8ff;
  --water: #b18cff;

  --aurora: linear-gradient(100deg, #ffe3a3 0%, #ffc978 18%, #ff6fb5 46%, #8b7cff 74%, #6ee7f9 100%);
  --aurora-soft: linear-gradient(120deg, rgba(255, 201, 120, 0.22), rgba(255, 111, 181, 0.18) 45%, rgba(139, 124, 255, 0.2) 75%, rgba(110, 231, 249, 0.16));

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-glyph: "Noto Sans Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", "Apple Symbols", sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px -20px rgba(139, 124, 255, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* clip (not hidden) keeps position: sticky working while stopping sideways scroll on phones */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 111, 181, 0.45); color: #fff; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Cosmic backdrop ---------- */

#cosmos {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.nebula {
  position: fixed;
  inset: -20vmax;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.nebula i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.nebula i:nth-child(1) {
  width: 55vmax; height: 55vmax; left: 5%; top: 0%;
  background: radial-gradient(circle, rgba(139, 124, 255, 0.55), transparent 65%);
  animation: drift-a 38s ease-in-out infinite alternate;
}
.nebula i:nth-child(2) {
  width: 48vmax; height: 48vmax; right: 0%; top: 18%;
  background: radial-gradient(circle, rgba(255, 111, 181, 0.4), transparent 65%);
  animation: drift-b 44s ease-in-out infinite alternate;
}
.nebula i:nth-child(3) {
  width: 60vmax; height: 60vmax; left: 25%; bottom: -5%;
  background: radial-gradient(circle, rgba(110, 231, 249, 0.22), transparent 65%);
  animation: drift-c 52s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-14vmax, 10vmax, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(-8vmax, -12vmax, 0) scale(1.1); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* sparkle cursor trail + click bursts */
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.fx-spark {
  position: absolute;
  left: 0; top: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--c, var(--cream));
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px var(--c, var(--gold)));
  will-change: transform, opacity;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 880px; }

section { position: relative; }
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section.tight { padding: clamp(56px, 8vw, 96px) 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 > .flip-mobile { order: -1; }
}

/* ---------- Type ---------- */

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

h1, .h1 { font-size: clamp(52px, 9vw, 132px); line-height: 0.95; }
h2, .h2 { font-size: clamp(38px, 5.6vw, 76px); }
h3, .h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }

.italic { font-style: italic; }
em { font-style: italic; }

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.6;
}
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.glyph { font-family: var(--font-glyph); font-variant-emoji: text; line-height: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--aurora);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 3s ease-in-out infinite;
}

.grad-text {
  background: var(--aurora);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
  padding-right: 0.06em; /* keep italic overhang from clipping */
}

@keyframes shimmer { to { background-position: 100% 0; } }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(0.6) rotate(45deg); opacity: 0.6; }
}

/* split-letter reveal */
.split .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(6deg);
  filter: blur(8px);
  animation: ch-in 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 28ms + var(--d, 0ms));
}
.split .w { display: inline-block; white-space: nowrap; }
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Buttons ---------- */

.btn {
  --pad-x: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 var(--pad-x);
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), background 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); }
.btn.sm { min-height: 42px; --pad-x: 18px; font-size: 14.5px; }
.btn.lg { min-height: 60px; --pad-x: 32px; font-size: 17.5px; }

.btn-primary {
  color: #1a0b2e;
  background: var(--aurora);
  background-size: 160% 100%;
  box-shadow: 0 10px 40px -10px rgba(255, 111, 181, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 14px 50px -8px rgba(255, 111, 181, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.6); background-position: 100% 0; }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--ink);
  background: var(--glass-2);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.28); }

.btn .spark {
  width: 14px; height: 14px;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transition: transform 0.6s var(--ease-spring);
}
.btn:hover .spark { transform: rotate(180deg) scale(1.2); }
.btn .arrow { transition: transform 0.35s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color 0.3s, gap 0.3s var(--ease-spring);
}
.link-arrow:hover { border-color: var(--pink); gap: 12px; }

/* ---------- Glass cards ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-glow);
}
.card.pad { padding: clamp(22px, 3vw, 36px); }

.glow-border { position: relative; }
.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip .glyph { font-size: 15px; }
.chip.live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(124, 245, 198, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 245, 198, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(124, 245, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 245, 198, 0); }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 5, 28, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand .mark { width: 40px; height: 40px; }
.brand .wordmark { height: 24px; width: auto; }
.brand:hover .mark { animation: wobble 1.2s var(--ease-spring); }
@keyframes wobble {
  0% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-14deg) scale(1.1); }
  60% { transform: rotate(8deg) scale(0.98); }
  100% { transform: rotate(0) scale(1); }
}

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); background: var(--glass-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}
.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass-2);
  margin-left: auto;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: calc(var(--nav-h) + 24px) 24px 32px;
  background: rgba(6, 4, 26, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.big {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 44px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 50ms);
}
.mobile-menu a.big .glyph { font-size: 24px; color: var(--gold); width: 32px; }
.nav-open .mobile-menu a.big { opacity: 1; transform: none; }
.mobile-menu .btn { margin-top: auto; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker-item .glyph { font-size: 18px; color: var(--gold); }
.ticker-item .rx { color: var(--pink); font-weight: 600; }
.ticker-item::after {
  content: "✦";
  margin-left: 28px;
  color: var(--faint);
  font-size: 10px;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Forms ---------- */

.field { display: grid; gap: 8px; }
.field > span, .label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 16.5px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  color-scheme: dark;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: rgba(255, 255, 255, 0.26); }
.input:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(139, 124, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.22);
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b9a6ff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
}
select.input option { background: var(--bg-2); color: var(--ink); }

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.check input {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
  margin: 0;
}
.check input::after {
  content: "";
  width: 10px; height: 10px;
  background: #1a0b2e;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transform: scale(0);
  transition: transform 0.3s var(--ease-spring);
}
.check input:checked { background: var(--aurora); border-color: transparent; }
.check input:checked::after { transform: scale(1.3); }

.place-wrap { position: relative; }
.ac-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--radius-sm);
  background: rgba(16, 11, 44, 0.97);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  max-height: 290px;
  overflow: auto;
}
.ac-list li {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}
.ac-list li small { color: var(--muted); font-size: 13px; text-align: right; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: rgba(139, 124, 255, 0.2); }
.ac-list .ac-empty { color: var(--muted); cursor: default; }
.ac-list .ac-empty:hover { background: none; }

/* mad-lib sentence form */
.madlib {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.madlib .slot {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.madlib input {
  font: inherit;
  font-style: italic;
  color: var(--gold);
  background: transparent;
  border: 0;
  border-bottom: 2px dashed rgba(255, 201, 120, 0.5);
  padding: 0 4px;
  min-width: 3ch;
  width: auto;
  transition: border-color 0.3s;
  color-scheme: dark;
}
.madlib input:focus { outline: none; border-bottom-color: var(--pink); border-bottom-style: solid; }
.madlib input::placeholder { color: rgba(255, 201, 120, 0.42); }
.madlib .ac-list { font-family: var(--font-body); font-size: 16px; font-style: normal; min-width: 280px; }

/* ---------- Dialog ---------- */

dialog.sheet {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background: linear-gradient(180deg, #17103e, #0d0928 60%);
  color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
dialog.sheet[open] { animation: sheet-in 0.55s var(--ease-spring); }
dialog.sheet::backdrop {
  background: rgba(4, 2, 16, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.sheet-body {
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: clamp(24px, 4vw, 40px);
}
.sheet-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.35s var(--ease-spring), background 0.25s;
}
.sheet-close:hover { transform: rotate(90deg); background: rgba(255, 255, 255, 0.16); }

/* ---------- Sign tiles ---------- */

.sign-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1040px) { .sign-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .sign-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }

.sign-tile {
  --c1: var(--gold);
  --c2: var(--pink);
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c1) 26%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  text-align: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
  will-change: transform;
}
.sign-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c2) 35%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.sign-tile:hover {
  border-color: color-mix(in srgb, var(--c1) 60%, transparent);
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--c2) 70%, transparent);
}
.sign-tile:hover::after { opacity: 1; }
.sign-tile .glyph {
  font-size: clamp(40px, 5vw, 60px);
  background: linear-gradient(160deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateZ(40px);
  transition: transform 0.6s var(--ease-spring);
  filter: drop-shadow(0 6px 20px color-mix(in srgb, var(--c2) 60%, transparent));
}
.sign-tile:hover .glyph { transform: translateZ(60px) scale(1.12) rotate(-6deg); }
.sign-tile .name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(17px, 1.7vw, 22px);
  transform: translateZ(24px);
}
.sign-tile .dates {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transform: translateZ(16px);
}
.sign-tile .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: screen;
  transition: opacity 0.5s, transform 0.8s var(--ease);
  z-index: -1;
}
.sign-tile:hover .art { opacity: 0.8; transform: scale(1.06); }
.sign-tile.is-active { border-color: var(--c1); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c1) 50%, transparent), 0 24px 60px -20px var(--c2); }

/* ---------- Reading ---------- */

.reading-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.reading-head .big-glyph {
  width: 76px; height: 76px;
  flex-shrink: 0;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  color: #1a0b2e;
  box-shadow: 0 14px 40px -12px var(--c2);
}
.reading-head .meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.reading-headline {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.reading-body { color: var(--ink-2); font-size: 17.5px; margin: 0 0 24px; }
.reading-body p { margin: 0 0 12px; }

.dodont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 24px;
}
.dodont > div {
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.dodont h4 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dodont .do h4 { color: var(--mint); }
.dodont .dont h4 { color: var(--pink); }
.dodont ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.dodont li { display: flex; gap: 8px; }
.dodont .do li::before { content: "✦"; color: var(--mint); }
.dodont .dont li::before { content: "✕"; color: var(--pink); font-size: 13px; padding-top: 2px; }
@media (max-width: 520px) { .dodont { grid-template-columns: 1fr; } }

.meters { display: grid; gap: 12px; margin-bottom: 22px; }
.meter { display: grid; grid-template-columns: 76px 1fr 38px; align-items: center; gap: 12px; font-size: 14px; }
.meter .lbl { color: var(--muted); font-weight: 600; }
.meter .bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.meter .bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--fill, var(--aurora));
  box-shadow: 0 0 16px var(--glow, rgba(255, 111, 181, 0.6));
  transition: width 1.4s var(--ease);
}
.meter .val { font-family: var(--font-mono); font-size: 13px; text-align: right; color: var(--ink-2); }

.lucky {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { padding: clamp(26px, 4vw, 42px); display: flex; flex-direction: column; gap: 18px; }
.price-card.plus {
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(255, 111, 181, 0.2), transparent 60%),
    radial-gradient(120% 70% at 0% 100%, rgba(110, 231, 249, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
}
.price {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price small { font-family: var(--font-body); font-size: 17px; color: var(--muted); letter-spacing: 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 5px;
  background: var(--aurora);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a0b2e;
  background: var(--aurora);
}
.badge.plus-badge { font-size: 11px; padding: 4px 10px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.3s, border-color 0.3s;
}
.faq details[open] { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 64px 22px 24px;
  font-weight: 700;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  width: 30px; height: 30px;
  margin-top: -15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-2);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--pink); color: #1a0b2e; }
.faq details > div { padding: 0 24px 24px; color: var(--ink-2); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(139, 124, 255, 0.06));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer h5 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); transition: color 0.2s; }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--faint);
}
.footer .big-mark {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(64px, 15vw, 210px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-top: 48px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.01));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

/* ---------- Paywall ---------- */

.locked { position: relative; }
.locked > .lock-content { filter: blur(7px) saturate(0.7); pointer-events: none; user-select: none; opacity: 0.6; }
.lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.lock-overlay .card { padding: 28px; max-width: 420px; display: grid; gap: 14px; justify-items: center; }
.lock-overlay .lock-ico {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--aurora);
  color: #1a0b2e;
  font-size: 26px;
  box-shadow: 0 14px 40px -10px var(--pink);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 40px);
  opacity: 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(23, 16, 62, 0.95);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6);
  font-weight: 600;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(36px, 5vw, 64px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(46px, 7.4vw, 104px); }
.page-hero .lede { margin: 22px auto 0; }

/* ---------- Utilities ---------- */

.stack { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head .lede { margin: 20px auto 0; }

.orbit-spinner {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--pink);
  border-right-color: var(--violet);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .split .ch { opacity: 1; transform: none; filter: none; }
}
