/* ============================================================
   HELM Health & Wellness | Design System
   ============================================================ */

:root {
  /* color */
  --bg:           #070d19;      /* very dark navy, page background */
  --bg-2:         #0b1322;      /* section bands */
  --bg-3:         #0f1828;      /* deepest input fill */
  --surface:      #131d30;      /* cards, form */
  --surface-2:    #1a2640;      /* card hover */
  --border:       rgba(255, 255, 255, 0.07);
  --border-2:     rgba(255, 255, 255, 0.14);

  --text:         #f3efe8;
  --text-2:       #c7c2b9;
  --text-mute:    #8a8d94;

  --accent:       #c8102e;      /* deep crimson, used only for CTA + heart */
  --accent-2:     #d11a32;
  --accent-soft:  rgba(200, 16, 46, 0.12);

  /* type */
  --font-serif:   'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:    'Geist', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;

  /* layout */
  --maxw:         1200px;
  --pad-x:        clamp(20px, 5vw, 48px);
  --radius:       14px;
  --radius-sm:    8px;

  /* motion */
  --ease:         cubic-bezier(.2,.7,.2,1);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* offset anchor jumps so the fixed nav (78px) does not cover section tops */
  scroll-padding-top: 56px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
  text-wrap: balance; /* even lines in headings, no lone last word */
}
/* prevent single-word last lines (widows) in body copy */
p, li, dd, blockquote { text-wrap: pretty; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}
.section__head--center .eyebrow { padding-left: 0; margin-top: 22px; }
.section__head--center .eyebrow::before {
  left: 50%;
  top: -16px;
  width: 1px;
  height: 14px;
  transform: translateX(-50%);
}
.accent { color: var(--text); }
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-2);
  line-height: 1.65;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --bh: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--bh);
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-indent: 0.12em; /* compensate trailing letter-spacing so the label is optically centered */
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--small { --bh: 40px; padding: 0 22px; font-size: 14px; }
.btn--block { width: 100%; }

/* Submitted (success) state: calm, no longer a CTA, with a green check */
.btn.is-submitted {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
  box-shadow: none;
  cursor: default;
  opacity: 1;
}
.btn.is-submitted:hover { transform: none; background: var(--surface-2); }
.btn__check {
  color: #34d399;
  font-weight: 700;
  margin-left: 2px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(200,16,46,.55);
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(225,29,59,.65);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

/* ============================================================
   Brand mark
   ============================================================ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.brand__mark {
  width: 52px; height: 52px;
  color: var(--text);
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.32em;
  padding-left: 2px;
}
.brand__tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 5px;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
/* Blur lives on a pseudo, NOT on .nav itself: backdrop-filter on .nav would make it
   the containing block for the position:fixed mobile menu, collapsing it. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 13, 25, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s var(--ease);
}
.nav.is-scrolled::before { background: rgba(7, 13, 25, 0.92); }
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s var(--ease);
  position: relative;
}
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: 78px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 28px var(--pad-x);
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a {
    width: 100%;
    padding: 18px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav__menu a.btn {
    margin-top: 20px;
    border-bottom: none;
    width: 100%;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
  /* layers, top to bottom: light left-darken for text, top/bottom darken, red ember, waves photo */
  background-image:
    linear-gradient(90deg, rgba(7, 13, 25, 0.62) 0%, rgba(7, 13, 25, 0.24) 45%, rgba(7, 13, 25, 0) 100%),
    linear-gradient(180deg, rgba(7, 13, 25, 0.45) 0%, rgba(7, 13, 25, 0) 30%, rgba(7, 13, 25, 0) 62%, rgba(5, 10, 22, 0.85) 100%),
    radial-gradient(circle at 88% 90%, rgba(120, 18, 36, 0.12) 0%, transparent 55%),
    image-set(url("assets/waves_background.webp") type("image/webp"), url("assets/waves_background.png") type("image/png"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* clean fade into the next section */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 78% 0 0 0;
  background: linear-gradient(180deg, rgba(5, 10, 22, 0) 0%, var(--bg) 100%);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 35% at 18% 28%, rgba(255, 255, 255, 0.025) 0%, transparent 60%);
}
.hero__inner {
  position: relative;
  max-width: 880px;
}
.hero__title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero__sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  margin-top: 44px;
  font-size: 13px;
  color: var(--text-mute);
  max-width: 720px;
}
.hero__bullets li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hero__bullets span {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text);
  font-weight: 500;
}

.hero__note {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-2);
}
.hero__note::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: clamp(44px, 4.5vw, 72px) 0;
  position: relative;
}
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__title {
  font-size: clamp(32px, 4.5vw, 54px);
  margin-bottom: 18px;
}
.section__lede {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   Services grid
   ============================================================ */
.services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }

.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.card__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.card:hover .card__icon {
  color: var(--text);
  border-color: var(--text);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-size: 22px;
  margin-bottom: 10px;
}
.card__copy {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.card__list li {
  font-size: 13.5px;
  color: var(--text-mute);
  padding-left: 16px;
  position: relative;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1.5px;
  background: var(--text-mute);
}
.card__foot {
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-mute);
}

/* ============================================================
   Approach (steps)
   ============================================================ */
.approach { background: var(--bg-2); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.steps::before {
  /* connecting line on desktop */
  content: '';
  position: absolute;
  left: 8%; right: 8%;
  top: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.step:hover { border-color: var(--border-2); transform: translateY(-3px); }
.step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p  { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ============================================================
   About
   ============================================================ */
.about { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 48px; } }
.about__copy .section__title { margin-bottom: 24px; }
.about__copy p { color: var(--text-2); font-size: 16px; line-height: 1.7; margin: 16px 0; }
.about__copy strong { color: var(--text); font-weight: 600; }

.creds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin: 32px 0;
}
.creds > div { display: block; }
.creds dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
  margin-bottom: 5px;
}
.creds dd { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

.about__quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 38px;
  position: relative;
  display: grid;
  gap: 24px;
}
.quote__mark {
  font-family: var(--font-serif);
  font-size: 84px;
  line-height: 0.6;
  color: var(--text-mute);
  opacity: 0.4;
  display: block;
  margin-bottom: -8px;
}
.quote__rule {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.about__quote blockquote { margin: 0; }
.about__quote blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 14px;
  font-weight: 500;
}
.about__quote blockquote footer {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}

/* ============================================================
   Areas served
   ============================================================ */
.areas { background: var(--bg); }
.states {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 800px) { .states { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .states { grid-template-columns: repeat(2, 1fr); } }
.states a {
  display: block;
  text-align: center;
  padding: 26px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.states a:hover,
.states a:focus-visible {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--surface);
  transform: translateY(-2px);
  outline: none;
}
.states .ast {
  color: var(--text-mute);
  font-size: 0.6em;
  margin-left: 1px;
  top: -0.5em;
}
.states__legend {
  text-align: center;
  margin: 26px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-mute);
}
.states__hint {
  text-align: center;
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-mute);
}
.ast { color: var(--text-mute); }

/* ============================================================
   Consult form
   ============================================================ */
.consult {
  background:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(255, 255, 255, 0.025), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}
.consult__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .consult__inner { grid-template-columns: 1fr; gap: 48px; } }
.consult__copy .section__title { margin-bottom: 18px; }

.consult__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 560px) { .consult__form { padding: 26px; grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font: 15px / 1.5 var(--font-sans);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%238a8d94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
/* invalid email / phone (and any field flagged on submit) get a clear red border */
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.16);
}
/* brief highlight when a state badge prefills the select */
.field select.is-prefilled {
  border-color: var(--text);
  background-color: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

/* TRT availability note under the state selector */
.field__trt {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
}

/* details field: helper text + live character counter */
.field__hint {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 2px 0 0;
}
.field__count {
  display: block;
  margin-top: 6px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.field__count.is-met { color: var(--text-2); }
.field__count.is-met::after {
  content: " \2713";
  font-weight: 600;
}

.form__note {
  font-size: 12px;
  color: var(--text-mute);
  margin: 14px 0 0;
  text-align: center;
}

/* Invitation code: a quiet, secondary referral path below the application */
.invite {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.invite__toggle {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--text-mute);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.invite__toggle:hover { color: var(--text-2); }
.invite__hint {
  margin-left: auto;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.invite__toggle:hover .invite__hint { color: var(--text); }
.invite__toggle[aria-expanded="true"] {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 16px;
}
.invite__toggle[aria-expanded="true"] .invite__hint { display: none; }

.invite__row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.invite__field { flex: 1; }
.invite__continue {
  flex-shrink: 0;
  background: none;
  border: 0;
  height: 50px;
  padding: 0 2px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.invite__continue:hover { color: var(--text-2); }
.invite__msg {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-mute);
}
/* anti-spam honeypot: kept in the DOM but out of sight and out of the tab order */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__error {
  margin: 14px 0 0;
  padding: 13px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.form__error a { color: var(--text); text-decoration: underline; }
.form__success {
  margin: 14px 0 0;
  padding: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #050a16;
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}
.footer__note {
  margin: 20px 0 0;
  color: var(--text-mute);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.footer__col a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 14px;
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--text); }
.footer__small {
  margin: 14px 0 0;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.6;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  color: var(--text-mute);
  font-size: 12px;
}
.footer__legal p { margin: 0; max-width: 540px; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Grain overlay (site-wide atmosphere)
   ============================================================ */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }
