/* ==========================================================================
   Project Vidya — site styles (v3, editorial)
   Tokens: css/tokens.css. Layout is mobile-first; wide rules start at 760px
   (two columns) and 1024px (full desktop composition).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  letter-spacing: -0.011em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: 1.04; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--blueberry); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; z-index: 200; left: var(--s-4); top: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--ink); color: var(--card); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(var(--s-8), 9vw, var(--s-9)); }

/* ---- Paper sheets (every section below the hero) ---------------------------
   Each sheet overlaps the one above and casts a soft ink shadow on it. With
   motion allowed, a sheet rises the last 2rem as it scrolls in (CSS only,
   native scrolling; nothing pins). */
.sheet {
  position: relative; z-index: 1;
  margin-top: calc(-1 * var(--sheet-overlap));
  padding-block: clamp(var(--s-8), 9vw, var(--s-9));
  background-color: var(--page);
  background-image: var(--grain);
  box-shadow: var(--shadow-sheet);
}
.sheet--cream { background-color: var(--cream-soda); }
.sheet--stone { background-color: var(--stone); }
.sheet.on-blueberry {
  background-image: var(--grain), linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sheet { animation: sheet-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes sheet-rise { from { translate: 0 var(--sheet-overlap); } to { translate: 0 0; } }
  }
}

/* ---- Placeholders for real figures and photos (see docs/redesign-plan.md) ---
   Deliberately loud so nothing ships unfilled. tools/check.mjs fails on any. */
.ph {
  display: inline;
  padding: 0.05em 0.35em;
  border: 1.5px dashed var(--marigold);
  border-radius: 4px;
  background: var(--marigold-tint);
  color: var(--ink);
  font: 600 0.8em/1.5 var(--font-body);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  margin-bottom: var(--s-4);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.lede { font-size: var(--t-lg); color: var(--text); }

/* ---- Highlighted words ("marker boxes") --------------------------------- */
.hl {
  --hl: var(--periwinkle);
  padding: 0 0.12em;
  border-radius: var(--r-hl);
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl--marigold { --hl: var(--marigold); }
.hl--leaf { --hl: var(--leaf-tint); }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--tap);
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: var(--r-0);
  font: 500 var(--t-sm) / 1.1 var(--font-body);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:active { transform: scale(0.98); box-shadow: none; transition-duration: 60ms; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--primary { background: var(--blueberry); border-color: var(--blueberry); color: var(--card); }
.btn--primary:hover { background: var(--blueberry-deep); border-color: var(--blueberry-deep); }
.btn--secondary { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--cream { background: var(--cream-soda); border-color: var(--cream-soda); color: var(--ink); }
.btn--cream:hover { background: var(--card); border-color: var(--card); }
.btn--outline-light { background: transparent; border-color: color-mix(in srgb, var(--cream-soda) 55%, transparent); color: var(--cream-soda); }
.btn--outline-light:hover { border-color: var(--cream-soda); background: color-mix(in srgb, var(--cream-soda) 8%, transparent); }
.btn--lg { padding: 0.95rem 1.4rem; font-size: 1rem; }

/* ---- Handwritten notes (Caveat) — one per section at most ------------------ */
.note { font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); line-height: 1.12; letter-spacing: 0; color: var(--ink); }


/* ---- Grid paper ------------------------------------------------------------ */
.grid-paper {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: -1px -1px;
}
.on-blueberry { --grid-line: var(--grid-line-light); --focus: var(--marigold); background-color: var(--blueberry); color: var(--on-dark); }
.on-marigold  { --grid-line: color-mix(in srgb, var(--card) 22%, transparent); background-color: var(--marigold); }
.on-leaf      { --grid-line: color-mix(in srgb, var(--card) 22%, transparent); background-color: var(--leaf); }
.on-periwinkle{ --grid-line: color-mix(in srgb, var(--card) 45%, transparent); background-color: var(--periwinkle); }


/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream-soda);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex; align-items: center; gap: var(--s-5);
  width: min(100% - 2 * var(--gutter), 82rem);
  min-height: 64px;
  margin-inline: auto;
  padding-top: env(safe-area-inset-top, 0px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.02em; white-space: nowrap; }

.site-nav { margin-right: auto; }
.site-nav ul { display: flex; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding-inline: var(--s-3);
  color: var(--ink); font-size: var(--t-sm); text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; }
.site-nav .nav-donate { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.header-actions .link-plain { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding-inline: var(--s-3); color: var(--ink); font-size: var(--t-sm); text-decoration: none; }
.header-actions .link-plain svg { width: 18px; height: 18px; }
.header-actions .link-plain:hover { text-decoration: underline; }

.menu-toggle {
  display: none; place-items: center;
  width: var(--tap); height: var(--tap); padding: 0;
  border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.2s var(--ease), background-color 0.2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .menu-toggle { display: grid; }
  .js .header-actions .link-plain { display: none; }
  .js .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: var(--s-2) var(--gutter) var(--s-6);
    background: var(--cream-soda);
    border-bottom: 1px solid var(--line);
  }
  .js .site-header[data-menu="open"] .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { width: 100%; min-height: 56px; padding: 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; }
  .js .site-nav li:last-child a { border-bottom: 0; }
  .js .site-nav .nav-donate { display: block; margin-top: var(--s-4); }
  .js .site-nav .nav-donate a { justify-content: center; min-height: 52px; border: 0; background: var(--blueberry); color: var(--card); font-family: var(--font-body); font-size: 1rem; }

  /* No JavaScript: the menu can't open, so show the links in a scrollable row. */
  html:not(.js) .site-header__inner { flex-wrap: wrap; row-gap: 0; }
  html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
}
@media (max-width: 379px) {
  .site-header__inner { gap: var(--s-3); }
  .brand span { font-size: 1rem; }
  .header-actions .btn { padding-inline: 0.85rem; }
}

/* ==========================================================================
   Hero: a handmade paper set in 3D (js/hero/). Live mode pins the stage for
   one screen of scrolling (the section is 200svh). Static mode, and no
   JavaScript, show the same scene as a still picture, one screen tall.
   ========================================================================== */

.hero { position: relative; background: var(--cream-soda); }
.hero__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(100svh - var(--header-h));
  min-height: 36rem;
}
.hero-live .hero { height: calc(200svh - var(--header-h)); }
.hero-live .hero__stage { position: sticky; top: var(--header-h); min-height: 0; }

.hero__scene { position: absolute; inset: 0; z-index: 0; }
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img { width: 100%; height: 100%; object-fit: cover; background: var(--cream-soda); }
.hero__canvas { opacity: 0; transition: opacity 0.4s var(--ease); }
.hero-ready .hero__canvas { opacity: 1; }
.hero-static .hero__canvas { display: none; }

/* Copy: the top of the frame on portrait screens, a left column on landscape */
.hero__copy { position: relative; z-index: 2; height: 100%; padding-top: clamp(var(--s-5), 5svh, var(--s-7)); pointer-events: none; }
.hero__text { max-width: 36rem; pointer-events: auto; }
.hero h1 { max-width: 13ch; font-size: clamp(2.35rem, 1.45rem + 4.2vw, 5rem); line-height: 1.02; }
.hero .lede { max-width: 28rem; margin-top: var(--s-4); }
.hero .hero__actions { margin-top: var(--s-5); }
@media (min-aspect-ratio: 1/1) {
  .hero__copy { display: grid; align-items: center; padding: 0 0 6svh; }
  .hero__text { max-width: min(34rem, 44vw); }
  .hero .lede { margin-top: var(--s-5); }
  .hero .hero__actions { margin-top: var(--s-6); }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }

/* Live: the headline lifts away as the child grows into its space (boot.js sets --out) */
.hero-live .hero__copy { opacity: calc(1 - var(--out, 0)); translate: 0 calc(var(--out, 0) * -2rem); }
.hero-live .hero__copy.is-out .hero__text { pointer-events: none; }
.hero-live .hero__copy:focus-within { opacity: 1; translate: none; }
.hero-capture .hero__copy, .hero-capture .hero__marks { visibility: hidden; }

/* Static picture on a portrait screen: the words first, the picture below
   them, so nothing sits on the busy map. */
@media (max-aspect-ratio: 1/1) {
  .hero-static .hero__stage { height: auto; min-height: 0; }
  .hero-static .hero__copy { height: auto; padding-bottom: var(--s-6); }
  .hero-static .hero__scene { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 5; max-height: 72svh; }
}
/* On a landscape screen the still picture is framed with the map on the
   right half (CAMERA.still in js/hero/timeline.js), so the words keep the left. */

/* Labels on the map. Without JavaScript they sit in a row at the foot of the
   picture; once placed (.is-placed) they follow the pins. */
.hero__marks {
  position: absolute; z-index: 2;
  left: var(--gutter); right: var(--gutter); bottom: var(--s-5);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3) var(--s-5);
  pointer-events: none;
}
.hero__marks.is-placed { inset: 0; display: block; }
.hero__marks.is-placed .hero-mark { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.hero-live .hero-mark { opacity: 0; }
.hero-live .hero__marks:not(.is-placed) { visibility: hidden; } /* out of the way until the 3D places them */
.hero-mark { margin: 0; }
.hero-mark__card {
  position: relative;
  display: block;
  padding: 10px 14px 11px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}
.hero__marks.is-placed .hero-mark__card { translate: -50% calc(-100% - 0.75rem); }
.hero__marks.is-placed .hero-mark__card::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 12px; height: 12px; background: var(--card);
  transform: translateX(-50%) rotate(45deg);
}
/* Portrait: the book sits above the pin, so the label goes to the pin's right */
@media (max-aspect-ratio: 1/1) {
  .hero__marks.is-placed .hero-mark--school .hero-mark__card { translate: 0.9rem -50%; }
  .hero__marks.is-placed .hero-mark--school .hero-mark__card::after { left: 0; bottom: 50%; transform: translate(-50%, 50%) rotate(45deg); }
}
.hero-mark__kicker { display: block; font-size: var(--t-2xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-soft); }
.hero-mark__title { display: block; font-size: var(--t-sm); font-weight: 600; line-height: 1.3; color: var(--ink); }
.hero-mark__sub { display: block; font-size: var(--t-xs); line-height: 1.35; color: var(--text); }
.hero-mark--note .note { display: block; rotate: -4deg; white-space: nowrap; }
.hero__marks.is-placed .hero-mark--note .note { translate: -50% -50%; }

/* ==========================================================================
   Statement + mission
   ========================================================================== */

.statement { text-align: center; }
.statement__squiggle { width: min(100%, 620px); margin: 0 auto var(--s-7); }
.statement__squiggle path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.statement h2 { max-width: 19ch; margin-inline: auto; }
.mission { max-width: 44rem; margin: var(--s-7) auto 0; }
.mission p { font-size: var(--t-lg); line-height: 1.6; }
.mission p + p { margin-top: var(--s-4); }
.mission .mission__note { display: inline-block; margin-top: var(--s-6); rotate: -3deg; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15; }

/* ==========================================================================
   Section heading row (title left, text right)
   ========================================================================== */

.head-row { display: grid; gap: var(--s-4) var(--s-7); align-items: end; margin-bottom: var(--s-7); }
.head-row p { max-width: 26rem; color: var(--text); }
@media (min-width: 760px) { .head-row { grid-template-columns: 1.5fr 1fr; } .head-row p { justify-self: end; } }

/* ==========================================================================
   What we do: three cards, each with a school photo (or its slot)
   ========================================================================== */

.section-head { margin-bottom: var(--s-7); }
.section-head h2 { max-width: 18ch; }
.cards { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Tablets: each card lies on its side, photo left, words right */
@media (min-width: 600px) and (max-width: 899px) {
  .cards > .card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cards > .card .card__visual, .cards > .card > img { aspect-ratio: auto; height: 100%; min-height: 15rem; }
}
.card { display: flex; flex-direction: column; background: var(--page); box-shadow: var(--shadow-paper); }
.card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-6); }
.card__num { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--text-soft); }
.card h3 { font-size: var(--t-h3); }
.card p { max-width: 34rem; }

/* The card's picture: the brand's own flat drawing on grid paper until a
   school photo replaces it (an <img> directly inside .card). */
.card__visual { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: var(--s-5); overflow: hidden; }
.card__art { width: min(100%, 22rem); height: auto; }
@media (min-width: 900px) { .card__visual, .card > img { aspect-ratio: 4 / 3; } }
.card > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--photo-ground); }

/* ==========================================================================
   Team
   ========================================================================== */

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* One paper frame for everyone: the same white card stock, the same 4:5 crop,
   the same light print grade, photo corners and a slight hand-placed tilt.
   Mismatched selfies read as one set. */
.member { display: flex; flex-direction: column; padding: 10px 10px 0; background: var(--card); box-shadow: var(--shadow-paper); rotate: var(--tilt, 0deg); }
.team > li:nth-child(4n + 1) { --tilt: -0.6deg; }
.team > li:nth-child(4n + 2) { --tilt: 0.4deg; }
.team > li:nth-child(4n + 3) { --tilt: -0.3deg; }
.team > li:nth-child(4n + 4) { --tilt: 0.5deg; }
.member__photo { position: relative; }
.member__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--photo-ground); filter: saturate(0.84) sepia(0.08) contrast(1.03); }
.member__photo::before, .member__photo::after {
  content: ""; position: absolute; z-index: 1; width: 20px; height: 20px; background: var(--night); opacity: 0.85;
}
.member__photo::before { left: -2px; top: -2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.member__photo::after { right: -2px; bottom: -2px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.member__body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: var(--s-3) clamp(12px, 2vw, 20px) clamp(14px, 2vw, 22px); }
.member__name { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.15; }
.member__role { font-size: var(--t-s); color: var(--text); line-height: 1.4; }
.member__role { margin-bottom: var(--s-3); }
.member__fact { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); font-family: var(--font-hand); font-size: 1.3rem; font-weight: 500; color: var(--ink); line-height: 1.15; }
.member__fact b { display: block; margin-bottom: 4px; font-family: var(--font-body); font-size: var(--t-2xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-soft); }

/* ==========================================================================
   Where your gift goes: what a year costs and how the money moves (navy sheet)
   ========================================================================== */

.proof .eyebrow { color: var(--on-dark-soft); }
.proof h2 { color: var(--cream-soda); }
.proof h2 .hl { color: var(--ink); }
.proof a { color: var(--cream-soda); }
.proof__grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) {
  .proof__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: var(--s-8); }
}

/* The receipt: a paper slip tilted in 3D, printed out of a slot */
.receipt-wrap { width: 100%; max-width: 25rem; margin: 0 auto; }
.receipt__tilt { transform: perspective(1400px) rotateX(10deg) rotateY(-9deg) rotateZ(1.4deg); transform-origin: 50% 0; }
.receipt__slot { position: relative; z-index: 2; height: 16px; margin-inline: -16px; background: var(--night); box-shadow: inset 0 -5px 0 var(--blueberry-deep), var(--shadow-lift); }
.receipt__clip { overflow: clip; /* clip, not hidden: hidden would make this the scroll container the print animation follows */ padding: 0 0 34px; filter: drop-shadow(0 16px 18px color-mix(in srgb, var(--night) 45%, transparent)); }
.receipt {
  --z: 8px;
  position: relative;
  padding: var(--s-5) var(--s-5) calc(var(--s-6) + 56px + var(--z)); /* room for the stamp under the total */
  background: var(--card); color: var(--ink);
  -webkit-mask: conic-gradient(from -45deg at bottom, transparent, var(--ink) 1deg 89deg, transparent 90deg) 50% / calc(2 * var(--z)) 100%;
  mask: conic-gradient(from -45deg at bottom, transparent, var(--ink) 1deg 89deg, transparent 90deg) 50% / calc(2 * var(--z)) 100%;
}
.receipt__title { padding-bottom: var(--s-3); border-bottom: 1.5px dashed var(--line); font-size: 1.5rem; }
.receipt__lines { list-style: none; margin: var(--s-2) 0 0; padding: 0; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.receipt__lines li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: 9px 0; border-bottom: 1px solid var(--line); }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-top: var(--s-2); padding-top: var(--s-3); border-top: 2px solid var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.receipt .ph { font-size: 0.72em; }
.receipt__stamp { position: absolute; right: var(--s-5); bottom: calc(var(--s-3) + var(--z)); width: 64px; height: 64px; opacity: 0.5; rotate: -12deg; filter: grayscale(1) contrast(1.3); mix-blend-mode: multiply; }

@keyframes receipt-print { from { translate: 0 -94%; } to { translate: 0 0; } }
@keyframes receipt-ink { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .receipt { animation: receipt-print linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
    .receipt__lines li, .receipt__total {
      animation: receipt-ink linear both; animation-timeline: view();
      animation-range: entry calc(55% + var(--i, 0) * 5%) entry calc(85% + var(--i, 0) * 5%);
    }
  }
  @supports not (animation-timeline: view()) {
    .js .receipt-wrap .receipt { transition: translate 1.4s var(--ease) 0.25s; }
    .js .receipt-wrap:not(.is-in) .receipt { translate: 0 -94%; }
  }
}

/* How your money moves */
.path__title { margin-bottom: var(--s-5); font-family: var(--font-body); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.path__steps { position: relative; display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.path__steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; border-left: 2px dotted color-mix(in srgb, var(--cream-soda) 55%, transparent); }
.path__steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); }
.path__dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--marigold); color: var(--ink); font: 400 1.3rem/1 var(--font-display); }
.path h4 { margin: 10px 0 4px; font: 600 1.0625rem/1.3 var(--font-body); letter-spacing: -0.01em; color: var(--cream-soda); }
.path p { max-width: 32rem; font-size: var(--t-sm); color: var(--on-dark-soft); }

/* ==========================================================================
   Final call to action
   ========================================================================== */

.cta { padding-bottom: 0; }
.cta__panel { position: relative; overflow: hidden; display: grid; gap: var(--s-6); padding: clamp(var(--s-6), 6vw, var(--s-8)); }
.cta__panel::before { content: ""; position: absolute; right: -60px; top: -60px; width: clamp(140px, 18vw, 240px); aspect-ratio: 1; border-radius: 50%; background: var(--marigold); }
.cta h2 { position: relative; max-width: 14ch; color: var(--cream-soda); }
.cta h2 .hl { color: var(--ink); }
.cta .hero__actions { position: relative; margin-top: 0; }

/* The pencil row: one pencil shape reused, standing on the footer's edge.
   The drawing is 2880 wide; narrow screens crop its sides so pencils keep their size. */
.pencils { display: block; width: 100%; height: max(clamp(64px, 9vw, 132px), 5.21vw); margin-top: var(--s-7); }
.pc__ink { stroke: var(--night); stroke-width: 2.5; stroke-linejoin: round; }
.pc__wood { fill: var(--wood); }
.pc__lead { fill: var(--lead, currentColor); }
.pc__body { fill: currentColor; }
.pc__shade { fill: var(--night); fill-opacity: 0.14; stroke: none; }
.pc__ferrule { fill: var(--on-dark-soft); }
.pc__eraser { fill: var(--cream-soda); }
.pc--leaf { color: var(--leaf); }
.pc--marigold { color: var(--marigold); }
.pc--blue { color: var(--blueberry); }
.pc--peri { color: var(--periwinkle); --lead: var(--blueberry); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { --focus: var(--marigold); background: var(--night); color: var(--on-dark-soft); overflow: hidden; padding-top: var(--s-8); }
.site-footer a { color: var(--on-dark); text-decoration-color: color-mix(in srgb, var(--cream-soda) 35%, transparent); }
.site-footer a:hover { text-decoration-color: var(--marigold); }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em; }
.footer__brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer__tag { margin-top: var(--s-3); font-family: var(--font-display); font-size: 1.25rem; color: var(--on-dark); }
.footer__title { margin-bottom: var(--s-2); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--t-sm); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-top: var(--s-7); padding: var(--s-4) 0; border-top: 1px solid color-mix(in srgb, var(--card) 10%, transparent); font-size: var(--t-xs); }
.wordmark {
  display: block;
  margin: var(--s-6) 0 -0.2em;
  font-family: var(--font-display);
  font-size: clamp(7rem, 33vw, 30rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.055em;
  text-align: center;
  color: var(--marigold);
  user-select: none;
}

.footer__note { margin-top: var(--s-6); font-size: var(--t-xs); color: var(--on-dark-soft); max-width: 46rem; }

/* ==========================================================================
   Legal / info pages (privacy.html, accessibility.html)
   ========================================================================== */

.page-head { background: var(--cream-soda); padding: clamp(var(--s-7), 7vw, 5rem) 0 var(--s-7); }
.page-head h1 { font-size: var(--t-h2); }
.page-head p { margin-top: var(--s-3); color: var(--text); }
.page-head .wrap, .prose { width: min(100% - 2 * var(--gutter), 44rem); }
.prose { padding-block: var(--s-7) var(--s-8); }
.prose h2 { font-size: var(--t-h3); margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: var(--s-4); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: var(--s-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .callout { padding: var(--s-4) var(--s-5); background: var(--stone); border-left: 3px solid var(--marigold); }
.back-link { display: inline-flex; align-items: center; gap: 0.35em; min-height: var(--tap); color: var(--ink); font-size: var(--t-sm); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ==========================================================================
   Motion (JavaScript adds .js; everything is visible without it)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Reveal on scroll */
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Highlight boxes wipe in once the hero loads */
  .js .hero .hl { animation: hl-wipe 0.9s var(--ease) 0.15s both; }
  .js .hero .hl--marigold { animation-delay: 0.4s; }
  @keyframes hl-wipe { from { background-size: 0% 100%; } }

  /* Hand-drawn lines draw themselves when they come into view */
  .js [data-sketch] path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }  /* opacity hides round-cap dots */
  .js [data-sketch].is-in path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 1.6s var(--ease), opacity 0s; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
