/* ============================================================
   Stockbridge & Inverleith Pipe Band – Main Stylesheet
   Colour palette: Navy #1a2744 | Gold #c9a84c | White #fff
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1a2744;
  --navy-dark: #111b33;
  --navy-mid:  #243360;
  --gold:      #c9a84c;
  --gold-light:#e0c068;
  --white:     #ffffff;
  --off-white: #f5f3ee;
  --grey:      #6b7280;
  --light-grey:#e5e7eb;
  --text:      #1f2937;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --shadow:    0 4px 24px rgba(26,39,68,0.12);
  --shadow-lg: 0 8px 40px rgba(26,39,68,0.20);
  --radius:    4px;
  --transition:0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Utility ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-white  { color: var(--white); }
.bg-navy     { background: var(--navy); }
.bg-navy-dark{ background: var(--navy-dark); }
.bg-off-white{ background: var(--off-white); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }
.section-title + .section-sub { color: var(--grey); font-size: 1.05rem; max-width: 600px; }
.text-center .section-title + .section-sub { margin: 0 auto; }

/* Gold divider line */
.gold-line {
  width: 56px; height: 3px;
  background: var(--gold);
  margin: 20px 0 32px;
}
.text-center .gold-line { margin: 20px auto 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
}
.btn-gold {
  background: var(--gold); color: var(--navy-dark); border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-outline-gold {
  background: transparent; color: var(--gold); border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-dark); }

.btn-outline-white {
  background: transparent; color: var(--white); border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--navy-dark); }

.btn-navy {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}
.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.site-header.transparent { background: transparent; }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo .logo-emblem {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden;
  background: transparent;
}
.nav-logo .logo-emblem img {
  width: 48px; height: 48px; object-fit: contain;
}
.nav-logo .logo-text {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.1;
}
.nav-logo .logo-text .name { font-size: 1.05rem; font-weight: 700; }
.nav-logo .logo-text .sub  { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--white);
  font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-cta {
    display: none;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column; align-items: stretch;
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open, .nav-cta.open { display: flex; }
  .nav-cta.open { top: auto; position: static; padding: 8px 16px 16px; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/edinburgh-parade-1.jpg') center/cover no-repeat;
  opacity: 0.35;
}
/* Tartan-inspired decorative overlay */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(201,168,76,0.04) 28px,
      rgba(201,168,76,0.04) 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 28px,
      rgba(201,168,76,0.04) 28px,
      rgba(201,168,76,0.04) 30px
    );
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,27,51,0.85) 0%, rgba(26,39,68,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; text-align: center;
  color: rgba(255,255,255,0.5); font-size: 0.78rem; letter-spacing: 0.1em;
  cursor: pointer;
  animation: bounce 2s infinite;
}
.hero-scroll::before {
  content: '↓'; display: block; font-size: 1.2rem; color: var(--gold);
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Achievement Banner ---------- */
.achievement-banner {
  background: linear-gradient(90deg, var(--gold) 0%, #a87d2a 100%);
  color: var(--navy-dark);
  padding: 18px 0;
  text-align: center;
}
.achievement-banner p {
  font-weight: 700; font-size: 1rem; letter-spacing: 0.04em;
  margin: 0;
}
.achievement-banner span { font-size: 1.3rem; margin-right: 8px; }

/* ---------- Stats Row ---------- */
.stats-row {
  background: var(--navy);
  padding: 48px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px; text-align: center;
}
.stat-item .num {
  font-family: var(--font-head);
  font-size: 2.8rem; font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-item .label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-top: 6px;
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 2.5rem;
}
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 10px; color: var(--navy); }
.card-body p  { color: var(--grey); font-size: 0.95rem; }

/* ---------- Two-col layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse { direction: ltr; }
}

.img-frame {
  position: relative;
  border-radius: 6px; overflow: hidden;
}
.img-frame::before {
  content: '';
  position: absolute; top: -12px; left: -12px; right: 12px; bottom: 12px;
  border: 2px solid var(--gold); border-radius: 6px; z-index: -1;
}
.img-frame img { border-radius: 6px; width: 100%; object-fit: cover; min-height: 340px; }
.img-placeholder {
  min-height: 340px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem; letter-spacing: 0.08em;
}
.img-placeholder .icon { font-size: 3rem; color: var(--gold); opacity: 0.6; }

/* ---------- Event Cards ---------- */
.event-list { display: flex; flex-direction: column; gap: 16px; }
.event-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border-radius: 6px;
  padding: 20px 24px; box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition);
}
.event-item:hover { transform: translateX(4px); }
.event-date {
  min-width: 56px; text-align: center;
  background: var(--navy); border-radius: var(--radius);
  padding: 8px 6px; color: var(--white);
}
.event-date .day   { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.event-info h4  { color: var(--navy); margin-bottom: 4px; }
.event-info p   { color: var(--grey); font-size: 0.9rem; margin: 0; }
.event-tag {
  display: inline-block;
  background: rgba(201,168,76,0.15); color: var(--gold);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 10px; margin-top: 6px;
}

/* ---------- Band Cards ---------- */
.band-card {
  background: var(--white); border-radius: 8px;
  box-shadow: var(--shadow); overflow: hidden;
}
.band-card-header {
  background: var(--navy); padding: 28px 28px 20px;
  position: relative;
}
.band-card-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.band-card-header h3 { color: var(--white); }
.band-card-header .grade-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2); color: var(--gold);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 12px;
  margin-bottom: 10px;
}
.band-card-body { padding: 24px 28px; }
.band-card-body p { color: var(--grey); }
.feature-list { margin-top: 16px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text); font-size: 0.92rem;
  padding: 6px 0; border-bottom: 1px solid var(--light-grey);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check { color: var(--gold); flex-shrink: 0; font-size: 1rem; }

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: 6px;
  background: var(--navy-mid);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 16/9; }
@media (max-width: 640px) { .gallery-item:nth-child(3n+1) { grid-column: span 1; aspect-ratio: 4/3; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(17,27,51,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  color: var(--white); font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 0.78rem; letter-spacing: 0.08em; gap: 8px;
}
.gallery-placeholder .icon { font-size: 2rem; color: var(--gold); opacity: 0.4; }

/* ---------- Contact / Form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 28px;
}
.contact-info-item .icon-box {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(201,168,76,0.12); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gold);
}
.contact-info-item h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.contact-info-item p  { color: var(--grey); font-size: 0.9rem; margin: 0; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 600;
  margin-bottom: 6px; color: var(--navy);
}
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Tabs ---------- */
.tab-nav {
  display: flex; gap: 0; flex-wrap: wrap;
  border-bottom: 2px solid var(--light-grey);
  margin-bottom: 36px;
}
.tab-nav button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--grey);
  padding: 12px 24px;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: var(--transition);
}
.tab-nav button.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 700; }
.tab-nav button:hover { color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 40px,
      rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 36px; }

/* ---------- Social Feed Placeholder ---------- */
.social-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.social-post {
  background: var(--white); border-radius: 8px;
  box-shadow: var(--shadow); overflow: hidden;
}
.social-post-img {
  height: 160px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.8rem; opacity: 0.6;
}
.social-post-body { padding: 14px 16px; }
.social-post-body p { font-size: 0.85rem; color: var(--grey); margin: 0; }
.social-icon { color: #1877f2; }
.social-icon.ig { color: #e1306c; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      -45deg, transparent, transparent 50px,
      rgba(201,168,76,0.04) 50px, rgba(201,168,76,0.04) 51px
    );
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Trophy / Achievement Box ---------- */
.achievement-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 8px; padding: 32px 36px;
  border-left: 5px solid var(--gold);
  color: var(--white);
  display: flex; gap: 24px; align-items: center;
}
.achievement-box .trophy { font-size: 3rem; flex-shrink: 0; }
.achievement-box h3 { color: var(--gold); margin-bottom: 8px; }
.achievement-box p  { color: rgba(255,255,255,0.8); margin: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; background: var(--light-grey);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -41px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
}
.timeline-item h4 { color: var(--navy); margin-bottom: 4px; }
.timeline-item .year { color: var(--gold); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 6px; }
.timeline-item p { color: var(--grey); font-size: 0.92rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; padding-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: 0.9rem; margin-top: 16px; line-height: 1.7; }
.footer-brand .social-links { display: flex; gap: 12px; margin-top: 20px; }
.footer-brand .social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.95rem;
  transition: var(--transition);
}
.footer-brand .social-links a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h4 {
  color: var(--white); font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6); font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-bottom a { color: var(--gold); }

/* ---------- Scroll animations ---------- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: fadeInFallback 0.7s ease 0.2s forwards;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
  animation: none;
}
@keyframes fadeInFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { min-height: 92vh; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .achievement-box { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .event-item { flex-direction: column; gap: 12px; }
}
