/* Rhapsody International Missions — derived from Kindsight (structure), Jeton (single-signal accent), Steep (serif/Inter type). */
:root {
  --canvas: #ffffff;
  --paper: #ffffff;
  --grey: #f4f4f4;            /* right-panel grey */
  --sand: #ececec;
  --hairline: #e3e3e3;
  --ink: #1c1c1e;
  --ink-2: #3a3a3d;
  --muted: #76767c;
  --gold: #d1a018;            /* brand gold: progress, active states */
  --gold-deep: #b8880f;
  --gold-soft: #f8e58a;       /* pastel yellow chips / highlights */
  --lavender: #c9cdf3;
  --peach: #f6c6ad;
  --panel: #1c1c1e;
  --panel-2: #2a2a2d;
  --on-panel: #ffffff;
  --on-panel-muted: #b4b4ba;  /* 7.6:1 on --panel */
  --success: #2e9e5b;
  --danger: #d33f3f;

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

  --text-micro: 0.75rem;  --text-caption: 0.875rem; --text-body: 1.0625rem; --text-lead: 1.375rem;
  --text-h3: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --text-h2: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --text-h1: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem);
  --text-display: clamp(3.25rem, 1.8rem + 6.4vw, 7.75rem);

  --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-14: 56px; --s-18: 72px; --s-24: 96px; --s-30: 120px;
  --r-card: 24px; --r-btn: 999px; --r-input: 14px; --r-badge: 999px; --r-pill: 999px; --r-sm: 6px;
  --max: 1280px; --gutter: clamp(16px, 4.5vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: var(--text-body); line-height: 1.55; letter-spacing: -0.008em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 var(--s-4); text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.02; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
h4 { font-size: var(--text-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0 0 var(--s-4); }
p.lead { font-size: var(--text-lead); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); max-width: 34ch; font-weight: 500; }
.muted { color: var(--muted); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-caption); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: var(--s-5); }
.eyebrow i { width: 34px; height: 34px; border-radius: 50%; background: var(--grey); display: grid; place-items: center; font-size: 1rem; }
.panel .eyebrow i { background: var(--panel-2); }
.display { font-size: var(--text-display); line-height: 0.92; letter-spacing: -0.05em; font-weight: 800; }
em.mark { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-panel); padding: 8px 14px; border-radius: var(--r-btn); z-index: 100; }
.skip:focus { left: 8px; }

/* Layout */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, var(--s-30)); }
.section-tight { padding-block: clamp(40px, 6vw, var(--s-18)); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-6); margin-bottom: clamp(32px, 5vw, var(--s-14)); }
.section-head h2 { margin: 0; max-width: 18ch; }
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, var(--s-24)); align-items: center; }
.band { background: var(--grey); border-radius: 32px; padding: clamp(32px, 5vw, 72px); }
.panel { background: var(--panel); color: var(--on-panel); }
.panel .muted, .panel p.lead, .panel .hint { color: var(--on-panel-muted); }
.panel .eyebrow { color: var(--on-panel); }
.panel .hairline { border-color: oklch(100% 0 0 / 0.12); }
.card { background: var(--paper); border: 1.5px solid var(--hairline); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); }
.hairline { border-top: 1px solid var(--hairline); }
.stack > * + * { margin-top: var(--s-4); }
.stack > .field + .field, .stack > .form-grid + .field, .stack > .field + .form-grid, .stack > .form-grid + .form-grid { margin-top: 0; }
form.stack > .field:last-of-type, form.stack > .form-grid:last-of-type { margin-bottom: 0; }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.media { border-radius: var(--r-card); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-tall { aspect-ratio: 3 / 4; }
.media-wide { aspect-ratio: 16 / 9; }
.media-square { aspect-ratio: 1; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section-head { grid-template-columns: 1fr; align-items: start; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: var(--r-btn); border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s; }
.btn i { font-size: 1.15em; }
.btn i.ph-arrow-up-right { transition: transform .45s var(--ease-out); }
.btn:hover i.ph-arrow-up-right { transform: rotate(45deg); }
.btn { position: relative; isolation: isolate; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.08); }
.btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .35s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.28), 0 10px 22px -10px rgba(0,0,0,.45); }
.btn:hover::before { opacity: .9; }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .5s;
  background-image: radial-gradient(1px 1px at 12% 30%, #fff 60%, transparent 61%), radial-gradient(1.5px 1.5px at 38% 70%, var(--gold-soft) 60%, transparent 61%), radial-gradient(1px 1px at 60% 20%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 78% 55%, #fff 60%, transparent 61%), radial-gradient(1.5px 1.5px at 90% 25%, var(--gold-soft) 60%, transparent 61%), radial-gradient(1px 1px at 25% 85%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 50% 45%, #fff 60%, transparent 61%), radial-gradient(1.5px 1.5px at 70% 85%, #fff 60%, transparent 61%);
  background-size: 120px 60px; animation: dust 6s linear infinite paused; filter: drop-shadow(0 0 2px rgba(255,255,255,.8)); }
.btn:hover::after { opacity: .85; animation-play-state: running; }
@keyframes dust { to { background-position: 120px -60px; } }
.btn-outline::after, .btn-ghost::after, .btn-outline::before, .btn-ghost::before { display: none; }
.btn:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.35); }
.btn-outline, .btn-ghost { box-shadow: none; }
.btn-outline:hover { box-shadow: 0 10px 22px -12px rgba(0,0,0,.4); }
.btn-ghost:hover { box-shadow: none; }
.btn-gold { background: var(--ink); color: var(--on-panel); }
.btn-gold:hover { background: var(--panel-2); }
.btn-yellow { background: var(--gold-soft); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--on-panel); }
.btn-ink:hover { background: var(--panel-2); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-panel); }
.panel .btn-gold, .panel .btn-ink { background: var(--on-panel); color: var(--ink); }
.panel .btn-outline { border-color: rgba(255,255,255,.5); color: var(--on-panel); }
.panel .btn-outline:hover { background: var(--on-panel); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 14px; }
.btn-ghost:hover { background: var(--grey); }
.btn-sm { padding: 11px 20px; font-size: var(--text-caption); }
.btn-lg { padding: 20px 38px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--ink); color: var(--on-panel); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; position: relative; padding-bottom: 2px; border-bottom: 1.5px solid var(--ink); }
.link:hover { border-bottom-color: var(--gold); }
.link::after { display: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--canvas); border-bottom: 1px solid var(--hairline); height: var(--nav-h); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s-6); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand > span { display: flex; flex-direction: column; gap: 3px; padding-left: 12px; border-left: 1px solid var(--hairline); }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; }
.brand-name { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.045em; line-height: 1; }
.brand-sub { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.brand-sub i { font-size: 12px; color: var(--gold-deep); }

.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 10px 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); transition: color .2s; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--muted); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-cart { position: relative; }
.nav-cart .count { position: absolute; top: -4px; right: -4px; background: var(--gold-soft); color: var(--ink); font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding-inline: 4px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; padding: 6px; cursor: pointer; }
@media (max-width: 1279px) { .nav-links, .nav-actions .btn-outline { display: none; } .nav-toggle { display: inline-flex; } .nav .wrap { gap: var(--s-3); } }
@media (max-width: 520px) { .nav-cart { display: none; } }
/* 1280-1400px: links + signed-in actions don't fit at full padding; tighten links, show account as icon only */
@media (min-width: 1280px) and (max-width: 1400px) { .nav-links a { padding-inline: 8px; } .nav-links a::after { left: 8px; right: 8px; } .nav-account > span { display: none; } }
dialog.drawer { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: var(--panel); color: var(--on-panel); padding: 0 var(--gutter) var(--s-6); transform: translateY(-100%); transition: transform .5s var(--ease-in-out); overflow: auto; }
.drawer[data-open="true"] { transform: none; }
.drawer::backdrop { background: transparent; }
.drawer:not([open]) { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); }
.drawer ul { list-style: none; padding: 0; margin: var(--s-8) 0; }
.drawer li a { display: block; font-weight: 800; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.15; letter-spacing: -0.04em; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer .close { background: none; border: 0; color: inherit; font-size: 1.8rem; cursor: pointer; }
body[data-lock] { overflow: hidden; }

/* Hero: editorial split (photo + current cover, stats rule below) */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: center; max-width: var(--max); margin-inline: auto; padding: clamp(40px, 6vw, 96px) var(--gutter) 0; }
.hero-kicker { margin: 0 0 var(--s-6); font-size: var(--text-micro); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-copy h1 { font-size: clamp(3rem, 1.5rem + 5vw, 6.25rem); line-height: .98; max-width: 11ch; margin-bottom: var(--s-6); }
.hero-lead { margin: 0 0 var(--s-8); font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); max-width: 40ch; }
.hero-actions { display: flex; gap: var(--s-6); align-items: center; flex-wrap: wrap; }
.hero-visual { position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: 100%; max-width: 520px; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; border-radius: var(--r-sm); box-shadow: var(--image-outline); opacity: 0; transition: opacity 1.2s var(--ease-in-out); }
.hero-photo.is-on { opacity: 1; }
.hero-cover { position: absolute; left: -8%; bottom: 6%; width: 30%; height: auto; border-radius: 3px; box-shadow: var(--image-outline), 0 24px 48px -20px rgb(0 0 0 / .45); }
.hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.hero-stats li + li { border-left: 1px solid var(--hairline); }
.hero-stats li > * { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: var(--s-6) var(--s-6) 0; }
.hero-stats li:first-child > * { padding-left: 0; }
.hero-stats strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); line-height: 1; letter-spacing: -0.01em; }
.hero-stats span { font-size: var(--text-caption); color: var(--muted); transition-property: color; transition-duration: 150ms; }
@media (hover: hover) and (pointer: fine) { .hero-stats a:hover span { color: var(--ink); } }
.hero-meta { display: flex; gap: var(--s-8); margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.hero-meta strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.hero-meta > div > span { font-size: var(--text-caption); color: var(--muted); }
.hero-meta strong span { font: inherit; color: inherit; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; row-gap: var(--s-10); }
  .hero-visual { justify-self: start; max-width: 460px; }
  .hero-cover { left: auto; right: -4%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: var(--s-4); }
  .hero-stats li:nth-child(3) { border-left: 0; }
  .hero-stats li:nth-child(3) > * { padding-left: 0; }
  .hero-stats li:nth-child(n+3) { border-top: 1px solid var(--hairline); margin-top: var(--s-6); }
}
[data-parallax] { overflow: hidden; }
[data-parallax] > img { height: 130%; width: 100%; object-fit: cover; will-change: transform; transform: translateY(var(--py, 0)); position: relative; top: -15%; }
@media (prefers-reduced-motion: reduce) { [data-parallax] > img { transform: none; top: 0; height: 100%; } }
.stat-card { position: absolute; left: -4%; bottom: 4%; width: 44%; min-width: 210px; background: var(--panel); color: var(--on-panel); border-radius: 22px; padding: var(--s-5) var(--s-5) var(--s-4); }
.stat-card h4 { font-size: 1.05rem; font-weight: 700; margin: 0 0 var(--s-4); color: var(--on-panel); }
.bars { display: flex; gap: 12px; align-items: flex-end; height: 130px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 9px; border-radius: 6px; background: var(--panel-2); height: 100%; position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 40%); border-radius: 6px; background: var(--c, #fff); }
.bar span { font-size: 11px; color: var(--on-panel-muted); }
.grid-deco { position: absolute; right: -2%; bottom: -2%; width: 36%; aspect-ratio: 1; background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); background-size: 12.5% 12.5%; opacity: .9; }
.feature-rows { list-style: none; margin: 0; padding: 0; max-width: 520px; width: 100%; margin-inline: auto; }
.feature-rows li a { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hairline); font-size: 1.125rem; font-weight: 500; transition: color .2s; }
.feature-rows li a:hover { color: var(--gold-deep); }
.feature-rows li i:first-child { font-size: 1.4rem; }
.feature-rows li i:last-child { margin-left: auto; font-size: 1rem; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.stat { padding: var(--s-6) 0; border-top: 1px solid var(--hairline); }
.stat strong { display: block; font-weight: 800; font-size: clamp(2.5rem, 4vw, 3.75rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: var(--s-2); }
.stat span { color: var(--muted); font-size: var(--text-caption); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Edition rows */
.rows { border-top: 1px solid var(--hairline); }
.rowitem { display: grid; grid-template-columns: 48px 96px 1fr auto; gap: var(--s-6); align-items: center; padding: var(--s-6) var(--s-6); margin-inline: calc(-1 * var(--s-6)); border-radius: 24px; transition: background .3s var(--ease-out); position: relative; }
.rowitem::after { content: ""; position: absolute; left: var(--s-6); right: var(--s-6); bottom: 0; height: 1px; background: var(--hairline); }
.rowitem:hover { background: var(--grey); }
.rowitem:hover::after { opacity: 0; }
.rowitem .idx { font-size: var(--text-caption); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rowitem .thumb { width: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sand); }
.rowitem .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rowitem h3 { margin-bottom: var(--s-2); }
.rowitem p { margin: 0; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 700px) { .rowitem { grid-template-columns: 90px 1fr; } .rowitem .idx { display: none; } .rowitem .thumb { width: 90px; } .rowitem .actions { grid-column: 2; } }

/* Campaign card */
.ccard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s; }
.ccard .media { border-radius: 0; aspect-ratio: 3 / 2; }
.ccard-body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.ccard h3 { font-size: 1.25rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .group { font-size: var(--text-caption); color: var(--muted); display: flex; gap: 6px; align-items: center; }
.ccard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-caption); }
.ccard-foot strong { font-size: 1.05rem; }
.progress { height: 8px; background: var(--grey); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold); border-radius: 3px; width: 0; transition: width 1.2s var(--ease-out); }
.progress-lg { height: 10px; border-radius: 5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: var(--r-badge); font-size: var(--text-micro); font-weight: 600; background: var(--grey); color: var(--ink); }
.badge-gold { background: var(--gold-soft); color: var(--gold-deep); }
.badge-green { background: oklch(94% 0.05 150); color: oklch(40% 0.12 150); }
.badge-red { background: oklch(94% 0.05 27); color: oklch(45% 0.16 27); }
.badge-dark { background: var(--ink); color: var(--on-panel); }

/* Product card */
.pcard { display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; transition: border-color .3s; }
.pcard:hover { border-color: var(--ink); }
.pcard .media { aspect-ratio: 1; background: var(--grey); border-radius: 0; display: grid; place-items: center; padding: 10%; }
.pcard .media img { width: 58%; height: auto; aspect-ratio: 376 / 556; object-fit: cover; object-position: center; border-radius: 8px; box-shadow: 0 24px 40px -22px rgba(0,0,0,.45); }
.pcard-body { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.pcard h3 { font-size: 1.2rem; margin: 0; min-height: 2.4em; line-height: 1.2; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: var(--s-2); }
.pcard .price { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.pcard .badge { align-self: flex-start; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s-5); min-width: 0; }
.field label { font-size: var(--text-caption); font-weight: 600; line-height: 1.3; min-height: 1.3em; }
.field .hint { font-size: var(--text-micro); color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; line-height: 1.2; border: 1.5px solid var(--hairline); border-radius: var(--r-input); background: var(--grey); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: none; }
.field textarea { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath fill='%231c1c1e' d='M213.7 101.7l-80 80a8.1 8.1 0 0 1-11.4 0l-80-80a8.1 8.1 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8.1 8.1 0 0 1 11.4 11.4Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
/* :not() chain matches the base input rule's specificity so these win */
.field input[type="file"]:not([type=checkbox]):not([type=radio]) { height: auto; padding: 8px; cursor: pointer; color: var(--muted); font-size: var(--text-caption); line-height: 36px; }
.field input[type="file"]::file-selector-button { height: 36px; margin-right: 12px; padding: 0 16px; border: 0; border-radius: var(--r-btn); background: var(--ink); color: #fff; font: 600 var(--text-caption)/1 var(--font-body); cursor: pointer; transition: background-color 150ms ease-out; }
@media (hover: hover) and (pointer: fine) { .field input[type="file"]::file-selector-button:hover { background: var(--ink-2); } }
.field.error input, .field.error textarea, .field.error select { border-color: var(--danger); }
.field .err { font-size: var(--text-micro); color: var(--danger); }
.check { display: flex; gap: 10px; align-items: center; font-size: var(--text-caption); line-height: 1.3; }
.check input { margin: 0; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); align-items: start; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

/* Amount chips + gateway radios */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip > span { display: grid; place-items: center; height: 46px; padding: 0 6px; border: 1.5px solid var(--hairline); border-radius: 999px; font-weight: 500; cursor: pointer; transition: all .2s; background: var(--paper); }
.chip input:checked + span { background: var(--gold-soft); color: var(--ink); border-color: var(--gold-soft); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.gateways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.gateways .chip > span { flex-direction: row; gap: 8px; display: flex; justify-content: center; }
.with-prefix { position: relative; }
.with-prefix .cur { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.with-prefix input { padding-left: 34px !important; }

/* Flash */
.flashes { position: fixed; top: calc(var(--nav-h) + 12px); right: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--on-panel); font-size: var(--text-caption); box-shadow: 0 20px 40px -20px oklch(0% 0 0 / 0.5); animation: flash-in .5s var(--ease-out) both; }
.flash i { font-size: 1.2rem; flex: none; }
.flash-success i { color: var(--gold-soft); }
.flash-error { background: var(--danger); color: #fff; }
.flash button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

/* Campaign page */
.cpage { display: grid; grid-template-columns: 1fr 400px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cpage-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.donate-card { background: var(--paper); border: 1.5px solid var(--hairline); border-radius: var(--r-card); padding: var(--s-6); }
.donate-card .stack > .field { margin-bottom: var(--s-4); }
.donate-card .btn-lg { margin-top: var(--s-2); }
.donate-card .big { font-weight: 800; font-size: 2.5rem; letter-spacing: -0.04em; line-height: 1; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2, .prose h3 { margin-top: var(--s-10); }
.prose img { border-radius: 16px; margin-block: var(--s-6); }
.prose blockquote { font-weight: 600; font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.02em; margin: var(--s-8) 0; padding: var(--s-6); background: var(--grey); border-radius: 20px; }
.donor-list { list-style: none; margin: 0; padding: 0; }
.donor-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--hairline); font-size: var(--text-caption); }
.donor-list li strong { font-weight: 500; }
.share { display: flex; gap: 6px; }
.share a, .share button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--grey); cursor: pointer; font-size: 1.15rem; transition: all .2s; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--on-panel); border-color: var(--ink); }
@media (max-width: 960px) { .cpage { grid-template-columns: 1fr; } .cpage-side { position: static; } }

/* Filters, pagination, tables */
.filters { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.filters .input { width: auto; min-width: 260px; height: 48px; }
.filters select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; }
.filters .btn { height: 48px; }
.search { position: relative; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 40px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: var(--s-14); }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hairline); font-size: var(--text-caption); }
.pagination [aria-current] { background: var(--ink); color: var(--on-panel); border-color: var(--ink); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-caption); }
.table th { text-align: left; font-weight: 600; font-size: var(--text-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--hairline); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: var(--s-18) var(--s-6); color: var(--muted); }
.empty i { font-size: 2.5rem; display: block; margin-bottom: var(--s-3); color: var(--gold-deep); }

/* Auth card */
.auth { min-height: calc(100svh - var(--nav-h)); display: grid; place-items: center; padding: clamp(48px, 8vh, 96px) var(--gutter); background: var(--grey); }
.auth .card { width: min(480px, 100%); padding: clamp(28px, 4vw, 48px); border: 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.15); }
.auth .card > .eyebrow { margin-bottom: var(--s-3); }
.auth .card h2 { margin-bottom: var(--s-6) !important; }
.auth .card form { margin-top: var(--s-6); }
.auth .card form .btn { margin-top: var(--s-3); }
.auth .card > p { margin-top: var(--s-6) !important; text-align: center; }

/* CTA pair */
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.cta-tile { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: var(--s-4); min-height: 280px; overflow: hidden; }
.cta-tile { background: var(--grey); border: 0; }
.cta-tile i.bg { position: absolute; right: -10px; bottom: -20px; font-size: 180px; color: var(--canvas); z-index: 0; }
.cta-tile > * { position: relative; z-index: 1; }
.cta-tile h3 { margin: 0; }
.cta-tile .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 700px) { .cta-pair { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--panel); color: var(--on-panel); padding-block: clamp(64px, 8vw, 112px) var(--s-8); margin-top: var(--s-24); }
.footer-word { font-weight: 800; font-size: clamp(2.5rem, 7.6vw, 7rem); letter-spacing: -0.055em; line-height: 0.9; margin: 0 0 clamp(40px, 6vw, 80px); }
.footer-word em { font-style: normal; color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-8); padding-top: var(--s-8); border-top: 1px solid oklch(100% 0 0 / 0.12); }
.footer h4 { font-size: var(--text-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-panel-muted); font-weight: 600; margin-bottom: var(--s-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.footer a:hover { color: var(--gold-soft); }
.footer p.lead { color: var(--on-panel-muted); font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-14); padding-top: var(--s-6); border-top: 1px solid oklch(100% 0 0 / 0.12); font-size: var(--text-micro); color: var(--on-panel-muted); }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; border: 1px solid oklch(100% 0 0 / 0.2); border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; transition: all .2s; }
.social a:hover { background: var(--gold-soft); color: var(--ink); border-color: var(--gold-soft); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal motion */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal] { transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Admin */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--panel); color: var(--on-panel); padding: var(--s-6) var(--s-4); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s-2); }
.admin-side .brand-name { padding: 0 var(--s-3) var(--s-6); display: block; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-btn); font-size: 0.95rem; color: var(--on-panel-muted); transition: all .2s; }
.admin-side a:hover { color: var(--on-panel); background: var(--panel-2); }
.admin-side a[aria-current] { color: var(--ink); background: var(--gold-soft); }
.admin-side a .pill { margin-left: auto; background: var(--gold-soft); color: var(--ink); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 9px; }
.admin-side form { margin-top: auto; }
.admin-nav { display: flex; flex-direction: column; gap: var(--s-2); }
.admin-main { padding: var(--s-8) clamp(16px, 4vw, 48px); min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-8); flex-wrap: wrap; }
.admin-head h1 { font-size: 2rem; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-8); }
.kpi { background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; padding: var(--s-5); }
.kpi strong { display: block; font-weight: 800; font-size: 2.25rem; letter-spacing: -0.03em; line-height: 1; }
.kpi span { font-size: var(--text-caption); color: var(--muted); }
.admin .table td form:not(.row) { display: inline; }
.table td.nowrap { white-space: nowrap; }
.card.table-wrap::after { content: none; } /* grain overlay is pinned to the box and smears across horizontally scrolled tables */
.inline-select { padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--paper); font-size: var(--text-caption); }
@media (max-width: 900px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  /* sidebar becomes a sticky top bar: brand + sign out on row 1, nav scrolls sideways on row 2 */
  .admin-side { position: sticky; z-index: 10; height: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-4); }
  .admin-side .brand-name { grid-row: 1; grid-column: 1; padding: 0 var(--s-2); }
  .admin-side form { grid-row: 1; grid-column: 2; margin: 0; }
  .admin-side form .btn-block { width: auto; }
  .admin-nav { grid-row: 2; grid-column: 1 / -1; display: flex; flex-direction: row; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-side .admin-nav a { flex: none; white-space: nowrap; padding: 8px 12px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

/* Icon morph: <span class="morph"><i class="ph ph-x"></i><i class="ph-fill ph-x"></i></span> */
.morph { position: relative; display: inline-grid; place-items: center; width: 1em; height: 1em; }
.morph > i { grid-area: 1 / 1; transition: transform .5s var(--ease-out), opacity .35s; }
.morph > i:last-child { opacity: 0; transform: rotate(-90deg) scale(.6); }
a:hover > .morph > i:first-child, .btn:hover > .morph > i:first-child, .cta-tile:hover .morph > i:first-child, .card:hover > .morph > i:first-child { opacity: 0; transform: rotate(90deg) scale(.6); }
a:hover > .morph > i:last-child, .btn:hover > .morph > i:last-child, .cta-tile:hover .morph > i:last-child, .card:hover > .morph > i:last-child { opacity: 1; transform: none; }
.eyebrow i { transition: background .3s; }
section:hover .eyebrow i, .card:hover .eyebrow i { background: var(--gold-soft); }
.nav-toggle .morph { font-size: 1.6rem; }
.share a:hover i, .share button:hover i { animation: wiggle .5s var(--ease-out); }
@keyframes wiggle { 0% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } 100% { transform: rotate(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { border-bottom-color: transparent; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ===== Motion layer: load, transitions, micro-interactions, loading & empty states ===== */
/* Page load sequence */
.brand-logo { animation: fade .8s var(--ease-out) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Page transition: fade out on internal navigation, fade in on load */
main { animation: page-in .6s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.route-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 100; transition: width .4s var(--ease-out), opacity .3s; pointer-events: none; }
.route-progress[data-active] { width: 70%; }
.route-progress[data-done] { width: 100%; opacity: 0; }

/* Image blur-up */
img[loading="lazy"] { opacity: 0; filter: blur(8px); transform: scale(1.03); transition: opacity .7s var(--ease-out), filter .9s var(--ease-out), transform 1s var(--ease-out); }
img[loading="lazy"].loaded, img[loading="lazy"][data-instant] { opacity: 1; filter: none; transform: none; }
.media { position: relative; }
.media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--grey) 40%, #fff 50%, var(--grey) 60%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; z-index: 0; }
.media.ready::before { display: none; }
.media img { position: relative; z-index: 1; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Headline word reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .04em .16em; margin: -.08em -.04em -.16em; line-height: inherit; }
.w > span { display: inline-block; transform: translateY(120%); animation: word-up .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + .15s); }
@keyframes word-up { to { transform: none; } }

/* Ripple on buttons */
.btn { overflow: hidden; }


/* Form micro-interactions */
.field label { transition: color .2s; }
.field:focus-within label { color: var(--gold-deep); }
.field input, .field select, .field textarea { transition: border-color .25s, background .25s, transform .25s var(--ease-out), box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--paper); box-shadow: 0 8px 20px -14px rgba(0,0,0,.35); }
.field.error input, .field.error textarea { animation: shake .4s var(--ease-out); }
.field .err { animation: rise .35s var(--ease-out); }
@keyframes shake { 0%,100% { transform: none } 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }
.chip > span { transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
.chip:hover > span { border-color: var(--ink); }

/* Loading states */
.btn[data-loading] { pointer-events: none; color: transparent !important; }
.btn[data-loading]::before, .btn[data-loading]::after { display: none; }
.btn[data-loading] .spinner { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.btn-outline[data-loading] .spinner { color: var(--ink); }
.spinner i { animation: spin 1s linear infinite; font-size: 1.3em; }
form[data-submitting] { opacity: .75; pointer-events: none; transition: opacity .3s; }
.skeleton { background: linear-gradient(100deg, var(--grey) 40%, #fff 50%, var(--grey) 60%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; color: transparent; }

/* Progress + count-up polish */
.progress > span { transition: width 1.4s var(--ease-out); position: relative; }

/* Cards */
.ccard, .pcard, .cta-tile, .card { transition: border-color .3s, background .3s; }
.cta-tile i.bg { transition: color .5s; }
.cta-tile:hover i.bg { color: var(--gold-soft); }
.rowitem .btn { transition: background .25s, color .25s; }
.rowitem:hover .btn { background: var(--ink); color: #fff; }
.rowitem .idx { transition: color .3s; }
.rowitem:hover .idx { color: var(--gold-deep); }

/* Flash */
.flash { transition: transform .35s var(--ease-out), opacity .35s; }
.flash[data-hide] { transform: translateX(20px); opacity: 0; }

/* Drawer stagger */
.drawer li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.drawer[data-open="true"] li { opacity: 1; transform: none; }
.drawer[data-open="true"] li:nth-child(1) { transition-delay: .15s } .drawer[data-open="true"] li:nth-child(2) { transition-delay: .2s } .drawer[data-open="true"] li:nth-child(3) { transition-delay: .25s } .drawer[data-open="true"] li:nth-child(4) { transition-delay: .3s } .drawer[data-open="true"] li:nth-child(5) { transition-delay: .35s } .drawer[data-open="true"] li:nth-child(6) { transition-delay: .4s } .drawer[data-open="true"] li:nth-child(7) { transition-delay: .45s } .drawer[data-open="true"] li:nth-child(8) { transition-delay: .5s } .drawer[data-open="true"] li:nth-child(9) { transition-delay: .55s } .drawer[data-open="true"] li:nth-child(10) { transition-delay: .6s } .drawer[data-open="true"] li:nth-child(11) { transition-delay: .65s }

/* Empty states */
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); background: var(--grey); border-radius: var(--r-card); }
.empty i { width: 72px; height: 72px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 2rem; margin: 0; color: var(--ink); box-shadow: 0 16px 30px -20px rgba(0,0,0,.3); }
.empty .link { margin-top: var(--s-2); }

/* Footer entrance */
.footer-word { display: block; }


/* Table rows */
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--grey); }

/* Scroll reveal variants */
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .nav, .brand-logo, .brand-name, .brand-sub, .nav-links li, .nav-actions > *, main, .w > span, .brand-sub i, .empty i, .progress > span::after, .media::before { animation: none !important; transform: none !important; opacity: 1 !important; }
  img[loading="lazy"] { opacity: 1; filter: none; transform: none; }
}

/* Depth on every button and icon badge */
.btn-outline { background: var(--paper); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.06); }
.btn-outline:hover { box-shadow: inset 0 -2px 0 rgba(0,0,0,.2), 0 10px 22px -12px rgba(0,0,0,.4); }
.btn-ghost { box-shadow: none; }
.btn-ghost:hover { background: var(--grey); box-shadow: inset 0 -2px 0 rgba(0,0,0,.06); }
.btn-yellow { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.eyebrow i, .share a, .share button, .social a, .empty i, .nav-cart, .cta-tile i.bg, .feature-rows li i:first-child, .rowitem .idx, .flash i, .kpi, .badge, .chip > span, .pagination a, .pagination span {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06); }
.cta-tile i.bg, .feature-rows li i:first-child, .rowitem .idx, .flash i { box-shadow: none; }
.feature-rows li i:first-child { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 1.15rem; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06); flex: none; }
.feature-rows li i:last-child { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: .85rem; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06); }
.feature-rows li a:hover > i:last-child { background: var(--ink); color: #fff; }
.panel .eyebrow i { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.4); }
.social a { background: var(--panel-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.4); }
.chip input:checked + span { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.14), 0 6px 14px -8px rgba(0,0,0,.35); }
.pagination [aria-current] { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.4); }
.share a:hover, .share button:hover { box-shadow: inset 0 -2px 0 rgba(0,0,0,.4), 0 8px 16px -10px rgba(0,0,0,.5); }
.nav-toggle { width: 44px; height: 44px; border-radius: 50%; background: var(--grey); display: grid; place-items: center; font-size: 1.4rem; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.08); }
.nav-cart { width: 44px; height: 44px; border-radius: 50%; padding: 0; background: var(--grey); }
.brand-logo { filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.admin-side a[aria-current] { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.12); }
.stat-card, .kpi, .card, .donate-card, .ccard { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 30px -24px rgba(0,0,0,.25); }

/* Grained bottom inner shadow on tiles, cards, chips */
.grain-inner, .cta-tile, .card, .donate-card, .ccard, .kpi, .band, .empty, .auth .card {
  position: relative; isolation: isolate; box-shadow: inset 0 -3px 0 rgba(0,0,0,.05), inset 0 -18px 30px -24px rgba(0,0,0,.28), 0 1px 2px rgba(0,0,0,.04), 0 12px 30px -24px rgba(0,0,0,.25); }
.cta-tile::after, .card::after, .donate-card::after, .ccard::after, .kpi::after, .band::after, .empty::after, .auth .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: .22; mix-blend-mode: multiply;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 24%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0/160px 160px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0/160px 160px; }
.cta-tile > *, .card > *, .donate-card > *, .ccard > *, .kpi > *, .band > *, .empty > * { position: relative; z-index: 1; }
.ccard .media { z-index: 1; }
.panel .btn-outline { background: transparent; color: var(--on-panel); border-color: rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.35); }
.panel .btn-outline:hover { background: var(--on-panel); color: var(--ink); border-color: var(--on-panel); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), 0 10px 22px -12px rgba(0,0,0,.6); }
.feature-rows li a > span { flex: 1; line-height: 1.3; }
.feature-rows li a strong { font-weight: 600; }

/* Live page */
.live { padding-block: 0 clamp(48px, 6vw, 96px); }
.live-grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-6); align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--on-panel-muted); font-size: var(--text-caption); background: rgba(0,0,0,.4); pointer-events: none; }
.player-state .spinner { position: static; display: inline-grid; color: var(--gold-soft); }
.live-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-5) 0; }
.live-meta .share a, .live-meta .share button { background: var(--panel-2); color: var(--on-panel); }
.live-copy p { color: var(--on-panel-muted); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.25); }
.live-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.chat { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 20px; height: min(70vh, 640px); overflow: hidden; box-shadow: inset 0 -3px 0 rgba(0,0,0,.05), 0 30px 60px -30px rgba(0,0,0,.6); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); font-size: var(--text-caption); }
.chat-head .chat-count { margin-left: auto; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scroll-behavior: smooth; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); font-size: var(--text-caption); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chat-empty i { font-size: 2rem; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; animation: rise .35s var(--ease-out); }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.msg-avatar.member { background: var(--lavender); }
.msg-body { font-size: var(--text-caption); line-height: 1.4; }
.msg-body strong { font-weight: 600; margin-right: 6px; }
.msg-body time { color: var(--muted); font-size: var(--text-micro); margin-left: 6px; }
.msg-body p { margin: 2px 0 0; word-break: break-word; }
.chat-form { padding: 12px 18px 16px; border-top: 1px solid var(--hairline); display: grid; gap: 8px; }
.chat-form .input { height: 44px; }
.chat-row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.chat-err { font-size: var(--text-micro); color: var(--danger); }
.chat-new { position: sticky; bottom: 4px; align-self: center; margin-top: auto; }
@media (max-width: 960px) { .live-grid { grid-template-columns: 1fr; } .live-side { position: static; } .chat { height: 480px; } }
/* nav toggle only on small screens */
.nav-toggle { display: none; }
@media (max-width: 1279px) { .nav-toggle { display: grid; } }
main:has(> section.panel:last-child) + .footer, main:has(> section.live:last-child) + .footer { margin-top: 0; border-top: 1px solid rgba(255,255,255,.1); }

/* Donate card rhythm */
.donate-card { padding: var(--s-8); }
.donate-card .stack > * + * { margin-top: var(--s-5); }
.donate-card > .hairline { margin: var(--s-6) 0 !important; }
.donate-card form.stack > * + * { margin-top: var(--s-5); }
.donate-card form.stack > .field, .donate-card form.stack > .form-grid { margin-bottom: 0; }
.donate-card form.stack > .form-grid .field { margin-bottom: 0; }
.donate-card form.stack > .field + .field, .donate-card form.stack > .form-grid + .field, .donate-card form.stack > .field + .form-grid, .donate-card form.stack > .form-grid + .form-grid { margin-top: var(--s-5); }
.donate-card .check { margin: var(--s-5) 0; }
.donate-card .btn-lg { margin-top: var(--s-6); }
.donate-card form > p.muted { margin-top: var(--s-3) !important; }
.donate-card .big { display: block; margin-bottom: 4px; }
.donate-card textarea { min-height: 96px; }
@media (max-width: 600px) { .donate-card { padding: var(--s-6); } }

/* Cart badge */
.nav-cart { overflow: visible; }
.nav-cart .count { top: -3px; right: -3px; background: var(--ink); color: #fff; border: 2px solid var(--canvas); min-width: 20px; height: 20px; border-radius: 10px; font-size: 10px; box-shadow: none; }
@media (max-width: 520px) { .nav-cart { display: inline-flex; } }

/* ===== Responsive pass: tablet (≤1024) + mobile (≤640) ===== */
@media (max-width: 1024px) {
  :root { --nav-h: 72px; }
  .cpage { grid-template-columns: 1fr !important; }
  .cpage-side { position: static; }
  .live-grid { grid-template-columns: 1fr; }
  .live-side { position: static; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-pair { grid-template-columns: 1fr; }
  .drawer li a { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2 * var(--gutter)); }
  .section { padding-block: 56px; }
  .section-tight { padding-block: 40px; }
  h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.75rem, 7.5vw, 2.5rem); }
  p.lead { font-size: 1.125rem; max-width: none; }
  .hero-copy h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); max-width: none; }
  .hero-actions { gap: var(--s-4); }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: var(--s-5); }
  .hero-meta strong { font-size: 1.5rem; }
  .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .rowitem { grid-template-columns: 72px 1fr; padding: var(--s-4); margin-inline: calc(-1 * var(--s-4)); }
  .rowitem .idx { display: none; }
  .rowitem .thumb { width: 72px; }
  .rowitem .actions { grid-column: 2; }
  .rowitem .actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 2rem; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .input, .filters .search { min-width: 0; width: 100%; }
  .filters .btn { width: 100%; }
  .filters > span { margin-left: 0 !important; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .donate-card, .card { padding: var(--s-5); }
  .btn-lg { padding: 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-word { font-size: clamp(2.25rem, 12vw, 3.5rem); white-space: normal; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .flashes { left: 16px; right: 16px; max-width: none; }
  .auth { padding: var(--s-6) var(--gutter); min-height: 0; }
  .auth .card { padding: var(--s-6); }
  .table th, .table td { padding: 10px 8px; }
  .chat { height: 440px; }
  .live-meta { flex-direction: column; align-items: flex-start; }
  .player { border-radius: 14px; }
  .pagination { flex-wrap: wrap; }
  .share { flex-wrap: wrap; }
  .empty { padding: var(--s-10) var(--s-4); }
  .kpis { grid-template-columns: 1fr; }
  .admin-main { padding: var(--s-5) var(--s-4); }
  .admin-head { flex-direction: column; align-items: flex-start; }
  .cpage > .card, .cpage > form.card { padding: var(--s-5); }
  .campaign-actions, .row.between { gap: var(--s-3); }
}
@media (max-width: 400px) {
  .chips { grid-template-columns: repeat(2, 1fr); }
  .gateways { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.25rem; }
}

@media (max-width: 1279px) { .nav .wrap { gap: var(--s-2); } .nav-actions { gap: 6px; } }
@media (max-width: 480px) { .brand > span { padding-left: 8px; gap: 2px; } .brand { gap: 8px; } .brand-logo { width: 36px; height: 36px; } .brand-name { font-size: 1.15rem; } .brand-sub { font-size: 8px; letter-spacing: .1em; } .brand-sub i { font-size: 10px; } .nav-actions { gap: 4px; } .nav-actions .btn-icon, .nav-toggle, .nav-cart { width: 38px; height: 38px; } }
.product-hero { background: var(--grey); border-radius: var(--r-card); aspect-ratio: 1; display: grid; place-items: center; padding: 10%; }
.product-hero img { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); filter: none; opacity: 1; transform: none; }
@media (max-width: 640px) { .product-hero { aspect-ratio: 4 / 5; } }

/* ===== better-ui pass (surfaces, radii, optical alignment; motion untouched) ===== */
:root {
  --shadow-border: 0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 2px -1px oklch(0 0 0 / 0.06), 0 2px 4px 0 oklch(0 0 0 / 0.04);
  --shadow-border-hover: 0 0 0 1px oklch(0 0 0 / 0.08), 0 1px 2px -1px oklch(0 0 0 / 0.08), 0 2px 4px 0 oklch(0 0 0 / 0.06);
  --shadow-border-dark: 0 0 0 1px oklch(1 0 0 / 0.08);
  --image-outline: 0 0 0 1px oklch(0 0 0 / 0.1);
}
/* Shadows for elevation, borders only for structure */
.card, .ccard, .pcard, .donate-card, .kpi, .cta-tile, .auth .card { border: 0; box-shadow: var(--shadow-border), inset 0 -3px 0 oklch(0 0 0 / 0.05), inset 0 -18px 30px -24px oklch(0 0 0 / 0.28); }
.pcard:hover, .ccard:hover, .card:hover { box-shadow: var(--shadow-border-hover), inset 0 -3px 0 oklch(0 0 0 / 0.05), inset 0 -18px 30px -24px oklch(0 0 0 / 0.28); }
.pcard, .ccard, .card { transition-property: box-shadow, background-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.panel .card, .panel .kpi { box-shadow: var(--shadow-border-dark); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .input { border: 0; box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.07); transition-property: box-shadow, background-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.field.error input, .field.error textarea, .field.error select { box-shadow: inset 0 0 0 1.5px var(--danger); }
.chip > span { border: 0; box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.1), inset 0 -2px 0 oklch(0 0 0 / 0.06); }
.chip:hover > span { box-shadow: inset 0 0 0 1px var(--ink), inset 0 -2px 0 oklch(0 0 0 / 0.06); }
.chip input:checked + span { box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.08), inset 0 -3px 0 oklch(0 0 0 / 0.12); }
.btn-outline { border: 0; box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 -2px 0 oklch(0 0 0 / 0.08); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 22px -12px oklch(0 0 0 / 0.4); }
.panel .btn-outline { box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.55), inset 0 -2px 0 oklch(0 0 0 / 0.35); }
.panel .btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--on-panel), 0 10px 22px -12px oklch(0 0 0 / 0.6); }
.share a, .share button, .social a, .nav-cart, .nav-toggle, .eyebrow i, .feature-rows li i:first-child, .feature-rows li i:last-child, .empty i, .msg-avatar { box-shadow: var(--shadow-border), inset 0 -2px 0 oklch(0 0 0 / 0.06); }
.panel .eyebrow i, .social a, .live-meta .share a, .live-meta .share button { box-shadow: var(--shadow-border-dark), inset 0 -2px 0 oklch(0 0 0 / 0.4); }
.badge { box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.05); }

/* Image outlines: 1px pure black at 10% */
.media img, .thumb img, .pcard .media img, .product-hero img, .brand-logo, .cart img, .ccard .media, .player { box-shadow: var(--image-outline); }
.ccard .media { position: relative; }
.ccard .media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.1); pointer-events: none; z-index: 2; }
.panel .media img, .panel .media::after { box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.1); }

/* Concentric radii: outer = inner + padding */
.ccard { border-radius: 24px; }
.ccard-body { padding: 24px; }
.pcard { border-radius: 24px; }
.pcard .media img { border-radius: 8px; }
.rowitem { border-radius: 24px; padding: 24px; }          /* thumb 50% inside; button 999px */
.feature-rows li a { border-radius: 12px; }
.card { border-radius: 24px; padding: 24px; }              /* inner 16px surfaces below */
.card .band, .card .empty, .card .table-wrap, .card blockquote { border-radius: 16px; }
.band { border-radius: 24px; }
.band > .feature-rows li a { border-radius: 8px; }
.donate-card { border-radius: 24px; padding: 32px; }
.donate-card .chip > span, .donate-card .input, .donate-card .field input, .donate-card .field select, .donate-card .field textarea { border-radius: 12px; }
.donate-card .gateways .chip > span { border-radius: 999px; }
.donate-card .chips-impact .chip > span { border-radius: 16px; }
.cta-tile { border-radius: 24px; padding: 24px; }
.cta-tile .btn { border-radius: 999px; }
.player { border-radius: 20px; }
.chat { border-radius: 20px; }
.chat-form { padding: 12px 16px 16px; }
.chat-form .input { border-radius: 12px; }                  /* 20 - 8 */
.flash { border-radius: 14px; padding: 12px 14px; }
.kpi { border-radius: 16px; padding: 20px; }
.auth .card { border-radius: 28px; padding: 40px; }        /* inputs 12px + 16px inner gutter */
.auth .card .field input { border-radius: 12px; }
.drawer li a { border-radius: 0; }
.nav-cart, .nav-toggle, .btn-icon { border-radius: 50%; }

/* Optical alignment: trailing-icon buttons get 2px less on the icon side */
.btn:has(> i:last-child:not(:first-child)) { padding-inline-end: calc(30px - 2px); }
.btn-sm:has(> i:last-child:not(:first-child)) { padding-inline-end: calc(20px - 2px); }
.btn-lg:has(> i:last-child:not(:first-child)) { padding-inline-end: calc(38px - 2px); }
.btn:has(> i:first-child:not(:last-child)) { padding-inline-start: calc(30px - 2px); }
.btn-sm:has(> i:first-child:not(:last-child)) { padding-inline-start: calc(20px - 2px); }
.btn-icon i.ph-arrow-up-right { position: relative; top: 1px; left: 1px; }     /* diagonal arrow reads low-left */
.nav-cart i { position: relative; top: 1px; }
.eyebrow i { position: relative; }
.feature-rows li i:last-child { padding-inline-start: 1px; }                    /* caret optical center */
.link i { position: relative; top: 1px; }

/* Icon stroke matches text weight: bold icons beside 600+ text */
.btn > i, .nav-links i, .eyebrow i, .feature-rows li a strong + i { font-weight: inherit; }
.btn.btn-gold > i, .btn.btn-ink > i, .btn.btn-outline > i { -webkit-text-stroke: 0.4px currentColor; }
.eyebrow i::before { -webkit-text-stroke: 0.35px currentColor; }

/* Transition only what changes (no new motion, just scoped properties) */
.btn { transition-property: background-color, color, box-shadow; transition-duration: 250ms; }
.nav-links a { transition-property: color; }
.feature-rows li a { transition-property: color, background-color; transition-duration: 150ms; }
.rowitem { transition-property: background-color; transition-duration: 150ms; }
.share a, .share button, .social a { transition-property: background-color, color, box-shadow; transition-duration: 150ms; }
.eyebrow i { transition-property: background-color; transition-duration: 150ms; }
.field label { transition-property: color; transition-duration: 150ms; }
.pagination a { transition-property: background-color, color; transition-duration: 150ms; }
.nav-cart { transition-property: background-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.nav-cart:active { background: var(--sand); box-shadow: inset 0 2px 3px oklch(0 0 0 / 0.12); }
.nav-cart .count { transition-property: background-color; transition-duration: 150ms; }
.nav-cart:active .count { background: var(--gold-deep); }

/* ===== emil-design-eng pass: touch devices get no hover-only effects (prevents sticky hover after tap) ===== */
@media (hover: none) {
  .btn:hover::before, .btn:hover::after { opacity: 0; animation-play-state: paused; }
  .btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.08); }
  .btn-gold:hover { background: var(--ink); }
  .btn-ink:hover { background: var(--ink); }
  .btn-outline:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 -2px 0 oklch(0 0 0 / 0.08); }
  .panel .btn-outline:hover { background: transparent; color: var(--on-panel); }
  .btn-ghost:hover { background: transparent; box-shadow: none; }
  .btn:hover i.ph-arrow-up-right { transform: none; }
  .rowitem:hover { background: transparent; }
  .rowitem:hover::after { opacity: 1; }
  .rowitem:hover .btn { background: transparent; color: var(--ink); }
  .rowitem:hover .idx { color: var(--muted); }
  .feature-rows li a:hover { color: inherit; }
  .feature-rows li a:hover > i:last-child { background: var(--paper); color: inherit; }
  .pcard:hover, .ccard:hover, .card:hover { box-shadow: var(--shadow-border), inset 0 -3px 0 oklch(0 0 0 / 0.05), inset 0 -18px 30px -24px oklch(0 0 0 / 0.28); }
  .chip:hover > span { box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.1), inset 0 -2px 0 oklch(0 0 0 / 0.06); }
  .share a:hover, .share button:hover { background: var(--grey); color: inherit; }
  .social a:hover { background: var(--panel-2); color: inherit; }
  .nav-links a:hover::after { transform: scaleX(0); }
  section:hover .eyebrow i, .card:hover .eyebrow i { background: var(--grey); }
  .panel section:hover .eyebrow i { background: var(--panel-2); }
  .cta-tile:hover i.bg { color: var(--canvas); }
  a:hover > .morph > i:first-child, .btn:hover > .morph > i:first-child, .cta-tile:hover .morph > i:first-child, .card:hover > .morph > i:first-child { opacity: 1; transform: none; }
  a:hover > .morph > i:last-child, .btn:hover > .morph > i:last-child, .cta-tile:hover .morph > i:last-child, .card:hover > .morph > i:last-child { opacity: 0; transform: rotate(-90deg) scale(.6); }
  .link:hover { border-bottom-color: var(--ink); }
  .footer a:hover { color: inherit; }
  .table tbody tr:hover { background: transparent; }
}
/* Exits faster than enters (flash: enter 500ms, exit 200ms) */
.flash { transition-duration: 200ms; }
/* Press feedback on touch: instant, no motion, static cue */
@media (hover: none) { .btn:active { filter: brightness(.92); } .btn-outline:active, .btn-ghost:active { background: var(--grey); } }
.nav-cart, .nav-cart.btn { padding: 0 !important; width: 44px; height: 44px; display: grid; place-items: center; gap: 0; }
.nav-cart i { position: static; font-size: 1.25rem; line-height: 1; }
.nav-cart .count { position: absolute; top: -4px; right: -4px; }
@media (max-width: 480px) { .nav-cart, .nav-cart.btn { width: 38px; height: 38px; } }


/* 3D element illustrations (white-background renders, multiply-blended so they sit on any light surface) */
.el { pointer-events: none; user-select: none; box-shadow: none !important; filter: none; opacity: 1; transform: none; }
.el-tile { position: absolute; right: 24px; top: 24px; width: 96px; height: auto; z-index: 0; opacity: .9; }
.cta-tile { min-height: 300px; }
.cta-tile > .el-tile + * { margin-top: 8px; }
.empty .el { width: 110px; height: auto; margin-bottom: 4px; }

@media (max-width: 640px) { .el-tile { width: 88px; } }


/* ---- Review additions ---- */
.nav-cta { white-space: nowrap; }
@media (max-width: 1120px) { .nav-cta { display: none; } }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--grey); border-radius: 999px; position: relative; isolation: isolate; }
/* sliding thumb: one pill that moves instead of two that swap */
.segmented::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: transform 220ms var(--ease-out); }
.segmented:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 999px; font-weight: 600; font-size: var(--text-caption); cursor: pointer; color: var(--muted); transition: color 220ms var(--ease-out); }
.segmented input:checked + span { color: var(--ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.chips-impact .chip > span { height: auto; padding: 12px 6px 10px; border-radius: 16px; line-height: 1.1; gap: 2px; }
.chips-impact .chip b, .chips-impact .chip small, .chips-impact .chip [data-cur-symbol] { display: inline; height: auto; border: 0; background: none; padding: 0; }
.chips-impact .chip b { font-weight: 700; }
.chips-impact .chip small { font-size: var(--text-micro); color: var(--muted); font-weight: 500; }
.chip-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--ink); color: var(--gold-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 400px) { .chips-impact { grid-template-columns: repeat(2, 1fr); } .chip-tag { top: -8px; } }
.share-row { padding-top: var(--s-2); align-items: center; }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--hairline); }
.updates li .prose p:last-child { margin-bottom: 0; }
@media (max-width: 500px) { .updates li { grid-template-columns: 1fr; gap: 4px; } }
.unmute { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: var(--ink); border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 600; cursor: pointer; z-index: 2; }
.donor-list time { margin-left: 6px; }

/* utilities replacing inline styles */
.cpage--aside-sm { grid-template-columns: 1fr 320px; }
.cpage--aside-md { grid-template-columns: 1fr 380px; }
.cpage--aside-lg { grid-template-columns: 1fr 460px; align-items: start; }
.cpage--nav { grid-template-columns: 260px 1fr; }
@media (max-width: 960px) { .cpage--aside-sm, .cpage--aside-md, .cpage--aside-lg, .cpage--nav { grid-template-columns: 1fr; } }
.small { font-size: var(--text-caption); }
.micro { font-size: var(--text-micro); }
.center { text-align: center; justify-content: center; }
.end { justify-content: flex-end; }
.m-0 { margin: 0; }
.card--flush { padding: 0; }
.row--tight { gap: 6px; flex-wrap: nowrap; }
