/* ==========================================================================
   LONG VIEW — Myopia Charity
   Full-bleed, container-less layout. Poster-scale condensed display type,
   a looping daylight field video behind an ink-on-sky headline, and an
   electric ultramarine used as flood colour rather than as a small accent.
   ========================================================================== */

:root {
  --ink: #0d1b1e;
  --ink-2: #16292d;
  --ink-soft: #46595d;
  --paper: #e6ebec;
  --paper-2: #ffffff;
  --line: #c6d1d3;
  --volt: #1b34d8;
  --volt-deep: #1226a8;
  --volt-soft: #dfe3fb;
  --action: #ffffff;
  --action-deep: #e6ebec;

  --header-h: 88px;
  --gutter: clamp(20px, 4vw, 76px);

  --font-display: "Haettenschweiler", "Impact", "Arial Narrow Bold",
    "Franklin Gothic Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica,
    Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Courier New",
    monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-ui);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.has-hero { padding-top: 0; }
/* Short pages (Articles, Videos, Donate) still push the footer to the floor. */
footer.site-footer { margin-top: auto; }

h1, h2, h3 { margin: 0; color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper-2);
}
.skip-link:focus { top: 0; }

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

/* No centred column anywhere — the canvas runs edge to edge and content is
   set flush left, with measure controlled per block instead of by a wrapper. */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--gutter);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Header — fixed, full-bleed, mono nav
   ========================================================================== */

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--ink);
  transition: background 0.3s ease;
}
.header-inner {
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-weight: 750;
  letter-spacing: -0.015em;
  font-size: 1.38rem;
  line-height: 1;
  color: var(--paper-2);
  white-space: nowrap;
  flex: none;
}
/* The logo is black line art on a white square. Inverting it and screening on
   dark grounds (or multiplying on light ones) knocks the box out — no new asset. */
.brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
}

nav.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.55vw, 30px);
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
nav.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(230, 235, 236, 0.92);
  white-space: nowrap;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
nav.main-nav a:hover { color: var(--paper-2); border-bottom-color: var(--volt); }
nav.main-nav a.current { color: var(--paper-2); border-bottom-color: var(--volt); }

/* Must out-specify `nav.main-nav a` (0,1,2), which otherwise wins on padding,
   font and size and collapses this into a plain nav link. */
.btn-donate,
nav.main-nav a.btn-donate {
  font-family: var(--font-ui);
  font-size: 1.08rem;
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.1;
  background: var(--action);
  color: var(--ink);
  padding: 16px 28px;
  margin-left: 6px;
  border-radius: 5px;
  border: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  flex: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-donate:hover,
nav.main-nav a.btn-donate:hover { background: var(--action-deep); color: var(--ink); }

/* Keep the donation CTA legible when the hero header changes from light to ink. */
body.has-hero header.site-header nav.main-nav a.btn-donate,
body.has-hero header.site-header.scrolled nav.main-nav a.btn-donate {
  background: var(--action);
  color: var(--ink);
  border-color: var(--ink);
}
body.has-hero header.site-header nav.main-nav a.btn-donate:hover,
body.has-hero header.site-header.scrolled nav.main-nav a.btn-donate:hover {
  background: var(--action-deep);
  color: var(--ink);
}

/* Transparent over the hero: the top band of the footage is blown-out sky in
   every frame, so ink-coloured chrome reads cleanly straight over it. */
body.has-hero header.site-header { background: transparent; }
body.has-hero header.site-header .brand { color: var(--ink); }
body.has-hero header.site-header .brand img { filter: none; mix-blend-mode: multiply; }
body.has-hero header.site-header nav.main-nav a { color: rgba(13, 27, 30, 0.75); }
body.has-hero header.site-header nav.main-nav a:hover { color: var(--ink); }

body.has-hero header.site-header.scrolled { background: var(--ink); }
body.has-hero header.site-header.scrolled .brand { color: var(--paper-2); }
body.has-hero header.site-header.scrolled .brand img { filter: invert(1); mix-blend-mode: screen; }
body.has-hero header.site-header.scrolled nav.main-nav a { color: rgba(230, 235, 236, 0.72); }
body.has-hero header.site-header.scrolled nav.main-nav a:hover { color: var(--paper-2); }

@media (max-width: 1260px) {
  header.site-header { position: sticky; height: auto; }
  body, body.has-hero { padding-top: 0; }
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px 20px; }
  nav.main-nav { flex-wrap: wrap; gap: 10px 18px; order: 3; width: 100%; }
  .hero-body { padding-top: clamp(28px, 6vh, 72px) !important; }
}

/* ==========================================================================
   Hero — full-bleed looping field, ink headline on blown sky
   ========================================================================== */

.hero {
  position: relative;
  flex: none;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #dfe2e0;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #dfe2e0 url("images/hero-field-poster.jpg") center 42% / cover no-repeat;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: heroDrift 34s ease-in-out infinite alternate;
}
.hero-media video.ready { opacity: 1; }
@keyframes heroDrift {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13); }
}

/* A light haze — not a dark scrim — locks the ink headline to the sky while
   keeping the overexposed, airy feel of the footage. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(168deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.56) 36%, rgba(255,255,255,0) 64%),
    linear-gradient(0deg, rgba(230,235,236,0.55) 0%, rgba(230,235,236,0) 26%);
  pointer-events: none;
}

.hero-body {
  padding-top: calc(var(--header-h) + clamp(28px, 6vh, 72px));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.15rem, 8.2vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: 0.005em;
  word-spacing: 0.05em;
  color: var(--ink);
  margin: 0;
}
/* The <br> is kept in the markup so the headline still breaks correctly with
   CSS disabled; the block-level line spans handle it once styles load. */
.hero h1 br { display: none; }
.hero h1 .l {
  display: block;
  clip-path: inset(0 0 105% 0);
  transform: translateY(0.14em);
  animation: lineIn 1s cubic-bezier(0.16, 0.84, 0.3, 1) forwards;
}
.hero h1 .l1 { animation-delay: 0.15s; }
.hero h1 .l2 { animation-delay: 0.38s; color: var(--volt); }
@keyframes lineIn {
  to { clip-path: inset(0 0 -14% 0); transform: translateY(0); }
}

.hero-foot {
  padding-bottom: clamp(26px, 5vh, 58px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-links {
  display: flex;
  gap: clamp(18px, 3vw, 48px);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.85s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-links a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-links a::after {
  content: "";
  width: 22px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 40%, 68% 40%, 68% 0, 100% 50%, 68% 100%, 68% 60%, 0 60%);
  transition: transform 0.2s ease;
}
.hero-links a:hover { color: var(--volt); border-bottom-color: var(--volt); }
.hero-links a:hover::after { transform: translateX(6px); }

/* Vertical hairline that fills on a loop as a scroll cue — no added wording. */
.hero-rule {
  width: 2px;
  height: clamp(48px, 9vh, 110px);
  background: rgba(13, 27, 30, 0.2);
  position: relative;
  overflow: hidden;
  flex: none;
}
.hero-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--volt);
  animation: railFill 2.8s ease-in-out infinite;
}
@keyframes railFill {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 760px) {
  /* Narrow screens lose the poster effect at 8.2vw — push the headline harder
     so it still fills the measure rather than floating on the sky. */
  .hero h1 { font-size: clamp(2.4rem, 11.6vw, 4.8rem); }
  .hero-foot { align-items: flex-start; }
  .hero-rule { display: none; }
}

/* ==========================================================================
   Statement band
   ========================================================================== */

.pillars-intro-band {
  background: var(--paper-2);
  padding: clamp(64px, 12vh, 150px) 0 clamp(56px, 10vh, 120px);
}

.pillars-intro > img {
  width: clamp(56px, 6vw, 88px);
  height: auto;
  mix-blend-mode: multiply;
  margin-bottom: clamp(20px, 3vh, 40px);
}
.pillars-intro-text {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: end;
}
.pillars-intro-text h2 {
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: clamp(1.5rem, 3.1vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  max-width: 24ch;
}
.pillars-intro-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  max-width: 46ch;
  border-top: 3px solid var(--volt);
  padding-top: 18px;
}
@media (max-width: 900px) {
  .pillars-intro-text { grid-template-columns: 1fr; align-items: start; }
}

/* ==========================================================================
   Pillars — alternating full-bleed chapters
   ========================================================================== */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  padding: 0 var(--gutter) clamp(64px, 10vh, 120px);
  background: var(--paper-2);
}

.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.pillar-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  position: relative;
}
.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) contrast(0.96);
  transition: transform 0.8s cubic-bezier(0.16, 0.84, 0.3, 1), filter 0.4s ease;
}
.pillar-card:hover .pillar-media img { transform: scale(1.04); filter: saturate(0.78) contrast(1); }
/* Educate is a wide classroom frame; Connect and Support are full-length
   portrait shots. Crops verified at the real rendered box — see PREVIEW.md. */
.pillar-card:nth-child(1) .pillar-media img { object-position: center 42%; }
.pillar-card:nth-child(2) .pillar-media img { object-position: center 22%; }
.pillar-card:nth-child(3) .pillar-media img { object-position: center 28%; }

.pillar-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 2.5vw, 38px);
}
.pillar-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.85rem, 3vw, 3.15rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  margin: 0 0 18px;
}
/* Each pillar heading opens with an emoji that is part of the site's copy and
   must stay. Demoting it via ::first-letter keeps the word as the headline and
   the glyph as a small inline mark rather than a decorative section icon.
   Degrades to full size anywhere ::first-letter skips the codepoint. */
.pillar-text h3::first-letter {
  font-size: 0.36em;
  vertical-align: 0.34em;
}
.pillar-text p {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36ch;
  padding-top: 18px;
  border-top: 3px solid var(--volt);
}

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; max-width: 680px; }
  .pillar-media { aspect-ratio: 16 / 10; }
  .pillar-text { padding: 28px; }
}

/* ==========================================================================
   Gallery — full-bleed marquee. Images run at a fixed height with auto width,
   so nothing is cropped at any viewport size.
   ========================================================================== */

.gallery {
  background: var(--ink);
  padding: clamp(48px, 8vh, 96px) 0;
  overflow: hidden;
}
.gallery > .container { padding: 0; }

.gallery-grid {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.gallery:hover .gallery-grid { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 7px)); }
}
.gallery-grid img {
  height: clamp(240px, 46vh, 520px);
  width: auto;
  max-width: none;
  filter: saturate(0.92);
}

/* ==========================================================================
   Discover — ultramarine flood panel
   ========================================================================== */

.discover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 11vh, 140px) var(--gutter);
  min-height: 52vh;
  display: flex;
  align-items: center;
}
.discover > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.82);
}
.discover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 27, 30, 0.9) 0%, rgba(13, 27, 30, 0.64) 48%, rgba(13, 27, 30, 0.18) 100%);
}
.discover a {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 11.4vw, 13rem);
  line-height: 0.84;
  letter-spacing: 0.005em;
  word-spacing: 0.04em;
  color: #fff;
  display: block;
  width: 100%;
}
.discover a::after {
  content: "";
  display: block;
  height: clamp(6px, 0.9vw, 14px);
  background: var(--volt);
  margin-top: clamp(14px, 2vw, 30px);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.16, 0.84, 0.3, 1);
}
.discover a:hover::after { transform: scaleX(1); }

/* ==========================================================================
   Generic page content (the seven interior pages)
   ========================================================================== */

.page-content {
  padding: clamp(48px, 9vh, 110px) 0 clamp(64px, 11vh, 140px);
}
.page-content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 9.6vw, 9rem);
  line-height: 0.84;
  letter-spacing: 0.005em;
  word-spacing: 0.05em;
  margin: 0 0 clamp(28px, 4vh, 56px);
  padding-bottom: clamp(20px, 3vh, 40px);
  border-bottom: 6px solid var(--volt);
}
.page-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  margin: clamp(40px, 6vh, 72px) 0 14px;
}
.page-content p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.06rem;
}
.page-content p a { color: var(--volt); border-bottom: 2px solid var(--volt-soft); }
.page-content p a:hover { border-bottom-color: var(--volt); }
.page-content img.inline-image {
  margin: 32px 0 40px;
  max-width: min(560px, 100%);
  background: var(--paper-2);
}
/* The canvas is deliberately wide and flush-left, which leaves a big empty
   right field on the text pages. Let the one inline graphic occupy it. */
@media (min-width: 1120px) {
  .page-content img.inline-image {
    float: right;
    margin: 4px 0 36px clamp(48px, 6vw, 96px);
    max-width: min(440px, 34%);
  }
  .page-content h2 { clear: right; }
}

.intro-pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(36px, 6vh, 64px);
  max-width: 820px;
}
.intro-pillars li {
  border-top: 1px solid var(--line);
  padding: 18px 0 18px 34px;
  font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  position: relative;
}
.intro-pillars li:last-child { border-bottom: 1px solid var(--line); }
.intro-pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 14px;
  height: 14px;
  background: var(--volt);
}

.empty-page {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 6px solid var(--volt);
  padding: 8px 0 8px 22px;
  max-width: 46ch;
  line-height: 1.7;
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 3vw, 48px);
  margin-top: clamp(24px, 4vh, 44px);
}
.team-card { background: transparent; }
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  margin-bottom: 18px;
  background: var(--paper-2);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.35s ease;
}
.team-card:hover img { filter: grayscale(0) contrast(1); }
/* Hard-won crop fixes: several headshots are framed tight to the hairline and
   a default centre crop decapitates them. Kept, and re-verified against the
   4/5 box this design renders them in. */
.team-card img.crop-top-0 { object-position: center 0%; }
.team-card img.crop-top-10 { object-position: center 10%; }
.team-card img.crop-top-20 { object-position: center 20%; }
.team-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0 0 8px;
}
.team-card .role {
  font-family: var(--font-mono);
  color: var(--volt);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.5;
}
.team-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.team-card details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 10px;
  padding-bottom: 4px;
  display: inline-block;
  border-bottom: 2px solid var(--volt);
  list-style: none;
}
.team-card details summary::-webkit-details-marker { display: none; }
.team-card details[open] summary { margin-bottom: 14px; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 940px;
}
form.contact-form {
  display: grid;
  gap: 22px;
  margin-top: clamp(24px, 4vh, 40px);
}
form.contact-form label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
  background: var(--paper-2);
  color: var(--ink);
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: inset 0 -4px 0 var(--volt);
}
form.contact-form textarea { min-height: 150px; resize: vertical; }
form.contact-form button {
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.6rem;
  line-height: 1;
  background: var(--volt);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 16px 44px 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}
form.contact-form button:hover { background: var(--ink); }
.form-note { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-footer {
  background: var(--ink);
  color: rgba(230, 235, 236, 0.66);
  padding: clamp(48px, 8vh, 96px) 0 clamp(36px, 5vh, 56px);
}
footer.site-footer .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
footer.site-footer p { margin: 0; }
footer.site-footer p:first-child strong {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 0.86;
  color: var(--paper-2);
  display: block;
  max-width: 12ch;
}
footer.site-footer p:last-child {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
footer.site-footer a { color: rgba(230, 235, 236, 0.66); }
footer.site-footer .social { margin: 0; }
/* Same specificity trap as the donate button: `footer.site-footer a` is (0,1,2). */
.social-icon,
footer.site-footer a.social-icon {
  display: inline-flex;
  color: var(--paper-2);
  background: var(--volt);
  padding: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icon:hover,
footer.site-footer a.social-icon:hover { background: var(--paper-2); color: var(--volt); }
.social-icon svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* ==========================================================================
   Scroll reveals (index only; without JS everything is simply visible)
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 0.84, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 0.84, 0.3, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

.js .reveal.wipe {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s cubic-bezier(0.16, 0.84, 0.3, 1);
}
.js .pillar-card:nth-child(even) .reveal.wipe { clip-path: inset(0 100% 0 0); }
.js .reveal.wipe.in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; clip-path: none !important; }
}

.nav-toggle { display: none; }

form.contact-form button:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  header.site-header,
  body.has-hero header.site-header,
  body.has-hero header.site-header.scrolled { position: sticky; height: auto; background: var(--ink); }
  .header-inner { height: auto; min-height: var(--header-h); padding: 12px var(--gutter); flex-wrap: nowrap; }
  body.has-hero header.site-header .brand,
  body.has-hero header.site-header.scrolled .brand { color: var(--paper-2); }
  body.has-hero header.site-header .brand img,
  body.has-hero header.site-header.scrolled .brand img { filter: invert(1); mix-blend-mode: screen; }
  .nav-toggle {
    display: none;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--paper-2);
    background: transparent;
    color: var(--paper-2);
    font: 700 0.72rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .js .nav-toggle { display: inline-flex; align-items: center; }
  nav.main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink);
  }
  .js nav.main-nav { display: none; }
  .js nav.main-nav.is-open { display: flex; }
  nav.main-nav a,
  body.has-hero header.site-header nav.main-nav a,
  body.has-hero header.site-header.scrolled nav.main-nav a { padding: 12px 0; color: var(--paper-2); font-size: 0.78rem; }
  nav.main-nav .btn-donate,
  nav.main-nav a.btn-donate { margin: 10px 0 0; text-align: center; }
}
