:root {
  --graphite: #334052;
  --graphite-deep: #243041;
  --graphite-ink: #1a2433;
  --fog: #f5f5f7;
  --fog-muted: rgba(245, 245, 247, 0.62);
  --fog-soft: rgba(245, 245, 247, 0.38);
  --line: rgba(245, 245, 247, 0.12);
  --red: #ff2d2d;
  --green: #2bd44a;
  --font-sans: "Sora", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body.page-home {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fog);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--graphite-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

body.site-locked > :not(.site-gate):not(script):not(link):not(style) {
  visibility: hidden;
  pointer-events: none;
}

.site-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(90, 120, 160, 0.22), transparent 55%),
    linear-gradient(165deg, #3a4a5e 0%, var(--graphite) 45%, var(--graphite-ink) 100%);
}

body.site-locked .site-gate {
  display: flex;
}

.site-gate-card {
  width: min(24rem, 100%);
  text-align: center;
}

.site-gate-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-soft);
}

.site-gate-title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-gate-copy {
  margin: 0.85rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--fog-muted);
}

.site-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.site-gate-form input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 36, 51, 0.55);
  color: var(--fog);
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
}

.site-gate-form input::placeholder {
  color: var(--fog-soft);
}

.site-gate-form input:focus {
  border-color: rgba(245, 245, 247, 0.35);
}

.site-gate-form .btn {
  width: 100%;
}

.site-gate-error {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: #ff8a8a;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(90, 120, 160, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(43, 212, 74, 0.05), transparent 55%),
    radial-gradient(ellipse 45% 35% at 10% 80%, rgba(255, 45, 45, 0.05), transparent 50%),
    linear-gradient(165deg, #3a4a5e 0%, var(--graphite) 38%, var(--graphite-deep) 72%, var(--graphite-ink) 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
}

.mark {
  display: none;
}

.mark-pulse {
  width: 52px;
  height: auto;
  opacity: 0.95;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-nav a {
  color: var(--fog-muted);
  transition: color 0.2s ease;
}

.top-nav a:hover {
  color: var(--fog);
}

.top-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fog) !important;
}

.hero {
  min-height: 100svh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.5rem 2.5rem;
  gap: 0;
  overflow: hidden;
}

.brand {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--fog);
  opacity: 0;
  filter: blur(8px);
  animation: brandIn 0.85s ease-out 0.15s forwards;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--fog-muted);
  opacity: 0;
  transform: translateY(10px);
  animation: riseIn 0.7s ease-out 0.55s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.85rem;
  opacity: 0;
  transform: translateY(10px);
  animation: riseIn 0.7s ease-out 0.75s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--fog);
  color: var(--graphite-ink);
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fog);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(245, 245, 247, 0.28);
}

.hero-pulse {
  width: min(480px, 78vw);
  margin-top: clamp(2rem, 6vh, 3.5rem);
  opacity: 0;
  animation: riseIn 0.5s ease-out 0.35s forwards;
}

.inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4rem;
  text-align: left;
}

.inner-back {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.inner-back a {
  color: var(--fog-muted);
}

.inner-back a:hover {
  color: var(--fog);
}

.inner h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.top-nav a[aria-current="page"] {
  color: var(--fog);
}

.hero-pulse-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wipe-rect {
  animation: wipeOpen 1.5s linear 0.45s forwards;
}

.pulse-dot {
  opacity: 0;
  animation: dotIn 0.4s ease-out 1.85s forwards;
}

.section {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 7.5rem) 1.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-soft);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-copy {
  margin: 1.1rem auto 0;
  max-width: 32rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--fog-muted);
}

.section-note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fog-soft);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--fog-soft);
}

.footer-meta a:hover {
  color: var(--fog);
}

@keyframes brandIn {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wipeOpen {
  from { width: 0; }
  to { width: 72px; }
}

@keyframes dotIn {
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .top-nav a:not(.top-cta) {
    display: none;
  }

  .hero {
    padding-top: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .lede,
  .cta-row,
  .hero-pulse,
  .wipe-rect,
  .pulse-dot {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .wipe-rect {
    width: 72px;
  }

  html {
    scroll-behavior: auto;
  }
}
