/* Dunia Endelevu · site styles v3
   Calm sage page, white rounded cards, tight grotesk headlines, sun-yellow accents. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #EDF3EF;
  --bg-deep: #DFEAE3;
  --card: #FFFFFF;
  --line: #D9E3DC;
  --field: #8A938F;
  --ink: #0F2A23;
  --slate: #3C4843;
  --muted: #59645F;
  --evergreen: #12372F;
  --evergreen-2: #1C4B3F;
  --leaf: #2F6B57;
  --sun: #F2B233;
  --sun-hover: #F6C04F;
  --sun-soft: #FCEBC0;
  --pale: #CCDFD3;
  --clay: #B9542F;
  --on-dark: #C6D5CE;
  --night: #0D2B24;

  --display: "Bricolage Grotesque", "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 136px);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
@view-transition { navigation: auto; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 2px solid var(--evergreen); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--sun); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--evergreen); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.shape-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--lg { gap: 24px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.center-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; max-width: 780px; margin: 0 auto clamp(32px, 4vw, 52px); }
.center-head .lead { margin-inline: auto; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .serif { font-family: var(--display); font-weight: 600; color: inherit; }
.display { font-size: clamp(42px, 6.4vw, 90px); line-height: 1; letter-spacing: -0.029em; text-wrap: balance; }
.h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -0.028em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.h2--sm { font-size: clamp(28px, 3.3vw, 44px); }
.h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.22; letter-spacing: -0.014em; text-wrap: balance; }
.serif { letter-spacing: -0.03em; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.7; color: var(--slate); }
.small { font-size: 15px; line-height: 1.6; color: var(--slate); }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); }
.label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.strong { color: var(--ink); font-weight: 600; }
.on-dark { color: var(--on-dark); }
.hl, .hl--mint, .hl--coral { font-style: normal; }
.sunword { color: var(--leaf); }
.panel--dark .sunword { color: var(--sun); }

/* tag: a small sun-yellow label with a pointed end, tilted a touch */
.tag, .kicker, .page-hero .chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; align-self: center;
  padding: 6px 12px; border-radius: 6px; background: var(--sun); color: var(--ink);
  font-size: 13px; font-weight: 550; line-height: 1.2; white-space: nowrap; transform: rotate(-2deg);
}
.tag::after, .kicker::after, .page-hero .chip::after { content: ""; position: absolute; right: -4px; top: 50%; width: 10px; height: 10px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.tag--start { align-self: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 550; color: var(--ink); white-space: nowrap; }
.chip--sun { background: var(--sun-soft); }
.tile .chip { align-self: flex-start; }
.tile--sun .chip { background: rgba(255, 255, 255, .7); }
.tile:not(.tile--sun) .chip { background: var(--bg); }
.panel--dark .chip { background: var(--sun); color: var(--ink); }
.dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--evergreen); }
.dot--sun { background: var(--sun); } .dot--leaf { background: var(--leaf); }

/* round arrow buttons */
.arrow, .circle-btn {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; transition: transform .35s var(--ease), background-color .2s;
}
.arrow svg, .circle-btn svg { width: 15px; height: 15px; }
.circle-btn svg { transform: rotate(-45deg); }
.more { display: inline-flex; align-items: center; gap: 12px; font-weight: 550; font-size: 15px; text-decoration: none; }
.more:hover { color: var(--ink); }
.more:hover .arrow { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 550; font-size: 15px; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:has(.arrow-i) { padding-right: 7px; }
.btn .arrow-i { flex: 0 0 auto; width: 36px; height: 36px; padding: 10px; border-radius: 50%; background: var(--sun); color: var(--ink); transition: transform .35s var(--ease); }
.btn:hover .arrow-i { transform: rotate(-45deg); }
.btn--sun, .btn--ink { background: var(--evergreen); color: #fff; }
.btn--sun:hover, .btn--ink:hover { background: var(--evergreen-2); color: #fff; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost .arrow-i { background: var(--bg); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--light:hover { color: #fff; border-color: #fff; }
.panel--dark .btn--sun, .ew .btn--sun, .mobile-menu .btn--sun, .site-footer .btn--sun { background: var(--sun); color: var(--ink); }
.panel--dark .btn--sun:hover, .ew .btn--sun:hover, .mobile-menu .btn--sun:hover, .site-footer .btn--sun:hover { background: var(--sun-hover); color: var(--ink); }
.panel--dark .btn--sun .arrow-i, .ew .btn--sun .arrow-i, .mobile-menu .btn--sun .arrow-i, .site-footer .btn--sun .arrow-i { background: var(--evergreen); color: var(--sun); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--sm:has(.arrow-i) { padding-right: 5px; }
.btn--sm .arrow-i { width: 34px; height: 34px; padding: 10px; }
.btn--md { min-height: 48px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-row--center, .center-head .btn-row, .hero__copy .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; padding-top: 14px; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 8px 8px 8px 22px; border-radius: 999px; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(15, 42, 35, .04); transition: box-shadow .3s;
}
.site-header.is-scrolled .site-header__inner { box-shadow: 0 1px 0 rgba(15, 42, 35, .05), 0 18px 40px -24px rgba(15, 42, 35, .45); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 35px; flex: 0 0 auto; }
.brand__word { display: block; height: 18px; width: auto; flex: 0 0 auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--slate); text-decoration: none; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--sun); }
.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--evergreen); color: #fff;
  font: inherit; font-weight: 550; font-size: 14.5px; cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 18px; height: 12px; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle__icon::before { top: 1px; } .menu-toggle__icon::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 5px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 59; overflow-y: auto; overscroll-behavior: contain;
  background: var(--evergreen); color: #fff; padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  animation: menu-in .3s var(--ease);
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 500; font-size: clamp(30px, 8vw, 42px); letter-spacing: -0.025em;
}
.mobile-menu nav a::after { content: "\2197"; font-family: var(--sans); font-size: 20px; color: var(--sun); }
.mobile-menu nav a[aria-current="page"] { color: var(--sun); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__foot a.fine { color: var(--on-dark); }
html.menu-open { overflow: hidden; }
@media (max-width: 1040px) {
  .site-header .nav, .site-header .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) { .site-header .brand__word { height: 16px; } .site-header .brand svg { width: 26px; height: 32px; } .site-header__inner { padding-left: 16px; min-height: 60px; } }
@media (max-width: 374px) {
  .site-header__inner { gap: 10px; padding-left: 12px; }
  .brand { gap: 8px; } .site-header .brand__word { height: 14px; }
  .menu-toggle { width: 46px; padding: 0; justify-content: center; }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
html.no-js .site-header__inner { flex-wrap: wrap; border-radius: 28px; }
@media (max-width: 1040px) { html.no-js .site-header .nav { display: flex; flex-wrap: wrap; width: 100%; } html.no-js .menu-toggle { display: none; } }

/* ---------- Images ---------- */
.bubble, .arch, .frame, .circle, .pill { position: relative; overflow: hidden; background: var(--bg-deep); }
.bubble, .arch { aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.frame { border-radius: var(--r-lg); }
.circle { aspect-ratio: 1; border-radius: 50%; }
.pill { aspect-ratio: 1.55; border-radius: 999px; }
.bubble img, .bubble picture, .arch img, .arch picture, .frame img, .frame picture, .circle img, .circle picture, .pill img, .pill picture, .arch svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.arch { background: var(--card); }
.ring { box-shadow: 0 0 0 6px #fff; }
.media { position: relative; width: 100%; max-width: 480px; justify-self: center; }
.panel .book-photo { aspect-ratio: 4 / 5; max-width: 460px; justify-self: center; width: 100%; }
.media figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: 920px; margin: 0 auto; }
.hero__copy .lead { margin-inline: auto; font-size: clamp(16px, 1.4vw, 19px); }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; margin: clamp(44px, 6vw, 76px) 0 0; padding: 0; }
.gallery__item { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-deep); height: clamp(240px, 30vw, 400px); }
.gallery__item img, .gallery__item picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item:first-child, .gallery__item:last-child { margin-top: clamp(24px, 4vw, 56px); }
.gallery__hi { background: var(--sun); padding: 12px; display: flex; flex-direction: column; gap: 12px; height: clamp(300px, 36vw, 480px); }
.gallery__hi picture { flex: 1; min-height: 0; border-radius: 18px; overflow: hidden; }
.gallery__cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 0 8px; font-size: 15px; font-weight: 550; text-decoration: none; color: var(--ink); }
.gallery__cap:hover { color: var(--ink); }
.gallery__cap .circle-btn { background: #fff; }
.gallery__cap:hover .circle-btn { transform: rotate(45deg); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gallery__hi { grid-column: 1 / -1; order: -1; height: 400px; }
  .gallery__item:first-child, .gallery__item:last-child { margin-top: 0; height: 200px; }
}

/* ---------- Three cards, the middle one highlighted ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card3 {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-lg);
  background: var(--card); color: var(--ink); text-decoration: none; min-height: 460px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
a.card3:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 0 30px 50px -36px rgba(15, 42, 35, .5); }
.card3__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card3__num { font-size: 13px; font-weight: 550; color: var(--muted); }
.card3 .h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.035em; }
.card3 p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 280px; }
.card3__img { margin-top: auto; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-deep); }
.card3__img img, .card3__img picture { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
a.card3:hover .card3__img img { transform: scale(1.04); }
a.card3:hover .circle-btn { transform: rotate(45deg); }
.card3--hi { background: var(--sun); }
.card3--hi .card3__num, .card3--hi p { color: var(--slate); }
.card3--hi .circle-btn { background: #fff; }
@media (max-width: 900px) { .cards3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } .card3 { min-height: 0; } }

/* ---------- Stats card with ghost numbers ---------- */
.stats { background: var(--card); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 72px); }
.stats__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.stats__head .lead { margin-top: 12px; }
.ghosts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(32px, 5vw, 60px) 0 0; padding: 0; list-style: none; }
.ghost { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(120px, 14vw, 180px); padding: 0 12px; }
.ghost + .ghost { border-left: 1.5px solid var(--sun); }
.ghost__num { font-family: var(--display); font-weight: 500; font-size: clamp(96px, 13vw, 180px); line-height: .9; letter-spacing: -0.033em; color: var(--pale); white-space: nowrap; user-select: none; }
.ghost__num small { font-size: .4em; letter-spacing: -0.03em; }
.ghost__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 14px; font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.15; letter-spacing: -0.014em; color: var(--ink); }
@media (max-width: 640px) {
  .ghosts { grid-template-columns: minmax(0, 1fr); }
  .ghost + .ghost { border-left: 0; border-top: 1.5px solid var(--sun); }
}

/* ---------- Carousel ---------- */
.carousel { position: relative; overflow: hidden; padding: 8px 0 22px; touch-action: pan-y; }
.carousel__track { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; transition: transform .7s var(--ease); will-change: transform; }
.slide {
  flex: 0 0 min(580px, 84vw); min-height: 280px; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px); border-radius: var(--r-lg);
  background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center;
  opacity: .45; transform: scale(.94); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease);
}
.slide.is-active { opacity: 1; transform: none; box-shadow: 10px 10px 0 var(--evergreen); }
html.js .slide:not(.is-active) { cursor: pointer; }
.slide__ep { font-size: 13px; font-weight: 550; color: var(--muted); }
.slide__title { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.18; letter-spacing: -0.019em; color: var(--ink); text-wrap: balance; }
.slide__go { display: inline-flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 550; text-decoration: none; }
.slide__go:hover { color: var(--ink); }
.car-nav { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.car-nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .25s var(--ease), background-color .2s; }
.car-nav button:hover { transform: scale(1.06); }
.car-nav button[data-next] { background: var(--sun); }
.car-nav svg { width: 17px; height: 17px; }
.car-nav button[data-prev] svg { transform: rotate(180deg); }
html.no-js .car-nav { display: none; }
html.no-js .carousel { overflow-x: auto; scroll-snap-type: x mandatory; }
html.no-js .slide { opacity: 1; transform: none; scroll-snap-align: center; }

/* ---------- Panels, splits, tiles ---------- */
.panel { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 72px); background: var(--card); }
.panel--dark { background: var(--evergreen); color: #fff; }
.panel--dark .lead, .panel--dark .label, .panel--dark .small { color: var(--on-dark); }
.panel--sun { background: var(--sun); }
.panel--sun .lead { color: var(--slate); }
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 40px clamp(40px, 7vw, 96px); }
.split2--flip > :first-child { order: 2; }
.split2--form { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
@media (max-width: 900px) {
  .split2 { grid-template-columns: minmax(0, 1fr); }
  .split2--flip > :first-child { order: 0; }
  .split2 > .media { order: -1; }
}
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.5vw, 28px); border-radius: var(--r-lg); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
a.tile:hover { color: var(--ink); transform: translateY(-5px); box-shadow: 0 30px 50px -36px rgba(15, 42, 35, .5); }
.tile--sun { background: var(--sun); }
.tile p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.tile--sun p { color: var(--slate); }
.tile__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.tile--sun .tile__icon { background: #fff; }
.tile__icon svg { width: 22px; height: 22px; color: var(--evergreen); }
.tile__icon:has(.duo) { width: 60px; height: 60px; background: var(--bg); }
.tile--sun .tile__icon:has(.duo) { background: #fff; }
.tile__icon .duo { width: 38px; height: 38px; }
.track__go { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 550; font-size: 14.5px; }
.tile--sun .arrow { background: #fff; }
a.tile:hover .arrow { transform: rotate(-45deg); }

/* numbered steps inside panels */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 48px); }
.numbers > div { display: flex; flex-direction: column; gap: 12px; padding: 6px clamp(16px, 3vw, 36px); }
.numbers > div:first-child { padding-left: 0; }
.numbers > div + div { border-left: 1.5px solid var(--sun); }
.num-big { font-family: var(--display); font-weight: 500; font-size: clamp(64px, 8vw, 112px); line-height: .9; letter-spacing: -0.033em; color: var(--pale); }
.panel--dark .num-big { color: rgba(255, 255, 255, .2); }
.num-big small { font-size: .42em; }
.numbers p { font-size: 15.5px; line-height: 1.55; color: inherit; }
.panel--dark .numbers p { color: var(--on-dark); }
@media (max-width: 760px) {
  .numbers { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .numbers > div { padding: 0; }
  .numbers > div + div { border-left: 0; border-top: 1.5px solid var(--sun); padding-top: 18px; }
}

.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink); }
.ticks li::before {
  content: ""; flex: 0 0 24px; height: 24px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%230F2A23' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- How it works: five pinned sticky notes in a row, dashed arrows between them ---------- */
.steps { --gap: clamp(40px, 4vw, 60px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); margin: 0; padding: 22px 0 0; list-style: none; }
.step { position: relative; }
.step__card { position: relative; height: 100%; padding: 9px; border-radius: 24px; background: #fff; box-shadow: 0 2px 4px rgba(15, 42, 35, .05), 0 26px 40px -28px rgba(15, 42, 35, .5); transform: rotate(var(--tilt, -3deg)); transition: transform .5s var(--ease); }
.step:hover .step__card { transform: rotate(0deg) translateY(-4px); }
.step__note { height: 100%; min-height: 196px; padding: 30px 18px 20px; border-radius: 18px; background: var(--note); transform: rotate(var(--lean, 1.5deg)); }
.step__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.1; letter-spacing: -0.019em; color: var(--ink); }
.step__num { font-size: 1.8em; font-weight: 600; line-height: .8; letter-spacing: -0.06em; color: var(--num, var(--evergreen)); }
.step__note p { font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.step__note a { font-weight: 600; }
.step--1 { --tilt: -3deg; --lean: 1.5deg; --note: var(--sun-soft); --pin: var(--clay); }
.step--2 { --tilt: 2.5deg; --lean: -1.5deg; --note: #D7E9DD; --pin: var(--sun); }
.step--3 { --tilt: -2deg; --lean: 1.5deg; --note: #F8DCCF; --pin: var(--leaf); }
.step--4 { --tilt: 3deg; --lean: -1.5deg; --note: var(--pale); --pin: var(--clay); }
.step--5 { --tilt: -2.5deg; --lean: 1.5deg; --note: var(--sun); --pin: var(--evergreen); --num: var(--ink); }
.step--5 .step__note p { color: var(--ink); }
/* push pin: a glossy head, a neck and a soft shadow on the card */
.step__pin { position: absolute; z-index: 2; top: -15px; left: 50%; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .7) 0 13%, rgba(255, 255, 255, 0) 30%), var(--pin); box-shadow: inset -4px -6px 9px rgba(0, 0, 0, .28), 0 3px 4px rgba(15, 42, 35, .25); }
.step__pin::before { content: ""; position: absolute; left: 8px; top: 24px; width: 16px; height: 12px; border-radius: 0 0 8px 8px; background: var(--pin); filter: brightness(.78); z-index: -1; }
.step__pin::after { content: ""; position: absolute; left: -15px; top: 21px; width: 32px; height: 15px; border-radius: 50%; background: rgba(15, 42, 35, .22); filter: blur(5px); z-index: -2; }
/* the dashed arrow to the next note: over the gap, curving up, then down, like a wave */
.step__link { position: absolute; z-index: 1; top: 34%; left: calc(100% - 2px); width: calc(var(--gap) + 4px); height: 46px; color: var(--evergreen); pointer-events: none; }
.step:nth-child(even) .step__link { top: auto; bottom: 30%; transform: scaleY(-1); }
.step__link svg { display: block; width: 100%; height: 100%; overflow: visible; }
.step__col { display: none; }
.step__link path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; opacity: .7; }
.step__link i { position: absolute; right: 0; top: 28%; width: 11px; height: 11px; border-right: 2.4px solid; border-bottom: 2.4px solid; border-radius: 0 0 3px 0; opacity: .7; transform: translate(10%, -50%) rotate(-45deg); }
html.js .step__link { clip-path: inset(-20px 100% -20px -10px); transition: clip-path .9s var(--ease) .4s; }
html.js .step.is-in .step__link { clip-path: inset(-20px -20px -20px -10px); }
/* tablets and phones: the notes wind down the page */
@media (max-width: 1099px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 72px; max-width: 560px; margin-inline: auto; }
  .step { width: 84%; }
  .step:nth-child(even) { justify-self: end; }
  .step__note { min-height: 0; padding: 32px 24px 24px; }
  .step__title { font-size: clamp(22px, 5.6vw, 27px); }
  .step__note p { font-size: 15.5px; }
  .step__link, .step:nth-child(even) .step__link { top: calc(100% + 10px); bottom: auto; left: 48%; right: auto; width: 30%; height: 50px; transform: none; }
  .step:nth-child(even) .step__link { left: auto; right: 48%; transform: scaleX(-1); }
  .step__row { display: none; }
  .step__col { display: inline; }
  .step__link i { top: auto; bottom: 0; transform: translate(50%, -2px) rotate(45deg); }
  html.js .step__link { clip-path: inset(0 0 100% 0); transition-property: clip-path; }
  html.js .step.is-in .step__link { clip-path: inset(-10px -20px -20px -10px); }
}
@media (prefers-reduced-motion: reduce) { html.js .step__link { clip-path: none !important; transition: none; } .step:hover .step__card { transform: rotate(var(--tilt, -3deg)); } }

.person { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--card); color: var(--ink); text-decoration: none; }
a.person { transition: transform .35s var(--ease); }
a.person:hover { color: var(--ink); transform: translateY(-3px); }
.avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.avatar--ink { background: var(--evergreen); color: var(--sun); font-family: var(--display); font-weight: 600; font-size: 19px; }
.avatar--sun { background: var(--sun); }
.avatar--white { background: var(--bg); }
.person strong { display: block; font-size: 16.5px; font-weight: 600; }
.person span span { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* call-to-action band */
.cta { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); align-items: center; gap: 28px; }
.cta__deco { justify-self: end; width: 100%; max-width: 180px; }
.cta__deco svg { width: 100%; height: auto; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta__deco { display: none; } }

/* ---------- Inner page heroes ---------- */
.page-hero { padding-top: clamp(44px, 6vw, 88px); }
.page-hero .panel { background: transparent; padding: 0; overflow: visible; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.page-hero .panel > * { max-width: 880px; }
.page-hero .lead { margin-inline: auto; }
.page-hero .deco { display: none; }
.page-hero .btn-row { justify-content: center; }
.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- Podcast ---------- */
.episodes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.episodes a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; transition: background-color .2s; }
.episodes a:hover { color: #fff; background: rgba(255, 255, 255, .13); }
.play { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--sun); display: inline-flex; align-items: center; justify-content: center; }
.play svg { width: 14px; height: 14px; fill: var(--ink); margin-left: 2px; }
.episodes strong { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.3; letter-spacing: -0.008em; }
.episodes small { font-size: 13px; color: var(--on-dark); }
.player { margin-top: 12px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.player iframe { display: block; width: 100%; height: 232px; border: 0; }
.player-load { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; }
.player-load .fine { color: var(--on-dark); max-width: 340px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--card); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; font-weight: 550; font-size: 16.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background-color: var(--sun); background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 11px 1.8px, 1.8px 11px; background-position: center; background-repeat: no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 64px 20px 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 40px); background: var(--card); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form--roomy { gap: 26px; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form fieldset:first-of-type:not(:last-of-type)::after { content: ""; display: block; margin-top: 10px; border-top: 1px solid var(--line); }
.form legend { padding: 0; margin-bottom: 6px; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.017em; }
.form legend small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row > .field { flex: 1 1 240px; }
.form-row > .field--wide { flex: 2 1 260px; }
.form-row > .field--narrow { flex: 1 1 140px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; font-weight: 550; color: var(--ink); }
.field__label { display: block; }
.field .hint { font-weight: 400; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--field); border-radius: 14px; background: #fff; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 120px; }
.select { -webkit-appearance: none; appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230F2A23' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--evergreen); box-shadow: 0 0 0 4px rgba(242, 178, 51, .45); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--clay); }
.field__error { font-size: 13px; font-weight: 550; color: var(--clay); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--slate); font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--evergreen); cursor: pointer; }
.check.is-invalid { color: var(--clay); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.6; }
.form-status--ok { background: var(--pale); color: var(--ink); }
.form-status--error { background: #F8DDD2; color: var(--ink); }
.form-status strong { display: block; margin-bottom: 2px; }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); }
.segmented button { flex: 1 1 180px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--slate); font: inherit; font-size: 14.5px; font-weight: 550; cursor: pointer; transition: background-color .2s, color .2s; }
.segmented button[aria-selected="true"] { background: var(--evergreen); color: #fff; }
html.no-js .segmented { display: none; }
@media (max-width: 480px) { .segmented { border-radius: 22px; } .segmented button { border-radius: 18px; } }
.contact-list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list > div { padding: 16px 20px; border-radius: var(--r); background: var(--card); }
.contact-list dt { font-size: 13px; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-size: 16.5px; font-weight: 600; }
.contact-list a { text-decoration: none; }
.note-box { padding: 16px 20px; border-radius: var(--r); background: var(--sun-soft); font-size: 14.5px; line-height: 1.6; color: var(--ink); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(28px, 5vw, 64px); padding: clamp(14px, 1.6vw, 20px) clamp(24px, 5vw, 64px) clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px); border-radius: var(--r-lg); background: var(--sun); }
.founder .lead, .founder .body, .founder .card3__num { color: var(--slate); }
.founder .chip { background: rgba(255, 255, 255, .7); }
.founder .more .arrow { background: #fff; }
.founder__photo { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--bg-deep); }
.founder__photo img, .founder__photo picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 0; }
.founder__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
@media (max-width: 860px) {
  .founder { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .founder__photo { aspect-ratio: 1; }
  .founder__body { padding: 6px 10px 18px; }
}
@media (max-width: 480px) { .founder__photo { aspect-ratio: 4 / 5; } }

/* ---------- Donate (checkout) ---------- */
.give-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px clamp(40px, 6vw, 96px); padding-top: clamp(36px, 5vw, 72px); }
.give-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.give-hero__copy .crumbs { display: flex; gap: 8px; }
.give-trust { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 6px; padding: 0; list-style: none; }
.give-trust li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.give-trust .ico { flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--card); color: var(--evergreen); }
.give-hero__media { position: relative; justify-self: center; width: min(100%, 420px); }
.give-hero__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 210px 210px var(--r-lg) var(--r-lg); overflow: hidden; background: var(--bg-deep); }
.give-hero__photo img, .give-hero__photo picture { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.give-hero__fact { position: absolute; left: -36px; bottom: 34px; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 20px; background: #fff; box-shadow: 0 2px 4px rgba(15, 42, 35, .06), 0 30px 50px -26px rgba(15, 42, 35, .5); transform: rotate(-3deg); }
.give-hero__fact-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 16px; background: var(--sun-soft); }
.give-hero__fact-icon svg { width: 38px; height: 38px; }
.give-hero__fact p { display: flex; flex-direction: column; gap: 2px; }
.give-hero__fact strong { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.017em; color: var(--ink); }
.give-hero__fact span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
  .give-hero { grid-template-columns: minmax(0, 1fr); }
  .give-hero__media { width: min(62%, 240px); justify-self: start; margin-left: 12px; }
  .give-hero__fact { left: -28px; bottom: 22px; padding: 10px 14px 10px 10px; }
  .give-hero__fact-icon { width: 42px; height: 42px; }
  .give-hero__fact strong { font-size: 20px; }
}
.donate { padding-top: clamp(48px, 6vw, 88px); scroll-margin-top: calc(var(--header-h) + 16px); }
/* numbered steps that tick off as they are done */
.give-step > legend { position: relative; padding-left: 48px; }
.give-num { position: absolute; left: 0; top: -2px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); transition: background-color .3s, color .3s; }
.give-step.is-done .give-num { background: var(--evergreen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F2B233' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; color: transparent; }
.give-card { box-shadow: 0 2px 4px rgba(15, 42, 35, .04), 0 40px 70px -50px rgba(15, 42, 35, .45); }
.give-fine { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.give-fine .ico { flex: 0 0 auto; width: 15px; height: 15px; color: var(--evergreen); }
/* phones: total and Donate stay in reach while filling in the form */
.give-bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--evergreen); color: #fff; box-shadow: 0 20px 40px -16px rgba(15, 42, 35, .6); transform: translateY(140%); transition: transform .4s var(--ease); }
.give-bar__total { display: flex; flex-direction: column; line-height: 1.15; }
.give-bar__total span { font-size: 12px; color: var(--on-dark); }
.give-bar__total strong { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.011em; }
.give-bar .btn--sun { background: var(--sun); color: var(--ink); }
.give-bar .btn--sun .arrow-i { background: var(--evergreen); color: var(--sun); }
@media (max-width: 1000px) { html.js .give-bar { display: flex; } }
.give-bar.is-on { transform: none; }
.donate__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); align-items: start; gap: 20px; }
@media (min-width: 1001px) { .donate__side { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 1000px) { .donate__grid { grid-template-columns: minmax(0, 1fr); } }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice--wide { grid-column: 1 / -1; }
.choice input, .paymethod input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.choice__body { position: relative; display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 16px 48px 16px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.choice__body::after { content: ""; position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--field); background: #fff center / 13px no-repeat; transition: background-color .2s, border-color .2s; }
.choice__icon { width: 48px; height: 48px; margin-bottom: 10px; display: inline-flex; align-items: center; justify-content: center; transition: transform .35s var(--ease); }
.choice__icon svg { width: 44px; height: 44px; }
.choice:hover .choice__icon, .choice input:checked + .choice__body .choice__icon { transform: rotate(-6deg) scale(1.06); }
.choice__body strong { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.choice__body small { font-size: 13.5px; line-height: 1.45; font-weight: 400; color: var(--muted); }
.choice:hover .choice__body { border-color: var(--slate); }
.choice input:checked + .choice__body { border-color: var(--evergreen); background: #FFF8E6; box-shadow: inset 0 0 0 1px var(--evergreen); }
.choice input:checked + .choice__body::after { border-color: var(--evergreen); background-color: var(--evergreen); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F2B233' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.choice input:focus-visible + .choice__body, .paymethod input:focus-visible + span { outline: 2px solid var(--evergreen); outline-offset: 3px; }
.field.is-invalid .choice__body { border-color: var(--clay); }
.amount-bar { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 0 26px; border-radius: 18px; background: var(--evergreen); color: #fff; cursor: text; transition: box-shadow .2s; }
.amount-bar__cur { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--sun); }
.amount-bar__input { flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: transparent; color: #fff; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.019em; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.amount-bar__input::-webkit-outer-spin-button, .amount-bar__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-bar__input::placeholder { color: rgba(255, 255, 255, .35); }
.amount-bar__input:focus { outline: none; }
.amount-bar:focus-within { box-shadow: 0 0 0 4px rgba(242, 178, 51, .55); }
.field.is-invalid .amount-bar { box-shadow: 0 0 0 2px var(--clay); }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amount { flex: 1 1 64px; min-height: 48px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.amount:hover { border-color: var(--slate); }
.amount.is-on { border-color: var(--evergreen); background: var(--evergreen); color: #fff; }
.amount--custom { flex: 2 1 130px; font-size: 14px; }
html.no-js .amounts { display: none; }
@media (max-width: 640px) { .amount { flex-basis: 28%; } .amount--custom { flex-basis: 100%; } }
.form legend .legend-sub { display: block; margin-top: 4px; font-size: 13.5px; }
.paymethods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.paymethod { position: relative; display: block; }
.paymethod span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 80px; padding: 10px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.paymethod .ico { width: 24px; height: 24px; color: var(--evergreen); }
.paymethod .duo { width: 38px; height: 38px; }
.paymethod span { gap: 8px; }
.paymethods--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paymethod--row span { flex-direction: row; gap: 10px; min-height: 56px; }
.paymethod--row .ico { width: 20px; height: 20px; }
.paymethod:hover span { border-color: var(--slate); }
.paymethod input:checked + span { border-color: var(--evergreen); background: #FFF8E6; box-shadow: inset 0 0 0 1px var(--evergreen); }
.btn--block { width: 100%; min-height: 60px; font-size: 16.5px; }
.summary { padding: 26px 18px 22px; border-radius: var(--r-lg); background: var(--evergreen); color: #fff; }
.summary__img { aspect-ratio: 16 / 10; margin: 0 0 18px; border-radius: 18px; overflow: hidden; background: var(--bg-deep); }
.summary__img img, .summary__img picture { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.summary > .h3 { padding: 0 8px; margin-bottom: 14px; color: #fff; }
.summary__items { margin: 0; padding: 0 8px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.summary__items li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 550; color: #fff; }
.summary__items .choice__icon { width: 38px; height: 38px; margin: 0; flex: 0 0 auto; border-radius: 12px; background: #fff; transform: none !important; }
.summary__items .choice__icon svg { width: 30px; height: 30px; }
.summary__empty { color: var(--on-dark) !important; font-weight: 400 !important; }
.summary__rows { margin: 20px 8px 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 10px; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--on-dark); }
.summary__rows dd { margin: 0; font-weight: 600; color: #fff; text-align: right; }
.summary__total { align-items: baseline; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .22); }
.summary__total dt { font-family: var(--display); font-size: 18px; font-weight: 500; color: #fff; }
.summary__total dd { font-family: var(--display); font-size: clamp(28px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.019em; color: var(--sun); }
.summary__note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 8px 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 13.5px; line-height: 1.5; color: var(--on-dark); }
.summary__note .ico { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--sun); }
@media (max-width: 520px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
  .choice__body { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 48px 14px 14px; }
  .choice__icon svg { width: 40px; height: 40px; }
  .paymethod--row span { font-size: 13.5px; gap: 8px; }
  .choice__icon { grid-row: 1 / span 2; margin: 0; }
  .choice__body::after { top: 50%; margin-top: -11px; }
  .amount-bar { min-height: 68px; padding: 0 20px; }
  .paymethod span { min-height: 72px; font-size: 13px; }
}

/* ---------- Programmes: early warning for schools ---------- */
.ew { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 5.5vw, 76px) clamp(22px, 5.5vw, 76px) clamp(36px, 5vw, 64px); border-radius: var(--r-lg); background: var(--night); color: #fff; }
.ew::before { content: ""; position: absolute; z-index: -1; right: -14%; top: -40%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(242, 178, 51, .16), transparent 70%); }
.ew::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); }
.ew__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(48px, 6vw, 88px); }
.ew__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ew__intro .lead { color: var(--on-dark); max-width: 460px; }
.ew__chip { display: inline-flex; align-items: center; gap: 9px; background: rgba(242, 178, 51, .14); color: var(--sun); box-shadow: inset 0 0 0 1px rgba(242, 178, 51, .35); }
.ew__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.ew__pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--sun); animation: ew-pulse 2s ease-out infinite; }
@keyframes ew-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.ew__hazards { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ew__hazards li { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 14px; font-weight: 550; color: #fff; }
.ew__hz { display: inline-flex; flex: 0 0 auto; width: 34px; height: 34px; padding: 5px; border-radius: 50%; background: #fff; }
.ew__hz img, .ew__hz picture { display: block; width: 100%; height: 100%; }
.ew__intro .btn-row { margin-top: 6px; }
.ew__privacy { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--on-dark); }
.ew__privacy .ico { flex: 0 0 auto; width: 16px; height: 16px; color: var(--sun); }

/* the example alert, floating over the photo */
.ew__visual { position: relative; margin: 0; padding: 0 0 150px; }
.ew__photo { aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden; background: var(--evergreen-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.ew__photo img, .ew__photo picture { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ew-alert { position: absolute; left: -36px; bottom: 0; width: min(340px, 80%); padding: 18px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 40px 70px -30px rgba(0, 0, 0, .65); }
.ew-alert__head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ew-alert__app { display: inline-flex; flex: 0 0 auto; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 11px; background: var(--evergreen); color: var(--sun); }
.ew-alert__app .ico { width: 19px; height: 19px; }
.ew-alert__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ew-alert__who strong { font-size: 14px; font-weight: 650; }
.ew-alert__who span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ew-alert__time { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ew-alert__reading { display: flex; align-items: center; gap: 14px; padding-top: 16px; }
.ew-alert__num { font-family: var(--display); font-weight: 600; font-size: 50px; line-height: .9; letter-spacing: -0.028em; color: #C2410C; font-variant-numeric: tabular-nums; }
.ew-alert__unit { display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.ew-alert__unit strong { font-size: 13px; font-weight: 650; color: var(--ink); }
.ew-alert__unit span { font-size: 12px; color: var(--muted); }
.ew-alert__level { display: inline-flex; margin-top: 12px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: #FFEDD5; color: #9A3412; font-size: 12.5px; font-weight: 650; }
.ew-alert__scale { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 14px 0 16px; }
.ew-alert__scale span { height: 6px; border-radius: 3px; }
.ew-alert__scale span:nth-child(1) { background: #4ADE80; } .ew-alert__scale span:nth-child(2) { background: #FACC15; } .ew-alert__scale span:nth-child(3) { background: #FB923C; }
.ew-alert__scale span:nth-child(4) { background: #EF4444; } .ew-alert__scale span:nth-child(5) { background: #A855F7; }
.ew-alert__scale i { position: absolute; top: 50%; left: var(--at); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 2px 6px rgba(0, 0, 0, .3); }
.ew-alert__step { padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.ew-alert__step span { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--leaf); }
.ew-alert__step p { font-size: 14px; line-height: 1.45; color: var(--ink); }
.ew-alert__actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; margin-top: 12px; }
.ew-alert__btn { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.ew-alert__btn--go { background: var(--evergreen); color: #fff; box-shadow: none; }
.ew-toast { position: absolute; top: 20px; right: -18px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .6); }
.ew-toast .ico { flex: 0 0 auto; width: 26px; height: 26px; color: #16A34A; }
.ew-toast span { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.ew-toast strong { font-size: 13.5px; color: var(--ink); }
html.js .ew__visual .ew-alert { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) .15s, transform .8s var(--ease) .15s; }
html.js .ew__visual .ew-toast { opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .6s var(--ease) .9s, transform .6s var(--ease) .9s; }
html.js .ew__visual .ew-alert__scale i { left: 0%; transition: left 1.1s var(--ease) .7s; }
html.js .ew__visual.is-in .ew-alert, html.js .ew__visual.is-in .ew-toast { opacity: 1; transform: none; }
html.js .ew__visual.is-in .ew-alert__scale i { left: var(--at); }

/* how it works: four steps joined by a line */
.ew__flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: clamp(52px, 6vw, 84px) 0 0; padding: clamp(32px, 4vw, 44px) 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .1); }
.ew__flow::before { content: ""; position: absolute; top: calc(clamp(32px, 4vw, 44px) + 29px); left: 29px; right: calc(25% - 5px); height: 2px; background: repeating-linear-gradient(90deg, rgba(242, 178, 51, .55) 0 6px, transparent 6px 12px); }
.ew__flow li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.ew__ico { position: relative; z-index: 1; display: inline-flex; width: 60px; height: 60px; margin-bottom: 14px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--evergreen); box-shadow: 0 0 0 6px var(--night), 0 14px 26px -14px rgba(0, 0, 0, .7); transition: transform .35s var(--ease); }
.ew__svg { width: 36px; height: 36px; }
.ew__flow li:hover .ew__ico { transform: translateY(-3px) rotate(-4deg); }
.ew__flow li:last-child .ew__ico { background: var(--sun); }
.ew__step { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); }
.ew__flow h3 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.017em; color: #fff; }
.ew__flow p { max-width: 30ch; font-size: 14.5px; line-height: 1.6; color: var(--on-dark); }

@media (max-width: 1100px) {
  .ew__top { grid-template-columns: minmax(0, 1fr); }
  .ew__visual { width: 100%; max-width: 640px; justify-self: center; }
  .ew-alert { left: 20px; }
  .ew-toast { right: 16px; }
}
@media (max-width: 1000px) {
  .ew__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .ew__flow::before { display: none; }
}
@media (max-width: 560px) {
  .ew__visual { padding: 0 0 270px; }
  .ew__photo { aspect-ratio: 4 / 3; }
  .ew-alert { left: 50%; width: calc(100% - 24px); transform: translateX(-50%); }
  html.js .ew__visual .ew-alert { transform: translate(-50%, 28px); }
  html.js .ew__visual.is-in .ew-alert { transform: translateX(-50%); }
  .ew-toast { top: 14px; right: 10px; }
  .ew-alert__num { font-size: 44px; }
  .ew__flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ew__flow li { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; padding-bottom: 26px; }
  .ew__flow li::before { content: ""; position: absolute; left: 29px; top: 60px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, rgba(242, 178, 51, .55) 0 6px, transparent 6px 12px); }
  .ew__flow li:last-child::before { display: none; }
  .ew__ico { grid-row: 1 / span 3; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ew__pulse::after { animation: none; }
  html.js .ew__visual .ew-alert, html.js .ew__visual .ew-toast { opacity: 1; transition: none; }
  html.js .ew__visual .ew-alert__scale i { left: var(--at); transition: none; }
}

/* ---------- About: vision, mission, story ---------- */
.story-note { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 760px; margin-inline: auto; text-align: center; }
.story-note .lead { max-width: 660px; margin-inline: auto; }
.quote--center { max-width: 560px; margin-top: 8px; padding: 24px 28px; }
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vm__card { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--card); }
.vm__card--sun { background: var(--sun); }
.vm__card--sun .tag { background: #fff; }
.vm__text { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -0.019em; text-wrap: balance; }
@media (max-width: 760px) { .vm { grid-template-columns: minmax(0, 1fr); } }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (min-width: 901px) { .story__intro { position: sticky; top: calc(var(--header-h) + 28px); } }
@media (max-width: 900px) { .story { grid-template-columns: minmax(0, 1fr); } }
.quote { margin: 6px 0 0; padding: 22px 24px; border-radius: var(--r); background: var(--evergreen); color: #fff; }
.quote p { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; letter-spacing: -0.011em; }
.quote footer { margin-top: 10px; font-size: 13px; color: var(--on-dark); }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 100px; top: 12px; bottom: 12px; width: 2px; background: var(--pale); }
.timeline li { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: start; }
.timeline__date { padding-top: 17px; text-align: right; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.006em; font-variant-numeric: tabular-nums; }
.timeline li > div { position: relative; padding: 16px 20px; border-radius: var(--r); background: var(--card); }
.timeline li > div::before { content: ""; position: absolute; left: -15px; top: 21px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--bg); }
.timeline strong { display: block; font-size: 16px; font-weight: 600; }
.timeline p { margin-top: 2px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.timeline__now > div { background: var(--evergreen) !important; color: #fff; }
.timeline__now p { color: var(--on-dark); }
@media (max-width: 520px) {
  .timeline::before { left: 71px; }
  .timeline li { grid-template-columns: 64px minmax(0, 1fr); }
  .timeline__date { font-size: 13px; }
}

/* ---------- Storybooks: the shelf ---------- */
.shelf-head { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: clamp(44px, 6vw, 88px); text-align: center; }
.shelf-head .lead { margin-inline: auto; }
.shelf { padding-top: clamp(40px, 5vw, 72px); }
.books { --gap: clamp(16px, 2.6vw, 36px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(30px, 4vw, 52px) var(--gap); margin: 0; padding: 0; list-style: none; }
.books > li { width: calc((100% - 3 * var(--gap)) / 4); }
@media (min-width: 1100px) { .books > li { width: calc((100% - 4 * var(--gap)) / 5); } }
@media (max-width: 999px) { .books > li { width: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 639px) { .books > li { width: calc((100% - var(--gap)) / 2); } }
.book-card { display: flex; flex-direction: column; gap: 0; color: var(--ink); text-decoration: none; }
.book-card:hover { color: var(--ink); }
.book-card__cover { display: block; aspect-ratio: 800 / 1236; margin-bottom: 16px; border-radius: 4px 12px 12px 4px; overflow: hidden; background: var(--bg-deep); box-shadow: 0 2px 4px rgba(15, 42, 35, .08), 0 28px 40px -26px rgba(15, 42, 35, .6); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.book-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.book-card:hover .book-card__cover, a.book-card:focus-visible .book-card__cover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 2px 4px rgba(15, 42, 35, .08), 0 42px 50px -30px rgba(15, 42, 35, .65); }
.book-card__topic { align-self: flex-start; margin-bottom: 8px; padding: 4px 11px; border-radius: 999px; background: var(--card); font-size: 12.5px; font-weight: 400; line-height: 1.3; color: var(--slate); }
.more-books .book-card__topic { align-self: center; }
.book-card__title { font-family: var(--display); font-weight: 650; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.2; letter-spacing: -0.017em; color: var(--ink); text-wrap: balance; }

/* ---------- Storybooks: a book ---------- */
.book-page { padding-top: clamp(40px, 6vw, 80px); }
.book-head { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 720px; margin-inline: auto; text-align: center; }
.book-head .lead { max-width: 600px; margin-inline: auto; }
.book-learn { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.book-learn__title { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--leaf); }
.book-learn ul { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 0; list-style: none; text-align: left; }
.book-learn li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.book-learn li::before { content: ""; flex: 0 0 9px; height: 9px; margin-top: .52em; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }
.book-summary { position: relative; max-width: 640px; margin: 4px auto 0; padding-top: 26px; font-family: var(--display); font-weight: 450; font-size: clamp(18px, 1.75vw, 21px); line-height: 1.55; letter-spacing: -0.007em; color: var(--slate); text-wrap: pretty; }
.book-summary::before { content: ""; position: absolute; top: 0; left: 50%; width: 46px; height: 3px; margin-left: -23px; border-radius: 3px; background: var(--sun); }
.more-books { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 44px); padding-top: clamp(72px, 9vw, 120px); text-align: center; }
.books--more { width: 100%; }
.book-foot { padding-top: clamp(28px, 4vw, 44px); }
.book-back { display: flex; justify-content: center; }
.arrow--back svg { transform: rotate(180deg); }
.more:hover .arrow--back { transform: translateX(-3px); }

/* the book: opens when it scrolls into view, pages turn in 3D */
.flip { --turn: cubic-bezier(.45, .06, .22, 1); --dur: .9s; margin-top: clamp(36px, 5vw, 60px); }
.flip__stage, .flip__bar, .flip__progress { display: none; }
html.js .flip.is-ready .flip__list { display: none; }
html.js .flip.is-ready .flip__stage { display: block; position: relative; padding: clamp(6px, 1.5vw, 18px) 0; touch-action: pan-y; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.flip__stage:focus-visible .flip__book { outline: 2px solid var(--evergreen); outline-offset: 8px; border-radius: 16px; }
.flip__book { position: relative; margin-inline: auto; perspective: 2600px; transition: transform var(--dur) var(--turn); }
.flip--spread .flip__book { width: min(100%, calc((100vh - 190px) * var(--spread))); width: min(100%, calc((100svh - 190px) * var(--spread))); aspect-ratio: var(--spread); }
.flip--spread .flip__book.is-closed { transform: translateX(-25%); }
.flip--single .flip__book { width: min(100%, max(280px, calc((100vh - 190px) * var(--page)))); width: min(100%, max(280px, calc((100svh - 190px) * var(--page)))); aspect-ratio: var(--page); }
.flip__side { position: absolute; top: 0; bottom: 0; width: 50%; }
.flip__side--l { left: 0; }
.flip__side--r { left: 50%; }
.flip--single .flip__side--l { display: none; }
.flip--single .flip__side--r { left: 0; width: 100%; }

.face { position: absolute; inset: 0; overflow: hidden; background: #FBF8F1; }
.face--empty { background: none; }
.face--blank { display: none; }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.flip__side > .face:not(.face--empty), .flip__leaf .face { box-shadow: 0 2px 4px rgba(15, 42, 35, .07), 0 30px 50px -30px rgba(15, 42, 35, .55); }
.flip--spread .flip__side--l .face, .flip--spread .flip__leaf--r .leaf__back, .flip--spread .flip__leaf--l .leaf__front { border-radius: 14px 3px 3px 14px; }
.flip--spread .flip__side--r .face, .flip--spread .flip__leaf--r .leaf__front, .flip--spread .flip__leaf--l .leaf__back, .flip--single .face { border-radius: 3px 14px 14px 3px; }
.face--text {
  display: flex; flex-direction: column; padding: 9% 10% 7% 11%; container-type: inline-size; color: #2B2722;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  background: linear-gradient(90deg, rgba(70, 55, 30, .12), rgba(70, 55, 30, 0) 9%), #FBF8F1;
}
.flip--single .face--text { padding: 8% 8% 6% 9%; }
@media (max-width: 380px) { .flip--single .face__head { display: none; } }
.face__head, .face__num { align-self: flex-end; font-family: var(--sans); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #9A9182; }
.face__num { letter-spacing: 0; font-size: 11px; }
.face__words { margin: auto 0; font-size: 17px; font-size: clamp(14px, 5.6cqi, 22px); line-height: 1.55; text-wrap: pretty; }

.flip__leaf { position: absolute; top: 0; bottom: 0; z-index: 3; transform-style: preserve-3d; transition: transform var(--dur) var(--turn); }
.flip__leaf--r { left: 50%; width: 50%; transform-origin: 0 50%; }
.flip__leaf--l { left: 0; width: 50%; transform-origin: 100% 50%; }
.flip__leaf--page { left: 0; width: 100%; transform-origin: 0 50%; }
.flip__leaf--r.is-turning, .flip__leaf--page.is-turning, .flip__leaf--page.is-back { transform: rotateY(-180deg); }
.flip__leaf--l.is-turning { transform: rotateY(180deg); }
.flip__leaf--page.is-back.is-turning { transform: rotateY(0deg); }
.leaf__front, .leaf__back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__leaf--r .leaf__back, .flip__leaf--page .leaf__back { transform: rotateY(180deg); }
.flip__leaf--l .leaf__back { transform: rotateY(-180deg); }
/* shade sweeping over the page as it bends */
.flip__leaf .face::after { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15, 42, 35, .3), rgba(15, 42, 35, 0) 75%); }
.flip__leaf--l .leaf__front::after, .flip__leaf--r .leaf__back::after { background: linear-gradient(270deg, rgba(15, 42, 35, .3), rgba(15, 42, 35, 0) 75%); }
.flip__leaf.is-turning .face::after { animation: leaf-shade var(--dur) var(--turn); }
@keyframes leaf-shade { 50% { opacity: 1; } }

/* without JavaScript: pictures and words, one after another */
.flip__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.flip__src { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--card); }
.flip__src img { display: block; width: 100%; height: auto; border-radius: 10px; }
.flip__src p { padding: 0 6px 8px; font-size: 16px; line-height: 1.6; color: var(--slate); }

/* controls */
html.js .flip.is-ready .flip__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); align-items: center; gap: 12px; max-width: 760px; margin: 14px auto 0; }
html.js .flip.is-ready .flip__progress { display: block; max-width: 220px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: var(--line); overflow: hidden; }
.flip__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--sun); transition: width .6s var(--ease); }
.reader__btn { grid-column: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.reader__btn--next { grid-column: 4; background: var(--sun); }
.reader__btn svg { width: 18px; height: 18px; }
.reader__btn[data-prev] svg { transform: rotate(180deg); }
.reader__btn:disabled { opacity: .35; cursor: default; }
.reader__btn:hover:not(:disabled) { transform: scale(1.06); }
.reader__count { grid-column: 3; min-width: 72px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.reader__listen { grid-column: 5; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--evergreen); color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.reader__listen:hover { background: var(--evergreen-2); }
.reader__listen[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.reader__listen[hidden] { display: none; }
.listen-ico { display: inline-flex; }
.listen-ico .ico { width: 20px; height: 20px; }
[data-listen] .listen-ico .ico + .ico, [data-listen][aria-pressed="true"] .listen-ico .ico:first-child { display: none; }
[data-listen][aria-pressed="true"] .listen-ico .ico + .ico { display: inline-block; }
@media (max-width: 560px) {
  html.js .flip.is-ready .flip__bar { gap: 8px; }
  .reader__listen { width: 48px; padding: 0; justify-content: center; }
  .reader__listen [data-listen-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .flip { --dur: .01s; } }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 250px minmax(0, 780px); gap: 24px 48px; align-items: start; padding-top: clamp(40px, 5vw, 64px); }
.toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 20px; border-radius: var(--r); background: var(--card); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.toc > strong { font-size: 13px; font-weight: 550; color: var(--muted); margin-bottom: 2px; }
.toc a { color: var(--slate); text-decoration: none; line-height: 1.45; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { font-weight: 600; }
.toc__item { display: flex; align-items: center; gap: 10px; color: var(--slate); }
.prose { display: flex; flex-direction: column; gap: 36px; font-size: 16px; line-height: 1.75; color: var(--slate); background: var(--card); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 52px); }
.prose section { display: flex; flex-direction: column; gap: 10px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.2; letter-spacing: -0.019em; color: var(--ink); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--leaf); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }
.prose .callout { padding: 24px; background: var(--bg); border-radius: var(--r); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; text-align: left; }
.table th, .table td { padding: 13px 18px 13px 0; vertical-align: top; }
.table thead tr { border-bottom: 1.5px solid var(--ink); }
.table tbody tr { border-bottom: 1px solid var(--line); }
.table thead th { font-weight: 600; color: var(--ink); }
.table td { color: var(--slate); }
.table--legal { min-width: 540px; }
.table--legal td:first-child { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
  .toc > strong { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .toc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.nf { padding-top: clamp(40px, 7vw, 96px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.nf__big { display: flex; align-items: center; gap: .04em; font-family: var(--display); font-weight: 500; font-size: clamp(120px, 22vw, 260px); line-height: .85; letter-spacing: -0.039em; color: var(--pale); }
.nf__sun { width: .74em; height: .74em; border-radius: 50%; background: var(--sun); }

/* ---------- Footer: quiet, clear, with a giant fading wordmark ---------- */
.site-footer { margin-top: var(--section); background: var(--night); color: #fff; overflow: hidden; }
.site-footer a { color: #fff; }
.footer-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.4; min-width: 0; }
.footer-nav h2 { margin-bottom: 4px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: #fff; }
.footer-nav a, .footer-nav span { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: var(--on-dark); }
.footer-bottom__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { color: #fff; text-decoration: none; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--sun); }
.footer-social { display: flex; gap: 8px; }
.footer-social { flex-wrap: wrap; }
.footer-social a, .footer-social span { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, border-color .2s, color .2s; }
.footer-social a:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.footer-social svg { width: 17px; height: 17px; }
.footer-social .is-soon { cursor: default; }
.footer-giant { margin-top: clamp(4px, 1.5vw, 16px); }
.footer-giant img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .footer-top > div.footer-nav { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal-d1 { transition-delay: .08s; } html.js .reveal-d2 { transition-delay: .16s; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .12em .14em; margin: 0 -.12em -.14em; }
.split .w > span { display: inline-block; }
html.js .split.is-split .w > span { transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms + 60ms); }
@keyframes rise { to { transform: none; } }
html.js .split:not(.is-split) { visibility: hidden; animation: show-late 0s 1.4s forwards; }
@keyframes show-late { to { visibility: visible; } }
html.js .gallery__item { opacity: 0; transform: translateY(32px); animation: up 1s var(--ease) forwards; }
html.js .gallery__item:nth-child(1) { animation-delay: .5s; } html.js .gallery__item:nth-child(2) { animation-delay: .35s; } html.js .gallery__item:nth-child(3) { animation-delay: .65s; }
@keyframes up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .split:not(.is-split) { visibility: visible; animation: none; }
  html.js .split.is-split .w > span { transform: none; animation: none; }
  html.js .gallery__item { opacity: 1; transform: none; animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .skip-link, .toc, .car-nav, .footer-giant, .footer-social { display: none !important; }
  .site-footer { background: none; color: var(--ink); }
  body { background: #fff; font-size: 12pt; }
  .legal { display: block; }
}
