/* ==========================================================================
   Lunar Startup Community — site stylesheet
   Rebuilt from design_handoff_lunar_startup_community (hi-fi spec).

   The visual language is: hairline rectangles, one gold accent, 2px radius,
   no shadows, no elevation. Section backgrounds alternate ink / surface.
   ========================================================================== */

/* fonts.css is linked separately from each page so the font files can start
   downloading in parallel with this stylesheet rather than after it. */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* surfaces */
  --ink:            #080f18;   /* page background, dark sections            */
  --surface:        #0a121d;   /* alternating band sections                 */
  --card:           #0c1726;   /* cards                                     */
  --hero-top:       #0d1826;   /* hero gradient top stop                    */

  /* accent — the only one. vary opacity, never add a second hue */
  --gold:           #e8c76a;
  --gold-hi:        #f6dd94;

  /* text scale */
  --text:           #e9edf3;
  --text-bright:    #eef2f7;
  --text-em:        #e2e8f1;
  --text-2:         #dfe6f0;
  --muted:          #cdd8e6;
  --dim-70:         rgba(233, 237, 243, .70);
  --dim-62:         rgba(233, 237, 243, .62);
  --dim-60:         rgba(233, 237, 243, .60);
  --dim-55:         rgba(233, 237, 243, .55);
  --dim-50:         rgba(233, 237, 243, .50);
  --dim-45:         rgba(233, 237, 243, .45);
  --dim-40:         rgba(233, 237, 243, .40);
  --dim-38:         rgba(233, 237, 243, .38);

  /* hairlines */
  --line:           rgba(233, 237, 243, .13);
  --line-14:        rgba(233, 237, 243, .14);
  --line-10:        rgba(233, 237, 243, .10);
  --line-soft:      rgba(233, 237, 243, .09);
  --line-22:        rgba(233, 237, 243, .22);
  --line-30:        rgba(233, 237, 243, .30);
  --line-34:        rgba(233, 237, 243, .34);
  --gold-line:      rgba(232, 199, 106, .42);
  --gold-line-22:   rgba(232, 199, 106, .22);
  --gold-line-14:   rgba(232, 199, 106, .14);
  --gold-line-34:   rgba(232, 199, 106, .34);
  --gold-line-55:   rgba(232, 199, 106, .55);

  /* type */
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* layout */
  --wrap: 1140px;
  --pad: 22px;
  --section-y: clamp(64px, 8vw, 112px);
  --bar-clearance: 120px;   /* the fixed join bar overlays content */
}

/* ----------------------------------------------------------------- base -- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* load-bearing: the decorative moon circles are wider than the viewport */
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }

/* Author display rules outrank the UA stylesheet, so a .btn with [hidden] would
   still show. Everything here relies on toggling `hidden`, so make it stick. */
[hidden] { display: none !important; }

img { max-width: 100%; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Focus is not in the prototype and had to be added — every CTA, nav link and
   FAQ row is interactive. One visible treatment, used everywhere. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 2px 0;
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------- layout -- */
.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap--narrow { max-width: 860px; margin: 0 auto; }

.section { padding: var(--section-y) var(--pad); }
.section--band {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}
.section--relative { position: relative; overflow: hidden; }
/* Bands alternate ink / surface and carry their own top hairline. With one
   section removed the parity no longer works out, so #meetup sits ink-on-ink
   after #activities and takes the rule on its own. */
.section--ruled { border-top: 1px solid var(--line-soft); }
.section__inner { position: relative; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page__main { flex: 1; }

/* Sticky header is ~55px tall; anchor targets need clearance. */
[id] { scroll-margin-top: 64px; }

/* ------------------------------------------------------------ typography -- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0;
}
.eyebrow--hero { font-size: 12px; letter-spacing: .18em; }

.h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.6vw, 80px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 18px 0 0;
  max-width: 15ch;
}
.h1--sub {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 19ch;
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 16px 0 0;
}
.h2--gap    { margin-bottom: 38px; }
.h2--gap-sm { margin-bottom: 36px; }
.h2--gap-xs { margin-bottom: 32px; }

.lead {
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.4;
  margin: 22px 0 0;
  max-width: 34ch;
  color: var(--text-bright);
}
.lead--page {
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(233, 237, 243, .66);
  max-width: 56ch;
  margin: 20px 0 0;
}

.body-em   { font-size: 17.5px; line-height: 1.85; color: var(--text-em); margin: 0; }
.body-note { font-size: 14.5px; line-height: 1.85; color: var(--dim-62); }
.caption   { font-size: 15.5px; line-height: 1.85; color: var(--dim-62); max-width: 44ch; }

.mono-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--dim-50);
  text-transform: uppercase;
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-block;
  border-radius: 2px;
  font-family: var(--body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); color: var(--ink); }

.btn--ghost { border-color: var(--line-34); color: var(--text); background: none; }
.btn--ghost:hover { border-color: rgba(233, 237, 243, .5); color: var(--text); }

.btn--ghost-thin { border-color: var(--line-30); color: var(--text); background: none; }
.btn--ghost-thin:hover { border-color: rgba(233, 237, 243, .5); color: var(--text); }

.btn--outline-gold { border-color: var(--gold-line-55); color: var(--gold); background: none; }
.btn--outline-gold:hover { border-color: var(--gold); color: var(--gold-hi); }

.btn--xs { padding: 9px 18px;  font-size: 13px; }
.btn--sm { padding: 12px 24px; font-size: 14.5px; }
.btn--bar{ padding: 13px 26px; font-size: 14.5px; }
.btn--md { padding: 14px 28px; font-size: 15px; }
.btn--lg { padding: 15px 30px; font-size: 15.5px; }
.btn--xl { padding: 16px 32px; font-size: 16px; }
.btn--xxl{ padding: 16px 34px; font-size: 16px; }
.btn--ghost-xl { padding: 16px 26px; font-size: 16px; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 15, 24, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex: none;
}
.wordmark:hover { color: var(--text); }
.wordmark__dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-line-14);
  flex: none;
}
.wordmark__text {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .09em;
  font-size: 12.5px;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  flex: none;
}
.site-nav__links { display: flex; align-items: center; gap: 26px; }
.site-nav__link { color: var(--dim-70); white-space: nowrap; }
.site-nav__link:hover { color: var(--gold-hi); }
.site-nav__link[aria-current="page"] { color: var(--gold); }

@media (max-width: 820px) {
  .site-nav__links { display: none; }
  .wordmark__text  { font-size: 11.5px; letter-spacing: .03em; }
}

/* ----------------------------------------------------- decorative layers -- */
/* Zero image weight — reproduce these rather than substituting stock art. */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.3px 1.3px at 14% 18%, rgba(255, 255, 255, .50), transparent),
    radial-gradient(1.1px 1.1px at 74% 11%, rgba(255, 255, 255, .38), transparent),
    radial-gradient(1.4px 1.4px at 39% 58%, rgba(255, 255, 255, .28), transparent),
    radial-gradient(1.1px 1.1px at 88% 44%, rgba(255, 255, 255, .32), transparent),
    radial-gradient(1.2px 1.2px at 58% 28%, rgba(255, 255, 255, .22), transparent);
}
.starfield--sub {
  background-image:
    radial-gradient(1.2px 1.2px at 18% 30%, rgba(255, 255, 255, .42), transparent),
    radial-gradient(1.1px 1.1px at 72% 22%, rgba(255, 255, 255, .32), transparent),
    radial-gradient(1.3px 1.3px at 46% 68%, rgba(255, 255, 255, .26), transparent);
}

.moon-limb {
  position: absolute;
  left: 50%;
  bottom: -64vw;
  transform: translateX(-50%);
  width: 150vw; height: 150vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 14%, #1a2c46 0%, #132135 42%, #0b1422 76%);
  border-top: 1px solid var(--gold-line-34);
  box-shadow: 0 -1px 70px rgba(232, 199, 106, .09);
  pointer-events: none;
}
.moon-corner {
  position: absolute;
  left: -18vw; bottom: -24vw;
  width: 52vw; height: 52vw;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 30%, #16263c 0%, #101b2b 52%, #0a1220 78%);
  border: 1px solid var(--gold-line-14);
  opacity: .9;
  pointer-events: none;
}
.moon-corner--tr {
  left: auto; bottom: auto;
  right: -14vw; top: -16vw;
  width: 44vw; height: 44vw;
  background: radial-gradient(circle at 60% 34%, #182a42 0%, #111e30 54%, #0a1220 80%);
  opacity: 1;
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5.5vw, 80px) var(--pad) clamp(130px, 17vw, 240px);
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--ink) 82%);
}
.hero__inner { position: relative; max-width: var(--wrap); margin: 0 auto; }

.hero--sub {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) var(--pad) clamp(44px, 5vw, 68px);
}
.hero--sub .hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-top), var(--ink));
}

/* ----------------------------------------------------------- stat band -- */
.statband {
  border-top: 1px solid var(--line-10);
  border-bottom: 1px solid var(--line-10);
  background: var(--surface);
}
.statband__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* The join page's band is a reassurance strip rather than a headline stat row —
   let it go two-up on a phone instead of stacking into a long scroll before
   the form. */
.statband--tight .statband__grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  column-gap: 20px;
}
.statband--tight .stat { padding: 20px 0; }

.stat { padding: 26px 0; display: flex; flex-direction: column; gap: 7px; }
.stat__num {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
}
.stat__num--gold { color: var(--gold); }
.stat__cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--dim-55);
}

/* ---------------------------------------------------------------- about -- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about__frame {
  margin-top: 28px;
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-14);
  background: #0b1422;
  overflow: hidden;
}
.about__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.about__caption { margin: 12px 0 0; }

/* "What you get out of it" — three rows sitting under the two-column About
   block, sharing its section rather than owning one. */
.about__value { margin-top: clamp(44px, 6vw, 76px); }
.about__value .mono-label { margin: 0 0 22px; }

.deflist { margin-top: 30px; display: flex; flex-direction: column; }
.deflist__row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.deflist__row:last-child { border-bottom: 1px solid var(--line); }
.deflist__key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
  width: 88px;
  flex: none;
  padding-top: 3px;
}
.deflist__val { font-size: 15.5px; line-height: 1.7; color: var(--muted); }

/* ------------------------------------------------------------ who grid -- */
/* Hairlines are drawn per cell so the rule pattern survives 1–4 columns.
   Do NOT swap this for a gap-with-background trick — it breaks at 3 columns. */
.cellgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cellgrid__cell {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cellgrid__index {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .14em;
}
.cellgrid__copy {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}

/* ------------------------------------------------------------- activities -- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--line-14);
  background: var(--card);
  padding: 32px 30px;
}
.card__head { display: flex; align-items: center; gap: 12px; }
.card__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); flex: none; }
.card__icon--orbit {
  background: none;
  border: 1.5px solid rgba(232, 199, 106, .8);
  position: relative;
}
.card__icon--orbit::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.card__tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--dim-55);
}
.card__title {
  font-family: var(--display);
  font-size: 23px;
  margin: 20px 0 0;
  font-weight: 700;
  line-height: 1.25;
}
.card__list {
  margin: 16px 0 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.95;
}

/* ------------------------------------------------------------------ value -- */
.valuerow {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line-14);
}
.valuerow:last-child { border-bottom: 1px solid var(--line-14); }
.valuerow__index {
  font-family: var(--mono);
  color: rgba(232, 199, 106, .9);
  font-size: 12px;
  letter-spacing: .14em;
  padding-top: 5px;
}
.valuerow__copy {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text-em);
  max-width: 62ch;
}

/* ----------------------------------------------------------------- meetup -- */
.eventpanel {
  border: 1px solid var(--gold-line);
  background: rgba(8, 15, 24, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.eventpanel__side {
  padding: clamp(26px, 4vw, 42px);
  border-right: 1px solid var(--gold-line-22);
}
.eventpanel__main { padding: clamp(26px, 4vw, 42px); }
.eventpanel__cap {
  font-family: var(--mono);
  color: var(--dim-55);
  font-size: 12px;
  letter-spacing: .16em;
}
.eventpanel__date {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(58px, 10vw, 104px);
  line-height: .88;
  color: var(--gold);
  letter-spacing: -.04em;
  margin-top: 12px;
}
.eventpanel__dl {
  margin: 30px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.eventpanel__dl dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--dim-50);
}
.eventpanel__dl dd { margin: 4px 0 16px; }
.eventpanel__dl dd:last-of-type { margin-bottom: 0; }
.eventpanel__agenda {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-em);
  font-size: 16px;
  line-height: 2;
}

/* ------------------------------------------------------------------- steps -- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.step { border-top: 2px solid var(--line-22); padding-top: 22px; }
.step--first { border-top-color: var(--gold); }
.step__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: var(--dim-40);
}
.step--first .step__num { color: var(--gold); }
.step__title { font-size: 18px; margin: 12px 0 0; font-weight: 600; line-height: 1.4; }
.step__list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}
.step__copy { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.9; }

.join-close {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.join-close__note { font-size: 14.5px; color: var(--dim-55); }

/* --------------------------------------------------------------------- faq -- */
.faq__item { border-top: 1px solid var(--line-14); }
.faq__end  { border-top: 1px solid var(--line-14); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 24px 0;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--text);
  text-align: left;
}
.faq__q:hover { color: var(--gold); }
.faq__sign {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 18px;
  flex: none;
}
.faq__a[hidden] { display: none; }
.faq__a p {
  margin: 0;
  padding: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 62ch;
}

/* ------------------------------------------------------------------ footer -- */
.site-footer {
  position: relative;
  padding: clamp(56px, 7vw, 96px) var(--pad) var(--bar-clearance);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.site-footer__grid {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 38px;
  align-items: start;
}
.site-footer__statement {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.18;
  max-width: 20ch;
  letter-spacing: -.02em;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
}
.site-footer__coltitle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--dim-45);
}
.site-footer__link { color: rgba(233, 237, 243, .78); }
.site-footer__link:hover { color: var(--gold-hi); }
.site-footer__note { color: var(--dim-50); }
.site-footer__rule {
  position: relative;
  max-width: var(--wrap);
  margin: 46px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-10);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--dim-38);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
}
.site-footer__rule a { color: var(--dim-38); }
.site-footer__rule a:hover { color: var(--gold-hi); }

.site-footer--min {
  padding: 26px var(--pad) 110px;
  border-top: 1px solid var(--line-10);
  background: none;
}
.site-footer--min .site-footer__rule { margin-top: 0; padding-top: 0; border-top: 0; }

/* ------------------------------------------------------------- bottom bar -- */
.joinbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(8, 15, 24, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(233, 237, 243, .12);
}
.joinbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.joinbar__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--dim-60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* A flex item defaults to min-width:auto and refuses to shrink below its
     content, which would push the bar wider than the viewport. */
  min-width: 0;
}
.joinbar .btn { flex: none; }

/* ------------------------------------------------------------- organizers -- */
.people { display: flex; flex-direction: column; gap: 20px; }
.person {
  border: 1px solid var(--line-14);
  background: var(--card);
  padding: clamp(24px, 3.4vw, 34px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}
.person__photo {
  width: clamp(96px, 13vw, 148px);
  height: clamp(96px, 13vw, 148px);
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.person__photo--light { background: #e6e6e6; }
.person__name {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.person__role {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--gold);
  margin-top: 9px;
}
.person__bio {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

/* "Run by Melange" — a statement block between the people and the contact
   panel. Hairline top rule rather than a card, so it reads as part of the same
   section instead of competing with the organizer cards above it. */
.operator {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line-14);
}
.operator__name {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 14px 0 0;
}
.operator__name a { color: var(--gold); }
.operator__arrow { font-size: .7em; vertical-align: .12em; }
.operator__copy {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 64ch;
}

.contactpanel {
  max-width: var(--wrap);
  margin: clamp(36px, 5vw, 56px) auto 0;
  border: 1px solid rgba(232, 199, 106, .4);
  padding: clamp(26px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}
.contactpanel__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--dim-50);
}
.contactpanel__email {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin-top: 12px;
  word-break: break-word;
}
.contactpanel__copy {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dim-60);
  max-width: 44ch;
}
.contactpanel__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================== the form == */
.form-section { padding-bottom: calc(var(--section-y) + 20px); }

.formcard {
  border: 1px solid var(--line-14);
  background: var(--card);
  padding: clamp(24px, 4vw, 40px);
  margin-top: 34px;
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
}
.fieldset + .fieldset {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

/* The outer form sections are plain <div>s with an <h3>, not <fieldset>/<legend>.
   A legend interrupts its fieldset's top border, and the usual float:left fix
   makes every flex or grid sibling inside the fieldset collapse to nothing —
   a float excludes block formatting contexts rather than being overlapped by
   them. The inner checkbox groups are still real fieldsets; they carry no
   border, so nothing there is affected. */
.fieldset__legend {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--gold);
  margin: 0 0 22px;
  text-transform: uppercase;
}
.fieldset__hint {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--dim-62);
  margin: -14px 0 22px;
  max-width: 62ch;
}

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }

.field__label {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.field__opt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--dim-45);
  margin-left: 8px;
  text-transform: uppercase;
}
.field__help {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--dim-55);
  margin: 7px 0 0;
}
.field__error {
  font-size: 13.5px;
  line-height: 1.6;
  color: #f0a9a9;
  margin: 7px 0 0;
}
.field__error:empty { display: none; }

.input, .select, .textarea {
  width: 100%;
  background: rgba(8, 15, 24, .72);
  border: 1px solid var(--line-22);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.5;
  padding: 13px 14px;
  transition: border-color .15s ease, background-color .15s ease;
}
.input::placeholder, .textarea::placeholder { color: rgba(233, 237, 243, .3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-34); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold);
  outline: none;
  background: rgba(8, 15, 24, .95);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: #d98b8b;
}
.textarea { min-height: 118px; resize: vertical; }

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.select option { background: #0c1726; color: var(--text); }

.checkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  gap: 0;
}
.checkgrid .check {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  transition: background-color .12s ease;
}
.check:hover { background: rgba(232, 199, 106, .05); }
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  flex: none;
  margin: 3px 0 0;
  border: 1px solid var(--line-34);
  border-radius: 2px;
  background: rgba(8, 15, 24, .6);
  cursor: pointer;
  position: relative;
  transition: border-color .12s ease, background-color .12s ease;
}
.check input[type="radio"] { border-radius: 50%; }
.check input:hover { border-color: var(--gold-line-55); }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 0px;
  width: 5px; height: 10px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.check input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.check--standalone { padding: 0; }
.check--standalone:hover { background: none; }

.form-actions {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.form-status {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--dim-62);
  max-width: 52ch;
}
.form-status--error { color: #f0a9a9; }

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------- confirmation page -- */
.stepline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 38px;
}
.notice {
  border: 1px solid var(--gold-line);
  background: rgba(232, 199, 106, .05);
  padding: clamp(22px, 3vw, 30px);
  margin-top: 34px;
}
.notice--quiet {
  border-color: var(--line-14);
  background: rgba(233, 237, 243, .02);
}
.notice__title {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 12px;
}
.notice__copy { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--muted); max-width: 62ch; }

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.discord-btn svg { width: 19px; height: 19px; flex: none; }

/* --------------------------------------------------------------- prose -- */
.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 44px 0 0;
  line-height: 1.25;
}
.prose h2:first-of-type { margin-top: 34px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 26px 0 0; }
.prose p, .prose li {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}
.prose p { margin: 14px 0 0; }
.prose ul { margin: 14px 0 0; padding-left: 20px; }
.prose li { margin-bottom: 7px; }
/* Legal pages use tables for the purpose/basis and processor lists. Same
   hairline language as the rest of the site; scrolls inside itself on a phone
   rather than pushing the page sideways. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.65;
  display: block;
  overflow-x: auto;
}
.prose thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  font-weight: 400;
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--line-14);
  white-space: nowrap;
}
.prose tbody td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
  min-width: 150px;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

.prose__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--dim-45);
  margin-top: 26px;
}
