/* SWANSONG demo. Palette: porcelain, blush, rose, wine (plus colour versions). Type: Bricolage Grotesque headings + Manrope body, with font versions. */
:root {
  --porcelain: #fffbfc;
  --blush: #f8e7ec;
  --petal: #e9a9bd;
  --rose: #b85476;
  --rose-deep: #93385a;
  --wine: #4b1630;
  --ink: #2b1720;
  --muted: #6e5862;
  --line: #eadcd8;
  --glow: #d27c98;
  --panel-dark: var(--wine);
  --stone: #f6f1ed;
  --sand: #e4d6cd;
  --r-sm: 10px;
  --r-lg: 28px;
  --wrap: 1160px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --display-weight: 800;
  --display-track: -.025em;
  --display-case: none;
  --display-lh: 1;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: var(--display-lh); text-transform: var(--display-case); margin: 0 0 .45em; color: var(--wine); letter-spacing: var(--display-track); }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { color: var(--rose); font-weight: 600; margin-bottom: .6em; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.demo-bar { background: var(--wine); color: var(--blush); text-align: center; font-size: 13px; padding: 6px 16px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--porcelain) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wine); font: 800 1.2rem var(--body); letter-spacing: .2em; }
.logo-mark { width: 44px; aspect-ratio: 300 / 237; background: var(--wine); -webkit-mask: url(assets/swan-white.png) center / contain no-repeat; mask: url(assets/swan-white.png) center / contain no-repeat; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--rose); }
.menu-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 999px; border: 0;
  font: 700 15px var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-deep); }
.btn-ghost { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 1.5px var(--petal); }
.btn-ghost:hover { background: var(--blush); }

/* Photo placeholders: swap for real photos */
.photo { border-radius: var(--r-lg); min-height: 260px; display: flex; align-items: flex-end; padding: 18px; color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 45%, color-mix(in oklab, var(--ink) 45%, transparent)), var(--tint); }
.photo.t1 { --tint: linear-gradient(140deg, var(--petal), var(--rose)); }
.photo.t2 { --tint: linear-gradient(140deg, var(--glow), var(--rose-deep)); }
.photo.t3 { --tint: linear-gradient(140deg, var(--blush), var(--glow)); }
.photo.t4 { --tint: linear-gradient(140deg, var(--rose-deep), var(--wine)); }

/* Hero: the swan is the signature moment */
.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.swan-panel { position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px var(--r-lg) var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 20%, var(--glow) 0%, var(--rose) 35%, var(--wine) 100%); display: grid; place-items: center; }
.swan-panel img { width: 72%; filter: drop-shadow(0 18px 30px color-mix(in oklab, var(--ink) 35%, transparent)); animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.swan-panel figcaption { position: absolute; bottom: 22px; inset-inline: 0; text-align: center; color: var(--blush); font: 600 1rem var(--body); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* Impact (wine band) */
.impact { background: var(--wine); color: var(--blush); }
.impact h2 { color: #fff; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid color-mix(in oklab, var(--petal) 35%, transparent); }
.impact-item { padding: 28px 28px 8px 0; }
.impact-item + .impact-item { padding-left: 28px; border-left: 1px solid color-mix(in oklab, var(--petal) 35%, transparent); }
.impact-item .num { font: var(--display-weight) clamp(2.2rem, 4vw, 2.8rem) var(--display); text-transform: var(--display-case); color: var(--petal); line-height: 1; margin-bottom: 10px; }

/* Causes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card .photo { min-height: 300px; }
.card h3 { margin-top: 18px; margin-bottom: .2em; }
.card p { color: var(--muted); margin: 0; }

/* Story rows */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; padding-block: 56px; }
.story + .story { border-top: 1px solid var(--line); }
.story:nth-child(even) .photo { order: 2; }
.story .photo { min-height: 360px; }

/* Donate */
.donate-band { background: var(--stone); }
.donate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.donate-box { background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--wine) 30%, transparent); }
.toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--blush); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.toggle button { border: 0; background: none; padding: 11px; border-radius: 999px; font: 700 15px var(--body); color: var(--muted); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--wine); color: #fff; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amounts button { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 14px 6px; font: 800 1.3rem var(--body); cursor: pointer; color: var(--wine); transition: border-color .15s, background .15s; }
.amounts button:hover { border-color: var(--petal); }
.amounts button[aria-pressed="true"] { border-color: var(--rose); background: var(--blush); }
.custom { margin-top: 10px; width: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 500 1rem var(--body); }
.what-it-does { min-height: 3.4em; margin: 16px 0; padding: 14px 16px; border-left: 3px solid var(--rose); background: var(--porcelain); color: var(--wine); font: 600 1.02rem/1.4 var(--body); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 12px 0 20px; }
.check input { width: 20px; height: 20px; accent-color: var(--rose); margin-top: 2px; flex: none; }
.donate-box .btn { width: 100%; }
.note { font-size: 13px; color: var(--muted); margin: 12px auto 0; text-align: center; }
.toast { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--blush); color: var(--wine); font-weight: 600; display: none; }
.toast.show { display: block; }

/* Newsletter + footer */
.newsletter { background: var(--stone); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input[type=email] { flex: 1 1 220px; padding: 15px 20px; border-radius: 999px; border: 1.5px solid var(--line); font: 1rem var(--body); background: #fff; }
.newsletter .consent { flex-basis: 100%; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.newsletter .consent input { accent-color: var(--rose); }
.site-foot { background: var(--wine); color: var(--blush); padding: 56px 0 40px; font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-foot img { width: 120px; }
.site-foot a { color: var(--petal); }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0; background: var(--porcelain); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .menu-btn { display: inline-flex; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font: 700 14px var(--body); color: var(--wine); cursor: pointer; }
  .site-head .btn-primary { padding: 11px 20px; }
  .logo { font-size: 1.15rem; letter-spacing: .16em; }
  .logo-mark { width: 36px; }
  .hero .wrap, .donate-layout, .story, .newsletter { grid-template-columns: 1fr; }
  .swan-panel { aspect-ratio: 1; border-radius: 160px 160px var(--r-lg) var(--r-lg); }
  .story:nth-child(even) .photo { order: 0; }
  .story .photo { min-height: 260px; }
  .cards, .impact-grid { grid-template-columns: 1fr; }
  .impact-item + .impact-item { padding-left: 0; border-left: 0; border-top: 1px solid color-mix(in oklab, var(--petal) 35%, transparent); }
}
@media (max-width: 420px) { .logo span:not(.logo-mark) { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Quick donate in the hero (pattern borrowed from big-charity homepages) */
.quick-donate { margin-top: 28px; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 24px 50px -32px color-mix(in oklab, var(--wine) 35%, transparent); }
.quick-donate .amounts { grid-template-columns: repeat(4, 1fr); }
.quick-donate .what-it-does { font-size: 1.1rem; margin: 14px 0; }
.quick-donate .btn { width: 100%; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--rose-deep); text-underline-offset: 4px; }
.boost { margin: 0 0 4px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--blush); color: var(--wine); font-weight: 600; font-size: 15px; }
.boost:empty { display: none; }
.secure { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--wine); }
.secure svg { width: 18px; height: 18px; color: var(--rose); }

/* More ways to help */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.way { display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, background .2s; }
.way:hover { border-color: var(--petal); background: var(--blush); }
.way p { color: var(--muted); }
.way span { font-weight: 700; color: var(--rose-deep); }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .quick-donate .amounts { grid-template-columns: repeat(2, 1fr); } }
.amounts:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }

/* Trust row under the donate button */
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; font-weight: 600; color: var(--wine); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--rose); }

/* Footer social */
.social p { margin: 0 0 10px; font-weight: 600; color: #fff; }
.social ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--petal) 40%, transparent); color: var(--blush); transition: background .2s, color .2s; }
.social a:hover { background: var(--petal); color: var(--wine); }
.social svg { width: 18px; height: 18px; }

/* ---------- Texture and motion (kept quiet: a charity, not a shop window) ---------- */
/* Shapla (Bangladesh's water lily) with kantha running stitches, used only as a faint texture on dark areas */
:root {
  --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23e9a9bd' stroke-width='1.1' stroke-linecap='round' opacity='.09'%3E%3Cpath d='M48 34c5 6 5 12 0 18-5-6-5-12 0-18zM48 52c7-3 13-1 17 5-7 2-13 0-17-5zM48 52c-7-3-13-1-17 5 7 2 13 0 17-5z'/%3E%3Cpath d='M0 48h22M74 48h22M48 0v22M48 74v22' stroke-dasharray='4 5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Blob behind the swan + slow float */
.swan-wrap { position: relative; }
.blob { position: absolute; width: 112%; left: -8%; top: -5%; z-index: 0; opacity: .45; }
.swan-panel { position: relative; z-index: 1; }
.swan-panel img { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both, float 8s ease-in-out 1.1s infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Scroll reveal (one gentle rise) + small hover lifts */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .ways .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .1s; }
.cards .reveal:nth-child(3), .ways .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .2s; }
.way { transition: border-color .2s, background .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.way:hover { transform: translateY(-3px); }

/* How your gift reaches people: a real sequence, so numbers belong here */
.how { background: var(--stone); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--sand); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--sand); color: var(--rose-deep); font: 600 1.3rem var(--display); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .blob { display: none; } }

/* Word-by-word blur-in headline (recipe adapted from MotionSites, MIT) */
.blur-text .bt-word { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(40px); }
.blur-text.is-in .bt-word { animation: bt-in .7s ease-out both; animation-delay: calc(var(--i) * 100ms); }
@keyframes bt-in {
  0%   { filter: blur(10px); opacity: 0; transform: translateY(40px); }
  50%  { filter: blur(5px); opacity: .5; transform: translateY(-5px); }
  100% { filter: blur(0); opacity: 1; transform: none; }
}

/* Sticky stacking cards on Our work (recipe adapted from MotionSites, MIT) */
.stack { position: relative; padding-bottom: 8vh; width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.stack-slot { position: sticky; top: 0; height: 88vh; display: flex; align-items: flex-start; padding-top: clamp(96px, 14vh, 128px); }
.stack-card { position: relative; top: calc(var(--i) * 26px); width: 100%; transform-origin: top center;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: clamp(28px, 4vw, 48px); padding: clamp(16px, 2.4vw, 28px);
  box-shadow: 0 -18px 40px -30px color-mix(in oklab, var(--wine) 35%, transparent); }
.stack-card:nth-child(odd) { background: var(--porcelain); }
.stack-card .photo { min-height: clamp(220px, 44vh, 420px); border-radius: clamp(20px, 3vw, 36px); }
.stack-card p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .stack-card { grid-template-columns: 1fr; gap: 18px; }
  .stack-card .photo { min-height: 30vh; }
  .stack-card h2 { font-size: 1.9rem; }
  .stack-slot { padding-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .blur-text .bt-word { opacity: 1; filter: none; transform: none; animation: none !important; }
}

/* Swan follows the mouse: the arch tilts, the swan leans and drifts, a soft light follows the cursor, the blob moves the other way */
.swan-wrap { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --dx: 0; --dy: 0; perspective: 900px; }
.swan-panel { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.swan-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgb(255 255 255 / .28), transparent 70%); }
.swan-panel img { translate: calc(var(--dx) * 18px) calc(var(--dy) * 14px); rotate: calc(var(--dx) * 6deg); transition: translate .5s cubic-bezier(.2,.7,.2,1), rotate .5s cubic-bezier(.2,.7,.2,1); }
.blob { translate: calc(var(--dx) * -22px) calc(var(--dy) * -16px); transition: translate .8s cubic-bezier(.2,.7,.2,1); }
.swan-wrap.hovering .swan-panel { transition-duration: .15s; }
.swan-wrap.hovering .swan-panel::after { opacity: 1; }
.swan-wrap.hovering .swan-panel img { scale: 1.04; transition-duration: .2s; }
@media (prefers-reduced-motion: reduce) { .swan-panel, .swan-panel img, .blob { transform: none !important; translate: none !important; rotate: none !important; scale: none !important; } }


/* ---------- Colour versions (demo switcher: Pink, Green, Pink + green) ---------- */
:root { --cta-bg: #ffd6e2; --cta-ink: var(--wine); --donate-btn: var(--wine); --bulge-a: var(--blush); --bulge-b: color-mix(in oklab, var(--petal) 45%, var(--porcelain)); --bulge-c: var(--sand);
  --panel-bg: radial-gradient(120% 80% at 50% 20%, var(--glow) 0%, var(--rose) 35%, var(--wine) 100%); }
[data-theme="green"] {
  --porcelain: #fbfcf8; --blush: #e3efe6; --petal: #a6ccb2; --glow: #6aa983; --rose: #2e7d52; --rose-deep: #1d5c3b;
  --wine: #15392a; --ink: #17261e; --muted: #54655b; --line: #dbe5dd; --stone: #f2f3ec; --sand: #d5dccb;
  --cta-bg: #f7d774; --cta-ink: #15392a; --donate-btn: #15392a;
}
[data-theme="mix"] {
  --wine: #1d4733; --rose: #b85476; --rose-deep: #93385a; --petal: #e9a9bd; --glow: #d27c98; --blush: #f8e7ec;
  --stone: #f1f4ee; --sand: #d2ddd0; --ink: #1b2a22; --muted: #5b685f; --line: #e2e4dc;
  --cta-bg: #ffd6e2; --cta-ink: #1d4733; --donate-btn: #b85476;
  --bulge-b: #dfeadf; --bulge-c: #f3d3dd;
  --panel-bg: radial-gradient(120% 80% at 50% 20%, #5f9a78 0%, #2f6a4c 40%, #1d4733 100%);
}

/* ---------- Bulges: big soft shapes behind sections ---------- */
.soft-bg { position: relative; isolation: isolate; overflow: hidden; }
.bulges { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bulges i { position: absolute; display: block; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: bulge 18s ease-in-out infinite alternate; }
.bulges i:nth-child(1) { width: 520px; height: 460px; left: -160px; top: -140px; background: var(--bulge-a); }
.bulges i:nth-child(2) { width: 380px; height: 400px; right: -120px; bottom: -160px; background: var(--bulge-b); border-radius: 61% 39% 45% 55% / 52% 61% 39% 48%; animation-duration: 22s; }
.bulges i:nth-child(3) { width: 220px; height: 200px; left: 46%; bottom: -90px; background: var(--bulge-c); opacity: .7; border-radius: 50% 50% 38% 62% / 60% 45% 55% 40%; animation-duration: 15s; }
@keyframes bulge { to { border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; transform: translate(14px, -10px) scale(1.04); } }
.how .bulges i:nth-child(1) { background: var(--porcelain); }
.donate-band .bulges i:nth-child(1), .newsletter .bulges i:nth-child(1) { background: var(--porcelain); opacity: .8; }
.newsletter .bulges i:nth-child(1) { width: 300px; height: 280px; left: auto; right: -80px; top: -110px; }
.newsletter .bulges i:nth-child(2) { width: 220px; height: 220px; right: auto; left: -70px; bottom: -110px; }
.newsletter .bulges i:nth-child(3) { display: none; }

/* Chunky shapla (water lily) pattern, filled and fat, faded so it never fights the text */
.hero.soft-bg::after, .site-foot::before, .donate-band.soft-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--petal); opacity: .28;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg%3E%3Cpath d='M80 30c18 20 18 42 0 62-18-20-18-42 0-62z'/%3E%3Cpath d='M80 92c-6-24-28-38-52-33 5 25 28 38 52 33z'/%3E%3Cpath d='M80 92c6-24 28-38 52-33-5 25-28 38-52 33z'/%3E%3Ccircle cx='80' cy='112' r='7'/%3E%3Ccircle cx='8' cy='150' r='9'/%3E%3Ccircle cx='152' cy='10' r='5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px repeat,
    linear-gradient(100deg, transparent 35%, #000 75%);
  -webkit-mask-composite: source-in;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg%3E%3Cpath d='M80 30c18 20 18 42 0 62-18-20-18-42 0-62z'/%3E%3Cpath d='M80 92c-6-24-28-38-52-33 5 25 28 38 52 33z'/%3E%3Cpath d='M80 92c6-24 28-38 52-33-5 25-28 38-52 33z'/%3E%3Ccircle cx='80' cy='112' r='7'/%3E%3Ccircle cx='8' cy='150' r='9'/%3E%3Ccircle cx='152' cy='10' r='5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px repeat,
    linear-gradient(100deg, transparent 35%, #000 75%);
  mask-composite: intersect;
}
.site-foot { position: relative; isolation: isolate; overflow: hidden; }
.site-foot::before { opacity: .12; }
.donate-band.soft-bg::after { opacity: .22; }

/* ---------- Hero: donate is the main thing ---------- */
.hero .wrap { grid-template-columns: 1fr 1.05fr; align-items: center; }
.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-visual .swan-wrap { width: 72%; }
.hero-visual .swan-panel { aspect-ratio: 1 / 1; border-radius: 200px 200px var(--r-lg) var(--r-lg); background: var(--panel-bg); }
.hero-visual .swan-panel img { width: 56%; margin-bottom: 14%; }
.quick-donate { position: relative; z-index: 3; width: min(460px, 100%); margin-top: -96px; max-width: none;
  background: var(--cta-bg); color: var(--cta-ink); border: 0; border-radius: var(--r-lg); padding: 24px;
  box-shadow: 0 30px 60px -28px color-mix(in oklab, var(--wine) 55%, transparent); }
.qd-title { font-size: 2rem; margin-bottom: 14px; color: var(--cta-ink); }
.quick-donate .toggle { background: color-mix(in oklab, #fff 55%, transparent); }
.quick-donate .toggle button[aria-pressed="true"] { background: var(--cta-ink); }
.quick-donate .amounts button { border-color: transparent; }
.quick-donate .amounts button[aria-pressed="true"] { border-color: var(--cta-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--cta-ink); }
.quick-donate .what-it-does { background: color-mix(in oklab, #fff 60%, transparent); border-left-color: var(--cta-ink); color: var(--cta-ink); }
.qd-note { margin: 12px 0 0; text-align: center; font-size: 13px; font-weight: 600; opacity: .8; }
.btn-donate { width: 100%; background: var(--donate-btn); color: #fff; font-size: 16px; padding: 17px 28px; }
.btn-donate:hover { filter: brightness(1.15); transform: translateY(-2px); }
.donate-box .btn-donate { width: 100%; }

/* ---------- Demo colour switcher ---------- */
.theme-switch { position: fixed; z-index: 50; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 30px -16px rgb(0 0 0 / .35); font-size: 13px; }
.theme-switch span { font-weight: 700; color: var(--muted); margin-right: 4px; }
.theme-switch button { border: 0; background: none; padding: 8px 12px; border-radius: 999px; font: 700 13px var(--body); color: var(--ink); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--wine); color: #fff; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual .swan-wrap { width: 70%; }
  .hero-visual .swan-panel { aspect-ratio: 5 / 3; border-radius: 140px 140px var(--r-lg) var(--r-lg); }
  .hero-visual .swan-panel img { width: 40%; margin-bottom: 10%; }
  .quick-donate { margin-top: -48px; }
  .bulges i:nth-child(1) { width: 340px; height: 300px; }
  .theme-switch { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .theme-switch span { display: none; }
  .site-foot { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { .bulges i { animation: none; } }

/* Phone: donate card straight after the headline; the swan lives in the header there */
.logo-mark { display: block; flex: none; }
@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy, .hero-visual { display: contents; }
  .hero h1 { order: 1; }
  .hero-visual .swan-wrap { display: none; }
  .quick-donate { order: 2; margin: 4px 0 24px; width: 100%; }
  .hero .lead { order: 3; }
  .hero .text-link { order: 4; margin-top: 0; }
}

/* Pink + green swapped: burgundy/pink where "mix" is green, green where "mix" is pink */
[data-theme="mix-swap"] {
  --wine: #4b1630; --rose: #2e7d52; --rose-deep: #1d5c3b; --petal: #a6ccb2; --glow: #6aa983; --blush: #e3efe6;
  --stone: #f8f1f2; --sand: #ecd6dc; --ink: #2b1720; --muted: #6e5862; --line: #eadcd8;
  --cta-bg: #cfe7d6; --cta-ink: #4b1630; --donate-btn: #2e7d52;
  --bulge-b: #f6e3e9; --bulge-c: #d3e6d8;
  --panel-bg: radial-gradient(120% 80% at 50% 20%, #d27c98 0%, #b85476 35%, #4b1630 100%);
}

/* Example photos (Unsplash, for the demo only) */
.photo.has-img { position: relative; background: linear-gradient(180deg, transparent 50%, color-mix(in oklab, var(--ink) 55%, transparent)), var(--img) center / cover, var(--tint); justify-content: space-between; align-items: flex-end; gap: 8px; }
.photo .cap { font-weight: 600; }
.ex { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px; background: rgb(255 255 255 / .85); color: var(--ink); }
.card:hover .photo.has-img { box-shadow: 0 24px 40px -24px color-mix(in oklab, var(--wine) 50%, transparent); }

/* Hero arch with a real-life photo: colour wash at the top for the swan, photo shows through below */
.swan-panel.has-photo { background: var(--hero-img) center 40% / cover, var(--panel-bg); }
.swan-panel.has-photo img { display: none; }
.swan-panel.has-photo::after { background: radial-gradient(200px circle at var(--mx) var(--my), rgb(255 255 255 / .12), transparent 70%); }
/* The swan becomes a round badge on the arch's shoulder, drifting a little more than the photo when the mouse moves */
.swan-badge { position: absolute; z-index: 2; top: 4%; right: 2%; width: 92px; aspect-ratio: 1; border-radius: 50%;
  background: var(--wine); box-shadow: 0 14px 30px -12px color-mix(in oklab, var(--wine) 60%, transparent), 0 0 0 5px var(--porcelain);
  translate: calc(var(--dx) * 26px) calc(var(--dy) * 18px); transition: translate .5s cubic-bezier(.2,.7,.2,1);
  animation: float 8s ease-in-out infinite; }
.swan-badge::before { content: ""; position: absolute; inset: 18%; background: #fff;
  -webkit-mask: url(assets/swan-white.png) center / contain no-repeat; mask: url(assets/swan-white.png) center / contain no-repeat; }
.swan-panel.has-photo .ex { inset: auto auto 112px 16px; width: auto; text-align: left; font: 700 10px var(--body); padding: 3px 8px; color: var(--ink); }
@media (max-width: 860px) { .swan-panel.has-photo .ex { bottom: 60px; } }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.checkout.is-done .stepper { visibility: hidden; }
.stepper { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; counter-reset: st; }
.stepper li { counter-increment: st; flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.stepper li::before { content: counter(st); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); font-size: 13px; }
.stepper li[aria-current] { color: var(--wine); border-color: var(--donate-btn); }
.stepper li[aria-current]::before { background: var(--donate-btn); border-color: var(--donate-btn); color: #fff; }
.stepper li.done { color: var(--wine); border-color: color-mix(in oklab, var(--donate-btn) 45%, var(--line)); }
.stepper li.done::before { content: "✓"; background: color-mix(in oklab, var(--donate-btn) 15%, #fff); border-color: transparent; color: var(--donate-btn); }
.step { animation: step-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
.step-title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.step-title:focus { outline: none; }

/* Fields */
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--wine); }
.field input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 500 16px var(--body); color: var(--ink); background: #fff; }
.field input:focus { border-color: var(--donate-btn); outline: 3px solid color-mix(in oklab, var(--donate-btn) 20%, transparent); outline-offset: 0; }
.field small { font-weight: 500; color: var(--muted); }
.field.invalid input { border-color: #b3261e; background: #fff7f6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: #b3261e; font-weight: 600; font-size: 14px; margin: 10px 0 0; min-height: 1px; }

/* Gift Aid block */
.giftaid { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin: 6px 0 16px; background: var(--porcelain); }
.giftaid legend { padding: 0 6px; font-weight: 700; color: var(--wine); font-size: 15px; }
.ga-logo { display: inline-block; padding: 2px 8px; margin-right: 6px; border-radius: 6px; background: var(--wine); color: #fff; font-size: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; margin-top: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--donate-btn); box-shadow: inset 0 0 0 1px var(--donate-btn); }
.choice input { accent-color: var(--donate-btn); width: 18px; height: 18px; margin-top: 2px; }
.choice em { font-style: normal; color: var(--donate-btn); font-weight: 700; }
.ga-address { margin-top: 16px; }
.ga-address[hidden] { display: none; }
.small-print { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }

/* Payment */
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.method { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-weight: 600; cursor: pointer; }
.method:has(input:checked) { border-color: var(--donate-btn); box-shadow: inset 0 0 0 1px var(--donate-btn); }
.method input { accent-color: var(--donate-btn); }
.method[hidden] { display: none; }
.secure-slot { border: 1.5px dashed var(--sand); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; background: var(--porcelain); }
.secure-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 700; color: var(--wine); font-size: 14px; }
.secure-head svg { width: 16px; height: 16px; color: var(--donate-btn); }
.mock-field { height: 46px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--line), color-mix(in oklab, var(--line) 40%, #fff), var(--line)); background-size: 200% 100%; margin-bottom: 10px; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.secure-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.step-actions { display: flex; gap: 10px; margin-top: 8px; }
.step-actions .btn-donate { flex: 1; width: auto; }

/* Thank you */
.thanks { text-align: left; }
.thanks-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--donate-btn); position: relative; margin-bottom: 16px; animation: pop .5s cubic-bezier(.2,.9,.3,1.3); }
.thanks-mark::before { content: ""; position: absolute; inset: 16px; background: #fff; -webkit-mask: url(assets/swan-white.png) center / contain no-repeat; mask: url(assets/swan-white.png) center / contain no-repeat; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.thanks-line { font-size: 1.15rem; color: var(--ink); }
.thanks h3 { margin-top: 22px; }
.next { padding-left: 20px; color: var(--muted); }
.next li { margin-bottom: 8px; }
.thanks:focus { outline: none; }

/* Summary */
.summary { position: sticky; top: 100px; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -34px color-mix(in oklab, var(--wine) 40%, transparent); }
.summary-photo { min-height: 190px; border-radius: 0; }
.summary-body { padding: 22px; }
.summary h2 { font-size: 1.7rem; margin-bottom: 12px; }
.summary dl { margin: 0; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; color: var(--wine); }
.summary .sum-total { border-bottom: 0; padding-top: 12px; font-size: 16px; }
.summary .sum-total dd { color: var(--donate-btn); font-size: 1.15rem; }
.sum-what { margin: 12px 0 6px; font: 600 1rem/1.4 var(--body); color: var(--wine); }
.sum-change { background: none; border: 0; padding: 0; cursor: pointer; font: 600 14px var(--body); text-decoration: underline; }
.checkout.is-done .sum-change { display: none; }
.checkout-band { padding-top: clamp(40px, 6vw, 72px); }

@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; display: grid; grid-template-columns: 96px 1fr; }
  .summary-photo { min-height: 100%; }
  .summary-photo .ex { display: none; }
  .summary-body { padding: 14px 16px; }
  .summary h2 { display: none; }
  .summary dl > div { padding: 4px 0; font-size: 14px; }
  .sum-what { display: none; }
  .stepper li { font-size: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .methods { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .step, .thanks-mark { animation: none; } .mock-field { animation: none; } }

[hidden] { display: none !important; }
.step-actions .btn { width: auto; }
.step-actions .btn-ghost { flex: none; }
.step-actions .btn-donate { flex: 1; }


/* ---------- Font versions (demo switcher) ---------- */
[data-font="punchy"] { --display: "Anton", Impact, sans-serif; --display-weight: 400; --display-track: .005em; --display-case: uppercase; --display-lh: 1.02; }
[data-font="friendly"] { --display: "Fredoka", system-ui, sans-serif; --display-weight: 600; --display-track: -.01em; --display-lh: 1.05; }
[data-font="punchy"] h1 { font-size: clamp(3rem, 7.4vw, 5.8rem); }
.what-it-does { font: 600 1.02rem/1.4 var(--body); }
.quick-donate .what-it-does { font-size: .98rem; }

/* Two-row demo switcher */
.theme-switch { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px; border-radius: 22px; }
.ts-row { display: flex; align-items: center; gap: 4px; }
.ts-row span { width: 58px; padding-left: 8px; font-weight: 700; color: var(--muted); }
.theme-switch button[aria-pressed="true"] { background: var(--wine); color: #fff; }
@media (max-width: 860px) {
  .theme-switch { left: 8px; right: 8px; bottom: 8px; border-radius: 18px; }
  .ts-row { justify-content: space-between; }
  .ts-row span { display: block; width: auto; font-size: 11px; padding-left: 4px; }
  .theme-switch button { padding: 7px 8px; font-size: 12px; }
  .site-foot { padding-bottom: 120px; }
}

/* Nav bar in the heading font: bigger, bolder, with a sliding underline */
.logo { font: var(--display-weight) 1.35rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.nav { gap: 30px; }
.nav a { position: relative; font: var(--display-weight) 1.05rem var(--display); text-transform: var(--display-case); letter-spacing: .03em; color: var(--wine); padding: 6px 0; }
[data-font="punchy"] .nav a { font-size: 1.15rem; letter-spacing: .05em; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--donate-btn); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a:hover, .nav a[aria-current] { color: var(--wine); }
.site-head .btn-primary, .menu-btn { font: var(--display-weight) 1.05rem var(--display); text-transform: var(--display-case); letter-spacing: .05em; }
.site-head .btn-primary { background: var(--donate-btn); padding: 12px 26px; }
@media (max-width: 860px) { .nav a { font-size: 1.2rem; } .nav a::after { display: none; } }
