/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --ink: #1B1220;
  --paper: #FBF9F6;
  --paper-2: #FBEFEF;
  --muted: #6B6070;
  --line: #E7DFE2;

  /* Brand ramp — matches the gradient baked into the Summit wordmark */
  --bright: #DF5830;
  --mid: #AE1E50;
  --dark: #511C49;

  --grad: linear-gradient(45deg, var(--bright) 0%, var(--mid) 48%, var(--dark) 100%);
  --grad-soft: linear-gradient(45deg, rgba(223, 88, 48, 0.09) 0%, rgba(174, 30, 80, 0.07) 48%, rgba(81, 28, 73, 0.07) 100%);

  --success: #1C7C4D;

  --font-display: 'Fira Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(81, 28, 73, 0.28);
  --container: 1160px;
  --gutter: 32px;
  /* Single source of truth for the fixed nav height. The mobile drawer,
     hero offset and anchor scroll offset are all derived from it. */
  --nav-h: 68px;
}

@media (min-width: 860px) {
  :root {
    --nav-h: 78px;
  }
}

* {
  box-sizing: border-box;
}

/* The UA rule for [hidden] is display:none, but any author `display`
   declaration outranks it — which silently defeats the attribute. */
[hidden] {
  display: none !important;
}

html {
  /* Smooth scrolling is switched on only once the page has settled (see
     script.js). Enabling it up front lets any load-time scroll adjustment
     animate visibly, which fights the hero's entrance animation. */
  scroll-behavior: auto;
  /* keep anchor targets clear of the fixed nav */
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

html.is-ready {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

@media (prefers-reduced-motion: reduce) {

  /* html.is-ready would otherwise out-specify a bare html selector */
  html,
  html.is-ready {
    scroll-behavior: auto;
  }

  /* Delays must be zeroed as well as durations — a staggered animation whose
     duration collapses to nothing still waits out its delay, leaving content
     invisible until it fires. */
  * {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  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;
  border: 0;
}

/* ------------------------------------------------------------
   BRAND LOCKUPS

   The Summit wordmark ships as a Figma export whose colour
   variant paints every glyph with a `foreignObject` conic
   gradient and no SVG-native fallback — that does not render
   inside <img>. So we mask the plain white variant and paint
   the brand gradient through it instead: one reliable asset,
   correct colour, no dependency on foreignObject support.
   ------------------------------------------------------------ */
.brand-logo {
  display: block;
  aspect-ratio: 463 / 128;
  background: var(--grad);
  -webkit-mask: url("assets/Logo (White).svg") no-repeat center / contain;
  mask: url("assets/Logo (White).svg") no-repeat center / contain;
}

.brand-logo--light {
  background: #fff;
}

/* Ashoka × CSBC lockup. Two variants of the same artwork: the dark one
   on light surfaces, the white one direct on the gradient hero. */
.powered-lockup {
  height: 45px;
  width: auto;
  display: block;
}

.powered-lockup--lg {
  height: 44px;
}

@media (max-width: 480px) {
  .powered-lockup {
    height: 26px;
  }

  .powered-lockup--lg {
    height: 32px;
  }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 14px;
  display: inline-block;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.85);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 16ch;
}

.section__title--light {
  color: #fff;
}

.section__lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 48px;
}

.section__lede--light {
  color: rgba(255, 255, 255, 0.78);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(174, 30, 80, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(174, 30, 80, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--mid);
  color: var(--mid);
}

.btn--nav {
  padding: 10px 20px;
  font-size: 14px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(174, 30, 80, 0.5);
}

.btn--nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(174, 30, 80, 0.58);
}

.btn--block {
  width: 100%;
}

/* ============================================================
   GRADIENT LINE MOTIFS

   Two long curved ribbons sweeping down the right of the hero.
   Deliberately faint — they should read as a tint in the gradient
   rather than as artwork. Tuning knobs are the per-variant
   --motif-opacity, top/right offsets and width below, plus the
   stop-opacity ramps inside the two SVGs themselves.
   ============================================================ */
/* Sized by WIDTH, not height. The hero grows taller as it narrows, so
   height-based sizing made the bands balloon across narrow viewports;
   width keeps the composition identical at every breakpoint. */
.line-motif {
  position: absolute;
  z-index: 0;
  height: 100%;
  pointer-events: none;
  opacity: var(--motif-opacity);
  animation: lineMotifIn 1.6s ease 0.15s both;
}

/* warm band runs on the inside, cool band outside it — matching the
   pink-then-lavender pairing in the reference.

   Two dimmers stack: the SVG fills now fade 0.55 -> 0 along their own
   length, and --motif-opacity scales the whole thing on top. Peak alpha
   on the page is roughly the product of the two (~0.19 and ~0.15). */
.line-motif--1 {
  --motif-opacity: 0.55;
  top: -8%;
  right: 9%;
  width: 22%;
}

.line-motif--2 {
  --motif-opacity: 1;
  top: 0%;
  right: -4%;
  width: 19%;
}

@keyframes lineMotifIn {
  from {
    opacity: 0;
  }

  to {
    opacity: var(--motif-opacity);
  }
}

/* Scale up a little on phones — at 22% of a narrow viewport the bands
   are barely a stripe — and pull the opacity back so they stay a wash. */
@media (max-width: 700px) {
  .line-motif--1 {
    --motif-opacity: 0.26;
    width: 32%;
  }

  .line-motif--2 {
    --motif-opacity: 0.22;
    width: 28%;
  }
}

/* ============================================================
   CORNER MOTIFS

   Two source SVGs cover all four corners: the bottom pair is the
   top pair flipped vertically. The flip lives on the inner <img> so
   the wrapper's transform stays free for the scale-in animation.
   ============================================================ */
.corner-motif {
  position: absolute;
  /* above the section's gradient wash, behind its content */
  z-index: 0;
  display: block;
  width: clamp(46px, 6vw, 46px);
  pointer-events: none;
}

.corner-motif img {
  width: 100%;
  height: auto;
}

.corner-motif--tl {
  top: calc(var(--nav-h) + 32px);
  left: clamp(18px, 3.6vw, 46px);
}

.corner-motif--tr {
  top: calc(var(--nav-h) + 32px);
  right: clamp(18px, 3.6vw, 46px);
}

.corner-motif--bl {
  bottom: clamp(20px, 2.6vw, 32px);
  left: clamp(18px, 3.6vw, 46px);
}

.corner-motif--br {
  bottom: clamp(20px, 2.6vw, 32px);
  right: clamp(18px, 3.6vw, 46px);
}

.corner-motif--bl img,
.corner-motif--br img {
  transform: scaleY(-1);
}

/* The hero pair animates on load alongside the rest of the entrance. */
@keyframes motifIn {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero .corner-motif {
  animation: motifIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero .corner-motif--tl {
  animation-delay: 0.28s;
}

.hero .corner-motif--tr {
  animation-delay: 0.38s;
}

/* Crowded on small screens — the hero pair would sit on the wordmark. */
@media (max-width: 600px) {

  .hero .corner-motif--tl,
  .hero .corner-motif--tr {
    display: none;
  }
}

/* ============================================================
   ICONS
   ============================================================ */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: block;
}

/* sits in a heading's text flow, so it wraps and scales with the type */
.icon--inline {
  display: inline-block;
  width: 0.86em;
  height: 0.86em;
  vertical-align: -0.06em;
  margin-right: 0.32em;
  stroke-width: 1.9;
}

/* section eyebrows carry the same icon as their nav link */
.eyebrow--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow--icon .icon {
  width: 15px;
  height: 15px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 249, 246, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* the nav lines up with section content instead of the viewport edge */
.nav__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 249, 246, 0.92);
}

.nav__brand {
  display: flex;
  align-items: center;
  flex: none;
}

.nav__brand .brand-logo {
  height: 30px;
}

@media (min-width: 860px) {
  .nav__brand .brand-logo {
    height: 34px;
  }
}

.nav__links {
  display: none;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav__links a {
  color: var(--muted);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links .icon {
  color: var(--mid);
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
}

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (min-width: 860px) {
  .nav__burger {
    display: none;
  }
}

.btn--nav {
  display: none;
}

@media (min-width: 860px) {
  .btn--nav {
    display: inline-flex;
  }
}

.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  transition: transform 0.28s ease, visibility 0.28s;
  visibility: hidden;
}

.nav__mobile-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__mobile.is-open {
  transform: translateY(0);
  visibility: visible;
}

.nav__mobile a {
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__mobile a .icon {
  color: var(--mid);
}

.nav__mobile .btn {
  margin-top: 14px;
  border-bottom: none;
  justify-content: center;
}

@media (min-width: 860px) {
  .nav__mobile {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  /* bottom padding must clear .hero__arc (120px) or content lands on
     the white curve and disappears — that was the bug here. */
  padding: calc(var(--nav-h) + 56px) var(--gutter) 200px;
  overflow: hidden;
  isolation: isolate;
  background: var(--grad);
}

.hero__arc {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 145%;
  height: 120px;
  background: var(--paper);
  border-radius: 50% 50% 0 0;
  z-index: 0;
}

.hero__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* position is set once in JS; only `transform` is animated so the drift
   stays on the compositor */
.hero__stars span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- first-load entrance -------------------------------------
   Pure CSS with `both` fill so it plays on load without waiting
   for JS. Children animate in source order.
   -------------------------------------------------------------- */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroArcIn {
  from {
    transform: translateX(-50%) translateY(60px);
  }

  to {
    transform: translateX(-50%) translateY(0);
  }
}

.hero__content>* {
  animation: heroRise 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__content>.eyebrow {
  animation-delay: 0.10s;
}

.hero__content>.hero__logo {
  animation: heroLogoIn 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 0.20s;
}

.hero__content>.hero__tagline {
  animation-delay: 0.40s;
}

.hero__content>.hero__meta {
  animation-delay: 0.54s;
}

.hero__content>.hero__cta {
  animation-delay: 0.66s;
}

.hero__content>.hero__powered {
  animation-delay: 0.80s;
}

.hero__arc {
  animation: heroArcIn 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__stars {
  animation: heroRise 1.4s ease both;
  animation-delay: 0.3s;
}

/* The vertical wordmark carries the title, so the <h1> is sr-only. */
.hero__logo {
  width: clamp(210px, 30vw, 300px);
  height: auto;
  margin: 6px 0 28px;
}

.hero__tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(15px, 2vw, 18px);
  margin: 0 0 34px;
}

.hero__tagline .x,
.hero__tagline .eq {
  color: rgba(255, 255, 255, 0.55);
  padding: 0 2px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin-bottom: 38px;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.hero__meta-item svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero .btn--primary {
  background: #fff;
  color: var(--dark);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
}

.hero__powered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__powered .eyebrow {
  margin-bottom: 16px;
}


/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  padding: 108px 0;
}

.section--tint {
  background: var(--paper-2);
}

/* ============================================================
   SPEAKERS
   ============================================================ */
/* Explicit column counts rather than auto-fill: with 6 speakers the
   auto-fill track resolved to 4 columns and left a ragged half-row. */
.speakers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 940px) {
  .speakers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.speaker-card {
  text-align: center;
  transition: transform 0.25s ease;
}

.speaker-card:hover {
  transform: translateY(-6px);
}

/* The photo arrives with its frame already baked in — no masking here. */
.speaker-card__photo {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  transition: filter 0.25s ease;
}

.speaker-card:hover .speaker-card__photo {
  filter: drop-shadow(0 16px 26px rgba(174, 30, 80, 0.24));
}

.speaker-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 4px;
}

.speaker-card__role {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* ============================================================
   AGENDA
   ============================================================ */
/* Timeline rail running down the left of the cards, with a node per stop. */
.agenda-list {
  --rail-x: 8px;
  --rail-gap: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: var(--rail-gap);
}

.agenda-list::before {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--bright), var(--mid) 45%, var(--dark));
  opacity: 0.4;
}

.agenda-item::before {
  content: "";
  position: absolute;
  /* `left` targets the rail's centre line, then translate centres the dot
     on it. The card's 1px border cancels out because absolute offsets are
     measured from its padding box — which is also where --rail-gap lands.
     box-sizing is set explicitly: the `*` reset does not match pseudo-elements,
     so the border would otherwise sit outside the declared width. */
  box-sizing: border-box;
  left: calc(var(--rail-x) - var(--rail-gap));
  transform: translateX(-50%);
  top: 28px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--mid);
  box-shadow: 0 0 0 4px var(--paper-2);
}

.agenda-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 4px 24px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 30px;
  box-shadow: 0 2px 10px -7px rgba(81, 28, 73, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agenda-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(81, 28, 73, 0.35);
}

.agenda-item__time {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  white-space: nowrap;
  margin: 0;
  padding-top: 3px;
}

.agenda-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 6px;
}

.agenda-item__desc {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  max-width: 70ch;
}

@media (max-width: 620px) {
  .agenda-list {
    --rail-gap: 26px;
    --rail-x: 5px;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    padding: 20px 22px;
  }

  .agenda-item__time {
    padding-top: 0;
    margin-bottom: 6px;
  }

  .agenda-item::before {
    top: 24px;
    width: 12px;
    height: 12px;
    border-width: 2.5px;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 14px;
}

.about-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 14px;
}

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

.about-card--org {
  grid-column: 1 / -1;
  background: var(--grad-soft);
  border-color: transparent;
}

.org-logos {
  display: flex;
  align-items: center;
  margin-top: 24px;
}

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

/* ============================================================
   INVITE
   ============================================================ */
.invite {
  position: relative;
  background: var(--ink);
  /* the deeper bottom padding is the band the corner motifs sit in —
     without it they collide with the form card, and at <=900px the
     form goes full width so they'd land behind it */
  padding: 100px 0 148px;
  overflow: hidden;
  isolation: isolate;
}

.invite__arc {
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.92;
  z-index: -1;
}

.invite__container {
  /* keep the form and intro above the corner motifs */
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

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

.invite__facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invite__facts li {
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 14.5px;
  gap: 16px;
}

.invite__facts strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.invite__form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.4);
}

.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(174, 30, 80, 0.15);
}

.invite__status {
  min-height: 20px;
  font-size: 14px;
  margin: 14px 0 0;
  font-weight: 600;
}

.invite__status.is-success {
  color: #1c7c4d;
}

.invite__status.is-error {
  color: #c62f3a;
}

.invite__fineprint {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* ---- submitted state ---------------------------------------- */
.invite__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 16px 22px;
}

.invite__success:focus {
  outline: none;
}

.invite__success-mark svg {
  width: 68px;
  height: 68px;
  display: block;
  margin-bottom: 22px;
}

.invite__success-mark circle,
.invite__success-mark path {
  fill: none;
  stroke: var(--success);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* dasharray ≈ each shape's own length, so the offset animation draws it on */
.invite__success-mark circle {
  stroke-width: 3;
  stroke-dasharray: 151;
  /* 2πr, r = 24 */
  stroke-dashoffset: 151;
  animation: drawCircle 0.5s ease forwards;
}

.invite__success-mark path {
  stroke-width: 4;
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: drawCheck 0.32s 0.42s ease forwards;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.invite__success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 8px;
}

.invite__success-text {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper-2);
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer__brand .brand-logo {
  height: 46px;
}

.footer__tagline {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 34ch;
}

.org-logos--footer {
  margin-top: 14px;
}

.footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ============================================================
   SCROLL REVEAL

   Direction is decided in JS from each element's real horizontal
   position, so left-hand content slides in from the left, right-hand
   content from the right, and full-width blocks simply lift.

   Everything is gated behind .js-reveal (set by script.js) so the
   page is fully visible if JS never runs.
   ============================================================ */
.js-reveal [data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal [data-reveal="left"] {
  transform: translate3d(-38px, 0, 0);
}

.js-reveal [data-reveal="right"] {
  transform: translate3d(38px, 0, 0);
}

.js-reveal [data-reveal="up"] {
  transform: translate3d(0, 28px, 0);
}

/* opt-in via data-reveal-mode="scale" — used by the corner motifs */
.js-reveal [data-reveal="scale"] {
  transform: scale(0.72);
}

/* used for a clean re-measure on resize */
.js-reveal [data-reveal].is-measuring {
  transform: none !important;
  transition: none !important;
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Reduced motion: no travel, just a gentle fade. */
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    transform: none !important;
  }
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mid);
  outline-offset: 2px;
}