:root {
  --bg-0: #131414;
  --bg-1: #1A1B1B;
  --bg-2: #202222;
  --line: #333636;
  --control-line: #6B7270;
  --line-hover: #869090;
  --ink: #EDEEEC;
  --ink-dim: #A4AEAD;
  --ink-faint: #818987;
  --teal: #45D8C5;
  --teal-dim: rgba(69, 216, 197, 0.14);
  --teal-line: rgba(69, 216, 197, 0.4);
  --danger: #FF9D9D;
  --danger-line: rgba(255, 120, 120, 0.35);
  --danger-bg: rgba(255, 90, 90, 0.07);
  --focus-ring: #6FE6D4;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  /* Keeps anchor jumps, hash links, and .focus()-triggered scrolling from
     landing content underneath the sticky topbar. */
  scroll-padding-top: 6rem;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg-0);
  background-image: radial-gradient(rgba(237, 238, 236, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--teal);
  color: var(--bg-0);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 8px;
  border: 3px solid var(--bg-0);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--line-hover);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  /* Above the sticky topbar (z-index 40), or the focused link is invisible.
     Off-screen except while focused, so nothing changes at rest. */
  z-index: 50;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  background: var(--teal);
  color: var(--bg-0);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

main {
  position: relative;
  z-index: 1;
}

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

/* ---- Topbar, shared across all three pages ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  /* Full-bleed bar; max(6vw, ...) keeps the logo and links aligned with the
     1240px content column the rest of the page uses on wide screens. */
  padding: 1.75rem max(6vw, calc((100% - 1240px) / 2 + 6vw));
  background: var(--bg-0);
}

.topbar__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.topbar__logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex: none;
}

.topbar__mark-accent {
  color: var(--teal);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.topbar__link:hover {
  color: var(--ink);
  border-color: var(--line);
}

.topbar__link[aria-current="page"] {
  color: var(--ink);
}

/* ---- Buttons: flat, matte, no gradient, no glow, no lift ---- */

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

/* Submitting: the button says "Sending" and must look paused, not broken. */
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn:disabled:hover {
  filter: none;
}

/* The in-flight dots: one soft pulse travelling across the ellipsis, so a
   long cold-start wait reads as working, not frozen. Static for reduced
   motion. */
.btn__dots span {
  opacity: 0.25;
  animation: btn-dot 1.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.btn__dots span:nth-child(2) {
  animation-delay: 200ms;
}

.btn__dots span:nth-child(3) {
  animation-delay: 400ms;
}

@keyframes btn-dot {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .btn__dots span {
    animation: none;
    opacity: 1;
  }
}

.btn--primary {
  background: var(--ink);
  color: var(--bg-0);
  border-color: var(--ink);
}

.btn--primary:hover {
  filter: brightness(0.9);
}

.btn--primary:active {
  filter: brightness(0.8);
}

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

.btn--secondary:hover {
  border-color: var(--line-hover);
  background: var(--bg-1);
}

/* ---- Badge component: the site's one recurring physical object ---- */

.badge {
  --badge-accent: var(--teal);
  position: relative;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7);
}

.badge__stripe {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.badge__stripe-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: none;
}

.badge__stripe-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  color: var(--ink-dim);
}

.badge__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle, rgba(237, 238, 236, 0.05) 1px, transparent 1px) 0 0 / 14px 14px,
    var(--bg-0);
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
}

.badge__photo-mark {
  width: 30%;
  min-width: 44px;
  border-radius: 20%;
}

.badge__photo-placeholder svg {
  width: 46%;
}

/* Team portraits are square (1:1) files in a square window, so cover never
   re-crops them — the file is exactly what the card shows. The hero and
   success badges keep the default 16/11 photo area. */
.badge__photo--portrait {
  aspect-ratio: 1 / 1;
}

.badge__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge__fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
}

.badge__field dt {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.badge__field dd {
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  /* 100-char names and companies wrap instead of clipping at the card edge. */
  overflow-wrap: anywhere;
}

.badge__field dd.is-accent {
  color: var(--badge-accent);
}

/* Priority hierarchy: the first field is always the headline identity
   value (Name / Holder), so it carries more visual weight than the rows
   below it, regardless of which badge instance is rendering. */
.badge__field:first-child dd {
  font-size: 1.125rem;
  font-weight: 700;
}

.badge__barcode {
  height: 22px;
  margin: 0 1.1rem 1.1rem;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-faint) 0px, var(--ink-faint) 2px,
    transparent 2px, transparent 3px,
    var(--ink-faint) 3px, var(--ink-faint) 4px,
    transparent 4px, transparent 7px,
    var(--ink-faint) 7px, var(--ink-faint) 8px,
    transparent 8px, transparent 10px
  );
  opacity: 0.55;
}

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

.hero {
  position: relative;
  padding: 6vh 6vw 12vh;
  max-width: 1240px;
  margin: 0 auto;
}

.hero__grid {
  margin-top: 8vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  column-gap: 5vw;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__title-accent {
  color: var(--teal);
}

.hero__tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 46ch;
  color: var(--ink-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 160ms ease;
}

.hero__cue:hover {
  color: var(--teal);
}

.hero__cue .icon {
  animation: nudge 2.6s ease-in-out infinite;
}

@keyframes nudge {
  0%, 70%, 100% { transform: translateY(0); }
  85% { transform: translateY(3px); }
}

.hero__badge-wrap {
  position: relative;
  justify-self: center;
  padding: 2rem 0;
}

.hero__badge-wrap .badge {
  position: relative;
  z-index: 1;
  transform: rotate(-4deg);
}

.hero__badge-back {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-1);
  transform: rotate(5deg) translateY(6px);
  opacity: 0.5;
}

/* ---- About ---- */

.about {
  position: relative;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 12vh 6vw;
}

.about__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1px 1fr;
  column-gap: 4rem;
  align-items: start;
}

.about__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.about__heading-accent {
  color: var(--teal);
}

.about__divider {
  align-self: stretch;
  width: 1px;
  background: var(--line);
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.3rem;
}

.about__body p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 60ch;
  color: var(--ink-dim);
}

.about__body p:first-child {
  color: var(--ink);
}

.js .js-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Shared stagger: any lede/body that follows a heading into view waits
   the same beat behind it, everywhere this pattern is used. */
.js-reveal--lede {
  transition-delay: 120ms;
}

.about__body p.about__punch {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---- The gap: apprentices vs everyone else, measured ---- */

.gap {
  grid-column: 1 / -1;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.gap__kicker {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Stat column left, the "so we build this" story right. The bars plot the
   source's own figures (78.2 vs 84, the positive responses) — a founder
   call: the numbers shown match the NSS table, and the footnote carries
   the derived 36% claim.
   The columns mirror the triptych grid above (heading | divider | body),
   so the stat card sits flush under the heading and the story prose lines
   up exactly with the lede at every width. */
.gap__columns {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1px minmax(0, 1fr);
  column-gap: 4rem;
  row-gap: 2.5rem;
  align-items: start;
}

.gap__stat {
  grid-column: 1;
}

.gap__story {
  grid-column: 3;
  max-width: 62ch;
}

@media (max-width: 860px) {
  .gap__columns {
    grid-template-columns: 1fr;
    max-width: 62ch;
  }

  .gap__stat,
  .gap__story {
    grid-column: auto;
  }
}

/* One voice for the story column, in the same ink as the section's opening
   paragraph — this column carries the argument, so it doesn't whisper.
   Emphasis comes from weight; teal is reserved for the single brand
   payoff line, and grey stays with the secondary text (kicker, caption,
   sources). */
.gap__story p {
  font-size: 1.0625rem; /* same size as .about__body p — one prose voice */
  line-height: 1.7;
  color: var(--ink);
}

.gap__story p + p {
  margin-top: 1.5rem;
}

.gap__story strong {
  font-weight: 600;
}

.gap__story .about__segue strong {
  color: var(--teal);
}

.gap__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.gap__num {
  color: var(--ink-dim);
}

.gap__num--us {
  color: var(--teal);
}

.gap__vs {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--ink-faint);
}

.gap__reading {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 44ch;
  color: var(--ink-dim);
}

.gap__bars {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gap__track {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-2);
  overflow: hidden;
}

.gap__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink-faint);
  transform-origin: left;
}

.gap__fill--us {
  background: var(--teal);
}

.gap__fill--w78 { width: 78.2%; }
.gap__fill--w84 { width: 84%; }

/* The section's one authored moment: the bars draw themselves as the
   numbers land, so the shortfall is watched, not read. */
.js .gap__stat .gap__fill {
  transform: scaleX(0);
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1) 350ms;
}

.js .gap__stat.is-visible .gap__fill {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .js .gap__stat .gap__fill {
    transform: none;
    transition: none;
  }
}

.gap__stat > .stats__source {
  margin-top: 0.875rem;
  margin-left: 0;
}

.stats__source {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stats__source:hover {
  color: var(--teal);
}

/* ---- Journey: roadmap beyond the first event ---- */

.journey {
  background: var(--bg-1);
  padding: 4vh 6vw 12vh;
}

.journey__inner {
  max-width: 900px;
  margin: 0 auto;
}

.journey__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.journey__heading-accent {
  color: var(--teal);
}

.journey__lede {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 52ch;
  color: var(--ink-dim);
}

/* ---- The manifest ----
   THESIS: perks are not marketing cards, they are what the badge admits you
   to. Refuses the six-identical-cards grid.
   OWN-WORLD: the site's badge grammar — hairline manifest rows, stroke icons,
   and one badge-family reader card (stripe, field label, barcode) in teal on
   the dark greys.
   STORY: the visitor runs a finger down the manifest; each perk they touch is
   scanned into the reader and read in full, so they leave knowing exactly
   what membership hands them.
   FIRST VIEWPORT (of the section): heading, six-row manifest left, reader
   card right already displaying perk one; nothing hidden by default.
   FORM: split manifest + reader; the scan sweep is the section's one
   authored motion. Local extension — no seed. */

.manifest {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  column-gap: 3.5rem;
  align-items: start;
}

.manifest__list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.manifest__row {
  border-bottom: 1px solid var(--line);
}

.manifest__title {
  margin: 0;
  font-size: inherit;
}

.manifest__btn {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: 1.05rem 0.75rem;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-dim);
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}

.manifest__btn:hover {
  color: var(--ink);
  background-color: var(--bg-2);
}

.manifest__btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
  color: var(--ink);
}

.manifest__row.is-active .manifest__btn {
  color: var(--ink);
}

/* The "scanned" lamp at the row's end: off until the reader has this perk. */
.manifest__btn::after {
  content: '';
  flex: none;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--control-line);
  background: transparent;
  transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.manifest__row.is-active .manifest__btn::after {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 10px 1px var(--teal-dim);
}

.manifest__icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--ink-faint);
  transition: color 250ms ease;
}

.manifest__row.is-active .manifest__icon,
.manifest__btn:hover .manifest__icon {
  color: var(--teal);
}

/* Body copy lives in the list for screen readers and narrow screens; on a
   wide screen with JS running, the reader card is its visual home. Range
   syntax keeps this an exact complement of the collapse query below. */
@media (width >= 861px) {
  .js .manifest__body {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.manifest__body {
  padding: 0 0.75rem 1.15rem calc(0.75rem + 26px + 1.1rem);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 58ch;
  color: var(--ink-dim);
}

/* ---- The reader card ---- */

.manifest__reader {
  position: sticky;
  top: 6rem;
  transition-delay: 200ms;
}

/* Without JS nothing can drive the reader, so the list carries the copy. */
html:not(.js) .manifest {
  grid-template-columns: 1fr;
}

html:not(.js) .manifest__reader {
  display: none;
}

.manifest__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.75);
}

.manifest__card-stripe {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
}

.manifest__card-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: none;
}

.manifest__card-stripe-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  color: var(--ink-dim);
}

.manifest__card-readout {
  padding: 1.4rem 1.25rem 1.2rem;
  /* Sized to the longest perk (the network one) at the reader's width, so
     scanning between perks never grows the card mid-sweep. */
  min-height: 17.5rem;
}

.manifest__card-label {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* ink-dim, not ink-faint: faint misses AA (4.46:1) on the card's bg-2. */
  color: var(--ink-dim);
}

.manifest__card-title {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.manifest__card-text {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-dim);
}

.manifest__card-barcode {
  height: 22px;
  margin: 0 1.25rem 1.2rem;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-faint) 0px, var(--ink-faint) 2px,
    transparent 2px, transparent 3px,
    var(--ink-faint) 3px, var(--ink-faint) 4px,
    transparent 4px, transparent 7px,
    var(--ink-faint) 7px, var(--ink-faint) 8px,
    transparent 8px, transparent 10px
  );
  opacity: 0.55;
}

/* The scan: a faint teal read-head sweeps the card as the new perk settles
   in. Quiet on purpose — it runs on every hover, so it must read as
   feedback, not spectacle. */
.manifest__card-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(69, 216, 197, 0.05) 43%,
    rgba(69, 216, 197, 0.2) 50%,
    rgba(69, 216, 197, 0.05) 57%,
    transparent 100%
  );
  transform: translateY(-105%);
}

.manifest__card.is-scanning .manifest__card-scan {
  animation: manifest-scan 500ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.manifest__card.is-scanning .manifest__card-readout {
  animation: manifest-print 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes manifest-scan {
  0% { transform: translateY(-105%); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(105%); opacity: 0; }
}

@keyframes manifest-print {
  from { opacity: 0.55; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .manifest__card-scan {
    display: none;
  }

  .manifest__card.is-scanning .manifest__card-readout {
    animation: none;
  }
}

@media (width < 861px) {
  .manifest {
    grid-template-columns: 1fr;
  }

  .manifest__reader {
    display: none;
  }
}

.journey__closer {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
  color: var(--ink);
}

.manifest__list > .manifest__row:nth-child(2) { transition-delay: 70ms; }
.manifest__list > .manifest__row:nth-child(3) { transition-delay: 140ms; }
.manifest__list > .manifest__row:nth-child(4) { transition-delay: 210ms; }
.manifest__list > .manifest__row:nth-child(5) { transition-delay: 280ms; }
.manifest__list > .manifest__row:nth-child(6) { transition-delay: 350ms; }

/* ---- Team, inline on the homepage ---- */

.team {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 12vh 6vw;
}

.team__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.team__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.team__heading-accent {
  color: var(--teal);
}

.team__lede {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 52ch;
  color: var(--ink-dim);
}

.team__grid {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.5rem;
  perspective: 1200px;
}

.team__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  perspective: 1400px;
}

/* ---- Two-sided badge: turns over to reveal the member ---- */

.badge-flip {
  width: 100%;
  max-width: 300px;
  /* Fill the grid row so both member cards match the taller one's height
     (role text wraps to a different line count per member). */
  flex: 1;
  transform-style: preserve-3d;
  transition: transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* While the pointer drives it, the card must track instantly, not lag. */
.badge-flip.is-tilting {
  transition: none;
}

.badge-flip__inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

/* Without JS the front is simply face-up; JS turns it away, then back. */
.js .badge-flip__inner {
  transform: rotateY(180deg);
}

.js .team__card.is-visible .badge-flip__inner {
  transform: rotateY(0deg);
}

.team__grid > .team__card:nth-child(2) .badge-flip__inner {
  transition-delay: 150ms;
}

.team__grid > .team__card:nth-child(3) .badge-flip__inner {
  transition-delay: 300ms;
}

.badge-flip__face {
  grid-area: 1 / 1;
  display: flex;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.badge-flip__face--back {
  transform: rotateY(180deg);
}

.badge-flip__face > .badge {
  max-width: none;
  height: 100%;
  transition: box-shadow 300ms ease;
}

.badge-flip:hover .badge {
  box-shadow: 0 34px 62px -30px rgba(0, 0, 0, 0.9);
}

/* Metallic sheen: a subtle silvery light band that tracks the pointer,
   like brushed steel or a laminated ID card catching light as it tilts.
   Low-alpha cool-white stops blended with `screen` keep it understated
   against the dark card face. Pointer-driven only, so it rides the same
   tilt effect's guard clauses (no touch, no reduced motion). */
.badge-flip__face > .badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(214, 226, 230, 0.05) 42%,
    rgba(228, 238, 242, 0.12) 49%,
    rgba(236, 244, 248, 0.14) 51%,
    rgba(228, 238, 242, 0.12) 53%,
    rgba(214, 226, 230, 0.05) 60%,
    transparent 72%
  );
  background-size: 220% 220%;
  background-position: var(--shine-x, 50%) var(--shine-y, 50%);
  opacity: 0;
  transition: opacity 250ms ease;
  mix-blend-mode: screen;
  pointer-events: none;
}

.badge-flip.is-tilting .badge-flip__face > .badge::after {
  opacity: 1;
}

.badge--back {
  justify-content: flex-start;
}

.badge__magstripe {
  height: 52px;
  margin-top: 1.4rem;
  background: linear-gradient(180deg, #0B0C0C 0%, #171919 55%, #0E0F0F 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.badge__backnote {
  padding: 1.4rem 1.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.badge__backnote p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.badge__backnote-title {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Both faces pin the barcode to the bottom edge, so a stretched (shorter-
   content) card absorbs the slack above the barcode, not below it. */
.badge-flip__face .badge__barcode {
  margin-top: auto;
}

.team__bio {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 46ch;
  color: var(--ink-dim);
}

/* Cards deal in from a tilt, one after the other. Must sit after the base
   .js-reveal rules so it wins on equal specificity. */
.js .js-reveal--card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal--card.is-visible {
  opacity: 1;
  transform: none;
}

.team__grid > .js-reveal--card:nth-child(2) {
  transition-delay: 150ms;
}

.team__grid > .js-reveal--card:nth-child(3) {
  transition-delay: 300ms;
}

/* ---- CTA band ---- */

.cta {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 12vh 6vw 14vh;
  text-align: center;
}

.cta__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.cta__text {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 44ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* ---- Connect: WhatsApp / LinkedIn ---- */

.connect {
  padding: 10vh 6vw 12vh;
  text-align: center;
}

.connect__inner {
  /* Wide enough for the three contact cards to sit in one row. */
  max-width: 900px;
  margin: 0 auto;
}

.connect__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.connect__heading-accent {
  color: var(--teal);
}

.connect__lede {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--ink-dim);
}

/* One row of three, always: the cards shrink together rather than wrapping
   into a 2+1 arrangement, and below 860px they stack as a single column. */
.connect__links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.connect__link {
  flex: 1 1 0;
  max-width: 280px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: var(--bg-2);
  text-decoration: none;
}

@media (max-width: 860px) {
  .connect__links {
    flex-direction: column;
    align-items: center;
  }

  .connect__link {
    flex: none;
    width: 100%;
  }
}

/* .js-reveal--card's own transition shorthand outranks a single-class rule
   here (two classes vs. one), so the hover transition has to be merged into
   an equally-specific override instead of declared separately. */
.js .connect__link.js-reveal--card {
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease, background-color 160ms ease;
}

/* Hover-gated so a tap on touch devices doesn't leave the card stuck in
   its hover state after returning from the new tab. */
@media (hover: hover) {
  .connect__link:hover {
    border-color: var(--line-hover);
    background: var(--teal-dim);
  }
}

.connect__link-icon {
  display: block;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin: 0 auto 0.75rem;
  color: var(--ink);
  transition: color 160ms ease;
}

/* The LinkedIn mark fills its viewBox edge to edge while the WhatsApp glyph
   is circular, so squares read optically larger; inset it to balance. */
.connect__link-icon--linkedin {
  padding: 1px;
}

@media (hover: hover) {
  .connect__link:hover .connect__link-icon {
    color: var(--teal);
  }
}

.connect__link:focus-visible .connect__link-icon {
  color: var(--teal);
}

.connect__link-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.connect__link-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  color: var(--ink-dim);
}

.connect__links > .connect__link:nth-child(2) {
  transition-delay: 90ms;
}

/* ---- Page head (team / register) ---- */

.pagehead {
  max-width: 1240px;
  margin: 0 auto;
  padding: 7vh 6vw 6vh;
}

.pagehead__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pagehead__title-accent {
  color: var(--teal);
}

.pagehead__lede {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 54ch;
  color: var(--ink-dim);
}

/* ---- Sign-up form ---- */

.signup {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 8vh 6vw 12vh;
}

.form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.field {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Honeypot: off-screen via position, not display:none, so bots that fill
   every input in the DOM (rather than walking the accessibility tree)
   still find and fill it. Hidden from sighted users and assistive tech
   alike via aria-hidden + tabindex="-1" on the markup itself. */
.field--trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 0;
}

.field__optional {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-dim);
}

.field__hint {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 60ch;
}

.field__error {
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--danger);
}

.input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--control-line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.input::placeholder {
  color: var(--ink-dim);
}

.input:hover {
  border-color: var(--line-hover);
}

.input:focus {
  border-color: var(--teal);
  background: var(--bg-0);
}

.input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.choices {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.choices--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.choices--three {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice {
  position: relative;
}

.choice__box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.choice__box:hover {
  border-color: var(--line-hover);
}

.choice__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.choice__note {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-dim);
}

.choice input:checked + .choice__box {
  border-color: var(--teal);
  background: var(--teal-dim);
}

.choice input:checked + .choice__box .choice__title {
  color: var(--teal);
}

.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.tag {
  position: relative;
}

.tag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag__box {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-dim);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.tag__box:hover {
  border-color: var(--line-hover);
  color: var(--ink);
}

.tag input:checked + .tag__box {
  border-color: var(--teal);
  background: var(--teal-dim);
  color: var(--teal);
}

.tag input:focus-visible + .tag__box {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.form__error {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--danger);
  padding: 1rem 1.15rem;
  border: 1px solid var(--danger-line);
  border-radius: 10px;
  background: var(--danger-bg);
}

.form__error-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.form__error-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__error-list a {
  color: var(--danger);
  text-underline-offset: 3px;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.form__note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 34ch;
}

/* ---- Success: your printed badge ---- */

.success {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.success__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.success__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.125rem, 4vw, 2.625rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.success__text {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 48ch;
}

.success .badge {
  margin: 0.5rem 0;
}

.success__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.success__edit {
  background: none;
  border: 0;
  padding: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.success__edit:hover {
  color: var(--teal);
}

/* ---- Next steps: the 1-2-3 after joining ----
   Three panels read left to right as one sequence, joined by hand-off
   chevrons. Step 1 (the community) carries the screen's only primary
   button; the ol gives screen readers the same ordering the arrows give
   sighted visitors. */
.steps {
  list-style: none;
  width: 100%;
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 3rem;
  row-gap: 2.25rem;
}

.steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.5rem 1.25rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  text-align: center;
}

/* The hand-off chevron between panels. Pure CSS, so the CSP stays clean. */
.steps__item + .steps__item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(-1.5rem - 6px);
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--ink-faint);
  border-right: 2px solid var(--ink-faint);
  transform: translateY(-50%) rotate(45deg);
}

.steps__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--teal-line);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.steps__title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.steps__note {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-dim);
}

/* Actions sit on a shared baseline across the three panels; the extra
   bottom padding on the panels reserves the status line's slot so the
   baseline holds even after the download confirmation appears. */
.steps__action {
  margin-top: auto;
}

/* Download confirmation: announced via role="status", invisible until set.
   Absolutely positioned into the reserved slot so panel two's button never
   drifts off the shared baseline. */
.steps__status {
  position: absolute;
  bottom: 0.7rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Stacked panels hand off downward instead. */
  .steps__item + .steps__item::before {
    top: calc(-1.125rem - 5.5px);
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

/* ---- Below this width the fixed-ish columns stop being readable ---- */

@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    row-gap: 3.5rem;
  }

  .hero__badge-wrap {
    justify-self: center;
    padding: 0;
  }

  .hero__badge-wrap .badge,
  .hero__badge-back {
    max-width: 280px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .about__divider {
    display: none;
  }

  .team__grid {
    gap: 3rem;
  }
}

/* ---- Below this width, nav and CTA buttons need dedicated tuning ---- */

@media (max-width: 600px) {
  /* The wrapped two-row topbar is ~118px tall; anchor jumps and JS focus
     scrolls must clear it, not the desktop bar's 96px. */
  html {
    scroll-padding-top: 8.5rem;
  }

  .topbar {
    flex-wrap: wrap;
    row-gap: 0.75rem;
    padding: 1.25rem 5vw 1rem;
  }

  .topbar__links {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    row-gap: 0.35rem;
    gap: 0.35rem;
  }

  /* Indent shrinks so the row bodies keep a readable measure at 320px. */
  .manifest__body {
    padding-left: 2rem;
  }

  .footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.75rem;
    margin: 0 -0.75rem;
  }

  .topbar__link {
    padding: 0 0.7rem;
    font-size: 0.875rem;
  }

  .btn {
    padding: 0.8rem 1.25rem;
  }

  .hero__actions,
  .cta__actions {
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    justify-content: center;
    text-align: center;
  }

  .hero__cue {
    justify-content: center;
  }
}

/* 601-620px: the one-row topbar no longer fits four links + the mark, so
   allow the same wrap the 600px block uses. No-op at or above 621px. */
@media (max-width: 620px) {
  .topbar {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .topbar__links {
    width: 100%;
    justify-content: center;
  }
}

/* A wrapped links row can go to a third line on very narrow phones;
   anchor jumps need even more clearance there. */
@media (max-width: 360px) {
  html {
    scroll-padding-top: 11rem;
  }
}

/* Under ~700px only one team column ever fits, so pinning the grid to one
   column is a no-op except at <=320px, where the 300px track minimum was
   overflowing the padded container. */
@media (max-width: 700px) {
  .team__grid {
    grid-template-columns: 1fr;
  }
}

/* Below the manifest collapse the reader card is gone and each row shows
   its own copy, so the row buttons have nothing to drive: drop the button
   affordances (cursor, hover tint, scanned lamp, active highlight). */
@media (width < 861px) {
  .manifest__btn {
    cursor: default;
  }

  .manifest__btn::after {
    display: none;
  }

  .manifest__btn:hover {
    background-color: transparent;
  }

  .manifest__btn:hover,
  .manifest__row.is-active .manifest__btn {
    color: var(--ink-dim);
  }

  .manifest__row.is-active .manifest__icon,
  .manifest__btn:hover .manifest__icon {
    color: var(--ink-faint);
  }

  /* Keyboard focus still brightens the row like it does for rows 2-6. */
  .manifest__row.is-active .manifest__btn:focus-visible {
    color: var(--ink);
  }
}

/* Legacy fallbacks for the two range-syntax manifest queries: Safari and
   iOS before 16.4 drop range syntax entirely, which left old phones with
   the two-column desktop manifest crushing the list at 320px. Identical
   rules over identical ranges, so modern browsers render no differently. */
@media (max-width: 860px) {
  .manifest {
    grid-template-columns: 1fr;
  }

  .manifest__reader {
    display: none;
  }
}

@media (min-width: 861px) {
  .js .manifest__body {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* The absolutely-positioned download status wraps to two lines on very
   narrow phones; give it a deeper slot so it never touches the button. */
@media (max-width: 400px) {
  .steps__item {
    padding-bottom: 3.4rem;
  }
}

/* Touch devices: lift the smallest tap targets to a usable height without
   moving anything for mouse/trackpad users. */
@media (pointer: coarse) {
  .topbar__link,
  .topbar__mark {
    min-height: 44px;
  }

  .stats__source {
    font-size: 0.8125rem;
    position: relative;
    padding: 0.7rem 0.25rem;
    margin: -0.7rem -0.25rem; /* hit area grows; the line box does not */
  }

  .gap__stat > .stats__source {
    margin-top: 0.175rem; /* keeps the visual 0.875rem offset under the bars */
    margin-left: -0.25rem;
  }

  .success__edit {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .form__error-list {
    gap: 0.1rem;
  }

  .form__error-list a {
    display: inline-block;
    padding: 0.3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .js-reveal,
  .js .js-reveal--card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .badge-flip,
  .badge-flip__inner,
  .badge-flip__face > .badge {
    transition: none;
  }

  .js .badge-flip__inner,
  .js .team__card.is-visible .badge-flip__inner {
    transform: none;
  }

  .hero__cue .icon {
    animation: none;
  }
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.footer a {
  color: var(--ink-dim);
  text-underline-offset: 3px;
}

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

/* ---- Legal / policy pages ---- */

.legal {
  max-width: 72ch;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 1rem;
}

.legal p,
.legal li {
  color: var(--ink-dim);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.legal ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal a {
  color: var(--teal);
}
