/* ============================================================
   MARKIN K KOSSOWSKI FOUNDATION FOR HOPE
   Visual system — warm, calm, premium humanitarian
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Warm neutral foundation */
  --paper:      #FBF8F3;   /* warm white / ivory page base */
  --ivory:      #FFFFFF;
  --sand:       #F4EDE1;   /* light sand */
  --sand-deep:  #ECE1CE;
  --beige:      #E4D7C1;   /* muted beige */

  /* Calming naturals */
  --sage:       #93A88C;   /* pale sage */
  --sage-deep:  #6E8369;
  --bluegrey:   #8C9CA6;   /* soft blue-grey */
  --bluegrey-deep: #5E707A;

  /* Gold accents */
  --gold:       #BE9A4E;
  --gold-deep:  #9C7C32;
  --gold-soft:  #E9D9B4;

  /* Ink / text */
  --ink:        #2D2920;   /* warm near-black */
  --ink-soft:   #57503F;   /* secondary text */
  --ink-mute:   #8A8273;   /* tertiary / captions */
  --line:       #E7DECE;   /* hairlines */

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 18px 50px -28px rgba(60, 48, 24, 0.35);
  --shadow-card: 0 24px 60px -34px rgba(60, 48, 24, 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 800px; }
.section { padding-block: var(--section-y); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.align-center { align-items: center; }
.align-start { align-items: start; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--gold-soft); }
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: 1.25rem;
}
.section-title.light { color: var(--paper); }

.lede { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.25rem; }
.lede.center { max-width: 640px; margin-inline: auto; }

p { color: var(--ink-soft); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.accent-script { color: var(--gold-deep); font-style: italic; font-weight: 400; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--gold-deep);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.text-link:hover { gap: 0.85rem; border-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.96rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff; box-shadow: 0 12px 26px -12px rgba(156, 124, 50, 0.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(156, 124, 50, 0.8); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--beige); }
.btn-ghost:hover { background: var(--sand); border-color: var(--sand-deep); transform: translateY(-2px); }

.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 248, 243, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(231, 222, 206, 0.9);
  padding-block: 0.6rem;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; color: var(--ink); }
.brand-sub { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 0.4rem; }
.nav-menu a:not(.btn) {
  display: inline-block; padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-menu a:not(.btn):hover { color: var(--ink); background: var(--sand); }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 0.5rem; }
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(8rem, 16vw, 12rem); padding-bottom: clamp(5rem, 10vw, 8rem);
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(147, 168, 140, 0.18) 0%, transparent 55%),
    radial-gradient(100% 80% at 0% 110%, rgba(140, 156, 166, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; animation: float 16s ease-in-out infinite; }
.hero-orb-1 { width: 320px; height: 320px; top: -60px; right: 8%; background: radial-gradient(circle, rgba(233, 217, 180, 0.9), transparent 70%); }
.hero-orb-2 { width: 260px; height: 260px; bottom: 4%; left: -40px; background: radial-gradient(circle, rgba(147, 168, 140, 0.6), transparent 70%); animation-delay: -5s; }
.hero-orb-3 { width: 200px; height: 200px; top: 30%; left: 38%; background: radial-gradient(circle, rgba(140, 156, 166, 0.5), transparent 70%); animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(14px); } }

.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--ink-soft); max-width: 620px; line-height: 1.6; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.hero-meta-item { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; font-weight: 500; color: var(--ink-mute); }
.hero-meta-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero-scroll { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 1; color: var(--ink-mute); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-scroll-line { width: 1.5px; height: 36px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Ripple banner ---------- */
.ripple { background: var(--ivory); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 6rem); }
.ripple-inner { max-width: 920px; margin-inline: auto; text-align: center; }
.ripple-quote { position: relative; font-family: var(--serif); font-size: clamp(1.45rem, 3.4vw, 2.3rem); line-height: 1.4; font-weight: 400; color: var(--ink); font-style: italic; margin-bottom: 1.5rem; }
.quote-mark { font-family: var(--serif); color: var(--gold-soft); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: 0.1em; }
.ripple-note { max-width: 640px; margin-inline: auto; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Mission ---------- */
.mission { background: var(--paper); }
.mission-vision { display: flex; justify-content: center; }
.vision-card {
  background: linear-gradient(160deg, var(--ivory), var(--sand));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-soft);
  max-width: 440px; position: relative;
}
.vision-mark { margin-bottom: 1.25rem; }
.vision-text { font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; color: var(--ink); font-style: italic; }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }
.about-head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.about-head .eyebrow { display: block; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pillar {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--gold-soft); }
.pillar-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sand); color: var(--gold-deep); font-size: 1.3rem; margin-bottom: 1.1rem; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.pillar p { font-size: 0.96rem; }

/* ---------- Impact grid ---------- */
.impact { background: var(--paper); }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.impact-card {
  position: relative; display: block; background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.impact-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(190,154,78,0.06), transparent 60%); opacity: 0; transition: opacity 0.4s var(--ease); }
.impact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--gold-soft); }
.impact-card:hover::before { opacity: 1; }
.impact-tag { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); letter-spacing: 0.1em; font-weight: 600; }
.impact-card h3 { font-size: 1.55rem; margin: 0.6rem 0 0.7rem; }
.impact-card p { font-size: 1rem; margin-bottom: 1.5rem; }
.impact-arrow { color: var(--gold-deep); font-size: 1.2rem; transition: transform 0.3s var(--ease); display: inline-block; }
.impact-card:hover .impact-arrow { transform: translateX(6px); }

/* ---------- Feature deep-dives ---------- */
.feature { background: var(--paper); }
.feature.alt { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }
.feature-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.feature-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature-media:hover img { transform: scale(1.04); }
.feature-media-tint { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0.18; pointer-events: none; }
.feature-tint-sage { background: var(--sage); }
.feature-tint-blue { background: var(--bluegrey); }
.feature-tint-sand { background: var(--beige); }
.feature-tint-gold { background: var(--gold); }
.order-1 { order: 1; } .order-2 { order: 2; }

.feature-list { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.feature-list li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); font-weight: 500; }
.feature-list li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 0.95rem; }

/* ---------- Stats ---------- */
.stats {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(110,131,105,0.35), transparent 60%),
    linear-gradient(150deg, var(--sage-deep), var(--bluegrey-deep));
  color: var(--paper);
}
.stats .about-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { padding: 1.5rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; line-height: 1; color: #fff; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.4; }

/* ---------- Stories ---------- */
.stories { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.story-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.story-img { aspect-ratio: 3/2; background-image: var(--img); background-size: cover; background-position: center; transition: transform 0.8s var(--ease); }
.story-card:hover .story-img { transform: scale(1.05); }
.story-body { padding: 1.6rem; }
.story-tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); background: var(--sand); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem; }
.story-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.story-body p { font-size: 0.97rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.testi { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-soft); position: relative; }
.testi::before { content: "“"; font-family: var(--serif); position: absolute; top: 0.4rem; left: 1.2rem; font-size: 4rem; color: var(--gold-soft); line-height: 1; }
.testi blockquote { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--ink); font-style: italic; margin: 1.4rem 0 1.2rem; position: relative; }
.testi-name { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--gold-deep); font-style: normal; }

/* ---------- Founder ---------- */
.founder { background: var(--paper); }
.founder-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1/1; max-width: 420px; margin-inline: auto;
  background: linear-gradient(160deg, var(--sand), var(--sand-deep)); border-radius: var(--radius-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.founder-quotemark { position: absolute; top: 1rem; left: 1.6rem; font-family: var(--serif); font-size: 8rem; color: rgba(190,154,78,0.18); line-height: 1; }
.founder-emblem { width: 45%; height: auto; opacity: 0.9; }
.founder-sign { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.05rem; margin-top: 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(190,154,78,0.4), transparent 55%),
    linear-gradient(140deg, #3a3528, #534a35);
  color: var(--paper); padding-block: clamp(4rem, 8vw, 7rem); text-align: center;
}
.cta-inner { max-width: 720px; margin-inline: auto; }
.cta-title { font-size: clamp(1.9rem, 4.2vw, 3rem); color: #fff; margin-bottom: 1.2rem; }
.cta-lede { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-fineprint { margin-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ---------- Get involved ---------- */
.involved { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }
.involved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.involved-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.5vw, 2.8rem); text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex; flex-direction: column; align-items: center;
}
.involved-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--gold-soft); }
.involved-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-soft), var(--sand)); color: var(--gold-deep); font-size: 1.5rem; margin-bottom: 1.2rem; }
.involved-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.involved-card p { font-size: 1rem; margin-bottom: 1.6rem; flex: 1; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-list { display: grid; gap: 1rem; }
.faq-item { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.faq-item[open] { border-color: var(--gold-soft); box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.3rem 1.6rem; font-family: var(--serif);
  font-size: 1.18rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--gold-deep); transition: transform 0.3s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.6rem 1.4rem; }
.faq-answer p { font-size: 1rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }
.contact-list { margin-top: 1.8rem; display: grid; gap: 1.3rem; }
.contact-list li { display: grid; gap: 0.2rem; }
.contact-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); }
.contact-list a { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--beige); width: fit-content; transition: border-color 0.3s var(--ease); }
.contact-list a:hover { border-color: var(--gold); }
.contact-social { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.15rem; }
.contact-social .social-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--sand); color: var(--ink-soft);
  border: 1px solid var(--line); border-bottom-color: var(--line);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-social .social-icon svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.contact-social .social-icon:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff; transform: translateY(-3px); border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(156, 124, 50, 0.7);
}

.contact-form { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(190,154,78,0.15); }
.form-note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--sage-deep); font-weight: 500; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: #2A2620; color: #D9D1C2; }
.footer-cta { background: linear-gradient(135deg, var(--gold-soft), var(--sand)); color: var(--ink); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); flex-wrap: wrap; }
.footer-cta-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); margin-bottom: 0.3rem; }
.footer-cta-inner p { color: var(--ink-soft); margin: 0; }

.footer-main { display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.brand-footer .brand-name { color: #F3EEE3; }
.brand-footer .brand-sub { color: var(--gold); }
.footer-tag { margin-top: 1.2rem; color: #B7AE9D; max-width: 320px; font-size: 0.98rem; }
.footer-address { margin-top: 0.7rem; color: #B7AE9D; max-width: 320px; font-size: 0.92rem; line-height: 1.5; font-style: normal; }
.footer-address a { color: #C9C0AF; transition: color 0.25s var(--ease); }
.footer-address a:hover { color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-nav h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
.footer-nav ul { display: grid; gap: 0.65rem; }
.footer-nav a { color: #C9C0AF; font-size: 0.96rem; transition: color 0.25s var(--ease); }
.footer-nav a:hover { color: #fff; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { color: #8E8675; font-size: 0.85rem; margin: 0; }
.footer-credit { color: var(--gold) !important; }

/* ---------- Floating donate (mobile) ---------- */
.float-donate {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; display: none;
  align-items: center; gap: 0.45rem; padding: 0.85rem 1.3rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 14px 30px -10px rgba(156,124,50,0.8);
}

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-orb { animation: none; }
}

/* keyboard focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .stat-grid, .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.3rem;
    background: var(--paper); padding: 6rem 1.5rem 2rem; box-shadow: -20px 0 60px -30px rgba(0,0,0,0.4);
    transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 99;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a:not(.btn) { padding: 0.9rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav-cta { margin: 0.6rem 0 0; }
  .nav-cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2 { grid-template-columns: 1fr; }
  .order-1, .order-2 { order: 0; }
  .feature-media { order: -1; }
  .impact-grid { grid-template-columns: 1fr; }
  .story-grid, .testi-grid, .involved-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .float-donate { display: inline-flex; }
}

@media (max-width: 560px) {
  .stat-grid, .pillars { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .brand-sub { font-size: 0.6rem; }
}

/* ============================================================
   INNER PAGES (Projects index + project detail)
   ============================================================ */

/* Compact page hero for inner pages */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding-top: clamp(9rem, 16vw, 12rem); padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(110% 90% at 85% -20%, rgba(147,168,140,0.18), transparent 55%),
    radial-gradient(90% 80% at 0% 120%, rgba(140,156,166,0.16), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title { font-size: clamp(2.3rem, 5.5vw, 3.8rem); margin-bottom: 1.1rem; }
.page-hero .lede { max-width: 640px; margin-inline: auto; }

.breadcrumb { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--gold-deep); font-weight: 600; transition: color 0.25s var(--ease); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-hidden] { opacity: 0.55; }

/* Projects index grid */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.proj-card {
  display: flex; flex-direction: column; background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--gold-soft); }
.proj-img { aspect-ratio: 3/2; background-image: var(--img); background-size: cover; background-position: center; background-color: var(--sand-deep); transition: transform 0.8s var(--ease); }
.proj-card:hover .proj-img { transform: scale(1.05); }
.proj-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.proj-tag { display: inline-block; align-self: flex-start; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); background: var(--sand); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.85rem; }
.proj-body h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.proj-body p { font-size: 0.97rem; margin-bottom: 1.3rem; flex: 1; }
.proj-link { font-weight: 600; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 0.45rem; transition: gap 0.3s var(--ease); }
.proj-card:hover .proj-link { gap: 0.85rem; }

/* Project detail layout */
.detail { background: var(--paper); }
.detail-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 2rem; }
.detail-figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.detail-main h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2rem 0 1rem; }
.detail-main h2:first-child { margin-top: 0; }
.detail-lede { font-size: 1.2rem; color: var(--ink); line-height: 1.6; }

/* Sticky support sidebar */
.detail-side { position: sticky; top: 6rem; display: grid; gap: 1.2rem; }
@media (max-width: 860px) { .detail-side { position: static; } }
.support-card { background: linear-gradient(160deg, var(--ivory), var(--sand)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-soft); }
.support-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.support-card p { font-size: 0.95rem; margin-bottom: 1.3rem; }
.facts { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; }
.facts h3 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; }
.facts dl { display: grid; gap: 0.9rem; margin: 0; }
.facts .fact-row { display: grid; gap: 0.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.facts .fact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }

/* Placeholder gallery (for pages awaiting real photos) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.gallery-tile { aspect-ratio: 4/3; border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--sage-deep); font-size: 0.8rem; font-weight: 500; border: 1px dashed var(--beige); background: linear-gradient(135deg, var(--sand), var(--sand-deep)); }
.gallery-tile span { opacity: 0.75; }

/* Related projects strip */
.related { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }

@media (max-width: 860px) {
  .proj-grid { grid-template-columns: 1fr; }
  .detail-wrap { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   THE CLOTHING JOURNEY (Vietnam -> Alberta story page)
   ============================================================ */

/* Hero */
.journey-hero {
  position: relative; overflow: hidden;
  padding-top: clamp(8.5rem, 15vw, 11rem); padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(190,154,78,0.16), transparent 55%),
    radial-gradient(100% 80% at 0% 115%, rgba(147,168,140,0.16), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
}
.journey-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.journey-hero .container { position: relative; z-index: 1; }
.jhero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.jhero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 0.7rem 0 1.1rem; }
.jhero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.9rem; line-height: 1.6; }
.jhero-media {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  background: linear-gradient(155deg, var(--sage-deep), var(--bluegrey-deep));
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.jhero-media .play {
  width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: grid; place-items: center; margin: 0 auto 1rem; color: var(--gold-deep);
  font-size: 1.3rem; padding-left: 4px; box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5);
}
.jhero-media .ph-label {
  font-size: 0.86rem; color: #fff; background: rgba(45,41,32,0.4);
  padding: 0.5rem 1.1rem; border-radius: 999px; backdrop-filter: blur(5px); display: inline-block;
}
@media (max-width: 860px) {
  .jhero-grid { grid-template-columns: 1fr; }
  .jhero-media { order: -1; aspect-ratio: 16/10; }
}

/* Intro */
.journey-intro { background: var(--paper); }
.journey-intro .container { max-width: 760px; text-align: center; }
.journey-intro .lede { font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* Timeline */
.journey-tl-section { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }
.timeline { position: relative; max-width: 780px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 6px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-soft) 45%, var(--beige) 100%);
}
.tl-entry { position: relative; padding-left: 60px; margin-bottom: 1.5rem; }
.tl-node {
  position: absolute; left: 8px; top: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold); box-shadow: 0 0 0 5px var(--sand);
  z-index: 1; display: grid; place-items: center;
}
.tl-node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tl-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 1.9rem); box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--gold-soft); }
.tl-card .eyebrow { margin-bottom: 0.5rem; }
.tl-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 0.6rem; }
.tl-card p { font-size: 1rem; }
.tl-media {
  margin-top: 1.1rem; aspect-ratio: 16/9; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sand), var(--sand-deep)); border: 1px dashed var(--beige);
  display: grid; place-items: center; text-align: center; color: var(--sage-deep);
  font-size: 0.8rem; font-weight: 500; padding: 0.8rem;
}
.tl-entry.is-feature .tl-card {
  background: linear-gradient(160deg, var(--gold-soft), var(--sand));
  border-color: var(--gold-soft);
}
.tl-entry.is-feature .tl-node { box-shadow: 0 0 0 5px var(--sand); border-color: var(--gold-deep); }
.tl-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.65rem); line-height: 1.45; color: var(--ink); margin: 0.6rem 0 0; }

/* Impact stats text cards (extends .stats) */
.jstat-textrow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.4rem; }
.jstat-text {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 1.6rem 1.6rem; text-align: center;
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; color: #fff;
}
@media (max-width: 680px) { .jstat-textrow { grid-template-columns: 1fr; } }

/* Gallery */
.journey-gallery { background: var(--paper); }
.jgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.jfig { margin: 0; }
.jfig .ph {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--sand), var(--sand-deep)); border: 1px dashed var(--beige);
  display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--sage-deep); font-size: 0.84rem; font-weight: 600;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.jfig:hover .ph { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.jfig .ph .ico { font-size: 1.6rem; display: block; margin-bottom: 0.45rem; opacity: 0.65; }
.jfig figcaption { margin-top: 0.7rem; font-size: 0.93rem; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 860px) { .jgallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .jgallery { grid-template-columns: 1fr; } }

/* Recognition */
.recognition { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }
.thanks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.thank-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.thank-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--gold-soft); }
.thank-card h3 { font-size: 1.18rem; margin-bottom: 0.25rem; }
.thank-card p { font-size: 0.92rem; color: var(--ink-mute); margin: 0; }
@media (max-width: 860px) { .thanks-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .thanks-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FEATURED STORY spotlight (homepage -> Clothing Journey)
   ============================================================ */
.featured-story { background: var(--paper); }
.fs-card {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  background: linear-gradient(160deg, var(--ivory), var(--sand));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.fs-media { background-image: var(--img); background-size: cover; background-position: center; min-height: 320px; }
.fs-body { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.fs-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0.4rem 0 0.9rem; }
.fs-text { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 48ch; }
.fs-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 0 0 1.9rem; padding: 0; }
.fs-stats li { display: flex; flex-direction: column; padding-left: 1.6rem; border-left: 1px solid var(--beige); }
.fs-stats li:first-child { padding-left: 0; border-left: 0; }
.fs-num { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--gold-deep); line-height: 1; }
.fs-lbl { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-top: 0.35rem; }
@media (max-width: 760px) {
  .fs-card { grid-template-columns: 1fr; }
  .fs-media { min-height: 220px; order: -1; }
}

/* ---------- Full logo lockup (header + footer) ---------- */
.brand-logo { height: 44px; width: auto; display: block; transition: height 0.4s var(--ease); }
.site-header.scrolled .brand-logo { height: 38px; }
.brand-footer-logo { height: 54px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 36px; } }

/* ---------- Footer partner logos ("Working with") ---------- */
.footer-partners { border-top: 1px solid rgba(255,255,255,0.1); padding-block: clamp(2rem, 4vw, 2.8rem); }
.footer-partners .container { text-align: center; }
.partner-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #B7AE9D; font-weight: 600; margin-bottom: 1.4rem; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.partner-chip {
  background: #fff; border-radius: 12px; width: 200px; height: 108px;
  display: flex; align-items: center; justify-content: center; padding: 14px 12px;
  overflow: hidden; box-shadow: 0 8px 22px -14px rgba(0,0,0,0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.partner-chip:hover, .partner-chip:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -14px rgba(0,0,0,0.6);
}
.partner-chip img { width: auto; height: auto; max-width: 100%; max-height: 72px; object-fit: contain; display: block; }
@media (max-width: 560px) {
  .partner-row { gap: 0.7rem; }
  .partner-chip { width: 46%; max-width: 200px; height: 92px; }
  .partner-chip img { max-height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .partner-chip { transition: none; }
  .partner-chip:hover, .partner-chip:focus-visible { transform: none; }
}

/* ---------- Photo gallery + lightbox ---------- */
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 1.3rem; }
.pg-item { position: relative; display: block; padding: 0; border: 0; background: var(--sand-deep); cursor: pointer; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.pg-item:hover img, .pg-item:focus-visible img { transform: scale(1.07); }
.pg-item::after { content: ""; position: absolute; inset: 0; background: rgba(45,41,32,0); transition: background 0.3s var(--ease); }
.pg-item:hover::after, .pg-item:focus-visible::after { background: rgba(45,41,32,0.16); }
.pg-item::before { content: "\2922"; position: absolute; z-index: 2; bottom: 8px; right: 10px; color: #fff; font-size: 1.05rem; opacity: 0; transition: opacity 0.3s var(--ease); text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.pg-item:hover::before, .pg-item:focus-visible::before { opacity: 0.95; }
@media (max-width: 760px) { .photo-gallery { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; } }
@media (max-width: 460px) { .photo-gallery { grid-template-columns: repeat(2, 1fr); } }

body.lb-lock { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(26, 22, 16, 0.93); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 90px -20px rgba(0,0,0,0.8); }
.lightbox button { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.lightbox button:hover { background: rgba(255,255,255,0.26); }
.lb-close { top: 1.1rem; right: 1.1rem; font-size: 1.2rem; }
.lb-prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-counter { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.85); font-size: 0.88rem; letter-spacing: 0.06em; }
@media (max-width: 560px) { .lb-prev { left: 0.4rem; } .lb-next { right: 0.4rem; } .lb-close { top: 0.5rem; right: 0.5rem; } .lightbox button { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .pg-item img { transition: none; } }

/* Timeline inline photo (filled tl-media) */
.tl-media.has-photo { border: 0; padding: 0; overflow: hidden; background: var(--sand-deep); }
.tl-media.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.events-section-past { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }

.events-list { display: grid; gap: clamp(2rem, 4vw, 3.25rem); margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.events-empty { color: var(--ink-mute); font-family: var(--serif); font-size: 1.05rem; margin-top: 1.5rem; }

/* Each event = a substantial panel */
.event-entry {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 6rem;
}
.event-entry.event-past { border-top-color: var(--sage); }

.event-head { margin-bottom: 1.3rem; }
.event-badge {
  display: inline-block; align-self: flex-start;
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  padding: 0.32rem 0.72rem; border-radius: 999px; margin-bottom: 0.85rem;
}
.event-badge-upcoming { color: var(--gold-deep); background: var(--gold-soft); }
.event-badge-past { color: var(--sage-deep); background: rgba(147,168,140,0.18); }

.event-title { font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1.15; margin: 0 0 0.5rem; }
.event-meta { margin: 0; font-family: var(--serif); font-size: 1.02rem; color: var(--ink-soft); }
.event-dot { color: var(--gold); margin: 0 0.15rem; }
.event-tbd { color: var(--ink-mute); font-style: italic; }

/* Featured image */
.event-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); margin: 0 0 1.6rem; }
.event-figure.fit-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.event-figure.fit-contain {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--sand), var(--sand-deep));
  padding: clamp(0.8rem, 2vw, 1.4rem);
}
.event-figure.fit-contain img { width: auto; max-width: 100%; max-height: 640px; object-fit: contain; display: block; border-radius: var(--radius); }

.event-body { max-width: 68ch; }
.event-desc { font-size: 1.08rem; line-height: 1.7; color: var(--ink); margin: 0 0 1.2rem; }
.event-details { margin: 0 0 0.5rem; }
.event-placeholder {
  border: 1px dashed var(--gold);
  background: rgba(190,154,78,0.06);
  color: var(--ink-soft);
  padding: 1rem 1.15rem; border-radius: var(--radius);
  font-size: 0.98rem; line-height: 1.6; margin: 0 0 1rem;
}
.event-cta { margin: 1.4rem 0 0; }

/* Per-event gallery */
.event-gallery-title { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin: 1.8rem 0 0.3rem; }
.event-gallery-hint { font-size: 0.92rem; color: var(--ink-mute); margin: 0 0 0.9rem; }
.event-entry .photo-gallery { margin-top: 0; }

/* Show first 8 thumbnails; reveal the rest on demand */
.photo-gallery .pg-extra { display: none; }
.photo-gallery.is-expanded .pg-extra { display: block; }
.gallery-more-wrap { margin-top: 1.2rem; text-align: center; }

@media (max-width: 560px) {
  .event-figure.fit-cover img { aspect-ratio: 4 / 3; }
}
