:root {
  --bg: #0e1518;
  --bg-lift: #152024;
  --ink: #edf1f0;
  --muted: #9aaca8;
  --soft: #6d807b;
  --line: rgba(237, 241, 240, 0.12);
  --accent: #c4a35a;
  --accent-deep: #9a7a35;
  --teal: #3d8f86;
  --glow: rgba(61, 143, 134, 0.22);
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Sora", "Helvetica Neue", sans-serif;
  --radius: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

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

.site-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 60% 40% at 50% 18%, rgba(61, 143, 134, 0.22), transparent 60%),
    #0e1518;
}

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

.site-gate-card {
  width: min(100%, 26rem);
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  background: rgba(14, 21, 24, 0.92);
  backdrop-filter: blur(10px);
  text-align: center;
}

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

.site-gate-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.05;
}

.site-gate-copy {
  margin: 0;
  color: var(--muted);
}

.site-gate-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.site-gate-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: #0a1012;
  color: var(--ink);
  font: inherit;
}

.site-gate-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: #14110a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-gate-form button:hover {
  background: #d4b56a;
}

.site-gate-error {
  margin: 0.85rem 0 0;
  color: #d98a7a;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 78% 12%, rgba(61, 143, 134, 0.18), transparent 58%),
    radial-gradient(ellipse 50% 40% at 12% 88%, rgba(196, 163, 90, 0.08), transparent 55%),
    linear-gradient(165deg, #0a1012 0%, #0e1518 42%, #121c20 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(237, 241, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 241, 240, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 21, 24, 0.78);
  backdrop-filter: blur(12px);
}

.topbar-brand {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.topbar-nav a:hover,
.topbar-nav a[aria-current="page"] {
  color: var(--ink);
}

.topbar-cta {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(196, 163, 90, 0.45);
  color: var(--accent) !important;
}

.topbar-cta:hover {
  background: rgba(196, 163, 90, 0.12);
}

.hero {
  position: relative;
  min-height: calc(100svh - 4.25rem);
  display: grid;
  align-items: end;
  padding: clamp(3rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(14, 21, 24, 0.55) 70%, var(--bg) 100%),
    radial-gradient(ellipse 55% 60% at 70% 40%, rgba(61, 143, 134, 0.2), transparent 70%),
    linear-gradient(115deg, transparent 40%, rgba(196, 163, 90, 0.06) 100%);
  animation: plane-in 1.4s ease-out both;
}

.hero-inner {
  position: relative;
  max-width: 42rem;
  animation: rise 0.9s ease-out 0.15s both;
}

.mark {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #14110a;
}

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

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(237, 241, 240, 0.3);
  background: rgba(237, 241, 240, 0.04);
}

.measure,
.for-whom,
.page {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 68rem;
  margin: 0 auto;
}

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

.measure h2,
.for-whom h2,
.page-hero h1,
.access-box h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.measure h2,
.for-whom h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 18ch;
}

.section-lead,
.page-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.pillars {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.pillars li {
  animation: rise 0.8s ease-out both;
}

.pillars li:nth-child(2) { animation-delay: 0.08s; }
.pillars li:nth-child(3) { animation-delay: 0.16s; }
.pillars li:nth-child(4) { animation-delay: 0.24s; }

.pillar-code {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.pillars h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.pillars p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-split p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(196, 163, 90, 0.35);
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

.page {
  max-width: 44rem;
  margin: 0 auto;
}

.page-hero {
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-body p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.check-list {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--teal);
}

.access-box {
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.access-box p {
  margin: 0 0 1.35rem;
}

.fineprint {
  margin-top: 1rem !important;
  font-size: 0.88rem;
  color: var(--soft) !important;
}

.fineprint a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
}

.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer-brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
}

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

.footer-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes plane-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
  }

  .section-split {
    grid-template-columns: 1fr;
  }
}

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

  .pillars {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
  }
}
