/* ═══════════════════════════════════════════════
   DBH3 — Daytona Beach Hash House Harriers
   Site Stylesheet · 2026 Rebuild
   ═══════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --trail-dark:    #112a1c;
  --trail:         #1a3a2a;
  --trail-mid:     #2d5e3f;
  --trail-light:   #4a8c5e;
  --trail-pale:    #c8e6d0;
  --trail-ghost:   #e8f5ec;
  --chalk:         #33ff33;
  --chalk-dim:     rgba(51,255,51,0.5);
  --flour:         #faf7f0;
  --flour-warm:    #f5f0e6;
  --gold:          #d4a853;
  --gold-light:    #f0d78c;
  --red-dress:     #cc2233;
  --red-dress-dim: rgba(204,34,51,0.12);
  --ink:           #1a1a1a;
  --ink-soft:      #555;
  --ink-faint:     #999;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Sans 3', 'Segoe UI', sans-serif;
  --font-hash:     'Permanent Marker', cursive;
  --radius:        10px;
  --radius-sm:     6px;
  --shadow-card:   0 2px 20px rgba(0,0,0,0.04);
  --shadow-lift:   0 6px 28px rgba(0,0,0,0.08);
  --max-w:         1200px;
  --gap:           2rem;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--flour);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Utility ── */
.pad      { max-width: var(--max-w); margin: 0 auto; padding: 5rem var(--gap); }
.pad--sm  { padding-top: 3rem; padding-bottom: 3rem; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.label    { font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; font-weight: 700; }
.label--green { color: var(--trail-light); }
.label--chalk { color: var(--chalk); }
.label--gold  { color: var(--gold); }

/* ── Diagonal hash-mark texture overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 40px,
    rgba(42,90,60,0.012) 40px, rgba(42,90,60,0.012) 41px);
  pointer-events: none; z-index: 0;
}

/* ══════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,42,28,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gap);
  height: 56px;
}
.topbar__logo {
  font-family: var(--font-hash);
  font-size: 1.3rem;
  color: var(--chalk);
  letter-spacing: 2px;
}
.topbar__nav { display: flex; gap: 1.6rem; }
.topbar__nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.25s;
}
.topbar__nav a:hover, .topbar__nav a.active { color: var(--chalk); }
.topbar__hotline {
  font-size: 0.75rem; color: var(--gold);
  font-weight: 600; letter-spacing: 1px;
}
.topbar__burger {
  display: none; background: none; border: none;
  color: white; font-size: 1.4rem; cursor: pointer; padding: 0.3rem;
}

/* Mobile nav */
@media (max-width: 860px) {
  .topbar__nav { display: none; }
  .topbar__nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--trail-dark);
    padding: 1rem var(--gap); gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .topbar__nav.open a { padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .topbar__burger { display: block; }
  .topbar__hotline { display: none; }
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(170deg, var(--trail) 0%, var(--trail-dark) 60%);
  color: white; overflow: hidden;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 6rem var(--gap) 4rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5; pointer-events: none;
}
.hero__badge {
  display: inline-block; padding: 0.4rem 1.5rem;
  border: 1px solid var(--gold); border-radius: 40px;
  color: var(--gold); font-size: 0.72rem;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 2rem; font-weight: 600;
}
.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 1.02;
  background: linear-gradient(180deg, #fff 30%, var(--trail-pale) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.4em;
}
.hero__cry {
  font-family: var(--font-hash);
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--chalk); letter-spacing: 2px; margin-bottom: 0.6rem;
}
.hero__loc {
  font-size: 0.95rem; color: rgba(255,255,255,0.4);
  font-weight: 300; margin-bottom: 2.5rem; letter-spacing: 1px;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 2.2rem;
  background: var(--chalk); color: var(--trail);
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 4px; transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(51,255,51,0.22);
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(51,255,51,0.32); }
.hero__founders {
  margin-top: 2rem; font-size: 0.82rem;
  color: rgba(255,255,255,0.28); line-height: 1.7;
}

/* Scrolling hare strip */
.hare-strip {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 0.8rem 0; overflow: hidden; white-space: nowrap;
}
.hare-strip__track {
  display: inline-block; animation: marquee 35s linear infinite;
  font-family: var(--font-hash); font-size: 0.78rem;
  color: rgba(255,255,255,0.12); letter-spacing: 4px; text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════
   SECTION HEADINGS
   ══════════════════════════════════════════════ */
.section-head { margin-bottom: 2rem; }
.section-head__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--trail); line-height: 1.15;
}
.section-head__title--light { color: white; }
.section-head__desc {
  max-width: 600px; margin-top: 0.8rem;
  color: var(--ink-soft); line-height: 1.8; font-size: 1rem; font-weight: 300;
}
.section-head__desc--light { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════ */
.about { background: var(--flour); border-bottom: 1px solid rgba(0,0,0,0.04); position: relative; z-index: 1; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

.card {
  background: white; border-radius: var(--radius); padding: 2.2rem;
  box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.04);
}
.card__title {
  font-family: var(--font-display); font-size: 1.25rem;
  margin-bottom: 0.7rem; color: var(--trail);
}
.card p { color: #666; line-height: 1.8; font-size: 0.92rem; }

/* Shiggy meter */
.shiggy { margin-top: 1.5rem; }
.shiggy__row {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.65rem 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.shiggy__row:last-child { border: none; }
.shiggy__pip {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; color: white;
}
.shiggy__pip--1 { background: var(--trail-light); }
.shiggy__pip--2 { background: #5a9e4e; }
.shiggy__pip--3 { background: var(--gold); color: var(--ink); }
.shiggy__pip--4 { background: #d47333; }
.shiggy__pip--5 { background: var(--red-dress); }
.shiggy__text { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }
.shiggy__text strong { color: var(--ink); }

/* ══════════════════════════════════════════════
   QUICK LINKS
   ══════════════════════════════════════════════ */
.links { background: var(--trail); color: white; position: relative; z-index: 1; }
.links__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; margin-top: 2.5rem;
  background: rgba(255,255,255,0.05); border-radius: var(--radius); overflow: hidden;
}
.link-card {
  background: rgba(255,255,255,0.02); padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: background 0.25s;
}
.link-card:hover { background: rgba(51,255,51,0.06); }
.link-card__icon { font-size: 1.35rem; margin-bottom: 0.2rem; }
.link-card__name { font-weight: 700; font-size: 0.9rem; }
.link-card__desc { font-size: 0.72rem; color: rgba(255,255,255,0.35); line-height: 1.5; }

/* ══════════════════════════════════════════════
   EVENTS — TABBED PANES
   ══════════════════════════════════════════════ */
.events { background: var(--flour-warm); position: relative; z-index: 1; }

/* Tab bar */
.ev-tabs {
  display: flex; gap: 0;
  margin-top: 2rem;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}
.ev-tabs__tab {
  padding: 0.7rem 1.6rem;
  background: none; border: none;
  font-family: var(--font-body); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 1px;
  color: var(--ink-faint);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  text-transform: uppercase;
}
.ev-tabs__tab:hover { color: var(--ink-soft); }
.ev-tabs__tab--active {
  color: var(--trail);
}
.ev-tabs__tab--active::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--trail-light);
  border-radius: 1px;
}

/* Panes */
.ev-panes { margin-top: 1.5rem; }
.ev-pane { display: none; }
.ev-pane--active { display: block; }

/* Empty state */
.ev-empty {
  text-align: center; padding: 3rem 2rem;
  color: var(--ink-faint);
  background: white; border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.04);
}
.ev-empty__icon {
  font-size: 2.2rem; display: block; margin-bottom: 0.7rem; opacity: 0.35;
}
.ev-empty p { font-size: 0.9rem; line-height: 1.6; }

/* HashRego pane header */
.ev-hr-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1rem;
}
.ev-hr-header__badge {
  font-size: 0.72rem; font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  background: var(--trail-ghost); color: var(--trail-mid);
  letter-spacing: 0.5px;
}
.ev-hr-header__src {
  font-size: 0.72rem; color: var(--ink-faint);
}
.ev-hr-header__src a {
  color: var(--trail-light); text-decoration: underline;
}
.ev-hr-header__src a:hover { color: var(--trail-mid); }

/* HashRego event cards */
.ev-hr-list {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.ev-hr-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: white; border-radius: var(--radius); padding: 1rem 1.2rem;
  box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ev-hr-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.ev-hr-card__date {
  flex-shrink: 0; width: 50px; text-align: center;
  padding-top: 0.15rem;
}
.ev-hr-card__month {
  display: block; font-size: 0.6rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red-dress); font-weight: 700;
}
.ev-hr-card__day {
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 900; color: var(--trail); line-height: 1.1;
}
.ev-hr-card__body { flex: 1; min-width: 0; }
.ev-hr-card__name {
  font-size: 0.92rem; font-weight: 700; margin-bottom: 0.2rem;
  line-height: 1.3;
}
.ev-hr-card__name a {
  color: var(--ink); text-decoration: none;
}
.ev-hr-card__name a:hover { color: var(--trail-light); }
.ev-hr-card__meta {
  font-size: 0.75rem; color: var(--ink-faint);
  line-height: 1.5;
}

@media (max-width: 500px) {
  .ev-tabs__tab { padding: 0.6rem 1rem; font-size: 0.75rem; }
  .ev-hr-card { padding: 0.8rem 1rem; }
  .ev-hr-card__date { width: 42px; }
  .ev-hr-card__day { font-size: 1.3rem; }
  .ev-hr-card__name { font-size: 0.85rem; }
}

/* ══════════════════════════════════════════════
   FLORIDA MAP
   ══════════════════════════════════════════════ */
.florida { background: white; text-align: center; position: relative; z-index: 1; }
.florida__wrap {
  margin-top: 2.5rem; display: inline-flex; gap: 2.5rem;
  align-items: center; flex-wrap: wrap; justify-content: center;
}
.florida__map {
  width: 280px; height: 340px;
  background: linear-gradient(135deg, var(--trail-ghost), var(--trail-pale));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.florida__map svg { width: 170px; opacity: 0.45; }
.florida__regions { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.fl-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.2rem; background: var(--trail-ghost);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem;
  transition: all 0.2s; border: 1px solid transparent; color: var(--trail);
}
.fl-link:hover { background: var(--trail-pale); border-color: var(--trail-light); transform: translateX(4px); }
.fl-link__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--trail-light); flex-shrink: 0;
}
.fl-link__dot--home { background: var(--red-dress); }

/* ══════════════════════════════════════════════
   WISDOM / SCIENCE
   ══════════════════════════════════════════════ */
.wisdom { background: var(--flour); border-top: 1px solid rgba(0,0,0,0.04); position: relative; z-index: 1; }
.wisdom__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem; margin-top: 2.5rem;
}
.wis {
  background: white; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.04);
  position: relative; overflow: hidden;
}
.wis::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--trail-light);
}
.wis--science::before { background: var(--gold); }
.wis__label { margin-bottom: 0.5rem; }
.wis__label--science { color: var(--gold); }
.wis blockquote {
  font-family: var(--font-display); font-size: 1.05rem;
  line-height: 1.55; font-style: italic; color: var(--ink);
}
.wis cite {
  display: block; margin-top: 0.6rem;
  font-size: 0.78rem; color: var(--ink-faint);
  font-style: normal; font-family: var(--font-body);
}

/* ══════════════════════════════════════════════
   GALLERY (photos loaded from /photos/ sideload)
   ══════════════════════════════════════════════ */
.gallery { background: var(--flour-warm); position: relative; z-index: 1; }

/* Album filter tabs */
.gallery__filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.5rem; margin-bottom: 2rem;
}
.gallery__filter {
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(0,0,0,0.1); border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.2s;
  background: white; color: var(--ink-soft);
}
.gallery__filter:hover { border-color: var(--trail-light); color: var(--trail); }
.gallery__filter.active {
  background: var(--trail); color: white; border-color: var(--trail);
}

/* Photo grid — masonry-ish with CSS columns */
.gallery__grid {
  column-count: 4; column-gap: 0.8rem;
}
.gallery__item {
  break-inside: avoid; margin-bottom: 0.8rem;
  border-radius: var(--radius-sm); overflow: hidden;
  position: relative; cursor: pointer;
  background: #ddd;
}
.gallery__item img {
  width: 100%; display: block;
  transition: transform 0.3s;
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 0.8rem 0.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white; font-size: 0.75rem; font-weight: 600;
  opacity: 0; transition: opacity 0.25s;
}
.gallery__item:hover .gallery__item__caption { opacity: 1; }

/* Empty state when photos not loaded yet */
.gallery__empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--ink-faint);
}
.gallery__empty__icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.gallery__empty p { max-width: 400px; margin: 0 auto; line-height: 1.7; font-size: 0.92rem; }

@media (max-width: 900px)  { .gallery__grid { column-count: 3; } }
@media (max-width: 600px)  { .gallery__grid { column-count: 2; } }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  justify-content: center; align-items: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox__caption {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: white; font-size: 0.9rem; font-weight: 600;
  text-align: center; max-width: 600px;
}
.lightbox__close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: white;
  font-size: 2rem; cursor: pointer; opacity: 0.6;
  transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev,
.lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none;
  color: white; font-size: 1.5rem; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.2); }
.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }

/* ══════════════════════════════════════════════
   WHO'S WHO (member profiles grid)
   ══════════════════════════════════════════════ */
.members { background: white; position: relative; z-index: 1; }
.members__alpha {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-bottom: 2rem;
}
.members__alpha a {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
  background: var(--trail-ghost); color: var(--trail);
  transition: all 0.2s;
}
.members__alpha a:hover,
.members__alpha a.active {
  background: var(--trail); color: white;
}
.members__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.member {
  text-align: center; padding: 1rem 0.5rem;
  border-radius: var(--radius); transition: background 0.2s;
}
.member:hover { background: var(--trail-ghost); }
.member__photo {
  width: 100px; height: 100px; margin: 0 auto 0.6rem;
  border-radius: 50%; overflow: hidden;
  background: #e0e0e0;
  border: 3px solid var(--trail-pale);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--trail-light); opacity: 0.4;
}
.member__name { font-weight: 700; font-size: 0.85rem; color: var(--trail); }
.member__year { font-size: 0.72rem; color: var(--ink-faint); }

/* ══════════════════════════════════════════════
   HASH TRASH (writeups)
   ══════════════════════════════════════════════ */
.trash { background: var(--flour); position: relative; z-index: 1; }
.trash__list { margin-top: 2rem; }
.trash__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.trash__item:last-child { border: none; }
.trash__item h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--trail); margin-bottom: 0.3rem;
}
.trash__item time {
  font-size: 0.75rem; color: var(--ink-faint);
  letter-spacing: 1px; text-transform: uppercase;
}
.trash__item p {
  margin-top: 0.5rem; color: var(--ink-soft);
  font-size: 0.92rem; line-height: 1.8;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
  background: var(--trail); color: white;
  position: relative; z-index: 1; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.footer__inner { position: relative; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer__brand-name {
  font-family: var(--font-hash); font-size: 1.5rem;
  color: var(--chalk); margin-bottom: 0.8rem;
}
.footer__brand p { color: rgba(255,255,255,0.35); font-size: 0.85rem; line-height: 1.8; }
.footer h4 {
  font-size: 0.65rem; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  margin-bottom: 1rem; font-weight: 700;
}
.footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer ul a {
  color: rgba(255,255,255,0.55); font-size: 0.85rem;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--chalk); }

.footer__stamp {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1rem; background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm); margin-bottom: 0.6rem;
  transition: background 0.2s;
}
.footer__stamp:hover { background: rgba(255,255,255,0.08); }
.footer__stamp-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--trail-mid); display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem; flex-shrink: 0;
}
.footer__stamp-info { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.3; }
.footer__stamp-info strong { display: block; color: rgba(255,255,255,0.8); font-weight: 600; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer__bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.18); }
.footer__retro { display: flex; gap: 0.6rem; }
.footer__retro span {
  font-size: 0.55rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.12); padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 3px; font-weight: 600;
}

@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════
   PAGE HEADER (for sub-pages)
   ══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(170deg, var(--trail) 0%, var(--trail-dark) 100%);
  color: white; padding: 7rem var(--gap) 3rem; text-align: center;
}
.page-hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, #fff 30%, var(--trail-pale) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero__sub {
  margin-top: 0.6rem; color: rgba(255,255,255,0.4);
  font-size: 1rem; font-weight: 300;
}

/* ══════════════════════════════════════════════
   ASK G AI — FLOATING CHAT WIDGET
   ══════════════════════════════════════════════ */

.gai-fab {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--trail);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(26,58,42,0.35), 0 0 0 0 rgba(51,255,51,0.4);
  transition: all 0.3s ease;
  animation: gaiPulse 2.5s ease-in-out infinite;
}
.gai-fab:hover {
  background: var(--trail-mid);
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(26,58,42,0.5);
}
.gai-fab--hidden {
  opacity: 0; transform: scale(0.5); pointer-events: none;
}
.gai-fab__icon {
  color: var(--chalk);
  display: flex; align-items: center; justify-content: center;
}
.gai-fab__pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(51,255,51,0.25);
  animation: gaiRing 2s ease-out infinite;
}
@keyframes gaiPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(26,58,42,0.35), 0 0 0 0 rgba(51,255,51,0.4); }
  50% { box-shadow: 0 4px 24px rgba(26,58,42,0.35), 0 0 0 12px rgba(51,255,51,0); }
}
@keyframes gaiRing {
  to { inset: -16px; border-color: transparent; }
}

/* Panel wrap — slides up from bottom-right */
.gai-wrap {
  position: fixed; bottom: calc(1.6rem + 64px); right: 1.6rem; z-index: 99;
  width: 380px; max-width: calc(100vw - 2rem);
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.gai-wrap--open {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gai-panel {
  background: white;
  border-radius: 16px;
  display: flex; flex-direction: column;
  overflow: hidden;
  max-height: 520px;
  height: 520px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Header */
.gai-header {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, var(--trail-dark), var(--trail));
  color: white; flex-shrink: 0;
}
.gai-header__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--chalk); color: var(--trail-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.1rem; flex-shrink: 0;
}
.gai-header__text { flex: 1; }
.gai-header__title {
  display: block; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.3px; line-height: 1.2;
}
.gai-header__sub {
  display: block; font-size: 0.62rem;
  color: rgba(255,255,255,0.45); letter-spacing: 1.5px;
  text-transform: uppercase; margin-top: 1px;
}
.gai-header__close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; padding: 0.25rem; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.gai-header__close:hover { color: white; background: rgba(255,255,255,0.1); }

/* Body */
.gai-body {
  flex: 1; overflow-y: auto; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--flour-warm);
  scroll-behavior: smooth;
}
.gai-msg { display: flex; }
.gai-msg--user { justify-content: flex-end; }
.gai-msg--bot  { justify-content: flex-start; }

.gai-msg__bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  font-size: 0.85rem; line-height: 1.55;
  word-break: break-word;
}
.gai-msg--user .gai-msg__bubble {
  background: var(--trail);
  color: white;
  border-bottom-right-radius: 5px;
}
.gai-msg--bot .gai-msg__bubble {
  background: white;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.05);
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.gai-msg__bubble strong { color: var(--trail-mid); }
.gai-msg__bubble em { color: var(--ink-soft); }

/* Thinking */
.gai-msg--thinking .gai-msg__bubble {
  display: flex; align-items: center; gap: 5px; padding: 0.7rem 1rem;
}
.gai-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-faint);
  animation: gaiBounce 1.3s infinite;
}
.gai-dot:nth-child(2) { animation-delay: 0.15s; }
.gai-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes gaiBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.25; }
  30% { transform: translateY(-7px); opacity: 1; }
}

/* Input */
.gai-input-box {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: white; flex-shrink: 0;
}
.gai-input {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  background: var(--flour-warm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gai-input:focus {
  border-color: var(--trail-light);
  box-shadow: 0 0 0 3px rgba(74,140,94,0.1);
}
.gai-input::placeholder { color: var(--ink-faint); }
.gai-send-btn {
  flex-shrink: 0; width: 34px; height: 34px;
  border-radius: 50%; border: none;
  background: var(--trail);
  color: var(--chalk);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.gai-send-btn:hover { background: var(--trail-mid); }
.gai-send-btn:active { transform: scale(0.92); }
.gai-send-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* Responsive */
@media (max-width: 440px) {
  .gai-wrap { right: 0.5rem; bottom: calc(1.2rem + 64px); width: calc(100vw - 1rem); }
  .gai-panel { height: 480px; max-height: calc(100vh - 140px); border-radius: 14px; }
  .gai-fab { right: 0.8rem; bottom: 1rem; width: 48px; height: 48px; }
  .gai-fab__icon svg { width: 20px; height: 20px; }
}