/* ============================================================================
   CHES — v2 components
   ========================================================================= */

/* ---------- utility bar ---------- */

/* The v2 version of this was a full-width dark band carrying phone and email
   hard left and a registration tag hard right, with a very wide dead gap
   between them — 40px of chrome stacked on top of a 78px header before a
   visitor reached any content, and the gap was the part that read as broken.
   No peer NGO runs a separate utility strip; they fold contact into the header.

   So this is now a right-aligned contact group INSIDE the header. Same
   information, no second bar, no gap to explain. */
/* Dark, not white. A white strip above a white header separated only by a
   hairline reads as one bar that someone accidentally cut in half — the rule
   is doing structural work that a colour change should be doing. Ink gives the
   masthead a real shelf to sit on and lets the marigold CTA below it carry the
   only warm note in the header. */
.utility-bar {
  background: var(--ink);
  color: color-mix(in srgb, var(--ground) 74%, var(--ink));
  border-bottom: none;
  font-size: 0.8rem;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* everything grouped right — no gap to explain */
  gap: 1.5rem;
  min-height: 34px;
}
.utility-bar a { color: color-mix(in srgb, var(--ground) 84%, var(--ink)); white-space: nowrap; }
.utility-bar a:hover { color: var(--brand-lit); text-decoration: none; }

/* The registration tag is a trust signal, not a contact detail. It was the far
   item in a hard-left / hard-right split, and that split — not the content —
   was what read as broken. It belongs in the credentials block; here it just
   manufactured a hole across the top of every page. */
.utility-bar__tag { display: none; }

@media (max-width: 760px) {
  /* On a phone this strip is pure overhead above an already-tight header. */
  .utility-bar { display: none; }
}

/* ---------- header ---------- */

/* Fully opaque, deliberately. This was a translucent frosted-glass panel
   (color-mix at 88-96% + backdrop-filter blur) — on any browser/GPU combo
   where the blur doesn't render, that fallback is body copy bleeding straight
   through a bar whose only job is to sit above the page and block it. A sticky
   nav has one hard requirement before it has a look, and this failed it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-condensed {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
  transition: min-height 0.3s var(--ease);
}
.site-header.is-condensed .nav { min-height: 62px; }

.nav__brand { display: flex; align-items: center; gap: 0.7rem; color: inherit; }
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  height: 44px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.site-header.is-condensed .nav__logo { height: 36px; }
.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.nav__brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--neutral-ink);
  margin-top: 0.22rem;
}

.nav__links { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.nav__links > a {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.nav__links > a:hover { text-decoration: none; color: var(--brand-ink); }
/* Underline grows from the centre — scaleX only. */
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.28rem;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__links .btn { margin-left: 0.6rem; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-firm);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.2rem;
    padding: 2rem;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.5s var(--ease-soft);
    z-index: 120;
  }
  .nav__links.is-open { transform: none; }
  .nav__links > a { color: var(--ground); font-size: 1.35rem; font-family: var(--font-display); padding: 0.7rem 0; }
  .nav__links > a:hover { color: var(--brand-lit); }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links .btn { margin: 1.2rem 0 0; text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }

/* Brass fill. Forest label — verified 4.52:1, which bone would not have hit. */
.btn--primary { background: var(--brand); color: var(--ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 84%, var(--ink)); color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--ground); }
.btn--dark:hover { background: var(--ink-deep); color: var(--ground); }

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

/* Ghost buttons invert on every dark ground. `.cta` is an ink block that sits
   inside a light .section, so it must be listed explicitly — without it the
   label renders ink-on-ink and the button disappears entirely. */
.section--dark .btn--ghost, .hero .btn--ghost, .cta .btn--ghost { color: var(--ground); border-color: color-mix(in srgb, var(--ground) 42%, transparent); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta .btn--ghost:hover { background: var(--ground); color: var(--ink); border-color: var(--ground); }

/* The hero ghost button is the one that sits on an UNCONTROLLED background — a
   photograph, not a flat colour. White label on a transparent fill works while
   the scrim behind it is dark, and disappears the moment the button lands on a
   bright patch of the image. On mobile it lands on stacked white medicine
   cartons and is effectively invisible. A translucent ink fill guarantees the
   label always has something dark behind it, whatever the photo does there.
   No backdrop-filter: a GPU that fails to render the blur falls back to fully
   transparent, which is the exact failure this is meant to prevent. */
.hero .btn--ghost { background: color-mix(in srgb, var(--ink) 55%, transparent); }

/* Arrow slides on hover. */
.btn__arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Text link with a rule that wipes in from the left. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-ink);
  position: relative;
  padding-bottom: 3px;
}
.link-arrow:hover { text-decoration: none; }
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow span { transition: transform 0.35s var(--ease); display: inline-block; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  /* svh = the SMALL viewport height: the space left when the mobile browser's
     address bar and toolbar are both showing. Plain vh measures the viewport as
     if that chrome were hidden, so on a phone an 88vh hero is taller than the
     screen actually is and pushes the CTA below the fold on first paint — the
     visitor lands on a photo with no visible call to action. Declared second so
     browsers without svh keep the vh line above. */
  min-height: clamp(560px, 88svh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }

/* Carousel. Every slide is stacked in the same box and only opacity changes —
   no layout, no reflow, so it stays cheap while the page is being read. Slides
   after the first sit at opacity 0 rather than display:none so the browser
   still decodes them ahead of their turn and the first change is not a flash
   of empty frame. */
.hero__media[data-slides] img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
}
.hero__media[data-slides] img.is-active { opacity: 1; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight overscale gives the parallax translate somewhere to travel without
     exposing an edge. */
  transform: scale(1.12);
  will-change: transform;
}
/* Two scrims, not one, and the horizontal is the important one.
   A purely vertical scrim assumes the photo is calm wherever the type happens
   to sit. It isn't: these are real field photographs with bright yellow Hindi
   banners running through them, and the eyebrow line was landing directly on
   one — warm text on a warm banner, effectively invisible. The horizontal pass
   guarantees the left column is dark whatever the photograph does there, which
   is how every photo-led NGO hero handles it. The vertical pass then seats the
   type at the foot. Together they still leave the right side of the image
   readable as a photograph. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      color-mix(in srgb, var(--ink) 88%, transparent) 0%,
      color-mix(in srgb, var(--ink) 74%, transparent) 38%,
      color-mix(in srgb, var(--ink) 26%, transparent) 72%,
      transparent 100%),
    linear-gradient(to top,
      color-mix(in srgb, var(--ink) 72%, transparent) 0%,
      color-mix(in srgb, var(--ink) 40%, transparent) 40%,
      color-mix(in srgb, var(--ink) 20%, transparent) 75%,
      color-mix(in srgb, var(--ink) 38%, transparent) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(3rem, 8vw, 6rem); }
.hero h1 { color: var(--ground); max-width: 16ch; margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--brand-lit); }
.hero__lede {
  color: color-mix(in srgb, var(--ground) 84%, var(--ink));
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
/* White, not marigold. Over a photograph the accent colour has to compete with
   whatever is actually in the frame — and in these photos that is a yellow
   banner. White is the only foreground that is safe against an image we don't
   control. The marigold survives as the short rule before it. */
.hero .eyebrow { color: var(--ground); }
.hero .eyebrow::before { background: var(--brand); width: 34px; }

/* Scroll cue */
.hero__cue {
  position: absolute;
  bottom: 1.6rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ground) 62%, transparent);
}
.hero__cue-line {
  width: 1px;
  height: 46px;
  background: color-mix(in srgb, var(--ground) 34%, transparent);
  position: relative;
  overflow: hidden;
}
.hero__cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-lit);
  animation: cue 2.4s var(--ease-soft) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}
@media (max-width: 760px) { .hero__cue { display: none; } }

/* ---------- ticker: continuous marquee of programme names ---------- */

.ticker {
  background: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--ground) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ground) 12%, transparent);
  overflow: hidden;
  padding-block: 1.05rem;
}
.ticker__rail {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker 42s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__rail { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  color: color-mix(in srgb, var(--ground) 74%, var(--ink));
  white-space: nowrap;
}
.ticker__item::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
/* Two identical groups sit side by side; translating exactly -50% swaps the
   second into the first's place, so the loop has no visible seam. */
@keyframes ticker { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* ---------- association strip ---------- */

.assoc { padding-block: clamp(2.4rem, 5vw, 3.6rem); background: var(--ground); }
.assoc__label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--neutral-ink);
  margin: 0 0 1.5rem;
  text-align: center;
}
.assoc__row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.assoc__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem clamp(1rem, 3vw, 2.2rem);
  font-family: var(--font-display);
  font-size: clamp(0.94rem, 1.3vw, 1.08rem);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  border-left: 1px solid var(--border);
}
.assoc__item:first-of-type { border-left: 0; }
.assoc__item svg { color: var(--brand); flex-shrink: 0; }
@media (max-width: 800px) {
  .assoc__row { flex-direction: column; align-items: center; gap: 1rem; }
  .assoc__item { border-left: 0; }
}

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-firm); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand-ink);
  display: block;
  margin-bottom: 0.9rem;
}
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, var(--raised));
  color: var(--brand-ink);
  margin-bottom: 1.1rem;
}
/* Link cards get the rule that wipes across the top edge. */
a.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease);
}
a.card:hover::before { transform: scaleX(1); }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }

/* ---------- feature card: the large programme tiles ---------- */

.feature {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  min-height: 420px;
  color: var(--ground);
}
.feature:hover { text-decoration: none; }
.feature__img { position: absolute; inset: 0; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 0.9s var(--ease-soft); }
.feature:hover .feature__img img { transform: scale(1.08); }
.feature__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--ink) 95%, transparent) 8%,
    color-mix(in srgb, var(--ink) 55%, transparent) 55%,
    color-mix(in srgb, var(--ink) 25%, transparent) 100%);
  transition: opacity 0.5s var(--ease);
}
.feature:hover .feature__img::after { opacity: 0.86; }
.feature__body { position: relative; z-index: 1; padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; }
.feature__body h3 { color: var(--ground); font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 0.45rem; }
.feature__body p { color: color-mix(in srgb, var(--ground) 78%, var(--ink)); margin-bottom: 0.9rem; font-size: 0.95rem; }
.feature__list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.feature__list li {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 0.24rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--ground) 28%, transparent);
  border-radius: 100px;
  color: color-mix(in srgb, var(--ground) 82%, var(--ink));
}
.feature .link-arrow { color: var(--brand-lit); }
/* All four programme tiles are now the same height. The top two carried
   `--tall` at 480px against 340px for the bottom two, which read as an accident
   rather than as a hierarchy — the four areas are peers, so ranking two of them
   by size was saying something untrue about the programmes. */
.feature--tall { min-height: 420px; }
.feature--tall .feature__body { min-height: 420px; }
@media (max-width: 880px) { .feature--tall, .feature--tall .feature__body { min-height: 340px; } }

/* ---------- stat block ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: color-mix(in srgb, var(--ground) 16%, transparent); }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--ink);
  padding: clamp(1.8rem, 3.4vw, 2.8rem) clamp(1rem, 2vw, 1.6rem);
  text-align: center;
}
.stat__figure {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ground);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ground) 62%, var(--ink));
  line-height: 1.45;
}
.stat__rule { display: block; width: 24px; height: 2px; background: var(--brand); margin: 0 auto 1rem; }

/* ---------- photo card ---------- */

.photo-card { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); cursor: zoom-in; }
/* Native 912x638 frame — a 4/3 crop was slicing the top off banners and the
   edges off group shots that were never composed for a squarer frame. */
.photo-card img { width: 100%; aspect-ratio: var(--photo-ratio); object-fit: cover; transition: transform 0.85s var(--ease-soft); }
.photo-card:hover img { transform: scale(1.06); }
.photo-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.1rem 1rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ground);
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 92%, transparent), transparent);
  transform: translateY(0);
}

/* ---------- accordion ---------- */

.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: var(--ink);
  position: relative;
  transition: color 0.25s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--brand-ink); }
.accordion summary::after,
.accordion summary::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  background: var(--brand-ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.accordion summary::after  { width: 14px; height: 1.5px; transform: translateY(-50%); }
.accordion summary::before { width: 1.5px; height: 14px; right: 10px; transform: translateY(-50%); }
.accordion details[open] summary::before { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.accordion details > div { padding: 0 0 1.5rem; max-width: var(--measure); }
.accordion details > div p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */

.form__group { margin-bottom: 1.1rem; }
.form__group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-ink);
  margin-bottom: 0.45rem;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--border-firm);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  font-family: var(--font-body);
  /* 16px exactly, and not a fraction less. iOS Safari force-zooms the entire
     page the moment a visitor taps any input whose font-size is below 16px,
     then does not zoom back out — so the enquiry form, the one conversion path
     on this site, was lurching sideways on every iPhone. This was 0.96rem
     (~15.4px), which is under the threshold by half a pixel. */
  font-size: 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form__group textarea { min-height: 118px; resize: vertical; }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form__status { font-size: 0.88rem; margin: 0.8rem 0 0; }
.form__fine { font-size: 0.8rem; color: var(--neutral-ink); margin: 1rem 0 0; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink-deep); color: color-mix(in srgb, var(--ground) 72%, var(--ink-deep)); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; }
@media (max-width: 880px) { .footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer { grid-template-columns: 1fr; } }
.footer h3 { color: var(--ground); font-size: 1.3rem; margin-bottom: 0.9rem; }
.footer h4 {
  color: var(--ground);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer p { color: color-mix(in srgb, var(--ground) 62%, var(--ink-deep)); font-size: 0.9rem; }
.footer a { display: block; color: color-mix(in srgb, var(--ground) 76%, var(--ink-deep)); font-size: 0.9rem; padding: 0.28rem 0; transition: color 0.25s var(--ease), transform 0.25s var(--ease); }
.footer a:hover { color: var(--brand-lit); text-decoration: none; transform: translateX(3px); }
.footer__col p a { display: inline; padding: 0; }
.footer__col p a:hover { transform: none; }
.footer__bottom {
  border-top: 1px solid color-mix(in srgb, var(--ground) 12%, transparent);
  padding-block: 1.4rem;
}
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bottom p { margin: 0; font-size: 0.8rem; color: color-mix(in srgb, var(--ground) 48%, var(--ink-deep)); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #0b0b0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox__frame { max-width: min(1100px, 92vw); text-align: center; }
.lightbox__img { max-width: 100%; max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox__caption { color: color-mix(in srgb, #fff 76%, transparent); font-size: 0.88rem; margin: 1rem 0 0; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  border: 0;
  background: color-mix(in srgb, #fff 12%, transparent);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: color-mix(in srgb, #fff 24%, transparent); }
.lightbox__close { top: clamp(0.8rem, 2vw, 1.6rem); right: clamp(0.8rem, 2vw, 1.6rem); width: 44px; height: 44px; font-size: 1.5rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.5rem; }
.lightbox__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__nav[hidden] { display: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker__rail { animation: none; }
  .hero__cue-line::after { animation: none; }
  .hero__media img { transform: none; }
  .card:hover, .photo-card:hover img, .feature:hover .feature__img img,
  .footer a:hover, .link-arrow:hover span, .btn:hover .btn__arrow { transform: none; }
  a.card::before, .link-arrow::after, .nav__links > a:not(.btn)::after { transition: none; }
}
