/* ==========================================================================
   LAKSHYA — Paryavaran Water Solution and Welfare Society
   Direction: Institutional Minimal, with a Field & Systems signature motif.

   The full logo gradient (gold -> pink -> teal -> sky) appears in exactly one
   place on this site: the logo mark itself. Everything else works from ink,
   paper, one teal accent, and one coral CTA.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #14171f;
  --ink-soft: #565a6b;
  --paper: #f7f6f2;
  --surface: #fffefb;
  --line: #e4e2d9;
  --line-dark: rgba(255, 255, 255, 0.14);
  --teal: #1f8f63;
  --teal-deep: #146449;
  --coral: #e85c56;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;

  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1180px;

  /* Annual-report pacing: 7-8rem of air between sections, tightened on small
     screens rather than scaled linearly. */
  --section-y: clamp(4.25rem, 9vw, 7.5rem);
  --gap: clamp(2rem, 4vw, 3.5rem);

  --header-h: 78px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: var(--teal-deep);
  text-decoration-color: rgba(20, 100, 73, 0.35);
  text-underline-offset: 3px;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   3. Typography — Newsreader for display, Open Sans for body/UI.
   Big jumps between levels so hierarchy reads without colour or weight tricks.
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.prose {
  color: var(--ink-soft);
  max-width: 68ch;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* Section eyebrow: upright bold Open Sans label + the mark-derived arch glyph in
   place of the usual dash. Italic serif is reserved for an actual pull-quote and
   is deliberately not used for routine section labels. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--teal-deep);
  margin: 0 0 1.1rem;
}

.eyebrow .glyph {
  flex: none;
  width: 24px;
  height: auto;
  overflow: visible;
}

.eyebrow .glyph path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow--onink {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow--onink .glyph path {
  stroke: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.section--ruled {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head p {
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--top > :first-child {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

/* --------------------------------------------------------------------------
   5. Buttons — rectangular-leaning, 6px radius, no lift-and-shadow.
   Coral is reserved for the single primary call to action on a page.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn--primary {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.btn--primary:hover {
  background: #d44943;
  border-color: #d44943;
  color: #fff;
}

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

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn--outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--sm {
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   6. Top bar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 40px;
  padding-block: 0.35rem;
}

.topbar__org {
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 600;
}

.topbar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.topbar__contact a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height 0.2s ease;
}

.site-header.is-stuck .site-header__inner {
  min-height: 64px;
}

.brand {
  display: block;
  flex: none;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 46px;
  transition: height 0.2s ease;
}

.site-header.is-stuck .brand img {
  height: 38px;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

/* A single teal hairline — not a gradient sweep. */
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__list a[aria-current="page"] {
  color: var(--teal-deep);
}

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.16s ease;
}

.nav-toggle span {
  margin-inline: auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Hero — dark ink ground carrying the stat counters as its subject
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  isolation: isolate;
}

.hero__inner {
  max-width: 44rem;
}

.hero h1 {
  color: #fff;
  font-weight: 500;
}

.hero p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.0938rem;
  max-width: 40rem;
}

/* Counters are the hero's visual centrepiece: real numbers at real weight, so
   the dark ground is carrying content rather than just setting a mood. */
.hero__stats {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line-dark);
}

/* The single contour instance on the site: a low-opacity backdrop sitting
   behind the counters only — height-capped and faded out at the edges, never a
   full-section cover fill. */
.hero__stats::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 22%;
  right: -4%;
  bottom: -2.5rem;
  height: 240px;
  background: url("assets/contours-dark.svg") right center / cover no-repeat;
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 32%,
    #000 78%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 32%,
    #000 78%,
    transparent
  );
}

.hero__stat {
  min-width: 0;
}

.hero__stat .stat__num {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  color: #fff;
}

.hero__stat .stat__tick {
  margin-inline: 0;
}

.hero__stat .stat__label {
  color: rgba(255, 255, 255, 0.66);
}

/* --------------------------------------------------------------------------
   8. Page banner (About / Services / Manthan / Contact)
   -------------------------------------------------------------------------- */
.banner {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.banner h1 {
  margin-bottom: 0.35rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.breadcrumb li:not(:first-child)::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}

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

/* --------------------------------------------------------------------------
   9. Section diagrams — each built from its own section's copy, in the
   arch-glyph's single-weight line style. Inline SVG so they inherit page fonts
   and tokens; no shared background pattern.
   -------------------------------------------------------------------------- */
.diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.diagram svg {
  width: 100%;
  height: auto;
}

.diagram .dg-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.diagram .dg-mark {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram .dg-mark--scaled {
  stroke-width: 1.2;
}

.diagram .dg-node {
  fill: var(--surface);
  stroke: var(--teal);
  stroke-width: 1.5;
}

.diagram .dg-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   10. Feature tiles (Home about block)
   -------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.tile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
}

.tile__tick {
  flex: none;
  width: 14px;
  height: 2px;
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   11. Cards — hairline border, no drop shadow, 6px radius
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

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

.card__num {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-deep);
  letter-spacing: 0.04em;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

/* Same rule-under-label structure as .card__num, but sized to carry a section
   title (Our Mission / Our Vision / Our Values) rather than a numeral. */
.card__label {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.card__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 1.15rem;
  color: var(--teal);
}

.card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3,
.card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

/* Services are grouped into three named clusters rather than one flat grid, so
   the eight areas read as a system. Card width stays constant across clusters. */
.cluster + .cluster {
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.cluster__label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.cluster__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Mission — the one saturated block on the site, carrying the five
   commitments as a connected progression rather than a flat list.
   -------------------------------------------------------------------------- */
.section--teal {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.82);
}

.section--teal h2 {
  color: #fff;
}

.section--teal .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.section--teal .eyebrow .glyph path {
  stroke: rgba(255, 255, 255, 0.72);
}

.track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem;
  position: relative;
}

/* The connecting line: drawn behind the numerals and revealed left-to-right on
   scroll, so the five commitments read as a sequence. */
.track::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1.125rem;
  left: 0;
  /* Stops exactly at the last step's numeral (one column width in) rather than
     running off past it. */
  right: calc(20% - 1.4rem);
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.track.is-visible::before {
  transform: scaleX(1);
}

.track__step {
  position: relative;
  z-index: 1;
}

/* Sits on the connecting line and masks it, so the line reads as running
   between the steps rather than through them. */
.track__num {
  display: inline-flex;
  align-items: center;
  /* Fixed height so the connector can be centred on it deterministically. */
  height: 2.25rem;
  padding-right: 0.7rem;
  background: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.track__text {
  margin: 0.9rem 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   13. Stat counters — solid ink numerals with a small teal underline tick
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--paper);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__tick {
  width: 28px;
  height: 2px;
  background: var(--teal);
  margin: 1rem auto 0.85rem;
}

.stat__label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   14. Leadership — arch glyph as a quiet watermark
   -------------------------------------------------------------------------- */
.leadership {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* "Linked partners" is literally the subject of this section, so the arch glyph
   sits behind it — large, monochrome, and barely there. */
.leadership::before {
  content: "";
  position: absolute;
  left: -4%;
  bottom: 7%;
  z-index: -1;
  width: min(32vw, 380px);
  aspect-ratio: 64 / 36;
  background: url("assets/arch-glyph.svg") center / contain no-repeat;
  opacity: 0.05;
}

/* The chairman's photo is the one real photograph in the project, so on the
   About page it runs large and leads the page instead of sitting in a small
   card further down. */
.portrait {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.portrait__badge {
  position: absolute;
  left: 0;
  bottom: 1.75rem;
  z-index: 1;
  margin: 0;
  padding: 0.65rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.portrait__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin: 1.15rem 0 0;
}

.portrait__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.person__role {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  padding-block: clamp(3.25rem, 7vw, 5rem);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.4rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 44ch;
}

.cta-band .btn-row {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   16. Contact page
   -------------------------------------------------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.info-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-card h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.info-card__value {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.info-card__value a {
  color: inherit;
  text-decoration: none;
}

.info-card__value a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

/* Embeds: the Google Form and the map both sit inside a plain hairline frame
   so they read as part of the page, not as bolted-on widgets. */
.embed-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.embed-frame iframe {
  width: 100%;
  border: 0;
}

/* Google serves a short title-and-button card here rather than the full form
   (it hands sign-in off to a new tab), so the frame is sized to that card. A
   tall min-height would leave a large empty area under it. Paper-toned so a
   slow embed doesn't flash a grey slab mid-page. */
.form-embed iframe {
  height: 400px;
  background: var(--surface);
}

.map-embed iframe {
  height: 440px;
  filter: saturate(0.72);
}

.embed-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9375rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: var(--gap);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer__logo {
  width: auto;
  height: 58px;
  margin-bottom: 1.5rem;
}

.footer__blurb {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.68);
}

.footer__col h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer__col li + li {
  margin-top: 0.6rem;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__contacts li {
  display: grid;
  gap: 0.15rem;
}

.footer__contacts span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom p {
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* --------------------------------------------------------------------------
   18. Accessibility & motion
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .hero__stats::before {
    left: 8%;
    height: 200px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  /* Anchored to the header itself rather than the viewport, so the drawer stays
     flush with it whether the header is at rest or in its shrunken stuck state. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    display: block;
  }

  .site-nav__list li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav__list a {
    display: block;
    padding-block: 0.9rem;
    font-size: 1rem;
  }

  .site-nav__list a::after {
    display: none;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split--top > :first-child {
    position: static;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Progression runs vertically, with the connector drawing top-to-bottom. */
  .track {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 2.75rem;
  }

  .track::before {
    top: 0;
    bottom: 0;
    left: 1rem;
    right: auto;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
  }

  .track.is-visible::before {
    transform: scaleY(1);
  }

  .track__num {
    justify-content: center;
    margin-left: -2.75rem;
    width: 2rem;
    height: auto;
    padding: 0.25rem 0;
  }

  .track__text {
    margin-top: 0.35rem;
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 68px;
  }

  .topbar__org {
    display: none;
  }

  .card-grid--4,
  .tiles {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

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

  /* The form title wraps to several lines on a phone, so the card runs taller. */
  .form-embed iframe {
    height: 520px;
  }
}
