/* ============================================================
   ASCL — Website (homepage)
   v1.0 · derived from brand guide April 2026
   ============================================================ */

@import url("colors_and_type.css");

/* ---------- Density (driven by Tweaks) ---------- */
:root {
  --measure:        700px;   /* narrow editorial measure         */
  --measure-wide:   1080px;  /* projects + footer grid           */
  --gutter:         48px;
  --hero-vpad:      152px;
  --section-vpad:   112px;
  --section-gap:    96px;
  --body-fs:        16px;
  --body-lh:        1.65;
  --h1-fs:          clamp(20px, 2.7vw, 36px);
  --h1-lh:          1.2;
  --h2-fs:          22px;
  --h3-fs:          24px;
  --header-h:       72px;
}
body.density-compact {
  --hero-vpad:      96px;
  --section-vpad:   72px;
  --section-gap:    64px;
  --h1-fs:          clamp(18px, 2.3vw, 28px);
  --h1-lh:          1.2;
}
body.density-roomy {
  --hero-vpad:      200px;
  --section-vpad:   144px;
  --section-gap:    128px;
  --h1-fs:          clamp(24px, 3.1vw, 42px);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #FFFFFF;
  color: var(--ascl-ink);
  font-family: var(--font-sans);
  font-size: var(--body-fs);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ascl-cyan); color: var(--ascl-paper); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* utility ------------------------------------------------------ */
.wrap        { max-width: var(--measure-wide); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--measure);      margin: 0 auto; padding: 0 var(--gutter); }
.wm-italic   { font-style: italic; }
.wm-cyan     { color: var(--ascl-cyan); font-style: italic; }

/* mono caption + warm-signal marker --------------------------- */
.caption-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ascl-ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.caption-mark::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--ascl-warm);
  display: inline-block;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ascl-slate);
  font-weight: 500;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #FFFFFF;
  color: var(--ascl-ink);
  border-bottom: 1px solid var(--ascl-hairline);
}
.site-header.scrolled {
  background: #FFFFFF;
  border-bottom-color: var(--ascl-hairline);
}
.site-header .brand,
.site-header .nav-links a { color: var(--ascl-ink); }
.site-header .brand .mark path:first-child { stroke: var(--ascl-ink); }
.site-header .nav-links a::after { background: var(--ascl-cyan); }
.site-header .btn { color: var(--ascl-cyan); border-color: var(--ascl-cyan); }
.site-header .wrap {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ascl-ink);
}
.brand .mark { width: 26px; height: auto; flex: 0 0 auto; }
.brand .wm {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.005em;
}
.brand .wm .acro { display: none; }
body.wm-acronym .brand .wm .full { display: none; }
body.wm-acronym .brand .wm .acro { display: inline; letter-spacing: 0.04em; font-weight: 600; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
  justify-content: center;
  font-size: 14px;
}
.nav-links a {
  color: var(--ascl-ink);
  text-decoration: none;
  letter-spacing: 0.005em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ascl-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-standard);
}
.nav-links a:hover { color: var(--ascl-cyan); }
.nav-links a:hover::after { transform: scaleX(1); background: var(--ascl-cyan); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 9px 20px;
  border: 1px solid var(--ascl-cyan);
  color: var(--ascl-cyan);
  background: transparent;
  text-decoration: none;
  border-radius: var(--radius-2);
  transition: background var(--dur-base) var(--ease-standard),
              color      var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
  cursor: pointer;
}
.btn:hover {
  background: var(--ascl-cyan);
  color: var(--ascl-paper);
  border-color: var(--ascl-cyan);
}
.btn:active { transform: scale(0.99); }
.btn.btn-solid {
  background: var(--ascl-cyan);
  color: var(--ascl-paper);
}
.btn.btn-solid:hover {
  background: var(--ascl-cyan-deep);
  border-color: var(--ascl-cyan-deep);
}
.btn.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ============================================================
   Hero / vision
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + var(--hero-vpad)) 0 var(--hero-vpad);
  overflow: hidden;
  isolation: isolate;
  background: var(--ascl-ink);
  color: var(--ascl-paper);
  border-bottom: 1px solid var(--ascl-ink);
  /* Preserve the section's visual height after halving the headline.
     The original 72px-headline filled ~720px; lock that as a floor and
     centre the smaller headline within it. */
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .eyebrow { color: rgba(244,241,234,0.72); letter-spacing: 0.22em; }
.hero-motif {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity var(--dur-slow) var(--ease-standard);
}
body.no-motif .hero-motif { opacity: 0; }
.hero-motif svg {
  width: min(1480px, 110%);
  height: auto;
  max-height: 92%;
  color: #F4F1EA;
  overflow: visible;
}
.hero-motif .wave  { stroke: currentColor; stroke-width: 1.75; fill: none; opacity: 0.45; }
.hero-motif .axis  { stroke: rgba(244,241,234,0.45); stroke-width: 1; fill: none; }
.hero-motif .wheel-grp {
  transform-origin: center;
  transition: transform 600ms var(--ease-standard);
  will-change: transform;
}
.hero-motif .wheel-circle { fill: var(--ascl-ink); stroke: var(--ascl-cyan); stroke-width: 2; }
.hero-motif .wheel-spoke  { stroke: var(--ascl-cyan); stroke-width: 1.5; }
.hero-motif .wheel-hub    { fill: var(--ascl-cyan); }
.hero-motif .annot {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: rgba(244,241,234,0.85);
  font-weight: 500;
}
.hero-motif .tick  { stroke: rgba(244,241,234,0.6); stroke-width: 1; }
.hero-motif .dash  { stroke: rgba(244,241,234,0.55); stroke-width: 1; stroke-dasharray: 2 5; }

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero .eyebrow { display: block; margin-bottom: 28px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--h1-fs);
  line-height: var(--h1-lh);
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 auto;
  max-width: 52ch;
  text-wrap: balance;
  color: #F4F1EA;
}
.hero .hero-meta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ascl-slate);
  font-weight: 500;
}
.hero .hero-meta span { display: inline-flex; align-items: center; gap: 22px; }
.hero .hero-meta span + span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--ascl-soft-slate);
  border-radius: 50%;
}

/* ============================================================
   Approach
   ============================================================ */
.approach {
  padding: var(--section-vpad) 0;
  border-top: 1px solid var(--ascl-hairline);
}
/* Whichever section comes immediately after the hero drops its top hairline,
   so we don't get a doubled rule against the hero's ink-bottom border. */
.hero + section { border-top: 0; }
body.alternating .approach { background: var(--ascl-paper-deep); }
.approach .caption-mark { margin-bottom: 56px; }
.approach .a-list {
  display: flex;
  flex-direction: column;
}
/* Paired variant: two cards side-by-side with a connector glyph between them.
   Three explicit rows (number, title, body) are defined on the outer grid; each
   card inherits them via subgrid so the title baseline and the paragraph start
   line up across cards regardless of content height. */
.approach .a-list.a-paired {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  column-gap: 32px;
  row-gap: 24px;
}
.a-card {
  padding: 40px 0;
  border-top: 1px solid var(--ascl-hairline);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
}
.a-card:last-child { border-bottom: 1px solid var(--ascl-hairline); }
/* Inside the paired variant, each card uses subgrid so its three children
   (.a-num, h3, .a-body) sit in the outer grid's three rows. Title-row and
   body-row heights are shared, so they line up exactly across both cards. */
.a-paired .a-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / span 3;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ascl-hairline);
  border-bottom: 1px solid var(--ascl-hairline);
}
.a-paired .a-card:nth-of-type(1) { grid-column: 1; }
.a-paired .a-card:nth-of-type(2) { grid-column: 3; }
/* In paired mode, the number row also holds the connector +; centre both so
   they share a visual midline regardless of glyph size. */
.a-paired .a-card .a-num {
  padding-top: 0;
  align-self: center;
  display: grid;
  place-items: center;
  width: 100%;
}
.a-plus {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 200;
  line-height: 1;
  color: var(--ascl-cyan);
  user-select: none;
  padding: 0 8px;
}
/* Body wrapper inside the card — paragraphs stack inside it. */
.a-paired .a-body { display: block; }
.a-paired .a-body p { margin: 0; max-width: 60ch; margin-left: auto; margin-right: auto; }
.a-paired .a-body p + p { margin-top: 14px; }
.a-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.a-card .a-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ascl-slate);
  text-transform: uppercase;
  font-weight: 500;
  padding-top: 8px;
}
.a-card .a-num strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ascl-ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1;
}
.a-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 500;
  margin: 0 0 20px;
  max-width: 28ch;
  color: var(--ascl-ink);
}
.a-card p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ascl-ink);
  margin: 0;
  max-width: 60ch;
}
.a-card p + p { margin-top: 14px; }

/* ============================================================
   How we work
   ============================================================ */
.how {
  padding: var(--section-vpad) 0;
  border-top: 1px solid var(--ascl-hairline);
}
.how .caption-mark { margin-bottom: 56px; }

/* Three pillars row above the lede. Icons sit on the paper surface,
   stroke in ink, cyan reserved for the editorial accent (per brand guide). */
.how .how-pillars {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: end;
  justify-items: center;
  margin: 0 auto 72px;
  max-width: 1080px;
}
.how .pillar-bridge {
  width: 120px;
  height: auto;
  object-fit: contain;
  align-self: center;
  /* Pillars are bottom-aligned (icon + caption stacked); shift the bridge up
     so it lines up with the icon's vertical centre rather than the figure's. */
  margin-bottom: 30px;
}
.how .pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  text-align: center;
}
.how .pillar-icon {
  width: 180px;
  height: 140px;
  object-fit: contain;
}
.how .pillar figcaption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ascl-slate);
  font-weight: 500;
}
@media (max-width: 720px) {
  .how .how-pillars {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .how .pillar-bridge { margin-bottom: 0; }
  .how .pillar-icon { width: 130px; height: 100px; }
}
.how .how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.how .how-lede {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--ascl-ink);
  max-width: 28ch;
  margin: 0 0 32px;
}
.how p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ascl-ink);
  margin: 0 0 20px;
  max-width: 62ch;
}
.how p:last-child { margin-bottom: 0; }
.how em.systems-change { color: var(--ascl-cyan); font-style: italic; }

/* three-column "we bridge" trio --------------------------------- */
.how .triad {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ascl-hairline);
}
.how .triad .col {
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--ascl-hairline);
}
.how .triad .col:last-child { border-right: 0; padding-right: 0; }
.how .triad .col .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ascl-slate);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.how .triad .col h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.how .triad .col p {
  font-size: 14.5px;
  color: var(--ascl-slate);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Projects
   ============================================================ */
.projects {
  padding: var(--section-vpad) 0;
  border-top: 1px solid var(--ascl-hairline);
}
body.alternating .projects { background: var(--ascl-paper-deep); }
.projects .head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 56px;
  gap: 24px;
}
.projects .head .right a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ascl-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--ascl-cyan);
  padding-bottom: 2px;
}
.projects .head .right a:hover { color: var(--ascl-cyan-deep); border-color: var(--ascl-cyan-deep); }
.p-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.p-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ascl-hairline);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-standard);
}
.p-card:hover { box-shadow: 0 4px 24px rgba(36,52,71,0.08); cursor: pointer; }
.p-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.p-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ascl-paper-deep);
}
.p-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-body {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  align-items: center;
}
.p-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ascl-cyan);
  margin: 0 0 16px;
}
.p-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ascl-ink);
  margin: 0;
  max-width: 48ch;
}

/* ============================================================
   Provenance
   ============================================================ */
.provenance {
  padding: 32px 0 48px;
  text-align: center;
}
.provenance-line {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ascl-ink);
  max-width: 36ch;
  margin: 0 auto;
}
.provenance-line .mit {
  color: var(--ascl-warm);
}

/* ============================================================
   CTA
   ============================================================ */
.cta .cta-lead {
  font-size: 1.25em;
  font-weight: 500;
}
.cta {
  padding: var(--section-vpad) 0;
  border-top: 1px solid var(--ascl-hairline);
  text-align: center;
}
.cta .caption-mark { justify-content: center; display: inline-flex; margin-bottom: 36px; }
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 auto 16px;
  max-width: 22ch;
  color: var(--ascl-ink);
}
.cta p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ascl-slate);
  max-width: 72ch;
  margin: 0 auto 36px;
}
.cta .actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   Donate page
   ============================================================ */
.donate-page {
  padding: calc(var(--header-h) + 96px) 0 96px;
}
.donate-page .caption-mark { margin-bottom: 32px; }
.donate-page h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 500;
  margin: 0 0 20px;
  max-width: 22ch;
  color: var(--ascl-ink);
}
.donate-page p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ascl-slate);
  max-width: 56ch;
  margin: 0 0 20px;
}
.donate-page .fiscal-note {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  color: var(--ascl-ink);
  text-align: center;
  max-width: 100%;
  margin: 40px auto 40px;
  line-height: 1.4;
}
.wire-card {
  background: var(--ascl-ink);
  color: var(--ascl-paper);
  border-radius: 12px;
  padding: 40px 48px;
  margin: 48px 0 48px;
}
.wire-card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--ascl-paper);
}
.wire-details {
  margin: 0;
  display: grid;
  gap: 0;
}
.wire-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(244,241,234,0.15);
}
.wire-row:last-child { border-bottom: 1px solid rgba(244,241,234,0.15); }
.wire-row dt {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ascl-slate);
  color: rgba(244,241,234,0.5);
  padding-top: 2px;
}
.wire-row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ascl-paper);
  font-family: var(--font-display);
}
.donate-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 520px;
  border-top: 1px solid var(--ascl-hairline);
  padding-top: 40px;
}
.donate-form .field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.donate-form label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ascl-slate);
  font-weight: 500;
}
.donate-form input[type="text"],
.donate-form input[type="email"],
.donate-form input[type="number"] {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ascl-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ascl-hairline);
  padding: 6px 0 10px;
  width: 100%;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.donate-form input::placeholder {
  color: var(--ascl-soft-slate);
  opacity: 1;
}
.donate-form input:focus {
  border-bottom-color: var(--ascl-cyan);
}
.donate-form .amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.donate-form .amount-presets label {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 9px 18px;
  border: 1px solid var(--ascl-hairline);
  border-radius: var(--radius-2);
  color: var(--ascl-ink);
  background: transparent;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.donate-form .amount-presets input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.donate-form .amount-presets label:hover {
  border-color: var(--ascl-cyan);
  color: var(--ascl-cyan);
}
.donate-form .amount-presets input[type="radio"]:checked + label {
  background: var(--ascl-ink);
  border-color: var(--ascl-ink);
  color: var(--ascl-paper);
}
.donate-form .amount-custom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 8px;
  margin-top: 4px;
}
.donate-form .amount-custom .currency {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ascl-slate);
  padding-bottom: 12px;
}
.donate-form .currency-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ascl-slate);
}
.donate-form .currency-select select {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ascl-ink);
  background: transparent;
  border: 1px solid var(--ascl-hairline);
  border-radius: var(--radius-2);
  padding: 4px 8px;
  text-transform: uppercase;
}
.donate-form .submit-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.donate-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 14px 32px;
  border: 1px solid var(--ascl-cyan);
  background: var(--ascl-cyan);
  color: var(--ascl-paper);
  border-radius: var(--radius-2);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.donate-form button[type="submit"]:hover {
  background: var(--ascl-cyan-deep);
  border-color: var(--ascl-cyan-deep);
}
.donate-form .submit-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ascl-slate);
}
.donate-error {
  background: rgba(123,45,38,0.06);
  border-left: 2px solid var(--ascl-warm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ascl-ink);
  margin-bottom: 24px;
  max-width: 520px;
}
@media (max-width: 980px) {
  .donate-page { padding-top: calc(var(--header-h) + 64px); }
}

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  background: var(--ascl-ink);
  color: var(--ascl-paper);
  padding: 72px 0 32px;
}
.site-foot .wrap {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-foot .brand-blk {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.site-foot .brand-blk .mark { width: 32px; }
.site-foot .brand-blk .mark path:first-child { stroke: var(--ascl-paper); }
.site-foot .brand-blk .wm {
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ascl-paper);
  font-weight: 500;
}
.site-foot .brand-blk .wm .wm-italic { color: var(--ascl-paper); font-style: italic; }
.site-foot .brand-blk .wm .wm-cyan   { color: var(--ascl-cyan); font-style: italic; font-weight: 500; }
.site-foot .brand-blk .reg {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ascl-soft-slate);
  line-height: 1.5;
}
.site-foot .col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ascl-paper);
  margin: 0 0 18px;
  font-weight: 500;
  opacity: 0.7;
}
.site-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-foot ul a {
  color: var(--ascl-paper);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.site-foot ul a:hover { opacity: 1; color: var(--ascl-cyan); }
.site-foot .colophon-row {
  grid-column: 1 / -1;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(244,241,234,0.18);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ascl-soft-slate);
  font-weight: 500;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  :root { --gutter: 28px; }
  .site-header .wrap { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav-links { display: none; }
  .a-card { grid-template-columns: 1fr; gap: 12px; }
  .a-card .a-num strong { display: inline-block; font-size: 24px; margin-right: 8px; }
  .a-card .a-num { padding-top: 0; }
  /* Narrow viewports: drop subgrid alignment, stack the cards single-column. */
  .approach .a-list.a-paired {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    column-gap: 0;
  }
  .a-paired .a-card {
    display: block;
    grid-template-rows: none;
    grid-template-columns: none;
    grid-row: auto;
  }
  .a-paired .a-card:nth-of-type(1),
  .a-paired .a-card:nth-of-type(2) { grid-column: 1; }
  .a-paired .a-body p { max-width: none; }
  .a-plus { grid-column: 1; grid-row: auto; padding: 24px 0; text-align: center; }
  .how .triad { grid-template-columns: 1fr; }
  .how .triad .col { border-right: 0; border-top: 1px solid var(--ascl-hairline); padding: 24px 0 0; }
  .how .triad .col:first-child { border-top: 0; padding-top: 0; }
  .p-grid { grid-template-columns: 1fr; gap: 24px; }
  .p-card { border-bottom: 1px solid var(--ascl-hairline); }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Centered + justified content (homepage non-hero sections)
   Headings/markers centre; body paragraphs justify with a
   centred last line for editorial rhythm.
   ============================================================ */
.projects, .how, .approach, .cta { text-align: center; }

.projects p, .how p, .approach p, .cta p {
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Re-centre constrained blocks horizontally */
.a-card h3,
.how-lede,
.cta h2 {
  margin-left: auto;
  margin-right: auto;
}

/* The "How we work" lede is a <p> but reads as a heading — don't justify it.
   Higher-specificity selector beats the original `.how .how-lede` margins. */
.how .how-lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Projects: header row stacks (title above, "All projects →" below) */
.projects .head {
  grid-template-columns: 1fr;
  justify-items: center;
}
.projects .head .right { margin-top: 16px; }

/* Project card: centre internal layout */
.p-card { align-items: stretch; }

/* Approach (philosophies): centre the number + content stack in paired cards */
.a-paired .a-card .a-num,
.a-paired .a-card > div { text-align: center; }

/* How: triad columns centre their content */
.how .triad .col { text-align: center; }
