/* ==========================================================================
   Madhayam Samajik Sanstha: stylesheet (2026 rebuild)
   A distinct visual system from the earlier build and from the law firm
   and IT company sites: a soft rounded title font with a humanist body font, a recurring wave
   motif drawn from the logo's arc stripe, a numbered-list treatment for
   the focus areas, and a milestone timeline rather than a card grid.
   ========================================================================== */

/* ---------- 1. Reset ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #241f1c;
  background: #fbf7f0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
  color: #1c3a22;
}

p {
  margin: 0 0 16px;
}

/* ---------- 2. Colour tokens ---------- */

:root {
  --green-deep: #1c3a22;
  --green-mid: #2c5636;
  --green-light: #eef3ea;
  --maroon: #6b1f28;
  --maroon-dark: #4a141c;
  --stripe: #ac3b2c;
  --stripe-dark: #8a2e21;
  --cream: #fbf7f0;
  --cream-alt: #f2ead9;
  --ink: #241f1c;
  --ink-soft: #6b5f52;
  --line: #e4dbc9;

  /* Title font. To try a different one, change this line and the Google
     Fonts link in each page's <head>. Other warm options: "Nunito",
     "Quicksand", "Young Serif". */
  --font-title: "Fraunces", Georgia, serif;
}

/* ---------- 3. Layout utilities ---------- */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--green-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 999;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-alt {
  background: var(--cream-alt);
}

.section-deep {
  background: var(--green-deep);
  color: #eef3ea;
}

.section-deep h2,
.section-deep h3 {
  color: #fff;
}

.eyebrow {
  display: block;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--maroon);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-deep .eyebrow {
  color: #e3c9a8;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-deep .lede {
  color: #cddccb;
}

/* ---------- 4. Wave divider ---------- */
/* A recurring motif drawn from the arc under the figures in the logo,
   used between sections instead of a plain rule or box shadow. */

.wave {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
}

.wave-into-alt { fill: var(--cream-alt); }
.wave-into-cream { fill: var(--cream); }
.wave-into-deep { fill: var(--green-deep); }
.wave-flip { transform: scaleY(-1); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(28, 58, 34, 0.06);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}

.brand-mark-fallback {
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 18px;
  color: var(--green-deep);
}

.brand-tag {
  font-size: 12px;
  color: var(--ink-soft);
}

.primary-nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 8px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0 12px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.is-current::after {
  transform: scaleX(1);
}

.nav-link.is-current {
  color: var(--maroon);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
}

.menu-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.menu-bar:nth-child(1) { top: 14px; }
.menu-bar:nth-child(2) { top: 20px; }
.menu-bar:nth-child(3) { top: 26px; }

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- 6. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--green-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-mid);
}

.btn-outline {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.btn-outline:hover {
  background: var(--green-light);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-donate {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(107, 31, 40, 0.7);
}

.btn-donate:hover {
  background: var(--maroon-dark);
}

.btn-small {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* ---------- 7. Mobile drawer ---------- */
/* A short, soft fade (with a slight slide) on open and close. */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 30, 24, 0.45);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--green-deep);
  color: #fff;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

body.nav-open .side-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.side-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.side-nav-title {
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cddccb;
}

.side-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.side-list a,
.side-group-toggle {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 4px;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
}

.side-list a .num {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--stripe);
}

.side-list a.is-current {
  color: var(--stripe);
}

.side-nav-foot {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-note {
  font-size: 13px;
  color: #b9c8b6;
  margin: 0;
}

/* ---------- 8. Home hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 0;
  background: var(--stripe);
  color: #fff;
  overflow: hidden;
}

/* Decorative hero backdrop. */
.hero-shader-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-shader-bg iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 14, 12, 0.22);
  pointer-events: none;
}

@media (max-width: 640px), (prefers-reduced-motion: reduce) {
  /* Keep the decorative layer quiet on small screens and reduced-motion preferences. */
  .hero-shader-bg {
    display: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 76px;
}

.hero-eyebrow {
  color: #f3dcc7;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  color: #fff;
  margin-bottom: 20px;
}

.hero-title mark {
  background: none;
  color: #ffe1c9;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-figure {
  position: relative;
}

.hero-figure .img-ph {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero-figure .img-ph-label {
  color: #fff;
}

.hero-figure .img-ph-desc {
  color: rgba(255, 255, 255, 0.8);
}

.hero-stat-card {
  position: absolute;
  left: -18px;
  bottom: -32px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 20px 40px -18px rgba(28, 30, 24, 0.4);
  max-width: 240px;
}

.hero-stat-card .stat-num {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
  display: block;
}

.hero-stat-card .stat-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
  display: block;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-stat-card {
    position: static;
    margin-top: 26px;
    max-width: none;
  }
}

/* ---------- 9. Image placeholders ---------- */

.img-ph {
  background: var(--green-light);
  border: 1.5px dashed var(--green-mid);
  border-radius: 14px;
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.img-ph-round {
  min-height: 180px;
  width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0 auto;
}

.img-ph {
  position: relative;
  overflow: hidden;
}

/* A real photo fills the slot once it loads; until then (or if the file
   is missing) the placeholder text below stays visible. */
.img-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  opacity: 0;
  transition: opacity 260ms ease;
  z-index: 2;
}

.img-ph img.is-loaded {
  opacity: 1;
}

.img-ph:has(img.is-loaded) {
  border-color: transparent;
  background: none;
}

.img-ph:has(img.is-loaded) .img-ph-fallback {
  display: none;
}

.img-ph-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.img-ph-label {
  font-weight: 700;
  color: var(--green-deep);
  font-size: 14px;
}

/* The exact filename to give the photo */
.img-ph-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  color: var(--maroon);
  word-break: break-all;
}

.hero-figure .img-ph-file {
  color: #fff;
}

.img-ph-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 10. Quick intro (home) ---------- */

.intro-block {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.intro-block .eyebrow-col {
  position: sticky;
  top: 100px;
}

@media (max-width: 860px) {
  .intro-block {
    grid-template-columns: 1fr;
  }
  .intro-block .eyebrow-col {
    position: static;
  }
}

/* ---------- 11. Milestone timeline (About Us) ---------- */

.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 44px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 38px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stripe);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--stripe);
}

.timeline-item h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.timeline-item .when {
  display: block;
  font-weight: 700;
  color: var(--maroon);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ---------- 12. Vision / Mission panels ---------- */

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

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

.vm-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--stripe);
  border-radius: 4px 4px 16px 16px;
  padding: 32px;
}

.vm-panel:nth-child(2) {
  border-top-color: var(--green-mid);
}

.vm-panel h3 {
  font-size: 22px;
}

.vm-panel p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- 13. Focus areas (What We Do): numbered list ---------- */

.focus-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.focus-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.focus-item:hover {
  background: var(--cream-alt);
}

.focus-num {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 600;
  color: var(--stripe);
  line-height: 1;
}

.focus-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.focus-body p {
  color: var(--ink-soft);
  margin-bottom: 0;
  max-width: 62ch;
}

@media (max-width: 640px) {
  .focus-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- 14. Impact page ---------- */

.stat-hero {
  text-align: center;
  padding: 24px 0 8px;
}

.stat-hero .stat-num {
  font-family: var(--font-title);
  font-size: clamp(64px, 12vw, 128px);
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
  display: block;
}

.stat-hero .stat-label {
  font-size: 19px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
}

.impact-cell {
  background: #fff;
  padding: 28px 24px;
}

.impact-cell .stat-value {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--green-deep);
  display: block;
}

.impact-cell .stat-label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  display: block;
}

.quote-panel {
  background: var(--green-deep);
  color: #fff;
  border-radius: 20px;
  padding: 44px;
  margin-top: 8px;
}

.quote-panel p {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* ---------- 15. Ways to help (CSR & Support) ---------- */

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

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

.way-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.way-card:hover {
  border-color: var(--stripe);
  box-shadow: 0 18px 34px -22px rgba(28, 30, 24, 0.35);
  transform: translateY(-3px);
}

.way-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 16px;
}

.way-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.way-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- 16. Giving tiers (Donate) ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.tier-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier-card h3 {
  font-size: 18px;
  margin-bottom: 0;
}

.tier-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 0;
  flex: 1;
}

/* ---------- 16b. Online donation panel (Razorpay) ---------- */

.pay-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  margin-top: 32px;
}

.pay-panel h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.pay-intro {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.pay-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 16px;
  align-items: start;
}

.pay-form .form-field .field-err {
  margin-bottom: 0;
}

.amount-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream-alt);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.amount-input:focus-within {
  border-color: var(--stripe);
  box-shadow: 0 0 0 4px rgba(172, 59, 43, 0.12);
}

.amount-input span {
  padding-left: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.amount-input input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 8px;
}

.amount-input input:focus {
  box-shadow: none;
}

.pay-submit {
  margin-top: 25px;
  white-space: nowrap;
}

.pay-status {
  margin: 16px 0 0;
  font-size: 15px;
  min-height: 1.2em;
  color: var(--ink-soft);
}

.pay-status.is-error {
  color: var(--maroon);
}

.pay-status.is-success {
  color: var(--green-mid);
  font-weight: 700;
}

.pay-fine {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .pay-form {
    grid-template-columns: 1fr;
  }
  .pay-submit {
    margin-top: 0;
    width: 100%;
  }
}

/* ---------- 17. Bank / payment panel ---------- */

.bank-panel {
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  margin-top: 24px;
}

.bank-rows {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-width: 560px;
}

.bank-rows div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.bank-rows b {
  color: var(--ink-soft);
  font-weight: 600;
}

@media (max-width: 560px) {
  .bank-rows div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.trust-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--stripe);
  padding-left: 16px;
}

/* ---------- 18. CSR process ribbon ---------- */

.process-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 44px;
  counter-reset: step;
}

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

.process-step {
  position: relative;
  padding: 0 20px 20px 0;
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--stripe);
  display: block;
  margin-bottom: 10px;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 20px;
  width: 1px;
  background: var(--line);
}

.process-step:last-child::after {
  display: none;
}

@media (max-width: 760px) {
  .process-step::after {
    display: none;
  }
}

.process-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag-list li {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--cream-alt);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
}

.reason-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.reason-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}

.reason-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--stripe);
}

.reason-list h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.reason-list p {
  color: var(--ink-soft);
  margin-bottom: 0;
  font-size: 15px;
}

/* ---------- 19. Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

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

.contact-info-list {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.contact-info-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-info-list .label {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 20px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field.full {
  grid-column: 1 / -1;
}

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

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--cream-alt);
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--stripe);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-actions {
  margin-top: 22px;
}

.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- 19b. Typed line, copy-to-copy buttons, form feedback ---------- */
/* Ported from the interaction patterns in corvance-it's main.js, adapted to
   this site's own content and palette. */

.typed {
  margin-top: 18px;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  min-height: 1.6em;
}

.typed b {
  color: #ffe1c9;
}

.typed s {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #ffe1c9;
  margin-left: 3px;
  vertical-align: -0.1em;
  animation: blink 1s steps(2) infinite;
  text-decoration: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

.copy-btn {
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0;
  font: inherit;
  color: inherit;
}

.copy-hint {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--stripe);
  opacity: 0.75;
  white-space: nowrap;
}

.copy-btn:hover .copy-hint {
  opacity: 1;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--maroon);
  animation: shake 0.45s ease;
}

@keyframes shake {
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.field-err {
  color: var(--maroon);
  font-size: 13px;
  margin-top: 4px;
  min-height: 1em;
}

.form-done {
  text-align: center;
  padding: 30px 8px;
}

.form-done svg {
  width: 72px;
  height: 72px;
}

.form-done circle {
  fill: none;
  stroke: var(--green-mid);
  stroke-width: 4;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: draw 0.8s ease forwards;
}

.form-done path {
  fill: none;
  stroke: var(--green-mid);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.5s 0.7s ease forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.form-done h3 {
  font-size: 22px;
  margin: 14px 0 6px;
}

.form-done p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- 20. CTA band ---------- */

.cta-band {
  background: var(--maroon);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  max-width: 26ch;
  margin: 0 auto 14px;
}

.cta-band p {
  max-width: 52ch;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.88);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- 21. Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: #cddccb;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

.footer-name {
  font-family: var(--font-title);
  font-size: 19px;
  color: #fff;
  display: block;
  margin-bottom: 10px;
}

.footer-heading {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-nav ul,
.footer-contact ul {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-base {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
  color: #9fb29b;
}

/* ---------- 22. Breadcrumb ---------- */

.breadcrumb {
  margin-bottom: 18px;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---------- 23. Page head band (subpages) ---------- */

.page-head {
  background: var(--stripe);
  color: #fff;
  padding: 56px 0 72px;
}

.page-title {
  font-size: clamp(30px, 5vw, 44px);
  color: #fff;
  margin-bottom: 14px;
}

.page-lede {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 62ch;
}

/* ==========================================================================
   24. Motion layer
   The same family of interactions as the corvance-it reference (a cursor
   glow, magnetic buttons, drifting shapes, scroll reveal, a progress bar,
   counters, back-to-top) rebuilt with this site's own shapes and palette
   so the effect feels related but the site does not look like a copy.
   The mobile drawer above is intentionally left out of this layer.
   ========================================================================== */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--stripe), var(--maroon));
  z-index: 120;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 59, 43, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}

.mag {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drift-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  transform: translate3d(0, var(--py, 0px), 0);
}

.drift-shape svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: driftShape 16s ease-in-out infinite alternate;
}

@keyframes driftShape {
  to {
    transform: translate(-24px, 26px) rotate(6deg) scale(1.05);
  }
}

[data-anim] {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

[data-anim="rise"] { transform: translateY(16px); }
[data-anim="left"] { transform: translateX(-18px); }
[data-anim="right"] { transform: translateX(18px); }
[data-anim="pop"] { transform: scale(0.97); }
[data-anim].in { opacity: 1; transform: none; }

.top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 40;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s;
  pointer-events: none;
  box-shadow: 0 10px 24px -8px rgba(28, 58, 34, 0.6);
}

.top-btn.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.top-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 859px), (pointer: coarse) {
  .cursor-glow,
  .drift-shape {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1; transform: none; }
  .cursor-glow, .drift-shape { display: none; }
}

/* ---------- 25b. Softening pass ---------- */
/* Small, gentle transitions so nothing on the site changes abruptly. */

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: pageIn 0.6s ease both;
}

a,
.nav-link,
.footer-nav a,
.breadcrumb a {
  transition: color 0.25s ease, opacity 0.25s ease;
}

/* Only elements that are not scroll-reveal targets get their own hover
   transition here: reveal targets already carry the fade-in transition,
   and overriding it would break their entrance. */
.tag-list li {
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.tag-list li:hover {
  background: #fff;
  border-color: var(--stripe);
  transform: translateY(-1px);
}

.img-ph {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Photos fade in gently once loaded, rather than popping into place */
.img-ph img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.img-ph img.is-loaded {
  opacity: 1;
}

input,
select,
textarea,
button {
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(172, 59, 43, 0.12);
}

/* ---------- 25. Small phones ---------- */

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .hero-grid { padding-bottom: 56px; }
}

/* ---------- 26. Local hero background ---------- */
/* Replaces the external ShaderGradient embed with a self-contained visual.
   No iframe, external watermark or third-party runtime is required. */
.hero-shader-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 225, 201, 0.22), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(28, 58, 34, 0.38), transparent 34%),
    linear-gradient(120deg, #8a2e21 0%, #ac3b2c 42%, #6b1f28 100%);
}

.hero-orb,
.hero-glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  will-change: transform;
}

.hero-orb { mix-blend-mode: screen; opacity: 0.38; }
.hero-orb-a { width: 42vw; height: 42vw; max-width: 620px; max-height: 620px; left: -12vw; top: -25%; background: radial-gradient(circle, rgba(255, 225, 201, 0.42), transparent 66%); animation: heroFloatA 18s ease-in-out infinite alternate; }
.hero-orb-b { width: 34vw; height: 34vw; max-width: 500px; max-height: 500px; right: -8vw; top: 5%; background: radial-gradient(circle, rgba(28, 58, 34, 0.52), transparent 68%); animation: heroFloatB 22s ease-in-out infinite alternate; }
.hero-orb-c { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; left: 42%; bottom: -35%; background: radial-gradient(circle, rgba(255, 193, 155, 0.3), transparent 68%); animation: heroFloatC 20s ease-in-out infinite alternate; }
.hero-glow-a { width: 70%; height: 120%; left: 15%; top: -10%; background: radial-gradient(ellipse, rgba(255,255,255,0.10), transparent 62%); filter: blur(35px); animation: heroPulse 9s ease-in-out infinite alternate; }
.hero-glow-b { width: 55%; height: 80%; right: -18%; bottom: -20%; background: radial-gradient(ellipse, rgba(28,58,34,0.22), transparent 65%); filter: blur(45px); animation: heroPulse 12s ease-in-out infinite alternate-reverse; }

@keyframes heroFloatA { to { transform: translate3d(12vw, 8vh, 0) scale(1.08); } }
@keyframes heroFloatB { to { transform: translate3d(-9vw, 10vh, 0) scale(1.12); } }
@keyframes heroFloatC { to { transform: translate3d(7vw, -10vh, 0) scale(0.92); } }
@keyframes heroPulse { to { transform: scale(1.12) translate3d(-2%, 3%, 0); opacity: 0.75; } }

/* ---------- 27. Contrast and focus pass ---------- */
.nav-link:focus-visible,
.footer-nav a:focus-visible,
.social-link:focus-visible,
.whatsapp-float:focus-visible,
.btn:focus-visible,
.copy-btn:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

.lede { color: #574b40; }
.brand-tag { color: #574b40; }
.eyebrow { color: #5a1821; }
.btn-outline { color: var(--green-deep); border-color: var(--green-deep); background: #fffdf8; }
.btn-outline:hover { background: var(--green-deep); color: #fff; }

/* ---------- 28. Social links / floating WhatsApp ---------- */
.footer-social { margin-top: 22px; }
.footer-social-label { display:block; font-weight:700; font-size:13px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:10px; color:#e3c9a8; }
.social-links { display:flex; gap:10px; align-items:center; }
.social-link { width:40px; height:40px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.28); border-radius:50%; color:#fff; background:rgba(255,255,255,.08); transition:transform .2s ease, background-color .2s ease, border-color .2s ease; }
.social-link:hover { transform:translateY(-3px); background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.55); }
.social-link svg { width:20px; height:20px; fill:currentColor; stroke:currentColor; stroke-width:1.8; }
.social-link svg rect { fill:none; }
.social-link svg circle { fill:none; stroke:currentColor; stroke-width:1.8; }
.social-link .social-fill { fill:currentColor; stroke:none; }
.social-link .social-cut, .whatsapp-float .social-cut { fill:var(--green-deep); stroke:none; }

.whatsapp-float { position:fixed; right:20px; bottom:20px; z-index:115; display:flex; align-items:center; gap:9px; min-height:50px; padding:0 17px 0 13px; border-radius:999px; background:#1f9d55; color:#fff; font-weight:700; box-shadow:0 12px 30px rgba(0,0,0,.22); transition:transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform:translateY(-3px); box-shadow:0 16px 34px rgba(0,0,0,.27); }
.whatsapp-float svg { width:25px; height:25px; fill:currentColor; stroke:currentColor; stroke-width:1.6; }

/* ---------- 29. Legal / 404 ---------- */
.legal-content { max-width: 850px; }
.legal-content h2 { margin-top: 42px; }
.legal-content a { color: var(--maroon); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.error-page { min-height: 62vh; display:grid; place-items:center; text-align:center; padding:100px 0; background:var(--cream); }
.error-code { display:block; font-family:var(--font-title); font-size:clamp(90px,18vw,180px); line-height:.8; color:var(--maroon); font-weight:800; margin-bottom:35px; }
.error-page h1 { font-size:clamp(34px,5vw,54px); }
.error-page .lede { margin:0 auto 28px; }
.error-page .cta-actions { justify-content:center; }

@media (max-width: 640px) {
  .whatsapp-float { right:14px; bottom:14px; min-height:48px; padding-right:14px; }
  .whatsapp-float span { font-size:14px; }
  .footer-social { margin-top:18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-glow { animation:none; }
  .social-link:hover, .whatsapp-float:hover { transform:none; }
}

/* ========================================================================== 
   30. 2026 premium redesign pass
   Applied in-place to the existing vanilla stack. This layer replaces the
   generic card/gradient language with an editorial, field-journal system.
   ========================================================================== */

:root {
  --forest-950: #17251d;
  --forest-900: #203128;
  --forest-800: #2c4035;
  --paper: #f5f0e6;
  --paper-2: #ece4d5;
  --paper-3: #e3dac9;
  --ink: #25251f;
  --ink-soft: #5f5e54;
  --accent: #a84332;
  --accent-dark: #813427;
  --line: rgba(37, 37, 31, .16);
  --line-dark: rgba(255,255,255,.18);
  --green-deep: var(--forest-950);
  --green-mid: var(--forest-800);
  --green-light: #dfe5dc;
  --maroon: var(--accent);
  --maroon-dark: var(--accent-dark);
  --stripe: var(--accent);
  --stripe-dark: var(--accent-dark);
  --cream: var(--paper);
  --cream-alt: var(--paper-2);
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(23,37,29,.14);
  --z-base: 1;
  --z-header: 100;
  --z-overlay: 105;
  --z-drawer: 110;
  --z-float: 115;
  --z-skip: 120;
}

html { background: var(--paper); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  animation: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 116;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

h1,h2,h3,h4 {
  color: var(--forest-950);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { line-height: .98; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.03; }
h3 { line-height: 1.15; }
p { text-wrap: pretty; }
.wrap { max-width: 1320px; padding-inline: clamp(20px, 4vw, 64px); }
.wrap-narrow { max-width: 860px; }
.section { padding: clamp(84px, 9vw, 144px) 0 clamp(104px, 11vw, 168px); }
.section-tight { padding: 72px 0 88px; }
.section-alt { background: var(--paper-2); }
.section-deep { background: var(--forest-950); }
.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head .lede { margin-top: 18px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.72; max-width: 62ch; color: var(--ink-soft); }
.eyebrow, .hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: none;
  font-variant: small-caps;
}
.eyebrow { color: var(--accent-dark); }

/* Header: flatter, quieter and more editorial. */
.site-header {
  z-index: var(--z-header);
  background: rgba(245,240,230,.91);
  border-bottom: 1px solid rgba(37,37,31,.10);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(120%);
}
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(23,37,29,.07); }
.header-inner { max-width: 1440px; min-height: 82px; padding-inline: clamp(20px, 4vw, 64px); }
.brand { gap: 13px; }
.brand-mark { width: 44px; height: 44px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.brand-logo-img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-title); font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.brand-tag { font-size: 10px; color: var(--ink-soft); letter-spacing: .03em; }
.nav-list { gap: 4px; }
.nav-link { padding: 12px 10px; font-size: 13px; font-weight: 600; color: #4f5149; }
.nav-link::after { left: 10px; right: 10px; bottom: 8px; height: 1px; background: var(--accent); }
.nav-link.is-current { color: var(--forest-950); }

/* Buttons use restrained geometry instead of universal pills. */
.btn { border-radius: 8px; min-height: 48px; padding: 12px 20px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; transition: transform .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-donate, .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 12px 28px rgba(129,52,39,.16); }
.btn-donate:hover, .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 16px 34px rgba(129,52,39,.2); }
.btn-outline { background: transparent; color: var(--forest-950); border-color: rgba(23,37,29,.45); }
.btn-outline:hover { background: var(--forest-950); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.52); }
.btn-outline-light:hover { background: #fff; color: var(--forest-950); }

/* Hero: no AI gradient. An asymmetric field-journal composition instead. */
.hero {
  min-height: min(800px, 86dvh);
  display: flex;
  align-items: center;
  padding: clamp(72px, 8vw, 120px) 0 64px;
  background: var(--forest-950);
  isolation: isolate;
}
.hero-shader-bg {
  opacity: 1;
  background:
    radial-gradient(ellipse at 77% 28%, rgba(168,67,50,.18), transparent 24%),
    radial-gradient(ellipse at 86% 86%, rgba(255,255,255,.055), transparent 28%),
    var(--forest-950);
}
.hero-shader-bg::after {
  content: "";
  position: absolute;
  width: 44vw;
  max-width: 680px;
  aspect-ratio: 1;
  right: -10vw;
  top: 8%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(255,255,255,.012);
}
.hero-orb,.hero-glow { display: none; }
.hero-scrim { background: linear-gradient(90deg, rgba(23,37,29,.08) 0 58%, rgba(23,37,29,.36)); }
.hero-grid { grid-template-columns: minmax(0,1.12fr) minmax(300px,.72fr); gap: clamp(54px,8vw,130px); padding-bottom: 0; }
.hero-copy { max-width: 760px; }
.hero-eyebrow { color: #d8c7ad; margin-bottom: 25px; }
.hero-title { font-size: clamp(3.4rem, 7.1vw, 7.1rem); line-height: .9; letter-spacing: -.055em; margin-bottom: 30px; }
.hero-title mark { color: #e8c3b9; }
.hero-sub { font-size: clamp(1rem,1.4vw,1.17rem); line-height: 1.75; color: rgba(255,255,255,.74); max-width: 58ch; }
.typed { font-family: var(--font-body); color: #d8c7ad; margin: 26px 0 30px; }
.typed b { color: #fff; font-weight: 600; }
.hero-actions { gap: 12px; }
.hero-figure { margin-top: 52px; }
.hero-figure .img-ph { min-height: 430px; border: 1px solid rgba(255,255,255,.16); border-radius: 42px 8px 42px 8px; background: rgba(255,255,255,.045); padding: 36px; text-align: left; justify-content: flex-end; box-shadow: inset 0 1px rgba(255,255,255,.08); }
.hero-figure .img-ph::before { content: ""; position:absolute; inset: 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 30px 4px 30px 4px; pointer-events:none; }
.hero-figure .img-ph-fallback { align-items: flex-start; max-width: 28ch; position:relative; z-index:1; }
.img-ph-kicker { font-size: 11px; letter-spacing: .15em; color: #cdbca2; font-weight:700; font-variant: small-caps; }
.img-ph-statement { font-family: var(--font-title); font-size: clamp(2rem, 3.3vw, 3.35rem); line-height: 1; letter-spacing: -.04em; color:#fff; font-weight:600; }
.hero-figure .img-ph-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.66); }
.hero-stat-card { left: -48px; bottom: -42px; max-width: 260px; border-radius: 3px 18px 3px 18px; background: var(--paper); box-shadow: var(--shadow); padding: 24px 26px; }
.hero-stat-card .stat-num { font-size: 42px; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.hero-stat-card .stat-label { color: var(--ink-soft); line-height:1.55; }
.wave { display:none; }

/* Editorial intro with stronger whitespace and optical asymmetry. */
.intro-block { grid-template-columns: minmax(220px,.62fr) minmax(0,1.38fr); gap: clamp(50px,9vw,138px); }
.intro-block .eyebrow-col { top: 128px; }
.intro-block .eyebrow-col h2 { max-width: 10ch; }
.intro-block > div:last-child { max-width: 720px; }
.intro-block > div:last-child > p:not(.lede) { max-width: 65ch; color: #46473f; }

/* Replace generic 3-up cards with a broken two-column grid. */
.ways-grid { grid-template-columns: repeat(12,1fr); gap: 16px; align-items: stretch; margin-top: 52px; }
.way-card { grid-column: span 5; background: rgba(255,255,255,.42); border: 0; border-radius: 18px 4px 18px 4px; padding: clamp(28px,4vw,48px); box-shadow: inset 0 1px rgba(255,255,255,.6); display:flex; flex-direction:column; min-height: 255px; }
.way-card:first-child { grid-column: span 7; grid-row: span 2; min-height: 526px; justify-content:flex-end; background: var(--forest-950); color:#fff; }
.way-card:first-child h3 { color:#fff; font-size:clamp(1.8rem,3vw,3rem); }
.way-card:first-child p { color:rgba(255,255,255,.67); max-width:48ch; }
.way-card:hover { border-color: transparent; box-shadow: inset 0 1px rgba(255,255,255,.65), 0 24px 54px rgba(23,37,29,.10); transform: translateY(-4px); }
.way-icon { width:auto; height:auto; align-self:flex-start; background:transparent; border-radius:0; color:var(--accent); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; letter-spacing:.12em; margin-bottom:auto; font-variant-numeric:tabular-nums; }
.way-card:first-child .way-icon { color:#d9aa9f; }
.way-card h3 { font-size:clamp(1.3rem,2vw,1.8rem); margin-top:36px; }
.way-card p { font-size:14px; line-height:1.7; }

/* Programmes read like a publication index rather than stacked cards. */
.focus-list { border-top: 1px solid var(--line); }
.focus-item { display:grid; grid-template-columns: 86px minmax(0,1fr) minmax(220px,320px); gap: clamp(24px,5vw,72px); padding: 46px 0 56px; border-bottom:1px solid var(--line); align-items:start; }
.focus-item:hover { background: transparent; }
.focus-num { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; letter-spacing:.12em; color:var(--accent-dark); font-variant-numeric:tabular-nums; }
.focus-body { display: contents; }
.focus-body h3 { grid-column:2; font-size:clamp(1.65rem,2.5vw,2.6rem); max-width:18ch; }
.focus-body p { grid-column:2; max-width:62ch; margin-top:70px; color:var(--ink-soft); }
.focus-body .media-compact { grid-column:3; grid-row:1 / span 2; min-height:220px; max-width:none; margin:0; }

/* Missing real photos become intentional editorial field-note panels. */
.img-ph { min-height:280px; border:0; border-radius:24px 5px 24px 5px; background: var(--paper-3); text-align:left; padding:32px; justify-content:flex-end; box-shadow: inset 0 1px rgba(255,255,255,.55); }
.img-ph::after { content:"MSS"; position:absolute; right:22px; top:18px; font-family:var(--font-title); font-size:clamp(2.5rem,6vw,5.8rem); color:rgba(23,37,29,.07); letter-spacing:-.06em; }
.img-ph-fallback { align-items:flex-start; position:relative; z-index:1; }
.img-ph-file { font-family:var(--font-body); font-size:10px; letter-spacing:.15em; text-transform:uppercase; color:var(--accent-dark); }
.img-ph-desc { color:#55584f; font-size:14px; line-height:1.62; max-width:38ch; }
.img-ph-round { border-radius: 36% 8% 36% 8%; width: 220px; min-height: 240px; }
.media-wide { min-height: 340px; margin-bottom:48px; }

/* Vision panels and stat surfaces are differentiated without generic shadows. */
.vm-grid { gap: 18px; margin-top:48px; }
.vm-panel { border:0; border-radius:28px 5px 28px 5px; padding:clamp(34px,5vw,62px); background:var(--paper-2); box-shadow:inset 0 1px rgba(255,255,255,.55); }
.vm-panel:nth-child(2) { background:var(--forest-950); color:#dce3dc; transform:translateY(40px); }
.vm-panel:nth-child(2) h3 { color:#fff; }
.timeline { max-width:900px; }
.timeline::before { background:rgba(23,37,29,.16); }
.timeline-item::before { background:var(--paper-2); border-color:var(--accent); }
.timeline-item .when { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-variant-numeric:tabular-nums; }

.impact-grid { gap:1px; background:var(--line); border:1px solid var(--line); border-radius:22px 4px 22px 4px; overflow:hidden; }
.impact-cell { background:var(--paper); border:0; border-radius:0; padding:clamp(28px,5vw,52px); }
.impact-cell .stat-value,.stat-hero .stat-num { font-family:var(--font-title); font-variant-numeric:tabular-nums; letter-spacing:-.05em; }
.quote-panel { border-radius:28px 5px 28px 5px; background:var(--forest-950); padding:clamp(38px,6vw,74px); }
.quote-panel p { font-size:clamp(1.65rem,3vw,3rem); letter-spacing:-.035em; }

/* Donation/support choices: rows with alignment rather than equal towers. */
.tier-grid { grid-template-columns:1fr; gap:0; border-top:1px solid var(--line); }
.tier-card { display:grid; grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr); gap:40px; align-items:start; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; padding:30px 0 36px; }
.tier-card h3 { font-size:clamp(1.15rem,2vw,1.5rem); }
.tier-card p { max-width:62ch; }
.pay-panel,.bank-panel,.contact-form { border:0; border-radius:24px 5px 24px 5px; background:rgba(255,255,255,.42); box-shadow:inset 0 1px rgba(255,255,255,.7); }

.process-ribbon { gap:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.process-step { padding:30px 24px; }
.process-step::after { opacity:.35; }
.tag-list { gap:8px; }
.tag-list li { border-radius:5px; background:rgba(255,255,255,.38); border:1px solid rgba(37,37,31,.12); }

/* Page headers maintain the same dark world as the homepage. */
.page-head { background:var(--forest-950); padding:clamp(66px,8vw,110px) 0 clamp(82px,10vw,138px); position:relative; overflow:hidden; }
.page-head::after { content:""; position:absolute; width:42vw; aspect-ratio:1; border:1px solid rgba(255,255,255,.08); border-radius:50%; right:-12vw; top:-65%; box-shadow:0 0 0 72px rgba(255,255,255,.018),0 0 0 144px rgba(255,255,255,.01); }
.page-title { font-size:clamp(3rem,7vw,6.7rem); line-height:.92; letter-spacing:-.055em; max-width:12ch; position:relative; z-index:1; }
.page-lede { max-width:58ch; color:rgba(255,255,255,.68); position:relative; z-index:1; }
.breadcrumb { position:relative; z-index:1; }

/* CTA becomes left-aligned, avoiding repeated centered symmetry. */
.cta-band { background:var(--accent-dark); text-align:left; padding:clamp(72px,8vw,110px) 0; }
.cta-band .wrap-narrow { max-width:1100px; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr); column-gap:70px; align-items:end; }
.cta-band h2 { max-width:15ch; margin:0; font-size:clamp(2.3rem,4.8vw,4.7rem); }
.cta-band p { max-width:48ch; margin:0 0 24px; }
.cta-actions { justify-content:flex-start; }

/* Footer: compact, not a four-column link farm. */
.site-footer { background:var(--forest-950); padding:72px 0 28px; }
.footer-grid { grid-template-columns:minmax(0,1.5fr) minmax(160px,.55fr) minmax(220px,.75fr); gap:clamp(32px,6vw,90px); }
.footer-name { font-size:24px; letter-spacing:-.03em; }
.footer-heading,.footer-social-label { text-transform:none; font-variant:small-caps; letter-spacing:.12em; }
.social-link { border-radius:8px; }
.whatsapp-float { z-index:var(--z-float); border-radius:10px; background:#246b45; box-shadow:0 14px 36px rgba(23,37,29,.25); }
.whatsapp-float:hover { box-shadow:0 18px 42px rgba(23,37,29,.30); }

.contact-location { text-align:left; }
.error-page { background:var(--paper); text-align:left; }
.error-page .wrap-narrow { margin-left:clamp(20px,8vw,140px); margin-right:auto; }
.error-page .lede { margin-left:0; }
.error-code { color:var(--accent); font-weight:600; }

/* Accessibility states and cleaner layers. */
.skip-link:focus { z-index:var(--z-skip); border-radius:6px; background:var(--forest-950); }
.nav-overlay { z-index:var(--z-overlay); }
.side-nav { z-index:var(--z-drawer); background:var(--forest-950); }
:focus-visible { outline-color:#f0c46f !important; }

@media (max-width: 1020px) {
  .primary-nav { display:none; }
  .menu-toggle { display:block; }
  .hero { min-height:auto; }
  .hero-grid { grid-template-columns:1fr; gap:42px; }
  .hero-copy { max-width:850px; }
  .hero-figure { max-width:650px; margin-top:0; margin-left:auto; width:88%; }
  .hero-stat-card { left:-40px; }
  .focus-item { grid-template-columns:66px minmax(0,1fr); }
  .focus-body .media-compact { grid-column:2; grid-row:auto; max-width:430px; }
  .focus-body p { margin-top:0; }
}

@media (max-width: 760px) {
  body { font-size:15px; }
  .section { padding:76px 0 92px; }
  .header-inner { min-height:72px; }
  .brand-tag { display:none; }
  .hero { padding-top:72px; }
  .hero-title { font-size:clamp(3rem,15vw,5.2rem); }
  .hero-figure { width:100%; }
  .hero-figure .img-ph { min-height:340px; border-radius:28px 6px 28px 6px; }
  .hero-stat-card { position:relative; left:18px; bottom:auto; margin:-34px 22px 0 auto; width:calc(100% - 42px); }
  .intro-block { grid-template-columns:1fr; gap:34px; }
  .intro-block .eyebrow-col { position:static; }
  .intro-block .eyebrow-col h2 { max-width:14ch; }
  .ways-grid { grid-template-columns:1fr; }
  .way-card,.way-card:first-child { grid-column:auto; grid-row:auto; min-height:260px; }
  .way-card:first-child { min-height:390px; }
  .focus-item { grid-template-columns:42px minmax(0,1fr); gap:18px; padding:36px 0 44px; }
  .focus-body h3,.focus-body p,.focus-body .media-compact { grid-column:2; }
  .focus-body .media-compact { min-height:200px; width:100%; }
  .vm-panel:nth-child(2) { transform:none; }
  .tier-card { grid-template-columns:1fr; gap:8px; }
  .cta-band .wrap-narrow { display:block; }
  .cta-band h2 { margin-bottom:22px; }
  .footer-grid { grid-template-columns:1fr; }
  .whatsapp-float span { display:none; }
  .whatsapp-float { width:52px; height:52px; padding:0; justify-content:center; border-radius:12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}

/* Final composition corrections after the redesign audit. */
.cta-band .wrap-narrow > h2 { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.cta-band .wrap-narrow > p { grid-column: 2; grid-row: 1; }
.cta-band .wrap-narrow > .cta-actions { grid-column: 2; grid-row: 2; }
.cursor-glow,
.drift-shape { display: none !important; }
@media (max-width: 760px) {
  .cta-band .wrap-narrow > h2,
  .cta-band .wrap-narrow > p,
  .cta-band .wrap-narrow > .cta-actions { grid-column: auto; grid-row: auto; }
}


/* 2026 refinement: quieter, warmer, more human visual hierarchy */
.hero { background: var(--forest-950); position: relative; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:0; background: linear-gradient(115deg, rgba(255,255,255,.045), transparent 42%), repeating-linear-gradient(90deg, transparent 0 118px, rgba(255,255,255,.022) 119px 120px); pointer-events:none; }
.hero-scrim { display:none; }
.hero-grid { position:relative; z-index:1; }
.hero-title { max-width: 10.5ch; }
.hero-sub { max-width: 54ch; }
.hero-figure .img-ph { background: rgba(255,250,242,.055); border-color: rgba(255,250,242,.18); }
.hero-stat-card { border-left: 4px solid var(--accent); }
.section-head { max-width: 760px; }
.section-head h2, .intro-block h2 { max-width: 18ch; }
.way-card { box-shadow:none; }
.way-card:hover { transform: translateY(-2px); }
.cta-band { background: var(--paper-2); color: var(--ink); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cta-band h2 { color: var(--forest-950); }
.cta-band p { color: var(--ink-soft); }
.cta-band .btn-outline-light { color:var(--forest-950); border-color:rgba(23,37,29,.4); }
.cta-band .btn-outline-light:hover { background:var(--forest-950); color:#fff; }
.site-footer { border-top: 1px solid rgba(255,255,255,.12); }
.legal-content { max-width: 780px; }
.legal-content h2 { margin-top: 2.4rem; }
.page-lede { max-width: 62ch; }
@media (max-width: 860px) {
  .hero-title { max-width: 12ch; }
  .hero-figure { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Custom 404: helpful, calm, and consistent with the editorial redesign. */
.error-page { min-height: 68vh; position:relative; overflow:hidden; padding:clamp(88px,12vw,150px) 0; }
.error-page::after { content:""; position:absolute; width:clamp(220px,30vw,420px); height:clamp(220px,30vw,420px); right:-8vw; top:50%; transform:translateY(-50%); border:1px solid var(--line); border-radius:50%; box-shadow:inset 0 0 0 28px rgba(168,67,50,.025), inset 0 0 0 29px var(--line); pointer-events:none; }
.error-page .wrap-narrow { position:relative; z-index:1; }
.error-kicker { display:inline-flex; align-items:center; gap:10px; margin-bottom:20px; color:var(--accent-dark); font-size:.78rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.error-kicker::before { content:""; width:28px; height:2px; background:var(--accent); }
.error-code { font-size:clamp(96px,16vw,170px); line-height:.72; letter-spacing:-.08em; margin:0 0 34px -8px; }
.error-page h1 { max-width:12ch; margin-bottom:22px; }
.error-page .lede { max-width:55ch; color:var(--ink-soft); }
.error-page .cta-actions { align-items:center; justify-content:flex-start; flex-wrap:wrap; margin-top:30px; }
.error-page .text-link { display:inline-flex; min-height:48px; align-items:center; gap:8px; color:var(--forest-950); font-weight:800; text-decoration:none; }
.error-page .text-link:hover { color:var(--accent-dark); }
.error-note { max-width:58ch; margin:34px 0 0; padding-top:22px; border-top:1px solid var(--line); color:var(--ink-soft); font-size:.92rem; }
.error-note a { color:var(--accent-dark); font-weight:700; }
@media (max-width:760px) {
  .error-page { min-height:64vh; padding:76px 0 100px; }
  .error-page::after { width:220px; height:220px; right:-125px; top:22%; }
  .error-code { font-size:clamp(86px,28vw,130px); margin-left:-4px; }
  .error-page h1 { max-width:14ch; }
  .error-page .cta-actions { align-items:stretch; flex-direction:column; }
  .error-page .cta-actions .btn { width:100%; justify-content:center; }
  .error-page .text-link { justify-content:center; }
}


/* Final homepage corrections: stable stats, calmer type, no card overlap. */
.hero-title {
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.05em;
}
.hero-figure {
  margin-top: 38px;
}
.hero-figure .img-ph {
  min-height: 430px;
}
.img-ph-statement {
  font-size: clamp(1.85rem, 2.7vw, 2.75rem);
  line-height: 1.02;
  max-width: 9ch;
}
.hero-stat-card {
  position: relative;
  left: -48px;
  bottom: auto;
  margin-top: 18px;
  max-width: 260px;
  z-index: 3;
}
.hero-stat-card .stat-num {
  font-size: 40px;
  white-space: nowrap;
}

@media (max-width: 1020px) {
  .hero-title { font-size: clamp(3rem, 7.2vw, 5.2rem); }
  .hero-stat-card { left: 0; }
}

@media (max-width: 760px) {
  .hero-title { font-size: clamp(2.8rem, 13vw, 4.6rem); }
  .hero-figure { margin-top: 12px; }
  .hero-figure .img-ph { min-height: 340px; }
  .hero-stat-card {
    left: 0;
    width: 100%;
    max-width: none;
    margin: 16px 0 0;
  }
  .img-ph-statement { font-size: clamp(1.8rem, 8vw, 2.35rem); }
}


/* Floating action separation: WhatsApp and back-to-top never occupy the same zone. */
.top-btn { bottom: 22px; right: 22px; }
.whatsapp-float { bottom: 84px; right: 20px; }
@media (max-width: 760px) {
  .top-btn { bottom: 16px; right: 14px; }
  .whatsapp-float { bottom: 78px; right: 14px; }
}

/* Gallery page: cinematic archive system. */
.gallery-page {
  --gallery-ink: #f8f4eb;
  --gallery-muted: rgba(248,244,235,.68);
  --gallery-line: rgba(248,244,235,.15);
  background: #101c15;
  color: var(--gallery-ink);
  /* Keep horizontal animation overflow contained without disabling page scrolling. */
  overflow-x: clip;
  overflow-y: visible;
}
.gallery-page h1, .gallery-page h2, .gallery-page h3, .gallery-page h4 {
  font-family: "Cabinet Grotesk", "Manrope", sans-serif;
  letter-spacing: -.055em;
}
.gallery-hero {
  min-height: 82vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 150px 0 120px;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 20%, rgba(174,76,58,.2), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(113,145,113,.14), transparent 35%),
    #101c15;
}
.gallery-hero::before {
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,28,21,.28), rgba(16,28,21,.94)), repeating-linear-gradient(90deg, transparent 0 118px, rgba(255,255,255,.028) 119px 120px);
  z-index:-1;
}
.gallery-hero .wrap { position:relative; z-index:2; text-align:center; }
.gallery-hero-inner { max-width: 1180px; margin: 0 auto; }
.gallery-hero-kicker {
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#e3c9a8;
  font-size:12px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:28px;
}
.gallery-hero-kicker::before, .gallery-hero-kicker::after { content:""; width:44px; height:1px; background:rgba(227,201,168,.6); }
.gallery-hero-title {
  max-width: 980px;
  margin: 0 auto 28px;
  font-size: clamp(3.4rem, 8vw, 8.2rem);
  line-height: .86;
  color:#fffdf8;
}
.gallery-inline-image {
  display:inline-block;
  width: clamp(86px, 9vw, 138px);
  height: clamp(46px, 5vw, 74px);
  margin: 0 .08em;
  vertical-align: .08em;
  border-radius: 999px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.24);
  background: url('../assets/logo-mark.jpg') center/cover no-repeat;
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}
.gallery-hero-lede { max-width: 650px; margin:0 auto; color:var(--gallery-muted); font-size:clamp(16px,1.5vw,20px); }
.gallery-hero-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-top:34px; }
.gallery-hero-actions .btn-outline-light { color:#fff; border-color:rgba(255,255,255,.55); }
.gallery-hero-actions .btn-outline-light:hover { color:#101c15; background:#fff; }
.gallery-marquee { overflow:hidden; border-top:1px solid var(--gallery-line); border-bottom:1px solid var(--gallery-line); background:#16251b; }
.gallery-marquee-track { display:flex; width:max-content; gap:42px; padding:18px 0; will-change:transform; }
.gallery-marquee-item { color:rgba(248,244,235,.56); font-size:clamp(15px,1.4vw,20px); letter-spacing:.04em; white-space:nowrap; }
.gallery-marquee-item strong { color:#e3c9a8; font-weight:700; }
.gallery-intro { padding:clamp(100px,12vw,180px) 0; background:#fbf7f0; color:#241f1c; }
.gallery-intro-grid { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); gap:clamp(40px,8vw,120px); align-items:end; }
.gallery-intro h2 { font-size:clamp(2.8rem,5vw,5.8rem); line-height:.9; max-width:10ch; }
.gallery-intro p { max-width:62ch; color:#6b5f52; font-size:19px; }
.gallery-archive { padding:clamp(100px,12vw,180px) 0; background:#101c15; }
.gallery-archive-head { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:40px; align-items:end; margin-bottom:70px; }
.gallery-archive-head h2 { font-size:clamp(3rem,6vw,6.2rem); line-height:.86; max-width:9ch; color:#fffdf8; }
.gallery-archive-head p { color:var(--gallery-muted); max-width:55ch; }
.gallery-bento { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); grid-auto-flow:dense; gap:0; }
.gallery-event { position:relative; overflow:hidden; border:1px solid var(--gallery-line); background:#16251b; min-height:680px; }
.gallery-event:nth-child(odd) { grid-column:span 7; }
.gallery-event:nth-child(even) { grid-column:span 5; }
.gallery-event:nth-child(3n) { grid-column:span 5; }
.gallery-event:nth-child(3n+1) { grid-column:span 7; }
.gallery-event-inner { height:100%; display:flex; flex-direction:column; }
.gallery-event-copy { padding:clamp(28px,4vw,54px); display:flex; flex-direction:column; min-height:270px; }
.gallery-event-date { font-family:"Cabinet Grotesk","Manrope",sans-serif; font-size:13px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#e3c9a8; margin-bottom:18px; }
.gallery-event h3 { color:#fffdf8; font-size:clamp(2rem,3.4vw,4rem); line-height:.9; max-width:10ch; margin-bottom:18px; }
.gallery-event p { color:var(--gallery-muted); max-width:52ch; margin:0; }
.gallery-event-meta { margin-top:auto; padding-top:22px; color:rgba(248,244,235,.48); font-size:13px; letter-spacing:.06em; }
.gallery-event-photos { display:grid; grid-template-columns:1.35fr .65fr; min-height:410px; }
.gallery-event:nth-child(even) .gallery-event-photos { grid-template-columns:.65fr 1.35fr; }
.gallery-photo { position:relative; min-height:210px; overflow:hidden; background:#24352a; border-top:1px solid var(--gallery-line); }
.gallery-photo + .gallery-photo { border-left:1px solid var(--gallery-line); }
.gallery-photo img { width:100%; height:100%; min-height:210px; object-fit:cover; transition:transform .9s cubic-bezier(.2,.7,.2,1), filter .7s ease; filter:grayscale(.18) contrast(1.05); }
.gallery-event:hover .gallery-photo img { transform:scale(1.05); }
.gallery-placeholder-content { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:24px; color:rgba(248,244,235,.7); background:linear-gradient(135deg, rgba(255,255,255,.045), rgba(0,0,0,.08)); }
.gallery-placeholder-content::before { content:""; width:46px; height:46px; border:1px solid rgba(255,255,255,.25); border-radius:50%; margin-bottom:14px; }
.gallery-placeholder-content span { font-size:11px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.gallery-placeholder-content strong { margin-top:7px; font-family:"Cabinet Grotesk","Manrope",sans-serif; font-size:14px; color:#fffdf8; }
.gallery-template-note { margin:34px 0 0; padding:22px 24px; border:1px dashed rgba(227,201,168,.35); color:rgba(248,244,235,.64); font-size:14px; }
.gallery-template-note strong { color:#e3c9a8; }
.gallery-stack { padding:clamp(100px,12vw,180px) 0; background:#e7decd; color:#241f1c; }
.gallery-stack-grid { display:grid; grid-template-columns:minmax(0,.55fr) minmax(0,1.45fr); gap:clamp(44px,8vw,110px); align-items:start; }
.gallery-stack-intro { position:relative; }
.gallery-stack-intro h2 { font-size:clamp(3rem,5.5vw,6rem); line-height:.88; max-width:8ch; }
.gallery-stack-intro p { max-width:38ch; color:#6b5f52; }
.gallery-stack-list { position:relative; min-height:1000px; }
.gallery-stack-card { position:relative; margin-bottom:38px; padding:32px; background:#fbf7f0; border:1px solid rgba(36,31,28,.12); box-shadow:0 18px 50px rgba(36,31,28,.08); }
.gallery-stack-card:nth-child(2) { margin-left:8%; }
.gallery-stack-card:nth-child(3) { margin-left:16%; }
.gallery-stack-card:nth-child(4) { margin-left:5%; }
.gallery-stack-card:nth-child(5) { margin-left:12%; }
.gallery-stack-card:nth-child(6) { margin-left:2%; }
.gallery-stack-card h3 { font-size:clamp(1.9rem,3vw,3.2rem); line-height:.92; margin-bottom:12px; }
.gallery-stack-card p { color:#6b5f52; max-width:60ch; }
.gallery-stack-year { display:block; font-family:"Cabinet Grotesk","Manrope",sans-serif; font-size:12px; font-weight:800; letter-spacing:.14em; color:#6b1f28; text-transform:uppercase; margin-bottom:16px; }
.gallery-card-photo-row { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:24px; }
.gallery-card-photo { min-height:210px; }
.gallery-card-photo .gallery-placeholder-content { color:#6b5f52; background:#efe7d9; }
.gallery-card-photo .gallery-placeholder-content strong { color:#241f1c; }
.gallery-card-photo .gallery-placeholder-content::before { border-color:rgba(36,31,28,.25); }
.gallery-action { padding:clamp(90px,11vw,150px) 0; background:#6b1f28; color:#fff; }
.gallery-action-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr); gap:50px; align-items:end; }
.gallery-action h2 { color:#fff; font-size:clamp(3rem,6vw,6.2rem); line-height:.88; max-width:10ch; }
.gallery-action p { color:rgba(255,255,255,.75); max-width:48ch; }
.gallery-action .btn-outline-light { border-color:rgba(255,255,255,.55); color:#fff; }
.gallery-action .btn-outline-light:hover { background:#fff; color:#6b1f28; }
.gallery-action .cta-actions { margin-top:26px; }
.gallery-page .site-footer { background:#101c15; }
@media (max-width: 900px) {
  .gallery-intro-grid, .gallery-archive-head, .gallery-stack-grid, .gallery-action-grid { grid-template-columns:1fr; }
  .gallery-bento { display:grid; grid-template-columns:1fr; }
  .gallery-event, .gallery-event:nth-child(odd), .gallery-event:nth-child(even), .gallery-event:nth-child(3n), .gallery-event:nth-child(3n+1) { grid-column:auto; min-height:auto; }
  .gallery-event-photos, .gallery-event:nth-child(even) .gallery-event-photos { grid-template-columns:1fr 1fr; }
  .gallery-stack-list { min-height:auto; }
  .gallery-stack-card:nth-child(n) { margin-left:0; }
}
@media (max-width: 640px) {
  .gallery-hero { min-height:76vh; padding:120px 0 90px; }
  .gallery-hero-title { font-size:clamp(3.2rem,15vw,5.5rem); }
  .gallery-inline-image { width:76px; height:44px; }
  .gallery-event-copy { padding:28px 22px; }
  .gallery-event-photos, .gallery-event:nth-child(even) .gallery-event-photos, .gallery-card-photo-row { grid-template-columns:1fr; }
  .gallery-photo + .gallery-photo { border-left:0; }
  .gallery-photo { min-height:260px; }
  .gallery-card-photo { min-height:240px; }
}

/* Gallery revision: clear wordmark, practical photo ratios, and an explicit scroll cue. */
.gallery-site-header { background: #101c15; }
.gallery-brand { min-width: 150px; }
.gallery-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.gallery-hero-topline .gallery-hero-kicker { margin-bottom: 0; }
.gallery-hero-count {
  color: rgba(248,244,235,.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gallery-scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.gallery-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.72), rgba(255,255,255,0));
  transform-origin: top;
  animation: gallery-scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes gallery-scroll-pulse {
  0%,100% { transform: scaleY(.55); opacity: .45; }
  50% { transform: scaleY(1); opacity: 1; }
}
.gallery-archive-kicker {
  display: block;
  margin-bottom: 18px;
  color: #e3c9a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.gallery-event-photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
}
.gallery-event:nth-child(even) .gallery-event-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-photo,
.gallery-photo img {
  aspect-ratio: 3 / 2;
  min-height: 0;
}
.gallery-photo { height: auto; }
.gallery-photo img { display: block; object-fit: cover; }
.gallery-placeholder-content { min-height: 0; }
.gallery-card-photo { aspect-ratio: 3 / 2; min-height: 0; }
.gallery-stack-year { color: #6b1f28; }
@media (max-width: 900px) {
  .gallery-event-photos,
  .gallery-event:nth-child(even) .gallery-event-photos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-photo { min-height: 0; }
}
@media (max-width: 640px) {
  .gallery-hero { min-height: 82vh; padding: 120px 0 100px; }
  .gallery-hero-topline { align-items: flex-start; flex-direction: column; gap: 10px; }
  .gallery-hero-title { font-size: clamp(3rem, 14vw, 5.2rem); }
  .gallery-scroll-cue { bottom: 24px; }
  .gallery-event-photos,
  .gallery-event:nth-child(even) .gallery-event-photos,
  .gallery-card-photo-row { grid-template-columns: 1fr; }
  .gallery-photo + .gallery-photo { border-left: 0; }
  .gallery-photo,
  .gallery-photo img,
  .gallery-card-photo { aspect-ratio: 3 / 2; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-scroll-line { animation: none; }
}

/* Floating actions: reserve distinct vertical lanes so controls never overlap. */
.top-btn { bottom: 20px; right: 20px; }
.whatsapp-float { bottom: 88px; right: 20px; }
@media (max-width: 760px) {
  .top-btn { bottom: 14px; right: 14px; }
  .whatsapp-float { bottom: 78px; right: 14px; }
}


/* Gallery scroll safety: the document must remain the vertical scroll container. */
html:has(body.gallery-page) {
  overflow-y: auto;
  overscroll-behavior-y: auto;
}
body.gallery-page {
  min-height: 100%;
  touch-action: pan-y;
}
@supports not (overflow: clip) {
  body.gallery-page { overflow-x: hidden; }
}


/* Social floating controls: Facebook above WhatsApp, icon-only. */
.facebook-float,
.whatsapp-float {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(23,37,29,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.facebook-float {
  position: fixed;
  right: 20px;
  bottom: 150px;
  z-index: 116;
  background: #1877f2;
}
.whatsapp-float {
  right: 20px;
  bottom: 88px;
  z-index: 115;
}
.facebook-float:hover,
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(23,37,29,.30);
}
.facebook-float svg,
.whatsapp-float svg {
  width: 25px;
  height: 25px;
}
.facebook-float svg { fill: currentColor; stroke: none; }
.whatsapp-float svg { fill: currentColor; stroke: currentColor; stroke-width: 1.6; }
.facebook-float .social-fill { fill: currentColor; stroke: none; }

@media (max-width: 760px) {
  .facebook-float,
  .whatsapp-float { right: 14px; width: 48px; height: 48px; min-height: 48px; border-radius: 12px; }
  .facebook-float { bottom: 136px; }
  .whatsapp-float { bottom: 78px; }
}

/* Connected image slots: real files replace the designed placeholders automatically. */
.gallery-photo img {
  opacity: 0;
}
.gallery-photo img.is-loaded {
  opacity: 1;
}
.gallery-photo:has(img.is-loaded) .gallery-placeholder-content {
  display: none;
}
.gallery-inline-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.gallery-inline-image img.is-loaded {
  opacity: 1;
}
.img-ph:has(img.is-loaded) .img-ph-fallback {
  display: none;
}

/* Reliable connected-image state: JS adds .has-loaded-image after confirming
   the browser has decoded a real local image. This is intentionally separate
   from :has() so the placeholders work in browsers with older selector support. */
.img-ph.has-loaded-image {
  border-color: transparent;
  background: none;
}
.img-ph.has-loaded-image .img-ph-fallback {
  display: none;
}
.gallery-photo.has-loaded-image .gallery-placeholder-content {
  display: none;
}
.gallery-photo.has-loaded-image {
  background: #24352a;
}
.img-ph img.is-loaded,
.gallery-photo img.is-loaded,
.gallery-inline-image img.is-loaded {
  opacity: 1;
}

/* Gallery archive rework: large, readable year-based archive built around the real photo history. */
.gallery-hero-title { max-width: 11ch; }
.gallery-year-intro { background:#f2ecdf; }
.gallery-year-index { position:sticky; top:72px; z-index:20; background:rgba(16,28,21,.96); border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.1); backdrop-filter:blur(14px); }
.gallery-year-index-inner { display:flex; align-items:center; gap:28px; min-height:72px; overflow:auto; scrollbar-width:none; }
.gallery-year-index-inner::-webkit-scrollbar { display:none; }
.gallery-year-index-label { flex:0 0 auto; color:#e3c9a8; font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.gallery-year-links { display:flex; gap:8px; align-items:center; }
.gallery-year-links a { display:inline-flex; min-width:58px; height:38px; padding:0 13px; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.16); color:#fffdf8; font-size:12px; font-weight:800; letter-spacing:.04em; transition:background .2s ease,border-color .2s ease,transform .2s ease; }
.gallery-year-links a:hover,.gallery-year-links a:focus-visible { background:#e3c9a8; border-color:#e3c9a8; color:#101c15; transform:translateY(-1px); }
.gallery-years { padding:clamp(90px,10vw,150px) 0; background:#101c15; color:#fffdf8; }
.gallery-years-head { display:grid; grid-template-columns:minmax(0,.9fr) minmax(280px,.7fr); gap:60px; align-items:end; margin-bottom:clamp(60px,8vw,110px); }
.gallery-years-head h2 { max-width:9ch; font-size:clamp(3.2rem,6vw,6.4rem); line-height:.86; color:#fffdf8; }
.gallery-years-head p { color:var(--gallery-muted); max-width:48ch; }
.gallery-year { display:grid; grid-template-columns:minmax(150px,.32fr) minmax(0,1.68fr); gap:clamp(24px,5vw,80px); padding:clamp(42px,6vw,80px) 0; border-top:1px solid rgba(255,255,255,.15); scroll-margin-top:145px; }
.gallery-year:first-child { border-top:0; padding-top:0; }
.gallery-year-marker { display:flex; flex-direction:column; align-items:flex-start; position:relative; }
.gallery-year-number { font-family:"Cabinet Grotesk","Manrope",sans-serif; font-size:clamp(4rem,7vw,7rem); line-height:.8; color:#e3c9a8; letter-spacing:-.06em; }
.gallery-year-rule { width:46px; height:1px; background:rgba(227,201,168,.55); margin:26px 0 16px; }
.gallery-year-note { max-width:15ch; color:rgba(248,244,235,.46); font-size:11px; font-weight:800; letter-spacing:.12em; line-height:1.5; text-transform:uppercase; }
.gallery-year-content { min-width:0; }
.gallery-year-copy { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr); column-gap:34px; align-items:start; margin-bottom:32px; }
.gallery-year-date { grid-column:1/-1; color:#e3c9a8; font-size:11px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; margin-bottom:14px; }
.gallery-year-copy h3 { color:#fffdf8; font-size:clamp(2rem,3.4vw,4rem); line-height:.92; max-width:10ch; margin:0; }
.gallery-year-copy p { color:var(--gallery-muted); max-width:48ch; margin:0; }
.gallery-year-details { grid-column:2; display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.gallery-year-details span { color:rgba(248,244,235,.5); font-size:11px; letter-spacing:.08em; text-transform:uppercase; }
.gallery-year-photos { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr); gap:12px; }
.year-photo { position:relative; aspect-ratio:3 / 2; overflow:hidden; margin:0; background:#1b2c21; border:1px solid rgba(255,255,255,.12); cursor:zoom-in; }
.year-photo:nth-child(2) { margin-top:56px; }
.year-photo img { width:100%; height:100%; display:block; object-fit:cover; filter:none; opacity:0; transition:transform .8s cubic-bezier(.2,.7,.2,1),opacity .35s ease,filter .5s ease; }
.year-photo img.is-loaded { opacity:1; }
.year-photo:hover img.is-loaded { transform:scale(1.035); filter:contrast(1.04) saturate(1.02); }
.year-photo .gallery-placeholder-content { min-height:0; color:rgba(248,244,235,.7); background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(0,0,0,.12)); }
.year-photo .gallery-placeholder-content small { margin-top:10px; max-width:24ch; color:rgba(248,244,235,.46); font-size:11px; line-height:1.4; }
.year-photo:has(img.is-loaded) .gallery-placeholder-content { opacity:0; pointer-events:none; }
.gallery-category-strip { padding:clamp(55px,7vw,90px) 0; background:#e7decd; color:#241f1c; }
.gallery-category-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-top:1px solid rgba(36,31,28,.15); border-bottom:1px solid rgba(36,31,28,.15); }
.gallery-category-grid > div { min-height:150px; padding:24px 20px; border-right:1px solid rgba(36,31,28,.15); display:flex; flex-direction:column; justify-content:space-between; }
.gallery-category-grid > div:last-child { border-right:0; }
.gallery-category-count { color:#6b1f28; font-size:11px; font-weight:800; letter-spacing:.15em; }
.gallery-category-grid strong { font-size:clamp(1.4rem,2.2vw,2.2rem); line-height:1; }
.gallery-category-grid span:last-child { color:#6b5f52; font-size:12px; }
.gallery-lightbox { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:clamp(20px,4vw,60px); background:rgba(7,13,9,.94); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s ease,visibility .25s ease; }
.gallery-lightbox.is-open { opacity:1; visibility:visible; pointer-events:auto; }
.gallery-lightbox-frame { width:min(1100px,94vw); max-height:90vh; display:flex; flex-direction:column; align-items:center; }
.gallery-lightbox-frame img { max-width:100%; max-height:78vh; object-fit:contain; box-shadow:0 20px 80px rgba(0,0,0,.35); }
.gallery-lightbox-caption { color:rgba(255,255,255,.72); font-size:13px; margin:14px 0 0; text-align:center; }
.gallery-lightbox > button { position:absolute; top:20px; right:24px; width:46px; height:46px; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.06); color:#fff; font-size:30px; line-height:1; cursor:pointer; }
.gallery-lightbox > button:hover,.gallery-lightbox > button:focus-visible { background:#fff; color:#101c15; }
body.gallery-lightbox-open { overflow:hidden; }
@media (max-width: 900px) {
  .gallery-years-head { grid-template-columns:1fr; gap:28px; }
  .gallery-year { grid-template-columns:1fr; gap:30px; }
  .gallery-year-marker { flex-direction:row; align-items:center; gap:18px; }
  .gallery-year-rule { margin:0; }
  .gallery-year-note { max-width:none; }
  .gallery-year-copy { grid-template-columns:1fr; gap:16px; }
  .gallery-year-details { grid-column:auto; }
  .gallery-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gallery-category-grid > div:nth-child(2n) { border-right:0; }
  .gallery-category-grid > div:nth-child(n+3) { border-top:1px solid rgba(36,31,28,.15); }
}
@media (max-width: 640px) {
  .gallery-year-index { top:62px; }
  .gallery-year { padding:46px 0; }
  .gallery-year-number { font-size:4.5rem; }
  .gallery-year-photos { grid-template-columns:1fr; }
  .year-photo:nth-child(2) { margin-top:0; }
  .year-photo { aspect-ratio:3 / 2; }
  .gallery-category-grid { grid-template-columns:1fr; }
  .gallery-category-grid > div { border-right:0; border-top:1px solid rgba(36,31,28,.15); }
  .gallery-category-grid > div:first-child { border-top:0; }
  .gallery-lightbox-frame img { max-height:72vh; }
}

/* Minimal gallery archive: year folders, numbered photos, no per-photo data entry. */
.gallery-simple-hero {
  background: var(--paper, #f4efe5);
  color: var(--ink, #17231c);
  padding: clamp(110px, 14vw, 190px) 0 clamp(80px, 10vw, 130px);
  border-bottom: 1px solid rgba(23,35,28,.12);
}
.gallery-simple-hero .wrap { max-width: 1180px; }
.gallery-simple-kicker {
  display: block;
  margin-bottom: 24px;
  color: #7a342b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.gallery-simple-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.055em;
}
.gallery-simple-hero p {
  max-width: 48ch;
  margin: 30px 0 0;
  color: #6b655c;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}
.gallery-simple-scroll {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 48px;
  color: var(--ink, #17231c);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.gallery-simple-scroll span { font-size: 20px; line-height: 1; }
.gallery-simple-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16,28,21,.96);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.gallery-simple-nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-simple-nav-inner::-webkit-scrollbar { display:none; }
.gallery-simple-nav-inner > span {
  flex: 0 0 auto;
  color: #d9c2a4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#gallery-year-nav { display:flex; gap: 4px; }
#gallery-year-nav a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 52px;
  height: 36px;
  padding: 0 10px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
#gallery-year-nav a:hover,
#gallery-year-nav a:focus-visible { background:#e3c9a8; color:#101c15; }
.gallery-simple-archive { background:#f4efe5; padding: clamp(70px, 9vw, 130px) 0; }
.gallery-simple-note {
  max-width: 760px;
  margin-bottom: clamp(70px, 10vw, 130px);
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(23,35,28,.14);
  color:#6b655c;
  font-size: 14px;
  line-height:1.7;
}
.gallery-simple-note p { margin:0 0 8px; }
.gallery-simple-note p:last-child { margin-bottom:0; font-size:11px; letter-spacing:.08em; text-transform:uppercase; }
.gallery-simple-note strong { color:#17231c; }
.gallery-simple-note code { padding:.15em .35em; background:rgba(23,35,28,.07); color:#17231c; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.9em; }
.gallery-simple-year { padding: 0 0 clamp(100px, 12vw, 170px); scroll-margin-top:100px; }
.gallery-simple-year + .gallery-simple-year { padding-top: clamp(50px, 7vw, 90px); border-top:1px solid rgba(23,35,28,.12); }
.gallery-simple-year-head { display:flex; align-items:baseline; justify-content:space-between; gap:30px; margin-bottom:30px; }
.gallery-simple-year-head h2 {
  margin:0;
  color:#17231c;
  font-family:"Manrope", sans-serif;
  font-size:clamp(2.6rem, 5vw, 5.5rem);
  font-weight:500;
  line-height:1;
  letter-spacing:-.06em;
}
.gallery-simple-year-head span { color:#8a8277; font-size:10px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.gallery-simple-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:12px; align-items:start; }
.gallery-simple-photo { grid-column:span 6; margin:0; overflow:hidden; background:#e4ddcf; cursor:zoom-in; }
.gallery-simple-photo:nth-child(3n) { grid-column:span 7; }
.gallery-simple-photo:nth-child(4n) { grid-column:span 5; }
.gallery-simple-photo img { display:block; width:100%; aspect-ratio:3 / 2; object-fit:cover; transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.gallery-simple-photo:hover img { transform:scale(1.025); }
.gallery-simple-photo[hidden] { display:none; }
.gallery-lightbox { z-index:1000; }
.gallery-lightbox-frame img { max-width:min(94vw, 1400px); max-height:86vh; }
@media (max-width: 720px) {
  .gallery-simple-hero { padding-top:100px; }
  .gallery-simple-hero h1 { font-size:clamp(3.2rem, 15vw, 5rem); }
  .gallery-simple-nav-inner { min-height:58px; }
  .gallery-simple-grid { grid-template-columns:1fr; gap:10px; }
  .gallery-simple-photo,
  .gallery-simple-photo:nth-child(3n),
  .gallery-simple-photo:nth-child(4n) { grid-column:1; }
  .gallery-simple-year-head { align-items:flex-end; }
  .gallery-simple-year-head span { display:none; }
}

/* Final gallery stability overrides. The gallery uses the same light site shell as every other page. */
.gallery-page {
  background: var(--paper, #f4efe5);
  color: var(--ink, #17231c);
  overflow-x: hidden;
  overflow-y: visible;
}
.gallery-page .site-header,
.gallery-page .gallery-site-header {
  background: rgba(245,240,230,.91);
  color: var(--ink, #17231c);
}
.gallery-page .site-footer { background: var(--forest-950, #101c15); color: #f8f4eb; }
.gallery-simple-nav { background: #101c15; }
.gallery-simple-note { margin-bottom: clamp(50px, 7vw, 90px); }
.gallery-simple-year-head span { display: none; }
.gallery-simple-photo { min-height: 0; }
.gallery-simple-photo img { display:block; opacity:1; visibility:visible; }
