:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-card: #141414;
  --ink: #f5f1e8;
  --ink-dim: #a8a39a;
  --ink-faint: #5a564f; /* AA-fail on --bg; reserve for .mono captions only */
  --rule: #1f1d1a;
  --gold: #c9a36b;
  --gold-soft: #d4b482;
  --gold-deep: #8a6d3f;

  --max-w: 1200px;
  --gutter: clamp(1.5rem, 4vw, 3rem);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  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;
}

img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--bg); }

.container { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.italic-gold { font-family: var(--font-display); font-style: italic; color: var(--gold); font-weight: 500; }
.brand-mark { color: var(--gold); width: 22px; height: 22px; flex-shrink: 0; }
.brand-mark--lg { width: 36px; height: 36px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); background: rgba(10, 10, 10, 0.88); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav__wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink);
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  border: 1px solid var(--gold-deep);
  color: var(--gold) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav__cta:hover { background: var(--gold); color: var(--bg) !important; border-color: var(--gold); }

@media (max-width: 640px) {
  .nav__links { gap: 1.1rem; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__cta { padding: 0.7rem 1.25rem; } /* enlarge tap target on mobile */
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: clamp(6rem, 12vh, 9rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero__video {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 1150px); /* anchor right, subject ~2/3 across at desktop widths */
  object-fit: cover;
  object-position: 50% 35%;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(to right,
      var(--bg) 0%,
      rgba(10, 10, 10, 0.96) 28%,
      rgba(10, 10, 10, 0.6) 48%,
      rgba(10, 10, 10, 0.18) 70%,
      rgba(10, 10, 10, 0) 100%),
    linear-gradient(to bottom,
      rgba(10, 10, 10, 0.45) 0%,
      transparent 22%,
      transparent 68%,
      rgba(10, 10, 10, 0.7) 100%);
}
.hero__inner { width: 100%; }
.hero__text { max-width: 36rem; }

.hero__eyebrow { margin: 0 0 1.5rem; color: var(--gold); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.75rem;
  color: var(--ink);
  text-shadow: 0 1px 28px rgba(0, 0, 0, 0.55);
}
.hero__line { display: block; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--gold); }

.hero__sub {
  max-width: 32rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  margin: 0 0 2.25rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.cta {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cta--gold { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); }
.cta--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.cta__arrow { transition: transform 0.25s var(--ease); }
.cta:hover .cta__arrow { transform: translateX(3px); }

.hero__tag { margin: 1.75rem 0 0; color: var(--ink-dim); }

@media (max-width: 720px) {
  .hero__video { width: 100%; object-position: 70% 30%; }
  .hero__overlay {
    background:
      linear-gradient(to bottom,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.5) 35%,
        rgba(10, 10, 10, 0.78) 75%,
        rgba(10, 10, 10, 0.92) 100%);
  }
}

/* ── Section shared ──────────────────────────────────────────────── */
.section { padding-block: clamp(5rem, 12vh, 9rem); }
.section__eyebrow { color: var(--gold); margin: 0 0 1rem; }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ── Recognition ─────────────────────────────────────────────────── */
.recognition__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 880px) {
  .recognition__inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.recognition__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.recognition__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  transition: transform 0.3s var(--ease);
}
.recognition__item:hover { transform: translateX(0.75rem); }
.recognition__num { color: var(--gold); align-self: start; padding-top: 0.35rem; }
.recognition__item p { margin: 0; color: var(--ink); font-size: 1.08rem; }

/* ── Philosophy ──────────────────────────────────────────────────── */
.philosophy__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.philosophy__pull {
  margin: 0 0 2.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.philosophy__pull p { margin: 0; }
.philosophy__body { max-width: 620px; margin: 0 auto; text-align: left; color: var(--ink-dim); }
.philosophy__body p { margin: 0 0 1.25rem; font-size: 1.05rem; }
.philosophy__body p:last-child { margin-bottom: 0; }
.philosophy__close {
  margin: 3rem auto 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-dim);
}

/* ── Architecture ────────────────────────────────────────────────── */
.architecture__header { max-width: 780px; margin: 0 0 clamp(3rem, 6vh, 5rem); }
.architecture__intro { color: var(--ink-dim); font-size: 1.05rem; margin: 1.5rem 0 0; }

.surfaces {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 880px) {
  .surfaces { grid-template-columns: repeat(3, 1fr); }
}

.surface {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.surface:hover { transform: translateY(-2px); border-color: var(--gold-deep); background: #131210; }

.surface__num { color: var(--gold); margin: 0 0 1rem; }
.surface__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.surface__role { font-family: var(--font-display); font-style: italic; color: var(--gold); margin: 0 0 1.25rem; font-size: 0.98rem; }
.surface__body { color: var(--ink-dim); font-size: 0.98rem; margin: 0; }

/* ── Dashboard ───────────────────────────────────────────────────── */
.dashboard {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.dashboard__chrome {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  background: #100f0d;
}
.dashboard__dots { display: flex; gap: 0.4rem; }
.dashboard__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a2724;
  border: 1px solid #3a3631;
}
.dashboard__title { margin: 0; flex: 1; text-align: center; }
.dashboard__live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink-dim); }
.dashboard__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 163, 107, 0.7);
  animation: dashboard-pulse 2s infinite var(--ease);
}
@keyframes dashboard-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 163, 107, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(201, 163, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 163, 107, 0); }
}

.dashboard__body { padding: clamp(1.25rem, 3vw, 2rem); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem 1.1rem;
}
.stat__label { margin: 0 0 0.5rem; color: var(--ink-faint); }
.stat__value { margin: 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--ink); }

.pipeline {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.pipeline__step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.55rem 0.85rem;
  position: relative;
}
.pipeline__step + .pipeline__step::before {
  content: "→";
  position: absolute;
  left: -0.85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-family: var(--font-body);
}
.pipeline__step--active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 163, 107, 0.06);
  box-shadow: 0 0 0 0 rgba(201, 163, 107, 0.4);
  animation: dashboard-pulse 2s infinite var(--ease);
}

/* ── Close / Waitlist ────────────────────────────────────────────── */
.close { padding-top: 8rem; padding-bottom: clamp(5rem, 10vh, 8rem); }
.close__inner { max-width: 760px; margin: 0 auto; text-align: center; }

.close__pull {
  margin: 0 0 3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
}
.close__pull p { margin: 0; }

.close__ornament { display: flex; justify-content: center; margin: 0 0 3rem; }

.waitlist { max-width: 520px; margin: 0 auto; }
.waitlist__label { display: block; color: var(--gold); margin: 0 0 1rem; }

.waitlist__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s var(--ease);
}
.waitlist__row:focus-within { border-color: var(--gold); }

.waitlist__input {
  background: transparent;
  border: 0;
  padding: 0.85rem 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  width: 100%;
}
.waitlist__input::placeholder { color: var(--ink-faint); }

.waitlist__submit {
  background: transparent;
  color: var(--gold);
  padding: 0.85rem 0.5rem;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  border: 0;
  transition: color 0.2s var(--ease);
}
.waitlist__submit:hover { color: var(--gold-soft); }

.waitlist__caption { margin: 1rem 0 0; }
.waitlist__success { margin: 1.5rem 0 0; font-size: 1.1rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer__left { margin: 0; color: var(--ink-faint); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: var(--ink-faint); transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--ink-dim); }

/* ── Hero motion choreography ────────────────────────────────────── */
.hero__eyebrow,
.hero__line,
.hero__sub,
.hero .cta,
.hero__tag {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero.is-ready .hero__eyebrow { opacity: 1; transform: none; transition-delay: 0.05s; }
.hero.is-ready .hero__line:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.20s; }
.hero.is-ready .hero__line:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.35s; }
.hero.is-ready .hero__line:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.50s; }
.hero.is-ready .hero__sub { opacity: 1; transform: none; transition-delay: 0.70s; }
.hero.is-ready .cta { opacity: 1; transform: none; transition-delay: 0.85s; }
.hero.is-ready .hero__tag { opacity: 1; transform: none; transition-delay: 1.00s; }

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__line,
  .hero__sub,
  .hero .cta,
  .hero__tag {
    opacity: 1; transform: none; transition: none;
  }
}

/* ── Scroll-reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }

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

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