:root {
  --bg: #fbf8f1;
  --paper: transparent;
  --line: rgba(39, 48, 80, 0.1);
  --text: #263154;
  --muted: #6c7591;
  --accent: #cf7b5e;
  --accent-deep: #b8654d;
  --gold: #ebcc7a;
  --rose: #ddb1b9;
  --shadow: none;
  --radius: 24px;
  --font: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

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

/* -------------------------------------------------- */
/* Layout                                              */
/* -------------------------------------------------- */

.page-shell {
  position: relative;
  overflow: clip;
}


.site-header,
.section,
.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

section {
  scroll-margin-top: 160px;
}

/* -------------------------------------------------- */
/* Header                                              */
/* -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.site-header--entering,
.site-header--hidden {
  transform: translateY(calc(-100% - 30px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.brand__text {
  font-size: 1.05rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

/* -------------------------------------------------- */
/* Buttons                                             */
/* -------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.button--primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(184, 101, 77, 0.2);
}

.button--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.button--full {
  width: 100%;
}

/* -------------------------------------------------- */
/* Typography                                          */
/* -------------------------------------------------- */

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.15;
}

/* -------------------------------------------------- */
/* Hero                                                */
/* -------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 32px;
  align-items: end;
  padding-top: 96px;
  padding-bottom: 80px;
}

.hero__image {
  width: 100%;
  mask-image: radial-gradient(ellipse at 100% 100%, transparent 0%, black 14%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 100%, transparent 0%, black 14%);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px;
}

.hero__lead {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32ch;
}

.section__lead {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* -------------------------------------------------- */
/* Steps                                               */
/* -------------------------------------------------- */

.section--steps h2 {
  margin-bottom: 8px;
}

.section--steps .section__lead {
  margin-bottom: 32px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.step-card__image {
  width: min(200px, 80%);
  margin: 0 auto 16px;
}

.step-card h3 {
  margin-bottom: 8px;
}

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

/* -------------------------------------------------- */
/* Flare                                               */
/* -------------------------------------------------- */

.section--flare {
  text-align: center;
  padding-bottom: 120px;
}

.section--flare h2 {
  margin-bottom: 8px;
}

.section--flare .section__lead {
  margin-bottom: 32px;
}

.flare-video {
  display: block;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius);
}

/* -------------------------------------------------- */
/* Rights                                              */
/* -------------------------------------------------- */

.section--rights {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.rights__image {
  width: min(420px, 70%);
  margin-inline: auto;
}

.rights__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.rights__copy .section__lead {
  margin-bottom: 16px;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  text-align: left;
}

.rights-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rights-card h3 {
  margin-bottom: 6px;
}

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

/* -------------------------------------------------- */
/* Organizations                                       */
/* -------------------------------------------------- */

.section--org {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.org__image {
  width: min(680px, 100%);
  margin-inline: auto;
}

.org__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 480px;
}

.org__copy h2 {
  line-height: 1.05;
}

.org-form-card {
  width: 100%;
  max-width: 480px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

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

textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea:focus {
  outline: none;
  border-color: rgba(207, 123, 94, 0.45);
  box-shadow: 0 0 0 3px rgba(207, 123, 94, 0.08);
}

.org__alt {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.org__alt a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------------------------------------------------- */
/* Waitlist                                            */
/* -------------------------------------------------- */

.waitlist-layout {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.waitlist-copy {
  padding-top: 16px;
}

.waitlist-copy h2 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.waitlist-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* -------------------------------------------------- */
/* Form                                                */
/* -------------------------------------------------- */

form {
  display: grid;
  gap: 14px;
}

form[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

label span {
  color: var(--muted);
  font-weight: 400;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(207, 123, 94, 0.45);
  box-shadow: 0 0 0 3px rgba(207, 123, 94, 0.08);
}

.cf-turnstile {
  margin-top: 4px;
}

.form-status {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.form-status[hidden] {
  display: none;
}

.form-status h3 {
  font-size: 1.3rem;
}

.form-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* -------------------------------------------------- */
/* Footer                                              */
/* -------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}

.footer__info p {
  margin: 0;
}

/* -------------------------------------------------- */
/* Reveal animations                                   */
/* -------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

html.js img[data-reveal],
html.js video[data-reveal] {
  transition: opacity 2.4s ease, transform 2.4s ease;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------- */
/* Responsive                                          */
/* -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-header {
    transition: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 999px;
    padding: 10px 18px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.88rem;
  }

  .site-header > .button {
    display: none;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 24px;
    padding-bottom: 8px;
    gap: 16px;
  }

  .hero__copy {
    align-items: center;
    order: 1;
    padding-bottom: 0;
    gap: 14px;
  }

  .hero__lead {
    max-width: 40ch;
    font-size: 0.92rem;
    margin: 0;
  }

  .hero__image {
    order: 2;
    width: min(440px, 92%);
    margin-inline: auto;
  }

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

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

  .section--rights {
    gap: 28px;
  }

  .section--org {
    gap: 24px;
  }

  .org__image {
    width: min(360px, 70%);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .waitlist-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .section--flare {
    padding-bottom: 56px;
  }

  .footer__info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 24px, 1080px);
  }

  .section {
    padding: 32px 0;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero {
    padding-top: 16px;
    gap: 12px;
  }

  .hero__copy {
    gap: 12px;
  }

  .hero__image {
    width: min(320px, 80%);
  }

  .step-card,
  .rights-card,
  .waitlist-card,
  .org-form-card {
    border-radius: 18px;
  }

  .waitlist-card {
    padding: 22px 18px;
  }

  .org-form-card {
    padding: 18px 16px;
  }

  .section--org {
    gap: 20px;
  }
}
