/* ---------- Fonts ---------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/sora.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #070b09;
  --bg-soft: #0a110e;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --ink: #f2f0e8;
  --muted: #9aa39c;
  --muted-strong: #c3c8c1;
  --line: rgba(242, 240, 232, 0.11);
  --line-strong: rgba(242, 240, 232, 0.2);
  --accent: #c9f56b;
  --accent-soft: rgba(201, 245, 107, 0.14);
  --mint: #6fe3c0;
  --danger: #ff9b8a;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page: min(1280px, 100% - clamp(2.5rem, 9vw, 9rem));
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
input, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #10160c; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #10160c;
  font-size: 0.8rem;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Background ---------- */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58rem 42rem at 82% -12%, rgba(111, 227, 192, 0.12), transparent 62%),
    radial-gradient(52rem 40rem at -8% 18%, rgba(201, 245, 107, 0.1), transparent 60%),
    radial-gradient(60rem 50rem at 50% 118%, rgba(111, 227, 192, 0.07), transparent 65%),
    linear-gradient(180deg, #070b09 0%, #070b09 55%, #080d0b 100%);
}
.page-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4.5vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding-block: 0.8rem;
  background: rgba(7, 11, 9, 0.72);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--accent);
  flex: none;
}
.brand-word {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
}
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ping 2.8s var(--ease) infinite;
}

/* ---------- Hero ---------- */
.hero {
  width: var(--page);
  margin-inline: auto;
  min-height: 100svh;
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(1.4rem, 3vh, 2rem);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.eyebrow-line {
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.7vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 em,
.section-title em,
.statement h2 em,
.cta h2 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  max-width: 34rem;
  margin-top: clamp(1.4rem, 3vh, 2rem);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Forms ---------- */
.form-block { margin-top: clamp(1.8rem, 4vh, 2.6rem); max-width: 37rem; }
.waitlist-form { position: relative; }

.field-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field-row:focus-within {
  border-color: rgba(201, 245, 107, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 4px rgba(201, 245, 107, 0.08);
}
.field-row input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 0.4rem 0.9rem 1.15rem;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 300;
  outline: none;
}
.field-row input::placeholder { color: rgba(242, 240, 232, 0.34); }
.field-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: none;
  padding: 0.9rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #11160d;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
}
.field-row button svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.field-row button:hover:not(:disabled) { background: #d8ff86; transform: translateY(-1px); }
.field-row button:hover:not(:disabled) svg { transform: translateX(3px); }
.field-row button:active:not(:disabled) { transform: translateY(0); }
.field-row button:disabled { opacity: 0.6; cursor: wait; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 0.9rem;
  padding-left: 1.15rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(154, 163, 156, 0.8);
}
.form-status {
  min-height: 1.4rem;
  margin-top: 0.65rem;
  padding-left: 1.15rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.form-status.is-visible { opacity: 1; transform: none; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: var(--danger); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  margin-top: clamp(2.4rem, 6vh, 3.8rem);
  padding: 0;
  list-style: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-meta li span {
  font-size: 0.58rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  isolation: isolate;
}
.orb-glow {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 245, 107, 0.24), rgba(111, 227, 192, 0.13) 42%, transparent 70%);
  filter: blur(46px);
  animation: breathe 9s ease-in-out infinite;
}
.orb-stage {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.ring-1 {
  inset: 3%;
  border-color: rgba(201, 245, 107, 0.16);
  animation: spin 70s linear infinite;
}
.ring-2 {
  inset: 13%;
  border-style: dashed;
  border-color: rgba(242, 240, 232, 0.16);
  animation: spin-rev 50s linear infinite;
}
.ring-3 {
  inset: 25%;
  border-color: rgba(111, 227, 192, 0.18);
}
.ring-dashed {
  inset: -1%;
  border-style: dashed;
  border-color: rgba(242, 240, 232, 0.07);
  animation: spin 110s linear infinite;
}
.orbit-dot {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
.orbit-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px 2px rgba(201, 245, 107, 0.55);
}
.orb-core {
  width: 38%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 0.3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.orb-mark { width: 44%; margin-inline: auto; color: var(--accent); }
.orb-label {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  padding-left: 0.3em;
}
.chip {
  position: absolute;
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 15, 12, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted-strong);
  animation: float 7s ease-in-out infinite;
}
.chip-1 { top: 15%; left: -4%; }
.chip-2 { top: 49%; right: -7%; animation-delay: -2.3s; }
.chip-3 { bottom: 13%; left: 1%; animation-delay: -4.6s; }
.visual-caption {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(242, 240, 232, 0.32);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(201, 245, 107, 0.07), transparent 46%);
  transition: background 0.2s linear;
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-style: italic;
  color: rgba(242, 240, 232, 0.28);
  white-space: nowrap;
  padding-right: 0.5em;
}
.marquee-track i { color: var(--accent); font-style: normal; padding-inline: 0.35em; }

/* ---------- Sections ---------- */
.section {
  width: var(--page);
  margin-inline: auto;
  padding-block: clamp(5rem, 12vh, 9rem);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(3rem, 8vh, 5rem);
}
.section-index {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.55rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.card {
  position: relative;
  padding: 2rem 2rem 2.4rem;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 65%);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:last-child { border-right: 1px solid var(--line); }
.card:hover { background: linear-gradient(180deg, rgba(201, 245, 107, 0.05), transparent 75%); }
.card-index {
  display: block;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
.card p {
  max-width: 24rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}
.card-rule {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.card:hover .card-rule { width: calc(100% + 2px); }

/* ---------- Statement ---------- */
.statement {
  position: relative;
  width: var(--page);
  margin-inline: auto;
  padding-block: clamp(5rem, 12vh, 9rem);
  border-top: 1px solid var(--line);
}
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.statement h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.statement-copy p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: var(--muted);
}
.statement-copy p + p { margin-top: 1.4rem; }
.statement-sign {
  font-size: 0.66rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong) !important;
}
.statement-sign span { color: var(--accent); padding-inline: 0.3em; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-block: clamp(6rem, 15vh, 11rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(42rem 30rem at 50% 30%, rgba(201, 245, 107, 0.075), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
}
.cta-inner {
  width: var(--page);
  margin-inline: auto;
  text-align: center;
}
.cta h2 {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 7.2vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.022em;
}
.cta-lead {
  margin: 1.5rem auto 0;
  max-width: 30rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.form-block--center {
  margin-inline: auto;
  max-width: 34rem;
  text-align: left;
}
.form-block--center .form-note { padding-left: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  width: var(--page);
  margin-inline: auto;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink);
}
.brand-mark--small { width: 26px; height: 26px; }
.footer-note { flex: 1; text-align: center; }
.footer-copy { font-variant-numeric: tabular-nums; }

/* ---------- Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: clamp(7rem, 14vh, 9rem); }
  .hero-visual { display: none; }
  .hero-copy { max-width: 44rem; }
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .section-index { padding-top: 0; }
  .cards { grid-template-columns: 1fr; border-top: 0; }
  .card { border-right: 1px solid var(--line); }
  .card-index { margin-bottom: 2rem; }
  .statement-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 620px) {
  :root { --page: calc(100% - 2.5rem); }
  .site-header { padding-inline: 1.25rem; }
  .brand-word { font-size: 0.82rem; }
  .header-status { padding: 0.4rem 0.7rem; font-size: 0.6rem; }
  .field-row { flex-direction: column; gap: 0.4rem; border-radius: 22px; padding: 0.45rem; }
  .field-row input { width: 100%; padding: 0.9rem 1rem; text-align: center; }
  .field-row button { width: 100%; padding: 0.95rem 1.1rem; }
  .form-note, .form-status { padding-left: 0.4rem; text-align: center; }
  .form-block--center .form-note { padding-left: 0.4rem; }
  .hero-meta { gap: 0.4rem 1.2rem; font-size: 0.62rem; }
  .site-footer { justify-content: center; text-align: center; }
  .footer-note { flex-basis: 100%; order: 3; }
}

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