:root {
  --ink: #0b1f17;
  --ink-soft: #122a20;
  --ink-mid: #1a3a2c;
  --mist: #c8ddd2;
  --mist-soft: #a8c4b4;
  --celadon: #7eb89a;
  --celadon-bright: #9fd4b4;
  --copper: #c4784a;
  --copper-hot: #d4895c;
  --copper-glow: rgba(196, 120, 74, 0.35);
  --paper: #e8f0eb;
  --paper-dim: #c5d6cc;
  --white: #f4faf6;
  --danger: #e8a090;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --max: 68rem;
  --narrow: 40rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--celadon-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--copper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(11, 31, 23, 0.92), rgba(11, 31, 23, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}

.logo:hover {
  color: var(--celadon-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
}

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

.nav-cta {
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(196, 120, 74, 0.55);
  color: var(--copper-hot) !important;
  border-radius: 2px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-cta:hover {
  background: rgba(196, 120, 74, 0.15);
  border-color: var(--copper);
  color: var(--white) !important;
}

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

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 8vh, 5.5rem);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(126, 184, 154, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(196, 120, 74, 0.18), transparent 50%),
    radial-gradient(ellipse 80% 50% at 60% 85%, rgba(26, 58, 44, 0.9), transparent 60%),
    linear-gradient(165deg, #071510 0%, #0b1f17 40%, #143528 100%);
}

.hero-glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  left: -10%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(126, 184, 154, 0.14), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8%, -6%) scale(1.08); }
}

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

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-headline {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--mist);
}

.hero-support {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: 1.1rem;
  color: var(--paper-dim);
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: var(--copper);
  color: var(--ink);
  box-shadow: 0 0 0 0 var(--copper-glow);
}

.btn-primary:hover {
  background: var(--copper-hot);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--copper-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--mist);
  box-shadow: inset 0 0 0 1px rgba(200, 221, 210, 0.35);
}

.btn-ghost:hover {
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(200, 221, 210, 0.7);
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Sections */

.section {
  padding: var(--space-2xl) clamp(1.25rem, 5vw, 3.5rem);
  position: relative;
}

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

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

.section-title {
  margin: 0 0 1.25rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.lead {
  margin: 0 0 var(--space-lg);
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--paper-dim);
}

/* Bet / contrast */

.bet {
  background:
    linear-gradient(180deg, transparent, rgba(18, 42, 32, 0.5) 20%, var(--ink-soft));
}

.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: var(--space-md);
}

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

.contrast-col h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
}

.contrast-against h3 {
  color: var(--mist-soft);
}

.contrast-for h3 {
  color: var(--celadon-bright);
}

.contrast-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contrast-col li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.35rem;
  border-top: 1px solid rgba(200, 221, 210, 0.12);
  color: var(--paper-dim);
}

.contrast-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(200, 221, 210, 0.35);
}

.contrast-for li::before {
  background: var(--celadon);
}

.contrast-for li {
  color: var(--paper);
}

/* How / chapters */

.how {
  background: var(--ink-soft);
}

.chapters {
  display: grid;
  gap: var(--space-xl);
}

.chapter-num {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.chapter h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--white);
}

.chapter > p {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--paper-dim);
}

.chapter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
  max-width: 36rem;
}

@media (max-width: 560px) {
  .chapter-list {
    grid-template-columns: 1fr;
  }
}

.chapter-list li {
  padding-left: 1rem;
  position: relative;
  color: var(--mist);
  font-size: 0.98rem;
}

.chapter-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--celadon);
}

.lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

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

.lane {
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(126, 184, 154, 0.35);
}

.lane h4 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--celadon-bright);
}

.lane p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 1rem;
}

/* You / roles */

.you {
  background:
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(196, 120, 74, 0.08), transparent 50%),
    var(--ink);
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: var(--space-xl);
}

@media (max-width: 800px) {
  .roles {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.role h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--white);
}

.role p {
  margin: 0;
  color: var(--paper-dim);
}

.pullquote {
  margin: 0;
  max-width: 36rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--copper);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--mist);
}

/* Refuse */

.refuse {
  background: var(--ink-mid);
}

.refuse .section-title {
  max-width: none;
}

.refuse-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}

.refuse-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(200, 221, 210, 0.12);
  font-size: 1.1rem;
  color: var(--paper);
}

.refuse-list li:first-child {
  border-top: 1px solid rgba(200, 221, 210, 0.12);
}

.refuse-note {
  margin: 0;
  max-width: 32rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--mist-soft);
}

/* Expect */

.expect {
  background:
    radial-gradient(ellipse 55% 45% at 10% 80%, rgba(126, 184, 154, 0.1), transparent 55%),
    var(--ink-soft);
}

.expect-steps {
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
  counter-reset: expect;
  display: grid;
  gap: 2rem;
  max-width: 40rem;
}

.expect-steps li {
  position: relative;
  padding-left: 3.25rem;
  counter-increment: expect;
}

.expect-steps li::before {
  content: counter(expect);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--celadon);
  border-radius: 50%;
}

.expect-steps h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
}

.expect-steps p {
  margin: 0;
  color: var(--paper-dim);
}

.expect-note {
  margin: 0;
  max-width: 36rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--celadon);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--mist);
}

/* Invite */

.invite {
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(126, 184, 154, 0.12), transparent 55%),
    var(--ink);
  padding-bottom: var(--space-2xl);
}

.invite-inner {
  max-width: 32rem;
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 0.5rem;
  padding: 1.75rem;
  background: rgba(18, 42, 32, 0.65);
  border: 1px solid rgba(126, 184, 154, 0.22);
  border-radius: 4px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: rgba(11, 31, 23, 0.75);
  border: 1px solid rgba(200, 221, 210, 0.2);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(200, 221, 210, 0.35);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--celadon);
  box-shadow: 0 0 0 3px rgba(126, 184, 154, 0.18);
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--danger);
}

.form-status.is-ok {
  color: var(--celadon-bright);
}

.invite-success {
  margin-top: 1.5rem;
  padding: 1.75rem;
  background: rgba(126, 184, 154, 0.1);
  border: 1px solid rgba(126, 184, 154, 0.35);
  border-radius: 4px;
}

.invite-success h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--celadon-bright);
}

.invite-success p {
  margin: 0;
  color: var(--paper-dim);
}

.invite-form[hidden],
.invite-success[hidden] {
  display: none;
}

/* Footer */

.site-footer {
  padding: var(--space-xl) clamp(1.25rem, 5vw, 3.5rem) var(--space-lg);
  border-top: 1px solid rgba(200, 221, 210, 0.1);
  background: #071510;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
}

.footer-tag {
  margin: 0;
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--mist-soft);
}

.footer-tag a {
  color: var(--celadon);
  text-decoration: none;
  font-weight: 600;
}

.footer-tag a:hover {
  color: var(--white);
}

.footer-link {
  font-weight: 600;
  color: var(--copper-hot);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--white);
}

/* Reveal motion */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.hero .reveal.delay-1 { transition-delay: 0.12s; }
.hero .reveal.delay-2 { transition-delay: 0.24s; }
.hero .reveal.delay-3 { transition-delay: 0.36s; }

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

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

  .hero-glow {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
