/* ============================================================
   McCauley for Trustee — Campaign Site
   Design system: "Civic Optimism"
   Fonts: Montserrat (Gotham substitute), Dancing Script (accent)
   Palette sampled from campaign logo + brand board
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand color */
  --cyan:       #16B3D8;
  --cyan-600:   #0E93B4;
  --cyan-700:   #0B7794;
  --cyan-050:   #E9F8FC;
  --cyan-100:   #CDEFF7;

  --navy:       #0B2443;
  --navy-900:   #071A32;
  --navy-800:   #0E2C50;
  --navy-700:   #16375F;

  --red:        #DF243F;
  --red-600:    #C21734;
  --red-050:    #FCEAED;

  --amber:      #F3A81B;
  --amber-600:  #D98E06;
  --amber-050:  #FEF4E0;

  --white:      #FFFFFF;
  --off:        #F5FCFC;
  --cream:      #FFF9F0;
  --paper:      #F4F7FA;

  --ink:        #0B2443;   /* body text = navy */
  --muted:      #536178;   /* secondary text */
  --line:       #E2E9F0;   /* hairline borders */

  /* Type */
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Montserrat', system-ui, -apple-system, sans-serif;
  --font-script:  'Dancing Script', 'Segoe Script', cursive;

  /* Spacing / shape */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --shadow-sm: 0 2px 10px rgba(11, 36, 67, 0.06);
  --shadow:    0 14px 40px rgba(11, 36, 67, 0.12);
  --shadow-lg: 0 30px 70px rgba(11, 36, 67, 0.20);

  --maxw: 1280px;
  --gutter: clamp(16px, 3vw, 40px);
  --nav-h: 82px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off);
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--cyan); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(44px, 5.5vw, 88px); }
.section--tight { padding-block: clamp(32px, 4vw, 60px); }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Decorative: flag stripes + star ---------- */
.stripes {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.stripes span {
  display: block;
  width: 34px; height: 6px;
  border-radius: 6px;
}
.stripes span:nth-child(1) { background: var(--cyan); }
.stripes span:nth-child(2) { background: var(--amber); }
.stripes span:nth-child(3) { background: var(--red); }

.kicker {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 700;
  color: var(--cyan-700);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 34px; height: 34px;
  flex: none;
  background: var(--amber);
  -webkit-mask: var(--star-mask) center / contain no-repeat;
          mask: var(--star-mask) center / contain no-repeat;
}
.kicker--light { color: var(--cyan); }
/* On navy backgrounds: amber script + cyan star. High contrast, never gray. */
.kicker--onnavy { color: var(--amber); }
.kicker--onnavy::before { background: var(--cyan); }
/* Keep the on-navy kicker amber and full-size even where a broader
   `.pagehero p` / `.donate-band p` color+size rule would otherwise win. */
.pagehero .kicker--onnavy,
.donate-band .kicker--onnavy {
  color: var(--amber);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
}

/* 4-point sparkle star used as mask */
:root {
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.7 6.6 4.7 10.6 12 12-7.3 1.4-11.3 5.4-12 12-.7-6.6-4.7-10.6-12-12C7.3 10.6 11.3 6.6 12 0Z' fill='black'/%3E%3C/svg%3E");
}

/* ---------- Eyebrow (uppercase label) ---------- */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cyan-700);
}
.eyebrow--onnavy { color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(-1px); }

.btn--donate { --btn-bg: var(--red); --btn-fg: #fff; box-shadow: 0 8px 22px rgba(223,36,63,.28); }
.btn--donate:hover { --btn-bg: var(--red-600); box-shadow: 0 14px 34px rgba(223,36,63,.36); }

.btn--cyan { --btn-bg: var(--cyan); --btn-fg: var(--navy); }
.btn--cyan:hover { --btn-bg: var(--cyan-600); --btn-fg:#fff; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { --btn-bg: var(--navy); --btn-fg: #fff; }

.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--navy); border-color:#fff; }

.btn--sm { padding: 11px 22px; font-size: .9rem; }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }

/* text link with arrow */
.arrow-link {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cyan-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .01em;
}
.arrow-link svg { width: 20px; height: 20px; transition: transform .2s ease; }
.arrow-link:hover svg { transform: translateX(5px); }
.arrow-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.arrow-link--light { color: #fff; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11,36,67,.06);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; flex: none; }
/* Horizontal transparent SVG lockup (no square background) */
.nav__logo img { height: 44px; width: auto; }
@media (max-width: 860px) { .nav__logo img { height: 36px; } }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  list-style: none;
  padding: 0;
}
.nav__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
  padding: 8px 2px;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--cyan-700); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.social-link {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan-050);
  color: var(--cyan-700);
  transition: transform .18s ease, background .2s ease, color .2s ease;
  flex: none;
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { background: var(--cyan); color: #fff; transform: translateY(-2px); }

/* hamburger */
.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 12px;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2.6px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 3px;
  transition: transform .28s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ============================================================
   HERO (V3 — photo collage + floating cards, light stage)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(24px, 3.4vw, 52px);
  background:
    radial-gradient(56% 72% at 85% 24%, rgba(22,179,216,.28), transparent 60%),
    radial-gradient(46% 60% at 0% 98%, rgba(243,168,27,.15), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--off));
}
.hero::before {
  content: "";
  position: absolute; right: -70px; top: -80px;
  width: 320px; height: 320px;
  background: rgba(22,179,216,.10);
  -webkit-mask: var(--star-mask) center/contain no-repeat;
          mask: var(--star-mask) center/contain no-repeat;
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 1.06fr;
  gap: clamp(26px, 4.5vw, 60px);
  align-items: center;
}
.hero__copy { max-width: 600px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan-700); }
.hero__eyebrow .star {
  width: 17px; height: 17px; flex: none; background: var(--amber);
  -webkit-mask: var(--star-mask) center/contain no-repeat; mask: var(--star-mask) center/contain no-repeat;
}
.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.7rem);
  margin-top: 14px;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.hero h1 .accent { color: var(--cyan-700); }
.hero__sub {
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  color: var(--muted);
  margin-top: 18px;
  max-width: 46ch;
  font-weight: 500;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.hero__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.vote-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .82rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 9px 17px; border-radius: 100px;
}
.vote-pill svg { width: 16px; height: 16px; color: var(--cyan); }
.hero__tags { font-family: var(--font-display); font-weight: 800; font-size: .82rem; color: var(--cyan-700); }

/* stage + collage */
.hero__stage { position: relative; }
.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  aspect-ratio: 1 / 0.86;
  max-width: 580px;
  margin-inline: auto;
}
.ph {
  position: relative; margin: 0;
  border-radius: 22px; overflow: hidden;
  background: var(--navy);
  box-shadow: 0 22px 46px rgba(11,36,67,.20);
  will-change: transform;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--a { grid-column: 1; grid-row: 1; }
.ph--b { grid-column: 1; grid-row: 2; }
.ph--c { grid-column: 2; grid-row: 1 / 3; }
.ph--c img { object-position: top center; }

/* floating overlay cards (parallax on outer, idle float on inner) */
.hcard, .vote-badge, .avatars { position: absolute; z-index: 5; will-change: transform; }

.hcard--post { top: -15%; left: 33%; width: min(56%, 282px); }
.hcard--post .hcard-inner {
  background: #fff; border-radius: 18px; padding: 15px 16px;
  box-shadow: 0 20px 44px rgba(11,36,67,.22);
}
.hcard__head { display: flex; align-items: center; gap: 10px; }
.hcard__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--navy); }
.hcard__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hcard__name { display: flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--navy); line-height: 1.1; }
.hcard__name svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.hcard__handle { font-size: .74rem; color: var(--muted); font-weight: 600; }
.hcard__body { margin-top: 11px; font-weight: 600; color: var(--navy); font-size: .95rem; line-height: 1.34; }
.hcard__tag { margin-top: 7px; font-family: var(--font-display); font-weight: 800; color: var(--cyan-700); font-size: .8rem; }

.vote-badge { bottom: 6%; left: -5%; }
.vote-badge .vb-inner {
  background: var(--red); color: #fff; border-radius: 16px;
  padding: 12px 22px; text-align: center;
  box-shadow: 0 18px 40px rgba(223,36,63,.36);
}
.vote-badge .vb-k { display: block; font-family: var(--font-script); font-weight: 700; font-size: 1.3rem; line-height: 1; color: #fff; }
.vote-badge .vb-d { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; margin-top: 1px; }

.avatars { bottom: 4%; right: -5%; }
.avatars-inner {
  display: flex; align-items: center;
  background: #fff; border-radius: 100px; padding: 7px 16px 7px 7px;
  box-shadow: 0 16px 36px rgba(11,36,67,.2);
}
.avatars .av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2.5px solid #fff; margin-right: -11px; flex: none; }
.avatars .av img { width: 100%; height: 100%; object-fit: cover; }
.avatars .av-label { margin-left: 18px; font-family: var(--font-display); font-weight: 800; font-size: .72rem; line-height: 1.08; color: var(--navy); }

/* Overlay cards animate in once on load (no perpetual float) */
@keyframes overlayIn {
  from { opacity: 0; transform: translateY(18px) scale(.93); }
  to { opacity: 1; transform: none; }
}
.hcard--post, .vote-badge, .avatars {
  opacity: 0;
  animation: overlayIn .7s cubic-bezier(.2,.7,.2,1) both;
}
.hcard--post { animation-delay: .5s; }
.vote-badge { animation-delay: .68s; }
.avatars { animation-delay: .86s; }
/* float-* classes are now inert (kept for markup stability) */
.float-a, .float-b { animation: none; }

/* subpage hero (smaller) — text left, imagery right */
.pagehero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(40px, 5.5vw, 80px);
}
.pagehero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(22,179,216,.34) 0%, transparent 50%),
    radial-gradient(60% 90% at 0% 100%, rgba(243,168,27,.16) 0%, transparent 55%);
}
.pagehero::after {
  content: "";
  position: absolute;
  right: -50px; bottom: -70px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.05);
  -webkit-mask: var(--star-mask) center/contain no-repeat;
          mask: var(--star-mask) center/contain no-repeat;
}
.pagehero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.pagehero__inner { max-width: 620px; }
.pagehero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.1;
}
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Small keyword/hashtag chips overlaying the masthead image (kept to a corner) */
.pagehero__tags {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: flex; gap: 10px; flex-wrap: wrap;
}
/* Solid, elevated badge styled like the hero "Save the date" card */
.pagehero__tag {
  font-family: var(--font-display); font-weight: 800; font-size: .84rem;
  color: #fff;
  background: var(--red);
  padding: 9px 16px; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(223, 36, 63, 0.42);
}
.pagehero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-top: 14px;
}
.pagehero p:not(.kicker) {
  color: rgba(255,255,255,.82);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  margin-top: 20px;
  max-width: 60ch;
}
.pagehero .btn-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.pagehero .breadcrumb {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  display: flex; gap: 8px; align-items: center;
}
.pagehero .breadcrumb a:hover { color: #fff; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-top: 14px;
}
.section-head p:not(.kicker) {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  margin-top: 18px;
}
.section-head--center .kicker { justify-content: center; }

/* ============================================================
   INTRO / STORY BAND
   ============================================================ */
.story {
  background:
    linear-gradient(180deg, var(--white), var(--off));
}
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.story__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 5/4;
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story blockquote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.story p.lede { color: var(--muted); margin-top: 20px; font-size: 1.1rem; }
.story .signature {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--cyan-700);
  margin-top: 22px;
  line-height: 1;
}
.story .sig-role { font-family: var(--font-display); font-weight:700; color: var(--muted); font-size:.9rem; margin-top:4px; }

/* Dark-blue variant (used for the section directly below the home hero) */
.story--navy {
  background:
    radial-gradient(72% 100% at 90% 8%, rgba(22,179,216,.16), transparent 55%),
    var(--navy);
}
.story--navy blockquote { color: #fff; }
.story--navy p.lede { color: rgba(255,255,255,.82); }
.story--navy .signature { color: var(--cyan); }
.story--navy .sig-role { color: rgba(255,255,255,.72); }
.story--navy .arrow-link { color: var(--cyan); }

/* ============================================================
   PLATFORM CARDS
   ============================================================ */
.platform { background: var(--off); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
/* Bold solid-color tiles. Text color is set per variant for AA contrast. */
.pcard {
  border-radius: var(--radius-lg);
  padding: 34px 30px 38px;
  position: relative;
  overflow: hidden;
  background: var(--cyan);
  color: var(--navy);
  transition: transform .22s cubic-bezier(.34,1.4,.64,1), box-shadow .22s ease;
}
.pcard::after {
  /* faint star watermark in the corner */
  content: "";
  position: absolute;
  right: -26px; bottom: -26px;
  width: 128px; height: 128px;
  background: currentColor; opacity: .10;
  -webkit-mask: var(--star-mask) center/contain no-repeat;
          mask: var(--star-mask) center/contain no-repeat;
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pcard__icon {
  width: 60px; height: 60px;
  border-radius: 17px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.26);
  color: currentColor;
  margin-bottom: 22px;
  position: relative; z-index: 1;
}
.pcard__icon svg { width: 30px; height: 30px; }
.pcard h3 { font-size: 1.42rem; color: currentColor; position: relative; z-index: 1; }
.pcard p { margin-top: 12px; font-size: 1.02rem; color: currentColor; opacity: .92; position: relative; z-index: 1; }

/* color variants */
.pcard--cyan  { background: var(--cyan);  color: var(--navy); }
.pcard--navy  { background: var(--navy);  color: #fff; }
.pcard--amber { background: var(--amber); color: var(--navy); }
.pcard--red   { background: var(--red);   color: #fff; }
/* darker icon well on light tiles for a touch more contrast */
.pcard--cyan .pcard__icon,
.pcard--amber .pcard__icon { background: rgba(11, 36, 67, 0.14); }

/* numbered platform (platform page) */
.plank {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.plank:last-child { border-bottom: 1px solid var(--line); }
.plank__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -.03em;
}
.plank__num span { display:block; width:44px; height:5px; border-radius:5px; background: var(--amber); margin-top:14px; }
.plank h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.plank p { color: var(--muted); margin-top: 12px; font-size: 1.08rem; max-width: 62ch; }

/* ============================================================
   VALUES / HASHTAG BAND (navy)
   ============================================================ */
.values {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.values::before {
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(70% 120% at 15% 0%, rgba(22,179,216,.22), transparent 55%);
}
.values .container { position: relative; z-index:1; }
.values h2 { color: #fff; }
.values__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.value {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: transform .22s ease, background .22s ease;
}
.value:hover { transform: translateY(-5px); background: rgba(255,255,255,.06); }
.value .tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.02em;
}
.value:nth-child(1) .tag { color: var(--cyan); }
.value:nth-child(2) .tag { color: var(--amber); }
.value p { color: rgba(255,255,255,.8); margin-top: 14px; font-size: 1.08rem; }

/* ============================================================
   MEET / SPOTLIGHT BAND
   ============================================================ */
.spotlight { background: var(--white); }
.spotlight__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.spotlight__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/4.6;
  max-width: 460px;
}
.spotlight__media img { width:100%; height:100%; object-fit: cover; object-position: top center; }
.spotlight__media::after {
  content:"";
  position:absolute; left:-14px; top:-14px; right:24px; bottom:24px;
  border: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  z-index:-1;
}
.spotlight ul.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.spotlight ul.checks li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 1.06rem; color: var(--navy);
  font-weight: 500;
}
.check-ico {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cyan); color: #fff;
  display: grid; place-items: center; margin-top: 2px;
}
.check-ico svg { width: 15px; height: 15px; }

/* ============================================================
   EVENTS
   ============================================================ */
.events { background: var(--off); }
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.ecard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer;
}
.ecard:focus-within { box-shadow: var(--shadow); }
.ecard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ecard__thumb { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--navy); }
.ecard__thumb img { width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.ecard:hover .ecard__thumb img { transform: scale(1.06); }
.ecard__date {
  position: absolute; left: 16px; top: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  line-height: 1;
}
.ecard__date .m { display:block; font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color: var(--red); }
.ecard__date .d { display:block; font-size:1.35rem; font-weight:800; color: var(--navy); margin-top:3px; }
.ecard__tag {
  position:absolute; right:16px; top:16px;
  background: var(--cyan); color: var(--navy);
  font-family: var(--font-display); font-weight:800;
  font-size:.72rem; letter-spacing:.06em; text-transform:uppercase;
  padding:7px 12px; border-radius:100px;
}
.ecard__body { padding: 24px 24px 26px; display:flex; flex-direction:column; flex:1; }
.ecard__meta {
  display:flex; align-items:center; gap:8px;
  color: var(--muted); font-size:.9rem; font-weight:600;
  margin-bottom: 10px;
}
.ecard__meta svg { width:16px; height:16px; color: var(--cyan-700); }
.ecard h3 { font-size: 1.3rem; }
.ecard p { color: var(--muted); margin-top: 10px; font-size: .98rem; flex: 1; }
.ecard .arrow-link { margin-top: 20px; }
/* Stretched link: makes the whole card a click target for the event.
   Anchored to .ecard (position:relative); the visible link stays the affordance. */
.ecard .stretch-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* featured event (horizontal) */
.ecard--feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  margin-top: 52px;
}
.ecard--feature .ecard__thumb { aspect-ratio: auto; min-height: 340px; height: 100%; }
.ecard--feature .ecard__body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
.ecard--feature .ecard__flag {
  font-family: var(--font-display); font-weight: 800; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.ecard--feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.ecard--feature p { font-size: 1.06rem; }
.ecard--feature .btn { align-self: flex-start; margin-top: 22px; }
@media (max-width: 760px) {
  .ecard--feature { grid-template-columns: 1fr; }
  .ecard--feature .ecard__thumb { min-height: 220px; }
}

/* small note line under hero */
.note-line {
  display: flex; align-items: center; gap: 12px;
  background: var(--cyan-050);
  border: 1px solid var(--cyan-100);
  color: var(--navy);
  border-radius: 100px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: .96rem;
  width: fit-content;
  max-width: 100%;
}
.note-line svg { width: 20px; height: 20px; color: var(--cyan-700); flex: none; }

/* events page: follow band */
.follow {
  background: var(--cyan);
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.follow::after {
  content:""; position:absolute; right:-40px; top:-40px;
  width: 200px; height:200px; background: rgba(255,255,255,.25);
  -webkit-mask: var(--star-mask) center/contain no-repeat; mask: var(--star-mask) center/contain no-repeat;
}
.follow__txt { position:relative; z-index:1; }
/* White kicker only on the solid-cyan follow band (events page) */
.follow--oncyan .kicker { color: #fff; }
.follow--oncyan .kicker::before { background: var(--navy); }
.follow h2 { color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.follow p { margin-top: 8px; font-weight: 500; max-width: 46ch; }
.follow .btn { position: relative; z-index:1; }

/* ============================================================
   DONATE CTA BAND
   ============================================================ */
.donate-band {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 55%, var(--cyan-700) 130%);
  color: #fff;
  overflow: hidden;
}
.donate-band::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(50% 80% at 88% 20%, rgba(243,168,27,.22), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(22,179,216,.28), transparent 55%);
}
.donate-band__inner {
  position: relative; z-index:1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 60px); align-items: center;
}
.donate-band h2 { color:#fff; font-size: clamp(2rem, 4vw, 3rem); }
.donate-band p:not(.kicker) { color: rgba(255,255,255,.82); margin-top: 16px; font-size: 1.12rem; max-width: 48ch; }
.donate-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  color: var(--navy);
}
.donate-card .label { font-family: var(--font-display); font-weight:800; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; color: var(--muted); }
.amount-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 18px;
}
.amount {
  display: grid; place-items:center;
  padding: 16px 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-display); font-weight:800; font-size:1.1rem;
  color: var(--navy);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, color .18s ease;
}
.amount:hover { border-color: var(--red); background: var(--red-050); transform: translateY(-2px); }
.amount--wide { grid-column: span 3; padding: 14px; }
.donate-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.donate-card .secure {
  display:flex; align-items:center; gap:8px; justify-content:center;
  margin-top:14px; color: var(--muted); font-size:.85rem; font-weight:600;
}
.donate-card .secure svg { width:15px; height:15px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding-top: clamp(56px, 7vw, 84px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand img { height: 68px; width: auto; display: block; margin: 0 0 22px; }
.footer__brand p { font-size: .96rem; max-width: 34ch; }
.footer__col h4 {
  color: #fff; font-size: .82rem; letter-spacing:.12em; text-transform: uppercase; font-weight: 800;
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer__col a { font-weight: 500; transition: color .18s ease; }
.footer__col a:hover { color: var(--cyan); }
.footer__cta .btn { width: 100%; justify-content: center; margin-bottom: 14px; }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social .social-link { background: rgba(255,255,255,.08); color:#fff; }
.footer__social .social-link:hover { background: var(--cyan); color: var(--navy); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-block: 26px;
  font-size: .84rem;
}
.footer__tags { display:flex; gap: 14px; flex-wrap: wrap; }
.footer__tags span { color: var(--cyan); font-weight: 700; }

/* ============================================================
   PROSE (Meet Ericka letter, platform copy)
   ============================================================ */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 22px; }
.prose p:not(.kicker) { font-size: 1.14rem; color: var(--navy); line-height: 1.72; }
.prose h3 { font-size: clamp(1.4rem, 2.2vw, 1.72rem); color: var(--navy); margin-top: 34px; }
.prose h3 + p { margin-top: 12px; }
.prose p.first::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.6rem;
  float: left;
  line-height: .82;
  padding: 6px 14px 0 0;
  color: var(--cyan-700);
}
.prose .pullquote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -.02em;
  border-left: 6px solid var(--cyan);
  padding: 6px 0 6px 26px;
  margin-block: 40px;
}
.prose .pullquote .amber { color: var(--amber-600); }

/* transparency deep-dive blocks */
.tblock {
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 52px);
  margin-top: 24px;
}
.tblock .kicker { margin-bottom: 8px; }
.tblock h3 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.tblock p:not(.kicker) { margin-top: 14px; font-size: 1.08rem; }
.tblock ul { margin-top: 18px; padding: 0; list-style: none; display: grid; gap: 14px; }
.tblock ul li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.06rem; }
.tblock ul li .b {
  flex: none; margin-top: 8px; width: 12px; height: 12px;
  background: currentColor; opacity:.9;
  -webkit-mask: var(--star-mask) center/contain no-repeat; mask: var(--star-mask) center/contain no-repeat;
}
.tblock--problem { background: var(--cyan-050); color: var(--navy); }
.tblock--problem .kicker { color: var(--cyan-700); }
.tblock--defined { background: var(--amber-050); }
.tblock--defined .kicker { color: var(--amber-600); }
.tblock--defined h3, .tblock--defined p, .tblock--defined li { color: var(--navy); }
.tblock--why { background: var(--navy); color: #fff; }
.tblock--why h3 { color:#fff; }
.tblock--why p, .tblock--why li { color: rgba(255,255,255,.85); }
.tblock--why .kicker { color: var(--cyan); }
/* Two-column block: text left, image right */
.tblock--media {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.tblock__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.3;
}
.tblock__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 760px) {
  .tblock--media { grid-template-columns: 1fr; }
  .tblock__media { max-width: 460px; }
}
.tblock--plan { background: var(--red); color:#fff; }
.tblock--plan h3 { color:#fff; }
.tblock--plan p, .tblock--plan li { color: rgba(255,255,255,.92); }
.tblock--plan .kicker { color:#fff; }
.tblock--plan .kicker::before { background:#fff; }
.tblock--best { background: var(--off); border:1px solid var(--line); }

.two-col-blocks { display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
.two-col-blocks .tblock { margin-top: 0; height: 100%; }

/* ============================================================
   BIO LAYOUT (Meet Ericka)
   ============================================================ */
.bio__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(36px, 5vw, 78px);
  align-items: start;
}
.bio__card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.bio__card .photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/4.5;
  background: var(--navy);
}
.bio__card .photo img { width:100%; height:100%; object-fit: cover; object-position: top center; }
.bio__card .name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--navy); margin-top: 20px; letter-spacing:-.02em;
}
.bio__card .role {
  display:flex; align-items:flex-start; gap:8px;
  color: var(--red); font-weight: 800; font-family: var(--font-display);
  font-size: .82rem; letter-spacing:.06em; text-transform: uppercase; margin-top: 8px;
  line-height: 1.3;
}
.bio__card .role .dot { width:7px; height:7px; border-radius:50%; background: var(--red); flex:none; margin-top:4px; }
.bio__card .card-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.bio__card .card-tags span {
  font-family: var(--font-display); font-weight:700; font-size:.78rem;
  padding:6px 12px; border-radius:100px; background: var(--cyan-050); color: var(--cyan-700);
}
.bio__card .btn { width:100%; justify-content:center; margin-top:18px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(240px, 22vw, 300px);
  gap: 18px;
  margin-top: 40px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--navy);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(11,36,67,.5), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery figure:hover::after { opacity: 1; }
.gallery figcaption {
  position:absolute; left:16px; right:16px; bottom:14px; z-index:1;
  color:#fff; font-family: var(--font-display); font-weight:700; font-size:.9rem;
  opacity:0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.gallery figure:hover figcaption { opacity:1; transform:none; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

@media (max-width: 860px) {
  .bio__grid { grid-template-columns: 1fr; }
  .bio__card { position: static; max-width: 420px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(220px, 34vw, 280px); }
  .gallery .wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .gallery .tall { grid-row: span 1; }
  .gallery .wide { grid-column: span 2; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Progressive enhancement: content is fully visible without JS.
   Only when the .js class is present do we hide-then-reveal on scroll. */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* hero entrance */
.hero .anim { opacity: 0; transform: translateY(20px); animation: heroIn .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .anim.a1 { animation-delay: .05s; }
.hero .anim.a2 { animation-delay: .16s; }
.hero .anim.a3 { animation-delay: .27s; }
.hero .anim.a4 { animation-delay: .38s; }
.hero .anim.a5 { animation-delay: .30s; }
@keyframes heroIn { to { opacity:1; transform:none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 74px; }
  .nav__menu, .nav__actions .social-link, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__actions .btn--donate { display: inline-flex; padding: 11px 20px; font-size:.9rem; }

  /* mobile menu panel */
  .nav__menu.is-open {
    display: flex;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 12px var(--gutter) 28px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__menu.is-open li { border-bottom: 1px solid var(--line); }
  .nav__menu.is-open .nav__link { display: block; padding: 18px 4px; font-size: 1.1rem; }
  .nav__menu.is-open .nav__link::after { display: none; }
  .nav__mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
  .nav__mobile-actions .btn { display: inline-flex; width: 100%; justify-content: center; }
  .nav__mobile-social { display: flex; gap: 12px; margin-top: 18px; justify-content:center; }

  /* Hero: copy first so the CTA stays visible, collage below */
  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-collage { max-width: 560px; margin-inline: auto; }
  .pagehero__grid { grid-template-columns: 1fr; }
  .pagehero__media { max-width: 500px; }
  .story__grid, .spotlight__grid, .donate-band__inner, .values__grid, .two-col-blocks { grid-template-columns: 1fr; }
  .spotlight__media { order: -1; max-width: 420px; }
  .story__media { order: -1; }
}

@media (max-width: 620px) {
  .cards, .event-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .plank { grid-template-columns: 1fr; gap: 12px; }
  .plank__num { font-size: 2rem; }
  .follow { flex-direction: column; align-items: flex-start; }
  /* Collage simplifies and floating cards hide on small screens */
  .hero-collage { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; gap: 12px; }
  .ph--a { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; }
  .ph--b { grid-column: 2; grid-row: 1; aspect-ratio: 1 / 1; }
  .ph--c { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 16 / 9; }
  .hcard, .vote-badge, .avatars { display: none; }
}

/* The mobile-only action block lives inside the nav menu. It must only be
   hidden on desktop; on mobile it shows when the menu is open (its parent
   .nav__menu is display:none until .is-open). Scoping to desktop avoids the
   equal-specificity rule overriding the mobile show rule. */
@media (min-width: 861px) {
  .nav__mobile-actions, .nav__mobile-social { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .anim { opacity: 1; transform: none; }
  /* keep the hero overlay cards visible when their entrance animation is disabled */
  .hcard--post, .vote-badge, .avatars { opacity: 1 !important; }
}
