/* ==========================================================================
   ProVision Alliance — design system
   --------------------------------------------------------------------------
   Built on the identity that already exists: the yellow/black/white diamond
   mark. Yellow carries emphasis, never body text (it cannot hold contrast on
   white). The diamond recurs as the accent motif so the page and the logo
   read as one object.

   No framework. No build step. The site is the live TechSoup/Goodstack
   vetting artifact and has to stay trivially hostable.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

:root {
  /* Brand, sampled from assets/img/gallery/pv-logo.jpeg */
  --brand: #f4cc44;
  --brand-deep: #e0b62b;
  --brand-wash: #fdf4d8;

  /* Warm ink scale. Pure black next to this yellow reads cold. */
  --ink: #16150f;
  --ink-soft: #3a372c;
  --ink-mute: #6d685a;

  --paper: #ffffff;
  --sand: #fbf8f0;
  --sand-deep: #f5efe0;
  --line: #e8e1cf;
  --line-strong: #d6ccb2;

  --focus: #1b6ef3;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.9rem);

  /* Space */
  --gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --wrap: 1180px;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(22, 21, 15, 0.04), 0 8px 28px rgba(22, 21, 15, 0.07);
  --shadow-lift: 0 2px 4px rgba(22, 21, 15, 0.05), 0 18px 44px rgba(22, 21, 15, 0.12);

  --header-h: 74px;
}

/* ----------------------------------------------------------- 2. Base reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.35em; }

:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------ 3. Layout & rhythm */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 0.6rem + 2.2vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--tint { background: var(--brand-wash); }

.section--ink {
  background: var(--ink);
  color: #d9d5c8;
}
.section--ink h2,
.section--ink h3 { color: #fff; }

/* The diamond lifted from the logo, used as the section marker. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  flex: none;
  background: var(--brand);
  transform: rotate(45deg);
}
.section--ink .eyebrow { color: var(--brand); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-head h2 { font-size: var(--step-3); margin-bottom: 0.45em; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- 4. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(244, 204, 68, 0.4);
}
.btn--primary:hover { background: var(--brand-deep); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }

.section--ink .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section--ink .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn i { font-size: 1.15em; }

/* Text link with the diamond arrow */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
  transition: gap 0.18s ease;
}
.link-more:hover { gap: 0.8rem; }

/* ---------------------------------------------------------------- 5. Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(22, 21, 15, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 40px; height: 40px;
  border-radius: 9px;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.1rem + 1vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 0.4rem 0.1rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-cta { flex: none; padding: 0.7rem 1.25rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  cursor: pointer;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 21, 15, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 98;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--paper);
    padding: calc(var(--header-h) + 1.2rem) 1.6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    overflow-y: auto;
    box-shadow: -14px 0 40px rgba(22, 21, 15, 0.16);
  }
  body.nav-open .nav { transform: translateX(0); }

  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); margin: 0; }
  .nav a { padding: 0.95rem 0; font-size: 1.05rem; }
  .nav a::after { display: none; }

  .header-cta { display: none; }
}

/* ------------------------------------------------------------------ 6. Hero */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 6rem));
  padding-bottom: clamp(3rem, 2rem + 5vw, 6.5rem);
  background: var(--sand);
  overflow: hidden;
}

/* The stock architectural shot, demoted to faint texture. It carries no
   information about the work, so it earns a background role, not the lead. */
.hero-texture {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, var(--sand) 34%, rgba(251, 248, 240, 0.55) 100%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 700;
  margin-bottom: 0.4em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.3em;
  background: var(--brand);
  opacity: 0.55;
  z-index: -1;
}

.hero-lede { max-width: 44ch; margin-bottom: 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-figure { position: relative; }
.hero-figure img.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
/* Diamond echo of the mark, sitting behind the photograph. */
.hero-figure::before {
  content: "";
  position: absolute;
  width: clamp(120px, 20vw, 210px);
  aspect-ratio: 1;
  background: var(--brand);
  transform: rotate(45deg);
  top: -34px; right: -34px;
  border-radius: 18px;
  z-index: -1;
}

.hero-badge {
  position: absolute;
  left: -18px; bottom: -22px;
  width: clamp(96px, 13vw, 132px);
  border-radius: 18px;
  border: 5px solid var(--paper);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .hero-figure { margin-top: 1.5rem; max-width: 520px; }
  .hero-badge { left: auto; right: 12px; bottom: -18px; }
}

/* --------------------------------------------------------------- 7. Mission */

/* Single editorial column. A two-column split left the heading stranded beside
   a tall wall of text, with most of the left column empty. */
.mission-body { max-width: 68ch; }
.mission-body > p:first-of-type {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
}

/* -------------------------------------------------------------- 8. Pillars */

/* Fixed 2x2. auto-fit gave three across with a fourth card stranded alone on
   the second row, and the four programmes read as a set. */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  margin: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.pillar i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
  color: var(--ink);
  background: var(--brand-wash);
  border-radius: 14px;
}
.pillar h3 { font-size: var(--step-1); }
.pillar p { color: var(--ink-soft); margin-bottom: 0; }

/* --------------------------------------------------- 9. Capability listing */

.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.capability {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0;
  padding: 1.15rem 1.2rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.capability i {
  flex: none;
  margin-top: 0.16em;
  font-size: 1.15rem;
  color: var(--brand-deep);
}

/* -------------------------------------------------------------- 10. Process */

.process-step {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.75rem, 1rem + 3.5vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 1.4rem + 2vw, 3.4rem);
  border-top: 1px solid var(--line);
}
.process-step:first-of-type { border-top: 0; padding-top: 0; }
.process-step:nth-child(even) .process-figure { order: 2; }

.process-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.step-index {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.7rem;
}
.step-index span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--brand);
  color: var(--ink);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.process-body h3 { font-size: var(--step-2); }
.process-body p { max-width: 56ch; color: var(--ink-soft); }

@media (max-width: 860px) {
  .process-step { grid-template-columns: 1fr; }
  .process-step:nth-child(even) .process-figure { order: 0; }
}

/* Shared social row, replacing the same four links repeated under each step. */
.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.social-row li { margin: 0; }
.social-row .social-label {
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.4rem;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.social-row a:hover { background: var(--brand); border-color: var(--brand); }

/* ---------------------------------------------------------------- 11. Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.stat {
  margin: 0;
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.stat i { font-size: 1.5rem; color: var(--brand-deep); }
.stat .stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin: 0.5rem 0 0.3rem;
  font-variant-numeric: tabular-nums;
}
.stat .stat-label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

/* -------------------------------------------------------------- 12. Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-deep);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.gallery-grid a:hover img { transform: scale(1.06); }

/* --------------------------------------------------------------- 13. Voices */

.voices {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.2rem;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
}
/* Wide screens get all four at once. The horizontal rail is right on a phone,
   but on a desktop it just clipped the fourth quote with nothing to signal
   that it scrolled. */
@media (min-width: 1000px) {
  .voices {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    padding-bottom: 0;
  }
}

.voice {
  scroll-snap-align: start;
  margin: 0;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.voice blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  color: #fff;
}
.voice blockquote::before {
  content: "";
  display: block;
  width: 12px; height: 12px;
  background: var(--brand);
  transform: rotate(45deg);
  margin-bottom: 1.1rem;
}
.voice figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.voice img {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--brand);
}
.voice .voice-name {
  display: block;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.voice .voice-role {
  display: block;
  font-size: 0.88rem;
  color: #a8a396;
}
.voice .stars { color: var(--brand); font-size: 0.82rem; letter-spacing: 0.1em; }

/* ------------------------------------------------------------------ 14. Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.team-grid a {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.team-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-grid img { width: 100%; }

/* ------------------------------------------------------------- 15. Resources */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  align-items: start;
}
.resource-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
}
.resource-card h3 {
  font-size: var(--step-1);
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 1.1rem;
}
.resource-card ul { list-style: none; padding: 0; margin: 0; }
.resource-card li { margin-bottom: 0.15rem; }
.resource-card a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease;
}
.resource-card a::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  background: var(--brand);
  transform: rotate(45deg);
}
.resource-card a:hover { color: var(--ink); text-decoration: underline; }
.resource-card a[target="_blank"]::after {
  content: "\F1C5";
  font-family: "bootstrap-icons";
  font-size: 0.72em;
  color: var(--ink-mute);
  margin-left: auto;
}
.resource-note {
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin: 0.9rem 0 0;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.tag-list li { margin: 0; }
.tag-list span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--brand-wash);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* ------------------------------------------------------------------ 16. FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-figure { order: -1; }
}
.faq-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.faq-item {
  border-bottom: 1px solid var(--line-strong);
  padding: 0.35rem 0;
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\F4FE";
  font-family: "bootstrap-icons";
  margin-left: auto;
  flex: none;
  font-size: 1.1rem;
  color: var(--brand-deep);
  transition: transform 0.22s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--brand-deep); }
.faq-answer { padding: 0 0 1.4rem 0; color: var(--ink-soft); }
.faq-answer ul { padding-left: 1.2rem; }
.faq-answer li::marker { color: var(--brand-deep); }

/* --------------------------------------------------------------- 17. Donate */

.donate-band {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
}
@media (max-width: 760px) {
  .donate-band { grid-template-columns: 1fr; text-align: left; }
}
.donate-band h2 { font-size: var(--step-2); margin-bottom: 0.4em; max-width: 22ch; }
.donate-band p { color: var(--ink-soft); margin: 0; max-width: 46ch; }

/* --------------------------------------------------------------- 18. Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:first-child { padding-top: 0; }
.contact-item i {
  flex: none;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-wash);
  border-radius: 12px;
  font-size: 1.15rem;
  color: var(--ink);
}
.contact-item h3 { font-size: 1.02rem; margin-bottom: 0.15rem; font-family: var(--font-body); font-weight: 700; }
.contact-item p { margin: 0; color: var(--ink-soft); }
.contact-item a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.contact-item a:hover { color: var(--ink); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 4px var(--brand-wash);
}
.field textarea { resize: vertical; min-height: 150px; }

.form-status {
  margin: 0;
  font-weight: 600;
  align-self: center;
}
.form-status[data-state="ok"] { color: #1a7f4b; }
.form-status[data-state="error"] { color: #b3261e; }

/* ---------------------------------------------------------------- 19. Footer */

.site-footer {
  background: var(--ink);
  color: #a8a396;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #a8a396; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-contact p { margin: 0 0 0.3rem; }

.social-links { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.social-links a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  font-size: 1.05rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.social-links a:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); }

.footer-bottom {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------- 20. Scroll to top */

.to-top {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 13px;
  font-size: 1.4rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: var(--ink); }

/* ----------------------------------------------------------- 21. Motion/rev */

/* Scoped to .js, which an inline script in <head> sets. Without that guard the
   whole page starts at opacity 0 and only JavaScript can reveal it, so any
   script failure leaves a blank site. The content must be visible on its own. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media print {
  .site-header, .to-top, .nav-backdrop, .donate-band { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
