:root {
  --ink: #03070b;
  --ink-soft: #071018;
  /* Deep teal-green matching intro network glow */
  --teal-deep: #041612;
  --teal-mid: #062821;
  --teal-glow: #0a3d34;
  --panel: rgba(6, 40, 33, 0.78);
  --cyan: #00e5ff;
  --cyan-soft: #67f0ff;
  --gold: #ffb300;
  --gold-soft: #ffd56a;
  --gold-light: #ffe39a;
  --text: #ffffff;
  --muted: #ffffff;
  --line: rgba(0, 229, 255, 0.18);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Sora", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.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;
}

/* Opening intro — Drive footage, then continuous dissolve into the live site */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: transparent; /* let site atmosphere show through during handoff */
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  pointer-events: auto;
}

.site-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-intro__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #03070b;
  image-rendering: auto;
  opacity: 1;
  will-change: opacity;
  /* No scale on handoff — keeps network registered to atmosphere__photo */
  transition: opacity 0.7s cubic-bezier(0.33, 0.1, 0.25, 1);
}

/* Dissolve into the locked network plate underneath (same image/crop) */
.site-intro.is-handoff .site-intro__video {
  opacity: 0;
}

.site-intro.is-handoff {
  pointer-events: none;
}

/* Brand visible from first paint — site opens on AccessAI */
.site-intro__brand {
  position: absolute;
  left: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(3.5rem, 12vh, 6.5rem);
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 8.5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--gold-light);
  text-shadow:
    0 0 28px rgba(255, 179, 0, 0.55),
    0 0 64px rgba(255, 179, 0, 0.28);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.site-intro.is-handoff .site-intro__brand {
  opacity: 0;
  transform: translateY(0.4rem);
}

.site-intro__skip {
  position: absolute;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 2;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(4, 22, 18, 0.62);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-intro__skip:hover,
.site-intro__skip:focus-visible {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  outline: none;
}

body.is-intro {
  overflow: hidden;
}

body.is-intro .site-header,
body.is-intro main,
body.is-intro .site-footer {
  opacity: 0;
}

/* During handoff the page is already live under the dissolving video */
body.is-intro-handoff {
  overflow: hidden;
}

body.is-intro-handoff .site-header,
body.is-intro-handoff main,
body.is-intro-handoff .site-footer,
body:not(.is-intro):not(.is-intro-handoff) .site-header,
body:not(.is-intro):not(.is-intro-handoff) main,
body:not(.is-intro):not(.is-intro-handoff) .site-footer {
  opacity: 1;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero text arrives with the dissolve — not after a long beat */
body.is-intro-handoff .hero .reveal {
  transition-duration: 0.7s;
  transition-delay: calc(40ms + var(--d, 0) * 60ms);
}

@media (prefers-reduced-motion: reduce) {
  .site-intro {
    display: none !important;
  }

  body.is-intro {
    overflow: auto;
  }

  body.is-intro .site-header,
  body.is-intro main,
  body.is-intro .site-footer {
    opacity: 1;
  }

  .site-intro__video {
    transition: none;
  }
}

/* Full-bleed cinematic network atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, #0a1a24 0%, var(--ink) 68%);
}

.atmosphere__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Must match .site-intro__video exactly for 1:1 registration */
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 1;
  /* No breathe/scale — would break intro→site network lock */
  transform: none;
}

.atmosphere__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 11, 0.12) 0%, rgba(3, 7, 11, 0.28) 55%, rgba(3, 7, 11, 0.72) 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Only after handoff, ease vignette in so readability improves without shifting the plate */
body:not(.is-intro):not(.is-intro-handoff) .atmosphere__vignette {
  opacity: 1;
}

/* From Mission downward: darkened teal-green atmosphere for readable text */
body.is-content-dark .atmosphere__photo {
  filter: brightness(0.48) saturate(1.15) hue-rotate(-8deg);
  transition: filter 0.55s var(--ease);
}

body:not(.is-content-dark) .atmosphere__photo {
  filter: none;
  transition: filter 0.55s var(--ease);
}

body.is-content-dark .atmosphere__vignette {
  background:
    linear-gradient(
      180deg,
      rgba(4, 28, 24, 0.52) 0%,
      rgba(4, 22, 18, 0.78) 45%,
      rgba(3, 16, 14, 0.92) 100%
    ),
    radial-gradient(
      ellipse 80% 60% at 50% 20%,
      rgba(0, 90, 72, 0.22) 0%,
      transparent 70%
    );
  opacity: 1;
}

.atmosphere__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.55s var(--ease), filter 0.55s var(--ease);
}

/* Particles only after the locked dissolve completes */
body:not(.is-intro):not(.is-intro-handoff) .atmosphere__canvas {
  opacity: 0.4;
}

body:not(.is-intro):not(.is-intro-handoff).is-content-dark .atmosphere__canvas {
  opacity: 0.22;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes photo-breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px);
  background: rgba(3, 7, 11, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(4, 24, 20, 0.88);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--gold-light);
  text-shadow: 0 0 22px rgba(255, 179, 0, 0.35);
}

.nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
}

.site-header > .btn {
  margin-left: auto;
}

@media (min-width: 800px) {
  .nav {
    display: flex;
  }

  .site-header > .btn {
    margin-left: 0;
  }
}

/* Buttons — cyan glow, not lime */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(180deg, #2aefff 0%, var(--cyan) 100%);
  color: #031018;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.35),
    0 0 28px rgba(0, 229, 255, 0.35);
}

.btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.55),
    0 0 40px rgba(0, 229, 255, 0.55);
}

.btn--ghost {
  background: rgba(0, 229, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
}

/* Hero — brand-first over full-bleed network visual */
.hero {
  min-height: min(100vh, 56rem);
  display: grid;
  align-items: end;
  justify-items: start;
  padding:
    clamp(4.5rem, 14vh, 8rem)
    clamp(1.25rem, 4vw, 2.5rem)
    clamp(3.5rem, 10vh, 6rem);
}

.hero__copy {
  max-width: 40rem;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 8.5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--gold-light);
  text-shadow:
    0 0 28px rgba(255, 179, 0, 0.55),
    0 0 64px rgba(255, 179, 0, 0.28),
    0 0 90px rgba(0, 229, 255, 0.12);
}

.hero__headline {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.6vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: none;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: none;
}

.section__title {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--gold-soft);
  text-shadow: 0 0 28px rgba(255, 179, 0, 0.25);
}

.section__lede {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section__lede p {
  margin: 0 0 0.9rem;
}

.section__lede p:last-child {
  margin-bottom: 0;
}

.section--mission,
.section--how,
.section--who,
.section--cta {
  /* Teal-green reading scrim — same family as intro network */
  background: rgba(4, 28, 24, 0.78);
}

.section--mission {
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(6, 48, 40, 0.58) 0%,
    rgba(4, 28, 24, 0.82) 100%
  );
}

.section--how {
  background: linear-gradient(
    180deg,
    rgba(4, 32, 28, 0.8) 0%,
    rgba(5, 36, 42, 0.84) 55%,
    rgba(4, 26, 22, 0.86) 100%
  );
}

.section--who {
  background: linear-gradient(
    180deg,
    rgba(4, 26, 22, 0.84) 0%,
    rgba(4, 30, 34, 0.86) 100%
  );
}

.section--cta {
  background: linear-gradient(
    180deg,
    rgba(4, 30, 34, 0.86) 0%,
    rgba(3, 22, 20, 0.94) 100%
  );
}

.steps {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.step__index {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: none;
}

.step__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
}

.step__body {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.audience {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}

.audience__item {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.audience__item strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
}

.audience__item span {
  color: var(--muted);
}

.section--cta {
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.section__inner--cta {
  max-width: 36rem;
  padding: clamp(2rem, 5vw, 3rem) 0 0;
  border-top: 1px solid var(--line);
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 560px) {
  .access-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.access-form input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.05);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.access-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.access-form input:focus {
  border-color: rgba(0, 229, 255, 0.7);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.form-note {
  margin: 0.85rem 0 0;
  color: #ffffff;
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2.25rem;
  border-top: 1px solid var(--line);
  background: rgba(3, 20, 18, 0.88);
}

.wordmark--footer {
  font-size: 1rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal[data-delay="0"] {
  --d: 0;
}
.hero .reveal[data-delay="1"] {
  --d: 1;
}
.hero .reveal[data-delay="2"] {
  --d: 2;
}
.hero .reveal[data-delay="3"] {
  --d: 3;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atmosphere__photo {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-links a + a {
  margin-left: 1.25rem;
}

/* "Start a request" button under the How it works steps */
.section--how .cta-group {
  margin-top: 2.25rem;
}

#open-tool {
  margin-top: 1.75rem;
}

.form-note.is-error {
  color: var(--gold-light);
}

[hidden] {
  display: none !important;
}

.signout-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
