:root {
  --navy: #0b2540;
  --void: #061018;
  --slate: #0a1826;
  --panel: #0f2236;
  --deep: #0e3a5f;
  --blue: #1d6fa5;
  --teal: #1f8a8a;
  --mint: #7fd1b9;
  --mint-dim: #9fd3c7;
  --green: #3f9b5a;
  --signal: #e24a3b;
  --ink: #e8f0f4;
  --muted: #8ea4b5;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(127, 209, 185, 0.35);
  --white: #ffffff;
  --radius: 4px;
  --wrap: 1120px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--void);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

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

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #b7efe0;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--mint);
  color: var(--navy);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip:focus,
.skip:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

/* Atmosphere */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  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'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  background: rgba(6, 16, 24, 0.72);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.wordmark {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.92rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--mint);
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #dbe7ef;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary,
.nav-cta {
  background: linear-gradient(90deg, var(--teal), var(--green));
  color: var(--white);
  border-color: transparent;
}

.btn-primary:hover,
.nav-cta:hover {
  filter: brightness(1.08);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: max(640px, 100svh);
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 56px) 0 64px;
  background: #061018;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 48%;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(105deg,
      rgba(6, 16, 24, 0.94) 0%,
      rgba(6, 16, 24, 0.86) 26%,
      rgba(6, 16, 24, 0.58) 48%,
      rgba(6, 16, 24, 0.22) 68%,
      rgba(6, 16, 24, 0.12) 100%),
    linear-gradient(180deg,
      rgba(6, 16, 24, 0.42) 0%,
      rgba(6, 16, 24, 0.12) 28%,
      rgba(6, 16, 24, 0.28) 62%,
      rgba(6, 16, 24, 0.82) 100%);
}

.hero-content {
  position: relative;
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin-bottom: 28px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.kicker .sep {
  margin: 0 0.85em;
  color: rgba(127, 209, 185, 0.55);
  letter-spacing: 0;
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint-dim);
}

.rec::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(226, 74, 59, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(226, 74, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 74, 59, 0); }
}

.hero h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(2.15rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 14px;
  text-shadow: 0 2px 28px rgba(6, 16, 24, 0.55);
}

.byline {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-dim);
  margin: 0 0 28px;
  text-shadow: 0 1px 16px rgba(6, 16, 24, 0.45);
}

.byline a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 209, 185, 0.45);
}

.byline a:hover {
  color: #b7efe0;
  border-bottom-color: var(--mint);
}

.hero h1 em {
  font-style: normal;
  color: var(--mint);
}

@media (min-width: 900px) {
  .hero h1 em {
    white-space: nowrap;
  }
}

.lede {
  font-size: 1.12rem;
  max-width: 42rem;
  color: #e4edf2;
  margin-bottom: 36px;
  text-shadow: 0 1px 16px rgba(6, 16, 24, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(7.5rem, 0.55fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 22px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 980px;
}

.tl-node {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tl-node:last-child {
  text-align: right;
  align-items: flex-end;
}

.tl-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  line-height: 1.3;
}

.tl-copy {
  font-size: 0.92rem;
  color: #c3d3dd;
  max-width: 34ch;
}

.tl-track {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--green));
  width: 100%;
  min-width: 0;
  margin-top: 0.55em;
}

.tl-track::before,
.tl-track::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(127, 209, 185, 0.18);
}

.tl-track::before { left: 0; }
.tl-track::after { right: 0; }

/* Sections */
section {
  padding: 88px 0;
}

.section-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 16px;
}

h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 22px;
}

.prose {
  max-width: 68ch;
}

.prose p {
  color: #c9d7e0;
  font-size: 1.05rem;
  margin-bottom: 1.15em;
}

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

.story {
  background: var(--slate);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}


.affiliation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 32px;
  padding: 16px 18px;
  max-width: 68ch;
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: 6px;
  background: rgba(6, 16, 24, 0.28);
}

.affiliation-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  white-space: nowrap;
}

.affiliation p:last-child {
  color: #c9d7e0;
  font-size: 0.98rem;
  margin: 0;
}

.affiliation a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 209, 185, 0.45);
}

.affiliation a:hover {
  color: #b7efe0;
  border-bottom-color: var(--mint);
}

.mark {
  color: var(--mint);
  font-weight: 600;
}

/* Pillars */
.pillars {
  background: var(--void);
}

.pillar-head {
  margin-bottom: 36px;
  max-width: 44rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 22px 28px;
  border-top: 3px solid var(--blue);
  min-height: 100%;
}

.card:nth-child(2) { border-top-color: var(--teal); }
.card:nth-child(3) { border-top-color: var(--green); }
.card:nth-child(4) { border-top-color: var(--mint); }

.card-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
}

.card h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.25;
}

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

/* Village / producers */
.village {
  background:
    linear-gradient(180deg, rgba(11, 37, 64, 0.55), rgba(6, 16, 24, 0.2)),
    var(--navy);
  border-top: 1px solid var(--line);
}


.still {
  width: min(1240px, calc(100% - 48px));
  margin: 56px auto 0;
}

.still-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #07111c;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.32);
}

.still-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 48%;
  display: block;
}

.still figcaption {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.still-label {
  flex: 0 0 auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  white-space: nowrap;
}

.producers {
  background: var(--slate);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.stat-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Form */
.join {
  position: relative;
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(31, 138, 138, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy), var(--deep) 55%, #0f4a4f);
  border-top: 1px solid var(--line);
}

.join-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.form-card {
  background: rgba(6, 16, 24, 0.45);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  backdrop-filter: blur(8px);
}

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

.fields {
  display: grid;
  gap: 18px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint-dim);
  margin-bottom: 8px;
}

.req {
  color: var(--mint);
}

input,
textarea {
  width: 100%;
  background: rgba(6, 16, 24, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #6d8290;
}

input:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(127, 209, 185, 0.18);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 6px;
}

.form-actions button {
  min-width: 180px;
}

.fallback {
  color: #c9d7e0;
  font-size: 0.92rem;
}

.fallback a {
  color: var(--mint);
}

/* Footer */
.footer {
  background: #071a2e;
  color: #8ea4b5;
  font-size: 0.9rem;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer a {
  color: #b7c9d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 201, 212, 0.35);
}

.footer a:hover {
  color: var(--white);
  border-bottom-color: var(--mint);
}

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

.footer p {
  max-width: 44rem;
  line-height: 1.55;
}

/* Thanks */
.thanks-main {
  min-height: calc(100vh - var(--nav-h) - 90px);
  display: grid;
  place-items: center;
  padding: 80px 0;
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(31, 138, 138, 0.2), transparent 55%),
    linear-gradient(180deg, var(--navy), var(--void));
}

.thanks-card {
  max-width: 640px;
}

.thanks-card h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 22px;
}

.thanks-card p {
  color: #c9d7e0;
  font-size: 1.08rem;
  margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .split,
  .join-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
  .tl-node:last-child {
    text-align: left;
    align-items: flex-start;
  }
  .tl-track {
    width: 100%;
    max-width: 240px;
  }
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 40px) 0 48px;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .hero-media img {
    object-position: 68% 40%;
  }
  section {
    padding: 68px 0;
  }
}

@media (max-width: 720px) {
  .still {
    width: min(var(--wrap), calc(100% - 32px));
    margin-top: 40px;
  }
  .still figcaption {
    flex-direction: column;
    gap: 6px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }
  .row {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 22px 18px;
  }
  .hero h1 {
    max-width: none;
  }
  .hero-content {
    width: min(var(--wrap), calc(100% - 32px));
  }
  .kicker {
    gap: 8px 14px;
  }
  .kicker .sep {
    display: none;
  }
  .hero-actions {
    margin-bottom: 36px;
  }
  .hero {
    padding: calc(var(--nav-h) + 150px) 0 40px;
  }
  .hero-media img {
    object-position: 70% 32%;
  }
  .hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(6, 16, 24, 0.2) 0%,
        rgba(6, 16, 24, 0.28) 18%,
        rgba(6, 16, 24, 0.72) 42%,
        rgba(6, 16, 24, 0.92) 68%,
        rgba(6, 16, 24, 0.96) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec::before { animation: none; }
}
