/* ==========================================================
   Fire Breathing Blowfish — site stylesheet
   Built on the design tokens in tokens/*.css (loaded before this file).
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--surface-page);
	color: var(--text-body);
	font-family: var(--font-text);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--fbbf-orange-deep); text-decoration: none; }
a:hover { color: var(--fbbf-red); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ---- Layout --------------------------------------------- */
.container { max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; }
.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }
.container--xl { max-width: var(--container-xl); }

.section { padding: var(--section-y) 24px; }
.section--sunk { background: var(--surface-sunk); }
.section--navy { background: var(--fbbf-navy); }
.section--night { background: var(--grad-night); }
.section--ocean { background: var(--grad-ocean); }

.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header__body { color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 16px auto 0; line-height: 1.55; }
.section-header--center .section-header__body { margin-left: auto; margin-right: auto; }
.section-header__body--light { color: rgba(255,255,255,0.85); }

.section-eyebrow { color: var(--text-brand); font-weight: 700; font-size: 13px; letter-spacing: var(--ls-caps); text-transform: uppercase; }
.section--night .section-eyebrow, .section--navy .section-eyebrow, .section--ocean .section-eyebrow { color: var(--fbbf-orange-bright); }

.heading-display {
	font-family: var(--font-display);
	color: var(--fbbf-navy);
	letter-spacing: var(--ls-display);
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 10px 0 0;
}
.heading-display--hero { font-size: clamp(40px, 7vw, 88px); line-height: var(--lh-display); margin: 0; text-transform: lowercase; color: #fff; }

.fbbf-outline { font-family: var(--font-display); }

/* ---- Buttons & pills ------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-text); font-weight: 700; font-size: 16px;
	padding: 15px 30px; border: none; border-radius: var(--radius-md); cursor: pointer;
	transition: transform var(--dur-fast) var(--ease-bounce), background var(--dur-base) ease;
	text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--pill { border-radius: var(--radius-pill); }
.btn--fire { background: var(--fbbf-orange); color: var(--fbbf-navy); box-shadow: var(--shadow-fire); }
.btn--fire:hover { background: var(--fbbf-orange-deep); color: var(--fbbf-navy); transform: translateY(-2px); }
.btn--outlined { border: 3px solid var(--fbbf-navy); box-shadow: var(--shadow-pop); }
.btn--outlined:hover { transform: translate(-2px,-2px); }
.btn--ghost-light { background: transparent; color: #fff; border: 3px solid #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn--navy { background: var(--fbbf-navy); color: #fff; border-radius: var(--radius-pill); }
.btn--navy:hover { color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 17px; box-shadow: var(--shadow-lg); }
.btn--sm { padding: 10px 20px; font-size: 14px; border-radius: var(--radius-pill); }
.btn--block { width: 100%; }

.pill {
	display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: var(--ls-caps);
	text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill);
}
.pill--red { background: var(--fbbf-red); color: #fff; box-shadow: var(--shadow-pop); font-size: 13px; padding: 7px 16px; }
.pill--fire-on-navy { background: var(--fbbf-orange); color: var(--fbbf-navy); }
.pill--go { background: var(--status-go); color: #fff; }
.pill-label { font-family: var(--font-display); font-size: 14px; letter-spacing: var(--ls-display); color: var(--fbbf-flame-yellow); text-transform: uppercase; margin-bottom: 8px; }

.badge { font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--radius-pill); white-space: nowrap; }
.badge--gold { background: var(--fbbf-orange); color: var(--fbbf-navy); }
.badge--silver { background: var(--fbbf-wave-blue); color: #fff; }
.badge--bronze { background: #9C6B3E; color: #fff; }
.badge--upcoming { background: var(--surface-sunk); color: var(--fbbf-navy); border: 1.5px dashed rgba(20,33,61,0.3); }

.share-btn {
	width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--radius-pill);
	border: 1px solid rgba(20,33,61,0.15); background: var(--surface-sunk); color: var(--fbbf-navy);
	display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease;
}
.share-btn:hover { background: var(--fbbf-sand); }
button.share-btn[data-share-title] { width: auto; height: auto; }
.hero__copy .share-btn, .page-hero .share-btn { display: inline-flex; gap: 8px; background: var(--fbbf-orange); color: var(--fbbf-navy); border: none; font-weight: 600; font-size: 14px; padding: 10px 20px; margin-top: 22px; border-radius: var(--radius-pill); }
.page-hero--donate .share-btn { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.4); }

/* ---- Animations ------------------------------------------ */
@keyframes fbbfBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes fbbfRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fbbfMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fbbf-bob { animation: fbbfBob 4s ease-in-out infinite; }
.fbbf-rise { animation: fbbfRise .6s var(--ease-out) both; }

/* ---- Header ------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(20,33,61,0.92);
	backdrop-filter: blur(10px); border-bottom: 3px solid var(--fbbf-orange);
}
.site-header__inner { max-width: 1300px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.site-header__brand { display: flex; align-items: center; gap: 12px; }
.site-header__mascot { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.site-header__wordblock { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.site-header__title { font-size: 22px; line-height: 0.9; color: var(--display-fill); -webkit-text-stroke: var(--display-stroke-width) var(--display-stroke-color); paint-order: stroke fill; letter-spacing: var(--ls-display); }
.site-header__eyebrow { font-weight: 600; font-size: 10px; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--fbbf-orange-bright); margin-top: 3px; white-space: nowrap; }
.site-header__nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
	background: none; border: none; cursor: pointer; font-weight: 600; font-size: 15px;
	padding: 8px 14px 6px; color: rgba(255,255,255,0.85); border-bottom: 3px solid transparent;
	transition: color .18s ease;
}
.nav-link:hover, .nav-link--active { color: var(--fbbf-orange-bright); }
.nav-link--active { border-bottom-color: var(--fbbf-orange); }
.site-header__instagram {
	margin-left: 8px; width: 38px; height: 38px; border-radius: var(--radius-pill);
	background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center;
	color: #fff; flex-shrink: 0; transition: background .18s ease, transform .12s var(--ease-bounce);
}
.site-header__instagram:hover { background: var(--fbbf-orange); color: var(--fbbf-navy); transform: translateY(-2px); }
.site-header__donate { margin-left: 2px; font-size: 14px; padding: 10px 22px; }
.site-header__menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; margin-left: auto; }
.site-header__menu-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ---- Footer ------------------------------------------------ */
.site-footer { background: var(--grad-night); color: #fff; padding: 56px 24px 32px; border-top: 3px solid var(--fbbf-orange); }
.site-footer__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__brandrow { display: flex; align-items: center; gap: 12px; }
.site-footer__brand p { color: rgba(255,255,255,0.72); font-size: 14px; line-height: 1.55; max-width: 340px; margin: 16px 0 0; }
.site-footer__pill { display: inline-block; margin-top: 18px; background: var(--fbbf-red); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: var(--ls-caps); text-transform: uppercase; padding: 7px 16px; border-radius: var(--radius-pill); }
.site-footer__heading { font-weight: 700; font-size: 13px; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--fbbf-orange-bright); margin-bottom: 14px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer__links a { color: rgba(255,255,255,0.82); font-size: 15px; }
.site-footer__links a:hover { color: var(--fbbf-orange-bright); }
.site-footer__donate-link { color: var(--fbbf-orange-bright) !important; font-weight: 700; }
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer__instagram { display: inline-flex; align-items: center; gap: 9px; background: var(--fbbf-orange); color: var(--fbbf-navy); font-weight: 700; font-size: 14.5px; padding: 10px 18px; border-radius: var(--radius-pill); margin-bottom: 4px; transition: transform .12s var(--ease-bounce); }
.site-footer__instagram:hover { color: var(--fbbf-navy); transform: translateY(-2px); }
.site-footer__contact a:not(.site-footer__instagram) { color: rgba(255,255,255,0.82); font-size: 15px; }
.site-footer__bottom { max-width: 1200px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.5); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Hero (Home / Merch / Donate / Race Day Gallery) ------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--fbbf-navy); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; }
.hero__scrim--home { background: linear-gradient(180deg, rgba(20,33,61,0.62), rgba(20,33,61,0.82)); }
.hero__scrim--race-day { background: linear-gradient(180deg, rgba(20,33,61,0.15) 0%, rgba(20,33,61,0.85) 100%); }
.hero__content { position: relative; z-index: 2; padding: 96px 24px; display: flex; align-items: center; gap: 40px; width: 100%; flex-wrap: wrap; }
.hero__content--bottom { align-items: flex-end; height: 100%; padding-bottom: 40px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.hero__copy { flex: 1; min-width: 320px; }
.hero__lede { font-size: clamp(1.1rem, 2vw, 1.5rem); color: rgba(255,255,255,0.92); font-weight: 500; max-width: 560px; margin: 22px 0 0; line-height: 1.5; }
.hero__lede em, .page-hero__lede em { color: var(--fbbf-orange-bright); font-style: normal; font-weight: 700; }
.hero__lede--merch { max-width: 600px; font-weight: 600; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero__mascot { position: absolute; z-index: 2; right: 5%; bottom: -10px; width: min(300px, 42vw); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5)); }
.hero__mascot--merch { width: min(220px, 32vw); z-index: 1; }
.hero--merch { min-height: auto; padding: 76px 0 60px; }
.hero--merch .hero__content { padding: 0 24px; }
.hero--race-day { min-height: 380px; height: 56vh; }
.hero--race-day .hero__video { opacity: 0.85; }
.hero--donate { background: linear-gradient(180deg, rgba(20,33,61,0.7), rgba(20,33,61,0.9)), url('../images/team-race-skyline.webp'); background-size: cover; background-position: center; }

/* Page hero (About/Races/Gallery/Sponsors — non-video, gradient heroes) */
.page-hero { padding: 80px 24px 60px; }
.page-hero--ocean { background: var(--grad-ocean); }
.page-hero--night { background: var(--grad-night); }
.page-hero--center { text-align: center; }
.page-hero--donate { padding: 80px 24px 60px; background: linear-gradient(180deg, rgba(20,33,61,0.7), rgba(20,33,61,0.9)), url('../images/team-race-skyline.webp'); background-size: cover; background-position: center; text-align: center; }
.page-hero__lede { color: rgba(255,255,255,0.85); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 640px; margin: 18px 0 0; line-height: 1.55; }
.page-hero--center .page-hero__lede { margin-left: auto; margin-right: auto; }
.page-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.page-hero__mailto { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.8); margin-top: 20px; font-size: 14px; font-weight: 600; }

/* ---- Marquee ------------------------------------------------ */
.marquee { background: var(--fbbf-orange); overflow: hidden; padding: 18px 0; border-top: 3px solid var(--fbbf-navy); border-bottom: 3px solid var(--fbbf-navy); }
.marquee__track { display: flex; width: max-content; animation: fbbfMarquee 22s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: 28px; padding: 0 28px; font-family: var(--font-display); font-size: 1.5rem; color: var(--fbbf-navy); letter-spacing: 0.03em; white-space: nowrap; }

/* ---- Stats bar ------------------------------------------------ */
.stats-bar { background: var(--grad-night); padding: 44px 24px; }
.stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-bar__item { text-align: center; }
.stats-bar__value { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.9; color: var(--fbbf-orange-bright); }
.stats-bar__label { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-top: 8px; }

/* ---- Home cards ------------------------------------------------ */
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.home-card {
	text-align: left; background: var(--surface-card); border: 3px solid var(--fbbf-navy); border-radius: 20px;
	padding: 28px; cursor: pointer; box-shadow: var(--shadow-pop); transition: transform .15s var(--ease-bounce);
	color: inherit; display: block;
}
.home-card:hover { transform: translate(-3px, -3px); color: inherit; }
.home-card__emoji { font-size: 34px; line-height: 1; }
.home-card__title { font-family: var(--font-display); font-size: 1.6rem; color: var(--fbbf-navy); margin-top: 16px; letter-spacing: 0.03em; }
.home-card__body { color: var(--text-muted); font-size: 15px; line-height: 1.5; margin: 8px 0 0; }
.home-card__cta { display: inline-block; margin-top: 14px; color: var(--text-brand); font-weight: 700; font-size: 14px; }

/* ---- Instagram teaser ------------------------------------------------ */
.insta-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.insta-header__body { color: var(--text-muted); font-size: 16px; max-width: 520px; margin: 14px 0 0; line-height: 1.5; }
.insta-header__followers { text-align: right; }
.insta-header__count { font-family: var(--font-display); font-size: 2.4rem; color: var(--fbbf-orange-deep); line-height: 1; }
.insta-header__label { font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fbbf-navy); margin-top: 4px; }
.insta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.insta-tile { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface-sunk); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; }
.insta-tile__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; text-align: center; padding: 12px; }
.insta-tile__hover { position: absolute; inset: 0; background: rgba(20,33,61,0); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .18s ease; opacity: 0; }
.insta-tile:hover .insta-tile__hover { background: rgba(20,33,61,0.45); opacity: 1; }
.insta-follow { text-align: center; margin-top: 32px; }

/* ---- CTA bands ------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; padding: 80px 24px; text-align: center; }
.cta-band--fire { background: var(--grad-fire); }
.cta-band__inner { }
.cta-band__body { color: var(--fbbf-navy); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 600px; margin: 20px auto 0; line-height: 1.5; }
.cta-band .btn { margin-top: 30px; }

/* ---- About page ------------------------------------------------ */
.about-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about-story__copy p { font-size: 17px; line-height: 1.65; color: var(--text-body); margin: 0 0 16px; }
.about-story__photo { border-radius: 24px; overflow: hidden; border: 3px solid var(--fbbf-navy); box-shadow: var(--shadow-pop); }
.about-story__photo img { width: 100%; height: 100%; object-fit: cover; }
.value-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.value-card { background: var(--surface-card); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-md); border: 1px solid rgba(20,33,61,0.06); }
.value-card__emoji { font-size: 32px; }
.value-card p { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0; }
.about-cta { text-align: center; }
.about-cta__body { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 16px auto 0; line-height: 1.55; }
.about-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---- Races page ------------------------------------------------ */
.races-heading { margin: 0 0 24px; font-size: 1.9rem; }
.race-list { display: flex; flex-direction: column; gap: 16px; }
.race-card {
	display: flex; align-items: center; gap: 24px; background: var(--surface-card);
	border: 1px solid rgba(20,33,61,0.08); border-left: 6px solid var(--fbbf-orange);
	border-radius: 16px; padding: 22px 26px; box-shadow: var(--shadow-sm); flex-wrap: wrap;
}
.race-card--placed { border-left-color: var(--status-go); }
.race-card__date { text-align: center; min-width: 78px; }
.race-card__day { font-family: var(--font-display); font-size: 1.7rem; color: var(--fbbf-orange-deep); line-height: 0.9; }
.race-card__month { font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fbbf-navy); margin-top: 4px; }
.race-card__info { flex: 1; min-width: 200px; }
.race-card__name { font-weight: 700; font-size: 18px; color: var(--fbbf-navy); }
.race-card__location { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ---- Gallery page (tabbed sub-gallery) ------------------ */
.gallery-tabs { position: sticky; top: 0; z-index: 20; background: var(--surface-page); border-bottom: 1px solid var(--border-subtle); }
.gallery-tabs__inner { padding: 14px 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.gallery-tabs__btn {
	font-weight: 700; font-size: 14px; color: var(--fbbf-navy); background: var(--fbbf-sand);
	padding: 10px 18px; border-radius: var(--radius-pill); cursor: pointer; border: none; font-family: var(--font-text);
}
.gallery-tabs__btn.is-active { color: #fff; background: var(--fbbf-navy); }
.gallery-tabs__seeall { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--fbbf-sand); padding: 6px 16px 6px 6px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; color: var(--fbbf-navy); }
.gallery-tabs__seeall-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--fbbf-navy); background: var(--fbbf-navy); display: flex; align-items: center; justify-content: center; }
.gallery-tabs__seeall-icon img { width: 100%; height: 100%; object-fit: contain; }

.gallery-panel__heading { text-align: center; text-transform: lowercase; font-family: var(--font-display); font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--fbbf-navy); margin: 0 0 12px; letter-spacing: 0.04em; }
.gallery-panel__body { text-align: center; color: var(--text-muted); font-size: 16px; max-width: 640px; margin: 0 auto 32px; line-height: 1.55; }
.gallery-empty { text-align: center; color: var(--text-muted); font-size: 15px; padding: 40px 20px; }
.gallery-panel__more-wrap { text-align: center; margin-top: 32px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.gallery-grid__item--big { grid-column: span 2; }
.gallery-grid__caption { text-align: center; font-family: var(--font-display); font-size: 1rem; color: var(--fbbf-navy); letter-spacing: 0.03em; margin-top: 10px; }

.g-tile { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; border: 3px solid var(--fbbf-navy); box-shadow: var(--shadow-pop); background: #000; }
.g-tile img, .g-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-tile__link { position: absolute; inset: 0; padding: 0; border: none; background: none; cursor: zoom-in; }
.g-tile__badge { position: absolute; top: 12px; left: 12px; background: var(--fbbf-red); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill); }
.g-tile__count { position: absolute; bottom: 8px; right: 8px; background: var(--fbbf-navy); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: var(--radius-pill); }
.g-tile__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: var(--text-muted); background: var(--surface-sunk); font-size: 13px; font-weight: 600; }

/* ---- Race Day Gallery page ------------------------------------------------ */
.rdg-backlinks { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 14px 24px; background: var(--surface-page); border-bottom: 1px solid var(--border-subtle); }
.rdg-backlinks__pill { font-weight: 700; font-size: 14px; color: var(--fbbf-navy); background: var(--fbbf-sand); padding: 9px 18px; border-radius: var(--radius-pill); text-decoration: none; }
.rdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.rdg-tile { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-pop); background: #000; }
.rdg-tile img, .rdg-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rdg-tile .g-tile__link { position: absolute; inset: 0; padding: 0; border: none; background: none; cursor: zoom-in; }
.rdg-tile__badge { position: absolute; top: 10px; left: 10px; background: var(--fbbf-red); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill); }
.rdg-tile__caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px; background: linear-gradient(0deg, rgba(20,33,61,0.85), transparent); color: #fff; font-size: 14px; font-weight: 600; text-align: left; }
.rdg-tile__empty { position: absolute; inset: 0; background: var(--surface-sunk); border: 3px dashed var(--border-subtle); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 12px; }
.rdg-tile__empty svg { width: 20px; height: 20px; padding: 16px; border-radius: 50%; background: var(--fbbf-navy); box-sizing: content-box; }
.rdg-tile__empty div { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.rdg-grid--drone .g-tile__count, .rdg-grid--race .g-tile__count, .rdg-grid--costume .g-tile__count { bottom: 8px; right: 8px; }
.rdg-grid--clip { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rdg-clip { position: relative; border-radius: 16px; overflow: hidden; background: var(--fbbf-navy); border: 3px solid var(--fbbf-navy); box-shadow: var(--shadow-pop); aspect-ratio: 16/10; }
.rdg-clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rdg-clip__badge { position: absolute; top: 10px; left: 10px; background: var(--fbbf-red); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill); }
.rdg-footer { background: var(--fbbf-navy); padding: 40px 32px; text-align: center; }
.rdg-footer__title { font-size: 22px; letter-spacing: var(--ls-display); color: #fff; text-transform: uppercase; margin-top: 12px; color: var(--display-fill); -webkit-text-stroke: var(--display-stroke-width) var(--display-stroke-color); paint-order: stroke fill; }

/* ---- Merch page ------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.product-card {
	display: block; background: var(--surface-card); border: 1px solid rgba(20,33,61,0.08);
	border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md);
	transition: transform .15s var(--ease-bounce), box-shadow .2s; color: inherit;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.product-card__thumb { height: 180px; display: flex; align-items: center; justify-content: center; background: var(--surface-sunk) center/cover no-repeat; }
.product-card__emoji { font-size: 72px; }
.product-card__body { padding: 20px; }
.product-card__name { font-weight: 700; font-size: 17px; color: var(--fbbf-navy); }
.product-card__desc { color: var(--text-muted); font-size: 14px; margin-top: 2px; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.product-card__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--fbbf-orange-deep); }
.product-card__cta { font-weight: 700; font-size: 13px; color: var(--fbbf-navy); background: var(--fbbf-sand); padding: 8px 14px; border-radius: var(--radius-pill); }
.merch-footer { text-align: center; margin-top: 48px; }
.merch-footer__note { color: var(--text-muted); font-size: 14px; margin-top: 14px; }

/* ---- Sponsors page ------------------------------------------------ */
.impact-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding: 28px 0; border-top: 2px solid var(--border-subtle); border-bottom: 2px solid var(--border-subtle); }
.impact-stats__item { text-align: center; }
.impact-stats__value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; color: var(--fbbf-orange); }
.impact-stats__label { font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fbbf-navy); margin-top: 10px; }
.why-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.why-card { background: var(--surface-card); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-md); border: 1px solid rgba(20,33,61,0.06); display: flex; flex-direction: column; gap: 10px; }
.why-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--fbbf-foam); display: flex; align-items: center; justify-content: center; color: var(--fbbf-orange-deep); font-size: 20px; }
.why-card__title { font-family: var(--font-display); font-size: 1.4rem; color: var(--fbbf-navy); letter-spacing: 0.03em; }
.why-card p { color: var(--text-body); font-size: 15px; line-height: 1.5; margin: 0; }

.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.tier-card { position: relative; border-radius: 20px; padding: 26px 22px; display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid rgba(20,33,61,0.1); box-shadow: var(--shadow-sm); }
.tier-card--featured { border: 3px solid var(--fbbf-orange); box-shadow: var(--shadow-pop); }
.tier-card__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--fbbf-red); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--radius-pill); white-space: nowrap; }
.tier-card__name { font-family: var(--font-display); font-size: 1.6rem; color: var(--fbbf-navy); letter-spacing: 0.03em; line-height: 1; text-transform: lowercase; }
.tier-card__price { font-family: var(--font-display); font-size: 2.4rem; color: var(--fbbf-orange-deep); line-height: 1; margin: 10px 0 2px; }
.tier-card__blurb { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.tier-card__perks { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tier-card__perks li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--text-body); line-height: 1.4; }
.tier-card__check { color: var(--status-go); flex-shrink: 0; }

.trust-card { background: var(--surface-card); border: 3px solid var(--fbbf-navy); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-pop); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.trust-card__icon { width: 72px; height: 72px; border-radius: 18px; background: var(--fbbf-navy); display: flex; align-items: center; justify-content: center; color: var(--fbbf-orange); font-size: 32px; flex-shrink: 0; }
.trust-card__title { font-family: var(--font-display); font-size: 1.7rem; color: var(--fbbf-navy); letter-spacing: 0.03em; line-height: 1; }
.trust-card p { margin: 12px 0 14px; color: var(--text-body); font-size: 16px; line-height: 1.55; }
.trust-card__facts { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.trust-card__facts strong { color: var(--fbbf-navy); }

.sponsor-wall { display: grid; grid-template-columns: repeat(3, minmax(200px, 280px)); gap: 32px; justify-content: center; }
.sponsor-wall__tile { height: 92px; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 16px; }
.sponsor-wall__tile img { max-width: 100%; max-height: 60px; object-fit: contain; }
.sponsor-wall__name { color: rgba(255,255,255,0.85); font-weight: 700; }

.sponsor-form-card { background: var(--surface-card); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-pop); }
.sponsor-form { display: flex; flex-direction: column; gap: 16px; }
.sponsor-form label { display: flex; flex-direction: column; gap: 6px; }
.sponsor-form label span { font-weight: 600; font-size: 14px; color: var(--fbbf-navy); }
.sponsor-form input, .sponsor-form select { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-subtle); font-family: var(--font-text); font-size: 15px; color: var(--fbbf-navy); background: #fff; }
.sponsor-form__fallback { text-align: center; font-size: 13px; color: var(--text-muted); }
.sponsor-form-success { text-align: center; padding: 24px 0; }
.sponsor-form-success__emoji { font-size: 40px; }
.sponsor-form-success__title { margin: 12px 0 6px; font-size: 1.9rem; }
.sponsor-form-success p { color: var(--text-muted); margin: 0; }

/* ---- Donate page ------------------------------------------------ */
.donate-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.donate-card { background: var(--surface-card); border: 3px solid var(--fbbf-navy); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-pop); }
.donate-card__intro { color: var(--text-muted); font-size: 14.5px; margin: 0 0 22px; }
.donate-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.donate-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: 16px 8px; cursor: pointer; border-radius: 16px; transition: all .15s var(--ease-bounce);
	font-family: var(--font-text); background: var(--surface-sunk); color: var(--fbbf-navy); border: 3px solid transparent;
}
.donate-tile--selected { background: var(--fbbf-orange); border-color: var(--fbbf-navy); box-shadow: var(--shadow-pop); }
.donate-tile__label { font-family: var(--font-display); font-size: 1.6rem; }
.donate-tile__impact { font-size: 11.5px; font-weight: 600; line-height: 1.3; margin-top: 6px; display: block; }
.donate-custom-input { width: 100%; margin-top: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-subtle); font-family: var(--font-text); font-size: 15px; color: var(--fbbf-navy); }
.donate-summary { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.donate-summary__label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.donate-summary__value { font-family: var(--font-display); font-size: 2.6rem; color: var(--fbbf-orange-deep); line-height: 1; }
.donate-secure-note { color: var(--text-muted); font-size: 12.5px; margin: 16px 0 0; text-align: center; }
.donate-side { display: flex; flex-direction: column; gap: 18px; }
.donate-uses-card { background: var(--grad-night); border-radius: 20px; padding: 26px; color: #fff; box-shadow: var(--shadow-md); }
.donate-use { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.donate-use__emoji { font-size: 22px; line-height: 1; }
.donate-use__title { font-weight: 700; font-size: 15px; }
.donate-use__body { color: rgba(255,255,255,0.72); font-size: 13px; line-height: 1.4; }
.donate-other-ways { background: var(--fbbf-sand); border-radius: 20px; padding: 24px; text-align: center; }
.donate-other-ways__title { font-size: 1.4rem; letter-spacing: 0.03em; margin: 0; }
.donate-other-ways p { color: var(--text-body); font-size: 14px; line-height: 1.5; margin: 10px 0 0; }

/* ---- Generic fallback pages ------------------------------------------------ */
.generic-page { padding: var(--section-y) 0; }
.generic-page__title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--fbbf-navy); }
.generic-page__content { font-size: 17px; line-height: 1.65; }

/* ---- Share toast ------------------------------------------------ */
.share-toast {
	position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100;
	background: var(--fbbf-navy); color: #fff; font-weight: 600; font-size: 14.5px;
	padding: 13px 24px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); white-space: nowrap;
	opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.share-toast--visible { opacity: 1; }

/* ---- Lightbox (click-to-enlarge photo grids) ------------------------------------------------ */
.lightbox {
	position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
	background: rgba(18,24,43,0.92); opacity: 0; pointer-events: none; transition: opacity .2s ease;
	padding: 24px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__frame { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__image {
	max-width: 100%; max-height: 78vh; width: auto; height: auto; display: block;
	border-radius: var(--radius-md); border: 3px solid var(--fbbf-navy); box-shadow: var(--shadow-pop);
	background: var(--fbbf-navy);
}
.lightbox__caption { color: #fff; font-weight: 600; font-size: 15px; margin-top: 16px; text-align: center; }
.lightbox__counter { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 4px; text-align: center; }
.lightbox__close, .lightbox__nav {
	position: absolute; background: rgba(255,255,255,0.12); border: none; color: #fff; cursor: pointer;
	border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center;
	transition: background .15s ease, transform .12s var(--ease-bounce);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--fbbf-orange); color: var(--fbbf-navy); }
.lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
@media (max-width: 640px) {
	.lightbox__nav { width: 40px; height: 40px; }
	.lightbox__close { width: 38px; height: 38px; top: 12px; right: 12px; }
	.lightbox__nav--prev { left: 8px; }
	.lightbox__nav--next { right: 8px; }
}

/* ---- Scrollbar ------------------------------------------------ */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: var(--fbbf-navy); border-radius: 999px; border: 3px solid var(--surface-page); }

/* ---- Responsive ------------------------------------------------ */
@media (max-width: 900px) {
	.site-header__nav {
		position: fixed; top: 77px; left: 0; right: 0; background: var(--fbbf-navy);
		flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 8px;
		display: none; border-bottom: 3px solid var(--fbbf-orange);
	}
	.site-header__nav.is-open { display: flex; }
	.site-header__menu-toggle { display: flex; }
	.site-header__instagram, .site-header__donate { margin-left: 0; }
	.about-story, .donate-grid { grid-template-columns: 1fr; }
	.trust-card { grid-template-columns: 1fr; text-align: center; }
	.trust-card__icon { margin: 0 auto; }
	.sponsor-wall { grid-template-columns: repeat(2, minmax(160px, 240px)); }
	.gallery-grid__item--big { grid-column: span 1; }
}
@media (max-width: 560px) {
	.sponsor-wall { grid-template-columns: 1fr; }
	.donate-tiles { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
	.site-footer__brandrow { justify-content: center; }
	.site-footer__brand p { margin-left: auto; margin-right: auto; }
	.site-footer__links, .site-footer__contact { align-items: center; }
	.site-footer__bottom { flex-direction: column; text-align: center; }
}
