/* Orbit — shared styles: tokens, type, nav, footer, space layer, components. */

:root {
  color-scheme: dark;

  --void: #06050c;
  --night: #0b0917;
  --deep: #120e24;
  --dusk: #1c1636;
  --line: rgba(196, 181, 255, 0.11);
  --line-strong: rgba(196, 181, 255, 0.22);

  --text: #f4f1ff;
  --text-2: #b6aed6;
  --text-3: #7d75a3;

  --violet: #8b6cff;
  --violet-deep: #6a4dff;
  --violet-soft: #a98bff;
  --lilac: #d6cbff;
  --orchid: #d77cff;
  --blue: #5b8cff;
  --moon: #ffc35a;
  --live: #ff453a;
  --green: #30d158;

  --glass: rgba(20, 15, 42, 0.52);
  --glass-strong: rgba(16, 12, 34, 0.82);
  --grad-text: linear-gradient(100deg, #e6ddff 0%, #c4a8ff 38%, #e08cff 70%, #ffc77a 100%);
  --grad-violet: linear-gradient(135deg, #9a7dff 0%, #6a4dff 100%);

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --font-body: 'Onest', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 22px;
  --nav-h: 64px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--void);
  scroll-padding-top: calc(var(--nav-h) + 32px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
::selection { background: rgba(139, 108, 255, 0.45); color: #fff; }

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: none; }

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

main { position: relative; z-index: 1; }
.wrap { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

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

.hl {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}
.hl em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  padding-right: 0.04em;
}
.hl em,
.hl em .wi,
.grad {
  background-image: var(--grad-text);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hl em:has(.wi) { background: none; }

.h1 { font-size: clamp(3.3rem, 10.6vw, 10.4rem); }
.h2 { font-size: clamp(2.5rem, 6.2vw, 5.6rem); }
.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  font-variation-settings: 'opsz' 32;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 450;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 12px 2px rgba(255, 195, 90, 0.55);
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-2); }

/* Split headings: each word rises out of its own mask. */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.06em 0.12em;
  margin: -0.04em -0.06em -0.12em;
}
.wi { display: inline-block; will-change: transform; }
.js [data-split] .wi {
  transform: translateY(108%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
.js [data-split].is-in .wi { transform: none; }

/* Generic reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(8px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

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

.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.35s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  color: #fff;
  background: var(--grad-violet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 22px -6px rgba(124, 92, 255, 0.75);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 30px -6px rgba(124, 92, 255, 0.95);
}
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: rgba(196, 181, 255, 0.1); }
.btn--text { color: var(--text-2); background: none; padding: 0 12px; }
.btn--text:hover { color: var(--text); }
.btn--light { color: #0b0917; background: #fff; }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(255, 255, 255, 0.45); }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 550;
  color: var(--lilac);
  border-bottom: 1px solid rgba(214, 203, 255, 0.3);
  padding-bottom: 3px;
  transition: gap 0.35s var(--ease-out), border-color 0.25s, color 0.25s;
}
.link-arrow::after { content: '→'; font-family: var(--font-mono); font-size: 0.85em; }
.link-arrow:hover { gap: 16px; color: #fff; border-color: rgba(255, 255, 255, 0.6); }

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

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  height: var(--nav-h);
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: rgba(12, 9, 26, 0.38);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transform: translateX(-50%);
  transition: background-color 0.4s, box-shadow 0.4s, top 0.5s var(--ease-out), height 0.5s var(--ease-out);
}
.nav.is-scrolled {
  top: 10px;
  height: 56px;
  background: rgba(10, 8, 22, 0.72);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 50px -20px rgba(0, 0, 0, 0.8);
}
.js .nav { animation: nav-in 1.2s var(--ease-out) 0.15s both; }
@keyframes nav-in { from { opacity: 0; transform: translate(-50%, -24px); } }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__word {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  font-variation-settings: 'opsz' 32;
  letter-spacing: -0.035em;
}
.logo { width: 34px; height: 34px; overflow: visible; }
.logo__tilt { transform: rotate(-16deg); }
.logo__ring { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.logo__ring--back { stroke: rgba(233, 228, 255, 0.55); }
.logo__moon { fill: var(--moon); filter: drop-shadow(0 0 6px rgba(255, 195, 90, 0.9)); }

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s, background-color 0.25s;
}
.nav__links a:hover { color: var(--text); background: rgba(196, 181, 255, 0.07); }
.nav__links a[aria-current='page'] { color: var(--text); }
.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(--moon);
  box-shadow: 0 0 8px var(--moon);
}
.nav__actions { display: flex; align-items: center; gap: 6px; }

.nav__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded='true'] span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:last-child { top: 20.5px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  background: rgba(8, 6, 18, 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), color 0.2s;
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}
.menu.is-open a { opacity: 1; transform: none; }
.menu a[aria-current='page'] { color: var(--violet-soft); }
.menu__note { margin-top: 40px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

@media (max-width: 960px) {
  .nav__links, .nav__wide { display: none; }
  .nav__toggle { display: inline-block; }
  .nav { gap: 12px; padding-left: 14px; }
  .nav__actions { margin-left: auto; }
}

/* ---------- Space layer ---------- */

.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1240 0%, rgba(26, 18, 64, 0) 60%),
    radial-gradient(90% 70% at 50% 120%, #140c2e 0%, rgba(20, 12, 46, 0) 60%),
    var(--void);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: 0.5;
  will-change: transform;
}
.nebula--a {
  width: 62vmax; height: 46vmax; left: -18vmax; top: -12vmax;
  background: radial-gradient(closest-side, rgba(106, 77, 255, 0.55), rgba(106, 77, 255, 0));
  animation: drift-a 38s ease-in-out infinite alternate;
}
.nebula--b {
  width: 54vmax; height: 54vmax; right: -20vmax; top: 18vh;
  background: radial-gradient(closest-side, rgba(215, 124, 255, 0.32), rgba(215, 124, 255, 0));
  animation: drift-b 46s ease-in-out infinite alternate;
}
.nebula--c {
  width: 70vmax; height: 40vmax; left: 10vw; bottom: -22vmax;
  background: radial-gradient(closest-side, rgba(70, 110, 255, 0.3), rgba(70, 110, 255, 0));
  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(-10vmax, 12vmax, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(-8vmax, -10vmax, 0) scale(1.1); } }

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* The planet system. JS moves it between waypoints; size is set in px through --size. */
.system {
  --size: 520px;
  --tilt: -16deg;
  --open: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  will-change: transform, opacity;
}
.system__glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.42), rgba(91, 140, 255, 0.12) 55%, rgba(0, 0, 0, 0) 75%);
}
.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(var(--tilt)) scaleY(var(--open));
}
.ring path { fill: none; stroke-width: 0.85; stroke-linecap: round; }
.ring path:not(.ring__dust) { filter: drop-shadow(0 0 2px rgba(214, 203, 255, 0.8)); }
.ring .ring__dust { stroke: rgba(196, 181, 255, 0.1); stroke-width: 7; }
.ring--back { z-index: 1; }
.ring--front { z-index: 3; }

.planet {
  position: absolute;
  inset: 25%;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 33% 28%, #e3ecff 0%, #8fb0ff 9%, #5d82ff 24%, #6a4ff2 46%, #4a22b8 66%, #22105e 84%, #10072c 100%);
  box-shadow:
    inset -14px -22px 60px rgba(8, 3, 26, 0.75),
    inset 8px 10px 26px rgba(255, 255, 255, 0.12),
    0 0 80px rgba(124, 92, 255, 0.45);
}
.planet__bands {
  position: absolute;
  inset: -20%;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background: repeating-linear-gradient(172deg,
    rgba(255, 255, 255, 0) 0 7%, rgba(255, 255, 255, 0.55) 8% 9%, rgba(255, 255, 255, 0) 11% 15%,
    rgba(40, 10, 90, 0.6) 16% 18%, rgba(255, 255, 255, 0) 20% 26%);
  animation: bands 60s linear infinite;
}
@keyframes bands { to { transform: translateX(-12%); } }
.planet__shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 78%, rgba(6, 2, 20, 0.7), rgba(6, 2, 20, 0) 58%);
}
.moon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 5.5%;
  height: 5.5%;
  margin: -2.75% 0 0 -2.75%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4d6, #ffc35a 55%, #e08a1e);
  box-shadow: 0 0 18px 4px rgba(255, 195, 90, 0.55), 0 0 60px 10px rgba(255, 170, 60, 0.2);
  will-change: transform;
}

/* ---------- Surfaces ---------- */

.glass {
  position: relative;
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

/* Cards that light up under the pointer. JS sets --mx/--my. */
.glow-card { position: relative; isolation: isolate; }
.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(139, 108, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.glow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -20%), rgba(214, 203, 255, 0.55), transparent 40%);
  -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;
}
.glow-card:hover::before, .glow-card:hover::after { opacity: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(80px, 14vh, 150px)) 0 clamp(48px, 8vh, 90px);
}
.page-hero .h2 { max-width: 13ch; }
.page-hero .lead { margin-top: 26px; }
.section { position: relative; padding: clamp(70px, 12vh, 140px) 0; }

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

.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(60px, 10vh, 120px);
  padding-top: 70px;
  border-top: 1px solid var(--line);
  background: linear-gradient(rgba(6, 5, 12, 0), rgba(6, 5, 12, 0.85) 30%);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer__brand p { margin-top: 18px; max-width: 30ch; color: var(--text-2); font-size: 0.95rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h2 {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer__col a { width: fit-content; color: var(--text-2); font-size: 0.95rem; transition: color 0.2s; }
.footer__col a:hover, .footer__col a[aria-current='page'] { color: var(--text); }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-3);
}
.footer__base strong { color: var(--text-2); font-weight: 550; }
.footer__word {
  margin-top: 30px;
  line-height: 0.74;
  text-align: center;
  user-select: none;
}
.footer__word span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(7rem, 27vw, 26rem);
  font-weight: 200;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196, 181, 255, 0.22);
  background: linear-gradient(180deg, rgba(196, 181, 255, 0.5), rgba(139, 108, 255, 0) 70%) no-repeat;
  background-size: 100% var(--fill, 0%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(18%);
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; }
}

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

.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 0.85rem; font-weight: 550; color: var(--text-2); }
.input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(8, 6, 20, 0.6);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.25s, background-color 0.25s;
}
.input::placeholder { color: var(--text-3); }
.input:hover { box-shadow: inset 0 0 0 1px rgba(196, 181, 255, 0.35); }
.input:focus { outline: none; background: rgba(12, 9, 28, 0.85); box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 4px rgba(139, 108, 255, 0.18); }

/* ---------- Accordions ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  font-weight: 450;
  font-variation-settings: 'opsz' 24;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--lilac); }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: rgba(139, 108, 255, 0.25); }
.faq .faq__body { overflow: hidden; }
.faq .faq__body > div { padding: 0 4px 24px; max-width: 62ch; color: var(--text-2); }
.faq .faq__body p:last-child { margin-bottom: 0; }
.faq .faq__body a { color: var(--lilac); text-decoration: underline; text-decoration-color: rgba(214, 203, 255, 0.35); text-underline-offset: 3px; }

/* ---------- Modal ---------- */

.modal {
  width: min(440px, calc(100% - 32px));
  padding: 34px 30px 28px;
  border: 0;
  border-radius: 26px;
  color: var(--text);
  background: linear-gradient(180deg, #1a1434, #0f0b20);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 120px -30px rgba(139, 108, 255, 0.6);
  text-align: center;
}
.modal::backdrop { background: rgba(4, 3, 10, 0.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.6s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.modal h2 { margin: 18px 0 10px; }
.modal p { color: var(--text-2); }
.modal .logo { width: 56px; height: 56px; margin: 0 auto; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-split] .wi, .js [data-reveal] { transform: none; opacity: 1; filter: none; }
}
