/* ============================================================
   Rotary Club of Seminole County Sunset - style.css
   Rotary brand palette, "sunset" treatment. Hand-rolled motion.
   ============================================================ */

:root {
  /* Rotary official palette */
  --royal: #17458f;
  --azure: #0067c8;
  --sky: #00a2e0;
  --gold: #f7a81b;
  --orange: #ff7600;
  --cranberry: #d41367;
  --turquoise: #00adbb;
  /* Site tones derived from Royal Blue */
  --ink: #060d1f;
  --navy: #0a1733;
  --navy-2: #0e1f44;
  --card: rgba(14, 31, 68, 0.62);
  --line: rgba(255, 255, 255, 0.10);
  --text: #eef3fb;
  --muted: #9fb0cc;
  --sunset: linear-gradient(92deg, var(--gold), var(--orange) 48%, var(--cranberry));
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: "Open Sans", system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(247, 168, 27, 0.35); }

/* ---------- ambient fixed glow blobs (site-wide) ---------- */
.ambient {
  position: fixed; border-radius: 999px; filter: blur(95px);
  z-index: -1; pointer-events: none;
}
.ambient-1 { width: 460px; height: 460px; top: -140px; right: -120px; background: rgba(0, 103, 200, 0.30); }
.ambient-2 { width: 420px; height: 420px; bottom: -160px; left: -140px; background: rgba(212, 19, 103, 0.16); }

/* ---------- drifting section glows ---------- */
.glow {
  position: absolute; border-radius: 999px; filter: blur(90px);
  pointer-events: none;
  animation: glow-drift 16s ease-in-out infinite;
}
@keyframes glow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3.5rem, -2rem) scale(1.14); }
  100% { transform: translate(0, 0) scale(1); }
}
.glow-gold      { background: rgba(247, 168, 27, 0.16); }
.glow-orange    { background: rgba(255, 118, 0, 0.14); }
.glow-cranberry { background: rgba(212, 19, 103, 0.14); }
.glow-azure     { background: rgba(0, 103, 200, 0.20); }
.glow-sky       { background: rgba(0, 162, 224, 0.14); }

/* ---------- typography helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 12.5px; font-weight: 700; color: var(--sky);
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--sunset); border-radius: 2px;
}
.script {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  color: var(--gold);
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2.section-title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 10px 0 14px; }
.grad-text {
  background: var(--sunset);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-sub { color: var(--muted); max-width: 700px; font-size: 1.05rem; }

/* ---------- layout ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section.band { position: relative; overflow: hidden; padding: 104px 0; border-top: 1px solid var(--line); }
.band-tint { background: rgba(10, 23, 51, 0.55); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 13, 31, 0.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand .wheel { width: 40px; height: 40px; flex: none; animation: wheel-spin 40s linear infinite; }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
.brand-name { font-size: 15px; line-height: 1.2; }
.brand-name small { display: block; font-weight: 600; color: var(--gold); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: #241300; font-weight: 800; }
@media (max-width: 900px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold {
  background: var(--sunset); color: #241300;
  box-shadow: 0 10px 34px -12px rgba(255, 118, 0, 0.55);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: transform 0.7s ease;
}
.btn-gold:hover::after { transform: translateX(130%) skewX(-18deg); }
.btn-ghost { border-color: rgba(255,255,255,0.22); color: var(--text); background: rgba(255,255,255,0.04); }
.btn-ghost:hover { border-color: var(--sky); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center; padding: 70px 0 90px; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 0.98; letter-spacing: -0.045em; margin: 18px 0 22px;
}
.hero-sub { color: var(--muted); font-size: 1.13rem; max-width: 560px; margin-bottom: 30px; }
.hero-sub strong { color: var(--text); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.fact b { display: block; font-size: 1.55rem; letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 13px; }

/* sunset scene panel */
.scene-wrap { position: relative; }
.scene {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 90px -30px rgba(255, 118, 0, 0.35), 0 10px 60px -20px rgba(0, 103, 200, 0.4);
  isolation: isolate;
}
.scene svg { display: block; width: 100%; height: auto; }
.sun-core { animation: sun-breathe 7s ease-in-out infinite; transform-origin: 300px 235px; }
@keyframes sun-breathe { 50% { transform: scale(1.04); } }
.sun-rays { animation: rays-turn 70s linear infinite; transform-origin: 300px 235px; }
@keyframes rays-turn { to { transform: rotate(360deg); } }
.shimmer { stroke-dasharray: 10 16; animation: shimmer-flow 6s linear infinite; }
@keyframes shimmer-flow { to { stroke-dashoffset: -104; } }
.bird { animation: bird-drift 13s ease-in-out infinite; }
.bird.b2 { animation-delay: -5s; }
@keyframes bird-drift {
  0% { transform: translate(0, 0); } 50% { transform: translate(-26px, -9px); } 100% { transform: translate(0,0); }
}

/* floating chips over the scene */
.chip {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: rgba(6, 13, 31, 0.82); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,0.7);
  animation: chip-float 5.4s ease-in-out infinite; white-space: nowrap;
}
@keyframes chip-float { 50% { transform: translateY(-9px); } }
.chip-1 { top: 26px; left: -34px; animation-delay: -1.4s; }
.chip-2 { top: 13%; right: -26px; animation-delay: -3.1s; }
.chip-3 { bottom: -18px; left: 34px; animation-delay: -4.4s; }
.chip .dot { width: 9px; height: 9px; border-radius: 99px; background: var(--gold); box-shadow: 0 0 16px var(--gold); animation: dot-pulse 1.8s ease-in-out infinite; }
@keyframes dot-pulse { 50% { opacity: 0.4; } }
@media (max-width: 980px) {
  .chip-1 { left: 8px; } .chip-2 { right: 8px; } .chip-3 { left: 8px; bottom: -14px; }
}

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10,23,51,0.5); overflow: hidden; padding: 15px 0; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee-move 34s linear infinite; }
.marquee-track span { color: var(--muted); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.marquee-track span em { font-style: normal; color: var(--gold); }
@keyframes marquee-move { to { transform: translateX(-50%); } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- events ---------- */
.events-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px;
}
@media (max-width: 980px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .events-grid { grid-template-columns: 1fr; } }
.event-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; text-align: left; color: var(--text); padding: 0;
  font: inherit; display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--event-accent, var(--gold));
  box-shadow: 0 18px 50px -16px var(--event-shadow, rgba(247,168,27,0.4));
}
.poster-frame {
  position: relative; aspect-ratio: 5 / 7; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--event-bg, var(--navy-2));
  display: flex; align-items: center; justify-content: center;
}
.poster-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.poster-frame img.fit-contain { object-fit: contain; padding: 12px; }
.event-card:hover .poster-frame img { transform: scale(1.04); }
.poster-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,31,0.55), transparent 36%);
}
.poster-glow {
  position: absolute; inset: -30%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 30%, var(--event-shadow, rgba(247,168,27,0.35)), transparent 60%);
  transition: opacity 0.5s ease; mix-blend-mode: screen;
}
.event-card:hover .poster-glow { opacity: 1; }
/* straddles the top edge of the poster card */
.date-pill {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  background: var(--sunset); color: #241300;
  border-radius: 999px; white-space: nowrap;
  padding: 7px 18px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px -8px rgba(255, 118, 0, 0.65), 0 2px 0 rgba(255,255,255,0.25) inset;
  transition: transform 0.3s ease;
}
.event-card:hover .date-pill { transform: translate(-50%, -50%) scale(1.06); }
.event-meta { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-meta h3 { font-size: 1.22rem; }
.event-meta p { color: var(--muted); font-size: 14.5px; flex: 1; }
.event-link { font-weight: 800; font-size: 14px; color: var(--event-accent, var(--gold)); }
.event-card:hover .event-link { text-decoration: underline; }

/* coming soon poster (Tiles & Tiaras placeholder) */
.poster-soon {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px;
  background:
    radial-gradient(circle at 70% 20%, rgba(247,168,27,0.25), transparent 45%),
    radial-gradient(circle at 25% 80%, rgba(212,19,103,0.35), transparent 55%),
    var(--navy-2);
}
.poster-soon .tile {
  width: 74px; height: 96px; border-radius: 12px;
  background: linear-gradient(160deg, #fdf6ea, #e9dcc3);
  color: #d41367; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6);
  animation: tile-tilt 6s ease-in-out infinite;
}
@keyframes tile-tilt { 0%,100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-8px); } }
.poster-soon .crown { font-size: 1.9rem; animation: chip-float 5s ease-in-out infinite; }
.poster-soon b { font-family: "Great Vibes", cursive; font-weight: 400; font-size: 2.1rem; color: var(--gold); line-height: 1.1; }
.poster-soon span { color: var(--muted); font-size: 13px; }

/* ---------- event modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(4, 8, 19, 0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 26px;
}
.modal-backdrop.open { display: flex; animation: modal-fade 0.25s ease; }
@keyframes modal-fade { from { opacity: 0; } }
.modal {
  background: #0b1a3a; border: 1px solid rgba(255,255,255,0.16); border-radius: 26px;
  max-width: 880px; width: 100%; max-height: 88vh; overflow: auto;
  display: grid; grid-template-columns: 340px 1fr;
  animation: modal-pop 0.32s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes modal-pop { from { transform: translateY(22px) scale(0.97); opacity: 0; } }
@media (max-width: 760px) { .modal { grid-template-columns: 1fr; } }
.modal-poster { background: var(--event-bg, var(--navy-2)); min-height: 320px; position: relative; overflow: hidden; }
.modal-poster img { width: 100%; height: 100%; object-fit: cover; }
.modal-poster img.fit-contain { object-fit: contain; padding: 16px; }
.modal-body { padding: 34px 34px 30px; }
.modal-body .kicker { color: var(--event-accent, var(--gold)); }
.modal-body h3 { font-size: 1.8rem; margin: 8px 0 6px; }
.modal-tagline {
  font-family: "Great Vibes", cursive; font-size: 1.75rem; color: var(--gold);
  margin-bottom: 14px; line-height: 1.2;
  letter-spacing: 0.08em; word-spacing: 0.22em;
}
.modal-body p.desc { color: var(--muted); margin-bottom: 20px; }
.modal-rows { display: grid; gap: 10px; margin-bottom: 24px; }
.modal-row { display: flex; gap: 12px; font-size: 15px; align-items: baseline; }
.modal-row b { color: var(--event-accent, var(--gold)); min-width: 84px; display: inline-block; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(6,13,31,0.7); color: #fff; font-size: 17px; cursor: pointer;
}
.modal-close:hover { background: rgba(212,19,103,0.6); }

/* ---------- service / mission ---------- */
.service-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: start; margin-top: 46px; }
@media (max-width: 980px) { .service-grid { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.14);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.gallery img:hover {
  transform: translateY(-4px); border-color: var(--gold);
  box-shadow: 0 14px 40px -14px rgba(247,168,27,0.4);
}
.gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.menus-heading { font-size: 2.1rem; text-align: center; margin-top: 64px; }
.menus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; align-items: start; }
@media (max-width: 900px) { .menus { grid-template-columns: 1fr; } }
.gallery-wide { margin-top: 46px; }
.menu-card {
  background: linear-gradient(160deg, #fdf6ea, #f3e8d0); color: #35270f;
  border-radius: 18px; padding: 24px 26px; position: relative; overflow: hidden;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,0.55);
  transition: transform 0.3s ease;
}
.menu-card:hover { transform: translateY(-4px) rotate(-0.5deg); }
.menu-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--sunset);
}
.menu-card h4 { font-family: "Great Vibes", cursive; font-weight: 400; font-size: 1.9rem; color: #a3541a; margin-bottom: 6px; }
.menu-card ul { list-style: none; }
.menu-card li { padding: 5px 0; border-bottom: 1px dotted rgba(53,39,15,0.28); font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.menu-card li:last-child { border-bottom: 0; }
.menu-card li span { color: #8a6a33; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.menu-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- scholarships ---------- */
.impact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px;
}
@media (max-width: 860px) { .impact-strip { grid-template-columns: repeat(2, 1fr); } }
.impact {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px; text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.impact:hover { transform: translateY(-4px); border-color: rgba(247,168,27,0.5); }
.impact b {
  display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.03em;
  background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.impact span { color: var(--muted); font-size: 13.5px; font-weight: 600; }

.recipients { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.recipient {
  border: 1px solid rgba(0,162,224,0.4); color: var(--text);
  background: rgba(0,103,200,0.14); padding: 8px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
}

/* ---------- yearbook ---------- */
.yearbook-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; margin-top: 46px; }
@media (max-width: 980px) { .yearbook-grid { grid-template-columns: 1fr; } }
.yearbook-cover {
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 80px -26px rgba(0, 103, 200, 0.55);
  transform: rotate(-2deg); transition: transform 0.4s ease;
  max-width: 340px; margin: 0 auto;
}
.yearbook-cover:hover { transform: rotate(0deg) scale(1.02); }
.yearbook-frame {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; background: var(--navy-2);
}
.yearbook-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- leadership ---------- */
.board-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 44px 0 66px; }
@media (max-width: 980px) { .board-cards { grid-template-columns: repeat(2, 1fr); } }
.board-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  text-align: center; transition: transform 0.3s ease, border-color 0.3s ease;
}
.board-card:hover { transform: translateY(-4px); border-color: rgba(0,162,224,0.55); }
.board-card .avatar {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 99px;
  background: var(--sunset); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem; color: #241300;
}
.board-card b { display: block; font-size: 1.05rem; }
.board-card span { color: var(--muted); font-size: 13px; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--orange), var(--cranberry), var(--royal));
  border-radius: 3px;
}
.tl-item { position: relative; padding: 10px 0 10px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -27px; top: 20px; width: 13px; height: 13px;
  border-radius: 99px; background: var(--ink); border: 3px solid var(--gold);
}
.tl-item.current::before { background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.tl-item b { font-size: 1.06rem; }
.tl-item span { color: var(--muted); font-size: 13.5px; display: block; }
.tl-item span.tl-badge {
  display: inline-block; width: auto; color: var(--gold);
  margin-left: 10px; font-size: 11px; font-weight: 800;
  background: rgba(247,168,27,0.16); color: var(--gold); border: 1px solid rgba(247,168,27,0.4);
  padding: 2px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.06em;
}
.tl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; margin-top: 40px; }
@media (max-width: 760px) { .tl-cols { grid-template-columns: 1fr; gap: 0; } }

/* ---------- board of directors ---------- */
.board-title { font-size: 1.15rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 76px; }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
@media (max-width: 980px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .board-grid { grid-template-columns: 1fr; } }
.b-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px 26px; text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.b-card:hover {
  transform: translateY(-5px); border-color: rgba(247,168,27,0.55);
  box-shadow: 0 18px 50px -18px rgba(247,168,27,0.35);
}
.b-card.b-open { opacity: 0.75; border-style: dashed; }
.b-photo {
  width: 110px; height: 110px; border-radius: 999px; object-fit: cover;
  margin: 0 auto 16px; display: block;
  border: 3px solid transparent;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--sunset) border-box;
}
.b-initials {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 2rem; color: var(--gold);
}
.b-role {
  display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--sky); background: rgba(0,162,224,0.12);
  border: 1px solid rgba(0,162,224,0.35); border-radius: 999px; padding: 4px 14px; margin-bottom: 10px;
}
.b-card b { display: block; font-size: 1.15rem; margin-bottom: 8px; }
.b-card p { color: var(--muted); font-size: 14px; }
.b-co {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--gold);
  margin: -4px 0 8px;
}

/* ---------- sponsors (tiered) ---------- */
.sponsor-grid { margin-top: 34px; }
.tier-head { display: flex; align-items: center; gap: 14px; margin: 38px 0 16px; }
.tier-badge {
  padding: 6px 18px; border-radius: 999px; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: #fff;
}
.tier-amount { color: var(--muted); font-size: 13px; font-weight: 700; }
.tier-rule { flex: 1; height: 1px; background: var(--line); }
.tier-golden .tier-badge { background: var(--sunset); color: #241300; }
.tier-sunset .tier-badge { background: rgba(247,168,27,0.16); color: var(--gold); border: 1px solid rgba(247,168,27,0.5); }
.tier-twilight .tier-badge { background: rgba(255,118,0,0.16); color: var(--orange); border: 1px solid rgba(255,118,0,0.5); }
.tier-afterglow .tier-badge { background: rgba(212,19,103,0.16); color: #ff6aa8; border: 1px solid rgba(212,19,103,0.55); }
.tier-community .tier-badge { background: rgba(0,162,224,0.14); color: var(--sky); border: 1px solid rgba(0,162,224,0.5); }
.s-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.s-grid-golden { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .s-grid { grid-template-columns: repeat(2, 1fr); } .s-grid-golden { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .s-grid { grid-template-columns: 1fr; } }
.s-grid-golden .s-card {
  border: 1px solid transparent; padding: 32px 22px 24px;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--sunset) border-box;
}
.s-grid-golden .s-logo { height: 108px; }
.s-grid-golden .s-card b { font-size: 17px; }
.s-since {
  font-size: 11.5px; font-weight: 800; color: var(--gold);
  background: rgba(247,168,27,0.12); border: 1px solid rgba(247,168,27,0.35);
  padding: 3px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.s-card.tier-sunset:hover { border-color: rgba(247,168,27,0.6); }
.s-card.tier-twilight:hover { border-color: rgba(255,118,0,0.6); }
.s-card.tier-afterglow:hover { border-color: rgba(212,19,103,0.6); }
.s-card.tier-community:hover { border-color: rgba(0,162,224,0.6); }
.s-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 18px 20px; color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.s-card:hover {
  transform: translateY(-4px); border-color: rgba(247,168,27,0.55); text-decoration: none;
  box-shadow: 0 16px 44px -16px rgba(247,168,27,0.35);
}
.s-logo {
  width: 100%; height: 74px; object-fit: contain; margin-bottom: 8px;
  border-radius: 12px;
}
.s-logo-light { background: #fdfcf9; padding: 9px; }
.sp-modal-logo-light,
.modal-poster img.sp-modal-logo-light {
  background: #fdfcf9; border-radius: 16px; padding: 18px;
}
.s-initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(0,103,200,0.35), rgba(10,23,51,0.9));
  color: var(--gold); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.04em;
}
.s-card b { font-size: 15px; line-height: 1.3; }
.s-type {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.s-meta { font-size: 12.5px; color: var(--sky); font-weight: 600; }
/* past sponsors: compact white logo wall */
.past-heading {
  margin-top: 46px; text-align: center; color: var(--muted);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
}
.past-wall {
  margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 26px 34px; align-items: center;
}
.past-wall img {
  height: 40px; width: auto; max-width: 130px; object-fit: contain;
  opacity: 0.55; filter: grayscale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.past-wall img:hover { opacity: 1; transform: translateY(-3px); }

.sp-modal-art {
  display: flex; align-items: center; justify-content: center; padding: 40px 30px;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,103,200,0.35), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(247,168,27,0.18), transparent 50%),
    var(--navy);
}
.sp-modal-logo,
.modal-poster img.sp-modal-logo {
  width: auto; height: auto; max-width: 85%; max-height: 240px;
  object-fit: contain; padding: 0;
}
.sp-modal-mono { width: 150px; height: 150px; border-radius: 24px; font-size: 2.4rem; }
.sponsor-cta {
  margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; border: 1px solid rgba(247,168,27,0.4); border-radius: 22px; padding: 30px 34px;
  background: linear-gradient(120deg, rgba(247,168,27,0.10), rgba(212,19,103,0.08));
}
.sponsor-cta h3 { font-size: 1.4rem; margin-bottom: 6px; }
.sponsor-cta p { color: var(--muted); font-size: 15px; max-width: 520px; }
.cta-levels { margin-top: 10px; font-size: 13px !important; font-weight: 700; color: var(--gold) !important; }

/* ---------- donate ---------- */
.donate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } }
.donate-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.donate-card:hover {
  transform: translateY(-5px); border-color: rgba(247,168,27,0.55);
  box-shadow: 0 18px 50px -18px rgba(255,118,0,0.35);
}
.donate-icon { font-size: 2rem; }
.donate-card h3 { font-size: 1.3rem; }
.donate-card p { color: var(--muted); font-size: 14.5px; }
.donate-detail { color: var(--text) !important; font-size: 15px !important; line-height: 1.5; }
.donate-fine { font-size: 12px !important; }
.btn-disabled { opacity: 0.55; cursor: default; pointer-events: auto; }
.btn-disabled:hover { transform: none; }
.btn-disabled::after { display: none; }

/* ---------- join ---------- */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 46px; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }
.join-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.join-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.join-card p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.join-card p b { color: var(--text); }

/* ---------- four-way test / footer ---------- */
.fourway { text-align: center; }
.fourway-art { max-width: 940px; margin: 20px auto 0; }
.fourway-art svg { width: 100%; height: auto; display: block; }
.fw-title { font-family: "Great Vibes", cursive; font-size: 52px; fill: #f7a81b; letter-spacing: 0.04em; }
.fw-sub { font-size: 14px; font-weight: 700; letter-spacing: 3.5px; fill: #9fb0cc; }
.fw-num { font-size: 19px; font-weight: 800; fill: #fff; }
.fw-num-dark { fill: #241300; }
.fw-q { font-size: 15px; font-weight: 600; fill: rgba(255,255,255,0.92); }
.fw-big { font-size: 17px; font-weight: 800; fill: #fff; }
.fw-gold { fill: #f7a81b; font-size: 21px; }
.fw-wheel { animation: chip-float 7s ease-in-out infinite; animation-delay: -2s; }
@media (max-width: 640px) {
  .fw-q { font-size: 17px; } .fw-big { font-size: 19px; }
}
.fourway-item {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 18px; background: var(--card);
}
.fourway-item b { display: block; font-size: 2rem; margin-bottom: 8px; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fourway-item span { font-weight: 700; font-size: 14.5px; }
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 13.5px; }
footer .foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }

/* ---------- animated flyer overlay elements ---------- */
.el,
.poster-frame img.el,
.modal-poster img.el {
  position: absolute; pointer-events: none; z-index: 2;
  width: auto; height: auto; object-fit: fill; padding: 0;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45));
}
/* gentle bob with a fixed tilt (playing cards) */
.el-float-a { animation: el-float-a 6s ease-in-out infinite; }
@keyframes el-float-a {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%      { transform: rotate(calc(var(--rot, 0deg) + 4deg)) translateY(-11px); }
}
/* slow drift + rock (doughnut) */
.el-spin-float { animation: el-spin-float 9s ease-in-out infinite; }
@keyframes el-spin-float {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(10deg) translateY(-14px); }
}
/* zombie rises from the bottom edge and sways */
.el-zombie { transform-origin: 50% 100%; animation: el-zombie 7s ease-in-out infinite; }
@keyframes el-zombie {
  0%, 100% { transform: translateY(9%) rotate(-2.5deg); }
  50%      { transform: translateY(0) rotate(2deg); }
}
/* bat flies across the flyer and loops around */
.el-bat { animation: el-bat 11s linear infinite; }
@keyframes el-bat {
  0%   { transform: translate(0, 0) scaleX(1); opacity: 0; }
  4%   { opacity: 1; }
  46%  { transform: translate(1250%, -46px) scaleX(1); opacity: 1; }
  50%  { transform: translate(1300%, -40px) scaleX(-1); opacity: 1; }
  96%  { transform: translate(50%, 10px) scaleX(-1); opacity: 1; }
  100% { transform: translate(0, 0) scaleX(1); opacity: 0; }
}
/* bingo balls bounce and roll in place */
.el-ball { animation: el-ball 3.8s ease-in-out infinite; }
@keyframes el-ball {
  0%, 100% { transform: translateY(0) rotate(-14deg); }
  50%      { transform: translateY(-13px) rotate(12deg); }
}

/* bidding paddles pivot from the bottom like raised arms */
.el-paddle { transform-origin: 50% 100%; animation: el-paddle 4.6s ease-in-out infinite; }
@keyframes el-paddle {
  0%, 100% { transform: rotate(-7deg) translateY(2%); }
  50%      { transform: rotate(7deg) translateY(-2%); }
}

/* ---------- yearbook pager ---------- */
/* width tied to viewport height so a full page always fits on screen (page aspect 0.647) */
.yb-viewer {
  margin-top: 46px;
  max-width: min(540px, calc(76vh * 0.647), 100%);
  margin-left: auto; margin-right: auto;
}
.yb-stage { position: relative; }
.yb-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--navy-2);
  box-shadow: 0 30px 80px -26px rgba(0, 103, 200, 0.45);
  scrollbar-width: none;
  touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none;
}
.yb-track::-webkit-scrollbar { display: none; }
.yb-page { flex: 0 0 100%; scroll-snap-align: center; }
.yb-page img { width: 100%; display: block; }
.yb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  touch-action: manipulation;
  width: 46px; height: 46px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(6,13,31,0.75); color: #fff; font-size: 26px; line-height: 1;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease;
}
.yb-arrow:hover { background: rgba(247,168,27,0.85); color: #241300; }
.yb-prev { left: 12px; }
.yb-next { right: 12px; }
.yb-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; gap: 14px; flex-wrap: wrap;
}
.yb-counter { color: var(--muted); font-size: 14px; font-weight: 700; }

/* ---------- four-way test figure ---------- */
.fourway-figure { max-width: 380px; margin: 42px auto 0; }
.fourway-figure img {
  width: 100%; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 26px 70px -24px rgba(0, 103, 200, 0.55), 0 10px 40px -18px rgba(247, 168, 27, 0.35);
  transform: rotate(-1.2deg); transition: transform 0.4s ease;
}
.fourway-figure img:hover { transform: rotate(0deg) scale(1.02); }

/* ---------- footer logo ---------- */
.foot-logo {
  background: #fff; border-radius: 14px; padding: 12px 18px;
  display: inline-flex; align-items: center;
}
.foot-logo img { width: 220px; display: block; }

/* ---------- QA flat mode (?flat=1 screenshots) ---------- */
.flat .reveal { opacity: 1; transform: none; transition: none; }
.flat .hero { min-height: auto; padding: 90px 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .glow, .chip, .marquee-track, .sun-core, .sun-rays, .shimmer, .bird,
  .brand .wheel, .poster-soon .tile, .poster-soon .crown, .chip .dot,
  .el, .el-float-a, .el-spin-float, .el-zombie, .el-bat, .el-paddle { animation: none !important; }
  .el-bat { opacity: 0 !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
