/*
 * The Sterling Foundation
 *
 * This is a field record, not a nonprofit template. The visual system borrows
 * from botanical specimen sheets, rural survey documents and working plans:
 * warm paper, ruled structure, folio labels and an intentionally uneven grid.
 * The twelve-dot mark is the planned twelve-bed house; the sprout crossing it
 * is the foundation's plant-science mission.
 *
 * Sterling has only three usable photographs. Type, colour and linework do the
 * design work so the site never needs a wall of anonymous stock photography.
 * The hero portrait is a real transparent cutout. Keep it that way.
 */

:root {
  --ink: #1d241f;
  --ink-soft: #343c36;
  --forest: #24513f;
  --forest-deep: #173629;
  --red: #c84c31;
  --red-deep: #9f3523;
  --straw: #ebcd70;
  --sage: #81927a;
  --paper: #f1eee4;
  --bone: #fbf9f2;
  --sand: #e3dccd;
  --muted: #59615b;
  --line: #bbb6a8;
  --line-dark: #797d75;

  --wrap: 1240px;
  --measure: 40rem;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --label: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 24%, rgba(29, 36, 31, .035) 0 1px, transparent 1.4px),
    radial-gradient(circle at 78% 72%, rgba(29, 36, 31, .025) 0 1px, transparent 1.4px);
  background-size: 31px 31px, 43px 43px;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--straw); color: var(--ink); }

/* Width and height attributes reserve space before images load. Keep height
   auto here so CSS width changes never stretch those reserved dimensions. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: .18em; }
a:hover { color: var(--red-deep); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  line-height: 1.02;
  text-wrap: balance;
}

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: var(--measure); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 200; background: var(--bone);
  padding: .7rem 1rem; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red);
}

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

.nav {
  background: rgba(251, 249, 242, .96);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: clamp(5rem, 13vw, 12rem);
  height: 5px;
  background: var(--red);
}
.nav .wrap { display: flex; align-items: center; gap: 2rem; min-height: 88px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  flex: none;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
}
.wordmark-mark { width: 46px; height: 46px; flex: none; overflow: visible; }
.wordmark-mark .mark-frame { fill: var(--straw); stroke: var(--ink); stroke-width: 1.5; }
.wordmark-mark .mark-dot { fill: var(--forest); }
.wordmark-mark .mark-stem {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.wordmark-copy { display: grid; gap: .35rem; }
.wordmark strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -.015em;
}
.wordmark small {
  display: block;
  color: var(--forest);
  font: 600 .54rem/1.2 var(--label);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wordmark:hover { color: var(--ink); }
.primary-nav { margin-left: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font: 500 .77rem/1.2 var(--label);
  letter-spacing: .025em;
}
.nav-links li { white-space: nowrap; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--red-deep); border-bottom-color: currentColor; }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.nav-links a.cta {
  color: var(--bone);
  background: var(--forest);
  border: 1px solid var(--forest);
  padding: .65rem .85rem;
}
.nav-links a.cta:hover { background: var(--red); border-color: var(--red); color: var(--bone); }

.nav-toggle {
  display: none;
  background: var(--straw);
  border: 1px solid var(--ink);
  min-width: 44px;
  min-height: 44px;
  padding: .5rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 25px; height: 25px; fill: currentColor; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: .5rem;
  font: 600 .78rem/1.2 var(--label);
  text-decoration: none;
  padding: .85rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--red);
  color: var(--bone);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover {
  background: var(--red-deep);
  color: var(--bone);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone); }
.btn-light { background: var(--bone); color: var(--ink); border-color: var(--ink); }
.btn-light:hover { background: var(--straw); color: var(--ink); }

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

.hero {
  background: var(--bone);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(29, 36, 31, .09) 50%, transparent calc(50% + .5px)),
    linear-gradient(rgba(29, 36, 31, .045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 36px;
  mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.25) 62%, transparent);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  min-height: min(760px, calc(100vh - 88px));
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.hero-copy { align-self: center; padding: 1rem 0 clamp(4rem, 8vw, 7rem); }
.hero-copy::before {
  content: "FIELD RECORD  /  001";
  display: block;
  width: fit-content;
  margin: 0 0 clamp(2rem, 5vw, 4.5rem);
  padding-top: .55rem;
  border-top: 3px solid var(--red);
  color: var(--ink-soft);
  font: 600 .66rem/1 var(--label);
  letter-spacing: .1em;
}
.hero h1 {
  max-width: 52rem;
  font-size: clamp(3.5rem, 6.7vw, 6.35rem);
  line-height: .91;
  letter-spacing: -.05em;
  word-spacing: .06em;
}
.hero .lead {
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  color: var(--ink-soft);
  margin: 2rem 0 2.35rem;
  max-width: 36rem;
  padding-left: clamp(1.25rem, 4vw, 4rem);
  border-left: 1px solid var(--line-dark);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; padding-left: clamp(1.25rem, 4vw, 4rem); }

.hero-figure {
  position: relative;
  align-self: end;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: clamp(510px, 55vw, 650px);
  background: var(--forest);
  border: 1px solid var(--ink);
  isolation: isolate;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 3px solid var(--red);
  z-index: -1;
}
.hero-figure::after {
  content: "PLANNED CAMPUS  /  NEW MEXICO";
  position: absolute;
  top: 1.25rem;
  left: 1.35rem;
  z-index: 2;
  max-width: 10rem;
  color: var(--bone);
  font: 600 .62rem/1.45 var(--label);
  letter-spacing: .1em;
}
.hero-figure img {
  width: min(128%, 660px);
  max-width: none;
  height: auto;
  margin-left: -18%;
  filter: saturate(.72) contrast(1.08) drop-shadow(18px 26px 34px rgba(10, 25, 18, .3));
}

.tag {
  color: var(--red-deep);
  font: 600 .66rem/1.3 var(--label);
  letter-spacing: .11em;
  text-transform: uppercase;
  margin: 0 0 1.15rem;
}

/* ------------------------------------------------------------ page head */

.page-head {
  background: var(--forest);
  color: var(--bone);
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--straw);
}
.page-head::before {
  content: "THE STERLING FOUNDATION  /  NEW MEXICO";
  position: absolute;
  top: 2rem;
  right: max(1.5rem, calc((100vw - var(--wrap)) / 2));
  z-index: 2;
  color: rgba(251, 249, 242, .7);
  font: 500 .58rem/1 var(--label);
  letter-spacing: .12em;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 36%;
  border-left: 1px solid rgba(251, 249, 242, .28);
  background-image:
    linear-gradient(rgba(251, 249, 242, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 249, 242, .12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .7;
}
.page-head .wrap {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.page-head .tag { color: var(--straw); margin-bottom: 1.65rem; }
.page-head h1 {
  max-width: 54rem;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.page-head .wrap > p:not(.tag) {
  max-width: 38rem;
  margin: 2rem 0 0 clamp(1.25rem, 5vw, 5rem);
  padding-left: 1.25rem;
  border-left: 2px solid var(--red);
  color: rgba(251, 249, 242, .87);
}

/* ------------------------------------------------------------------ leaf */

.sprig {
  display: block;
  width: 120px;
  height: 26px;
  margin: 0 0 1.7rem;
  color: var(--forest);
}
.sprig.center { margin-inline: auto; }
.sprig line { stroke: currentColor; stroke-width: 1.1; opacity: .5; }
.sprig path, .sprig ellipse { fill: currentColor; }
.section.navy .sprig, .signup .sprig { color: var(--straw); }

/* -------------------------------------------------------------- sections */

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}
.section.paper { background: rgba(241, 238, 228, .94); }
.section.bone { background: var(--bone); }
.section.sand { background: var(--sand); }
.section.navy { background: var(--forest-deep); color: var(--bone); border-color: var(--forest-deep); }
.section.navy h2, .section.navy h3 { color: var(--bone); }
.section.navy p { color: rgba(251, 249, 242, .82); }
.section.navy a { color: var(--bone); }
.section.navy .tag { color: var(--straw); }

h2 {
  max-width: 52rem;
  color: var(--ink);
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  line-height: .94;
  letter-spacing: -.035em;
}
h3 { color: var(--ink); font-size: 1.55rem; line-height: 1.08; }
.lead { font-size: 1.14rem; color: var(--muted); }
.section-title { margin-bottom: clamp(2.75rem, 6vw, 5rem); }

/* -------------------------------------------------------------- the stats */

.section.navy.stats-section {
  background: var(--forest-deep);
  padding-bottom: clamp(3.5rem, 6vw, 5.25rem);
  border-bottom: 7px solid var(--red);
}
.stats {
  display: grid;
  grid-template-columns: 1.08fr .92fr 1fr;
  counter-reset: fact;
  border-top: 1px solid rgba(251, 249, 242, .42);
  border-bottom: 1px solid rgba(251, 249, 242, .42);
}
.stat {
  position: relative;
  counter-increment: fact;
  min-height: 250px;
  padding: 2.2rem clamp(1.5rem, 3vw, 3rem) 2rem;
  border-right: 1px solid rgba(251, 249, 242, .28);
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: "0" counter(fact);
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--straw);
  font: 500 .6rem/1 var(--label);
}
.stat .figure {
  color: var(--bone);
  font: 500 clamp(4rem, 8vw, 7.5rem)/.8 var(--display);
  letter-spacing: -.05em;
  margin: 0 0 1.4rem;
}
.stat h3 {
  margin-bottom: .55rem;
  color: var(--straw);
  font: 600 .65rem/1.2 var(--label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stat p { max-width: 19rem; margin: 0; font-size: .94rem; line-height: 1.55; }

/* --------------------------------------------------------------- content */

.statement {
  position: relative;
  max-width: 58rem;
  margin: 0;
  color: var(--ink);
  font: 400 clamp(1.8rem, 3.6vw, 3rem)/1.24 var(--display);
  letter-spacing: -.02em;
}
.statement::after {
  content: "";
  display: block;
  width: min(18rem, 48%);
  margin-top: 2.5rem;
  border-bottom: 6px solid var(--red);
}
.statement + .attrib {
  margin-top: 1.25rem;
  color: var(--muted);
  font: 500 .64rem/1.5 var(--label);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cols {
  display: grid;
  grid-template-columns: 1.25fr .88fr .88fr;
  gap: 0;
  counter-reset: feature;
  border-top: 2px solid var(--ink);
}
.card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(1.7rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: .85rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .more {
  width: fit-content;
  margin-top: 1.5rem;
  color: var(--forest);
  font: 600 .72rem/1.3 var(--label);
  text-decoration-thickness: 1px;
}
.cols .card {
  position: relative;
  counter-increment: feature;
  min-height: 290px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 4.5rem clamp(1.5rem, 3vw, 2.6rem) 1.5rem 0;
}
.cols .card + .card { padding-left: clamp(1.5rem, 3vw, 2.6rem); }
.cols .card:last-child { border-right: 0; padding-right: 0; }
.cols .card::before {
  content: "FIELD / 0" counter(feature);
  position: absolute;
  top: 1.35rem;
  left: 0;
  color: var(--red-deep);
  font: 600 .61rem/1 var(--label);
  letter-spacing: .09em;
}
.cols .card + .card::before { left: clamp(1.5rem, 3vw, 2.6rem); }
.cols .card h3 { font-size: clamp(1.55rem, 2.3vw, 2rem); }

.duo {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
}
.duo img { width: 100%; border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--straw); }
.duo.reverse .duo-art { order: 2; }

.prose { max-width: var(--measure); margin-left: clamp(0rem, 8vw, 7rem); }
.prose p + p { margin-top: 1.25rem; }
.prose h3 { margin: 2.8rem 0 .9rem; }
.prose .lead { margin-bottom: 1.8rem; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--ink);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--red);
  font: 500 1.6rem/1 var(--display);
}
.steps h3 { margin-bottom: .4rem; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* --------------------------------------------------------------- person */

.person {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  max-width: 64rem;
}
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: 14px 14px 0 var(--red);
  filter: saturate(.75) contrast(1.04);
}
.person h3 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: .6rem; }
.person .role {
  margin: 0 0 1.5rem;
  color: var(--forest);
  font: 600 .65rem/1.3 var(--label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.person p { color: var(--muted); }

/* ---------------------------------------------------------------- signup */

.signup {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.signup form { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.7rem; }
.signup input[type="email"] {
  flex: 1 1 15rem;
  padding: .83rem 1rem;
  border: 1px solid rgba(251, 249, 242, .62);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font: 400 .95rem/1 var(--body);
}
.signup input::placeholder { color: rgba(251, 249, 242, .58); }
.signup input:focus { outline: 2px solid var(--straw); outline-offset: 2px; }
.signup .note { margin-top: 1rem; color: rgba(251, 249, 242, .62); font-size: .85rem; }

.notice {
  max-width: 48rem;
  padding: 1.35rem 1.5rem;
  background: var(--bone);
  border: 1px solid var(--line-dark);
  border-left: 7px solid var(--red);
  border-radius: 0;
  color: var(--muted);
  font-size: .96rem;
}
.section.navy .notice, .signup .notice {
  background: rgba(251, 249, 242, .07);
  border-color: rgba(251, 249, 242, .36);
  border-left-color: var(--straw);
  color: rgba(251, 249, 242, .86);
}

.give {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.give .card { min-height: 100%; }
.give .card:nth-child(2) { margin-top: 3.5rem; background: var(--paper); }
.give .card .btn { align-self: flex-start; margin-top: auto; }
.give .card p { margin-bottom: 1.8rem; }

/* --------------------------------------------------------- call to action */

.cta-section { position: relative; overflow: hidden; }
.section.sand.cta-section { background: var(--straw); }
.cta-section::after {
  content: "";
  position: absolute;
  width: clamp(18rem, 34vw, 34rem);
  aspect-ratio: 1;
  right: -7%;
  bottom: -62%;
  border: 2px solid var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(36, 81, 63, .08), 0 0 0 5rem rgba(36, 81, 63, .045);
  pointer-events: none;
}
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { max-width: 50rem; }
.cta-copy .lead { max-width: 42rem !important; color: var(--ink-soft); }

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

.footer {
  background: var(--ink);
  color: rgba(251, 249, 242, .78);
  padding: clamp(4rem, 7vw, 6rem) 0 0;
  border-top: 8px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-bottom: 4rem;
}
.footer .wordmark { color: var(--bone); align-items: flex-start; }
.footer .wordmark .mark-frame { stroke: var(--bone); }
.footer .wordmark strong { font-size: 1.45rem; }
.footer .wordmark small, .footer .wordmark .mark-dot { color: var(--straw); fill: var(--straw); }
.footer h4 {
  margin: 0 0 1.2rem;
  color: var(--straw);
  font: 600 .62rem/1.2 var(--label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer a { color: rgba(251, 249, 242, .84); text-decoration-thickness: 1px; font-size: .94rem; }
.footer a:hover { color: var(--straw); }
.footer p { max-width: 32rem; margin: 1.4rem 0 0; font-size: .95rem; }
.footer li, .footer p { overflow-wrap: anywhere; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(251, 249, 242, .22);
  color: rgba(251, 249, 242, .52);
  font: 500 .62rem/1.6 var(--label);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 980px) {
  .nav .wrap { gap: 1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    gap: 0;
    margin: 0;
    padding: .8rem 1.5rem 1.2rem;
    background: var(--bone);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 18px 28px rgba(29, 36, 31, .14);
  }
  .nav-links a { display: block; padding: .8rem 0; }
  .nav-links a.cta { width: fit-content; margin-top: .45rem; padding: .7rem .9rem; }

  .hero .wrap { display: block; min-height: auto; padding-top: 3.5rem; }
  .hero-copy { padding-bottom: 3.75rem; }
  .hero h1 { font-size: clamp(4rem, 10vw, 6rem); }
  .hero-figure {
    width: min(72%, 620px);
    min-height: 540px;
    margin-left: auto;
  }
  .hero-figure img { width: 128%; }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols .card:first-child { grid-column: 1 / -1; min-height: 230px; border-right: 0; }
  .cols .card:nth-child(2) { padding-left: 0; }
  .cols .card:nth-child(2)::before { left: 0; }
  .duo, .signup, .footer-grid { grid-template-columns: 1fr; }
  .duo.reverse .duo-art { order: 0; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 2.25rem); }
  .nav .wrap { min-height: 74px; }
  .wordmark { gap: .65rem; }
  .wordmark-mark { width: 38px; height: 38px; }
  .wordmark strong { font-size: 1.07rem; }
  .wordmark small { font-size: .47rem; }

  .hero::before { background-size: 100% 100%, 100% 28px; }
  .hero .wrap { display: block; padding-top: 2.25rem; }
  .hero-copy { padding: .5rem 0 3.5rem; }
  .hero-copy::before { margin-bottom: 2.5rem; }
  .hero h1 { font-size: clamp(3.25rem, 14.4vw, 4.75rem); }
  .hero .lead { margin-top: 1.7rem; padding-left: 1rem; }
  .hero-actions { padding-left: 1rem; }
  .hero-figure {
    width: calc(100% - 1rem);
    min-height: min(128vw, 520px);
    margin: 0 1rem 0 0;
  }
  .hero-figure img { width: 128%; margin-left: -10%; }

  .page-head::before { top: 1.25rem; left: 1.15rem; right: auto; }
  .page-head::after { width: 45%; }
  .page-head .wrap { padding-top: 5.5rem; }
  .page-head h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .page-head .wrap > p:not(.tag) { margin-left: 0; }

  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(251, 249, 242, .28); }
  .stat:last-child { border-bottom: 0; }
  .stat .figure { font-size: clamp(4.5rem, 24vw, 7rem); }

  .cols { grid-template-columns: 1fr; }
  .cols .card, .cols .card:first-child {
    grid-column: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 4.5rem 0 2.2rem;
  }
  .cols .card:last-child { border-bottom: 0; }
  .cols .card + .card { padding-left: 0; }
  .cols .card + .card::before { left: 0; }

  .prose { margin-left: 0; }
  .steps li { grid-template-columns: 3.2rem 1fr; gap: 1rem; }
  .person { grid-template-columns: 1fr; }
  .person img { width: min(78vw, 280px); }
  .give { grid-template-columns: 1fr; }
  .give .card:nth-child(2) { margin-top: 0; }
  .footer .wordmark strong { font-size: 1.25rem; }
}

@media (max-width: 440px) {
  .wordmark strong { font-size: .98rem; }
  .wordmark small { letter-spacing: .08em; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
}

@media print {
  .nav { position: static; }
  .nav-toggle, .footer { display: none; }
  body { color: #000; background: #fff; }
  .hero, .page-head, .section { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* --------------------------------------------- dragged photo size + place

   The result of dragging a photo in the editor: a width as a PERCENTAGE of
   the space it sits in, and which side of that space it sits on. A
   percentage and a custom property rather than an inline `width`, so the
   mobile rule below can hand a phone the full column back — an inline width
   would beat it, and a photo dragged to a third of a desktop column is a
   thumbnail at 390px. */
img.ph { width: var(--pw, 100%); max-width: 100%; }
img.ph-left { margin-right: auto; margin-left: 0; }
img.ph-center { margin-inline: auto; }
img.ph-right { margin-left: auto; margin-right: 0; }

@media (max-width: 640px) {
  img.ph { width: 100%; }
}
