/* =====================================================================
   JVS · Jeevan Vikas Sanstha
   "Sanctuary" Design System
   ===================================================================== */

/* ---- Design tokens ------------------------------------------------- */
:root {
  /* Colour palette — drawn from the JVS logo */
  --primary:        #C8202C;     /* logo red */
  --primary-dark:   #8B1517;
  --primary-darker: #5B0E0F;
  --gold:           #E8B33D;     /* logo inner-disc gold */
  --gold-dark:      #A87D1F;
  --gold-pale:      #F8E4B2;

  --ink:        #1F1A14;
  --ink-soft:   #5D5247;
  --ink-muted:  #8C8278;
  --ink-faint:  #B5AB9F;

  --cream:      #FAF5EB;         /* warm page background */
  --cream-deep: #F0E5D0;
  --surface:    #FFFFFF;
  --border:     #E8DCC4;
  --border-strong: #C9B894;

  --shadow:    0 4px 14px rgba(31, 26, 20, 0.07);
  --shadow-lg: 0 14px 40px rgba(31, 26, 20, 0.14);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --s-xxs: 0.25rem;
  --s-xs:  0.5rem;
  --s-s:   1rem;
  --s-m:   1.5rem;
  --s-l:   2.5rem;
  --s-xl:  4rem;
  --s-xxl: 6rem;

  --container: 1240px;
}

/* ---- Reset / Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 var(--s-s);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 var(--s-s); }

.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
}

/* ---- Section header (with cross divider) -------------------------- */
.sec-head {
  text-align: center;
  margin-bottom: var(--s-l);
  position: relative;
}
.sec-head--left { text-align: left; }
.sec-head-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-xs);
}
.sec-head-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
}
.sec-head-title em { color: var(--primary); font-style: italic; }
.sec-head-divider {
  display: flex; align-items: center; justify-content: center;
  margin: var(--s-s) auto 0;
  max-width: 140px;
}
.sec-head--left .sec-head-divider { margin-left: 0; }
.sec-head-divider::before,
.sec-head-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border-strong);
}
.sec-head-divider .ornament {
  width: 24px; height: 24px; margin: 0 12px;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.sec-head-blurb {
  max-width: 640px;
  margin: var(--s-s) auto 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---- Button system ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(200, 32, 44, 0.18);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 32, 44, 0.32);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(232, 179, 61, 0.25);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(168, 125, 31, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-ghost-light:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-small { padding: 9px 20px; font-size: 0.82rem; }

/* ---- Pills / tags ------------------------------------------------- */
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-pale);
  color: var(--gold-dark);
}
.pill-primary { background: var(--primary); color: #fff; }
.pill-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
}

/* ---- Top utility bar --------------------------------------------- */
.utility-bar {
  background: var(--primary-darker);
  color: #fff;
  font-size: 0.82rem;
  padding: 7px 0;
}
.utility-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.utility-bar a { color: #fff; opacity: 0.92; }
.utility-bar a:hover { color: var(--gold); opacity: 1; }
.utility-bar-info { display: flex; gap: 22px; align-items: center; }
.utility-bar-info span { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar-info svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---- Main site header / nav -------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.brand-logo {
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}
.nav-main {
  display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.nav-main a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  text-decoration: none;
}
.nav-main a::after {
  content: ''; position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--primary);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.2s;
}
.nav-main a:hover, .nav-main a.is-current {
  color: var(--primary);
}
.nav-main a:hover::after, .nav-main a.is-current::after {
  transform: scaleX(1);
}
/* Buttons inside the nav need to win the colour war against `.nav-main a` */
.nav-main .btn-primary,
.nav-main .btn-primary:hover { color: #fff; }
.nav-main .btn-primary::after { display: none; }
.nav-main .btn-gold,
.nav-main .btn-gold:hover { color: var(--ink); }
.nav-main .btn-gold::after { display: none; }
.nav-cta { margin-left: 12px; }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-header .container { flex-wrap: wrap; }
  .nav-main {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }
  .nav-main.is-open { display: flex; }
  .nav-main li { width: 100%; }
  .nav-main a { display: block; padding: 12px 0; }
  .nav-main a::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---- Hero (centered, framed) ------------------------------------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(91, 14, 15, 0.55) 0%, rgba(91, 14, 15, 0.75) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 880px;
  padding: var(--s-xl) 24px;
}
.hero-tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: var(--s-xs);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.08;
  color: #fff;
  margin: 0 0 var(--s-s);
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-blurb {
  max-width: 600px;
  margin: 0 auto var(--s-l);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap;
}
.hero-divider {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s-m);
  max-width: 200px;
}
.hero-divider::before, .hero-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255, 255, 255, 0.32);
}
.hero-divider svg {
  width: 24px; height: 24px; margin: 0 14px;
  color: var(--gold);
}

/* Slider dots */
.hero-slider-dots {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 3;
}
.hero-slider-dots button {
  width: 32px; height: 3px;
  background: rgba(255, 255, 255, 0.42);
  border: 0; padding: 0;
  cursor: pointer;
  transition: background 0.18s;
}
.hero-slider-dots button.is-active { background: var(--gold); }

/* ---- Section spacing --------------------------------------------- */
.section {
  padding: var(--s-xxl) 0;
}
.section--tight { padding: var(--s-xl) 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--surface); }
.section--deep  { background: var(--cream-deep); }
.section--red   { background: var(--primary); color: #fff; }
.section--red h1, .section--red h2, .section--red h3 { color: #fff; }

/* ---- About preview block ----------------------------------------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xl);
  align-items: center;
}
.about-preview-img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-preview-img::after {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  pointer-events: none;
}
.about-preview-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-preview .sec-head { text-align: left; margin-bottom: var(--s-m); }
.about-preview .sec-head-divider { margin-left: 0; }
.about-preview-body p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-preview-signature {
  margin-top: var(--s-m);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--primary);
}

@media (max-width: 820px) {
  .about-preview { grid-template-columns: 1fr; gap: var(--s-l); }
}

/* ---- Stats (compact, ornament-based) ----------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 1080px;
  margin: 0 auto;
}
.stat-card {
  text-align: center;
  padding: var(--s-m) var(--s-s);
  position: relative;
}
.stat-card + .stat-card { border-left: 1px solid var(--border); }
.stat-card:nth-child(4n+1) { border-left: 0; }
.stat-card:nth-child(n+5) { border-top: 1px solid var(--border); }

.stat-ornament {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--primary);
}
.stat-suffix {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  margin-left: 2px;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(4n+1) { border-left: 1px solid var(--border); }
  .stat-card:nth-child(2n+1) { border-left: 0; }
  .stat-card:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .stat-number { font-size: 2rem; }
  .stat-card { padding: var(--s-s) 6px; }
}

/* ---- Focus area cards (bordered) -------------------------------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-m);
}
.focus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s-l) var(--s-m);
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
}
.focus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.focus-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.focus-card:hover::before {
  transform: scaleX(1);
}
.focus-card-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--s-s);
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
}
.focus-card-icon svg { width: 34px; height: 34px; }
.focus-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--s-xs);
}
.focus-card-body {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Intervention split blocks (used on interventions.php) ------- */
.intervention-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xl);
  align-items: center;
  margin-bottom: var(--s-xl);
}
.intervention-block:last-child { margin-bottom: 0; }
.intervention-block.is-reversed .intervention-img { order: 2; }
.intervention-img {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.intervention-img img { width: 100%; height: 100%; object-fit: cover; }
.intervention-text .sec-head { text-align: left; margin-bottom: var(--s-m); }
.intervention-text .sec-head-divider { margin-left: 0; }
.intervention-text p {
  color: var(--ink-soft);
  font-size: 1rem;
}

@media (max-width: 820px) {
  .intervention-block { grid-template-columns: 1fr; gap: var(--s-m); }
  .intervention-block.is-reversed .intervention-img { order: 0; }
}

/* ---- Programme cards (home page compact grid) -------------------- */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-m);
}
.programme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s ease;
}
.programme-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.programme-card-img {
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  overflow: hidden;
  position: relative;
}
.programme-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.programme-card:hover .programme-card-img img { transform: scale(1.04); }
.programme-card-img-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-pale), var(--cream-deep));
}
.programme-card-body {
  padding: var(--s-m);
  flex: 1;
  display: flex; flex-direction: column;
}
.programme-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.programme-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 var(--s-xs);
  line-height: 1.25;
}
.programme-card:hover .programme-card-title { color: var(--primary); }
.programme-card-text {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 var(--s-s);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.programme-card-more {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}
@media (max-width: 980px) { .programme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .programme-grid { grid-template-columns: 1fr; } }

/* ---- Update / story cards ---------------------------------------- */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-m);
}
.update-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: all 0.25s ease;
}
.update-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.update-card-img {
  aspect-ratio: 16 / 9;
  background: var(--cream-deep);
  overflow: hidden;
  position: relative;
}
.update-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.update-card:hover .update-card-img img { transform: scale(1.04); }
.update-card-img-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-pale), var(--cream-deep));
}
.update-card-body {
  padding: var(--s-m);
  flex: 1;
  display: flex; flex-direction: column;
}
.update-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-xs);
}
.update-card-cat { color: var(--primary); font-weight: 600; }
.update-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--s-xs);
  line-height: 1.25;
}
.update-card:hover .update-card-title { color: var(--primary); }
.update-card-excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.update-card-more {
  margin-top: var(--s-s);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
}

@media (max-width: 980px) { .updates-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .updates-grid { grid-template-columns: 1fr; } }

/* ---- Testimonial (single, framed) -------------------------------- */
.testimonial-frame {
  max-width: 820px; margin: 0 auto;
  padding: var(--s-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  text-align: center;
}
.testimonial-frame::before {
  content: '"';
  position: absolute;
  top: -10px; left: 30px;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.18;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--s-m);
}
.testimonial-author {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
}
.testimonial-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  padding: 2px;
  background: #fff;
}
.testimonial-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.testimonial-context {
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-style: italic;
}

.testimonial-slider-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: var(--s-m);
}
.testimonial-slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 0;
  cursor: pointer;
  padding: 0;
}
.testimonial-slider-dots button.is-active { background: var(--primary); }

/* ---- Partners strip ---------------------------------------------- */
.partners-strip {
  padding: var(--s-l) 0;
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-l);
  align-items: center;
  justify-items: center;
}
.partners-grid img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.2s;
}
.partners-grid img:hover { filter: none; }
.partners-text {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: var(--s-l);
}

/* ---- CTA banner (full red) --------------------------------------- */
.cta-banner {
  background: var(--primary);
  background-image: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05), transparent 60%);
  color: #fff;
  padding: var(--s-xl) 0;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  font-style: italic;
  margin-bottom: var(--s-xs);
}
.cta-banner h2 em { color: var(--gold); font-style: italic; }
.cta-banner-blurb {
  max-width: 580px; margin: 0 auto var(--s-m);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}
.cta-banner-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Interventions explorer (tabbed compact layout) -------------- */
.interventions-explorer { padding-top: var(--s-xl); padding-bottom: var(--s-xl); }

.iv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: var(--s-m);
  margin-bottom: var(--s-l);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.iv-tabs::-webkit-scrollbar { height: 4px; }
.iv-tabs::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.iv-tab {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 9px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: all 0.2s ease;
}
.iv-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.iv-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(200, 32, 44, 0.22);
}

.iv-panel {
  display: none;
  grid-template-columns: 5fr 6fr;
  gap: var(--s-xl);
  align-items: start;
  animation: iv-fade 0.35s ease;
}
.iv-panel.is-active { display: grid; }
@keyframes iv-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.iv-panel-img {
  position: sticky;
  top: 96px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--cream-deep);
}
.iv-panel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iv-panel-img-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--gold-pale), var(--cream-deep));
}

.iv-panel-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.iv-panel-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  margin: 0 0 var(--s-xs);
  line-height: 1.15;
}
.iv-panel-divider {
  margin: var(--s-xs) 0 var(--s-m);
  display: flex; align-items: center; gap: 12px;
}
.iv-panel-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.iv-panel-divider svg {
  width: 18px; height: 18px;
  color: var(--gold-dark);
}
.iv-panel-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 var(--s-m);
}
.iv-panel-rich {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}
.iv-panel-rich p { margin: 0 0 var(--s-s); }
.iv-panel-rich h2, .iv-panel-rich h3 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  font-size: 1.3rem;
  margin: var(--s-m) 0 var(--s-xs);
}
.iv-panel-rich ul, .iv-panel-rich ol {
  padding-left: 22px;
  margin: 0 0 var(--s-s);
}
.iv-panel-rich li { margin-bottom: 4px; }
.iv-panel-rich strong { color: var(--ink); }
.iv-panel-rich a {
  color: var(--primary);
  border-bottom: 1px solid currentColor;
}

@media (max-width: 880px) {
  .iv-panel {
    grid-template-columns: 1fr;
    gap: var(--s-m);
  }
  .iv-panel-img {
    position: static;
    aspect-ratio: 16 / 9;
  }
}

/* ---- Contact form character counter ------------------------------ */
.field-counter {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
  margin-left: 6px;
}

/* ---- Publications (filterable compact grid) ---------------------- */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-l);
  padding-bottom: var(--s-m);
  border-bottom: 1px solid var(--border);
}
.pub-filter {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}
.pub-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pub-filter.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(200, 32, 44, 0.22);
}
.pub-filter-count {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: 999px;
  color: inherit;
}
.pub-filter.is-active .pub-filter-count {
  background: rgba(255, 255, 255, 0.22);
}

.pub-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .pub-grid { grid-template-columns: 1fr; } }

.pub-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.pub-card:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.pub-card-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 3px;
}
.pub-card-body {
  min-width: 0;
}
.pub-card-cat {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 2px;
}
.pub-card-title {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
  /* Clamp to 2 lines so long titles don't break the grid alignment */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-card-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pub-card-dot { color: var(--border-strong); }
.pub-card-dl {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.pub-card:hover .pub-card-dl {
  background: var(--primary);
  color: #fff;
  transform: translateY(2px);
}

/* ---- Projects list (filterable card grid) ------------------------ */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-l);
  padding-bottom: var(--s-m);
  border-bottom: 1px solid var(--border);
}
.project-filter {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.project-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.project-filter.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(200, 32, 44, 0.22);
}
.project-filter-count {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 8px;
  border-radius: 999px;
  color: inherit;
}
.project-filter.is-active .project-filter-count {
  background: rgba(255, 255, 255, 0.22);
}

.project-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-m);
}
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}
.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.project-card-img {
  aspect-ratio: 16 / 9;
  background: var(--cream-deep);
  overflow: hidden;
  position: relative;
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.04); }
.project-card-img-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--gold-pale), var(--cream-deep));
}
.project-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.project-card-status--ongoing   { background: var(--gold);          color: var(--ink); }
.project-card-status--upcoming  { background: var(--primary);       color: #fff; }
.project-card-status--completed { background: var(--ink-soft);      color: #fff; }

.project-card-body {
  padding: var(--s-m);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}
.project-card-dur {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.project-card-excerpt {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-agency {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.4;
}
.project-card-agency-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}
.project-card-more {
  margin-top: auto;
  padding-top: 10px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
}

/* ---- Project metadata fact card ---------------------------------- */
.project-meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: var(--s-s) var(--s-m);
  margin-bottom: var(--s-l);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}
.project-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.project-meta-row:last-child,
.project-meta-row:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}
.project-meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.project-meta-value {
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .project-meta-card { grid-template-columns: 1fr; }
  .project-meta-row { border-bottom: 1px dashed var(--border) !important; }
  .project-meta-row:last-child { border-bottom: 0 !important; }
}

/* ---- About-page partner grid ------------------------------------- */
.about-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-m);
  max-width: 1080px;
  margin: 0 auto;
}
.about-partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s-m);
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.22s ease;
}
a.about-partner-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.about-partner-logo {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-xs);
}
.about-partner-logo img {
  max-height: 64px;
  max-width: 80%;
  width: auto;
  object-fit: contain;
}
.about-partner-logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
}
.about-partner-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.about-partner-desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
  line-height: 1.5;
}
@media (max-width: 880px) { .about-partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .about-partners-grid { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------- */
.footer-newsletter {
  background: var(--primary-darker);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--s-l) 0;
  color: #fff;
}
.footer-newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-l);
  align-items: center;
}
.footer-newsletter-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.footer-newsletter-heading {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 4px 0 8px;
  line-height: 1.2;
}
.footer-newsletter-subtext {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}
.footer-nl-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 10px;
}
.footer-nl-row input {
  font-family: var(--font-body);
  font-size: 0.94rem;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 4px;
  transition: all 0.18s;
  min-width: 0;
}
.footer-nl-row input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-nl-row input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 179, 61, 0.18);
}
.footer-nl-submit {
  background: var(--gold);
  color: var(--ink);
  border: 0;
  padding: 12px 26px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.footer-nl-submit:hover:not(:disabled) {
  background: var(--gold-dark);
  color: #fff;
}
.footer-nl-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.footer-nl-msg {
  margin-top: 12px;
  font-size: 0.88rem;
  min-height: 1.2em;
  line-height: 1.4;
}
.footer-nl-msg.is-success { color: #B5E8B5; }
.footer-nl-msg.is-error   { color: #F2B5B5; }

@media (max-width: 820px) {
  .footer-newsletter-grid { grid-template-columns: 1fr; gap: var(--s-m); }
  .footer-nl-row { grid-template-columns: 1fr; }
  .footer-nl-submit { width: 100%; }
}

.site-footer {
  background: var(--primary-darker);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--s-xl) 0 var(--s-m);
  font-size: 0.92rem;
}
.site-footer a { color: #fff; opacity: 0.85; }
.site-footer a:hover { color: var(--gold); opacity: 1; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-l);
  margin-bottom: var(--s-l);
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: var(--s-s);
}
.footer-brand .brand-name { color: var(--gold); }
.footer-brand .brand-tagline { color: rgba(255, 255, 255, 0.6); }
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 var(--s-s);
}
.footer-links {
  list-style: none; padding: 0; margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-contact { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; line-height: 1.7; }
.footer-contact strong { color: var(--gold); font-weight: 600; display: block; margin-top: 12px; margin-bottom: 4px; font-family: var(--font-display); font-style: italic; font-weight: 500; }
.footer-social {
  display: flex; gap: 10px;
  margin-top: var(--s-m);
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary-darker);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--s-s);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 980px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- Page header (interior pages) --------------------------------- */
.page-header {
  background: var(--cream-deep);
  background-image: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
  padding: var(--s-xl) 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: var(--s-xs);
}
.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}
.page-header-title em { color: var(--primary); }
.page-header-blurb {
  max-width: 640px; margin: var(--s-s) auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-style: italic;
}
.breadcrumb {
  margin-top: var(--s-s);
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--primary); }

/* ---- About page styles ------------------------------------------- */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xl);
  margin-bottom: var(--s-xxl);
  align-items: center;
}
.about-story-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-story-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 8px 14px 0 0;
  color: var(--primary);
}
.about-story-img {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-story-img::after {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.about-story-img img { width: 100%; height: 100%; object-fit: cover; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-m);
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s-l);
  text-align: center;
  position: relative;
}
.value-card-num {
  position: absolute; top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.value-card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  margin: var(--s-xs) 0 var(--s-s);
}
.value-card-body {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (max-width: 820px) {
  .values-grid { grid-template-columns: 1fr; gap: var(--s-l); }
  .about-story-grid { grid-template-columns: 1fr; }
}

/* ---- Timeline (about / history) ---------------------------------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: var(--s-l) 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--border-strong);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin-bottom: var(--s-l);
  padding-left: 50%;
}
.timeline-item:nth-child(odd) {
  padding-left: 0;
  padding-right: 50%;
  text-align: right;
}
.timeline-item-content {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s-m);
  margin-left: var(--s-l);
}
.timeline-item:nth-child(odd) .timeline-item-content {
  margin-left: 0;
  margin-right: var(--s-l);
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
  transform: translateX(-50%);
}
.timeline-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 4px;
}
.timeline-event {
  margin: 0;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .timeline::before { left: 12px; }
  .timeline-item, .timeline-item:nth-child(odd) {
    padding-left: 48px; padding-right: 0; text-align: left;
  }
  .timeline-item-content, .timeline-item:nth-child(odd) .timeline-item-content {
    margin-left: 0; margin-right: 0;
  }
  .timeline-item::before { left: 12px; }
}

/* ---- Contact page ------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-xl);
  align-items: start;
}
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s-l);
}
.contact-form-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  margin-bottom: var(--s-s);
}
.contact-info-card {
  background: var(--primary-darker);
  color: #fff;
  padding: var(--s-l);
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.contact-info-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  margin-bottom: var(--s-s);
  position: relative;
}
.contact-info-block {
  margin-bottom: var(--s-m);
  position: relative;
}
.contact-info-block strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-info-block p, .contact-info-block a {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1rem;
}
.contact-info-block a:hover { color: var(--gold); }

/* form fields */
.form-grid {
  display: grid;
  gap: var(--s-s);
}
.form-grid-2col {
  grid-template-columns: 1fr 1fr;
  gap: var(--s-s);
}
.field {
  display: flex; flex-direction: column;
}
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  transition: all 0.18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 32, 44, 0.1);
}
.field textarea { min-height: 130px; resize: vertical; }

@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid-2col { grid-template-columns: 1fr; }
}

/* ---- Team cards --------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-l);
}
.team-card {
  text-align: center;
}
.team-photo-wrap {
  position: relative;
  width: 180px; height: 180px;
  margin: 0 auto var(--s-s);
}
.team-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.team-photo-wrap::after {
  content: '';
  position: absolute; inset: -8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
}
.team-role {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

/* ---- Generic list pages ------------------------------------------ */
.list-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-m);
}

/* ---- Gallery cards ----------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-s);
}
.gallery-tile {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: var(--cream-deep);
  cursor: pointer;
  border: 1px solid var(--border);
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s-s);
  background: linear-gradient(180deg, transparent, rgba(31, 26, 20, 0.85));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
}

/* ---- Publications ------------------------------------------------- */
.pub-section { margin-bottom: var(--s-xl); }
.pub-list {
  background: var(--surface);
  border: 1px solid var(--border);
}
.pub-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-m);
  padding: var(--s-s) var(--s-m);
  align-items: center;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s;
}
.pub-item:last-child { border-bottom: 0; }
.pub-item:hover { background: var(--cream); }
.pub-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pub-title { font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.pub-meta { font-size: 0.82rem; color: var(--ink-muted); }
.pub-download {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- 404 page ----------------------------------------------------- */
.not-found {
  padding: var(--s-xxl) 0;
  text-align: center;
}
.not-found-num {
  font-family: var(--font-display);
  font-size: 10rem;
  font-weight: 500;
  line-height: 1;
  color: var(--primary);
  margin: 0;
  font-style: italic;
  letter-spacing: -0.04em;
}
.not-found-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin: var(--s-s) 0 var(--s-xs);
}
.not-found-blurb {
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto var(--s-l);
}

/* ---- Reveal-on-scroll utility ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---- Flash messages ---------------------------------------------- */
.flash {
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 0.94rem;
  margin-bottom: var(--s-m);
}
.flash-success {
  background: #E8F5E9;
  color: #1B5E20;
  border-left: 4px solid #4CAF50;
}
.flash-error {
  background: #FFEBEE;
  color: #B71C1C;
  border-left: 4px solid #B71C1C;
}

/* ---- Form helpers ------------------------------------------------- */
.help, .help-text {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 4px;
}
.form-actions {
  margin-top: var(--s-m);
  display: flex;
  gap: 12px;
}

/* ---- Mobile fixes ------------------------------------------------- */
@media (max-width: 640px) {
  .section { padding: var(--s-xl) 0; }
  .hero { min-height: 480px; }
  .container { padding: 0 18px; }
}
