/* =========================================================================
   Living Like Linda
   1  Tokens
   2  Reset and base
   3  Typography
   4  Utilities and components (container, section, button, frame, panel)
   5  Header and mobile menu
   6  Hero
   7  Manifesto
   8  What we do (intro band, polaroid fan, pinned stage)
   9  Our approach
   10 Linda's story
   11 Gallery
   12 News
   13 Donate and contact
   14 Footer
   15 Lightbox
   16 Motion initial states and reduced-motion resets
   ========================================================================= */

/* 1 Tokens ---------------------------------------------------------------- */
:root {
  --teal: #14A9BA;
  --teal-deep: #067E8C;
  --teal-dark: #045C66;
  --aqua: #6ED6E4;
  --mist: #EAF6F8;
  --white: #FFFFFF;
  --ink: #0B2B33;
  --ink-2: #123B45;
  --text: #1D3A42;
  --muted: #5B7C85;
  --gold: #E9B44C;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: min(100% - 3rem, 1360px);
  --section-pad: clamp(5rem, 10vw, 9rem);
  --radius: 14px;
  --gap-col: clamp(2rem, 5vw, 5rem);

  --shadow-frame: 0 34px 70px -40px rgba(11, 43, 51, .65);
  --shadow-soft: 0 20px 46px -30px rgba(11, 43, 51, .5);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { max-width: 100%; }
img { border-style: none; }

h1, h2, h3, p, ul, figure, dialog { margin: 0; }
ul { padding: 0; }

a { color: var(--teal-deep); }
a:focus-visible,
button:focus-visible,
dialog:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 3px;
}
.section--ink a:focus-visible,
.section--ink button:focus-visible,
.section--teal a:focus-visible,
.section--teal button:focus-visible,
.stage a:focus-visible,
.stage button:focus-visible,
.site-footer a:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible,
.lightbox button:focus-visible,
.lightbox a:focus-visible { outline-color: var(--aqua); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Lenis smooth scroll requirements */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* 3 Typography ------------------------------------------------------------ */
h1, h2, h3,
.manifesto__statement,
.quote,
.panel__heading {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  letter-spacing: -.015em;
  line-height: 1.02;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 6.6vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.1; }

.lead {
  font-size: clamp(1.15rem, 1.35vw, 1.375rem);
  line-height: 1.55;
}

.quote {
  font-style: italic;
  font-weight: 450;
  font-variation-settings: "opsz" 72, "SOFT" 60, "WONK" 1;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
}

.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1;
}

/* 4 Utilities and components ---------------------------------------------- */
.container { width: var(--container); margin-inline: auto; }

.section {
  position: relative;
  padding-block: var(--section-pad);
  scroll-margin-top: 5rem;
}
.section--mist { background: var(--mist); color: var(--text); }
.section--white { background: var(--white); color: var(--text); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .82); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--teal {
  background: linear-gradient(158deg, #0B93A3 0%, var(--teal-deep) 42%, var(--teal-dark) 100%);
  color: rgba(255, 255, 255, .94);
}
.section--teal h2, .section--teal h3 { color: #fff; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1.2;
  padding: 1.05rem 2rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 2px dashed rgba(255, 255, 255, .9);
  opacity: 0;
  transition: opacity .2s var(--ease-out);
  pointer-events: none;
}
.btn--sm { padding: .7rem 1.4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn--primary:hover::after { opacity: 1; }
.btn--ghost {
  background: transparent;
  color: var(--teal-deep);
  box-shadow: inset 0 0 0 2px var(--teal-deep);
}
.btn--ghost:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost:hover::after { opacity: 1; }
.btn--white { background: #fff; color: var(--teal-dark); box-shadow: var(--shadow-soft); }
.btn--white::after { border-color: rgba(6, 126, 140, .85); }
.btn--white:hover { transform: translateY(-2px); }
.btn--white:hover::after { opacity: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Stitched frame */
.frame {
  --frame-pad: 13px;
  --frame-stitch: 9px;
  position: relative;
  display: block;
  margin: 0;
  padding: var(--frame-pad);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-frame);
}
.frame::before {
  content: "";
  position: absolute;
  inset: var(--frame-stitch);
  border: 2px dashed rgba(233, 180, 76, .8);
  border-radius: 6px;
  pointer-events: none;
}
.frame > picture { display: block; overflow: hidden; border-radius: 4px; }
.frame img { display: block; width: 100%; height: auto; border-radius: 4px; }
.frame--dark { background: var(--ink-2); }
/* Even padding on all four sides so the dashed stitch sits the same distance
   from every edge of the photo. A thicker polaroid chin left the stitch line
   floating in white space below the image. */
.frame--polaroid { padding: var(--frame-pad); }

/* Panels */
.panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  box-shadow: var(--shadow-frame);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(233, 180, 76, .55);
  border-radius: 8px;
  pointer-events: none;
}
.panel__heading { font-size: clamp(1.35rem, 1.8vw, 1.7rem); font-weight: 500; margin-bottom: .85rem; color: var(--ink); }
.panel__list { list-style: none; display: grid; gap: .7rem; }
.panel__list li { position: relative; padding-left: 1.6rem; }
.panel__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal);
}
.panel--glass {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .92);
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.panel--glass::before { border-color: rgba(255, 255, 255, .45); }
.panel--glass .panel__heading { color: #fff; }
.panel--glass a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.panel--glass a:hover { text-decoration-color: #fff; }

/* Ribbon motif */
.ribbon { display: block; width: 100%; height: auto; overflow: visible; }
.ribbon__edge { stroke: var(--teal-deep); }
.ribbon__stitch { stroke: #fff; opacity: .9; }
.ribbon__body { stroke: var(--teal); }

.stitch-rule {
  display: block;
  height: 0;
  border-top: 2px dashed rgba(91, 124, 133, .45);
  margin-bottom: 1.1rem;
}

/* Tick icon */
.tick { width: 30px; height: 30px; flex: 0 0 auto; margin-top: .1em; }
.tick__ring { stroke: rgba(20, 169, 186, .35); stroke-width: 1.6; fill: rgba(20, 169, 186, .08); }
.tick__mark { stroke: var(--teal-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 5 Header and mobile menu ------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-block: 1.1rem;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), padding .35s var(--ease-out);
}
.site-header__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img {
  height: 70px;
  width: auto;
  transition: height .35s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(11, 43, 51, .08), 0 18px 40px -34px rgba(11, 43, 51, .8);
  padding-block: .55rem;
}
.site-header.is-scrolled .site-header__logo img { height: 46px; }
.site-header.is-menu-open { background: transparent; box-shadow: none; }

.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav__list a {
  position: relative;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  text-decoration: none;
  padding-block: .4rem;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.site-nav__list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 2px rgba(6, 126, 140, .35);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { width: 100%; max-width: 26rem; }
.mobile-menu__list { list-style: none; display: grid; gap: .25rem; margin-bottom: 2rem; }
.mobile-menu__list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  padding-block: .25rem;
}
.mobile-menu__cta { width: 100%; }

/* 6 Hero ------------------------------------------------------------------ */
.hero {
  padding-top: clamp(7rem, 11.5vw, 10.5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  overflow: hidden;
}
/* The ribbon is sized from the hero row (container units) so its sweep sits in
   the same place relative to the headline, text and photos at every width. */
.hero__ribbon {
  position: absolute;
  left: -25cqw;
  top: -13cqw;
  width: 150cqw;
  z-index: 0;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__title { color: var(--ink); }
.hero__row {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: var(--gap-col);
  align-items: stretch;
  margin-top: clamp(1.5rem, 3vw, 2.75rem);
}
.hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.4rem, 2.4vw, 2rem);
  padding-top: 19cqw;
}
.hero__lead { color: var(--text); font-size: clamp(1.2rem, 1.5vw, 1.5rem); }
.hero__reg { color: var(--muted); font-size: .95rem; padding-top: clamp(.25rem, 1vw, .75rem); }

.hero__media { position: relative; z-index: 1; padding: 2% 0 4%; }
.hero__frame { width: 58%; margin-left: auto; margin-right: 8%; }
.hero__pol { position: absolute; }
.hero__pol--1 { width: 36%; left: 0; bottom: 3%; rotate: -5deg; }
.hero__pol--2 { width: 26%; right: 0; top: 0; rotate: 4deg; }

/* 7 Manifesto ------------------------------------------------------------- */
.manifesto__inner {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: var(--gap-col);
  align-items: center;
}
.manifesto__statement {
  font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -.012em;
  color: #fff;
  text-wrap: pretty;
}
.manifesto__statement .word { display: inline-block; }
.manifesto__note {
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .8);
}
.manifesto__frame { --frame-pad: 14px; }

/* 8 What we do ------------------------------------------------------------ */
.what { padding-bottom: 0; }
.what__intro {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: var(--gap-col);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.what__title { color: var(--ink); margin-bottom: clamp(1.2rem, 2vw, 1.8rem); }

.fan { position: relative; height: clamp(20rem, 30vw, 27rem); }
.fan__card {
  --frame-pad: 11px;
  position: absolute;
  width: 27%;
  text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.fan__card:hover { transform: translateY(-10px) scale(1.03); z-index: 6; }
.fan__card--1 { left: 0;     bottom: 7%;  rotate: -7deg; z-index: 1; }
.fan__card--2 { left: 18.5%; bottom: 0;   rotate: -2deg; z-index: 2; }
.fan__card--3 { left: 37%;   bottom: 9%;  rotate: 2deg;  z-index: 3; }
.fan__card--4 { left: 55.5%; bottom: 4%;  rotate: 5.5deg; z-index: 4; }
.fan__card--5 { left: 73%;   bottom: 11%; rotate: -3.5deg; z-index: 5; }
.fan__label {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Stage: static fallback (no JS or reduced motion) */
.stage { position: relative; background: var(--ink); }
.stage__slides { display: block; }
.stage__slide { position: relative; display: block; }
.stage__plate { display: block; }
.stage__plate img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.stage__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 20, 25, .88) 0%, rgba(6, 20, 25, .55) 32%, rgba(6, 20, 25, .06) 62%),
    linear-gradient(to right, rgba(6, 20, 25, .6) 0%, rgba(6, 20, 25, 0) 55%);
  pointer-events: none;
}
.stage__content {
  position: absolute;
  left: clamp(1.25rem, 5vw, 5.5rem);
  bottom: clamp(1.5rem, 5vw, 5rem);
  right: clamp(1.25rem, 30vw, 30rem);
  z-index: 3;
}
.stage__counter {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--aqua);
  margin-bottom: .9rem;
}
.stage__caption {
  font-size: clamp(2.2rem, 5vw, 5rem);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
.stage__polaroid {
  --frame-pad: 12px;
  position: absolute;
  z-index: 3;
  right: clamp(1.25rem, 5vw, 5.5rem);
  bottom: clamp(1.5rem, 5vw, 5rem);
  width: clamp(8rem, 18vw, 17rem);
  rotate: 3.5deg;
}
.stage__slide:nth-child(even) .stage__polaroid { rotate: -4deg; }

.stage__dots, .stage__progress { display: none; }

/* 9 Our approach ---------------------------------------------------------- */
.approach__row {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  gap: var(--gap-col);
  align-items: center;
}
.approach__title { color: var(--ink); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.approach__listwrap { position: relative; padding-left: clamp(1.4rem, 2.6vw, 2.4rem); }
.approach__stitch {
  position: absolute;
  left: 0;
  top: .5rem;
  bottom: .5rem;
  width: 0;
  border-left: 2px dashed rgba(233, 180, 76, .9);
  transform-origin: top center;
}
.approach__list { list-style: none; display: grid; gap: clamp(1.1rem, 2vw, 1.7rem); }
.approach__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.5;
  color: var(--text);
  padding-bottom: clamp(1.1rem, 2vw, 1.7rem);
  border-bottom: 1px solid rgba(91, 124, 133, .22);
}
.approach__item:last-child { border-bottom: 0; padding-bottom: 0; }

.approach__media { position: relative; }
.approach__frame { --frame-pad: 14px; width: 92%; margin-left: auto; }
.approach__frame img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; }
.approach__panel {
  position: relative;
  z-index: 2;
  width: 86%;
  margin-top: clamp(-5rem, -6vw, -3rem);
  margin-left: 0;
}

.approach__close {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  justify-items: start;
}
.approach__quote { text-wrap: pretty; }

/* 10 Linda's story -------------------------------------------------------- */
.story__title { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.story__chapters { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.story__chapter { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.story__chapter-heading { color: #fff; margin-bottom: 1.1rem; font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 600; }
.story__body p { font-size: clamp(1.1rem, 1.3vw, 1.3rem); color: rgba(255, 255, 255, .82); }
.story__shot { position: relative; }
.story__shot .frame { --frame-pad: 14px; }
.story__shot-pol {
  --frame-pad: 11px;
  position: absolute;
  width: 40%;
  left: 4%;
  bottom: -8%;
  rotate: -6deg;
  z-index: 2;
}
.story__rail { display: none; }

/* 11 Gallery -------------------------------------------------------------- */
.gallery__head { width: auto; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.gallery__title { color: var(--ink); margin-bottom: 1rem; }
.gallery__head .lead { color: var(--muted); }
.gallery__pin { width: var(--container); margin-inline: auto; }
.gallery__track { columns: 2; column-gap: clamp(1rem, 2vw, 1.5rem); }
.gallery__item {
  --frame-pad: 10px;
  width: 100%;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  break-inside: avoid;
  border: 0;
  cursor: pointer;
  padding: var(--frame-pad);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.gallery__item:hover { scale: 1.03; }
.gallery__item:hover::before { border-color: var(--teal); }
.gallery__ribbon, .gallery__hud { display: none; }

/* 12 News ----------------------------------------------------------------- */
.news__title { color: var(--ink); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 3rem);
}
.news-card { display: flex; flex-direction: column; align-items: flex-start; }
.news-card__media { --frame-pad: 12px; width: 100%; margin-bottom: 1.6rem; }
/* The photo opens the article too. It is a redundant pointer target rather than
   a second button, so it adds no duplicate tab stop: Read more covers keyboard. */
.news-card__media[data-open-article] { cursor: pointer; }
.news-card__media img { aspect-ratio: 16 / 11; object-fit: cover; object-position: center 28%; transition: transform .5s var(--ease-out); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card:hover .news-card__media::before { border-color: var(--teal); }
.news-card__heading { color: var(--ink); }
.news-card__date { color: var(--muted); font-size: .9rem; font-weight: 600; margin: .6rem 0 .9rem; }
.news-card__excerpt { margin-bottom: 1.5rem; }
.news-card__more { margin-top: auto; }
.article-source { margin-top: 1.5rem; display: grid; gap: 1rem; }
.article__figure { --frame-pad: 12px; width: 100%; }
.article__actions { margin-top: .5rem; }

/* 13 Donate and contact --------------------------------------------------- */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.contact__bg picture { display: block; height: 100%; }
.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: .24;
  mix-blend-mode: luminosity;
}
.contact__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 92, 102, .5) 0%, rgba(4, 80, 90, .56) 55%, rgba(3, 66, 74, .68) 100%);
}
.contact__ribbon {
  position: absolute;
  left: 0; right: 0;
  top: clamp(1rem, 3vw, 3rem);
  pointer-events: none;
  opacity: .75;
}
.contact__ribbon .ribbon__edge { stroke: var(--teal-dark); }
.contact__ribbon .ribbon__body { stroke: var(--aqua); }
.contact__inner { position: relative; z-index: 2; }
.contact__head { display: grid; justify-items: center; text-align: center; gap: clamp(1.25rem, 2.5vw, 2rem); }
.contact__title { color: #fff; }
.contact__lead { max-width: 62ch; color: rgba(255, 255, 255, .92); }
.contact__panels {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
.contact__panels .panel p + p { margin-top: 1rem; }
.panel__data { font-weight: 600; }
.contact__notes {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
  color: rgba(255, 255, 255, .92);
}

/* 14 Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: start;
}
.site-footer__logo { height: 56px; width: auto; display: block; margin-bottom: 1.5rem; }
.site-footer__brand p + p { margin-top: .75rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: var(--aqua); color: var(--aqua); }
.site-footer__nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 1.5rem;
}
.site-footer__nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
}

/* 15 Lightbox ------------------------------------------------------------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 20, 25, .88); }
/* Script focuses the panel when an article opens so arrow keys scroll it. It is a
   scroll container rather than a tabbable control, so it draws no focus ring; the
   close button and any links inside keep theirs. */
.lightbox .lightbox__panel:focus,
.lightbox .lightbox__panel:focus-visible { outline: none; }
.lightbox__panel {
  position: relative;
  width: min(100% - 2rem, 62rem);
  max-height: calc(100vh - 3rem);
  margin: 1.5rem auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Leave room above the panel for the fixed close button on narrow screens */
@media (max-width: 760px) {
  .lightbox__panel { max-height: calc(100vh - 5.5rem); margin-top: 4.5rem; }
}
/* The close button is a direct child of the dialog (which is fixed and
   full-viewport), so it never inherits the panel's transform. */
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(11, 43, 51, .16), 0 10px 26px -14px rgba(0, 0, 0, .8);
}
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__close:hover { background: #fff; }

.lightbox__image { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__image[hidden] { display: none; }
.lightbox__frame { --frame-pad: 12px; max-height: calc(100vh - 10rem); justify-self: center; max-width: 100%; }
.lightbox__frame img { max-height: calc(100vh - 12rem); width: auto; max-width: 100%; margin-inline: auto; }
.lightbox__nav {
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .2s var(--ease-out);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__counter {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.lightbox__article {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  color: var(--text);
}
.lightbox__article[hidden] { display: none; }
.lightbox__article-media { --frame-pad: 0; box-shadow: none; margin-bottom: 1.75rem; }
.lightbox__article-media::before { display: none; }
.lightbox__article-media img { border-radius: 10px; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 26%; }
.lightbox__article-heading { color: var(--ink); font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.lightbox__article-date { color: var(--muted); font-weight: 600; font-size: .9rem; margin: .75rem 0 1.5rem; }
.lightbox__article-body { display: grid; gap: 1.1rem; }
.lightbox__article-body .frame { --frame-pad: 12px; margin-block: .5rem; }
.lightbox__article-body img { aspect-ratio: 16 / 11; object-fit: cover; object-position: center 24%; }

/* 16 Responsive ----------------------------------------------------------- */
@media (min-width: 761px) {
  .story__chapter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gap-col);
    align-items: center;
  }
  .story__chapter .story__shot { order: 2; width: 66%; margin-inline: auto; }
  .story__chapter .story__body { order: 1; }
  .gallery__track { columns: 3; }
}

@media (min-width: 1140px) {
  .gallery__track { columns: 4; }
}

/* Three cards and three panels never drop to a two-up grid (that orphans the
   third beside empty space): they stay three-up down to 900px, then run as
   full-width horizontal cards, then stack on phones. */
@media (max-width: 900px) and (min-width: 761px) {
  .news__grid { grid-template-columns: minmax(0, 1fr); }
  .news-card {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }
  .news-card__media { grid-row: 1 / 5; margin-bottom: 0; }
  .news-card__media img { aspect-ratio: 4 / 5; }
  .news-card__heading, .news-card__date, .news-card__excerpt, .news-card__more { grid-column: 2; }
  .news-card__more { align-self: start; justify-self: start; }
  .contact__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__panels .panel:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-nav, .site-header__cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header__logo img { height: 56px; }
  .site-header.is-scrolled .site-header__logo img { height: 42px; }
}

/* Stacked hero from the hamburger breakpoint down: text, then the photo
   composition with the ribbon running behind it. */
@media (max-width: 900px) {
  .hero { padding-top: clamp(7rem, 14vw, 9rem); }
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 4rem); }
  .hero__text { padding-top: 0; }
  /* Fallback position; main.js pins the ribbon to the photo frame when it runs. */
  .hero__ribbon { top: 108cqw; width: 168cqw; left: -34cqw; }
  .hero__media { padding: 4% 0 12%; }
  .hero__frame { width: 62%; margin-right: 6%; }
  .hero__pol--1 { width: 38%; }
  .hero__pol--2 { width: 28%; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 2rem, 1360px); }
  .frame { --frame-pad: 9px; --frame-stitch: 6px; }

  .hero { padding-top: clamp(7rem, 24vw, 9rem); }
  .hero__ribbon { top: 170cqw; }
  .hero__frame { width: 74%; margin-right: 4%; }
  .hero__pol--1 { width: 44%; }
  .hero__pol--2 { width: 32%; }

  .manifesto__inner,
  .what__intro,
  .approach__row,
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }

  .manifesto__inner { gap: clamp(2.5rem, 8vw, 3.5rem); }
  .manifesto__frame { width: 82%; }

  .fan {
    height: auto;
    display: flex;
    /* Natural height per card: stretching them left white space under the
       landscape photos, inside the stitch line. */
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem .25rem 1.75rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .fan__card {
    position: static;
    flex: 0 0 58%;
    rotate: 0deg;
    scroll-snap-align: center;
  }
  .fan__card:hover { transform: none; }

  .stage__plate img { aspect-ratio: 4 / 5; }
  .stage__content { right: clamp(1.25rem, 6vw, 3rem); }
  .stage__polaroid {
    width: clamp(6rem, 26vw, 9rem);
    top: clamp(1.25rem, 5vw, 3rem);
    bottom: auto;
  }
  .stage__caption { text-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

  .approach__media { margin-top: 1rem; }
  .approach__frame { width: 100%; }
  .approach__panel { width: 92%; }

  .story__shot { width: 88%; }
  .story__shot-pol { width: 44%; bottom: -10%; }

  .news__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__panels { grid-template-columns: minmax(0, 1fr); }
  .contact__notes { grid-template-columns: minmax(0, 1fr); }
  .site-footer__bottom { flex-direction: column; gap: .5rem; }

  .lightbox__image { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox__frame { grid-column: 1 / -1; order: -1; justify-self: stretch; }
  .lightbox__nav--next { justify-self: end; }
}

@media (max-width: 420px) {
  .btn { padding: .95rem 1.4rem; font-size: .9rem; }
  .btn-row { gap: .65rem; }
}

/* 17 Motion: pinned layouts, initial states, reduced-motion resets --------- */
@media (prefers-reduced-motion: no-preference) {

  /* Hidden initial states apply only when JS is running */
  html.js .hero__title,
  html.js .hero__lead,
  html.js .hero__btns,
  html.js .hero__reg,
  html.js .hero__frame,
  html.js .hero__pol { opacity: 0; }
  html.js .hero__ribbon { opacity: 0; }

  html.js .news-card,
  html.js .panel--glass { opacity: 0; }

  /* News article bodies live in the page for no-JS visitors; JS moves them
     into the lightbox instead. */
  html.js .article-source { display: none; }

  /* Stage: pinned full-viewport slides */
  html.js .stage__viewport {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
  html.js .stage__slide {
    position: absolute;
    inset: 0;
    display: block;
  }
  html.js .stage__plate { position: absolute; inset: 0; overflow: hidden; }
  html.js .stage__plate img { width: 100%; height: 100%; object-fit: cover; }
  html.js .stage__polaroid { bottom: clamp(5rem, 10vw, 7rem); }
  @media (min-width: 761px) {
    /* keep the polaroid clear of the dot rail on the right edge */
    html.js .stage__polaroid { right: clamp(4rem, 6vw, 6.5rem); }
  }
  html.js .stage__dots {
    position: absolute;
    z-index: 6;
    right: clamp(1.25rem, 2.6vw, 2.5rem);
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: .9rem;
  }
  html.js .stage__dot {
    width: 14px; height: 14px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: background-color .3s var(--ease-out), transform .3s var(--ease-out);
  }
  html.js .stage__dot.is-active { background: var(--gold); transform: scale(1.35); }
  html.js .stage__progress {
    position: absolute;
    z-index: 6;
    left: 0; right: 0; bottom: 0;
    display: block;
    height: 3px;
    background: rgba(255, 255, 255, .2);
  }
  html.js .stage__progress-fill {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--aqua);
    transform: scaleX(0);
    transform-origin: left;
  }

  @media (max-width: 760px) {
    html.js .stage__dots {
      top: auto;
      bottom: 1.6rem;
      right: auto;
      left: 50%;
      transform: translateX(-50%);
      grid-auto-flow: column;
    }
    html.js .stage__polaroid { top: clamp(5.5rem, 18vw, 7rem); bottom: auto; }
    html.js .stage__content { bottom: clamp(4.5rem, 14vw, 6rem); }
  }

  /* Story: pinned crossfading chapters on desktop */
  @media (min-width: 901px) {
    html.js .story { padding-block: 0; }
    html.js .story__pin {
      min-height: 100vh;
      min-height: 100svh;
      display: grid;
      align-content: center;
      padding-block: clamp(5.5rem, 9vw, 7rem) clamp(2rem, 4vw, 3rem);
    }
    html.js .story__title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
    html.js .story__chapters { display: grid; gap: 0; }
    html.js .story__chapter {
      grid-area: 1 / 1;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: var(--gap-col);
      align-items: center;
      min-height: 0;
    }
    html.js .story__chapter .story__shot { order: 2; width: min(78%, 50vh); margin-inline: auto; }
    html.js .story__chapter .story__body { order: 1; }
    html.js .story__rail {
      display: block;
      position: relative;
      grid-area: 1 / 1;
      justify-self: center;
      align-self: stretch;
      width: 3px;
      background: rgba(255, 255, 255, .16);
      border-radius: 2px;
      z-index: 3;
    }
    html.js .story__rail-fill {
      position: absolute;
      inset: 0;
      background: var(--teal);
      border-radius: 2px;
      transform: scaleY(0);
      transform-origin: top;
    }
    html.js .story__rail i {
      position: absolute;
      left: 50%;
      width: 11px; height: 11px;
      margin: -5px 0 0 -5.5px;
      border-radius: 50%;
      background: var(--ink);
      box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
    }

    /* Gallery: pinned horizontal track on desktop */
    html.js .gallery { padding-block: 0; }
    html.js .gallery__pin { width: 100%; }
    html.js .gallery__viewport {
      position: relative;
      height: 100vh;
      height: 100svh;
      overflow: hidden;
      display: flex;
      align-items: center;
    }
    html.js .gallery__head {
      position: absolute;
      z-index: 5;
      left: clamp(2rem, 8vw, 9rem);
      right: clamp(2rem, 8vw, 9rem);
      top: clamp(5rem, 6.5vw, 6rem);
      margin: 0;
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: .5rem 1.75rem;
      pointer-events: none;
    }
    html.js .gallery__title { margin: 0; font-size: clamp(2rem, 3.4vw, 3.2rem); }
    html.js .gallery__head .lead { margin: 0; font-size: 1.05rem; }
    html.js .gallery__track {
      position: relative;
      flex: 0 0 auto;
      columns: auto;
      display: flex;
      align-items: center;
      gap: clamp(2rem, 3.4vw, 3.5rem);
      padding-inline: clamp(2rem, 8vw, 9rem);
      will-change: transform;
    }
    html.js .gallery__item {
      width: auto;
      margin: 0;
      flex: 0 0 auto;
      position: relative;
      z-index: 2;
    }
    html.js .gallery__item img { height: clamp(9rem, 24vh, 15rem); width: auto; }
    /* Photos are pegged to the ribbon by main.js (odd above the line, even
       below it, following its wave); only the tilt lives here. */
    html.js .gallery__item:nth-child(odd) { rotate: -1.6deg; }
    html.js .gallery__item:nth-child(even) { rotate: 1.6deg; }
    html.js .gallery__ribbon {
      display: block;
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 1;
      max-width: none;
    }
    html.js .gallery__hud {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      position: absolute;
      z-index: 5;
      left: clamp(2rem, 8vw, 9rem);
      right: clamp(2rem, 8vw, 9rem);
      bottom: clamp(2rem, 4vw, 3.5rem);
    }
    html.js .gallery__counter {
      font-weight: 600;
      font-size: .8rem;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--muted);
      flex: 0 0 auto;
    }
    html.js .gallery__progress {
      flex: 1 1 auto;
      height: 3px;
      background: rgba(11, 43, 51, .12);
      border-radius: 2px;
    }
    html.js .gallery__progress-fill {
      display: block;
      height: 100%;
      background: var(--teal);
      border-radius: 2px;
      transform: scaleX(0);
      transform-origin: left;
    }
  }
}

/* Masked line reveals: the mask is padded outward and pulled back so layout
   does not move and Fraunces descenders are never clipped. */
.split-line { display: block; }
.line-mask {
  display: block;
  padding: .2em .15em .3em;
  margin: -.2em -.15em -.3em;
  overflow: hidden;
  will-change: transform;
}

/* Everything visible, nothing pinned, when motion is reduced. */
@media (prefers-reduced-motion: reduce) {
  html.js .hero__title,
  html.js .hero__lead,
  html.js .hero__btns,
  html.js .hero__reg,
  html.js .hero__frame,
  html.js .hero__pol,
  html.js .hero__ribbon,
  html.js .news-card,
  html.js .panel--glass { opacity: 1 !important; transform: none !important; }
  html.js .article-source { display: none; }
  .line-mask { overflow: visible; }
}
