:root {
  --green: #123f37;
  --green2: #1d5c50;
  --mint: #e9f3ef;
  --cream: #fff9ef;
  --gold: #f2bd66;
  --orange: #ec8f4c;
  --ink: #17302c;
  --muted: #64736f;
  --white: #fff;
  --line: #dfe8e4;
  --shadow: 0 18px 50px rgba(18, 63, 55, .12)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  background: #fff
}

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

.announcement {
  padding: 10px 20px;
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 14px
}

.site-header {
  height: 86px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1ef;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  z-index: 50
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mint);
  font-size: 22px
}

.brand strong {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  display: block
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px
}

.site-header nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 600
}

.site-header nav>a:not(.nav-cta):hover {
  color: var(--green2)
}

.nav-cta {
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 26px
}

.hero {
  padding: 90px 7vw 75px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 75px;
  align-items: center;
  background: linear-gradient(135deg, #fff 40%, #eef7f3)
}

.eyebrow {
  display: inline-block;
  color: var(--green2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 18px
}

.eyebrow.light {
  color: #bfdfd6
}

.hero h1,
.section h2,
.donation-band h2,
.final-cta h2 {
  font-family: 'Fraunces', serif
}

.hero h1 {
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0 0 25px;
  max-width: 800px
}

.hero h1 em {
  font-style: normal;
  color: var(--orange)
}

.hero-copy>p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 700px
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 34px 0
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 15px 23px;
  font: 700 15px 'DM Sans';
  cursor: pointer;
  transition: .2s
}

.button:hover {
  transform: translateY(-2px)
}

.button.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 28px rgba(236, 143, 76, .25)
}

.button.secondary {
  background: #fff;
  color: var(--green);
  border: 1px solid #cfdcd7
}

.button.cream {
  background: var(--cream);
  color: var(--green)
}

.button.full {
  width: 100%
}

.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #536962;
  font-size: 13px;
  font-weight: 600
}

.hero-card {
  position: relative
}

.photo-frame {
  padding: 16px;
  background: #fff;
  border-radius: 38px;
  box-shadow: var(--shadow);
  transform: rotate(2deg)
}

.pet-scene {
  min-height: 530px;
  border-radius: 28px;
  background: linear-gradient(#e5f1ed 0 62%, #d9b28d 62%);
  position: relative;
  overflow: hidden
}

.dog,
.cat {
  position: absolute;
  font-size: 150px;
  bottom: 76px;
  filter: drop-shadow(0 15px 12px rgba(0, 0, 0, .12))
}

.dog {
  left: 12%
}

.cat {
  right: 10%;
  font-size: 120px;
  bottom: 90px
}

.blanket {
  height: 95px;
  width: 76%;
  background: #f4d89f;
  position: absolute;
  bottom: 35px;
  left: 12%;
  border-radius: 50% 50% 20px 20px
}

.heart {
  position: absolute;
  color: var(--orange);
  font-size: 34px
}

.heart-one {
  top: 55px;
  right: 90px
}

.heart-two {
  top: 108px;
  right: 48px;
  font-size: 20px
}

.floating-card {
  position: absolute;
  left: -42px;
  bottom: 38px;
  background: #fff;
  border-radius: 18px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  max-width: 310px
}

.floating-card .mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0e5;
  color: var(--orange)
}

.floating-card strong,
.floating-card small {
  display: block
}

.floating-card small {
  color: var(--muted);
  margin-top: 4px
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 7vw;
  background: var(--green);
  color: #fff
}

.stats div {
  padding: 15px 28px;
  border-right: 1px solid rgba(255, 255, 255, .16)
}

.stats div:last-child {
  border-right: 0
}

.stats strong {
  display: block;
  font-family: 'Fraunces';
  font-size: 32px
}

.stats span {
  font-size: 12px;
  color: #cde0d9;
  text-transform: uppercase;
  letter-spacing: .06em
}

.demo-note {
  margin: 8px 7vw 0;
  color: #91a09b;
  font-size: 11px;
  text-align: right
}

.section {
  padding: 100px 7vw
}

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px
}

.section h2 {
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.05;
  margin: 0
}

.body-copy {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8
}

.body-copy strong {
  color: var(--ink)
}

.soft {
  background: var(--cream)
}

.section-heading {
  max-width: 680px;
  margin-bottom: 45px
}

.section-heading.centered {
  text-align: center;
  margin: 0 auto 55px
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.steps-grid article {
  background: #fff;
  border-radius: 22px;
  padding: 25px;
  position: relative;
  box-shadow: 0 10px 35px rgba(48, 58, 54, .06)
}

.steps-grid article>span {
  position: absolute;
  right: 20px;
  top: 18px;
  color: #bcc8c4;
  font-size: 12px;
  font-weight: 700
}

.step-icon {
  font-size: 30px;
  margin-bottom: 32px
}

.steps-grid h3 {
  font-size: 18px;
  margin: 0 0 10px
}

.steps-grid p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px
}

.eligibility {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  padding-top: 0
}

.eligibility-panel {
  background: var(--green);
  color: #fff;
  border-radius: 34px 0 0 34px;
  padding: 60px
}

.eligibility-panel h2 {
  color: #fff;
  margin-bottom: 30px
}

.eligibility-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 34px
}

.eligibility-panel li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.eligibility-panel li span {
  color: var(--gold)
}

.eligibility-side {
  background: var(--mint);
  border-radius: 0 34px 34px 0;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.quote-mark {
  font: 90px/1 'Fraunces';
  color: var(--orange)
}

blockquote {
  font: 600 28px/1.45 'Fraunces';
  margin: 0
}

.eligibility-side p {
  color: var(--muted)
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.story-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff
}

.story-image {
  height: 220px;
  display: grid;
  place-items: center;
  font-size: 110px
}

.dog-bg {
  background: #eaf3ee
}

.cat-bg {
  background: #fff1e4
}

.bunny-bg {
  background: #f4edf7
}

.story-content {
  padding: 26px
}

.tag {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--green2);
  font-weight: 700;
  letter-spacing: .09em
}

.story-content h3 {
  font-family: 'Fraunces';
  font-size: 25px;
  margin: 10px 0
}

.story-content p {
  color: var(--muted);
  line-height: 1.65
}

.donation-band {
  margin: 0 7vw 100px;
  border-radius: 34px;
  background: var(--green);
  color: #fff;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 70px;
  align-items: center
}

.donation-band h2 {
  font-size: 50px;
  line-height: 1.05;
  margin: 0 0 18px
}

.donation-band>div>p {
  color: #cde0d9;
  line-height: 1.7;
  font-size: 17px
}

.donation-box {
  background: #fff;
  color: var(--ink);
  padding: 24px;
  border-radius: 24px
}

.frequency {
  background: #f2f5f3;
  padding: 5px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px
}

.frequency button,
.amounts button {
  border: 0;
  background: transparent;
  padding: 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer
}

.frequency .active {
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08)
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px
}

.amounts button {
  border: 1px solid var(--line);
  border-radius: 12px
}

.amounts .selected {
  background: var(--green);
  color: #fff
}

.donation-box label {
  font-size: 13px;
  font-weight: 700
}

.custom-amount {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  align-items: center;
  margin: 8px 0 16px
}

.custom-amount input {
  width: 100%;
  border: 0;
  padding: 13px;
  font-size: 18px;
  outline: 0
}

.donation-box small {
  display: block;
  color: #86938f;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 12px
}

.application {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  background: #fbfcfb
}

.application-copy>p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7
}

.notice {
  background: #fff5e9;
  border-left: 4px solid var(--orange);
  padding: 18px;
  border-radius: 10px;
  color: #6d5a44;
  line-height: 1.5;
  margin-top: 25px
}

.application-form {
  background: #fff;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 50px rgba(0, 0, 0, .05)
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.application-form label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d8e1dd;
  border-radius: 12px;
  padding: 13px 14px;
  font: 14px 'DM Sans';
  outline: none;
  background: #fff
}

.application-form input:focus,
.application-form textarea:focus,
.application-form select:focus {
  border-color: var(--green2);
  box-shadow: 0 0 0 3px rgba(29, 92, 80, .08)
}

.check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500 !important;
  color: var(--muted);
  line-height: 1.5
}

.check input {
  width: auto;
  margin-top: 3px
}

.form-status {
  font-size: 13px;
  margin: 12px 0 0
}

.final-cta {
  text-align: center;
  padding: 100px 20px;
  background: var(--cream)
}

.final-cta>span {
  font-size: 42px
}

.final-cta h2 {
  font-size: 52px;
  margin: 18px 0
}

.final-cta p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7
}

.final-cta div {
  display: flex;
  gap: 12px;
  justify-content: center
}

footer {
  background: #0d2d27;
  color: #d7e5e0;
  padding: 60px 7vw 25px
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 50px
}

.footer-brand {
  display: flex;
  gap: 14px
}

.footer-brand strong {
  font: 600 24px 'Fraunces'
}

.footer-brand p {
  color: #9db5ad;
  max-width: 380px;
  line-height: 1.6
}

.footer-main>div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.footer-main>div>strong {
  color: #fff;
  margin-bottom: 7px
}

.footer-main a,
.footer-main p {
  color: #9db5ad;
  font-size: 14px
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 45px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: #78978d;
  font-size: 12px
}

@media(max-width:1000px) {
  .site-header nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 7vw;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--line)
  }

  .site-header nav.open {
    display: flex
  }

  .menu-toggle {
    display: block
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px
  }

  .hero-card {
    max-width: 650px
  }

  .stats {
    grid-template-columns: 1fr 1fr
  }

  .stats div:nth-child(2) {
    border-right: 0
  }

  .split,
  .application {
    grid-template-columns: 1fr;
    gap: 35px
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr
  }

  .eligibility {
    grid-template-columns: 1fr
  }

  .eligibility-panel {
    border-radius: 30px 30px 0 0
  }

  .eligibility-side {
    border-radius: 0 0 30px 30px
  }

  .story-grid {
    grid-template-columns: 1fr
  }

  .donation-band {
    grid-template-columns: 1fr;
    margin-left: 4vw;
    margin-right: 4vw
  }

  .footer-main {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:640px) {
  .site-header {
    padding: 0 20px
  }

  .brand small {
    display: none
  }

  .brand strong {
    font-size: 18px
  }

  .hero,
  .section {
    padding-left: 22px;
    padding-right: 22px
  }

  .hero {
    gap: 40px
  }

  .hero h1 {
    font-size: 48px
  }

  .pet-scene {
    min-height: 360px
  }

  .dog {
    font-size: 105px
  }

  .cat {
    font-size: 85px
  }

  .floating-card {
    left: 10px;
    right: 10px;
    bottom: -18px
  }

  .stats {
    grid-template-columns: 1fr
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .13)
  }

  .steps-grid {
    grid-template-columns: 1fr
  }

  .eligibility {
    padding-left: 22px;
    padding-right: 22px
  }

  .eligibility-panel,
  .eligibility-side {
    padding: 34px
  }

  .donation-band {
    padding: 32px 20px;
    margin-bottom: 60px
  }

  .donation-band h2,
  .final-cta h2 {
    font-size: 40px
  }

  .donation-box {
    padding: 18px
  }

  .amounts {
    grid-template-columns: 1fr 1fr
  }

  .field-row {
    grid-template-columns: 1fr
  }

  .application-form {
    padding: 20px
  }

  .footer-main {
    grid-template-columns: 1fr
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px
  }

  .hero-actions,
  .final-cta div {
    flex-direction: column
  }

  .button {
    width: 100%
  }
}


.brand-mark.bulldog-mark {
  color: var(--green2);
  padding: 6px
}

.brand-mark.bulldog-mark svg {
  width: 100%;
  height: 100%;
  display: block
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  order: 2
}

.site-header nav {
  order: 1
}

.brand {
  order: 0
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 700 12px 'DM Sans';
  cursor: pointer;
  transition: .2s;
  white-space: nowrap
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--green2)
}

.theme-icon {
  font-size: 16px;
  line-height: 1
}

:root {
  --surface: #fff;
  --surface-soft: #fbfcfb;
  --header-bg: rgba(255, 255, 255, .96);
  --card: #fff;
  --input: #fff;
  --cream-surface: #fff9ef
}

body {
  background: var(--surface);
  transition: background .25s ease, color .25s ease
}

.site-header {
  background: var(--header-bg)
}

.photo-frame,
.floating-card,
.steps-grid article,
.story-card,
.donation-box,
.application-form {
  background: var(--card)
}

.application {
  background: var(--surface-soft)
}

.soft,
.final-cta {
  background: var(--cream-surface)
}

.application-form input,
.application-form select,
.application-form textarea,
.custom-amount input {
  background: var(--input);
  color: var(--ink)
}

html[data-theme="dark"] {
  --green: #174f45;
  --green2: #74b7a8;
  --mint: #163a34;
  --cream: #1b2523;
  --gold: #f2bd66;
  --orange: #f39a5b;
  --ink: #edf6f2;
  --muted: #a9bbb5;
  --white: #fff;
  --line: #30443f;
  --shadow: 0 18px 50px rgba(0, 0, 0, .32);
  --surface: #101816;
  --surface-soft: #121d1a;
  --header-bg: rgba(16, 24, 22, .94);
  --card: #17231f;
  --input: #111b18;
  --cream-surface: #1b2523;
}

html[data-theme="dark"] .announcement {
  background: #0a2721
}

html[data-theme="dark"] .site-header {
  border-bottom-color: #273a35
}

html[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #101816 40%, #132a24)
}

html[data-theme="dark"] .button.secondary {
  background: #17231f;
  color: #dcece6;
  border-color: #365047
}

html[data-theme="dark"] .trust-row {
  color: #9fb5ad
}

html[data-theme="dark"] .pet-scene {
  background: linear-gradient(#1e4940 0 62%, #705b49 62%)
}

html[data-theme="dark"] .blanket {
  background: #9e7e45
}

html[data-theme="dark"] .demo-note {
  color: #71837d
}

html[data-theme="dark"] .body-copy strong {
  color: var(--ink)
}

html[data-theme="dark"] .steps-grid article {
  box-shadow: 0 10px 35px rgba(0, 0, 0, .2)
}

html[data-theme="dark"] .eligibility-side {
  background: #17352f
}

html[data-theme="dark"] .dog-bg {
  background: #1a332d
}

html[data-theme="dark"] .cat-bg {
  background: #3a2c21
}

html[data-theme="dark"] .bunny-bg {
  background: #302838
}

html[data-theme="dark"] .frequency {
  background: #101916
}

html[data-theme="dark"] .frequency .active {
  background: #24342f
}

html[data-theme="dark"] .notice {
  background: #35291e;
  color: #dbc5a7
}

html[data-theme="dark"] .application-form input,
html[data-theme="dark"] .application-form select,
html[data-theme="dark"] .application-form textarea {
  border-color: #365047
}

html[data-theme="dark"] .theme-toggle {
  background: #17231f
}

html[data-theme="dark"] .brand-mark.bulldog-mark {
  background: #193c35;
  color: #9ad0c3
}

html[data-theme="dark"] .final-cta {
  border-top: 1px solid #2b3b37
}

@media(max-width:1000px) {
  .site-header nav {
    order: 3;
    background: var(--card)
  }

  .header-actions {
    margin-left: auto
  }
}

@media(max-width:640px) {
  .theme-label {
    display: none
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0
  }

  .brand-mark {
    width: 42px;
    height: 42px
  }
}


.brand-mark.foundation-logo {
  padding: 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  flex: 0 0 auto
}

.brand-mark.foundation-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain
}

.footer-brand .brand-mark.foundation-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px
}

html[data-theme="dark"] .brand-mark.foundation-logo {
  background: transparent
}

html {
  color-scheme: light dark
}

html[data-theme="light"] {
  color-scheme: light
}

html[data-theme="dark"] {
  color-scheme: dark
}
/* =========================
   Our Story page
   ========================= */
.story-page {
  --story-purple: #ab6de5;
  --story-purple-deep: #8e4ed2;
  --story-teal: #56c7bc;
}

.story-header { top: 0; }
.story-header .story-active { color: var(--story-purple); position: relative; }
.story-header .story-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 2px;
  border-radius: 99px; background: var(--story-purple);
}

.story-hero {
  max-width: 1430px;
  margin: 0 auto;
  padding: 48px 48px 20px;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}
.story-copy { padding-top: 10px; }
.story-eyebrow {
  display: inline-block;
  color: #398f85;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.story-copy h1 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(58px, 5.2vw, 84px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--ink);
}
.story-copy h1 em { color: var(--story-purple); font-style: italic; }
.story-copy h1 span { font-family: 'DM Sans', sans-serif; color: var(--ink); font-weight: 400; font-size: .74em; }
.story-rule { width: 54px; height: 2px; background: var(--story-purple); margin: 22px 0; }
.story-copy > p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.story-quote {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(171,109,229,.16), rgba(171,109,229,.08));
}
.quote-symbol { color: var(--story-purple); font: 700 50px/1 'Fraunces', serif; height: 38px; }
.story-quote strong { display: block; font-size: 16px; margin: 1px 0 5px; }
.story-quote p { margin: 0; font-size: 14px; line-height: 1.55; color: inherit; }
.story-copy .story-signoff {
  margin: 16px 0 0;
  color: var(--story-purple);
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.35;
}

.dora-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 310px 300px;
  gap: 12px;
}
.dora-photo {
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(18,63,55,.12);
  background: #d9dfdc;
}
.dora-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-one { grid-column: 1 / span 2; grid-row: 1; }
.photo-two { grid-column: 3 / span 2; grid-row: 1; }
.photo-three { grid-column: 5 / span 2; grid-row: 1; }
.photo-four { grid-column: 1 / span 3; grid-row: 2; }
.photo-five { grid-column: 4 / span 3; grid-row: 2; }
.photo-one img { object-position: 50% 32%; }
.photo-two img { object-position: 50% 39%; }
.photo-three img { object-position: 50% 42%; }
.photo-four img { object-position: 50% 34%; }
.photo-five img { object-position: 50% 50%; }

.legacy-strip {
  max-width: 1450px;
  margin: 0 auto 18px;
  border: 1px solid rgba(29,92,80,.32);
  border-radius: 14px;
  padding: 12px 52px;
  min-height: 95px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 24px;
  background: linear-gradient(100deg, rgba(18,63,55,.045), rgba(171,109,229,.035));
}
.legacy-icon {
  width: 72px; height: 72px; border: 2px solid var(--story-purple); border-radius: 50%;
  display: grid; place-items: center; font-size: 39px; color: var(--story-purple);
}
.legacy-copy h2 { margin: 0 0 3px; font: 700 19px 'DM Sans', sans-serif; }
.legacy-copy p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
.legacy-button {
  padding: 14px 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--story-purple-deep), var(--story-purple));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.legacy-button:hover { transform: translateY(-1px); }

html[data-theme="dark"] .story-page,
html[data-theme="dark"] body.story-page { background: #081714; color: #eef8f4; }
html[data-theme="dark"] .story-copy h1,
html[data-theme="dark"] .story-copy h1 span,
html[data-theme="dark"] .story-copy > p { color: #eef8f4; }
html[data-theme="dark"] .story-eyebrow { color: #54c8bc; }
html[data-theme="dark"] .story-quote { background: linear-gradient(135deg, rgba(171,109,229,.18), rgba(74,54,91,.32)); }
html[data-theme="dark"] .legacy-strip { background: linear-gradient(100deg, rgba(26,88,78,.30), rgba(13,45,39,.65)); border-color: rgba(68,181,166,.32); }
html[data-theme="dark"] .legacy-copy p { color: #c6d8d2; }
html[data-theme="dark"] .legacy-copy h2 { color: #fff; }
html[data-theme="dark"] .dora-photo { border-color: rgba(255,255,255,.08); background: #10231f; }

@media (max-width: 1180px) {
  .story-hero { grid-template-columns: 370px minmax(0,1fr); gap: 38px; padding-left: 34px; padding-right: 34px; }
  .dora-gallery { grid-template-rows: 275px 265px; }
}
@media (max-width: 900px) {
  .story-header .story-active::after { display: none; }
  .story-hero { grid-template-columns: 1fr; gap: 34px; padding-top: 46px; }
  .story-copy { max-width: 680px; }
  .dora-gallery { grid-template-rows: 280px 280px; }
  .legacy-strip { margin: 0 24px 24px; grid-template-columns: 74px 1fr; padding: 18px 22px; }
  .legacy-button { grid-column: 1 / -1; width: 100%; text-align: center; }
}
@media (max-width: 640px) {
  .story-hero { padding: 34px 18px 18px; }
  .story-copy h1 { font-size: 54px; }
  .dora-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 9px; }
  .dora-photo { height: 250px; grid-column: auto; grid-row: auto; border-radius: 13px; }
  .photo-three { grid-column: 1 / -1; height: 310px; }
  .photo-four, .photo-five { height: 270px; }
  .legacy-strip { margin-left: 14px; margin-right: 14px; grid-template-columns: 60px 1fr; gap: 13px; padding: 16px; }
  .legacy-icon { width: 56px; height: 56px; font-size: 29px; }
  .legacy-copy h2 { font-size: 16px; }
}


/* Performance optimisations */
@media (min-width: 641px) {
  main > section:not(.hero):not(.stats) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
  }
}
img { max-width: 100%; }
.dora-photo img, .foundation-logo img {
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
