/* ==================================================
   UBC MYANMAR CLUB — "Lacquer & Gold Leaf" edition
   Warm paper, deep lacquer, gold accents, editorial type
   ================================================== */

:root {
  /* Palette — Burmese lacquerware */
  --paper:        #f7f1e5;
  --paper-deep:   #efe6d3;
  --lacquer:      #1c100b;
  --lacquer-2:    #2a1710;
  --ink:          #241410;
  --ink-soft:     #6d5c50;
  --gold:         #c1872b;
  --gold-bright:  #e6b04e;
  --vermillion:   #a93b26;
  --jade:         #2e6e58;
  --line:         rgba(36, 20, 16, 0.14);
  --line-light:   rgba(247, 241, 229, 0.16);

  /* Palette — hero & join redesign */
  --night:           #12100D;
  --cream:           #F4EEE3;
  --gold-soft:       #C69B5B;
  --gold-soft-hover: #D9B278;

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-my:      'Padauk', sans-serif;
  --font-serif:   'Instrument Serif', 'Georgia', serif;
  --font-sans:    'Instrument Sans', system-ui, sans-serif;

  /* Rhythm */
  --section-pad:  clamp(88px, 11vw, 152px);
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --radius:       6px;
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

section[id], header[id] { scroll-margin-top: 76px; }

h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--gold); color: var(--lacquer); }

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 2000;
  background: var(--lacquer);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Type system ---------- */

h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 420;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h2 em, h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--vermillion);
}

.section-head { margin-bottom: clamp(44px, 6vw, 72px); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-eyebrow::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-head-light h2 { color: var(--paper); }
.section-head-light h2 em { color: var(--gold-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.btn-gold {
  background: var(--gold-soft);
  color: var(--night);
}
.btn-gold:hover {
  background: var(--gold-soft-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(198, 155, 91, 0.25);
}

.btn-outline {
  border-color: rgba(244, 238, 227, 0.4);
  color: var(--cream);
  background: transparent;
}
.btn-outline:hover {
  border-color: rgba(244, 238, 227, 0.85);
  background: rgba(244, 238, 227, 0.06);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 10px 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-color: var(--gold-soft);
  color: var(--gold-soft);
  background: transparent;
}
.btn-nav:hover {
  background: var(--gold-soft);
  color: var(--night);
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1100; /* above .mobile-menu so brand + close button stay reachable */
  padding: 20px 0;
  border-bottom: 1px solid rgba(244, 238, 227, 0.18);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

/* While the mobile menu is open, the navbar floats over the lacquer overlay */
body.menu-open .navbar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}
body.menu-open .navbar .nav-toggle span { background: var(--paper); }

.navbar.scrolled {
  background: rgba(18, 16, 13, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 13px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-container .brand { margin-right: auto; }

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  transition: color 0.4s var(--ease);
}

.brand-burmese {
  font-family: var(--font-my);
  font-size: 0.78rem;
  color: var(--gold-bright);
  transition: color 0.4s var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 238, 227, 0.7);
  transition: color 0.3s var(--ease);
  padding-block: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--gold-soft-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.nav-toggle.active span { background: var(--paper); }
.nav-toggle.active span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--lacquer);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(28px, 8vw, 64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu nav { display: flex; flex-direction: column; }

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 420;
  color: var(--paper);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
              color 0.3s var(--ease);
}

.mobile-menu.open nav a { opacity: 1; transform: translateY(0); }
.mobile-menu.open nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: 0.32s; }

.mobile-menu nav a:hover { color: var(--gold-bright); }

.menu-index {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.menu-greeting {
  font-family: var(--font-my);
  font-size: clamp(2.4rem, 10vw, 4rem);
  color: rgba(230, 176, 78, 0.16);
  margin-top: 40px;
  user-select: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: var(--night);
}

.hero-bg { position: absolute; inset: 0; }

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: heroImage 1.6s ease both;
}

@keyframes heroImage {
  from { opacity: 0; }
  to   { opacity: 0.55; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(18, 16, 13, 0.55) 0%,
    rgba(18, 16, 13, 0.15) 50%,
    rgba(18, 16, 13, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 140px;
  padding-bottom: clamp(72px, 10vh, 116px);
}

.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.9rem, 7.5vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 13ch;
  margin-bottom: clamp(30px, 4vw, 48px);
  animation: riseIn 0.9s var(--ease) 0.2s both;
}

.hero h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--gold-bright);
}

.hero-at {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.88em;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 48px;
  flex-wrap: wrap;
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: rgba(244, 238, 227, 0.85);
  max-width: 46ch;
  animation: riseIn 0.9s var(--ease) 0.35s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: riseIn 0.9s var(--ease) 0.5s both;
}

.hero-foot {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  z-index: 2;
  animation: heroFade 1.2s ease 0.65s both;
}

@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-caption {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 238, 227, 0.5);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- About ---------- */

.about { padding: var(--section-pad) 0; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-figure {
  position: relative;
  margin-top: 8px;
}

.about-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.about-figure figcaption {
  margin-top: 26px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about-lede {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 420;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.about-copy > p:not(.about-lede) {
  color: var(--ink-soft);
  max-width: 56ch;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.about-stats li { display: flex; flex-direction: column; gap: 6px; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 380;
  line-height: 1;
  color: var(--vermillion);
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Quote ---------- */

.quote {
  position: relative;
  background: var(--lacquer);
  color: var(--paper);
  padding: clamp(96px, 12vw, 160px) 0;
  overflow: hidden;
  text-align: center;
}

.quote-bg {
  position: absolute;
  inset: 0;
  background: url('assets/pagodas.jpg') center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

.quote blockquote { position: relative; max-width: 760px; margin-inline: auto; }

.quote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.4;
  margin-bottom: 28px;
}

.quote cite {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ---------- Events ---------- */

.events { padding: var(--section-pad) 0; background: var(--paper-deep); }

.events-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.events-photo-card {
  background: #fff;
  padding: 12px 12px 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(36, 20, 16, 0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.events-photo-card:hover {
  transform: rotate(0deg) scale(1.03) !important;
  box-shadow: 0 14px 40px rgba(36, 20, 16, 0.2);
  z-index: 2;
  position: relative;
}

.events-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}

.events-photo-card figcaption {
  padding-top: 14px;
}

.events-photo-card figcaption h3 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--ink);
}

.events-photo-card figcaption p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.event-row:hover .event-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Team ---------- */

.team {
  background: var(--lacquer);
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(169, 59, 38, 0.25), transparent 60%);
  padding: var(--section-pad) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  position: relative;
  background: var(--lacquer-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 44px 32px 36px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--vermillion));
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 176, 78, 0.4);
}

.team-photo {
  width: clamp(72px, 20%, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 65%;
  transform: scale(1.7);
  display: block;
  margin: 12px auto 36px;
  border: 2px solid rgba(230, 176, 78, 0.35);
}

.team-card:has(.team-photo) {
  text-align: center;
}

.team-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: 14px;
  line-height: 1.25;
}

.team-nick { font-style: italic; font-weight: 380; color: rgba(247, 241, 229, 0.6); }

.team-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(247, 241, 229, 0.55);
  transition: color 0.3s var(--ease);
}

.team-email:hover { color: var(--gold-bright); }

/* ---------- Gallery ---------- */

.gallery { padding: var(--section-pad) 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.gallery-card {
  background: #fff;
  padding: 14px 14px 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 26px rgba(36, 20, 16, 0.12);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.gallery-card:nth-child(1) { transform: rotate(-1.6deg); }
.gallery-card:nth-child(2) { transform: rotate(1.1deg) translateY(22px); }
.gallery-card:nth-child(3) { transform: rotate(-0.8deg); }

.gallery-card:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  box-shadow: 0 18px 48px rgba(36, 20, 16, 0.2);
  z-index: 2;
  position: relative;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}
.gallery-card:nth-child(1) img { object-position: center 40%; }
.gallery-card:nth-child(4) img { object-position: center 30%; }
.gallery-card:nth-child(5) img { object-position: center 60%; }

.gallery-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}

.gallery-no {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermillion);
}

/* ---------- Join ---------- */

.join {
  position: relative;
  background: var(--night);
  color: var(--cream);
  padding: clamp(88px, 12vw, 160px) 0;
  text-align: center;
}

.join-panel {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}

.join .section-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  margin-bottom: 24px;
}

.join .section-eyebrow::after { display: none; }

.join-panel h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 26px;
}

.join-panel h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}

.join-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(244, 238, 227, 0.8);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 42px;
}

.join-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.join-perks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.join-perks li {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 227, 0.55);
}

.join-perks li + li::before {
  content: '·';
  margin-right: 14px;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--lacquer);
  color: var(--gold-bright);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(28, 16, 11, 0.35);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              background 0.3s var(--ease);
}

.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--vermillion); }

/* ---------- Footer ---------- */

.footer {
  background: var(--lacquer);
  color: var(--paper);
  padding: clamp(56px, 8vw, 88px) 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-light);
}

.footer .brand-name { color: var(--paper); }
.footer .brand-burmese { color: var(--gold-bright); }

.footer-tagline {
  margin-top: 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(247, 241, 229, 0.5);
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-nav, .footer-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a, .footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: rgba(247, 241, 229, 0.6);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  width: fit-content;
}

.footer-nav a:hover, .footer-socials a:hover {
  color: var(--gold-bright);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  font-size: 0.74rem;
  color: rgba(247, 241, 229, 0.35);
}

/* ---------- Scroll reveal (only when JS is available) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* Preserve gallery card rotation when revealed */
.js .gallery-card.reveal { transform: translateY(26px); }
.js .gallery-card.reveal.visible:nth-child(1) { transform: rotate(-1.6deg); }
.js .gallery-card.reveal.visible:nth-child(2) { transform: rotate(1.1deg) translateY(22px); }
.js .gallery-card.reveal.visible:nth-child(3) { transform: rotate(-0.8deg); }
.js .gallery-card.reveal.visible:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
}

/* Stagger siblings */
.events-list .reveal:nth-child(2) { transition-delay: 0.06s; }
.events-list .reveal:nth-child(3) { transition-delay: 0.12s; }
.events-list .reveal:nth-child(4) { transition-delay: 0.18s; }
.events-list .reveal:nth-child(5) { transition-delay: 0.24s; }
.events-list .reveal:nth-child(6) { transition-delay: 0.30s; }
.team-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.team-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Focus & a11y ---------- */

a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 480px; }
  .events-cards { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid .team-card:last-child { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-foot { display: none; }
  .hero-content { padding-bottom: 64px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; min-width: max-content; }

  .events-cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .events-photo-card { transform: none !important; }

  .team-grid { grid-template-columns: 1fr; }
  .team-grid .team-card:last-child { grid-column: span 1; }
  .team-card { padding: 36px 26px 30px; }

  .gallery-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .gallery-card:nth-child(2) { transform: rotate(1.1deg); }
  .js .gallery-card.reveal.visible:nth-child(2) { transform: rotate(1.1deg); }

  .about-stats { gap: 16px; }
  .join-actions .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; }

  .back-to-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg img { animation: none; }
}
