/* ============================================================
   BAYCC × 537–539 E Weddell Dr — Fundraising Campaign
   Palette derived from baycc.org brand colors
   ============================================================ */

:root {
  /* Brand */
  --red:        #D70305;   /* BAYCC primary accent */
  --red-deep:   #b00204;
  --teal:       #1C6C77;   /* BAYCC secondary */
  --teal-deep:  #134e57;
  --slate:      #47636B;   /* BAYCC tertiary */
  --ink:        #1B1F22;
  --ink-soft:   #3a4247;
  --paper:      #FBFAF8;   /* warm off-white */
  --paper-2:    #F2EEE7;
  --cream:      #efe9df;
  --line:       #e3ddd2;
  --gold:       #C8A24B;   /* warm hairline accent */
  --white:      #ffffff;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(27,31,34,.06);
  --shadow-md: 0 16px 40px -18px rgba(27,31,34,.30);
  --shadow-lg: 0 30px 70px -30px rgba(19,78,87,.45);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Roboto", system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.wrap.narrow { width: min(820px, 92vw); }

em { font-style: italic; }

/* ---------- Typographic helpers ---------- */
.eyebrow, .kicker {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
}
.kicker { margin-bottom: .8rem; display: inline-block; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: .9rem;
  max-width: 22ch;
}
.section-title.light { color: var(--white); }

.section-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 2.6rem;
}
.section-lede.light { color: rgba(255,255,255,.86); }

.fineprint { font-size: .82rem; color: #8b8378; margin-top: 1.4rem; }
.fineprint.light { color: rgba(255,255,255,.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn-sm { padding: .55em 1.15em; font-size: .9rem; }
.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-accent { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(215,3,5,.6); }
.btn-accent:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(215,3,5,.6); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(251,250,248,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  width: min(var(--maxw), 94vw); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  height: 72px;
}
.brand-logo { height: 40px; width: auto; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: .2em 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .28s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }
.site-header .btn-accent { margin-left: .25rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: .2rem; padding: 1rem 4vw 1.6rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-nav a { padding: .8rem .2rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: .8rem; border-bottom: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(19,78,87,.92) 0%, rgba(19,78,87,.72) 38%, rgba(19,78,87,.25) 70%, rgba(19,78,87,.05) 100%),
    linear-gradient(to top, rgba(11,30,33,.85) 0%, transparent 45%);
}
.hero::after { /* subtle grain */
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.hero-content { width: min(var(--maxw), 92vw); margin-inline: auto; color: #fff; max-width: 880px; }
/* On wide screens, keep hero text clear of the floating video + progress card on the right */
@media (min-width: 1001px) {
  .hero-content { max-width: none; padding-right: clamp(460px, 38vw, 520px); }
}
.hero .eyebrow { color: #ffd9d9; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 1rem 0 1.4rem;
}
.hero-title span { display: block; }
.hero-title em { color: #ffc7c7; font-style: italic; }
.hero-lede { font-size: clamp(1.1rem, 1.9vw, 1.45rem); max-width: 60ch; color: rgba(255,255,255,.94); margin-bottom: 1rem; font-weight: 300; }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 64ch; color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.hero-sub strong { color: #fff; font-weight: 500; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-cta .btn-ghost:hover { color: #fff; border-color: #fff; }

/* Floating video + progress card stack (bottom-right of hero) */
.hero-aside-stack {
  position: absolute; right: max(4vw, calc((100vw - var(--maxw))/2)); bottom: 48px; z-index: 5;
  width: min(420px, 90vw);
  display: flex; flex-direction: column; gap: 1rem;
}

/* Hero video — sits above the progress card, same width & right edge */
.hero-video {
  width: 100%; aspect-ratio: 1112 / 834;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(0,0,0,.2);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Progress card */
.progress-card {
  width: 100%;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: var(--shadow-lg);
}
.progress-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: .9rem; }
.progress-goal-side { text-align: right; }
.progress-label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.progress-num { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: var(--teal-deep); line-height: 1.1; }
.progress-num.goal { font-size: 1.5rem; color: var(--ink-soft); }
.meter { height: 12px; border-radius: 999px; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.meter-fill { height: 100%; width: var(--pct); border-radius: 999px; background: linear-gradient(90deg, var(--red), #ff5a3c); transition: width 1.6s var(--ease); }
.progress-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; font-size: .82rem; }
.pct { font-weight: 700; color: var(--red); }
.deadline { color: var(--ink-soft); }
.share-mini { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--slate); }
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem; border-radius: 999px;
  font-weight: 600; font-size: .8rem; line-height: 1;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.share-ico { width: 16px; height: 16px; flex: none; }
.share-btn--whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn--x:hover { background: #000; border-color: #000; color: #fff; }
.share-btn--copy:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ============================================================
   SECTIONS — base
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

/* STORY */
.story { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 1rem; }
.story-text p { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.story-text strong { color: var(--ink); }
.pull-quote {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35; color: var(--teal-deep); border-left: 3px solid var(--red);
  padding: .3rem 0 .3rem 1.4rem; margin: 1.8rem 0; max-width: 34ch;
}
.story-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.story-photo img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.photo-cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 1.4rem 1.2rem .9rem; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(11,30,33,.8)); }

/* BUILDING */
.building { background: var(--teal-deep); color: #fff; position: relative; }
.building::before {
  content:""; position:absolute; inset:0; opacity:.10; pointer-events:none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 26px 26px;
}
.building .wrap { position: relative; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 1rem 0 3rem; }
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.6rem 1.4rem; backdrop-filter: blur(4px);
  transition: transform .3s var(--ease), background .3s;
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.1); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.9rem); color: #fff; line-height: 1; }
.stat-unit { display: block; margin-top: .5rem; font-weight: 500; color: #ffd9d9; font-size: 1rem; }
.stat-note { display: block; margin-top: .3rem; font-size: .82rem; color: rgba(255,255,255,.6); }

.building-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.callout { padding: 1.4rem 0; border-top: 2px solid var(--red); }
.callout h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: .5rem; }
.callout p { color: rgba(255,255,255,.78); font-size: .98rem; }

/* GALLERY */
.gallery { background: var(--paper); }
.feature-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; margin-bottom: 2rem; }
.fg-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); }
.fg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fg-item:hover img { transform: scale(1.07); }
.fg-large { grid-column: span 2; grid-row: span 2; }
.fg-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem .9rem .7rem;
  color: #fff; font-size: .85rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(11,30,33,.82)); opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.fg-item:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery-actions { text-align: center; margin-bottom: 2rem; }

.thumb-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.thumb-strip button { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.thumb-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; filter: saturate(.92); }
.thumb-strip button:hover img { transform: scale(1.12); filter: saturate(1.1); }

/* IMPACT */
.impact { background: var(--cream); }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1rem; }
.impact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.impact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.impact-ico { font-size: 2rem; display: block; margin-bottom: .8rem; }
.impact-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--teal-deep); margin-bottom: .4rem; }
.impact-card p { color: var(--ink-soft); font-size: .98rem; }

/* FINANCES */
.finances { background: var(--slate); color: #fff; }
.finance-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1rem 0 3rem; }
.fin-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.8rem 1.4rem; text-align: center; }
.fin-card.accent { background: var(--red); border-color: var(--red); box-shadow: 0 18px 40px -18px rgba(215,3,5,.7); }
.fin-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.fin-cap { display: block; margin-top: .6rem; font-size: .95rem; color: rgba(255,255,255,.85); }
.timeline h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 1.2rem; }
.timeline-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.timeline-list li { padding-top: 1rem; border-top: 2px solid rgba(255,255,255,.35); }
.t-date { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #fff; }
.t-event { display: block; margin-top: .3rem; font-size: .9rem; color: rgba(255,255,255,.78); }

/* DONATE */
.donate { background: var(--paper); }

/* Tip reminder banner — colorful, gently animated */
.tip-banner {
  display: flex; align-items: center; gap: .9rem;
  max-width: 760px; margin: 0 0 2rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 55%, var(--teal-deep) 130%);
  background-size: 200% 200%;
  box-shadow: 0 10px 28px -12px rgba(215,3,5,.5);
  animation: tipGradient 6s ease infinite, tipPulse 2.6s ease-in-out infinite;
}
.tip-banner__icon { font-size: 1.6rem; flex: none; animation: tipBob 2.2s ease-in-out infinite; }
.tip-banner__text { font-size: 1rem; line-height: 1.45; margin: 0; }
.tip-banner__text strong { font-weight: 700; }
.tip-banner__text em { font-style: normal; text-decoration: underline; text-underline-offset: 2px; }
@keyframes tipGradient { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes tipPulse { 0%,100% { box-shadow: 0 10px 28px -12px rgba(215,3,5,.5); } 50% { box-shadow: 0 12px 34px -10px rgba(215,3,5,.75); } }
@keyframes tipBob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-8deg); } }

.methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
.methods-note { text-align: center; color: var(--ink-soft); font-size: .95rem; margin-bottom: 3rem; }
.methods-note a { color: var(--teal); font-weight: 600; }
.methods-note a:hover { color: var(--red); }
.method {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.method:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--red); }
.method h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-bottom: .35rem; }
.method p { color: var(--ink-soft); font-size: .95rem; margin-bottom: .8rem; }
.method-tag { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--teal); text-transform: uppercase; }

.pledge-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); max-width: 760px; margin-inline: auto; box-shadow: var(--shadow-sm); }
.pledge-form h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ink); margin-bottom: .3rem; }
.form-note { font-size: .82rem; color: #9a8f80; margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.pledge-form label { display: block; font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 1rem; }
.pledge-form input, .pledge-form select {
  width: 100%; margin-top: .4rem; padding: .8em .9em; font-family: var(--font-body); font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.pledge-form input:focus, .pledge-form select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,108,119,.14); }
.form-status { margin-top: 1rem; font-weight: 600; color: var(--teal); min-height: 1.3em; }

/* FINAL CTA */
.final-cta { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; color: #fff; text-align: center; overflow: hidden; }
.final-media { position: absolute; inset: 0; z-index: -2; }
.final-media img { width: 100%; height: 100%; object-fit: cover; }
.final-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(19,78,87,.86), rgba(11,30,33,.9)); }
.final-inner h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; max-width: 18ch; margin-inline: auto; }
.final-inner p { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: rgba(255,255,255,.88); max-width: 56ch; margin: 1.2rem auto 2rem; }
.final-inner .hero-cta { justify-content: center; }

/* FAQ */
.faq { background: var(--paper); }
.faq-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 1rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.4rem; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--teal); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 0; font-weight: 500; font-size: 1.08rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--red); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--ink-soft); max-width: 70ch; }

/* FOOTER */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { height: 46px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-brand .addr { color: rgba(255,255,255,.55); margin-top: .6rem; font-size: .88rem; }
.footer-col h4 { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.1rem; margin-bottom: .9rem; }
.footer-col p { margin-bottom: .5rem; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.muted { color: rgba(255,255,255,.45) !important; font-size: .85rem !important; }
.footer-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,20,22,.95); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lb-figure { max-width: 90vw; max-height: 86vh; text-align: center; }
.lb-figure img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-figure figcaption { color: rgba(255,255,255,.8); margin-top: 1rem; font-size: .92rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; transition: background .25s, transform .25s; }
.lb-close { top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-close:hover, .lb-nav:hover { background: var(--red); }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: .9em 1.4em; border-radius: 999px; font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow-md); z-index: 120; opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Tip reminder modal */
.tip-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.tip-modal[hidden] { display: none; }
.tip-modal__backdrop { position: absolute; inset: 0; background: rgba(8,20,22,.6); backdrop-filter: blur(4px); animation: tipFade .25s ease; }
.tip-modal__panel {
  position: relative; z-index: 1;
  width: min(440px, 92vw);
  background: #fff; border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem 1.6rem; text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
  border-top: 5px solid var(--red);
  animation: tipPop .32s cubic-bezier(.2,.9,.3,1.2);
}
.tip-modal__badge {
  width: 64px; height: 64px; margin: -3.4rem auto .9rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 8px 22px -6px rgba(215,3,5,.6); color: #fff;
}
.tip-modal__title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); margin-bottom: .6rem; }
.tip-modal__body { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; margin-bottom: 1.6rem; }
.tip-modal__body strong { color: var(--red); font-weight: 700; }
.tip-modal__body em { font-style: normal; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tip-modal__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.tip-modal__actions .btn { flex: 1 1 auto; min-width: 140px; }
@keyframes tipFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tipPop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .tip-banner, .tip-banner__icon, .tip-modal__panel, .tip-modal__backdrop { animation: none; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * .12s + .15s); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   ANIMATED FLOOR PLAN
   ============================================================ */
.floorplan {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(28,108,119,.45), transparent 60%),
    var(--ink);
  color: #fff;
  position: relative;
}
.floorplan .section-lede em { color: rgba(255,255,255,.6); }

.fp-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin: 0 0 1.6rem;
}
.fp-legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.fp-chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.82); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: .45em .9em; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .2s;
}
.fp-chip:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.fp-chip.active { background: #fff; color: var(--ink); border-color: #fff; }
.fp-chip .dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.dot-learn   { background: var(--fp-learn); }
.dot-culture { background: var(--fp-culture); }
.dot-kitchen { background: var(--fp-kitchen); }
.dot-social  { background: var(--fp-social); }
.dot-support { background: var(--fp-support); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

.fp-stage {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: clamp(.8rem, 2.5vw, 1.8rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow-md);
}
#fpSvg { width: 100%; height: auto; display: block; }

/* Floor-plan room palette */
:root {
  --fp-learn:   #2f9e8f;  /* education — teal-green */
  --fp-culture: #d77a2e;  /* arts & culture — warm orange */
  --fp-kitchen: #c8a24b;  /* kitchen — gold */
  --fp-social:  #5b8dd6;  /* welcome & social — blue */
  --fp-support: #9b7bd4;  /* admin & support — violet */
  --fp-neutral: #7d8a92;  /* facilities — slate */
}

/* Outline: animated wall draw */
.fp-outline {
  fill: none;
  stroke: rgba(255,255,255,.55);
  stroke-width: 2.5;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}
.fp-outline.drawn { transition: stroke-dashoffset 1.4s var(--ease); stroke-dashoffset: 0; }

/* Rooms: start as drawn-only outlines, then "light up" with fill + labels */
.fp-room .fp-rect {
  fill: rgba(255,255,255,.02);
  stroke: rgba(255,255,255,.32);
  stroke-width: 1.4;
  stroke-dasharray: var(--per);
  stroke-dashoffset: var(--per);
  transition: fill .6s var(--ease), stroke .6s var(--ease);
}
.fp-room .fp-name, .fp-room .fp-use { opacity: 0; transition: opacity .5s var(--ease) .25s; }
.fp-name { font-family: var(--font-body); font-weight: 700; font-size: 13px; fill: #fff; }
.fp-use  { font-family: var(--font-body); font-weight: 400; font-size: 10.5px; fill: rgba(255,255,255,.72); }

/* When a room is "lit": draw its walls, fill by category, show labels */
.fp-room.lit .fp-rect {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .8s var(--ease), fill .8s var(--ease) .2s, stroke .8s var(--ease);
  stroke: rgba(255,255,255,.55);
}
.fp-room.lit .fp-name, .fp-room.lit .fp-use { opacity: 1; }

.fp-room[data-cat="learn"].lit   .fp-rect { fill: color-mix(in srgb, var(--fp-learn) 32%, transparent); stroke: var(--fp-learn); }
.fp-room[data-cat="culture"].lit .fp-rect { fill: color-mix(in srgb, var(--fp-culture) 32%, transparent); stroke: var(--fp-culture); }
.fp-room[data-cat="kitchen"].lit .fp-rect { fill: color-mix(in srgb, var(--fp-kitchen) 34%, transparent); stroke: var(--fp-kitchen); }
.fp-room[data-cat="social"].lit  .fp-rect { fill: color-mix(in srgb, var(--fp-social) 32%, transparent); stroke: var(--fp-social); }
.fp-room[data-cat="support"].lit .fp-rect { fill: color-mix(in srgb, var(--fp-support) 30%, transparent); stroke: var(--fp-support); }
.fp-room[data-cat="neutral"].lit .fp-rect { fill: color-mix(in srgb, var(--fp-neutral) 26%, transparent); stroke: var(--fp-neutral); }

/* Hover a room: pop it forward */
.fp-room { cursor: default; transition: transform .25s var(--ease); transform-box: fill-box; transform-origin: center; }
.fp-room:hover { transform: scale(1.03); }
.fp-room:hover .fp-rect { filter: brightness(1.25); }

/* Category filter dim */
#fpSvg.filtering .fp-room.dim { opacity: .18; transition: opacity .4s; }
#fpSvg.filtering .fp-room:not(.dim) .fp-rect { filter: brightness(1.35); }

@media (max-width: 600px) {
  .fp-name { font-size: 15px; }
  .fp-use { font-size: 12px; }
  .fp-toolbar { flex-direction: column; align-items: stretch; }
  #fpReplay { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-up { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  /* Floor plan: show fully drawn & lit, no animation */
  .fp-outline { stroke-dashoffset: 0 !important; }
  .fp-room .fp-rect { stroke-dashoffset: 0 !important; }
  .fp-room .fp-name, .fp-room .fp-use { opacity: 1 !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .main-nav, .site-header > .header-inner > .btn-accent { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: none; }
  .mobile-nav.open { display: flex; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .building-callouts { grid-template-columns: 1fr; }
  .impact-grid, .methods-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .fg-large { grid-column: span 2; grid-row: span 1; height: 240px; }
  .finance-cards { grid-template-columns: 1fr; }
  .timeline-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-aside-stack { position: static; width: 100%; margin: 2.5rem auto 0; }
  .hero { min-height: auto; }
}
@media (max-width: 600px) {
  .header-inner { height: 64px; }
  .brand-logo { height: 34px; }
  .impact-grid, .methods-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .timeline-list { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}
