/* ============ HOOPER HQ — fun outside, serious inside ============ */
:root {
  --navy: #16243d;
  --navy-deep: #0d1728;
  --yellow: #ffc82e;
  --yellow-soft: #ffe9a8;
  --red: #e63946;
  --paper: #fdf8ec;
  --ink: #1b2333;
  --ink-soft: #4c5670;
  --line: #e6dcc4;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  /* school hallway lockers photo, white-washed so content stays readable */
  background-color: #f3ecdc;
  background-image:
    linear-gradient(rgba(253,248,236,0.84), rgba(253,248,236,0.84)),
    url("assets/locker-bg-2.webp");
  background-size: auto, 480px;
  background-attachment: fixed;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.aside { display: block; font-size: 0.55em; font-weight: 400; color: var(--ink-soft); font-family: var(--font-body); margin-top: 0.3rem; }
.section--navy .aside { color: var(--yellow-soft); }

.eyebrow {
  font-size: 0.88rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--red); margin-bottom: 0.6rem;
}
.eyebrow--yellow { color: var(--yellow); }

/* ============ TICKER ============ */
.ticker {
  background: var(--red); color: #fff; overflow: hidden;
  padding: 0.7rem 0; font-size: 1.05rem; font-weight: 600;
}
.ticker-track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: ticker 30s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 236, 0.92); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--navy);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); }
.brand-mark {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem;
  background: var(--navy); color: var(--yellow);
  font-family: var(--font-display); font-weight: 800;
  border-radius: 50%; border: 2px solid var(--yellow);
  transform: rotate(-6deg);
}
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.brand-text em { color: var(--red); font-style: normal; }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 1.02rem; }
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--yellow); padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--navy);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); color: var(--navy) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* ============ HERO ============ */
.hero { padding: 3.5rem 1.25rem 4rem; }
.hero-card {
  position: relative; max-width: 880px; margin: 0 auto;
  background: #fff; border: 3px solid var(--navy); border-radius: 1.4rem;
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--navy);
  padding: 3rem 2.5rem 2.5rem; text-align: center;
}
.hero-photo {
  width: 11.5rem; height: 11.5rem; margin: 0 auto 1.2rem;
  border-radius: 50%; border: 3px solid var(--navy);
  box-shadow: 0 0 0 4px var(--yellow), 5px 6px 0 4px rgba(22,36,61,0.25);
  overflow: hidden; transform: rotate(-3deg);
  transition: transform 0.25s;
}
.hero-photo:hover { transform: rotate(0deg) scale(1.04); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-row { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.hero-photo-row .hero-photo { margin: 0; }
.hero-photo-caption {
  font-family: var(--font-display); font-weight: 700; color: var(--ink-soft);
  font-size: 1.1rem; line-height: 1.4; text-align: left;
  transform: rotate(-2deg); max-width: 13rem;
}

/* ============ STORY ============ */
.story-card {
  background: #fff; border: 2px solid var(--navy); border-radius: 1rem;
  box-shadow: 6px 6px 0 rgba(22,36,61,0.15);
  padding: 2.2rem 2.4rem; margin-top: 1.6rem; position: relative;
}
.story-card::before {
  content: ""; position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 7rem; height: 1.6rem; background: rgba(255,200,46,0.7);
  border-left: 1px dashed rgba(0,0,0,0.15); border-right: 1px dashed rgba(0,0,0,0.15);
}
.story-card p { margin-bottom: 1rem; color: var(--ink-soft); }
.story-lede { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink) !important; }
.story-beat { font-weight: 600; color: var(--navy) !important; }
.story-footnote {
  border-top: 1px dashed var(--line); padding-top: 1rem;
  font-size: 1rem; font-style: italic;
}

/* ============ CHALKBOARD ============ */
.section--chalk { padding-top: 0; }
.chalkboard {
  position: relative; background: #22433a;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  border: 12px solid #8b5e34; border-radius: 0.6rem;
  box-shadow: 8px 8px 0 rgba(22,36,61,0.25), inset 0 0 60px rgba(0,0,0,0.35);
  padding: 3rem 2rem; text-align: center; transform: rotate(-0.4deg);
}
.chalk-line {
  font-family: var(--font-display); font-weight: 700; color: #f4f1e6;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem); line-height: 1.35;
  text-shadow: 0 0 6px rgba(255,255,255,0.25);
}
.chalk-line--small { font-size: clamp(1rem, 2.2vw, 1.35rem); color: var(--yellow-soft); margin-top: 0.6rem; }
.hero-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }
.hero-sub { font-size: 0.55em; font-weight: 400; font-family: var(--font-body); color: var(--ink-soft); }
.underline-scribble {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding: 0 0.1em;
}
.lede { max-width: 56ch; margin: 0 auto 1.6rem; color: var(--ink-soft); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }

.sticker {
  position: absolute; width: 7rem; height: 7rem; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; line-height: 1.15;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.sticker--1 { top: -2.2rem; left: -2.2rem; background: var(--red); color: #fff; transform: rotate(-12deg); border: 3px dashed #fff; }
.sticker--2 { bottom: -2rem; right: -1.6rem; background: var(--yellow); color: var(--navy); transform: rotate(9deg); border: 3px dashed var(--navy); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid var(--navy);
  text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 4px 4px 0 var(--navy);
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--navy); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #c62838; }
.btn--ghost { background: #fff; color: var(--navy); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 rgba(255,255,255,0.35); }

/* ============ PLEDGE ============ */
.pledge-meter { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.pledge-count {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  color: var(--red); margin-right: 0.3rem;
}
.hero-fineprint { font-size: 1rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 1rem; }

/* ============ SECTIONS ============ */
.section { padding: 4.5rem 1.25rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner--narrow { max-width: 760px; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2 { color: #fff; }
.section--yellow { background: var(--yellow); border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); }
.section-lede { max-width: 65ch; margin-bottom: 1.8rem; color: var(--ink-soft); }

/* ============ WHY GRID ============ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.why-card {
  background: #fff; border: 2px solid var(--navy); border-radius: 1rem;
  padding: 1.5rem 1.3rem; box-shadow: 5px 5px 0 rgba(22,36,61,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 7px 8px 0 rgba(22,36,61,0.2); }
.why-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.why-card p { font-size: 1.02rem; color: var(--ink-soft); }

/* ============ REPORT CARD ============ */
.report-card {
  background: var(--paper); color: var(--ink);
  border-radius: 1rem; border: 3px solid var(--yellow);
  padding: 2rem; margin-top: 1.8rem;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.35);
  transform: rotate(-0.4deg);
}
.report-row {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto;
  gap: 0.8rem; align-items: baseline; padding: 0.9rem 0; border-bottom: 1px dashed var(--line);
}
.report-subject { font-family: var(--font-display); font-weight: 700; }
.report-dots { border-bottom: 2px dotted #c9bfa5; transform: translateY(-4px); }
.report-grade { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 1.2rem; white-space: nowrap; }
.report-grade small { font-size: 0.6em; color: var(--ink-soft); font-weight: 400; }
.report-row p { grid-column: 1 / -1; font-size: 1.02rem; color: var(--ink-soft); }
.report-footer { margin-top: 1.2rem; font-size: 1.05rem; color: var(--ink-soft); border-top: 2px solid var(--navy); padding-top: 1rem; }

/* ============ MAP ============ */
.map-frame {
  position: relative; border: 3px solid var(--navy); border-radius: 1rem;
  overflow: hidden; background: #dfe6ee; box-shadow: 8px 8px 0 var(--navy);
}
.map-viewport {
  height: 60vh; min-height: 380px; overflow: hidden; cursor: grab;
  touch-action: none; position: relative;
}
.map-viewport.dragging { cursor: grabbing; }
.map-viewport img {
  position: absolute; transform-origin: 0 0; max-width: none;
  user-select: none; -webkit-user-drag: none;
}
.map-toolbar {
  position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: 0.5rem; align-items: center;
}
.map-btn {
  width: 2.6rem; height: 2.6rem; border-radius: 0.6rem; border: 2px solid var(--navy);
  background: var(--yellow); color: var(--navy); font-size: 1.2rem; font-weight: 800;
  cursor: pointer; box-shadow: 3px 3px 0 var(--navy);
}
.map-btn:hover { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--navy); }
.map-hint { background: rgba(255,255,255,0.9); border: 1px solid var(--navy); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.92rem; }
.map-stamp {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; text-align: center;
  color: var(--red); border: 3px solid var(--red); border-radius: 0.5rem;
  padding: 0.4rem 0.8rem; transform: rotate(8deg); opacity: 0.8;
  background: rgba(255,255,255,0.85); pointer-events: none;
}
.map-source { margin-top: 1rem; font-size: 1rem; color: var(--ink-soft); }

/* ============ STATS ============ */
.section--stats { background: var(--red); color: #fff; border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); }
.section--stats h2, .section--stats .eyebrow { color: #fff; }
.section--stats .aside { color: var(--yellow-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.stat {
  background: rgba(255,255,255,0.1); border: 2px dashed rgba(255,255,255,0.6);
  border-radius: 1rem; padding: 1.4rem 1.2rem; text-align: center;
}
.stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--yellow); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 1.02rem; }

/* ============ VOTE ============ */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.vote-card {
  background: #fff; border: 2px solid var(--navy); border-radius: 1rem;
  padding: 1.5rem; box-shadow: 5px 5px 0 var(--navy); position: relative;
}
.vote-num {
  position: absolute; top: -1rem; left: -0.6rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--red); color: #fff; border: 2px solid var(--navy);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
  transform: rotate(-8deg);
}
.vote-big { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.vote-card p:last-child { font-size: 1.02rem; color: var(--ink-soft); }
.vote-note { margin-top: 1.6rem; font-weight: 600; }

/* ============ FAQ ============ */
.faq-item {
  background: #fff; border: 2px solid var(--navy); border-radius: 0.8rem;
  margin-bottom: 0.8rem; box-shadow: 4px 4px 0 rgba(22,36,61,0.12);
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-family: var(--font-display);
  font-weight: 700; list-style: none; position: relative;
}
.faq-item summary::after { content: "＋"; position: absolute; right: 1.2rem; color: var(--red); font-weight: 800; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); font-size: 1.05rem; }

/* ============ CTA / FOOTER ============ */
.cta-card { text-align: center; padding: 1.5rem 0; }
.cta-card h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.cta-lede { color: var(--yellow-soft); margin: 0.6rem 0 1.6rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.cta-fineprint { margin-top: 1.6rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 2.5rem 1.25rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.footer-name { margin-top: 0.7rem; font-size: 1rem; }
.footer-legal { font-size: 0.8rem; text-align: right; }

/* ============ DONATE ============ */
.nav-donate {
  background: var(--red); color: #fff; border: 2px solid var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--navy); transition: transform 0.15s, box-shadow 0.15s;
}
.nav-donate:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.donate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,23,40,0.75); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 1.25rem;
}
.donate-overlay[hidden] { display: none; }
.donate-card {
  position: relative; max-width: 480px; width: 100%;
  background: var(--paper); border: 3px solid var(--navy); border-radius: 1.2rem;
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--navy);
  padding: 2.4rem 2rem 1.8rem; text-align: center;
  animation: pop-in 0.25s ease-out;
}
@keyframes pop-in { from { transform: scale(0.85) rotate(-2deg); opacity: 0; } }
.donate-emoji { font-size: 2.6rem; margin-bottom: 0.4rem; }
.donate-card h2 { margin-bottom: 0.6rem; }
.donate-lede { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.2rem; }
.donate-method { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.5rem; }
.donate-copy {
  display: block; width: 100%; cursor: pointer;
  background: #fff; border: 2px dashed var(--navy); border-radius: 0.8rem;
  padding: 0.9rem 1rem; margin-bottom: 1.2rem; transition: background 0.15s;
}
.donate-copy:hover { background: var(--yellow-soft); }
.donate-email { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.donate-copyhint { font-size: 0.95rem; color: var(--ink-soft); }
.donate-copy.copied { background: #e7f6e7; border-color: #2e7d32; }
.donate-copy.copied .donate-copyhint { color: #2e7d32; font-weight: 700; }
.donate-important { font-size: 1rem; margin-bottom: 0.8rem; }
.donate-legal { font-size: 0.78rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 0.9rem; }
.donate-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--red); color: #fff; border: 2px solid var(--navy);
  font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--navy);
}

/* ============ LANDING SPLASH ============ */
body.landing-active { overflow: hidden; }
.landing {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; padding: 1.25rem;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 48px;
  cursor: pointer;
  transition: transform 0.85s cubic-bezier(0.5, -0.1, 0.3, 1), opacity 0.85s;
}
.landing.fly-away {
  transform: translateY(-115vh) rotate(9deg) scale(0.85);
  opacity: 0.4;
  pointer-events: none;
}
.landing-card {
  position: relative; max-width: 620px; width: 100%; text-align: center;
  background: var(--paper); border: 4px solid var(--navy-deep); border-radius: 1.4rem;
  box-shadow: 12px 12px 0 var(--yellow), 12px 12px 0 4px var(--navy-deep);
  padding: 3rem 2.2rem 2.4rem;
  animation: landing-bob 3.2s ease-in-out infinite;
}
@keyframes landing-bob {
  0%, 100% { transform: rotate(-0.6deg) translateY(0); }
  50% { transform: rotate(0.6deg) translateY(-8px); }
}
.landing-card .hero-photo { margin: 0 auto 1.2rem; }
.landing-title { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 0.6rem; }
.landing-sub { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 1.6rem; }
.landing-enter {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  background: var(--red); color: #fff; border: 2px solid var(--navy);
  border-radius: 999px; padding: 0.6rem 1.4rem; box-shadow: 3px 3px 0 var(--navy);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .landing-card, .landing-enter { animation: none; }
  .landing { transition: opacity 0.2s; }
  .landing.fly-away { transform: none; opacity: 0; }
}

/* ============ CONFETTI ============ */
#confettiCanvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 800px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 1rem;
    border-bottom: 3px solid var(--navy); gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-card { padding: 2.4rem 1.4rem 2rem; }
  .sticker--1 { left: auto; right: -1rem; top: -2.4rem; }
  .sticker--2 { display: none; }
  .report-row { grid-template-columns: 1fr auto; }
  .report-dots { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}
