/* ============================================================
   WV Immigrant Voices Project — shared stylesheet
   Adapted from nannina.de visual system
   ============================================================ */

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

:root {
  /* Core palette — adapted from nannina.de */
  --black-2:        #1e1e21;
  --graphite:       #2b2b2e;
  --dark-slate:     #3e3d41;
  --grey:           #6b6a70;
  --silver:         #a8a7ad;
  --silver-beig:    #d4d3d8;
  --white-smoke:    #f0ede8;
  --sepia:          #e8e0d0;

  /* Accent colors — used sparingly */
  --accent-red:     #8b2a2a;
  --accent-red-lt:  #a63535;
  --accent-gold:    #d4aa18;
  --accent-gold-lt: #e0be40;

  /* Functional */
  --rule:           rgba(168,167,173,0.15);
  --overlay:        rgba(30,30,33,0.80);

  /* Layout */
  --nav-w:          306px;
  --nav-w-md:       250px;
  --pad-x:          clamp(1.5rem, 4vw, 4rem);
  --pad-y:          clamp(4rem, 8vw, 7rem);
  --max-w:          1320px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--black-2);
  background-color: var(--white-smoke);
}

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

p, .body-text {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7em;
  letter-spacing: 0;
  color: var(--black-2);
  margin-bottom: 1em;
}

h1, .heading-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1em;
  margin: 0;
}

.nav-label, .section-label, .caption, .stat-label, .subhead {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2em;
}

/* ============================================================
   1F. VERTICAL GRID LINES (background)
   ============================================================ */

.wrapper-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  justify-content: space-around;
  background-color: var(--white-smoke);
  pointer-events: none;
}
.lines-vertical {
  width: 1px;
  height: 100%;
  background-color: #888;
  opacity: 0.05;
  display: block;
}

/* ============================================================
   1C. LEFT SIDEBAR NAV
   ============================================================ */

.wrapper-side-nav {
  position: fixed;
  top: 0; left: 0;
  z-index: 9;
  width: var(--nav-w);
  max-width: var(--nav-w);
  min-width: var(--nav-w-md);
  height: 100vh;
  display: block;
  overflow: hidden;
}

/* Background photo */
.nav-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.05);
  width: 100%;
  height: 100%;
}

/* Dark overlay over photo */
.overlay-dark-navbar {
  position: absolute;
  inset: 0;
  background-color: var(--black-2);
  opacity: 0.90;
  z-index: 1;
}

/* Logo block at top — SVG seal */
.logo-nannina {
  position: absolute;
  top: 5%;
  left: 0; right: 0;
  z-index: 20;
  width: 88%;
  max-width: 230px;
  margin: 0 auto;
  display: block;
  text-align: center;
  transition: opacity 0.3s ease-out;
}
.logo-nannina:hover { opacity: 0.85; }
.logo-nannina img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Vertical navigation menu — bottom-aligned */
.nav-menu-desktop {
  position: absolute;
  z-index: 9;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 192px;
  padding-left: 24px;
  padding-right: 24px;
  align-items: center;
}

.nav-link-desktop {
  display: block;
  color: rgba(240, 237, 232, 0.62);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  text-decoration: none;
  margin: 0;
  padding: 14px 0;
  position: relative;
  text-align: center;
  transition: color 0.3s ease-out, padding 0.25s ease-out;
  border-left: 2px solid transparent;
}
.nav-link-desktop:hover { color: var(--white-smoke); }
.nav-link-desktop.active {
  color: var(--accent-red-lt);
  border-left: 2px solid var(--accent-gold);
  padding-left: 12px;
  padding-right: 0;
}

/* Bottom address/contact box */
.adress-box-navbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  height: 168px;
  background-color: var(--graphite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px 16px 16px;
}
.wrap-social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
}
.social-media-link-nav {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  opacity: 0.7;
  transition: opacity 0.3s ease-out, transform 0.2s, color 0.3s;
}
.social-media-link-nav:hover { opacity: 1; transform: scale(1.15); color: var(--accent-gold-lt); }
.social-media-link-nav svg {
  width: 18px; height: 18px;
  fill: currentColor;
}
.hor_line_nav {
  width: 28px;
  height: 1px;
  background-color: var(--silver);
  margin: 12px auto;
  opacity: 0.5;
}
.address-link-nav {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--grey);
  text-align: center;
  display: block;
  word-break: break-word;
}
.address-link-nav-email {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent-gold-lt);
  margin-top: 6px;
  display: block;
}

/* ============================================================
   1D. MAIN CONTENT WRAPPER
   ============================================================ */

.barba-wrapper {
  width: 100%;
  padding-left: var(--nav-w);
  display: block;
  position: static;
  overflow: hidden;
  background-color: var(--white-smoke);
}
.barba-container {
  width: 100%;
  display: block;
  position: relative;
}

@media (max-width: 1366px) and (min-width: 992px) {
  .wrapper-side-nav { width: var(--nav-w-md); max-width: var(--nav-w-md); }
  .barba-wrapper { padding-left: var(--nav-w-md); }
}

/* ============================================================
   1M. MOBILE HAMBURGER + OVERLAY MENU
   ============================================================ */

.menu-button {
  display: none;
  position: fixed;
  top: 0; right: 0;
  z-index: 2001;
  padding: 22px 24px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  background: rgba(30,30,33,0.85);
  backdrop-filter: blur(6px);
}
.wrap-nav-button {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.line-1-btn, .line-2-btn, .line-3-btn {
  width: 24px;
  height: 1px;
  background-color: var(--white-smoke);
  transition: transform 0.3s, opacity 0.3s;
}
.btn-menu-txt {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--white-smoke);
}
body.nav-open .line-1-btn { transform: translateY(6px) rotate(45deg); }
body.nav-open .line-2-btn { opacity: 0; }
body.nav-open .line-3-btn { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(30,30,33,0.97);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding: 40px;
}
body.nav-open .mobile-nav-overlay { display: flex; }
.mobile-nav-overlay a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.7);
  text-align: center;
  text-decoration: none;
  transition: color 0.25s;
}
.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active { color: var(--accent-gold-lt); }
.mobile-nav-overlay a.active { color: var(--accent-red-lt); }

.mobile-nav-overlay .mobile-foot {
  margin-top: 28px;
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey);
}
.mobile-nav-overlay .mobile-foot .email-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--accent-gold-lt);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 6px;
  text-transform: none;
}

@media (max-width: 991px) {
  .wrapper-side-nav { display: none; }
  .barba-wrapper { padding-left: 0; }
  .menu-button { display: flex; }
}

/* ============================================================
   1E. RIGHT-SIDE SECTION INDICATOR
   ============================================================ */

.panelsection { position: relative; }

.section-name-wrap {
  position: absolute;
  bottom: 30px;
  right: -14px;
  width: 22px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 5;
  pointer-events: none;
}
.section-name-wrap .section-number {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--black-2);
  margin-bottom: 8px;
}
.section-name-wrap .vert-indicator-section {
  width: 1px;
  height: 56px;
  background-color: var(--black-2);
  opacity: 0.55;
}
.section-name-wrap .section-indicator-name {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black-2);
  transform: rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  margin-top: 36px;
  opacity: 0.75;
}
/* On dark sections, flip indicator color */
.panelsection.dark .section-name-wrap .section-number,
.panelsection.dark .section-name-wrap .section-indicator-name {
  color: var(--silver);
  opacity: 0.85;
}
.panelsection.dark .section-name-wrap .vert-indicator-section {
  background-color: var(--silver);
  opacity: 0.5;
}
@media (max-width: 991px) {
  .section-name-wrap { display: none; }
}

/* ============================================================
   1G. SECTION HEADING PATTERN (subhead + heading + divider)
   ============================================================ */

.subhead { margin: 0 0 8px; text-align: center; }
.subhead.light  { color: var(--silver); }
.subhead.dark   { color: var(--grey); }
.subhead.accent { color: var(--accent-red); }

.heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1em;
  text-align: center;
  margin: 12px 0 36px;
  color: var(--black-2);
}
.heading.orange { color: var(--accent-red); font-weight: 300; }
.heading.light  { color: var(--silver-beig); }
.heading.gold   { color: var(--accent-gold); }
.heading em {
  font-style: italic;
  font-weight: 400;
}

.divider-light {
  width: 100%;
  max-width: 540px;
  height: 1px;
  background-color: var(--silver);
  opacity: 0.25;
  margin: 0 auto 48px;
}
.divider-gold {
  width: 60px;
  height: 1px;
  background-color: var(--accent-gold);
  opacity: 0.6;
  margin: 0 auto 36px;
}

/* ============================================================
   PHOTOGRAPHY FILTERS
   ============================================================ */

.photo-historical {
  filter: grayscale(100%) contrast(1.05) brightness(0.95);
  transition: filter 0.4s ease;
}
.photo-historical:hover {
  filter: grayscale(100%) contrast(1.08) brightness(1.0);
}
.photo-sepia {
  filter: grayscale(100%) sepia(0.2) contrast(1.05);
  transition: filter 0.4s ease;
}
.photo-modern { filter: none; }

/* Color-reveal: starts grayscale, JS animates filter to color as the user
   scrolls the image up through the viewport. Selector specificity beats
   .photo-modern so the grayscale wins as initial state. The transition is
   intentionally short — the JS sets filter every animation frame, so a long
   transition would visibly lag behind the scroll. */
img.photo-color-reveal {
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.12s linear;
}

/* Featured image — offset shadow plate */
.img-featured {
  position: relative;
  box-shadow: 6px 6px 16px rgba(30,30,33,0.5);
  z-index: 2;
}
.img-plate {
  background-color: var(--silver);
  position: absolute;
  top: -32px; left: -32px;
  width: 100%; height: 100%;
  z-index: -1;
  box-shadow: 6px 6px 16px rgba(30,30,33,0.5);
}

figure.photo {
  margin: 0;
  position: relative;
}
figure.photo img { width: 100%; }
figure.photo figcaption {
  margin-top: 0.7rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-style: italic;
  color: var(--grey);
  line-height: 1.55;
  letter-spacing: 0.04em;
}

/* ============================================================
   1H. HOMEPAGE HERO — title block above, offset-image frame below
   ============================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 5rem) clamp(6rem, 12vw, 10rem);
  background: var(--white-smoke);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(5rem, 10vw, 8rem);
}

/* Hero photos — simple fade in, both starting in grayscale.
   The color photo recovers its color on scroll (see js/main.js). */
@keyframes heroPhotoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* TITLE BLOCK — sits clearly above the photo frame */
.hero-top {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin: 0 0 1.6rem;
}
.hero-main-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 1.0em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black-2);
  margin: 0 0 1.6rem;
}
.hero-main-heading em {
  display: block;
  margin-top: 0.25em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-red);
}
.hero-divider {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.7;
  margin: 0 auto 1.4rem;
}
.hero-tagline-lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 400;
  color: var(--grey);
  line-height: 1.55em;
  margin: 0 auto;
  max-width: 60ch;
}

/* PHOTO FRAME — offset images, no heading overlay */
.wrap-here-frame {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* frame outline removed — photos do all the staging */
}

/* Each photo treated like a real print:
   creamy border, slight rotation, multi-layer shadow for depth.
   transform: !important so the fade-in JS (which writes inline transform)
   cannot overwrite the rotation. */
.giovanna-hero-cooking {
  width: 60%;
  position: absolute;
  top: -6%;
  right: -1%;
  transform: rotate(2.5deg);
  background: #f5f1e8;
  border: 10px solid #f5f1e8;
  box-shadow:
    0 3px 6px rgba(30,30,33,0.22),
    0 14px 28px rgba(30,30,33,0.30),
    0 30px 60px rgba(30,30,33,0.22);
  z-index: 3;
  /* starts in grayscale; JS restores color proportionally as user scrolls past the hero */
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.45s ease, box-shadow 0.4s ease, filter 0.4s ease;
  animation: heroPhotoFadeIn 1.6s ease-out 0.25s both;
}
.giovanna-hero-cooking:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow:
    0 4px 10px rgba(30,30,33,0.28),
    0 20px 40px rgba(30,30,33,0.38),
    0 44px 80px rgba(30,30,33,0.28);
}

.pulpo-hero {
  width: 60%;
  position: absolute;
  bottom: -6%;
  left: -1%;
  transform: rotate(-3deg);
  background: #f5f1e8;
  border: 10px solid #f5f1e8;
  box-shadow:
    0 3px 6px rgba(30,30,33,0.22),
    0 14px 28px rgba(30,30,33,0.30),
    0 30px 60px rgba(30,30,33,0.22);
  z-index: 2;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.45s ease, box-shadow 0.4s ease, filter 0.4s ease;
  animation: heroPhotoFadeIn 1.6s ease-out 0.45s both;
}
.pulpo-hero:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow:
    0 4px 10px rgba(30,30,33,0.28),
    0 20px 40px rgba(30,30,33,0.38),
    0 44px 80px rgba(30,30,33,0.28);
}

@media (max-width: 720px) {
  .hero-section { gap: 3rem; min-height: auto; }
  .hero-frame { aspect-ratio: 4 / 5; }
  .giovanna-hero-cooking {
    width: 80%; top: -4%; right: 0;
    border-width: 8px;
    transform: rotate(2deg) !important;
    box-shadow:
      0 2px 5px rgba(30,30,33,0.20),
      0 10px 22px rgba(30,30,33,0.28),
      0 22px 44px rgba(30,30,33,0.20);
  }
  .pulpo-hero {
    width: 80%; bottom: -4%; left: 0;
    border-width: 8px;
    transform: rotate(-2.5deg) !important;
    box-shadow:
      0 2px 5px rgba(30,30,33,0.20),
      0 10px 22px rgba(30,30,33,0.28),
      0 22px 44px rgba(30,30,33,0.20);
  }
}

/* ============================================================
   MISSION BAND
   ============================================================ */

.mission-band {
  position: relative;
  background: var(--accent-red);
  padding: clamp(4rem, 7vw, 6rem) var(--pad-x);
  overflow: hidden;
}
.mission-band::before {
  content: 'STORIES';
  position: absolute;
  right: -2rem; top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 700;
  color: rgba(255,255,255,0.055);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.08em;
}
.mission-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
}
.mission-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.55);
  border-top: 1px solid rgba(240,237,232,0.32);
  padding-top: 0.6rem;
}
.mission-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--white-smoke);
}
@media (max-width: 720px) {
  .mission-inner { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
  background: var(--white-smoke);
  padding: var(--pad-y) var(--pad-x);
  position: relative;
}
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 5rem;
  margin-top: 1rem;
}
.about-photos-left { display: flex; flex-direction: column; gap: 2rem; }
.about-photos-right {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.about-body p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--black-2);
}
.about-body p + p { margin-top: 1.1em; }

.pillars {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 1rem;
}
.pillar { border-left: 2px solid var(--accent-gold); padding-left: 1.4rem; }
.pillar-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent-red);
  margin-bottom: 0.35rem;
}
.pillar-body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================================
   BY THE NUMBERS — dark with photo bg
   ============================================================ */

.numbers-section {
  position: relative;
  background: var(--graphite);
  padding: var(--pad-y) var(--pad-x);
  overflow: hidden;
}
.numbers-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.05);
}
.numbers-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43,43,46,0.86);
}
.numbers-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.numbers-source {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 2.5rem;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem 1.4rem;
  margin-top: 1.2rem;
  text-align: left;
}
.stat {
  border-top: 1px solid rgba(212,170,24,0.32);
  padding-top: 1.1rem;
}
.stat-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 500;
  color: var(--accent-gold);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.stat-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--silver);
  line-height: 1.55;
}
.numbers-footnote {
  margin: 3rem auto 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver);
  max-width: 60ch;
  text-align: center;
}
.numbers-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(212,170,24,0.45);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.numbers-link:hover { color: var(--accent-gold-lt); border-color: var(--accent-gold-lt); }
@media (max-width: 900px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .numbers-grid { grid-template-columns: 1fr; } }

/* ============================================================
   UPLOAD SECTION — dark with photo bg
   ============================================================ */

.upload-section {
  position: relative;
  background: var(--black-2);
  padding: var(--pad-y) var(--pad-x);
  overflow: hidden;
  text-align: center;
}
.upload-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.05);
  opacity: 0.55;
}
.upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,30,33,0.88);
}
.upload-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}
.upload-sub {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.8;
  margin-bottom: 2.4rem;
  text-align: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.6rem;
  background: var(--accent-red);
  color: var(--white-smoke);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, transform 0.18s;
}
.btn:hover { background: var(--accent-red-lt); transform: translateY(-2px); }
.btn.btn-ghost {
  background: transparent;
  border-color: rgba(240,237,232,0.4);
  color: var(--white-smoke);
}
.btn.btn-ghost:hover { background: var(--white-smoke); color: var(--black-2); border-color: var(--white-smoke); }
.btn svg { width: 14px; height: 14px; }

.upload-note {
  margin-top: 1.2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white-smoke);
}
.upload-instructions-link { margin-top: 1.8rem; }
.tips-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,170,24,0.3);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.tips-link:hover { color: var(--accent-gold-lt); border-bottom-color: var(--accent-gold-lt); }

/* ============================================================
   INNER PAGE HEADER (cinematic full-bleed)
   ============================================================ */

.page-header {
  position: relative;
  min-height: 56vh;
  background: var(--black-2);
  display: flex;
  align-items: flex-end;
  padding: clamp(4rem, 9vw, 8rem) var(--pad-x) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-header-bg.bw    { filter: grayscale(100%) contrast(1.08); }
.page-header-bg.sepia { filter: grayscale(100%) sepia(0.2) contrast(1.05); }
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,30,33,0.6) 0%, rgba(30,30,33,0.85) 100%);
}
.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.page-header.no-photo {
  min-height: 38vh;
  background: linear-gradient(180deg, var(--black-2) 0%, var(--graphite) 100%);
}
.page-header.no-photo .page-header-bg,
.page-header.no-photo .page-header-overlay { display: none; }

/* ============================================================
   STORIES PAGE
   ============================================================ */

.story {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  background: var(--black-2);
  overflow: hidden;
}
.story:nth-of-type(even) { background: var(--graphite); }
.story-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 2.4rem;
  align-items: center;
}
.story.reverse .story-inner { direction: rtl; }
.story.reverse .story-inner > * { direction: ltr; }

.story-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 2px solid var(--dark-slate);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.story-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-body { position: relative; }
.story-quote-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 7rem;
  line-height: 0.55;
  color: var(--accent-gold);
  opacity: 0.55;
  display: block;
  margin-bottom: 0.5rem;
}
.story-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--silver-beig);
  margin-bottom: 1.4rem;
}
.story-rule {
  display: block;
  width: 70px;
  height: 2px;
  background: var(--accent-gold);
  margin: 1.4rem 0 1.6rem;
}
.story-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  color: var(--silver);
  line-height: 1.95;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.4rem;
}
.story-meta dt {
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--grey);
  text-transform: uppercase;
  font-size: 10.5px;
  align-self: center;
}
.story-meta dd {
  margin: 0;
  align-self: center;
  font-size: 14px;
}
.story-meta dd.name-value {
  color: var(--silver-beig);
  font-size: 16px;
  font-weight: 500;
}
.story-meta dt.wv-since {
  color: var(--accent-red-lt);
  font-size: 10.5px;
}
.story-meta dd.wv-since-year {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 15px;
}
.story-meta dd.placeholder {
  color: var(--grey);
  font-style: italic;
}
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(212,170,24,0.45);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.story-link:hover { color: var(--accent-gold-lt); border-color: var(--accent-gold-lt); }

@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; gap: 2.4rem; direction: ltr !important; }
  .story.reverse .story-inner { direction: ltr; }
}

/* "More coming soon" band */
.more-coming-soon {
  text-align: center;
  padding: 3rem var(--pad-x);
  background: var(--graphite);
}
.more-soon-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--silver);
  letter-spacing: 0.08em;
  margin: 1rem 0;
}
.section-rule {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.6;
  margin: 0 auto;
}

/* CTA band */
.cta-band {
  position: relative;
  background: var(--graphite);
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x);
  text-align: center;
}
.cta-band-inner {
  max-width: 720px;
  margin: 0 auto;
}
.cta-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-style: italic;
  font-weight: 300;
  color: var(--silver-beig);
  margin-bottom: 1.6rem;
  line-height: 1.3;
}

/* ============================================================
   COMMUNITIES PAGE
   ============================================================ */

.intro-band {
  background: var(--white-smoke);
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x);
}
.intro-text {
  max-width: 64ch;
  margin: 0 auto;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 300;
  color: var(--black-2);
  text-align: center;
}
.communities-band {
  background: var(--white-smoke);
  padding: 1rem var(--pad-x) var(--pad-y);
}
.communities-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.community {
  background: var(--graphite);
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.community::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s;
}
.community:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,0.35); }
.community:hover::before,
.community.open::before { transform: scaleY(1); }
.community-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.8rem 1.8rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.community-head-text { flex: 1; }
.community-tag {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}
.community-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--silver-beig);
  line-height: 1.15;
}
.community-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--dark-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--accent-red-lt);
  transition: background 0.2s, color 0.2s, transform 0.25s;
}
.community.open .community-toggle {
  background: var(--accent-gold);
  color: var(--black-2);
  transform: rotate(45deg);
  border-color: var(--accent-gold);
}
.community-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.community.open .community-detail { max-height: 1400px; }
.community-detail-inner {
  padding: 0 1.8rem 1.9rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.4rem;
}
.community-intro {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--silver);
  margin-bottom: 1.4rem;
}
.community-section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-red-lt);
  margin: 1.4rem 0 0.7rem;
}
.community-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.community-links li {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--silver);
}
.community-links a {
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(212,170,24,0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.community-links a:hover { color: var(--accent-gold-lt); border-color: var(--accent-gold-lt); }
.community-links .placeholder { font-style: italic; color: var(--grey); }

/* Contribute-your-community CTA card — open by default, distinct accent */
.community.community-cta {
  background: var(--graphite);
  border: 1px dashed rgba(212,170,24,0.45);
}
.community.community-cta::before { background: var(--accent-red); transform: scaleY(1); }
.community.community-cta .community-head { cursor: default; padding-bottom: 0.8rem; }
.community.community-cta .community-tag  { color: var(--accent-red-lt); }
.community.community-cta .community-name { color: var(--silver-beig); }
.community.community-cta .community-detail { max-height: none; overflow: visible; }
.community.community-cta .community-detail-inner { border-top: none; padding-top: 0; }
.community.community-cta .community-intro { color: var(--silver); }
.community.community-cta .cta-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.community.community-cta .cta-resource-link:hover { color: var(--accent-gold-lt); }

@media (max-width: 760px) { .communities-grid { grid-template-columns: 1fr; } }

/* ============================================================
   EVENTS PAGE
   ============================================================ */

.tab-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.tab-btn {
  background: var(--dark-slate);
  border: none;
  padding: 0.9rem 1.6rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab-btn:hover { color: var(--silver-beig); }
.tab-btn.active { background: var(--accent-red); color: var(--white-smoke); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.month-divider {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin: 3.5rem 0 1.8rem;
}
.month-divider:first-child { margin-top: 0; }
.month-divider h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.month-divider .month-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.event {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.4rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.event:last-child { border-bottom: none; }
.event-date {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-gold);
  line-height: 1.4;
}
.event-date strong {
  display: block;
  font-style: normal;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--black-2);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.event-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--black-2);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.event-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.event-meta span + span::before {
  content: '·';
  margin: 0 0.6rem;
  color: var(--accent-gold);
}
.event-desc {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--black-2);
  margin-bottom: 1rem;
}
.event-image, .event-video {
  margin-top: 1.2rem;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.event-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--black-2);
}
.event-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-red);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.event-link:hover { color: var(--accent-red-lt); }

@media (max-width: 720px) {
  .event { grid-template-columns: 1fr; gap: 1rem; }
  .event-date strong { font-size: 2rem; display: inline; margin-right: 0.6rem; }
  .event-date { font-size: 1rem; }
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

.resource-cat { margin-bottom: 4rem; }
.resource-cat-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}
.resource-cat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}
.resource-cat-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--accent-red);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.resource-cat-rule { flex: 1; height: 1px; background: var(--rule); align-self: center; }
.resource-cat-blurb {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--grey);
  margin: 0.4rem 0 1.6rem;
  max-width: 64ch;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.resource-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent-gold);
  padding: 1.4rem 1.5rem;
  transition: background 0.2s, transform 0.25s, border-left-color 0.25s, box-shadow 0.25s;
}
.resource-card:hover {
  background: var(--sepia);
  transform: translateY(-2px);
  border-left-color: var(--accent-red);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.resource-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black-2);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}
.resource-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 0.7rem;
}
.resource-contact {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  color: var(--black-2);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  margin-top: 0.4rem;
  transition: color 0.2s;
}
.resource-link:hover { color: var(--accent-gold-lt); }
.resource-link.placeholder {
  color: var(--grey);
  border-color: rgba(107,106,112,0.3);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}
@media (max-width: 720px) { .resource-list { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--black-2);
  padding: 2.8rem var(--pad-x);
  border-top: 1px solid rgba(212,170,24,0.18);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: var(--silver-beig);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-brand em { color: var(--accent-gold); font-style: italic; font-weight: 400; }
.footer-copy {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: var(--grey);
  line-height: 1.75;
  margin-top: 0.7rem;
}
.footer-copy span { display: block; }
.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  color: var(--silver);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-gold-lt); }
.footer-col a svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.footer-email {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ============================================================
   1L. SCROLL FADE PATTERN — Intersection Observer hooks
   ============================================================ */

.fade-in-up, .fade-in-left, .fade-in-right {
  /* initial state set inline by JS to avoid FOUC */
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .giovanna-hero-cooking,
  .pulpo-hero {
    animation: none !important;
    opacity: 1 !important;
  }
  html { scroll-behavior: auto; }
}
