/* Rhapsody of Realities UK
   Derived from Zipline (cream canvas, condensed display over full-bleed people photography, photo stat cards, single accent surface)
   + Aker (monumental type over photography) + brand palette from the Rhapsody logo (deep blue, gold). */

:root {
  --cream: #f7f4e8;
  --paper: #fffdf6;
  --stone: #c6c3ba;
  --stone-2: #e6e2d4;
  --ink: #14120f;
  --ink-2: #3b3832;
  --muted: #5d5a52;           /* 6.4:1 on cream */
  --blue: #012169;            /* UK (Union Jack) navy: the accent surface */
  --blue-2: #0b2f8a;
  --red: #c8102e;             /* British red: primary actions */
  --red-deep: #a50d25;
  --sky: #3d6fe0;
  --gold: #e3b23c;
  --gold-ink: #8a6410;        /* gold for text on cream, 4.9:1 */
  --on-dark: #f7f4e8;
  --on-dark-muted: #bdb8a9;
  --danger: #b4321f;
  --success: #24744a;

  --font-display: "Anton", "Anton Fallback", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* One small type scale, reused everywhere */
  --t-micro: 0.75rem;
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --t-h2: clamp(2.75rem, 1.6rem + 5vw, 6rem);
  --t-h1: min(clamp(3.25rem, 1.6rem + 6.6vw, 8.5rem), 15svh);
  --t-mega: clamp(4.5rem, 2rem + 13vw, 15rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;
  --section: clamp(80px, 6vw + 48px, 160px);
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --r: 20px;                  /* cards, images */
  --r-in: 12px;               /* inner = outer - padding (concentric) */
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  /* spring (slight overshoot) for small interactive parts */
  --ease-spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.103 28%, 1.073 32.6%, 0.996 41.8%, 0.982 46.2%, 0.989 55.1%, 1.002 66%, 0.998 82.6%, 1);
  --dur-1: 160ms; --dur-2: 240ms; --dur-3: 420ms;
  --nav-h: 76px;
  --outline-img: 0 0 0 1px rgb(20 18 15 / 0.08) inset;
  /* Elevation: warm, layered shadows (not flat) */
  --sh-1: 0 1px 1px rgb(60 45 20 / .06), 0 2px 4px -1px rgb(60 45 20 / .08), 0 0 0 1px rgb(20 18 15 / .06);
  --sh-2: 0 2px 4px rgb(60 45 20 / .05), 0 10px 24px -8px rgb(60 45 20 / .18), 0 0 0 1px rgb(20 18 15 / .05);
  --sh-3: 0 4px 8px rgb(60 45 20 / .05), 0 24px 48px -16px rgb(60 45 20 / .28), 0 60px 90px -40px rgb(1 33 105 / .25), 0 0 0 1px rgb(20 18 15 / .04);
  --sh-dark: 0 30px 60px -20px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .06);
  --hi: inset 0 1px 0 rgb(255 255 255 / .6);
  color-scheme: light;
}

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Anton Fallback"; src: local("Arial Narrow Bold"), local("Impact"); size-adjust: 92%; ascent-override: 118%; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font-body); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body[data-lock] { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
/* height reveal (transitions.dev accordion): grid rows 0fr -> 1fr + fade/blur, 250ms */
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 250ms cubic-bezier(0.22, 1, 0.36, 1); }
.collapse[data-open="true"] { grid-template-rows: 1fr; }
.collapse > .collapse-in { min-height: 0; overflow: hidden; padding: 6px; margin: -6px; /* room for focus rings, outlines and lift */ opacity: 0; filter: blur(2px); transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1), filter 250ms cubic-bezier(0.22, 1, 0.36, 1); }
.collapse[data-open="true"] > .collapse-in { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) { .collapse, .collapse > .collapse-in { transition: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--r-pill); transition: top var(--dur-2) var(--ease-out); }
.skip:focus { top: 16px; }

/* paper grain over everything, never interactive */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background: url("../img/graphics/grain.svg") repeat; background-size: 200px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section-sm { padding-block: calc(var(--section) * .6); }
.dark { background: var(--ink); color: var(--on-dark); }
.blue { background: var(--blue); color: var(--on-dark); }
.paper { background: var(--paper); }

/* ---------- type ---------- */
.display, .h1, .h2, .mega {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  line-height: .96; letter-spacing: .012em; word-spacing: .06em; text-wrap: balance;
}
.mega { font-size: var(--t-mega); line-height: .98; letter-spacing: .015em; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.serif { font-family: var(--font-serif); font-weight: 400; text-transform: none; letter-spacing: -0.01em; }
.h1 .serif, .h2 .serif, .h3 .serif, .mega .serif { font: inherit; text-transform: inherit; letter-spacing: inherit; } /* no italic headings */
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.dark .lead, .blue .lead { color: var(--on-dark-muted); }
.body { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.body p + p { margin-top: 1em; }
.muted { color: var(--muted); }
.dark .muted, .blue .muted { color: var(--on-dark-muted); }
.small { font-size: var(--t-small); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.dark .eyebrow, .blue .eyebrow, .on-photo .eyebrow { color: var(--on-dark-muted); }
.hero .eyebrow { color: var(--cream); text-shadow: 0 1px 12px rgb(0 0 0 / .55); }
.index b { font-weight: 600; color: var(--gold-ink); margin-right: 1.1em; }
.dark .index b { color: var(--gold); }
.index { font: 500 var(--t-micro)/1 var(--font-body); letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--muted); }
.quote-mark { font-family: var(--font-serif); font-size: 4em; line-height: .6; color: var(--gold); display: block; height: .45em; }

/* inline photo token inside display type (Zipline device) */
.token {
  box-shadow: 0 10px 20px -8px rgb(60 45 20 / .45), 0 0 0 1px rgb(20 18 15 / .08) !important;
  display: inline-block; vertical-align: -0.06em; width: 1.6em; height: .78em; border-radius: .2em;
  overflow: hidden; margin-left: .14em; margin-right: .04em; position: relative; isolation: isolate; box-shadow: var(--outline-img); background: var(--stone);
}
.token img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.token img + img { visibility: hidden; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); --fill: var(--blue);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 1px 2px rgb(0 0 0 / .12), 0 8px 18px -10px rgb(0 0 0 / .45);
  transition: box-shadow var(--dur-2) var(--ease-out), transform 480ms var(--ease-spring), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.btn::before { /* fill wipe on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  transform: translateY(101%); border-radius: inherit; transition: transform var(--dur-3) var(--ease-out);
}
.btn i { font-size: 1.05em; transition: transform var(--dur-2) var(--ease-out); }
.btn:active { transform: scale(.96); transition-duration: 120ms; }
.btn-light { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); --fill: var(--red); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); --fill: var(--ink); }
.btn-ghost-light { --bg: transparent; --fg: var(--cream); --bd: rgb(247 244 232 / .55); --fill: var(--cream); }
.btn-primary { --bg: linear-gradient(180deg, #d92340, var(--red)); --fg: var(--cream); --bd: var(--red-deep); --fill: var(--blue); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(120 0 20 / .25), 0 10px 22px -10px rgb(200 16 46 / .55); }
.btn-ghost, .btn-ghost-light { box-shadow: none; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 1rem; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 2px 4px rgb(0 0 0 / .12), 0 16px 28px -12px rgb(0 0 0 / .5); }
  .btn:hover::before { transform: translateY(0); }
  .btn:hover i { transform: translateX(3px); }
  .btn:hover i.ph-arrow-up-right { transform: translate(2px, -2px); }
  .btn-ghost:hover { --fg: var(--cream); }
  .btn-ghost-light:hover { --fg: var(--ink); }
  .btn-light:hover { --fg: var(--cream); }
}

.link-u { /* underline that fills in */
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size var(--dur-3) var(--ease-out); padding-bottom: 2px;
}
@media (hover: hover) and (pointer: fine) { .link-u:hover { background-size: 100% 1px; } }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.arrow-link i { transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover i { transform: translateX(4px); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); color: var(--cream);
  transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out);
}
.nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(10 9 8 / .45), transparent); pointer-events: none; transition: opacity var(--dur-3); }
.nav[data-solid] { background: rgb(247 244 232 / .86); color: var(--ink); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgb(20 18 15 / .08); }
.nav[data-solid]::before { opacity: 0; }
/* pages without a photo hero get ink nav text */
body:not(:has(.hero)) .nav:not([data-solid]) { color: var(--ink); }
body:not(:has(.hero)) .nav::before { opacity: 0; }
.nav-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; opacity: .7; margin-top: 4px; }
.nav-links { position: relative; display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px; border-radius: var(--r-pill); }
.nav-links a { position: relative; z-index: 1; display: block; padding: 10px 14px; font-size: .9375rem; font-weight: 500; border-radius: var(--r-pill); opacity: .82; transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1); }
.nav-links a[aria-current="page"], .nav-links a.is-pill { opacity: 1; }
/* transitions.dev "tabs sliding" (16): pill follows the hovered link, rests on the current page */
.nav-pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; z-index: 0; pointer-events: none;
  border-radius: var(--r-pill); background: rgb(247 244 232 / .24); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); backdrop-filter: blur(8px);
  opacity: 0; transform: translateX(0);
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), width 250ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease-out, background-color 250ms;
}
.nav-pill.on { opacity: 1; }
.nav[data-solid] .nav-pill, body:not(:has(.hero)) .nav-pill { background: rgb(20 18 15 / .09); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .nav-pill, .nav-links a { transition: none !important; } }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav .btn { min-height: 42px; padding: 0 18px; }
.nav:not([data-solid]) .btn-ghost { --fg: currentColor; --bd: currentColor; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform var(--dur-2) var(--ease-out); }
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
}
@media (max-width: 420px) { .nav-cta .btn-light, .nav-cta .btn-primary { display: none; } }

/* mobile menu: full-screen sheet, clip-path reveal */
.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--ink); color: var(--cream);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 520ms var(--ease-drawer), visibility 0s 520ms;
}
.menu[data-open] { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 520ms var(--ease-drawer), visibility 0s; }
body:has(.menu[data-open]) .nav { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu li a { display: block; font: 400 clamp(2.75rem, 12vw, 4.5rem)/1 var(--font-display); text-transform: uppercase; padding: 6px 0; transform: translateY(105%); transition: transform 520ms var(--ease-out); }
.menu[data-open] li a { transform: none; transition-delay: calc(120ms + var(--i) * 45ms); }

/* ---------- page loader (dot swing, user-supplied) ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: var(--cream);
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 450ms;
}
.js .loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.js .loader.is-leaving { opacity: 1; visibility: visible; transition: opacity 220ms ease-out, visibility 0s; }
.uib { --uib-size: 40px; --uib-color: var(--ink); --uib-speed: 1.6s; position: relative; top: 8%; display: flex; align-items: center; justify-content: flex-start; height: var(--uib-size); width: var(--uib-size); }
.uib .dot { position: absolute; top: 13.5%; left: 0; display: flex; align-items: center; justify-content: flex-start; height: 100%; width: 100%; animation: uib-swing var(--uib-speed) linear infinite; }
.uib .dot::before { content: ''; height: 25%; width: 25%; border-radius: 50%; background-color: var(--uib-color); transition: background-color 0.3s ease; }
.uib .dot:nth-child(1) { animation-delay: calc(var(--uib-speed) * -0.36); }
.uib .dot:nth-child(2) { animation-delay: calc(var(--uib-speed) * -0.27); opacity: 0.8; }
.uib .dot:nth-child(2)::before { transform: scale(0.9); }
.uib .dot:nth-child(3) { animation-delay: calc(var(--uib-speed) * -0.18); opacity: 0.6; }
.uib .dot:nth-child(3)::before { transform: scale(0.8); }
.uib .dot:nth-child(4) { animation-delay: calc(var(--uib-speed) * -0.09); opacity: 0.4; }
.uib .dot:nth-child(4)::before { transform: scale(0.7); }
@keyframes uib-swing { 0% { transform: rotate(0deg); } 15% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 65% { transform: rotate(180deg); } 100% { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .uib .dot { animation: none; } }

/* ---------- cookie notice (transitions.dev toast motion) ---------- */
.cookie {
  position: fixed; z-index: 85; left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px)); padding: 20px; display: grid; gap: 14px;
  border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: var(--sh-3), inset 0 1px 0 #fff;
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1), transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie.is-open { opacity: 1; transform: none; }
.cookie-h { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.cookie-h i { color: var(--gold-ink); font-size: 20px; }
.cookie p { color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-actions .btn { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.cookie-prefs { display: grid; gap: 4px; border-top: 1px solid var(--stone-2); padding-top: 10px; margin-top: 14px; }
.cookie { gap: 0; } .cookie-actions { margin-top: 14px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; cursor: pointer; }
.cookie-row span { display: grid; gap: 2px; }
.cookie-row b { font-weight: 600; font-size: .9375rem; }
.cookie-row small { color: var(--muted); font-size: .8125rem; }
/* switch (transitions.dev toggle feel) */
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--stone); position: relative; cursor: pointer; transition: background-color 250ms cubic-bezier(0.22, 1, 0.36, 1); margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform 300ms var(--ease-spring); }
.switch:checked { background: var(--blue); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .55; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.footer-btn { color: inherit; font: inherit; padding: 0; }

/* ---------- toast flash ---------- */
.flashes { position: fixed; z-index: 80; right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.flash {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px; border-radius: 16px;
  background: var(--ink); color: var(--cream); box-shadow: 0 18px 40px -12px rgb(0 0 0 / .35);
  animation: toast-in 380ms var(--ease-out) both;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.flash[data-hide] { opacity: 0; transform: translateY(8px); }
.flash i { font-size: 20px; margin-top: 1px; }
.flash-success i:first-child { color: #7fd7a3; } .flash-error i:first-child { color: #ff9a85; } .flash-info i:first-child { color: var(--gold); }
.flash span { flex: 1; font-size: var(--t-small); line-height: 1.45; }
.flash button { color: var(--on-dark-muted); padding: 2px; border-radius: 6px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- hero (full-bleed photo, curved exit into cream) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--cream); overflow: clip; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); transform-origin: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 9 8 / .25) 0%, rgb(10 9 8 / 0) 30%, rgb(10 9 8 / .2) 55%, rgb(10 9 8 / .78) 100%); }
.hero-in { padding-block: calc(var(--nav-h) + 40px) clamp(56px, 7vw, 104px); display: grid; gap: var(--s-8); }
.hero .h1 { max-width: 14ch; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-8); }
.hero-foot .lead { color: rgb(247 244 232 / .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-float {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 6vh); width: clamp(160px, 18vw, 280px); z-index: 1;
  
}
@media (max-width: 860px) { .hero-float { display: none; } }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(28px, 4vw, 64px); background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.scroll-cue span { width: 1px; height: 36px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.page-hero { min-height: 78svh; }
.page-hero .h1 { max-width: 14ch; }

/* ---------- statement with photo tokens ---------- */
.statement .h2 { max-width: 20ch; }
.nb { white-space: nowrap; }
.statement [data-words] .word { color: var(--stone); transition: color var(--dur-2); }
.statement-foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-6); margin-top: var(--s-12); }
.statement-foot > :first-child { grid-column: 1 / span 4; }
.statement-foot > :last-child { grid-column: 6 / -1; }
@media (max-width: 860px) { .statement-foot > * { grid-column: 1 / -1 !important; } }

/* ---------- impact stat photo cards ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-6) var(--s-12); margin-bottom: clamp(32px, 4vw, 64px); }
.section-head .h2 { max-width: 13ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1400px; }
.stats > :nth-child(2) { margin-top: clamp(24px, 5vw, 80px); }
.stats > :nth-child(3) { margin-top: clamp(12px, 2.5vw, 40px); }
.stat {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); color: var(--cream);
  aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2vw, 28px);
  box-shadow: var(--sh-3); transform-style: preserve-3d; transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.stat::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), inset 0 0 0 1px rgb(255 255 255 / .08);
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .14), transparent 40%); }
.stat img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 115%; object-fit: cover; }
.stat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 9 8 / .55), rgb(10 9 8 / .05) 45%, rgb(10 9 8 / .7)); }
.stat .stat-num { font: 400 clamp(3.25rem, 1.5rem + 5vw, 6.75rem)/.85 var(--font-display); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.stat-num sup { font-size: .35em; vertical-align: top; margin-left: 2px; color: var(--gold); }
.stat .stat-label { font-weight: 600; font-size: 1.0625rem; line-height: 1.25; max-width: 22ch; margin-top: 10px; }
.stat > p { font-size: var(--t-small); line-height: 1.5; color: rgb(247 244 232 / .82); max-width: 36ch; }
.footnote { margin-top: var(--s-4); font-size: var(--t-micro); color: var(--muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
  .stats > * { margin-top: 0 !important; }
  .stat { aspect-ratio: 5 / 4; }
}

/* ---------- testimonies: horizontal track ---------- */
.stories { overflow: clip; }
.track { display: flex; gap: 16px; padding-inline: var(--gutter); padding-block: 12px 48px; margin-block: -12px -32px; width: max-content; }
.story-card {
  position: relative; flex: none; width: clamp(300px, 34vw, 480px); border-radius: var(--r); overflow: hidden;
  background: var(--paper); box-shadow: var(--sh-2); display: flex; flex-direction: column;
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.story-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-2); }
.story-media .ht-photo { transition: transform 900ms var(--ease-out); }
.story-media { background: var(--paper); }
.story-media .play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  border-radius: var(--r-pill); background: rgb(247 244 232 / .92); color: var(--ink); font-size: var(--t-small); font-weight: 600;
  backdrop-filter: blur(8px);
}
.story-media .play b { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 12px; }
.story-body { padding: 24px; display: grid; gap: 14px; flex: 1; align-content: start; }
.story-body blockquote { font: 400 clamp(1.5rem, 1.1rem + 1vw, 2rem)/1.08 var(--font-serif); letter-spacing: -0.01em; }
.story-body p { color: var(--muted); font-size: var(--t-small); }
.story-body .who { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--stone-2); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .story-card:hover .story-media .ht-photo { transform: scale(1.03); }
  .story-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
}
/* desktop pinned strip: photo height adapts so whole cards fit between the nav and the bottom edge */
@media (min-width: 861px) {
  .track-pin .story-card { --card-w: clamp(300px, 34vw, 480px); }
  .track-pin .story-media { aspect-ratio: auto; height: min(calc(var(--card-w) * .75), max(150px, calc(100svh - var(--nav-h) - 400px))); }
}
@media (max-width: 860px) {
  .track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-block: 20px 56px; margin-block: -20px -40px; overscroll-behavior-x: contain; cursor: grab; user-select: none; }
  .track img, .track canvas { -webkit-user-drag: none; }
  .track::-webkit-scrollbar { display: none; }
  .story-card { width: 82vw; scroll-snap-align: center; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .story-card { width: 46vw; scroll-snap-align: start; }
  .stat { aspect-ratio: 16 / 10; }
  .stats { gap: 12px; }
}

/* ---------- initiatives: sticky list + swapping media ---------- */
.ini { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.ini-list { display: grid; }
.ini-item { padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid rgb(247 244 232 / .18); display: grid; gap: 16px; }
.ini-item:last-child { border-bottom: 1px solid rgb(247 244 232 / .18); }
.ini-item .h3 { font: 400 clamp(2.5rem, 1.5rem + 3.5vw, 4.75rem)/.9 var(--font-display); text-transform: uppercase; color: rgb(247 244 232 / .32); transition: color var(--dur-3) var(--ease-out); }
.ini-item[data-active] .h3 { color: var(--cream); }
.ini-item p { color: var(--on-dark-muted); max-width: 48ch; }
.ini-item .ini-mobile-media { display: none; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.ini-stage { position: sticky; top: calc(var(--nav-h) + 24px); aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--ink-2); box-shadow: var(--sh-dark); }
.ini-stage figure { border-radius: inherit; overflow: hidden; }
.ini-stage figure { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 600ms var(--ease-out), transform 1200ms var(--ease-out); }
.ini-stage figure[data-active] { opacity: 1; transform: none; }
.ini-stage img.photo { width: 100%; height: 100%; object-fit: cover; }
.ini-stage .badge-graphic { position: absolute; right: -28px; bottom: -28px; width: 46%;  }

@media (max-width: 860px) {
  .ini { grid-template-columns: 1fr; }
  .ini-stage { display: none; }
  .ini-item .ini-mobile-media { display: block; }
  .ini-item .h3 { color: var(--cream); }
}

/* ---------- give band ---------- */
.give-band { overflow: clip; isolation: isolate; background: var(--blue); }
.give-bg { position: absolute; inset: 0; z-index: -1; }
.give-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .5; mix-blend-mode: luminosity; }
.give-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; /* blue duotone + gold light */
  background: radial-gradient(800px 520px at 82% 40%, rgb(227 178 60 / .26), transparent 60%), radial-gradient(600px 420px at 8% 100%, rgb(200 16 46 / .28), transparent 65%),
              linear-gradient(100deg, rgb(1 33 105 / .96) 0%, rgb(1 33 105 / .86) 45%, rgb(1 33 105 / .55) 100%); }
.give-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; /* printed halftone texture, fading toward the copy */
  background: radial-gradient(circle, rgb(247 244 232 / .22) 1px, transparent 1.4px) 0 0 / 7px 7px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%); mask-image: linear-gradient(100deg, transparent 30%, #000 85%); }
.give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.give-band .h2 { max-width: 11ch; }
.give-art { width: 100%; max-width: 480px; margin-inline: auto; }
.give-stack { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
.gs-photo { position: absolute; border-radius: var(--r); overflow: hidden; border: 6px solid var(--cream); box-shadow: 0 40px 70px -30px rgb(0 0 20 / .7), 0 0 0 1px rgb(20 18 15 / .08); }
.gs-photo img { width: 100%; height: 100%; object-fit: cover; }
.gs-a { left: 0; top: 4%; width: 62%; aspect-ratio: 4 / 5; rotate: -5deg; }
.gs-b { right: 0; top: 30%; width: 52%; aspect-ratio: 1 / 1; rotate: 4deg; }
.gs-card { position: absolute; left: 14%; bottom: 0; width: 56%; padding: 20px 22px; border-radius: var(--r); color: var(--ink);
  background: linear-gradient(180deg, #fffefa, var(--cream)); box-shadow: 0 30px 60px -24px rgb(0 0 20 / .65), inset 0 1px 0 #fff; rotate: -1.5deg; }
.gs-card .gs-big { font: 400 clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem)/1 var(--font-display); text-transform: uppercase; margin: 10px 0 6px; }
.gs-seed { position: absolute; right: -4%; bottom: -6%; width: 40%; }
@media (max-width: 860px) { .give-grid { grid-template-columns: 1fr; } .give-stack { max-width: 440px; } }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-8); }
.amount-chip[aria-checked="true"] { background: var(--cream); color: var(--blue); border-color: var(--cream); box-shadow: 0 10px 24px -12px rgb(0 0 0 / .6); }
.amount-chip {
  cursor: pointer; color: inherit;
  background: rgb(255 255 255 / .06); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
  min-width: 84px; min-height: 52px; padding: 0 18px; border-radius: var(--r-pill); display: inline-grid; place-items: center;
  border: 1px solid rgb(247 244 232 / .35); font: 400 1.5rem/1 var(--font-display);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.amount-chip:active { transform: scale(.94); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) { .amount-chip:hover { background: var(--cream); color: var(--blue); border-color: var(--cream); } }

/* ---------- explore cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.x-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); background: var(--paper); box-shadow: var(--sh-2); overflow: hidden; transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.x-card .media { aspect-ratio: 3 / 2; overflow: hidden; }
.x-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.x-card .in { padding: 22px 24px 24px; display: grid; gap: 8px; align-content: start; }
.x-card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.x-card .arrow-link { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .x-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); } .x-card:hover .media img { transform: scale(1.04); } .x-card:hover .arrow-link i { transform: translate(3px, -3px); } }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
.stories-grid .story-card { width: auto; min-width: 0; }
@media (max-width: 1100px) and (min-width: 861px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- split / feature rows ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.split > .copy { grid-column: 1 / span 6; display: grid; gap: var(--s-6); align-content: start; }
.split > .art { grid-column: 8 / -1; }
.split.flip > .copy { grid-column: 7 / -1; order: 2; }
.split.flip > .art { grid-column: 1 / span 5; order: 1; }
.photo { border-radius: var(--r); overflow: hidden; background: var(--stone-2); box-shadow: var(--sh-3); position: relative; }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--outline-img); pointer-events: none; }
/* overlapping photo collage */
.collage { position: relative; aspect-ratio: 5 / 6; }
.collage .photo { position: absolute; }
.collage .photo:nth-child(1) { inset: 0 22% 18% 0; }
.collage .photo:nth-child(2) { inset: 42% 0 0 36%; border: 6px solid var(--cream); }
.collage .float { position: absolute; left: -6%; bottom: -4%; width: 34%; z-index: 2; }
.render { width: 100%; height: auto; }
/* halftone renders: canvas dot field masked by the render's own shape; img is the no-JS fallback */
.ht { position: relative; display: block; width: 100%; }
.ht canvas, .ht img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ht img { object-fit: contain; }
.js .ht img { visibility: hidden; }
.ht-photo { position: absolute; inset: 0; display: block; }
.ht-photo canvas, .ht-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ht-photo img { object-fit: cover; }
.js .ht-photo img { visibility: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.square { aspect-ratio: 1; }
.graphic { width: 100%; height: auto; }
@media (max-width: 860px) {
  .split > .copy, .split > .art, .split.flip > .copy, .split.flip > .art { grid-column: 1 / -1; order: initial; }
}

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--stone-2); font-size: var(--t-micro); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dark .tag, .blue .tag { background: rgb(247 244 232 / .12); }
.big-stat { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid currentColor; }
.big-stat b { font: 400 clamp(2.5rem, 1.6rem + 2.5vw, 4rem)/.9 var(--font-display); text-transform: uppercase; }

/* ---------- steps (how to read) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--r); background: linear-gradient(180deg, var(--paper), #fbf8ee); box-shadow: var(--sh-2), var(--hi); display: grid; gap: 10px; align-content: start; min-height: 220px; }
.step .index { color: var(--gold-ink); }
.step h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.step p { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* anatomy of a day's reading */
.anatomy { display: grid; gap: 0; border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--sh-3); }
.anatomy li { list-style: none; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--stone-2); }
.anatomy li:first-child { border-top: 0; }
.anatomy li b { font-weight: 600; }
.anatomy li i { font-size: 22px; color: var(--blue); }
.anatomy ol { margin: 0; padding: 0; }

/* ---------- forms ---------- */
.form-card { background: linear-gradient(180deg, #fffefa, var(--paper)); border-radius: calc(var(--r) + 8px); padding: clamp(20px, 3vw, 40px); box-shadow: var(--sh-3), var(--hi); color: var(--ink); }
.form-card .h3 { margin-bottom: 4px; }
.stack { display: grid; gap: var(--s-5); }
.stack > .collapse:not([data-open="true"]) { margin-top: calc(var(--s-5) * -1); }
.collapse-in.stack { padding-bottom: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > label, .label { font-size: var(--t-small); font-weight: 600; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea, .input {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-in); background: var(--cream);
  border: 1px solid var(--stone); font-size: 1rem; line-height: 1.4; appearance: none;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2314120f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 4px rgb(61 111 224 / .18); }
.field.error input, .field.error textarea, .field.error select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: var(--t-small); }
.field .hint { color: var(--muted); font-size: var(--t-small); }
.field.error { animation: shake 360ms var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small); color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; }

/* segmented control with sliding thumb */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--stone-2); }
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-small); color: var(--muted); transition: color var(--dur-2) var(--ease-out); }
.seg input:checked + span { color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: -2px; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: var(--r-pill); background: var(--paper); box-shadow: 0 1px 2px rgb(20 18 15 / .12), 0 0 0 1px rgb(20 18 15 / .06); transition: transform 520ms var(--ease-spring); }

/* choice chips (amounts, gateways, editions) */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips.two { grid-template-columns: 1fr 1fr; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 10px;
  border-radius: var(--r-in); border: 1px solid var(--stone); background: var(--cream); text-align: center;
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), transform 480ms var(--ease-spring), box-shadow var(--dur-2);
}
.chip b { font: 400 1.625rem/1 var(--font-display); }
.chip small { font-size: var(--t-micro); color: var(--muted); }
.chip:active > span { transform: scale(.95); transition-duration: 120ms; }
.chip input:checked + span { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--ink) inset, 0 8px 18px -10px rgb(20 18 15 / .45); transform: translateY(-1px); }
.chip input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.chip.is-off { opacity: .35; pointer-events: none; filter: grayscale(1); transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1), filter 250ms; }
.chip-row > span { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 16px; text-align: left; font-weight: 600; }
.chip-row > span i { font-size: 22px; }
@media (hover: hover) and (pointer: fine) { .chip:hover > span { border-color: var(--ink-2); } }
@media (max-width: 480px) { .chips { grid-template-columns: 1fr 1fr; } }

.edition { position: relative; cursor: pointer; }
.edition input { position: absolute; opacity: 0; }
.edition > span {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; gap: 2px;
  min-height: 132px; padding: 16px; padding-right: 44%; height: 100%;
  border-radius: var(--r-in); border: 1px solid var(--stone); background: var(--cream);
  transition: border-color var(--dur-2), box-shadow var(--dur-2), transform 480ms var(--ease-spring);
}
.edition > span b { font-weight: 600; line-height: 1.2; }
.edition > span small { color: var(--muted); font-size: var(--t-small); }
/* cover as a masked background: bleeds off the right edge, fades into the card */
.edition-cover {
  position: absolute; z-index: -1; right: -6%; top: 10px; width: 50%; height: auto; border-radius: 6px;
  transform: rotate(6deg) translateY(10%); transform-origin: 50% 100%;
  box-shadow: 0 14px 28px -12px rgb(20 18 15 / .45);
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to top, transparent 0%, #000 35%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to top, transparent 0%, #000 35%); mask-composite: intersect;
  opacity: .9; transition: transform 560ms var(--ease-spring), opacity var(--dur-2);
}
.edition-cover.is-render { box-shadow: none; border-radius: 0; width: 58%; top: 0; transform: rotate(-4deg); }
/* audio avatar: blue disc, dotted equalizer bars that play only while Audio is selected or hovered */
.audio-avatar {
  width: 76px; height: 76px; right: 18px; top: 50%; border-radius: 50%; transform: translateY(-50%) !important;
  display: flex; align-items: center; justify-content: center; gap: 4px; opacity: 1;
  background: radial-gradient(circle at 30% 25%, var(--sky), var(--blue) 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 12px 24px -10px rgb(14 42 120 / .6);
  -webkit-mask-image: none; mask-image: none;
}
.audio-avatar i {
  width: 5px; height: 32px; border-radius: 3px; transform-origin: 50% 50%; transform: scaleY(var(--s, .4));
  background: var(--cream); box-shadow: 0 0 8px rgb(247 244 232 / .35);
  animation: eq 900ms var(--ease-in-out) infinite alternate paused;
}
.audio-avatar i:nth-child(1) { --s: .35; animation-delay: -200ms; }
.audio-avatar i:nth-child(2) { --s: .7;  animation-delay: -500ms; animation-duration: 700ms; }
.audio-avatar i:nth-child(3) { --s: 1;   animation-delay: -100ms; animation-duration: 1000ms; }
.audio-avatar i:nth-child(4) { --s: .6;  animation-delay: -650ms; animation-duration: 750ms; }
.audio-avatar i:nth-child(5) { --s: .3;  animation-delay: -350ms; }
@keyframes eq { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }
.edition input:checked + span .audio-avatar i { animation-play-state: running; }
@media (hover: hover) and (pointer: fine) { .edition:hover .audio-avatar i { animation-play-state: running; } }
@media (prefers-reduced-motion: reduce) { .audio-avatar i { animation: none; } }
.edition input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset, 0 12px 24px -14px rgb(20 18 15 / .5); background: var(--paper); }
.edition input:checked + span .edition-cover { transform: rotate(2deg) translateY(2%); opacity: 1; }
.edition input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.edition:active > span { transform: scale(.98); transition-duration: 120ms; }
@media (hover: hover) and (pointer: fine) { .edition:hover .edition-cover:not(.audio-avatar) { transform: rotate(3deg) translateY(5%); } }
.editions { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }

/* quantity stepper (Braille copies) */
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; border: 1px solid var(--stone); border-radius: var(--r-pill); background: var(--cream); overflow: hidden; }
.stepper button { height: 52px; display: grid; place-items: center; font-size: 20px; transition: background-color var(--dur-1), transform 420ms var(--ease-spring); }
.stepper button:active { background: var(--stone-2); transform: scale(.88); transition-duration: 100ms; }
.stepper input { border: 0 !important; background: transparent !important; text-align: center; font: 400 1.75rem/1 var(--font-display) !important; min-height: 52px; box-shadow: none !important; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.with-prefix { position: relative; }
.with-prefix > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--muted); }
.with-prefix input { padding-left: 34px !important; }

.total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0 0; border-top: 1px dashed var(--stone); }
.total b { font: 400 2.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--t-micro); color: var(--muted); }

/* ---------- testimony page ---------- */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink); color: var(--cream); box-shadow: var(--sh-3); isolation: isolate; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transform: scale(1.06); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 1200ms cubic-bezier(0.22, 1, 0.36, 1); }
.video.is-on iframe { opacity: 1; transform: none; }
.video-start { z-index: 3; transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.video.is-on .video-start { opacity: 0; filter: blur(14px); transform: scale(1.04); pointer-events: none; }
/* loading: play disc becomes a ring */
.video .play-big b { position: relative; transition: transform 300ms var(--ease-spring); }
.video.is-loading .play-big b { transform: scale(.92); }
.video.is-loading .play-big b i { opacity: 0; }
.video.is-loading .play-big b::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px solid rgb(247 244 232 / .3); border-top-color: var(--cream); animation: vp-spin 700ms linear infinite; }
@keyframes vp-spin { to { transform: rotate(360deg); } }
.video.is-on .vp-bar { transition-delay: 250ms; }
.video:not(:has(.vp-bar)) iframe { pointer-events: auto; } /* YouTube fallback keeps its own UI */
.video-start { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; color: inherit; }
.video-start:disabled { cursor: progress; }
.video-start .ht-photo { opacity: .78; transition: opacity var(--dur-3), transform 900ms var(--ease-out); }
.video .play-big { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: var(--r-pill); background: var(--cream); color: var(--ink); font-weight: 600; transition: transform 480ms var(--ease-spring); }
.video .play-big b { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 18px; }
.video-start:active .play-big { transform: scale(.96); transition-duration: 120ms; }
@media (hover: hover) and (pointer: fine) { .video-start:hover .ht-photo { opacity: .62; transform: scale(1.03); } }

/* custom controls over Vimeo (its own UI hidden with controls=0) */
.vp-hit { position: absolute; inset: 0 0 64px; z-index: 1; cursor: pointer; }
.vp-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px; border-radius: var(--r-pill); color: var(--cream);
  background: rgb(20 18 15 / .55); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 10px 30px -10px rgb(0 0 0 / .5);
  opacity: 0; transform: translateY(14px); transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1), transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.video.is-awake .vp-bar, .video.is-paused .vp-bar, .video:focus-within .vp-bar { opacity: 1; transform: none; }
.video.is-on:not(.is-awake):not(.is-paused) { cursor: none; }
.vp-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 18px; transition: background-color var(--dur-2), transform 420ms var(--ease-spring); }
.vp-play { background: var(--cream); color: var(--ink); }
.vp-btn:active { transform: scale(.9); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) { .vp-btn:not(.vp-play):hover { background: rgb(247 244 232 / .14); } }
.vp-time { font: 500 var(--t-micro)/1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: .04em; min-width: 34px; text-align: center; opacity: .9; }
.vp-seek { --p: 0%; flex: 1; min-width: 0; height: 24px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.vp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--gold) var(--p), rgb(247 244 232 / .25) var(--p)); }
.vp-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(247 244 232 / .25); }
.vp-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
.vp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--cream); box-shadow: 0 1px 4px rgb(0 0 0 / .4); transition: transform 200ms var(--ease-out); }
.vp-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--cream); }
.vp-seek:active::-webkit-slider-thumb { transform: scale(1.25); }
.video:fullscreen { border-radius: 0; }
@media (max-width: 560px) {
  .video .play-big { left: 12px; bottom: 12px; padding: 6px 14px 6px 6px; font-size: var(--t-small); gap: 8px; }
  .video .play-big b { width: 36px; height: 36px; font-size: 13px; }
  .vp-bar { left: 8px; right: 8px; bottom: 8px; gap: 6px; }
  .vp-dur, .vp-full { display: none; }
  .vp-btn { width: 36px; height: 36px; }
}
.prose { font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { font: 400 1.75rem/1.2 var(--font-serif); color: var(--ink); margin: 1.4em 0; }

/* ---------- footer (final scene) ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding-top: var(--section); overflow: clip; position: relative; }
.footer-cta { display: grid; gap: var(--s-8); justify-items: start; }
.footer-cta .mega { max-width: 9ch; margin-block: 8px 4px; }
.footer .lead { color: var(--on-dark-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-8); padding-block: var(--s-24) var(--s-12); border-bottom: 1px solid rgb(247 244 232 / .14); }
.footer h4 { font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--on-dark-muted); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 32px; font-size: var(--t-small); color: var(--on-dark-muted); }
.footer-mark { position: absolute; right: -6vw; top: 8%; width: min(46vw, 640px); opacity: .9; pointer-events: none; }
.footer-mark .star { transform-box: fill-box; transform-origin: center; }
.footer-uk { position: absolute; left: 50%; top: 50%; width: 58%; transform: translate(-50%, -50%); }
/* UK reach */
.uk-reach .uk-map { max-width: 560px; justify-self: center; width: 100%; }
.nations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--stone); }
.nations li { padding: 14px 0; border-bottom: 1px solid var(--stone); font: 400 clamp(1.25rem, 1rem + .8vw, 1.75rem)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.nations li:nth-child(odd) { padding-right: 16px; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(247 244 232 / .25); font-size: 20px; transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
@media (hover: hover) and (pointer: fine) { .social a:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); } }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } .footer-mark { opacity: .35; } }

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-6 { margin-top: var(--s-6); } .mt-10 { margin-top: var(--s-10); } .mt-16 { margin-top: var(--s-16); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.empty { padding: var(--s-16) var(--s-6); text-align: center; color: var(--muted); }
.scripture { font: 400 clamp(1.75rem, 1.2rem + 1.8vw, 3rem)/1.1 var(--font-serif); letter-spacing: -0.01em; max-width: 26ch; text-wrap: balance; }
.scripture cite { display: block; margin-top: 16px; font: 600 var(--t-micro)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--gold); }

/* ---------- motion: initial states only when JS + motion are on ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-split] { visibility: hidden; }
.split-line { padding-block: .02em; }
.js .hero[data-intro] .hero-media img { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split] { visibility: visible; }
  .js .hero[data-intro] .hero-media img { transform: none; }
  .scroll-cue span { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
