/* =========================================================
   Gene Wilder Official — Legacy Site
   Brand: Cobalt Blue #0074C7 | Lato + Macondo | "Official" tab shape
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cobalt-dark); }
button { font-family: inherit; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --cobalt: #0074C7;
  --cobalt-dark: #005a9c;
  --cobalt-light: #2e93dd;
  --cobalt-pale: #e6f1fb;

  /* Neutrals from brand guide */
  --black-100: #1a1a1a;
  --black-70: #4d4d4d;
  --black-30: #B2B2B2;
  --black-20: #CCCCCC;
  --black-10: #e6e6e6;
  --ink: #1f2937;
  --ink-soft: #4b5563;

  /* Warm cream + watercolor accents (drawn from Gene's paintings) */
  --cream: #faf7f1;
  --cream-soft: #f5efe3;
  --paper: #ffffff;
  --watercolor-rose: #e8a8a0;
  --watercolor-sage: #a8c4a0;
  --watercolor-amber: #e8b94d;

  /* Type scale */
  --display: clamp(2.5rem, 5vw, 4.5rem);
  --h1: clamp(2rem, 3.5vw, 3rem);
  --h2: clamp(1.5rem, 2.5vw, 2.25rem);
  --h3: clamp(1.25rem, 1.8vw, 1.5rem);

  /* Layout */
  --max: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, .08);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, .06);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--black-100);
  margin: 0 0 .5em;
}
h1 { font-size: var(--display); font-weight: 300; letter-spacing: -.02em; }
h2 { font-size: var(--h1); font-weight: 700; }
h3 { font-size: var(--h2); font-weight: 700; }
h4 { font-size: var(--h3); font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ink); max-width: 60ch; }
.eyebrow {
  font-family: 'Macondo', cursive;
  color: var(--cobalt);
  font-size: 1.35rem;
  letter-spacing: -.02em;
  display: inline-block;
  margin-bottom: .25rem;
}
.display-script {
  font-family: 'Macondo', cursive;
  font-weight: 400;
  letter-spacing: -.02em;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2rem, 5vw, 4rem) 0; }
.section--cobalt {
  background: var(--cobalt);
  color: #fff;
}
.section--cobalt h2, .section--cobalt h3, .section--cobalt .eyebrow { color: #fff; }
.section--cobalt p { color: rgba(255,255,255,.92); }
.section--cream { background: var(--cream-soft); }
.section--paper { background: var(--paper); }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.intro { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.intro p { font-size: 1.1rem; }

/* ---------- "Official" tab shape ---------- */
/* The signature rounded parallelogram tab from the brand guide */
.tab {
  display: inline-block;
  background: var(--cobalt);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .55rem 1.4rem .5rem 1.1rem;
  border-radius: 6px 22px 22px 8px;
  transform: skewX(-8deg);
  box-shadow: 0 4px 12px rgba(0, 116, 199, .25);
}
.tab > span { display: inline-block; transform: skewX(8deg); }
.tab--ghost { background: rgba(255,255,255,.15); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 2rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Macondo', cursive;
  font-size: 1.65rem; line-height: 1; color: var(--cobalt);
  font-weight: 400;
}
.brand .brand-tab {
  font-family: 'Lato', sans-serif;
  font-size: .7rem; letter-spacing: .12em; padding: .35rem .85rem .3rem .7rem;
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  position: relative; padding: .35rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--cobalt);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--cobalt); color: #fff !important; padding: .65rem 1.25rem;
  border-radius: 999px; font-weight: 700; font-size: .9rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-cta:hover { background: var(--cobalt-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,116,199,.3); }
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none; background: none; border: 0; width: 48px; height: 48px;
  align-items: center; justify-content: center; color: var(--cobalt);
  cursor: pointer;
  border-radius: 10px;
  transition: background .2s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover, .nav-toggle:active { background: rgba(0,116,199,.08); }
.nav-toggle svg { width: 28px; height: 28px; pointer-events: none; }

/* Mobile nav */
@media (max-width: 920px) {
  .nav { min-height: 60px; padding: .75rem 0; gap: 1rem; }
  .brand { font-size: 1.4rem; }
  .brand .brand-tab { font-size: .6rem; padding: .3rem .7rem .25rem .55rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: auto;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream); padding: 1rem var(--gutter) 2rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-110%);
    transition: transform .3s ease, visibility 0s linear .3s;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }
  .nav-links.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s ease, visibility 0s linear 0s;
  }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid rgba(0,0,0,.05); font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-cta { align-self: flex-start; margin-top: .75rem; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.25rem; }
  .brand .brand-tab { font-size: .55rem; }
}

/* Social icons inside the header nav */
.nav-social {
  display: inline-flex; gap: .35rem; align-items: center;
  padding-left: .6rem; margin-left: .3rem;
  border-left: 1px solid rgba(0,0,0,.12);
}
.nav-social a {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: transparent;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-social a:hover { background: var(--cobalt); color: #fff; transform: translateY(-1px); }
.nav-social a::after { display: none !important; }
.nav-social svg { width: 17px; height: 17px; }
@media (max-width: 920px) {
  .nav-social {
    border-left: 0; padding-left: 0; margin-left: 0;
    gap: .6rem; padding: 1rem 0 0; border-top: 1px solid rgba(0,0,0,.05);
    margin-top: .5rem; width: 100%;
  }
  .nav-social a { width: 42px; height: 42px; background: rgba(0,116,199,.08); }
}

/* ---------- Follow Along / Social feed section ---------- */
.follow-along {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
}
.follow-hero { text-align: center; }
.follow-handle {
  font-family: 'Macondo', cursive;
  color: var(--cobalt);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: .5rem 0 1.5rem;
}
.follow-buttons {
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.follow-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; border: 1.5px solid var(--black-10);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.follow-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--cobalt); color: var(--ink); }
.follow-btn svg { width: 20px; height: 20px; }
.follow-btn.ig svg { color: #E1306C; }
.follow-btn.fb svg { color: #1877F2; }
.follow-btn.tt svg { color: #000; }

/* Feed grid — placeholder tiles ready to be replaced by SnapWidget/Elfsight embed */
.feed-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem;
  max-width: 940px; margin: 0 auto;
}
.feed-post {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cobalt-pale), #fff);
  position: relative;
  display: flex; align-items: flex-end;
  color: #fff; text-decoration: none;
  transition: transform .25s ease;
  cursor: pointer;
}
.feed-post:hover { transform: translateY(-3px); color: #fff; }
.feed-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.feed-post::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7) 100%);
  z-index: 1;
}
.feed-post .caption {
  position: relative; z-index: 2;
  padding: .85rem 1rem;
  font-size: .8rem; line-height: 1.35;
}
.feed-post .platform-dot {
  position: absolute; top: .65rem; right: .65rem; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
}
.feed-post .platform-dot svg { width: 14px; height: 14px; color: #fff; }
.feed-note {
  text-align: center; margin-top: 2rem;
  font-size: .85rem; color: var(--ink-soft);
  max-width: 55ch; margin-left: auto; margin-right: auto;
}
@media (max-width: 720px) {
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
}

/* SnapWidget wrapper — makes iframe responsive on all viewports */
.snap-wrap {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.snap-wrap iframe.snapwidget-widget {
  display: block;
  width: 100% !important;
  height: 570px;
  border: 0;
}
@media (max-width: 720px) {
  .snap-wrap iframe.snapwidget-widget { height: 420px; }
}
@media (max-width: 480px) {
  .snap-wrap iframe.snapwidget-widget { height: 340px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--cobalt); color: #fff;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  border: 2px solid var(--cobalt);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0,116,199,.25); color: #fff; }
.btn--ghost { background: transparent; color: var(--cobalt); }
.btn--ghost:hover { background: var(--cobalt); color: #fff; }
.btn--light { background: #fff; color: var(--cobalt); border-color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.9); color: var(--cobalt-dark); border-color: transparent; }

.btn-arrow::after {
  content: "→"; display: inline-block;
  transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(232,168,160,.25) 0%, transparent 70%),
    radial-gradient(50% 60% at 85% 80%, rgba(0,116,199,.18) 0%, transparent 70%),
    var(--cream);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
}
.hero h1 em {
  font-style: normal; font-family: 'Macondo', cursive;
  color: var(--cobalt); font-weight: 400;
}
.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
  transform: rotate(1.5deg);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
/* Photo variant: keep the whole photo in frame (no crop) on warm backdrop.
   Used when the hero image is a photograph where both people must stay visible. */
.hero-art--photo { background: linear-gradient(160deg, #f5efe3 0%, #eadfc9 100%); aspect-ratio: 3 / 4; }
.hero-art--photo img { object-fit: contain; object-position: center; padding: 1.25rem; }
.hero-art--photo::after { display: none; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.25) 100%);
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 4 / 3; transform: none; max-width: 520px; margin: 0 auto; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,0,0,.09); }
.card .eyebrow { margin-bottom: .25rem; }
.card h3 { margin-bottom: .6rem; font-size: 1.35rem; }
.card p { margin-bottom: 1rem; }
.card .card-link { margin-top: auto; font-weight: 700; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--cobalt-pale); color: var(--cobalt);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 28px; height: 28px; }

/* Cause card variant */
.cause-card { padding: 0; overflow: hidden; }
.cause-card .cause-img {
  aspect-ratio: 4 / 3; background: var(--cobalt-pale);
  background-size: cover; background-position: center;
  position: relative;
}
.cause-card .cause-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 100%);
}
.cause-card .cause-body { padding: 1.6rem 1.75rem 1.9rem; }
.cause-card h3 { font-size: 1.45rem; }

/* Film / Stage / TV tile */
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.1rem; }
.film-tile {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.film-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); color: var(--ink); border-color: rgba(0,116,199,.3); }
.film-tile .year { color: var(--cobalt); font-weight: 700; font-size: .8rem; letter-spacing: .06em; }
.film-tile .role { color: var(--ink-soft); font-size: .82rem; font-style: italic; margin-top: .35rem; line-height: 1.35; }
.film-tile .ft-body { padding: .85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.film-tile h4 { margin: .2rem 0 0; font-size: .98rem; line-height: 1.28; font-weight: 700; }
.film-tile .ft-thumb {
  aspect-ratio: 2 / 3;
  background-size: cover; background-position: center;
  background-color: var(--cobalt-pale);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  color: #fff;
}
/* Book cover variant: contain (no crop) on light backdrop */
.film-tile .ft-thumb.cover-fit {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f4efe6;
  padding: .5rem;
}
/* Editorial fallback tile: watercolor-inspired card with typographic emphasis
   (used when a real poster hasn't been sourced yet). Feels intentional. */
.film-tile .ft-thumb.no-poster {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.55) 0%, transparent 45%),
    radial-gradient(circle at 75% 80%, rgba(0,116,199,.20) 0%, transparent 55%),
    linear-gradient(150deg, #f5efe3 0%, #eadfc9 100%);
  padding: 1.15rem 1rem;
  align-items: center; justify-content: center;
  text-align: center;
  border-bottom: 3px double rgba(0, 90, 156, .35);
}
.film-tile .ft-thumb.no-poster::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, transparent 49%, rgba(0,90,156,.06) 49.5%, rgba(0,90,156,.06) 50.5%, transparent 51%, transparent 100%);
  pointer-events: none;
  opacity: .3;
}
/* Small serif decorative flourish above the title */
.film-tile .ft-thumb.no-poster::after {
  content: "\2731"; /* small starburst / flourish */
  position: absolute; top: .55rem; left: 50%;
  transform: translateX(-50%);
  color: var(--cobalt);
  font-size: .85rem;
  opacity: .5;
}
.film-tile .ft-thumb.no-poster .poster-title {
  position: relative; z-index: 1;
  font-family: 'Macondo', cursive;
  font-size: 1.15rem; line-height: 1.2;
  color: var(--cobalt-dark);
  letter-spacing: -.01em;
  padding: 0 .25rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
/* Rotate subtle variation per tile — creates rhythm across the grid */
.film-grid > .film-tile:nth-child(3n+2) .ft-thumb.no-poster {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.55) 0%, transparent 45%),
    radial-gradient(circle at 30% 80%, rgba(232,168,160,.22) 0%, transparent 55%),
    linear-gradient(160deg, #faf3e6 0%, #ecd8c8 100%);
}
.film-grid > .film-tile:nth-child(3n+3) .ft-thumb.no-poster {
  background:
    radial-gradient(circle at 40% 60%, rgba(255,255,255,.55) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(168,196,160,.22) 0%, transparent 55%),
    linear-gradient(140deg, #f5f0e0 0%, #dee5cf 100%);
}
.film-tile .ft-link {
  font-size: .75rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--cobalt); font-weight: 700;
  margin-top: auto; padding-top: .8rem;
  display: inline-flex; align-items: center; gap: .3rem;
}
.film-tile .ft-link::after { content: "\2197"; font-size: .95em; }

/* ---------- Pillar block (3 causes on home) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  isolation: isolate;
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.pillar:hover {
  transform: translateY(-6px);
  color: #fff;
  box-shadow: 0 22px 44px rgba(0,0,0,.18);
}
/* Photo layer — zooms in on hover */
.pillar .pillar-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.pillar:hover .pillar-bg { transform: scale(1.08); }
/* Base darkening gradient — subtle so photo shows through */
.pillar::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.20) 40%, rgba(0,0,0,.75) 100%);
}
/* Per-pillar accent tint — each cause gets its own color signature */
.pillar--arts::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(232,185,77,.45) 100%);
  mix-blend-mode: multiply;
}
.pillar--alz::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(0,116,199,.55) 100%);
  mix-blend-mode: multiply;
}
.pillar--kind::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(232,168,160,.55) 100%);
  mix-blend-mode: multiply;
}
/* Text content sits above all layers */
.pillar-content {
  position: relative; z-index: 3;
  padding: 1.75rem 1.75rem 1.65rem;
  color: #fff;
}
.pillar-eyebrow {
  font-family: 'Macondo', cursive;
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  display: inline-block;
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.pillar h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 .55rem;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.pillar p {
  color: rgba(255,255,255,.95);
  margin-bottom: .75rem;
  font-size: .95rem;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.pillar .arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9rem;
  padding: .5rem .95rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.pillar:hover .arrow {
  background: rgba(255,255,255,.30);
  transform: translateX(3px);
}

/* ---------- Quote block ---------- */
.quote {
  font-family: 'Macondo', cursive;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.4;
  color: var(--cobalt);
  max-width: 28ch;
  margin: 0 auto;
  text-align: center;
}
.quote-attr { font-family: 'Lato', sans-serif; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1f2e;
  color: rgba(255,255,255,.78);
  padding: 4rem 0 2rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); max-width: 32ch; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--cobalt); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--cream-soft);
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: ""; position: absolute; right: -150px; top: -100px;
  width: 600px; height: 380px;
  background: var(--cobalt);
  border-radius: 80px 220px 220px 100px;
  transform: skewX(-10deg) rotate(-6deg);
  opacity: .07;
}
.page-header .wrap { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 300;
  max-width: 18ch;
}
.page-header .lead { margin-top: 1rem; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; letter-spacing: .03em; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Two-column content blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
/* Show the whole image (posters, wide shots) with a matching backdrop */
.split-img--contain { background: #0a0a0a; aspect-ratio: 3 / 4; }
.split-img--contain img { object-fit: contain; }
@media (max-width: 820px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .split-img { aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; }
}

/* ---------- Resource list (caregivers) ---------- */
.resource-list { display: grid; gap: 1rem; }
.resource {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(0,0,0,.06);
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1.25rem; align-items: center;
  transition: border-color .2s ease, transform .2s ease;
}
.resource:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.resource .res-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--cobalt-pale); color: var(--cobalt);
  display: flex; align-items: center; justify-content: center;
}
.resource h4 { margin: 0 0 .15rem; font-size: 1.1rem; }
.resource p { margin: 0; font-size: .95rem; }
.resource .res-cta {
  white-space: nowrap; color: var(--cobalt); font-weight: 700;
  display: inline-flex; align-items: center; gap: .35rem;
}
@media (max-width: 620px) {
  .resource { grid-template-columns: 56px 1fr; }
  .resource .res-cta { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--cobalt);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.5fr auto; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.08);
  border-radius: 60% 40% 40% 60%;
}
.cta-banner h2 { color: #fff; max-width: 18ch; }
.cta-banner p { color: rgba(255,255,255,.92); margin-bottom: 0; }
@media (max-width: 720px) {
  .cta-banner { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- Wall of Kindness cards ---------- */
.kindness-post {
  background: linear-gradient(155deg, #fbf5e9 0%, #f5efe3 100%);
  border-left: 3px solid var(--cobalt);
  position: relative;
}
.kindness-post::before {
  content: "\201C"; /* left double quote */
  position: absolute;
  top: .35rem; left: .5rem;
  font-family: 'Macondo', cursive;
  color: var(--cobalt);
  font-size: 3rem;
  line-height: 1;
  opacity: .25;
}
.kindness-post h3 { font-weight: 500; line-height: 1.4; color: var(--ink); position: relative; z-index: 1; }

/* ---------- Voice notes (Family page) ---------- */
.voice-note {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  align-items: center;
}
.voice-note-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--cobalt-pale); color: var(--cobalt);
  display: inline-flex; align-items: center; justify-content: center;
}
.voice-note-icon svg { width: 30px; height: 30px; }
.voice-note h4 { margin: 0 0 .25rem; font-size: 1.05rem; }
.voice-note p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.voice-note audio { width: 100%; margin-top: .5rem; }

/* ---------- Impact ticker ---------- */
.impact-ticker {
  background: linear-gradient(120deg, var(--cobalt) 0%, var(--cobalt-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,116,199,.2);
}
.impact-num {
  font-family: 'Macondo', cursive;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: .75rem;
  color: #fff;
}
.impact-label { color: rgba(255,255,255,.9); font-size: .95rem; max-width: 60ch; margin: 0 auto; }

/* ---------- Featured Cause of the Month ---------- */
.featured-cause {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid rgba(0,116,199,.15);
  position: relative;
  overflow: hidden;
}
.featured-cause::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,116,199,.18) 0%, transparent 70%);
  pointer-events: none;
}
.featured-cause-copy { position: relative; z-index: 1; }
.featured-cause-copy h2 { color: var(--cobalt-dark); margin-bottom: .75rem; }
.featured-cause-badge {
  background: var(--cobalt);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  position: relative; z-index: 1;
}
.badge-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; opacity: .85; margin-bottom: .5rem;
}
.badge-month {
  font-family: 'Macondo', cursive;
  font-size: 1.65rem; line-height: 1.15;
}
@media (max-width: 720px) {
  .featured-cause { grid-template-columns: 1fr; }
}

/* ---------- Coming Soon / transparency banner ---------- */
.coming-soon-banner {
  background: var(--cobalt-pale);
  border: 1.5px solid rgba(0, 116, 199, .3);
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem;
  margin: 0 auto 2rem;
  max-width: 900px;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}
.coming-soon-banner > div { color: var(--ink); font-size: .98rem; line-height: 1.55; }
.coming-soon-banner strong { color: var(--cobalt-dark); }
.coming-soon-banner .tab { flex-shrink: 0; }
@media (max-width: 620px) {
  .coming-soon-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Donate / Support block ---------- */
.support-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tier {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid var(--black-10);
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.tier:hover { border-color: var(--cobalt); transform: translateY(-3px); }
.tier h3 { margin-bottom: .25rem; }
.tier .amount {
  font-family: 'Macondo', cursive; color: var(--cobalt);
  font-size: 2.5rem; line-height: 1; margin: .5rem 0 1rem;
}

/* ---------- Forms ---------- */
.form-row { display: grid; gap: 1rem; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .form-row.two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.field input, .field textarea, .field select {
  font: inherit; padding: .85rem 1rem;
  border: 1.5px solid var(--black-10); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(0,116,199,.12);
}

/* ---------- News list ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.news-item {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.news-thumb { aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--cobalt-pale); }
.news-body { padding: 1.5rem 1.6rem 1.75rem; }
.news-meta { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); font-weight: 700; }
.news-item h3 { font-size: 1.2rem; margin: .5rem 0 .6rem; line-height: 1.3; }

/* ---------- Stat / impact strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-num { font-family: 'Macondo', cursive; color: var(--cobalt); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; margin-bottom: .25rem; }
.stat-label { font-size: .95rem; color: var(--ink-soft); letter-spacing: .02em; }

/* ---------- Responsive grid collapses ---------- */
@media (max-width: 820px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pillars, .support-tiers, .news-grid, .stat-strip { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-cobalt { color: var(--cobalt); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
}

/* ---------- Instagram Floater (site-wide, non-home) ---------- */
.ig-floater {
  position: fixed;
  top: 88px;                /* below the sticky nav */
  right: 16px;
  width: 168px;
  z-index: 90;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06);
  overflow: hidden;
  transform: translateY(0);
  opacity: 1;
  transition: opacity .35s ease, transform .35s ease;
  display: flex;
  flex-direction: column;
}
.ig-floater.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.ig-floater__label {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #0074C7;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: #fafafa;
}
.ig-floater__label svg { width: 14px; height: 14px; flex-shrink: 0; }
.ig-floater__label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-floater__label:hover { color: #005a9c; }
.ig-floater iframe {
  display: block;
  width: 100%;
  height: 168px;   /* square feed area, matches width */
}
.ig-floater__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: #333;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-floater__close:hover { background: #fff; color: #000; }

@media (max-width: 768px) {
  .ig-floater {
    top: auto;
    bottom: 16px;
    right: 12px;
    width: 132px;
  }
  .ig-floater iframe { height: 132px; }
  .ig-floater__label { font-size: .68rem; padding: .4rem .55rem; }
}

@media print { .ig-floater { display: none !important; } }

/* ---------- Home Hero Corner IG Widget ---------- */
.hero-ig-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 140px;
  z-index: 5;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  backdrop-filter: blur(6px);
}
.hero-ig-corner iframe {
  display: block;
  width: 100%;
  height: 140px;
  border: 0;
}
.hero-ig-corner__label {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .55rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #0074C7;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: #fafafa;
}
.hero-ig-corner__label svg { width: 12px; height: 12px; flex-shrink: 0; }
.hero-ig-corner__label:hover { color: #005a9c; }

@media (max-width: 640px) {
  .hero-ig-corner { width: 108px; top: 10px; right: 10px; }
  .hero-ig-corner iframe { height: 108px; }
  .hero-ig-corner__label { font-size: .62rem; padding: .3rem .45rem; }
}

/* ---------- Charity Picker (Books page) ---------- */
.charity-picker {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: 0 6px 22px rgba(0,0,0,.05);
}
.charity-picker__intro { margin-bottom: 1.25rem; }
.charity-picker__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
}
.charity-opt {
  --accent: #0074C7;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .9rem;
  border: 2px solid rgba(0,0,0,.09);
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
  user-select: none;
}
.charity-opt:hover { border-color: var(--accent); background: #fff; transform: translateY(-1px); }
.charity-opt input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.charity-opt__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cfcfcf;
  flex-shrink: 0;
  transition: border-color .18s ease, background .18s ease;
  position: relative;
}
.charity-opt.is-selected {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.charity-opt.is-selected .charity-opt__dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}
.charity-opt__name { font-weight: 600; font-size: .92rem; line-height: 1.25; }

.charity-picker__confirm {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  background: color-mix(in srgb, #2A9D8F 8%, #fff);
  border: 1px solid color-mix(in srgb, #2A9D8F 25%, transparent);
  border-radius: 10px;
  color: #1e6b62;
  font-size: .9rem;
  font-weight: 600;
}
.charity-picker__confirm svg { width: 18px; height: 18px; flex-shrink: 0; }
.charity-picker__note {
  margin: 1rem 0 0;
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
