/* ============================================================
   Elder Lincoln Malley — Utah Spanish Fork Mission

   DESIGN DIRECTION — "the back room of a comic-and-thrift shop"
   - The family asked for slightly cluttered, artistic and colorful:
     he loves thrifting, vintage, Marvel and every style of art.
   - Palette: four-colour comic print — cobalt, pop red, sunshine
     yellow and teal — on aged newsprint, inked in deep plum-black.
     (Marvel becomes a printing style and colours, never characters.)
   - One motif: HALFTONE DOTS. They print the hero, run as a dotted
     band between sections, and texture the footer.
   - Everything else is "collage": inked outlines, hard offset
     shadows like misregistered print, taped photos and thrift-tag
     pills, slightly askew. Bricolage Grotesque + Work Sans.

   Mobile first. Everything here is written for a phone; the
   min-width blocks add back the room a desktop has.
   ============================================================ */

:root {
  --ink:        #1c1830;
  --ink-soft:   #474259;
  --ink-faint:  #5f596e;
  --paper:      #f5ecd7;   /* aged newsprint */
  --paper-2:    #fffbf2;
  --line:       #d8c9a8;
  --line-soft:  #ebe0c6;

  --navy:       #2443b5;   /* comic cobalt — the primary */
  --navy-deep:  #1e1838;   /* plum-black ink */
  --gold:       #ffc629;   /* sunshine yellow — fills, never small text */
  --gold-text:  #a12a14;   /* the readable accent: red ink, 6:1 on paper */
  --gold-soft:  #ffecac;
  --clay:       #e8452c;   /* pop red */
  --sea:        #0b6b60;   /* teal */
  --sea-soft:   #dcefe9;

  --radius:     8px;
  --radius-sm:  5px;
  --radius-lg:  12px;

  /* Hard, offset, un-blurred: a print slightly out of register */
  --shadow:     4px 4px 0 var(--navy-deep);
  --shadow-lg:  7px 7px 0 var(--navy-deep);
  --border:     2px solid var(--navy-deep);

  /* The motif */
  --dots-ink:   radial-gradient(circle, rgba(30,24,56,.22) 1.4px, transparent 1.9px);
  --dots-gold:  radial-gradient(circle, var(--gold) 1.8px, transparent 2.4px);
  --dots-red:   radial-gradient(circle, var(--clay) 2.6px, transparent 3.2px);

  --serif: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --header-h: 62px;

  /* One easing for everything, with a little bounce for a livelier feel */
  --ease: cubic-bezier(.3,1.35,.5,1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  color: var(--navy-deep);
}
h1 { font-size: clamp(2.6rem, 11vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 6.4vw, 2.3rem); }
h3 { font-size: 1.26rem; font-weight: 700; }

p { margin: 0 0 1.05em; }
a { color: var(--navy); text-decoration-color: rgba(36,67,181,.35); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-text); text-decoration-color: var(--gold); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }

/* Eyebrows are little stamped labels, a touch askew */
.eyebrow {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-text);
  margin: 0 0 .8rem;
  transform: rotate(-1.2deg);
}
.eyebrow--muted { color: var(--ink-faint); }

.lede { font-size: 1.08rem; color: var(--ink-soft); }
.muted { color: var(--ink-faint); }
.center { text-align: center; }

/* ============================================================
   Motion — one reveal pattern used everywhere
   ============================================================ */

/* Content is only ever hidden when motion is confirmed working. The <head>
   snippet adds .js-motion and strips it again if motion.js never boots, so a
   failed script can never leave the page blank. */
.reveal {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js-motion .reveal {
  opacity: 0;
  transform: translateY(22px) rotate(-.6deg);
  will-change: opacity, transform;
}
.js-motion .reveal.is-in { opacity: 1; transform: none; will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(245,236,215,.95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 3px solid var(--navy-deep);
  transition: background .3s ease, border-color .3s ease;
}
/* Only over the homepage's photo hero does it start invisible */
body.has-hero .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.has-hero .site-header.is-stuck,
.site-header.is-stuck {
  background: rgba(245,236,215,.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--navy-deep);
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em;
  color: var(--navy-deep); text-decoration: none; white-space: nowrap;
  min-width: 0;
}
.brand:hover { color: var(--navy-deep); }
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The mark is a little thrift-shop price tag */
.brand__sun { width: 30px; height: 30px; flex: none; transform: rotate(-12deg); transition: transform .3s var(--ease); }
.brand:hover .brand__sun { transform: rotate(4deg); }
.brand small {
  display: block; font-family: var(--sans); font-weight: 600;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Over the photo hero the brand has to read on a dark image */
body.has-hero .site-header:not(.is-stuck) .brand { color: #fff; }
body.has-hero .site-header:not(.is-stuck) .brand small { color: rgba(255,255,255,.8); }
body.has-hero .site-header:not(.is-stuck) .nav-toggle { color: #fff; border-color: #fff; background: rgba(30,24,56,.35); box-shadow: none; }

.nav-toggle {
  margin-left: auto; background: var(--paper-2);
  border: var(--border); border-radius: var(--radius-sm);
  width: 46px; height: 44px; cursor: pointer; color: var(--navy-deep);
  display: grid; place-items: center;
  box-shadow: 2px 2px 0 var(--navy-deep);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s var(--ease);
}
.nav-toggle:active { transform: translate(2px,2px); box-shadow: none; }

/* The mobile sheet */
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--paper-2);
  border-bottom: 3px solid var(--navy-deep);
  padding: 14px var(--gutter) 22px;
  box-shadow: 0 8px 0 rgba(30,24,56,.12);
  transform: translateY(-14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .26s ease, transform .3s var(--ease), visibility .3s;
  z-index: 70;
}
.nav.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.nav a {
  padding: 13px 16px; border-radius: var(--radius-sm); text-decoration: none;
  font-size: 1.04rem; font-weight: 600; color: var(--ink-soft);
  border: 2px solid transparent;
  transition: background .16s ease, color .16s ease, transform .3s var(--ease),
              opacity .3s ease, border-color .16s ease;
  opacity: 0; transform: translateY(-6px);
}
.nav.open a { opacity: 1; transform: none; }
.nav.open a:nth-child(1) { transition-delay: 40ms; }
.nav.open a:nth-child(2) { transition-delay: 72ms; }
.nav.open a:nth-child(3) { transition-delay: 104ms; }
.nav.open a:nth-child(4) { transition-delay: 136ms; }
.nav.open a:nth-child(5) { transition-delay: 168ms; }
.nav.open a:nth-child(6) { transition-delay: 200ms; }
.nav.open a:nth-child(7) { transition-delay: 232ms; }
.nav a:active { background: var(--gold-soft); }
.nav a[aria-current="page"] {
  background: var(--navy); color: #fff; border-color: var(--navy-deep);
  box-shadow: 3px 3px 0 var(--navy-deep);
}

.nav-backdrop {
  position: fixed; inset: 0; z-index: 69;
  background: rgba(30,24,56,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .26s ease, visibility .26s;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ============================================================
   Hero — a photo you fall into on a phone (printed in halftone
   at the bottom), a taped-up print on a cobalt wall on a desktop
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: #fff;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  overflow: hidden;
  border-bottom: 4px solid var(--navy-deep);
}
.hero__rays { display: none; }

/* The portrait is the hero on mobile */
.portrait {
  position: absolute; inset: 0; z-index: 0;
  border-radius: 0; overflow: hidden; border: 0; box-shadow: none;
  background: var(--navy-deep);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-out forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
/* Dark enough at the bottom for white type, clear at the top so you see him,
   with a halftone screen (::before) printed over the dark part */
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(30,24,56,.42) 0%,
      rgba(30,24,56,.06) 18%,
      rgba(30,24,56,.45) 42%,
      rgba(30,24,56,.86) 64%,
      rgba(30,24,56,.97) 88%);
}
.portrait::before {
  /* the dots only show low down, fading in like a print screen */
  content: ""; position: absolute; inset: 55% 0 0 0; z-index: 1; pointer-events: none;
  background: var(--dots-gold) 0 0 / 12px 12px;
  opacity: .28;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%);
          mask-image: linear-gradient(to bottom, transparent, #000 70%);
}
.portrait__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center;
  color: rgba(255,255,255,.75); font-size: .86rem; padding: 24px; z-index: 2;
}
.portrait__ph svg { width: 40px; height: 40px; opacity: .6; }

.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: 72px;
  padding-bottom: 40px;
}
.hero h1 { color: #fff; margin-bottom: .3em; text-wrap: balance; text-shadow: 3px 3px 0 var(--navy-deep); }
.hero .eyebrow {
  color: var(--navy-deep); background: var(--gold);
  padding: 5px 11px; border-radius: 3px;
  box-shadow: 3px 3px 0 var(--navy-deep);
}
.hero__sub {
  font-size: 1.08rem; color: rgba(255,255,255,.9);
  max-width: 42ch; margin-bottom: 1.5em;
}

.hero__facts {
  display: grid; gap: 11px;
  padding-top: 18px; margin-bottom: 26px;
  border-top: 2px dashed rgba(255,255,255,.35);
}
.fact {
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; line-height: 1.3;
  color: rgba(255,255,255,.78);
}
.fact svg { width: 17px; height: 17px; flex: none; color: var(--gold); }
.fact b { font-weight: 600; color: #fff; }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 14px; z-index: 3;
  transform: translateX(-50%);
  color: var(--gold);
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); opacity: .6; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ============================================================
   Sections
   ============================================================ */

.section { padding: 56px 0; }
.section--tight { padding: 34px 0; }
/* The divider: a row of halftone dots printed across the top and bottom */
.section--alt {
  background:
    var(--dots-red) 0 6px / 16px 16px repeat-x,
    var(--dots-red) 8px calc(100% - 6px) / 16px 16px repeat-x,
    var(--paper-2);
  border-block: 2px solid var(--navy-deep);
  padding-block: 64px;
}
.section--dark {
  background-color: var(--navy-deep);
  background-image: radial-gradient(circle, rgba(255,198,41,.09) 1.4px, transparent 1.9px);
  background-size: 14px 14px;
  color: rgba(255,255,255,.82);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--gold); }
.section--dark .muted { color: rgba(255,255,255,.7); }

.section-head { margin-bottom: 26px; }
.section-head h2 { margin-bottom: 0; }
.section-head__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.grid { display: grid; gap: 20px; }
.grid-2, .grid-3 { grid-template-columns: 1fr; }

.card {
  background: var(--paper-2); border: var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card--flush { padding: 0; overflow: hidden; }
.card h3 { margin-bottom: .4em; }
.section--dark .card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.4);
  box-shadow: 4px 4px 0 var(--clay);
}

/* ============================================================
   Buttons — inked, with a hard shadow you can "press"
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 21px; border-radius: var(--radius-sm); border: var(--border);
  background: var(--navy); color: #fff; font: inherit; font-size: .95rem; font-weight: 700;
  text-decoration: none; cursor: pointer; min-height: 46px;
  box-shadow: 3px 3px 0 var(--navy-deep);
  transition: transform .18s var(--ease), background .18s ease,
              box-shadow .18s var(--ease), border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--navy); color: #fff; transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--navy-deep); }
.btn:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--navy-deep); }
.btn--ghost { background: var(--paper-2); color: var(--navy-deep); }
.btn--ghost:hover { background: var(--gold); color: var(--navy-deep); }
.btn--light { background: var(--gold); border-color: var(--navy-deep); color: var(--navy-deep); }
.btn--light:hover { background: #fff; border-color: var(--navy-deep); color: var(--navy-deep); }
.btn--outline-light { background: rgba(30,24,56,.35); border-color: #fff; color: #fff; box-shadow: 3px 3px 0 rgba(30,24,56,.8); }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--navy-deep); box-shadow: 5px 5px 0 var(--navy-deep); }
.btn--sm { padding: 9px 16px; font-size: .88rem; min-height: 40px; }
.section--dark .btn--ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 3px 3px 0 var(--clay); }
.section--dark .btn--ghost:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); box-shadow: 5px 5px 0 var(--clay); }

/* ============================================================
   Progress — a comic panel with a yellow print shadow
   ============================================================ */

.progress-card {
  position: relative;
  background: var(--paper-2); border: var(--border);
  border-radius: var(--radius-lg); padding: 24px 22px 22px;
  box-shadow: 6px 6px 0 var(--gold), 6px 6px 0 2px var(--navy-deep);
}
.progress-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.progress-big {
  font-family: var(--serif); font-size: 3.3rem; font-weight: 800;
  line-height: .95; color: var(--navy-deep); letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.progress-big small {
  display: block; font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  margin-top: 9px;
}
.progress-pct {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 800;
  color: var(--gold-text); line-height: 1; text-align: right;
  font-variant-numeric: tabular-nums;
}
.progress-pct small {
  display: block; font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 7px;
}

.bar {
  position: relative; height: 18px; border-radius: 4px;
  background: var(--dots-ink) 0 0 / 8px 8px, var(--line-soft);
  border: var(--border);
  overflow: hidden;
}
.bar__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  border-right: 2px solid var(--navy-deep);
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px),
    linear-gradient(90deg, var(--navy), var(--clay) 55%, var(--gold));
  transition: width 1.5s cubic-bezier(.22,.68,.3,1);
}
.bar-labels {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: .76rem; color: var(--ink-faint); margin-top: 11px;
}
.bar-labels span:last-child { text-align: right; }

.progress-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 22px;
  border-top: 2px dashed var(--line); padding-top: 18px;
}
.stat { min-width: 0; }
.stat__num {
  font-family: var(--serif); font-size: 1.36rem; font-weight: 800;
  line-height: 1.1; color: var(--navy-deep); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__num span { font-size: .8rem; font-weight: 500; color: var(--ink-faint); margin-left: 1px; }
.stat__label {
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-top: 6px; line-height: 1.3;
}

/* ============================================================
   Letters
   ============================================================ */

.letter-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper-2); border: var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.letter-card:hover {
  transform: translate(-2px,-3px) rotate(-.5deg);
  box-shadow: 7px 7px 0 var(--gold), 7px 7px 0 2px var(--navy-deep);
  color: inherit;
}
.letter-card:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--navy-deep); }
.letter-card__meta {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: .8rem; color: var(--ink-faint); margin-bottom: 11px;
}
.letter-card h3 { font-size: 1.36rem; margin-bottom: .35em; }
.letter-card__excerpt { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Pills are thrift-store price tags */
.pill {
  display: inline-block; padding: 3px 10px 3px 12px; border-radius: 3px 999px 999px 3px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: var(--sea-soft); color: var(--sea);
  border: 1.5px solid currentColor;
}
.pill--gold { background: var(--gold-soft); color: var(--gold-text); }
.pill--clay { background: #fde1da; color: var(--gold-text); }

.letter-full { border-bottom: 2px dashed var(--line); padding: 34px 0; }
.letter-full:last-child { border-bottom: 0; }
.letter-full__body { font-size: 1.04rem; line-height: 1.74; }
.letter-full__body p { margin-bottom: 1.2em; }

blockquote.scripture {
  margin: 1.5em 0; padding: 20px 20px;
  background: var(--sea-soft); border-left: 5px solid var(--sea);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif); font-weight: 500; font-size: 1.04rem; line-height: 1.55; color: #0d4a43;
}
blockquote.scripture p { margin-bottom: .8em; }
blockquote.scripture p:last-child { margin-bottom: 0; }
blockquote.scripture cite {
  display: block; margin-top: 12px; font-family: var(--sans); font-style: normal;
  font-size: .76rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sea);
}

.thought-card {
  background: var(--paper-2);
  border: var(--border); border-radius: var(--radius-lg);
  border-top: 8px solid var(--sea);
  padding: 26px 22px; box-shadow: 5px 5px 0 var(--sea), 5px 5px 0 2px var(--navy-deep);
}
.thought-card__quote {
  font-family: var(--serif); font-weight: 500; font-size: 1.16rem; line-height: 1.5;
  color: #0d4a43; margin: 0 0 1em;
}
.thought-card__ref {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sea); margin: 0;
}
/* On the dark section the card goes see-through */
.section--dark .thought-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.4);
  border-top-color: var(--gold);
  box-shadow: 5px 5px 0 var(--clay);
}
.section--dark .thought-card h3 { color: #fff; }
.section--dark .thought-card__quote { color: #fbf3df; }
.section--dark .thought-card__ref { color: var(--gold); }
.section--dark .thought-card p { color: rgba(255,255,255,.8); }

/* ============================================================
   From the family — shared through Mission Control.
   Always visibly distinct from his own words: a yellow taped
   note with a dashed edge (scripture is teal and solid).
   ============================================================ */

.family-note {
  position: relative;
  margin: 1.8em 0 1.5em; padding: 22px 20px 18px;
  background: var(--gold-soft); border: 2px dashed var(--gold-text);
  border-radius: var(--radius-sm);
  transform: rotate(-.4deg);
}
.family-note::before {
  content: ""; position: absolute; top: -11px; left: 22px;
  width: 74px; height: 20px; background: rgba(232,69,44,.55);
  transform: rotate(-4deg);
}
.family-note p { margin-bottom: .8em; }
.family-note p:last-child { margin-bottom: 0; }
.family-note .family-note__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: .7em;
}
.pill--family { background: var(--gold); color: var(--navy-deep); border-color: var(--navy-deep); }
.photo__shared {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  padding: 4px 10px; border-radius: 3px;
  background: var(--gold); color: var(--navy-deep); border: 1.5px solid var(--navy-deep);
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
}
.lightbox__cap .lightbox__shared { color: var(--gold); display: block; font-size: .8rem; margin-top: 4px; }

/* ============================================================
   Language corner / glossary
   ============================================================ */

.word-list { display: grid; gap: 0; }
.word {
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px 2px; background: none;
  border: 0; border-bottom: 2px dotted var(--line); border-radius: 0;
}
.word:first-child { padding-top: 2px; }
.word:last-child { border-bottom: 0; padding-bottom: 2px; }
/* Standing on their own (the glossary page) they get their box back */
.word-list--boxed .word {
  padding: 13px 16px; background: var(--paper-2);
  border: var(--border); border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--navy-deep);
}
.word-list--boxed .word:nth-child(3n+1) { box-shadow: 3px 3px 0 var(--clay); }
.word-list--boxed .word:nth-child(3n+2) { box-shadow: 3px 3px 0 var(--navy); }
.word-list--boxed .word:nth-child(3n)   { box-shadow: 3px 3px 0 var(--gold); }
.word-list--boxed { gap: 12px; }
.word__term { font-family: var(--serif); font-size: 1.1rem; color: var(--navy-deep); font-weight: 700; }
.word__def { color: var(--ink-soft); font-size: .93rem; }
.section--dark .word { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.section--dark .word__term { color: #fff; }
.section--dark .word__def { color: rgba(255,255,255,.75); }

/* ============================================================
   Photos — prints pinned up slightly crooked, collage style
   ============================================================ */

.photo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.photo {
  position: relative; border-radius: 3px; overflow: hidden;
  background: var(--line-soft); border: 5px solid var(--paper-2);
  outline: 2px solid var(--navy-deep);
  box-shadow: 4px 4px 0 2px var(--navy-deep);
  aspect-ratio: 1 / 1; cursor: pointer; padding: 0; display: block; width: 100%;
  transform: rotate(-1deg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.photo:nth-child(2n) { transform: rotate(1.2deg); }
.photo:nth-child(3n) { transform: rotate(-.4deg); }
.photo:hover { transform: rotate(0) scale(1.03); box-shadow: 7px 7px 0 2px var(--gold); z-index: 3; }
.photo:active { transform: scale(.975); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 12px 10px; text-align: left;
  background: linear-gradient(transparent, rgba(30,24,56,.92));
  color: #fff; font-size: .78rem; line-height: 1.34;
}
.photo__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 16px; color: var(--ink-faint);
  background: var(--dots-ink) 0 0 / 10px 10px, var(--line-soft);
}
.photo__ph strong { color: var(--ink-soft); font-size: .85rem; font-weight: 700; font-family: var(--serif); }
.photo__ph code { font-size: .68rem; background: rgba(255,251,242,.85); padding: 2px 6px; border-radius: 3px; }

/* A swipeable, edge-to-edge rail — the homepage version */
.photo-rail {
  margin-inline: calc(var(--gutter) * -1);
}
.photo-rail .photo-grid {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px var(--gutter) 18px;
  scrollbar-width: none;
}
.photo-rail .photo-grid::-webkit-scrollbar { display: none; }
.photo-rail .photo {
  flex: 0 0 72%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
}
.photo-rail .photo__cap { font-size: .86rem; padding: 34px 14px 13px; }

/* ============================================================
   Lightbox
   ============================================================ */

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(22,17,42,.96);
  align-items: center; justify-content: center;
  padding: 72px 14px 88px;
}
.lightbox.open { display: flex; animation: lbIn .24s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; animation: lbFig .32s var(--ease); }
@keyframes lbFig { from { opacity: 0; transform: scale(.96) rotate(-1deg); } to { opacity: 1; transform: none; } }
.lightbox img {
  max-width: min(1000px, 94vw); max-height: 66vh;
  object-fit: contain; border-radius: 3px; margin: 0 auto;
  border: 6px solid var(--paper-2);
}
.lightbox__cap { color: #fff; text-align: center; margin-top: 16px; font-size: .95rem; }
.lightbox__cap span { display: block; color: rgba(255,255,255,.7); font-size: .8rem; margin-top: 4px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: var(--gold); border: 2px solid var(--navy-deep); color: var(--navy-deep);
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.35rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 3px 3px 0 var(--clay);
  transition: background .16s ease, transform .16s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: #fff; }
.lightbox__close:active, .lightbox__nav:active { transform: scale(.92); }
.lightbox__close { top: 16px; right: 16px; }
/* On a phone the arrows sit under the picture, not on it */
.lightbox__nav { bottom: 20px; top: auto; }
.lightbox__nav--prev { left: 26%; }
.lightbox__nav--next { right: 26%; }

/* ============================================================
   Map / areas
   ============================================================ */

.map-shell { display: grid; grid-template-columns: 1fr; gap: 16px; }
.map-pane {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: var(--border); box-shadow: var(--shadow); background: #e4dfd2;
}
.map-pane__label {
  position: absolute; z-index: 3; top: 12px; left: 12px;
  background: var(--gold); color: var(--navy-deep); border: 2px solid var(--navy-deep);
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 3px; pointer-events: none;
  transform: rotate(-2deg);
}
#map, #pano { height: 340px; width: 100%; }

.pano-note {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 6px;
  padding: 28px; background: var(--dots-ink) 0 0 / 12px 12px, var(--paper-2); color: var(--ink-soft); font-size: .92rem; line-height: 1.55;
}
.pano-note[hidden] { display: none; }
.pano-note strong { color: var(--navy-deep); font-family: var(--serif); font-size: 1.08rem; }

.map-hint { font-size: .87rem; margin: 12px 0 0; }
.map-hint[hidden] { display: none; }

.area-tabs {
  display: flex; gap: 10px; margin-bottom: 16px;
  overflow-x: auto; padding-bottom: 6px; padding-top: 2px;
  scrollbar-width: none; margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.area-tabs::-webkit-scrollbar { display: none; }
.area-tabs[hidden] { display: none; }
.area-tab {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: var(--radius-sm); white-space: nowrap; flex: none;
  border: var(--border); background: var(--paper-2); color: var(--ink-soft);
  box-shadow: 2px 2px 0 var(--navy-deep);
  transition: background .18s ease, color .18s ease, transform .18s var(--ease);
}
.area-tab:hover { background: var(--gold-soft); color: var(--navy-deep); }
.area-tab:active { transform: translate(2px,2px); box-shadow: none; }
.area-tab.is-active { background: var(--navy); color: #fff; }
.area-tab__now {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 3px;
  background: var(--gold); color: var(--navy-deep); font-size: .64rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px;
}
.area-tab--ghost { border-style: dashed; }

.map-setup {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; min-height: 280px; padding: 36px 22px;
  border: 2px dashed var(--navy-deep); border-radius: var(--radius);
  background: var(--dots-ink) 0 0 / 14px 14px, var(--paper-2); color: var(--ink-soft);
}
.map-setup svg { color: var(--clay); }
.map-setup h3 { margin: 0; }
.map-setup p { max-width: 52ch; margin: 0; font-size: .95rem; }
.map-setup code {
  background: var(--gold-soft); padding: 2px 6px; border-radius: 3px;
  font-size: .88em; color: var(--navy-deep);
}
.gm-style .gm-style-iw-c { border-radius: 6px; padding: 14px 16px; }
.gm-style .gm-style-iw-d { overflow: hidden !important; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 0; border-left: 3px dotted var(--navy-deep);
}
.timeline__item { position: relative; padding-bottom: 26px; }
.timeline__item::before {
  content: ""; position: absolute; left: -28px; top: 5px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--navy-deep);
}
.timeline__item--current::before { background: var(--gold); box-shadow: 2px 2px 0 var(--clay); }
.timeline__item--done::before { background: var(--sea); }
.timeline__date { font-size: .74rem; color: var(--ink-faint); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.timeline__item h3 { margin: 4px 0 .3em; font-size: 1.16rem; }
.timeline__item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ============================================================
   Search / filters
   ============================================================ */

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.input, .select, .textarea {
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  padding: 11px 14px;
  border: var(--border); border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--ink); width: 100%;
  box-shadow: 3px 3px 0 var(--line);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 3px 3px 0 var(--gold);
}
.textarea { min-height: 220px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.6; resize: vertical; }
.search-wrap { flex: 1 1 100%; }

/* ============================================================
   Footer — the back cover: plum ink, halftone, a yellow rule
   ============================================================ */

.site-footer {
  background-color: var(--navy-deep);
  background-image: radial-gradient(circle, rgba(255,198,41,.12) 1.4px, transparent 1.9px);
  background-size: 14px 14px;
  color: rgba(255,255,255,.8);
  border-top: 6px solid var(--gold);
  box-shadow: inset 0 3px 0 var(--navy-deep), inset 0 9px 0 var(--clay);
  padding: 50px 0 34px; font-size: .94rem;
}
.site-footer h4 {
  display: inline-block;
  color: var(--navy-deep); background: var(--gold);
  font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px; transform: rotate(-1.5deg);
  margin-bottom: 14px;
}
.site-footer a { color: #fff; text-decoration-color: rgba(255,198,41,.6); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 2px dashed rgba(255,255,255,.25);
  font-size: .82rem; color: rgba(255,255,255,.68);
  display: flex; flex-direction: column; gap: 6px;
}

/* ============================================================
   Admin
   ============================================================ */

.admin-body { counter-reset: step; }
.admin-step { counter-increment: step; margin-bottom: 30px; }
.admin-step h2::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 32px; height: 32px; margin-right: 12px; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep); border: 2px solid var(--navy-deep);
  font-family: var(--sans); font-size: .92rem; font-weight: 700; vertical-align: 3px;
}
.para-pick {
  padding: 13px 16px; border: var(--border); border-radius: var(--radius-sm);
  background: var(--paper-2); margin-bottom: 8px; cursor: pointer; font-size: .93rem;
  display: flex; gap: 12px; align-items: flex-start; transition: border-color .16s, background .16s;
}
.para-pick:hover { border-color: var(--sea); }
.para-pick.picked { border-color: var(--sea); background: var(--sea-soft); }
.para-pick input { margin-top: 5px; flex: none; }
.code-out {
  background: var(--navy-deep); color: #efe7d4; border-radius: var(--radius);
  padding: 18px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .78rem; line-height: 1.6; overflow-x: auto; white-space: pre;
  max-height: 420px; overflow-y: auto;
}
.note {
  background: var(--gold-soft); border: 2px dashed var(--gold-text); color: #5e2010;
  border-radius: var(--radius-sm); padding: 14px 17px; font-size: .9rem;
}
.note strong { color: #3f150a; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 13px; margin-bottom: 13px; }
.field label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }

/* ============================================================
   ≥ 600px — small tablets
   ============================================================ */

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .photo-rail .photo { flex-basis: 46%; }
  .field-row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .search-wrap { flex: 1 1 260px; max-width: 380px; }
  .progress-card { padding: 30px 30px 26px; }
  .card { padding: 26px 28px; }
  .thought-card { padding: 32px 34px; }
  .letter-card { padding: 26px 28px; }
  .word { flex-direction: row; align-items: baseline; gap: 12px; }
  .word__def { margin-left: auto; text-align: right; }
}

/* ============================================================
   ≥ 900px — desktop. The hero becomes a spread again.
   ============================================================ */

@media (min-width: 900px) {
  :root { --header-h: 68px; }

  .section { padding: 84px 0; }
  .section--tight { padding: 52px 0; }
  .section--alt { padding-block: 92px; }
  .section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 34px; flex-wrap: wrap;
  }
  .section-head__actions { margin-top: 0; }

  .grid { gap: 28px; }
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  /* Header: always solid, inline nav, no sheet */
  body.has-hero .site-header {
    background: rgba(245,236,215,.95);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom-color: var(--navy-deep);
  }
  body.has-hero .site-header:not(.is-stuck) .brand { color: var(--navy-deep); }
  body.has-hero .site-header:not(.is-stuck) .brand small { color: var(--ink-faint); }
  .brand { font-size: 1.1rem; }
  .brand__sun { width: 32px; height: 32px; }
  .brand small { font-size: .68rem; }
  .nav-toggle { display: none; }
  .nav-backdrop { display: none; }
  .nav {
    position: static; inset: auto;
    flex-direction: row; align-items: center; gap: 4px;
    margin-left: auto; padding: 0;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  .nav a {
    padding: 6px 12px; border-radius: var(--radius-sm); font-size: .93rem;
    opacity: 1; transform: none; transition-delay: 0ms !important;
  }
  /* hover is a highlighter swipe */
  .nav a:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--navy-deep); }
  .nav a[aria-current="page"]:hover { background: var(--navy); color: #fff; }

  /* Hero: the portrait becomes a taped-up print on a cobalt wall
     printed with a big halftone burst */
  .hero {
    min-height: 0;
    align-items: center;
    margin-top: 0; padding-top: 0;
    background:
      linear-gradient(100deg, var(--navy) 0 58%, transparent 58%),
      repeating-linear-gradient(135deg, var(--navy) 0 18px, #2a4cc4 18px 36px);
  }
  .hero__rays {
    display: block;
    position: absolute; top: -160px; right: -120px;
    width: 680px; height: 680px; pointer-events: none; z-index: 1;
    border-radius: 50%;
    background: var(--dots-gold) 0 0 / 18px 18px;
    -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.75) 35%, transparent 68%);
            mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.75) 35%, transparent 68%);
    opacity: .55;
  }
  .hero__inner {
    display: grid; grid-template-columns: 1.35fr .95fr;
    gap: 64px; align-items: center;
    padding: 80px var(--gutter) 92px;
    max-width: var(--wrap); margin: 0 auto;
  }
  .hero__inner > * { min-width: 0; }
  .portrait {
    position: relative; inset: auto;
    border-radius: 2px; aspect-ratio: 4 / 5;
    overflow: visible;
    border: 12px solid var(--paper-2);
    border-bottom-width: 44px;           /* an instant-photo print */
    box-shadow: 0 0 0 2px var(--navy-deep), 14px 14px 0 2px var(--clay), 14px 14px 0 4px var(--navy-deep);
    background: var(--navy-deep);
    transform: rotate(2.2deg);
    order: 2;
    z-index: 2;                          /* above the halftone burst, so no dots on his face */
  }
  .portrait img { object-position: center 30%; animation: none; transform: none; }
  .portrait::before { display: none; }
  /* a strip of tape holding the print up */
  .portrait::after {
    display: block; inset: auto;
    top: -26px; left: 50%; width: 130px; height: 34px;
    margin-left: -65px;
    background: rgba(255,198,41,.82);
    border-left: 2px dashed rgba(30,24,56,.25);
    border-right: 2px dashed rgba(30,24,56,.25);
    transform: rotate(-5deg);
  }
  .hero__sub { font-size: 1.16rem; }
  .hero__facts {
    display: flex; flex-wrap: wrap; gap: 12px 26px;
  }
  .fact { font-size: .9rem; }
  .scroll-hint { display: none; }

  /* Progress */
  .progress-big { font-size: 3.9rem; }
  .progress-stats { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .stat__num { font-size: 1.55rem; }

  /* Photos back to a grid everywhere */
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
  .photo-rail { margin-inline: 0; }
  .photo-rail .photo-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    overflow: visible; padding: 6px 0 0;
  }
  .photo-rail .photo { flex: initial; aspect-ratio: 1 / 1; }
  .photo-rail .photo__cap { font-size: .85rem; padding: 26px 14px 12px; }

  /* Lightbox arrows return to the sides */
  .lightbox { padding: 40px 24px; }
  .lightbox img { max-height: 78vh; }
  .lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__nav:active { transform: translateY(-50%) scale(.92); }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox__close { top: 20px; right: 22px; }

  /* Map side by side */
  .map-shell { grid-template-columns: 1fr 1fr; gap: 20px; }
  #map, #pano { height: 460px; }
  .area-tabs { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }

  .letter-full { padding: 44px 0; }
  .letter-full__body { font-size: 1.05rem; }
  .timeline { padding-left: 32px; }
  .timeline__item::before { left: -32px; }
  .site-footer { padding: 58px 0 40px; }
}

@media print {
  .site-header, .site-footer, .toolbar, .btn, .scroll-hint, .nav-backdrop { display: none !important; }
  body { background: #fff; }
  .js-motion .reveal { opacity: 1 !important; transform: none !important; }
}

/* Under the maps: the pins are only somewhere in the area. */
.map-note { font-size: .87rem; margin: 14px 0 0; color: var(--ink-soft); }
.map-note strong { color: var(--ink); }

/* Mission president (About page) and mission boundary picture (map page). */
.president { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: start; margin-top: 1.2em; }
.president--nophoto { grid-template-columns: 1fr; }
.president__photo img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px;
  border: 6px solid var(--paper-2); outline: 2px solid var(--navy-deep); box-shadow: 5px 5px 0 2px var(--navy-deep);
  transform: rotate(-1.5deg);
}
.president h3 { margin: 0 0 .25em; }
.president__since { color: var(--ink-soft); font-size: .93rem; margin-bottom: 1.1em; }
.president__source { color: var(--ink-soft); font-size: .86rem; }
@media (max-width: 640px) {
  .president { grid-template-columns: 1fr; }
  .president__photo { max-width: 220px; }
}
.boundary-map { margin: 1.4em 0 0; }
.boundary-map img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: var(--border); box-shadow: var(--shadow); }
.boundary-map figcaption { color: var(--ink-soft); font-size: .87rem; margin-top: 12px; }

/* A photo nobody captioned shows no caption bar. */
.photo__cap:empty, .photo__ph strong:empty { display: none; }

/* The Mission page: the copy and the boundary picture side by side on a desktop.
   When there's no picture the copy keeps its reading width on its own. */
.mission-about { display: flex; flex-direction: column; gap: 30px; }
.mission-about__text { max-width: 64ch; }
.mission-about__map .boundary-map { margin: 0; }
@media (min-width: 900px) {
  .mission-about { flex-direction: row; align-items: flex-start; gap: 56px; }
  .mission-about__text { flex: 1 1 0; }
  .mission-about__map { flex: 0 1 460px; }
}

/* A one-line card that points to another page. */
.mission-link {
  display: flex; align-items: center; gap: 18px; justify-content: space-between;
  text-decoration: none; color: var(--navy-deep);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.mission-link .stat__label { display: block; margin: 0 0 6px; }
.mission-link strong { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.mission-link__arrow {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--navy-deep);
  font-size: 1.3rem; color: var(--navy-deep); transition: transform .2s var(--ease);
}
.mission-link:hover { color: var(--navy-deep); transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }
.mission-link:hover .mission-link__arrow { transform: translateX(4px) rotate(-8deg); }

/* Short facts (About and The Mission pages): two to a row even on a phone,
   each one a slightly different colour of print shadow. */
.fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact-grid .card { padding: 16px 16px !important; }
.fact-grid .card:nth-child(4n+1) { box-shadow: 4px 4px 0 var(--clay); }
.fact-grid .card:nth-child(4n+2) { box-shadow: 4px 4px 0 var(--navy); }
.fact-grid .card:nth-child(4n+3) { box-shadow: 4px 4px 0 var(--gold); }
.fact-grid .card:nth-child(4n)   { box-shadow: 4px 4px 0 var(--sea); }
.fact-grid--pair { max-width: 640px; }
@media (min-width: 900px) {
  .fact-grid { gap: 22px; }
  .fact-grid:not(.fact-grid--pair) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-grid .card { padding: 22px 24px !important; }
}

/* Seven links in the header: keep each on one line, and tighten them up on
   narrower desktops so they still fit beside the name. */
@media (min-width: 900px) {
  .nav a { white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1139px) {
  .nav { gap: 0; }
  .nav a { padding: 6px 8px; font-size: .86rem; }
}

/* Family videos: a play badge on the poster, and Stream's player in the lightbox. */
.photo__play {
  position: absolute; top: 50%; left: 50%; z-index: 2; width: 54px; height: 54px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--gold); border: 2px solid var(--navy-deep);
  box-shadow: 3px 3px 0 var(--navy-deep);
  pointer-events: none;
}
.photo__play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--navy-deep);
}
.lightbox__video { width: min(1000px, 94vw); aspect-ratio: 16 / 9; max-height: 66vh; margin: 0 auto; }
.lightbox__video iframe { width: 100%; height: 100%; border: 0; border-radius: 3px; background: #000; }
@media (min-width: 900px) { .lightbox__video { max-height: 78vh; } }
