:root {
  --cold: #040810;
  --warm: #ffb37a;
  --ink: #e9f0fb;
  --mute: rgba(233, 240, 251, 0.55);
  --card-border: rgba(233, 240, 251, 0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; font-size: clamp(17px, 15px + 0.8vw, 21px); }
body {
  background: var(--cold);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#gl, #constellation {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}
#constellation { z-index: 2; pointer-events: none; opacity: 0; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  mix-blend-mode: multiply;
}
.content { position: relative; z-index: 3; }

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  position: relative;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 8vw;
  background: linear-gradient(to bottom, rgba(4, 8, 16, 0.88), transparent);
}
.site-nav .brand {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}
.nav-links a, .nav-links button {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-links a:hover, .nav-links button:hover { color: var(--warm); }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; font-size: 1.6rem; line-height: 1; padding: 0.25rem 0.4rem; }
.lang-menu { position: relative; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(11, 30, 59, 0.95);
  border: 1px solid var(--card-border);
  list-style: none;
  min-width: 70px;
}
.lang-menu.open .lang-dropdown { display: block; }
.lang-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--mute);
  text-decoration: none;
}

.hud {
  position: fixed;
  left: 8vw;
  bottom: 5vh;
  z-index: 50;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  pointer-events: none;
}
.hud b { color: var(--ink); font-weight: 500; }
.bar { width: 120px; height: 1px; background: rgba(233, 240, 251, 0.18); position: relative; margin-top: 0.45rem; }
.bar i { position: absolute; left: 0; top: 0; height: 100%; background: var(--warm); width: 0%; }

.scrollcue {
  position: fixed;
  right: 8vw;
  bottom: 5vh;
  z-index: 50;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  pointer-events: none;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 1; } }

.hero { justify-content: flex-end; padding-bottom: 14vh; }
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.4rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.kicker::before { content: ""; width: 42px; height: 1px; background: var(--mute); }
.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.4);
  max-width: 14ch;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--warm); }
.hero p {
  margin-top: 1.8rem;
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--mute);
}

.row {
  width: min(52rem, 94vw);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3.5rem);
}
.row.alt { margin-left: 0; margin-right: auto; }
.row-head { max-width: 26ch; }
.row.alt .row-head { max-width: 30ch; }
.tag {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1rem;
}
.row h2 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}
.lede {
  margin-top: 1.2rem;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.82;
}
.details {
  display: grid;
  gap: 1.1rem;
  max-width: 42rem;
}
@media (min-width: 900px) {
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
  .details:has(.detail:nth-child(3):last-child),
  .details:has(.detail:only-child) { grid-template-columns: 1fr; max-width: 34rem; }
}
.detail {
  padding: 1rem 0 1rem 1.1rem;
  border-left: 1px solid rgba(255, 179, 122, 0.4);
  background: linear-gradient(90deg, rgba(233, 240, 251, 0.04), transparent 55%);
}
.detail h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.detail p {
  font-size: clamp(0.86rem, 1.4vw, 0.98rem);
  line-height: 1.65;
  color: var(--mute);
  max-width: 36ch;
}

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

.sis-section { justify-content: center; }
.sis-row {
  width: min(56rem, 94vw);
  margin-left: auto;
  margin-right: auto;
  gap: clamp(1.5rem, 4vh, 2.5rem);
}
.sis-media { width: 100%; max-width: 42rem; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 48px rgba(0, 0, 0, 0.55);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sis-cta { max-width: 28rem; }
.waitlist-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.85rem;
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.waitlist-status {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
  min-height: 1.25em;
}
.sis-login {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--mute);
}
.sis-login a { color: var(--warm); text-decoration: none; }
.sis-login a:hover { text-decoration: underline; }

.outro { justify-content: center; align-items: center; text-align: center; }
.outro h2 { max-width: 24ch; text-align: center; margin: 0 auto; }
.outro-lede {
  text-align: center;
  margin: 1rem auto 0;
  max-width: 34ch;
  opacity: 0.82;
}
.contact-form { max-width: 36ch; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.form-control {
  width: 100%;
  background: rgba(233, 240, 251, 0.04);
  border: 1px solid var(--card-border);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.82rem;
}
.form-control:focus { outline: none; border-color: var(--warm); }
.form-control::placeholder { color: var(--mute); }

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-light { border-color: var(--warm); color: var(--warm); }
.btn-primary { border-color: var(--warm); background: rgba(255, 179, 122, 0.12); color: var(--warm); }
.btn:hover { background: rgba(255, 179, 122, 0.08); }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.cta-soon-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.outro .cta-soon-wrap { align-items: center; }
.cta-soon {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  opacity: 0.88;
  max-width: 28ch;
  line-height: 1.5;
}
.outro .cta-soon { text-align: center; }
.mt-3 { margin-top: 1rem; }

footer {
  padding: 4vh 0 6vh;
  text-align: center;
  font-size: 0.75rem;
  color: var(--mute);
  border-top: 1px solid var(--card-border);
}
footer a { color: var(--warm); text-decoration: none; }
footer p + p { margin-top: 0.5rem; }

.theme-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--warm);
  background: rgba(255, 179, 122, 0.1);
  color: var(--warm);
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .row { width: 100%; margin: 0; }
  .row-head { max-width: none; }
  .details { max-width: none; }
  .sis-row { width: 100%; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 30, 59, 0.95);
    padding: 1rem 8vw 1.5rem;
    border-bottom: 1px solid var(--card-border);
  }
  .site-nav.open .nav-links { display: flex; gap: 0.4rem; }
  .nav-links a, .nav-links button {
    font-size: 1rem;
    letter-spacing: 0.18em;
    padding: 0.6rem 0;
  }
  .site-nav .brand { font-size: 1.3rem; }
  .scrollcue { display: none; }
  .hud { display: none; }            /* was overlapping the hero CTA on mobile */
  .hero .btn { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .scrollcue { animation: none; }
}
