@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter+Tight:wght@400;500;600&display=swap');

/* ============================================================
   GIFT OF GIVING â€” design system
   ============================================================ */

:root {
  /* Palette â€” warm editorial, derived from logo */
  --paper:        #FAF7F1;
  --cream:        #F7F2EA;
  --cream-deep:   #EFE7D8;
  --brick:        #B83A2E;
  --brick-soft:   #C84F40;
  --oxblood:      #6B1F1A;
  --sage:         #7C8C6B;
  --sage-soft:    #A8B59A;
  --tan:          #C9A57B;
  --ink:          #1F1A15;
  --ink-soft:     #3A332C;
  --muted:        #6B6259;
  --border:       #DDD3C2;
  --border-soft:  #E8E0D2;

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width:    1240px;
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);
  --section-pad:  clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Body ---------- */
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain overlay â€” barely-there texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
main, header, footer { position: relative; z-index: 2; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--oxblood);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--brick);
}

h1 { font-size: clamp(2.75rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.08; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--oxblood);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-cta-mobile { display: none; }

.nav-links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 450;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--brick); }
.nav-links a.active:not(.btn) { color: var(--brick); }
.nav-links a.active:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brick);
}

/* Donate button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--brick);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--oxblood);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 58, 46, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--cream-deep);
  border-color: var(--ink-soft);
}
.btn-arrow::after {
  content: 'â†’';
  font-size: 1.1em;
  transition: transform 0.2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  padding: 0.75rem 1.25rem !important;
  font-size: 13.5px !important;
  display: block;
}
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover { background-color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  padding: 1rem 0 clamp(4rem, 8vw, 7rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-grid > div:first-child {
  padding-left: clamp(1rem, 4vw, 3.5rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brick);
}

.hero h1 {
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.25rem;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  left: -3rem;
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
  border-radius: 6px;
  clip-path: polygon(0 0, 88% 0, 100% 100%, 12% 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 22px,
      rgba(184, 58, 46, 0.04) 22px,
      rgba(184, 58, 46, 0.04) 23px);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-label {
  position: relative;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  z-index: 5;
}

/* Small accent badge floating on hero image */
.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 18%;
  background: var(--paper);
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(31, 26, 21, 0.08);
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 220px;
  line-height: 1.4;
  z-index: 5;
}
.hero-badge strong { color: var(--oxblood); display: block; font-family: var(--font-display); font-size: 16px; }

/* Dual Image Composition */
.hero-visual-dual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-main {
  width: 80%;
  height: 90%;
  object-fit: cover;
  border-radius: 4px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(31, 26, 21, 0.08);
}
.img-accent {
  width: 55%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  border: 8px solid var(--paper);
  box-shadow: 0 15px 40px rgba(31, 26, 21, 0.12);
  animation: float-slow 6s ease-in-out infinite;
}
@keyframes float-slow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Triple Image Editorial */
.hero-visual-triple {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.img-tri-1 {
  width: 65%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 4px;
  position: absolute;
  top: -8%;
  left: 0;
  z-index: 3;
  border: 6px solid var(--paper);
  box-shadow: 0 10px 30px rgba(31, 26, 21, 0.08);
  animation: float-slow 8s ease-in-out infinite;
}
.img-tri-2 {
  width: 60%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  position: absolute;
  top: 22%;
  right: 0;
  z-index: 2;
  border: 6px solid var(--paper);
  box-shadow: 0 10px 25px rgba(31, 26, 21, 0.1);
  animation: float-slow 7s ease-in-out infinite reverse;
}
.img-tri-3 {
  width: 65%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  position: absolute;
  bottom: 0%;
  left: 10%;
  z-index: 1;
  border: 6px solid var(--paper);
  box-shadow: 0 12px 30px rgba(31, 26, 21, 0.12);
  animation: float-slow 6s ease-in-out infinite;
}

/* 5-Image Scattered Collage */
.hero-visual-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 1rem 0;
}
.img-main-center {
  width: 65%;
  height: 85%;
  object-fit: cover;
  border-radius: 4px;
  position: absolute;
  top: 7.5%;
  left: 17.5%;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(31, 26, 21, 0.08);
}
.img-scatter {
  position: absolute;
  border-radius: 4px;
  border: 6px solid var(--paper);
  box-shadow: 0 12px 25px rgba(31, 26, 21, 0.1);
  object-fit: cover;
}
.img-scatter-1 {
  width: 26%;
  aspect-ratio: 1 / 1;
  top: -2%;
  left: 0%;
  z-index: 1;
  animation: float-slow 7s ease-in-out infinite;
}
.img-scatter-2 {
  width: 24%;
  aspect-ratio: 4 / 3;
  top: 8%;
  right: 0%;
  z-index: 3;
  animation: float-slow 6s ease-in-out infinite reverse;
}
.img-scatter-3 {
  width: 25%;
  aspect-ratio: 4 / 3;
  bottom: 8%;
  left: 0%;
  z-index: 3;
  animation: float-slow 8s ease-in-out infinite;
}
.img-scatter-4 {
  width: 26%;
  aspect-ratio: 1 / 1;
  bottom: -2%;
  right: 2%;
  z-index: 1;
  animation: float-slow 5s ease-in-out infinite reverse;
}

/* ---------- Section primitives ---------- */
.section { padding: var(--section-pad) 0; }
.section-cream { background: var(--cream); }
.section-ink   { background: var(--ink); color: var(--cream); }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink h2 em, .section-ink h3 em { color: var(--brick-soft); }
.section-ink p { color: var(--cream); opacity: 0.85; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .eyebrow { margin-bottom: 1rem; display: block; }

/* ---------- Impact stats ---------- */
.impact {
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.impact-eyebrow { text-align: center; display: block; margin-bottom: 3rem; }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.stat {
  text-align: center;
  padding: 0 0.5rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 350;
  color: var(--oxblood);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.03em;
}
.stat-label {
  margin-top: 0.85rem;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step {
  background: var(--paper);
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(31, 26, 21, 0.06);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--brick);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.5rem;
}
.step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.step p { font-size: 15px; }

/* ---------- Drive cards ---------- */
.drives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2rem);
}
.drive-card {
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drive-card:hover { transform: translateY(-4px); }
.drive-card-img {
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drive-card-img img { width: 100%; height: 100%; object-fit: cover; }
.drive-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      transparent 0,
      transparent 18px,
      rgba(124, 140, 107, 0.06) 18px,
      rgba(124, 140, 107, 0.06) 19px);
}
.drive-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.drive-meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.65rem;
}
.drive-card h3 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.drive-card p { font-size: 14.5px; flex: 1; }
.drive-card .read-more {
  margin-top: 1.25rem;
  font-size: 13px;
  color: var(--brick);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.drive-card .read-more::after {
  content: ' â†’';
  transition: margin-left 0.2s ease;
}
.drive-card:hover .read-more::after { content: ' â†’'; padding-left: 4px; }

/* ---------- Pull quote ---------- */
.pullquote {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.pullquote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.015em;
}
.pullquote blockquote::before { content: '"'; color: var(--brick-soft); margin-right: 0.1em; }
.pullquote blockquote::after  { content: '"'; color: var(--brick-soft); margin-left: 0.1em; }
.pullquote cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
}

/* ---------- Big CTA strip ---------- */
.cta-strip {
  padding: clamp(4rem, 7vw, 6rem) 0;
  text-align: center;
}
.cta-strip h2 { margin-bottom: 1.5rem; max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-strip .lead { margin: 0 auto 2.5rem; }
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3.5rem;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-grid a {
  color: var(--cream);
  font-size: 14.5px;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-grid a:hover { opacity: 1; color: var(--brick-soft); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--paper);
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.footer-desc { color: var(--cream); font-size: 14.5px; opacity: 0.75; max-width: 32ch; line-height: 1.55; }

.footer-bottom {
  border-top: 1px solid rgba(247, 242, 234, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  opacity: 0.65;
}

/* ============================================================
   Page-specific bits
   ============================================================ */

/* Page header (for sub-pages) */
.page-header {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border-soft);
}
.page-header.container {
  padding-left: calc(var(--gutter) + clamp(1rem, 4vw, 3.5rem) / 5);
}
@media (max-width: 900px) {
  .page-header.container { padding-left: var(--gutter); }
}

.page-header .eyebrow { margin-bottom: 1rem; display: block; }
.page-header h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 0.5rem; }
.page-header p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 60ch; color: var(--ink-soft); }

/* Gallery grid (Bento Box style) */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 20vw, 280px);
  gap: 1.5rem;
  grid-auto-flow: dense;
}
.gallery-item {
  background: var(--cream-deep);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 20px rgba(31, 26, 21, 0.06);
}
/* Masonry grid spans (Repeats every 6 photos automatically) */
.gallery-item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6n + 2) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(6n + 3) { grid-column: span 1; grid-row: span 2; }
.gallery-item:nth-child(6n + 4) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(6n + 5) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(6n + 6) { grid-column: span 2; grid-row: span 1; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(31, 26, 21, 0.12); }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(31, 26, 21, 0.08);
  pointer-events: none;
}

/* Collage Section (Dense Masonry) */
.collage-section {
  margin-top: 6rem;
  padding-top: 5rem;
  border-top: 1px solid var(--border-soft);
}
.collage-header {
  text-align: center;
  margin-bottom: 3rem;
}
.collage-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  grid-auto-rows: 130px;
  gap: 0.65rem;
  grid-auto-flow: dense;
}
.collage-item {
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-deep);
  position: relative;
}
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  will-change: transform; /* Hardware acceleration for smooth hovers */
}
.collage-item:hover img {
  transform: scale(1.08);
}
/* Randomize shapes based on index */
.collage-item:nth-child(5n) { grid-column: span 2; grid-row: span 2; }
.collage-item:nth-child(7n) { grid-column: span 2; grid-row: span 1; }
.collage-item:nth-child(11n) { grid-column: span 1; grid-row: span 2; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1 / 1;
  background: var(--cream-deep);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 22px,
      rgba(184, 58, 46, 0.04) 22px,
      rgba(184, 58, 46, 0.04) 23px);
  z-index: 1;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--oxblood);
  margin-bottom: 0.25rem;
  font-variation-settings: "opsz" 144;
}
.team-role {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.85rem;
}
.team-bio { font-size: 14.5px; color: var(--ink-soft); }

/* Drives list (sub-page) */
.drives-page-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.drive-row {
  display: grid;
  grid-template-columns: 0.4fr 1.4fr 1fr 0.4fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.drive-row:hover { border-color: var(--brick); transform: translateX(4px); }
.drive-row .date {
  font-family: var(--font-display);
  color: var(--oxblood);
  font-size: 1.5rem;
  line-height: 1.1;
}
.drive-row .date small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); margin-top: 0.25rem; }
.drive-row .title { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin-bottom: 0.25rem; }
.drive-row .subtitle { font-size: 14px; color: var(--muted); }
.drive-row .loc { font-size: 14px; color: var(--ink-soft); }
.drive-row .status {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  display: inline-block;
}
.drive-row .status.upcoming { color: var(--sage); border-color: var(--sage-soft); background: rgba(124, 140, 107, 0.06); }
.drive-row .status.completed { color: var(--brick); border-color: rgba(184, 58, 46, 0.3); background: rgba(184, 58, 46, 0.04); }

/* About narrative */
.narrative {
  max-width: 720px;
  margin: 0 auto;
}
.narrative p {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.narrative h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.contact-info h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--ink); }
.contact-info p { margin-bottom: 1.5rem; }
.contact-info .info-item {
  margin-bottom: 1.5rem;
}
.contact-info .info-item .eyebrow { display: block; margin-bottom: 0.4rem; }
.contact-info .info-item a, .contact-info .info-item span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--oxblood);
}

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  display: block;
}
.form input, .form select, .form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--brick);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Lightbox Modal
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 15, 12, 0.65);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > div:first-child { padding-left: 0; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; left: 0; }
  .section-head { grid-template-columns: 1fr; }
  .steps, .drives-grid, .team-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .blog-tag { text-align: left; }
  .drive-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    gap: 0;
    padding: 1rem var(--gutter);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--border-soft); width: 100%; }
  .nav-links a:not(.btn):last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block; padding: 1rem 0 0.5rem; }
  .nav-cta-mobile .btn { width: 100%; justify-content: center; }

  .steps, .drives-grid, .team-grid, .gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}