/* Desktop/landscape: the whole page is drawn on a 1440×900 design and scaled as one piece with --u (1u = 14.4px at 1440×900), so the
   proportions between photo, headline, nav and boxes are identical at every window size. Portrait/phone gets the stacked layout at the bottom. */
:root {
  --u: min(1vw, 1.6vh);
  --beige: #f0ebe1;
  --wall: #f0ebe1;      /* = brand beige; the graded photo wall fades into it */
  --blue: #94c1c2;
  --red: #f09281;
  --red-btn: #ec7660;   /* button fill: a step deeper than --red so buttons stand out from beige without an outline */
  --red-deep: #c75a47;  /* red for text on beige/blue (the soft coral fails contrast as text) */
  --ink: #2b2d31;
  /* font theme: Newsreader (display) + Figtree (body), chosen from the 7-combo preview */
  --font: 'Figtree', system-ui, sans-serif;          /* body: nav, buttons, labels */
  --display: 'Newsreader', Georgia, serif;           /* headline, big numbers, closing line */
  --dw: 500;      /* display weight */
  --dws: 600;     /* big-number weight */
  --ds: 1.05;     /* display size multiplier (fonts differ in width / x-height) */
  --dls: -.02em;  /* display letter-spacing */
  --aw: 1;        /* closing-line box width multiplier */
  --bw: 700;      /* nav weight */
  --bwx: 800;     /* logo / button weight */
  /* --bar = height of the temporary font-preview bar (set in preview.css; falls back to 0 once removed) */
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--wall); color: var(--ink); font-family: var(--font); }
a { color: inherit; text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(100svh, calc(62.5 * var(--u))); min-height: 420px; overflow: hidden; background: var(--wall); }

/* photo: right-anchored; faces ≈ 45% of the hero height like charity: water's close-up, tablet still on screen; left edge + top/bottom fade into the page */
.stage { position: absolute; top: calc(-3.94 * var(--u)); height: calc(93.75 * var(--u)); right: calc(-28.1 * var(--u)); aspect-ratio: 1320 / 1080; }
.stage .photo, .stage .scribble { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo {
  object-fit: cover; display: block;
  filter: sepia(.14) saturate(1.12) contrast(1.05) brightness(.98);   /* warm grade only — the people are untouched */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
  mask-composite: intersect;
}

/* scribble: two jittered strokes per line, redrawn ~7×/s by scribble.js (the "boil" of stop-motion line art) */
.ink path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ink.coral path { stroke: var(--red); }
.ink.blue  path { stroke: var(--blue); }
.ink path:nth-child(1) { stroke-width: 7; }
.ink path:nth-child(2) { stroke-width: 3.5; stroke: var(--ink); opacity: .55; }

/* nav: boxed pieces like the mockup; the App link is a flat round red button inside the bar */
.nav { position: fixed; z-index: 10; top: var(--bar, 0px); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(1.8 * var(--u)) 4vw; gap: 16px; }
.box { display: inline-flex; align-items: center; gap: calc(.7 * var(--u)); border: 2.5px solid var(--ink); background: rgba(250,247,240,.94); backdrop-filter: blur(6px); border-radius: 14px 18px 13px 17px / 17px 13px 18px 14px; padding: calc(1.05 * var(--u)) calc(1.8 * var(--u)); font-weight: var(--bw); font-size: max(13px, calc(1.11 * var(--u))); }
/* wordmark = Newsreader Medium, as in the brand lockup (aac repo brand/) — named directly so a --display change can't alter the logo */
.logo { font-family: 'Newsreader', Georgia, serif; font-size: max(17px, calc(1.6 * var(--u))); font-weight: 500; letter-spacing: -.02em; }
.logo img, .logo .logo-mark { width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u)); min-width: 24px; min-height: 24px; }
.linkgroup { gap: calc(1.95 * var(--u)); padding: calc(.7 * var(--u)) calc(.7 * var(--u)) calc(.7 * var(--u)) calc(2.1 * var(--u)); }
.linkgroup a:hover { color: var(--red-deep); }
.app { display: inline-flex; align-items: center; gap: 8px; background: var(--red-btn); border: 0; border-radius: 999px; padding: calc(.62 * var(--u) + 2.5px) calc(1.67 * var(--u) + 2.5px); transition: background .15s; }
.app:hover { color: var(--ink) !important; background: #e5654d; }

/* headline + call to action: ~46px serif (3.2u) in a centred column over the empty wall, like charity: water; centred in whatever room is left of the photo */
.copy { position: absolute; z-index: 2; left: calc(3 * var(--u) + (100vw - 100 * var(--u)) / 2); top: calc(13 * var(--u)); width: calc(37 * var(--u)); text-align: center; }
h1 { font-family: var(--display); margin: 0 0 calc(2.2 * var(--u)); font-size: max(27px, calc(3.4 * var(--u) * var(--ds))); line-height: 1.13; text-wrap: balance; letter-spacing: var(--dls); font-weight: var(--dw); }
.hl { position: relative; display: inline-block; color: var(--red-deep); }
.hl svg { position: absolute; left: 0; bottom: -.12em; width: 100%; height: .22em; color: var(--blue); }
.cta { display: inline-block; background: var(--red-btn); border: 0; border-radius: 16px 20px 14px 19px / 19px 14px 20px 16px; padding: calc(1.05 * var(--u) + 3px) calc(2.1 * var(--u) + 3px); font-size: max(16px, calc(1.33 * var(--u))); font-weight: var(--bwx); transition: background .15s; }
.cta:hover { background: #e5654d; }

/* ---------- page 2: the problem ---------- */
/* boxes are placed in the connector's own 1100×480 coordinate space (percentages), so the scribbled line always meets them */
.problem { background: var(--blue); min-height: calc(62.5 * var(--u)); padding: calc(8 * var(--u)) 4vw calc(3.5 * var(--u)); display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: calc(3 * var(--u)); }
.stats { position: relative; width: min(calc(94 * var(--u)), 100%); aspect-ratio: 1100 / 480; }
.link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stat { position: absolute; z-index: 1; background: var(--beige); border: 3px solid var(--ink); border-radius: 18px 22px 16px 21px / 21px 16px 22px 18px; padding: calc(1.8 * var(--u)) calc(2.7 * var(--u)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .4em; }
.stat strong { font-family: var(--display); font-weight: var(--dws); font-size: calc(5.5 * var(--u) * var(--ds)); line-height: 1.05; letter-spacing: var(--dls); color: var(--red-deep); white-space: nowrap; }
.stat span { font-size: calc(2.1 * var(--u)); line-height: 1.22; font-weight: 500; }
.stat-a { left: 2.7%; top: 6%; width: 38%; height: 36%; }
.stat-b { left: 62%; top: 56%; width: 35%; height: 36%; }
/* the closing line: centred, big, filling the bottom of the slide */
.aim { width: 100%; margin: 0; padding: 0; text-align: center; white-space: nowrap; font-family: var(--display); font-size: calc(4.4 * var(--u) * var(--ads, var(--ds))); line-height: 1.1; font-weight: var(--dw); letter-spacing: var(--dls); }

/* ---------- portrait / phone: photo on top, words underneath, sizes follow the width ---------- */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .aim br { display: none; }
  .hero { height: auto; min-height: 0; padding-bottom: 40px; }
  /* crop to the people + tablet (no empty tablecloth/bottle): the stage shows the top 80% of the photo, faded into the page at the bottom */
  .stage { position: relative; top: auto; right: auto; width: 100%; height: auto; aspect-ratio: 1320 / 880; overflow: hidden; margin-top: calc(76px + var(--bar, 0px));
           -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
  .stage .photo, .stage .scribble { inset: 0 auto auto 0; height: auto; aspect-ratio: 1320 / 1080; -webkit-mask-image: none; mask-image: none; }
  .copy { position: relative; left: auto; top: auto; width: auto; text-align: left; padding: 0 6vw; margin-top: 2vw; }
  h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); margin-bottom: 24px; text-wrap: pretty; }
  .cta { font-size: 1.15rem; padding: 17px 31px; }
  .nav { padding: 14px 5vw; background: var(--wall); }   /* solid strip so scrolling content doesn't show between the boxes */
  .box { padding: 10px 16px; white-space: nowrap; font-size: 15px; }
  .logo { font-size: 17px; } .logo img, .logo .logo-mark { width: 30px; height: 30px; }
  .linkgroup { gap: 18px; padding: 6px 6px 6px 18px; }
  .app { padding: 8px 18px; }

  .problem { min-height: 0; display: block; padding: 8vh 6vw 9vh; }
  .stats { width: min(640px, 100%); aspect-ratio: auto; display: grid; gap: 20px; }
  .link { display: none; }
  .stat { position: static; width: auto; height: auto; padding: 22px 26px; }
  .stat strong { font-size: clamp(2.6rem, 8vw, 4rem); }
  .stat span { font-size: clamp(1.05rem, 2.6vw, 1.4rem); }
  .aim { white-space: normal; text-wrap: pretty; width: min(640px, 100%); margin: 6vh auto 0; font-size: clamp(1.95rem, 5.5vw, 3rem); padding: 0; }
  .stats { margin: 0 auto; }
}
@media (max-width: 520px) {
  .linkgroup { gap: 10px; padding: 4px 4px 4px 12px; } .box { font-size: 13px; padding: 8px 10px; }
  .logo span { display: none; } .app { padding: 7px 13px; }
}

/* ======================================================================================================
   Pages 3–5: introducing (beige) → caring (coral) → footer (ink). Same --u scale as the hero, same boxed, hand-drawn-corner look.
   The beige/blue/coral/ink rhythm repeats the hero → problem pairing so the page reads as one piece.
   ====================================================================================================== */
/* smooth anchor jumps only without Lenis (Lenis glides links itself). With Lenis it must stay instant: ScrollTrigger re-measures by jumping
   to the top and back, and a smooth jump left every trigger off by the scroll position whenever it re-measured mid-page (a resize, or coming
   back to a tab whose size changed), which broke the Introducing pin until a reload */
html:not(.lenis) { scroll-behavior: smooth; }
:target, section, footer { scroll-margin-top: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h2 { font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); margin: 0; text-wrap: balance; }
.rv { transition: opacity .7s ease, transform .7s ease; }
.js .rv:not(.in) { opacity: 0; transform: translateY(calc(2 * var(--u))); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { transition: none; } .js .rv:not(.in) { opacity: 1; transform: none; } }

/* ---------- page 3: introducing ---------- */
.product { background: var(--wall); padding: calc(9 * var(--u)) 4vw calc(8 * var(--u)); display: flex; justify-content: center; }
.product-in { width: min(calc(94 * var(--u)), 100%); display: grid; grid-template-columns: minmax(0, 1fr) calc(30 * var(--u)); grid-template-areas: "head head" "dev steps" "fine fine"; column-gap: calc(4.5 * var(--u)); row-gap: calc(3.4 * var(--u)); align-items: center; }
.product .head { grid-area: head; }
.product h2 { font-size: calc(4.4 * var(--u) * var(--ds)); line-height: 1.08; }
.lede { margin: calc(1.3 * var(--u)) 0 0; max-width: 34em; font-size: max(16px, calc(1.5 * var(--u))); line-height: 1.45; font-weight: 500; }
.dev { grid-area: dev; position: relative; }
.steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; gap: calc(1.2 * var(--u)); }
.fine { grid-area: fine; margin: 0; font-size: max(13px, calc(1.2 * var(--u))); opacity: .75; }



/* numbered steps: the active one opens up (grid-rows 0fr → 1fr) and fills blue, like a selected box in the nav */
.step { width: 100%; display: flex; gap: calc(1.4 * var(--u)); align-items: flex-start; text-align: left; font: inherit; color: inherit; cursor: pointer; background: transparent; border: 3px solid var(--ink); border-radius: 16px 20px 14px 19px / 19px 14px 20px 16px; padding: calc(1.2 * var(--u)) calc(1.6 * var(--u)); transition: background .2s, transform .2s; }
.step:hover { background: rgba(148,193,194,.35); }
.step.on { background: var(--blue); }
.step i { font-style: normal; font-family: var(--display); font-weight: var(--dws); font-size: calc(2.6 * var(--u) * var(--ds)); line-height: 1; color: var(--red-deep); min-width: 1.6em; }
.step.on i { color: var(--ink); }
.step strong { display: block; font-size: max(16px, calc(1.6 * var(--u))); font-weight: var(--bwx); padding-top: .25em; }

/* ---------- page 4: the change starts with caring ---------- */
.care { background: var(--red); min-height: calc(62.5 * var(--u)); padding: calc(9 * var(--u)) 6vw 0; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; position: relative; }
.care-h { font-size: calc(5.6 * var(--u) * var(--ds)); line-height: 1.06; max-width: 15em; }
.hl2 { position: relative; display: inline-block; }
.hl2::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.04em; height: .16em; background: var(--beige); border-radius: 99px; transform: rotate(-.8deg); }
.care-p { margin: calc(1.8 * var(--u)) 0 calc(3 * var(--u)); font-size: max(17px, calc(1.7 * var(--u))); font-weight: 500; max-width: 30em; line-height: 1.4; text-wrap: balance; }
.cta.on-red { background: var(--beige); border: 3px solid var(--ink); padding: calc(1.05 * var(--u)) calc(2.1 * var(--u)); }
.cta.on-red:hover { background: #fff; }
.care-art { width: min(calc(72 * var(--u)), 100%); margin-top: calc(3 * var(--u)); display: block; height: auto; aspect-ratio: 800 / 330; overflow: visible; }
.ink.cream path:nth-child(1) { stroke: var(--beige); stroke-width: 7; }
.ink.cream path:nth-child(2) { stroke: var(--ink); stroke-width: 3.5; opacity: .55; }

/* ---------- page 5: footer ---------- */
.foot { background: var(--ink); color: var(--beige); padding: calc(8 * var(--u)) 4vw calc(3 * var(--u)); }
.foot-in { width: min(calc(94 * var(--u)), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: calc(5 * var(--u)); align-items: start; }
.foot .logo { color: var(--ink); } .f-brand p { margin: calc(1.6 * var(--u)) 0 0; max-width: 20em; font-size: max(15px, calc(1.35 * var(--u))); line-height: 1.5; opacity: .8; }
.foot h3 { margin: 0 0 calc(1.8 * var(--u)); font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); font-size: calc(2.8 * var(--u) * var(--ds)); color: var(--blue); }
.f-col { display: flex; flex-direction: column; align-items: flex-start; gap: calc(1.3 * var(--u)); }
.news { width: 100%; } .news label { display: block; margin-bottom: .6em; font-weight: 700; font-size: max(15px, calc(1.35 * var(--u))); }
.news .row { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; font: inherit; font-size: max(15px, calc(1.3 * var(--u))); padding: calc(.9 * var(--u)) calc(1.3 * var(--u)); color: var(--ink); background: var(--beige); border: 3px solid var(--beige); border-radius: 14px 17px 13px 16px / 16px 13px 17px 14px; }
.news input:focus-visible { outline-color: var(--blue); }
.news button { font: inherit; font-weight: var(--bwx); font-size: max(15px, calc(1.3 * var(--u))); cursor: pointer; color: var(--ink); background: var(--red-btn); border: 0; border-radius: 14px 17px 13px 16px / 16px 13px 17px 14px; padding: 0 calc(1.7 * var(--u)); transition: background .15s; } .news button:hover { background: #e5654d; }
.flink { font-weight: 700; font-size: max(16px, calc(1.6 * var(--u))); padding-bottom: 3px; border-bottom: 3px solid var(--red); transition: color .15s, border-color .15s; } .flink:hover { color: var(--blue); border-color: var(--blue); }
.foot :focus-visible { outline-color: var(--blue); }
.legal { width: min(calc(94 * var(--u)), 100%); margin: calc(6 * var(--u)) auto 0; padding-top: calc(2 * var(--u)); border-top: 2px solid rgba(240,235,225,.2); font-size: max(12px, calc(1 * var(--u))); opacity: .65; line-height: 1.5; }
.legal a { text-decoration: underline; }

/* ---------- pages 3–5, portrait / phone ---------- */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .product { padding: 9vh 6vw 9vh; }
  .product-in { grid-template-columns: 1fr; grid-template-areas: "head" "dev" "steps" "fine"; row-gap: 32px; }
  .product h2 { font-size: clamp(2.2rem, 7vw, 3.4rem); } .lede { font-size: 1.1rem; }
  .step { padding: 16px 18px; gap: 14px; } .step i { font-size: 2rem; } .step strong { font-size: 1.15rem; } .step p { font-size: 1rem; }
  .fine { font-size: .9rem; }
  .care { min-height: 0; padding: 10vh 6vw 0; } .care-h { font-size: clamp(2.4rem, 9vw, 4rem); } .care-p { font-size: 1.15rem; margin: 18px 0 26px; }
  .cta.on-red { font-size: 1.15rem; padding: 17px 31px; } .care-art { margin-top: 7vh; width: 130%; }
  .foot { padding: 9vh 6vw 32px; } .foot-in { grid-template-columns: 1fr; gap: 40px; }
  .foot h3 { font-size: 2rem; } .f-brand p, .news label, .news input, .news button { font-size: 1.05rem; } .flink { font-size: 1.2rem; }
  .news button { padding: 14px 20px; } .legal { margin-top: 48px; font-size: .8rem; }
}

@media (max-width: 520px) { .foot .logo span { display: inline; } }

/* ======================================================================================================
   Refinements: one tactile system for everything you press. Ink outline + a flat ink "edge" underneath, so a button looks like a
   physical key: it lifts on hover, sinks on press. Same language as the nav boxes and stat cards, so nothing feels bolted on.
   ====================================================================================================== */
:root { --edge: 0 4px 0 var(--ink); --edge-hover: 0 6px 0 var(--ink); --edge-press: 0 1px 0 var(--ink); }
.cta, .arrow, .step, .news button, .box { transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }

/* primary buttons */
.cta { display: inline-flex; align-items: center; gap: .6em; border: 2.5px solid var(--ink); box-shadow: var(--edge); }
.cta .ico { flex: none; transition: transform .2s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: var(--edge-hover); }
.cta:hover .ico { transform: translateX(3px); }
.cta:active { transform: translateY(3px); box-shadow: var(--edge-press); }
.cta.on-red { box-shadow: var(--edge); }

/* nav: the boxes get the same edge; links grow a hand-drawn underline instead of just changing colour */
.box { box-shadow: 0 3px 0 var(--ink); }
.linkgroup a:not(.app) { position: relative; padding: .35em 0; }
.linkgroup a:not(.app)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.linkgroup a:not(.app):hover::after, .linkgroup a:not(.app):focus-visible::after { transform: scaleX(1); }
.app { box-shadow: inset 0 0 0 2px var(--ink), 0 3px 0 var(--ink); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.app:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--ink), 0 4px 0 var(--ink); }
.app:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--ink), 0 1px 0 var(--ink); }
.app svg { transition: transform .2s ease; } .app:hover svg { transform: translate(2px, -2px); }

/* stat cards and step cards: a little depth, same ink edge */
.stat { box-shadow: 6px 7px 0 rgba(43,45,49,.88); }
.step { box-shadow: 0 3px 0 var(--ink); }
.step:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.step.on { box-shadow: 0 4px 0 var(--ink); }

/* carousel arrows */

/* footer form: tall, clear fields; button on the dark footer uses a deeper coral for its edge */
.news input { border-width: 2px; transition: box-shadow .15s; }
.news input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.news button { box-shadow: 0 4px 0 #a8452f; }
.news button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #a8452f; }
.news button:active { transform: translateY(3px); box-shadow: 0 1px 0 #a8452f; }
.flink { transition: color .15s, border-color .15s, padding .15s; }

/* Section changes are long, eased colour fades instead of cuts: each section opens in the previous section's colour and dissolves into its own over
   --blend. The hero's photo first fades into the wall colour so the photo → blue change has no hard line either. Content sits above the fade (z-index -1
   inside an isolated stacking context) and every section's top padding is ≥ --blend, so no text ever sits in the half-way colours. */
:root { --blend: max(calc(12 * var(--u)), 10vh); }
.problem, .product, .care, .foot { position: relative; isolation: isolate; }
.problem { --from: var(--wall); --to: var(--blue); }
.product { --from: var(--blue); --to: var(--wall); }
.care    { --from: var(--wall); --to: var(--red); overflow: hidden; }
.foot    { --from: var(--red);  --to: var(--ink); }
.problem::before, .product::before, .care::before, .foot::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: var(--blend); min-height: 64px; pointer-events: none;
  background: linear-gradient(to bottom, var(--from) 0%,
    color-mix(in srgb, var(--from) 94%, var(--to)) 12%, color-mix(in srgb, var(--from) 80%, var(--to)) 25%, color-mix(in srgb, var(--from) 62%, var(--to)) 38%,
    color-mix(in srgb, var(--from) 38%, var(--to)) 62%, color-mix(in srgb, var(--from) 20%, var(--to)) 75%, color-mix(in srgb, var(--from) 6%, var(--to)) 88%, var(--to) 100%);
}
.hero::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: calc(12 * var(--u)); min-height: 80px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(240,235,225,0) 0%, rgba(240,235,225,.08) 20%, rgba(240,235,225,.3) 45%, rgba(240,235,225,.62) 68%, rgba(240,235,225,.88) 86%, var(--wall) 100%); }
@media (prefers-reduced-motion: reduce) { .cta, .arrow, .step, .news button, .box, .cta .ico, .app, .app svg, .linkgroup a::after { transition: none; } }
/* the figure's shoulders dissolve into the coral instead of being sliced off at the section edge */
.care-art { -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%); mask-image: linear-gradient(to bottom, #000 76%, transparent 100%); }

/* the fades are long, so each section starts its content below most of its fade (the last stretch of a fade is already the section's own colour) */
@media (min-width: 861px) and (min-aspect-ratio: 1/1) { .problem { padding-top: calc(10 * var(--u)); } .product { padding-top: calc(11 * var(--u)); } .care { padding-top: calc(11 * var(--u)); } .foot { padding-top: calc(14 * var(--u)); } }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .problem { padding-top: 11vh; } .product { padding-top: 11vh; } .care { padding-top: 11vh; } .foot { padding-top: 15vh; } }

/* ======================================================================================================
   Professional refinements on the ORIGINAL palette (beige, soft blue, coral, charcoal). Colours are exactly as before; what changed is structure and type:
   bigger/tighter headlines, a marker underline on "communicate", the two stats set as large type under a rule instead of boxes + a connector line,
   a solid coral action band instead of the illustration, and the hand-drawn touch kept in one place only (the outlines around the two people).
   ====================================================================================================== */
/* section fades blend in oklab, so beige → blue → beige → coral → charcoal stay clean (no muddy midpoints) */
.problem::before, .product::before, .care::before, .foot::before { background: linear-gradient(to bottom, var(--from) 0%,
  color-mix(in oklab, var(--from) 94%, var(--to)) 12%, color-mix(in oklab, var(--from) 80%, var(--to)) 25%, color-mix(in oklab, var(--from) 62%, var(--to)) 38%,
  color-mix(in oklab, var(--from) 38%, var(--to)) 62%, color-mix(in oklab, var(--from) 20%, var(--to)) 75%, color-mix(in oklab, var(--from) 6%, var(--to)) 88%, var(--to) 100%); }

/* hero: bigger, tighter headline; "communicate" gets a coral marker underline instead of a scribbled blue one */
.hl { color: inherit; z-index: 0; }
.hl svg { z-index: -1; height: .38em; bottom: -.04em; color: var(--red); opacity: .9; }
h1, h2, .aim { letter-spacing: -.028em; }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .copy { width: calc(38 * var(--u)); left: calc(3.2 * var(--u) + (100vw - 100 * var(--u)) / 2); }
  h1 { font-size: max(30px, calc(3.45 * var(--u) * var(--ds))); line-height: 1.05; font-weight: 600; }
  .product h2 { font-size: calc(5.2 * var(--u) * var(--ds)); line-height: 1.02; }

  /* problem: the v1 boxes + hand-drawn connector, with black numbers instead of red */
  .problem { min-height: 0; padding-bottom: calc(8 * var(--u)); gap: calc(7 * var(--u)); justify-content: flex-start; }
}
.problem .aim { max-width: 22em; }

/* closing band: solid coral with a big headline and one button */
.care { min-height: 0; padding: calc(11 * var(--u)) 6vw calc(8 * var(--u)); }
.care-h { font-size: calc(6.6 * var(--u) * var(--ds)); line-height: 1.02; }
.care-p { font-size: max(18px, calc(1.9 * var(--u))); margin-bottom: calc(3.4 * var(--u)); }

@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  h1 { font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.05; font-weight: 600; }
  .care { padding: 12vh 6vw 13vh; } .care-h { font-size: clamp(2.6rem, 10vw, 4.4rem); }
}

/* stats: v1 boxes, black text, no colour accent */
.stat strong { color: var(--ink); }
#connector.coral path, #connector path { stroke: var(--ink); }

/* ======================================================================================================
   v3: ideas borrowed from radiatinghope.org, in our own colours. One huge mission sentence, a paragraph that reads in as you scroll,
   three "ways to help" cards (illustrated, since we have no photos yet), one signature feature, and a real sign-up on the page.
   ====================================================================================================== */
.kicker { margin: 0 0 calc(2 * var(--u)); font-size: max(13px, calc(1.2 * var(--u))); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-deep); }

/* the mission, as one very large sentence */
.mission { background: var(--wall); padding: calc(8 * var(--u)) 6vw calc(9 * var(--u)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.mission-t { margin: 0; max-width: 17em; font-family: var(--display); font-weight: var(--dw); letter-spacing: -.028em; font-size: calc(5.6 * var(--u) * var(--ds)); line-height: 1.06; text-wrap: balance; }

/* what it is: label left, large paragraph right, words go grey → black on scroll */
.story { background: var(--wall); padding: calc(6 * var(--u)) 4vw calc(11 * var(--u)); width: 100%; display: grid; grid-template-columns: calc(94 * var(--u) * .3) minmax(0, 1fr); column-gap: calc(3 * var(--u)); justify-content: center; align-items: start; }
.story { padding-left: max(4vw, calc((100vw - 94 * var(--u)) / 2)); padding-right: max(4vw, calc((100vw - 94 * var(--u)) / 2)); }
.reveal-text { margin: 0; max-width: 24em; font-family: var(--display); font-weight: var(--dw); font-size: calc(3.3 * var(--u) * var(--ds)); line-height: 1.22; letter-spacing: -.015em; }
.js .reveal-text span { opacity: .22; }

/* ways to help: three tall cards, Fitzgerald colours, one big picture each */
.ways { background: var(--wall); padding: 0 4vw calc(10 * var(--u)); display: flex; justify-content: center; }
.ways-in { width: min(calc(94 * var(--u)), 100%); }
.ways-head { display: grid; grid-template-columns: calc(94 * var(--u) * .3 + 3 * var(--u)) 1fr; align-items: end; margin-bottom: calc(4 * var(--u)); }
.ways-head h2 { font-size: calc(4.2 * var(--u) * var(--ds)); line-height: 1.05; }
.ways-head p { margin: 0; max-width: 24em; font-size: max(17px, calc(1.7 * var(--u))); line-height: 1.45; font-weight: 500; }
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(2.2 * var(--u)); }
.way { position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 5; padding: calc(2.2 * var(--u)); border: 3px solid var(--ink); border-radius: 20px 24px 18px 23px / 23px 18px 24px 20px; box-shadow: 6px 7px 0 rgba(43,45,49,.88); transition: transform .15s ease, box-shadow .15s ease; }
.way:hover { transform: translate(-2px, -3px); box-shadow: 8px 10px 0 rgba(43,45,49,.88); }
.way:active { transform: translate(5px, 6px); box-shadow: 1px 1px 0 rgba(43,45,49,.88); }
.w-green { background: #D9F2D0; } .w-orange { background: #FFE3C2; } .w-blue { background: #D6E8FB; }
.way h3 { margin: 0; font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); font-size: calc(3 * var(--u) * var(--ds)); line-height: 1.05; }
.way img { flex: 1; min-height: 0; width: 70%; margin: calc(1.5 * var(--u)) auto; object-fit: contain; }
.way .more { display: flex; justify-content: space-between; align-items: center; background: var(--beige); border: 3px solid var(--ink); border-radius: 12px 15px 11px 14px / 14px 11px 15px 12px; padding: calc(1 * var(--u)) calc(1.5 * var(--u)); font-weight: var(--bwx); font-size: max(15px, calc(1.4 * var(--u))); }
.way .more i { font-style: normal; }

/* the signature feature, in a rounded blue panel */
.own { background: var(--wall); padding: 0 4vw calc(11 * var(--u)); display: flex; justify-content: center; }
.own-in { width: min(calc(94 * var(--u)), 100%); background: var(--blue); border: 3px solid var(--ink); border-radius: 26px 30px 24px 29px / 29px 24px 30px 26px; box-shadow: 8px 9px 0 rgba(43,45,49,.88); padding: calc(6 * var(--u)); display: grid; grid-template-columns: 1.05fr 1fr; gap: calc(5 * var(--u)); align-items: center; }
.own h2 { font-size: calc(4.4 * var(--u) * var(--ds)); line-height: 1.05; }
.own-copy p:not(.kicker) { margin: calc(1.6 * var(--u)) 0 calc(2.6 * var(--u)); max-width: 28em; font-size: max(16px, calc(1.6 * var(--u))); line-height: 1.5; font-weight: 500; }
.own .kicker { color: var(--ink); opacity: .7; }
.own-cards { display: grid; grid-template-columns: 1fr 1fr; gap: calc(1.6 * var(--u)); }
.oc { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; padding: calc(1.2 * var(--u)); border: 3px solid rgba(43,45,49,.65); border-radius: 18px; font-weight: 800; font-size: max(15px, calc(1.8 * var(--u))); }
.oc img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.oc.topic { background: #FFE3C2; } .oc.feeling { background: #D6E8FB; } .oc.core { background: #FCD9E5; }
.oc.add { background: transparent; border: 3px dashed var(--ink); } .oc.add b { font-size: calc(5 * var(--u)); line-height: 1; font-weight: 500; }

/* closing band: message left, working sign-up card right */
.care { display: grid; grid-template-columns: 1fr minmax(0, calc(40 * var(--u))); gap: calc(7 * var(--u)); align-items: center; justify-content: center; text-align: left; padding: calc(10 * var(--u)) max(5vw, calc((100vw - 94 * var(--u)) / 2)) calc(10 * var(--u)); }
.care-l { display: flex; flex-direction: column; align-items: flex-start; }
.care-h { max-width: 9em; }
.join { background: var(--beige); border: 3px solid var(--ink); border-radius: 22px 26px 20px 25px / 25px 20px 26px 22px; box-shadow: 7px 8px 0 rgba(43,45,49,.88); padding: calc(2.4 * var(--u)); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: rgba(43,45,49,.08); border-radius: 14px; margin-bottom: calc(2 * var(--u)); }
.tab { font: inherit; font-weight: var(--bwx); font-size: max(15px, calc(1.35 * var(--u))); padding: calc(.9 * var(--u)) 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s; }
.tab.on { background: #fff; box-shadow: 0 1px 0 rgba(43,45,49,.25), 0 0 0 2px var(--ink); }
.jform[hidden] { display: none; }
.jform { display: flex; flex-direction: column; }
.jform p { margin: 0 0 calc(1.6 * var(--u)); font-size: max(15px, calc(1.4 * var(--u))); line-height: 1.45; font-weight: 500; }
.jform label { font-weight: 700; font-size: max(14px, calc(1.2 * var(--u))); margin: calc(.6 * var(--u)) 0 .35em; }
.jform input, .jform textarea { font: inherit; font-size: max(16px, calc(1.4 * var(--u))); padding: calc(1 * var(--u)) calc(1.3 * var(--u)); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 12px; resize: vertical; }
.jform .cta { align-self: flex-start; margin-top: calc(2 * var(--u)); cursor: pointer; font-family: inherit; }

/* footer: four columns */
.foot-in { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: calc(4 * var(--u)); }
.f-col .flink { font-size: max(15px, calc(1.4 * var(--u))); font-weight: 600; border-bottom-width: 2px; }
.foot h3 { font-size: calc(2.4 * var(--u) * var(--ds)); }

@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .mission { padding: 9vh 6vw 10vh; } .mission-t { font-size: clamp(2.3rem, 9vw, 4rem); }
  .story { display: block; padding: 4vh 6vw 10vh; } .kicker { font-size: .8rem; margin-bottom: 14px; }
  .reveal-text { font-size: clamp(1.6rem, 6.2vw, 2.6rem); }
  .ways { padding: 0 6vw 10vh; } .ways-head { display: block; } .ways-head h2 { font-size: clamp(2.3rem, 9vw, 3.6rem); margin-bottom: 14px; } .ways-head p { font-size: 1.1rem; }
  .ways-grid { grid-template-columns: 1fr; gap: 22px; } .way { aspect-ratio: auto; min-height: 320px; padding: 22px; } .way h3 { font-size: 2rem; } .way img { width: 46%; max-height: 180px; margin: 18px auto; } .way .more { font-size: 1.05rem; padding: 14px 18px; }
  .own { padding: 0 6vw 10vh; } .own-in { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; } .own h2 { font-size: clamp(2.2rem, 8.5vw, 3.4rem); } .own-copy p:not(.kicker) { font-size: 1.1rem; }
  .oc { font-size: 1rem; } .oc.add b { font-size: 2.6rem; }
  .care { display: block; padding: 11vh 6vw 11vh; } .care-h { max-width: 11em; } .join { margin-top: 36px; padding: 20px; }
  .tab { font-size: 1rem; padding: 12px 0; } .jform p, .jform label { font-size: 1rem; } .jform input, .jform textarea { font-size: 1rem; padding: 13px 14px; } .jform .cta { font-size: 1.1rem; padding: 15px 26px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 36px 24px; } .f-brand { grid-column: 1 / -1; } .f-col .flink { font-size: 1.05rem; } .foot h3 { font-size: 1.7rem; }
}


/* ======================================================================================================
   v3 "premium" layer. What radiatinghope.org does differently, applied here:
   1. Inertia scrolling (Lenis, lerp .1) so the page has weight; in-page links glide the same way.
   2. Motion is slow and decelerating: 1–1.6 s with a strong ease-out, instead of quick .7 s fades. Headings reveal line by line from behind a mask.
   3. Restraint: hairline edges and soft diffuse shadows instead of thick ink outlines and hard offset shadows; lighter type weights; roomier spacing.
   ====================================================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
:root {
  --ease: cubic-bezier(.16, 1, .3, 1);          /* strong ease-out (≈ GSAP power4.out / expo.out) */
  --bwx: 600; --bw: 500; --dws: 500;             /* lighter weights: 800 → 600, 700 → 500 */
  --hair: 1px solid rgba(43,45,49,.16);
  --soft: 0 1px 2px rgba(43,45,49,.05), 0 14px 34px -14px rgba(43,45,49,.28);
  --soft-up: 0 2px 4px rgba(43,45,49,.06), 0 22px 44px -16px rgba(43,45,49,.34);
}

/* entrance: page loads in with a slow settle, then scroll reveals are long and soft */
@keyframes settle { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.rv { transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.js .rv:not(.in) { transform: translateY(46px); }
.ways-grid .way:nth-child(2) { transition-delay: .12s; } .ways-grid .way:nth-child(3) { transition-delay: .24s; }
.own-in.rv:not(.in) { transform: translateY(70px) scale(.985); }

/* masked line reveal */
.split .ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.split .li { display: block; }
.js .split .li { transform: translateY(115%); transition: transform 1.2s var(--ease) calc(var(--i) * .11s); }
.js .split.in .li { transform: none; }
.js .split.instant .li { transition: none; }
@media (prefers-reduced-motion: reduce) { .js .split .li { transform: none; transition: none; } }

/* restraint: hairline edges, soft shadows, one consistent radius */
.way, .own-in, .join, .stat { border: var(--hair); border-radius: 22px; box-shadow: var(--soft); }
.stat, .step { border-width: 1px; border-color: rgba(43,45,49,.22); border-radius: 22px; }
.step { box-shadow: none; }
.own-in { box-shadow: var(--soft-up); }
.way { transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.way:hover { transform: translateY(-6px); box-shadow: var(--soft-up); }
.way:active { transform: translateY(-2px); }
.way img { transition: transform 1s var(--ease); } .way:hover img { transform: scale(1.06); }
.way .more { border: 0; background: rgba(255,255,255,.7); border-radius: 14px; font-weight: 600; transition: background .4s var(--ease); } .way:hover .more { background: #fff; }
.way h3, .own h2, .ways-head h2, .mission-t, .reveal-text, .care-h, .product h2 { font-weight: 450; }
.oc { border: var(--hair); border-radius: 18px; } .oc.add { border: 1.5px dashed rgba(43,45,49,.55); }
.tab.on { box-shadow: 0 1px 3px rgba(43,45,49,.18); } .tabs { border-radius: 14px; }
.jform input, .jform textarea { border: 1px solid rgba(43,45,49,.3); border-radius: 12px; transition: border-color .3s, box-shadow .3s; }
.jform input:focus, .jform textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(148,193,194,.5); }

/* buttons: flat and plain. A solid fill, a fixed radius, no glow, no gradient, no hard edge; hover just darkens and nudges the arrow */
.cta, .cta.on-red { border: 0; border-radius: 10px; box-shadow: none; font-weight: 600; letter-spacing: 0; transform: none; transition: background .25s ease, color .25s ease; }
.cta:hover, .cta.on-red:hover, .cta:active, .cta.on-red:active { transform: none; box-shadow: none; }
.cta { background: var(--ink); color: var(--beige); }
.cta:hover { background: #000; }
.cta.on-red { background: var(--ink); color: var(--beige); } .cta.on-red:hover { background: #000; }
.cta .ico { transition: transform .35s var(--ease); } .cta:hover .ico { transform: translateX(4px); }
.box { border: var(--hair); border-radius: 16px; box-shadow: 0 6px 22px -10px rgba(43,45,49,.3); }
.logo.box { border-radius: 16px; }
.app { box-shadow: none; border-radius: 10px; font-weight: 600; transition: background .25s ease; } .app:hover { transform: none; box-shadow: none; background: #e5654d; } .app:active { transform: none; box-shadow: none; }

/* more air */
.kicker { font-weight: 600; color: rgba(43,45,49,.6); letter-spacing: .14em; }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .mission { padding: calc(11 * var(--u)) 6vw calc(12 * var(--u)); }
  .mission-t { letter-spacing: -.034em; line-height: 1.04; }
  .story { padding-top: calc(8 * var(--u)); padding-bottom: calc(15 * var(--u)); }
  .ways { padding-bottom: calc(15 * var(--u)); } .own { padding-bottom: calc(15 * var(--u)); }
  .ways-head { margin-bottom: calc(5.5 * var(--u)); } .ways-grid { gap: calc(2.6 * var(--u)); }
  .care { padding-top: calc(12 * var(--u)); padding-bottom: calc(12 * var(--u)); }
}
.foot-in { border-bottom: 0; } .legal { border-top: 1px solid rgba(240,235,225,.16); }
/* the hand-drawn connector: a finer line to match the lighter cards */
#connector path:nth-child(1) { stroke-width: 4; } #connector path:nth-child(2) { stroke-width: 2; opacity: .5; }
.outline-left, #outline-left path:nth-child(1), #outline-right path:nth-child(1) { stroke-width: 5; }

/* ======================================================================================================
   Minimal pass: no labels, no boxed cards, no panel around the feature; hairlines and space do the separating.
   ====================================================================================================== */
.way { display: block; aspect-ratio: auto; min-height: 0; padding: calc(2.6 * var(--u)) 0 0; background: none !important; border: 0; border-top: 1px solid rgba(43,45,49,.28); border-radius: 0; box-shadow: none; transition: border-color .4s ease; }
.way:hover, .way:active { transform: none; box-shadow: none; border-top-color: var(--ink); }
.way h3 { font-size: calc(3 * var(--u) * var(--ds)); margin: 0 0 calc(1.2 * var(--u)); }
.way p { margin: 0 0 calc(2.4 * var(--u)); max-width: 19em; font-size: max(16px, calc(1.5 * var(--u))); line-height: 1.5; font-weight: 450; opacity: .8; }
.ways-grid { gap: calc(4 * var(--u)); }
.own-in { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.own-in.rv:not(.in) { transform: translateY(46px); }
.join { box-shadow: none; }
.stat { box-shadow: 0 10px 26px -14px rgba(43,45,49,.3); }

/* ======================================================================================================
   Button system (one definition; everything else defers to it).
   From the research on button UI: one filled primary per view and the accent colour reserved for actions; a quieter outline secondary;
   a ≥44px target with padding about twice as wide as tall; sentence-case, verb-led labels at 16px/600; text contrast ≥4.5:1 in every state;
   all of hover / focus-visible / pressed designed; a radius that matches the rest of the system; no decorative shadow or gloss.
   ====================================================================================================== */
:root { --btn-h: max(52px, calc(3.9 * var(--u))); --btn-r: 999px; }
.cta, .cta.on-red, .jform .cta, .app {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: var(--btn-h); padding: 0 1.75em;
  font: 600 max(17px, calc(1.25 * var(--u)))/1 var(--font); letter-spacing: 0; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--btn-r); box-shadow: none; transform: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
/* primary: coral fill, charcoal text (4.9:1) */
.cta, .jform .cta, .app { background: var(--red-btn); color: var(--ink); }
.cta:hover, .jform .cta:hover, .app:hover { background: #e2634b; color: var(--ink); transform: none; box-shadow: none; }
/* on the coral band the primary inverts: charcoal fill, cream text */
.cta.on-red { background: var(--ink); color: var(--beige); border-color: var(--ink); }
.cta.on-red:hover { background: #000; border-color: #000; }
/* pressed: a tiny, quick sink, nothing more */
.cta:active, .cta.on-red:active, .jform .cta:active, .app:active { transform: scale(.98); box-shadow: none; }
/* keyboard focus: a clear ring, offset so it never touches the label */
.cta:focus-visible, .app:focus-visible, .tab:focus-visible, .tlink:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cta .ico, .app svg { flex: none; width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.cta:hover .ico, .app:hover svg { transform: translateX(3px); }
/* nav button: same style, compact (still ≥ 40px) */
.app { min-height: 42px; padding: 0 1.25em; font-size: 15px; }
/* secondary: outline, fills on hover */
.cta.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.cta.secondary:hover { background: var(--ink); color: var(--beige); }
/* tertiary: an underlined text link with an arrow */
.tlink { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: max(16px, calc(1.45 * var(--u))); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .32em; }
.tlink i { font-style: normal; transition: transform .3s var(--ease); } .way:hover .tlink i, .tlink:hover i { transform: translateX(4px); }
/* the form tabs and carousel arrows follow the same quiet language */
.tab { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .cta, .app, .tlink i, .cta .ico { transition: none; } }

@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .cta, .cta.on-red, .jform .cta { min-height: 52px; font-size: 16px; padding: 0 1.75em; }
  .app { min-height: 40px; padding: 0 1em; font-size: 14px; }
  .way { padding-top: 22px; } .way h3 { font-size: 1.9rem; } .way p { font-size: 1.05rem; margin-bottom: 18px; }
  .ways-grid { gap: 34px; } .own-in { padding: 0; }
}


/* ======================================================================================================
   Load intro, a copy of radiatinghope.org's timeline (their GSAP code, same durations / delays / eases; driven by site.js):
   a rectangle (40% of the screen each way, so wider than tall) climbs up from below the bottom edge, and opens to the full photo while it settles from 1.5x,
   then the headline lines slide up (0.2 s apart), then the button, with the nav fading in between. Start states below.
   ====================================================================================================== */
.intro .hero { opacity: 0; }
.intro .mask { clip-path: polygon(30% 30%, 70% 30%, 70% 70%, 30% 70%); transform: translateY(100%) scaleY(2); }
.intro .stage > * { transform: scale(1.5); }
.intro .nav, .intro .copy .cta { opacity: 0; }
.intro .hi { transform: translateY(120%); }
.intro .hl svg { opacity: 0; }
.hm { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .2em; margin: -.1em 0 -.2em; }
.hi { display: inline-block; will-change: transform; }


/* ======================================================================================================
   Hero recomposed: headline centred on top, the two people centred below it, and no visible photo edges.
   - mix-blend-mode: darken against the page colour turns the (brightened) white wall and tablecloth into exactly the page beige,
     so only the people remain; a soft oval mask then removes the chair, bottle and folder at the edges.
   ====================================================================================================== */
.mask { position: absolute; inset: 0; background: var(--wall); }
.stage > * { transform-origin: 47% 36%; }
.photo {
  filter: sepia(.08) saturate(1.06) brightness(1.13) contrast(1.02);
  mix-blend-mode: normal;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 47% 46%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 47% 46%, #000 52%, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add;
}
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .stage { top: calc(24 * var(--u)); height: calc(56 * var(--u)); right: auto; left: calc(50% - 36.2 * var(--u)); }
  .copy { left: calc(50% - 42 * var(--u)); top: calc(9.2 * var(--u)); width: calc(84 * var(--u)); }
  h1 { font-size: max(32px, calc(4.3 * var(--u) * var(--ds))); line-height: 1.05; margin-bottom: calc(2.4 * var(--u)); }
}

@media (max-width: 860px), (max-aspect-ratio: 1/1) { .mask { position: relative; display: flow-root; } }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .stage { background: var(--wall); } }   /* the portrait stage is masked (own stacking context), so it needs its own beige backdrop for the blend */


/* ======================================================================================================
   Hero v4: the photo IS the first screen. References (charity: water, radiating hope, pencils of promise): one large close-up of a face, full-bleed,
   the headline set into the picture over a soft fade, at most two buttons. The photo's own light wall stays; a charcoal fade rises from the bottom.
   ====================================================================================================== */
.hero { --hh: min(100svh, calc(62.5 * var(--u))); --sh: max(var(--hh), 94vw); background: var(--wall); }
.mask { background: transparent; }
.stage { background: none; }
.stage .photo { filter: saturate(1.04) contrast(1.03); mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }
.shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(22,24,28,.88) 0%, rgba(22,24,28,.62) 24%, rgba(22,24,28,.18) 52%, rgba(22,24,28,0) 70%),
              linear-gradient(to right, rgba(22,24,28,.38) 0%, rgba(22,24,28,0) 55%); }
.hero::after { display: none; }
.copy { color: #fff; text-align: left; }
.hl { color: #fff; } .hl svg { color: var(--red); opacity: 1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta.secondary.on-dark { color: #fff; border-color: rgba(255,255,255,.75); background: transparent; }
.cta.secondary.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .nav .box { background: rgba(250,247,240,.92); }

@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  /* faces ≈ 58% across and 38% down; stage is at least as wide as the screen (left edge never shows) */
  .stage { height: var(--sh); width: calc(var(--sh) * 1.2222); right: auto; left: calc(54% - .47 * 1.2222 * var(--sh));
           top: min(0px, max(calc(.41 * var(--hh) - .36 * var(--sh)), calc(var(--hh) - var(--sh)))); }
  .copy { left: calc(4vw + (100vw - 100 * var(--u)) / 2 * 0); right: auto; top: auto; bottom: calc(5 * var(--u)); width: min(calc(52 * var(--u)), 90vw); text-align: left; }
  h1 { font-size: max(32px, calc(4.1 * var(--u) * var(--ds))); line-height: 1.04; margin-bottom: calc(3 * var(--u)); letter-spacing: -.03em; font-weight: 500; }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .hero { --hh: max(560px, min(100svh, 165vw)); height: var(--hh); min-height: 0; padding-bottom: 0; --sh: var(--hh); }
  .mask { position: absolute; inset: 0; }
  .stage { position: absolute; margin-top: 0; overflow: visible; height: var(--sh); width: calc(var(--sh) * 1.2222); left: calc(50% - .47 * 1.2222 * var(--sh)); top: 0; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; background: none; }
  .stage .photo, .stage .scribble { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .copy { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; padding: 0 6vw 7vh; margin: 0; text-align: left; }
  h1 { font-size: clamp(2.3rem, 9.2vw, 3.8rem); line-height: 1.05; margin-bottom: 22px; text-wrap: balance; }
  .cta-row .cta { min-height: 50px; padding: 0 1.4em; font-size: 15.5px; }
}

/* the hand-drawn outlines sat on top of the headline once the photo went full-bleed; hidden in the hero for now */


/* ======================================================================================================
   Section structure (more distinct, still one continuous page): hairlines, a roomier "Introducing" start, a text section laid out like
   radiatinghope.org's "Our story": text in the right half, about 47% of the width, 2.5u type, two short paragraphs, revealed word by word.
   ====================================================================================================== */
.copy .hl { color: #fff; } .hl { color: inherit; }
.story, .ways { position: relative; }
.ways::before { content: ''; position: absolute; top: 0; left: max(4vw, calc((100vw - 94 * var(--u)) / 2)); right: max(4vw, calc((100vw - 94 * var(--u)) / 2)); height: 1px; background: rgba(43,45,49,.16); }
.story { display: block; }
.story-t { margin-left: 50%; max-width: 47%; }
.reveal-text { max-width: none; font-size: calc(2.5 * var(--u) * var(--ds)); line-height: 1.24; letter-spacing: -.012em; }
.reveal-text + .reveal-text { margin-top: 1.1em; }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .story { padding-top: calc(11 * var(--u)); padding-bottom: calc(14 * var(--u)); }
  .ways { padding-top: calc(10 * var(--u)); }
  .product { padding-top: calc(19 * var(--u)); }        /* clear of the blue → beige fade (it ends 12u from the top) */
  .problem { padding-bottom: calc(9 * var(--u)); }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .story-t { margin-left: 0; max-width: none; } .story { padding-top: 9vh; padding-bottom: 10vh; }
  .reveal-text { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .ways { padding-top: 9vh; } .product { padding-top: 17vh; }
}

/* while the intro plays, nothing below the hero shows and the page cannot scroll; it fades in once the intro is done */
.hero ~ * { transition: opacity .9s ease; }
html.locked { overflow: hidden; }
html.locked .hero ~ * { opacity: 0; pointer-events: none; }

/* ======================================================================================================
   Hand-drawn outlines, redone as acrylic paint-marker strokes: thick, opaque, round-capped, with a slightly rough edge (SVG displacement) and a thin
   highlight along one side like wet paint. Two flat colours only (coral, warm white), jitter reduced to a slow, small tremble, and the lines fade out
   below the faces so they never run through the headline. They draw themselves on when the intro finishes.
   ====================================================================================================== */
.hero .scribble { display: block; filter: none; }
.hero .scribble g { filter: url(#marker); }
.hero .ink path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero .ink path:nth-child(1) { stroke-width: 10; opacity: .97; }
.hero .ink path:nth-child(2) { stroke: rgba(255,255,255,.42); stroke-width: 2.6; opacity: 1; transform: translate(-2.2px, -2.4px); }
.hero #outline-left path:nth-child(1)  { stroke: #ff8a72; }
.hero #outline-right path:nth-child(1) { stroke: #78bcbe; }
.hero #outline-right path:nth-child(2) { stroke: rgba(255,255,255,.0); }
.hero .scribble { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 36%, transparent 52%); mask-image: linear-gradient(to bottom, #000 0, #000 36%, transparent 52%); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .hero .scribble { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 22%, transparent 36%); mask-image: linear-gradient(to bottom, #000 0, #000 22%, transparent 36%); }
  .hero .ink path:nth-child(1) { stroke-width: 8; }
}

.hero #outline-left path:nth-child(1), .hero #outline-right path:nth-child(1) { stroke-width: 11; }
.hero #outline-left path:nth-child(2) { stroke-width: 3; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .hero #outline-left path:nth-child(1), .hero #outline-right path:nth-child(1) { stroke-width: 9; } }

/* ======================================================================================================
   Hero colour. The grey wall and charcoal fade made the first screen flat; colour now comes from the brand palette, layered over a photo that keeps its
   real skin tones (a warm grade, a soft-light colour glow on the wall, and a brand-colour fade instead of grey). Three options, picked with ?c=1|2|3.
   ====================================================================================================== */
.tint { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shade { z-index: 1; }
/* 1: brand wash. A deep teal fade (the brand blue, darkened) and a faint coral glow top-left */
.c1 .stage .photo { filter: sepia(.12) saturate(1.12) contrast(1.04); }
.c1 .tint { background: radial-gradient(70% 55% at 18% 22%, rgba(240,146,129,.55), rgba(240,146,129,0) 70%); mix-blend-mode: soft-light; }
.c1 .shade { background: linear-gradient(to top, rgba(12,50,56,.92) 0%, rgba(12,50,56,.66) 26%, rgba(12,50,56,.2) 54%, rgba(12,50,56,0) 72%), linear-gradient(to right, rgba(12,50,56,.4) 0%, rgba(12,50,56,0) 55%); }
/* 2: warm glow. The cool grey wall becomes warm cream-peach light, with a coral glow behind the boy and a golden one behind the man; warm-brown fade */
.c2 .stage .photo { filter: sepia(.26) saturate(1.25) contrast(1.05) brightness(1.04) hue-rotate(-6deg); }
.c2 .tint { background: radial-gradient(60% 62% at 22% 30%, rgba(255,150,120,.7), rgba(255,150,120,0) 72%), radial-gradient(52% 58% at 86% 22%, rgba(255,205,140,.65), rgba(255,205,140,0) 70%); mix-blend-mode: soft-light; }
.c2 .shade { background: linear-gradient(to top, rgba(46,26,24,.9) 0%, rgba(46,26,24,.62) 26%, rgba(46,26,24,.16) 54%, rgba(46,26,24,0) 72%), linear-gradient(to right, rgba(46,26,24,.36) 0%, rgba(46,26,24,0) 55%); }
/* 3: split tone. Coral light from the top-left, teal in the shadows at the bottom-right: the two brand colours across the whole frame */
.c3 .stage .photo { filter: saturate(1.12) contrast(1.06); }
.c3 .tint { background: linear-gradient(155deg, rgba(240,146,129,.75) 0%, rgba(240,146,129,.15) 42%, rgba(70,160,170,.5) 100%); mix-blend-mode: soft-light; }
.c3 .shade { background: linear-gradient(to top, rgba(10,46,54,.92) 0%, rgba(10,46,54,.6) 26%, rgba(10,46,54,.14) 54%, rgba(10,46,54,0) 72%), linear-gradient(to right, rgba(10,46,54,.34) 0%, rgba(10,46,54,0) 55%); }


/* "Overview" label on the left, like radiatinghope.org's "Our story": small, plain, level with the first line; and a larger, more prominent reveal text */
.story-label { position: absolute; margin: 0; left: max(4vw, calc((100vw - 94 * var(--u)) / 2)); font-size: max(16px, calc(1.2 * var(--u))); font-weight: 500; letter-spacing: 0; color: var(--ink); }
.reveal-text { font-size: calc(3.3 * var(--u) * var(--ds)); line-height: 1.16; letter-spacing: -.02em; }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .story-label { top: calc(11 * var(--u) + .9 * var(--u)); }
  .story-t { max-width: 48%; }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .story-label { position: static; display: block; margin-bottom: 18px; font-size: 1rem; }
  .reveal-text { font-size: clamp(1.8rem, 7.4vw, 2.7rem); }
}

/* ======================================================================================================
   Buttons v3: darker by default, brighter on hover, and slightly smaller on hover.
   Primary (coral): default deep coral #b23f29 + cream text #fff8ee (5.48:1); hover bright coral #f08a76 + ink text #2b2d31 (5.65:1).
   On the coral band: default near-black #1f2124 + cream text (>14:1); hover cream #fff8ee + ink text (>12:1).
   Secondary outline on the photo: default a dark translucent fill + white text; hover solid white + ink text (>12:1).
   Hover = scale(.97) with a quick ease-out; pressed = scale(.95) so the two states read differently. Reduced motion: no scaling.
   ====================================================================================================== */
.cta, .jform .cta, .linkgroup a.app, .app, .cta.on-red, .cta.secondary.on-dark {
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out, transform .15s ease-out;
}
.cta, .jform .cta, .linkgroup a.app, .app { background: #b23f29; color: #fff8ee; border-color: transparent; }
.cta:hover, .jform .cta:hover, .linkgroup a.app:hover, .app:hover { background: #f08a76; color: #2b2d31 !important; transform: scale(.97); }
.cta:active, .jform .cta:active, .linkgroup a.app:active, .app:active { background: #e8765f; color: #2b2d31 !important; transform: scale(.95); }
/* on the coral band */
.cta.on-red { background: #1f2124; color: #fff8ee; border-color: #1f2124; }
.cta.on-red:hover { background: #fff8ee; color: #2b2d31; border-color: #fff8ee; transform: scale(.97); }
.cta.on-red:active { background: #f1e8d9; color: #2b2d31; border-color: #f1e8d9; transform: scale(.95); }
/* secondary outline over the photo */
.cta.secondary.on-dark { background: rgba(20,22,26,.42); color: #fff; border-color: rgba(255,255,255,.7); }
.cta.secondary.on-dark:hover { background: #fff; color: #2b2d31; border-color: #fff; transform: scale(.97); }
.cta.secondary.on-dark:active { background: #f1e8d9; color: #2b2d31; border-color: #f1e8d9; transform: scale(.95); }
/* keyboard focus keeps its ring on the new colours */
.cta:focus-visible, .app:focus-visible { outline: 2px solid #fff8ee; outline-offset: 3px; box-shadow: 0 0 0 5px #2b2d31; }
@media (prefers-reduced-motion: reduce) {
  .cta, .jform .cta, .linkgroup a.app, .app, .cta.on-red, .cta.secondary.on-dark { transition: background-color .01s, color .01s, border-color .01s; }
  .cta:hover, .cta:active, .jform .cta:hover, .jform .cta:active, .linkgroup a.app:hover, .linkgroup a.app:active, .app:hover, .app:active,
  .cta.on-red:hover, .cta.on-red:active, .cta.secondary.on-dark:hover, .cta.secondary.on-dark:active { transform: none; }
}

/* ======================================================================================================
   No more gradient fades between sections. Instead (from radiating hope's rounded "Prayer Flag" card, DonorsChoose's colour panel, Kiva's contained
   hero card): each colour section is a rounded panel inset from the screen edges and set on the beige page, with plain space around it.
   The panel's edge is clear, so sections read as distinct, but it is soft (rounded, inset) so nothing is abrupt, and no colour is blended.
   ====================================================================================================== */
:root { --gutter: 2.2vw; --panel-r: clamp(22px, 2.6vw, 38px); }
.problem::before, .product::before, .care::before, .foot::before { display: none; }
.hero { border-radius: 0 0 var(--panel-r) var(--panel-r); }
.problem, .care { margin-left: var(--gutter); margin-right: var(--gutter); border-radius: var(--panel-r); }
.foot { margin: var(--gutter) var(--gutter) 0; border-radius: var(--panel-r) var(--panel-r) 0 0; }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .problem { margin-top: calc(var(--gutter) * 1.4); padding-top: calc(8 * var(--u)); padding-bottom: calc(8 * var(--u)); }
  .product { padding-top: calc(13 * var(--u)); }
  .care { padding-top: calc(10 * var(--u)); padding-bottom: calc(10 * var(--u)); }
  .foot { padding-top: calc(8 * var(--u)); }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  :root { --gutter: 3vw; }
  .problem { margin-top: 3vw; padding-top: 8vh; padding-bottom: 8vh; }
  .product { padding-top: 11vh; } .care { padding-top: 9vh; padding-bottom: 9vh; } .foot { padding-top: 8vh; }
}

/* 4 (default): cool glow. The same idea as option 2 but in the brand's blue half: a clear sky-teal light on the wall behind both people and a deep teal-navy fade,
   so the page carries both brand colours (blue in the photo, coral in the buttons and the underline) */
.c4 .stage .photo { filter: saturate(1.14) contrast(1.05) brightness(1.05); }
.c4 .tint { background: radial-gradient(60% 62% at 22% 30%, rgba(110,200,220,.8), rgba(110,200,220,0) 72%), radial-gradient(52% 58% at 86% 22%, rgba(165,222,228,.7), rgba(165,222,228,0) 70%); mix-blend-mode: soft-light; }
.c4 .shade { background: linear-gradient(to top, rgba(9,44,62,.92) 0%, rgba(9,44,62,.64) 26%, rgba(9,44,62,.16) 54%, rgba(9,44,62,0) 72%), linear-gradient(to right, rgba(9,44,62,.38) 0%, rgba(9,44,62,0) 55%); }


/* 5 (default): red-blue (red light on the left, blue on the right, a deep indigo-wine fade). Previously red: The teal/blue overlay is now red: a rose-red light on the boy's side, a soft warm sand light on the man's side and a deep wine fade at the bottom. Earlier "balanced" notes: Red felt too warm and blue too cool, so both move toward the middle and each borrows a little of the other:
   - the photo gets a cool teal-green light on the boy's side and a soft warm sand light on the man's side, so skin stays natural (cool background, warm subject);
   - the blue is the brand teal pushed slightly green (warmer), not sky blue; the fade is a deep slate-teal, not navy;
   - the coral is pulled toward rose (a touch of blue in it), so it sits next to the teal instead of fighting it. */
.c5 .stage .photo { filter: sepia(.1) saturate(1.1) contrast(1.05) brightness(1.04); }
.c5 .tint { background: radial-gradient(60% 62% at 20% 30%, rgba(226,88,92,.72), rgba(226,88,92,0) 72%), radial-gradient(56% 62% at 86% 26%, rgba(70,130,225,.72), rgba(70,130,225,0) 72%); mix-blend-mode: soft-light; }
.c5 .shade { background: linear-gradient(to top, rgba(34,18,52,.92) 0%, rgba(34,18,52,.64) 26%, rgba(34,18,52,.16) 54%, rgba(34,18,52,0) 72%), linear-gradient(to right, rgba(62,16,40,.36) 0%, rgba(62,16,40,0) 55%); }
.cta, .jform .cta, .linkgroup a.app, .app { background: #b0414b; }                       /* rose-red, cream text 5.4:1 */
.cta:hover, .jform .cta:hover, .linkgroup a.app:hover, .app:hover { background: #f29a95; }   /* brighter rose-coral, ink text 7:1 */
.cta:active, .jform .cta:active, .linkgroup a.app:active, .app:active { background: #e9857f; }
.hl svg { color: #f1928c; }


/* ======================================================================================================
   Nav, modelled on radiatinghope.org: logo left, the menu as one clear frosted bar in the middle, the action button on the right; menu text in capitals,
   a little larger and spaced, full-strength ink. Hover keeps the underline and the text colour does not change.
   ====================================================================================================== */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav .logo { justify-self: start; } .nav .app { justify-self: end; }
.nav .linkgroup { padding: 0 calc(2.6 * var(--u)); gap: calc(3 * var(--u)); min-height: 52px; background: rgba(250,247,240,.88); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(43,45,49,.14); border-radius: 14px; }
.hero .nav .linkgroup, .hero .nav .logo { background: rgba(250,247,240,.88); }
.linkgroup a:not(.app) { font-size: max(13px, calc(.98 * var(--u))); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); padding: .5em 0; }
.linkgroup a:hover, .linkgroup a:focus-visible { color: var(--ink); }
.linkgroup a:not(.app)::after { height: 2px; bottom: .1em; background: var(--ink); }
.nav .app { font-size: max(13px, calc(.98 * var(--u))); letter-spacing: .09em; text-transform: uppercase; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .nav { grid-template-columns: auto 1fr auto; gap: 8px; padding: 12px 4vw; }
  .nav .linkgroup { justify-self: center; padding: 0 12px; gap: 12px; min-height: 44px; }
  .linkgroup a:not(.app) { font-size: 11px; letter-spacing: .06em; }
  .nav .app { font-size: 12px; padding: 0 .9em; min-height: 40px; }
}
@media (max-width: 400px) { .nav .linkgroup { gap: 9px; padding: 0 9px; } .linkgroup a:not(.app) { font-size: 10px; letter-spacing: .04em; } }
/* logo box: the box keeps its earlier size (≈195×54 px at 1440 wide = 13.5u × 3.72u); inside it the mark and name sit in the proportions of the
   nav-size logo approved in the "logo moves" demo (mark = 75% of the box height, name = 45%, gap = 17.5%); the leftover width goes to the side padding */
.nav .logo { padding: calc(.465 * var(--u)) calc(1.86 * var(--u)) calc(.465 * var(--u)) calc(1.3 * var(--u)); gap: calc(.651 * var(--u)); font-size: max(16px, calc(1.674 * var(--u))); }
.nav .logo img, .nav .logo .logo-mark { width: max(28px, calc(2.79 * var(--u))); height: max(28px, calc(2.79 * var(--u))); min-width: 0; min-height: 0; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .nav .logo { padding: 5.5px 13px 5.5px 6.5px; gap: 7.7px; font-size: 19.8px; } .nav .logo img, .nav .logo .logo-mark { width: 33px; height: 33px; } }
@media (max-width: 520px) { .nav .logo { padding: 5.5px; } }

/* nav App button: plain, no icon. Solid charcoal with cream capitals; hover lightens it and it shrinks slightly like the other buttons. */
.nav .app { background: #2b2d31; color: #f6f1e7; border: 0; padding: 0 1.4em; gap: 0; box-shadow: none; }
.nav .app:hover { background: #4f5258; color: #fff !important; transform: scale(.97); }
.nav .app:active { background: #5d6067; color: #fff !important; transform: scale(.95); }

/* nav App button: larger and clearer ("OPEN APP"), the same height as the menu bar so the row reads as one piece; still plain charcoal, no icon */
.nav .app { min-height: 52px; padding: 0 calc(2.1 * var(--u)); font-size: max(14px, calc(1.05 * var(--u))); font-weight: 700; letter-spacing: .1em; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .nav .app { min-height: 44px; padding: 0 1.1em; font-size: 12px; } }
@media (max-width: 520px) { .nav .app .more { display: none; } .nav .app { min-height: 42px; } }
.nav .app { gap: .5em; }

/* black outline on the two stat boxes (97 million, 1 in 4) and the three how-it-works steps */
.stat, .step { border: 3px solid #000; }

/* ======================================================================================================
   "Introducing" slide: the three real screen recordings (assets/demo/step1-3.mp4, cropped and retimed from the app) in one plain rounded frame, with a quiet
   control row underneath (arrow, three dashes, arrow) instead of corner buttons. Same 3px ink outline and 22px radius as the stat boxes and the steps.
   ====================================================================================================== */
.dev { display: flex; flex-direction: column; align-items: center; gap: calc(1.8 * var(--u)); min-width: 0; }
.frame { position: relative; width: 100%; aspect-ratio: 1280 / 850; border: 3px solid #000; border-radius: 22px; overflow: hidden; background: #EDE7DD; box-shadow: var(--soft); isolation: isolate; }
.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.clip.on { opacity: 1; }
.ctrl { display: flex; align-items: center; gap: calc(1.6 * var(--u)); }
.arrow { width: calc(3.6 * var(--u)); height: calc(3.6 * var(--u)); min-width: 40px; min-height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(43,45,49,.3); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; box-shadow: none; transition: background .2s, border-color .2s, transform .2s; }
.arrow svg { width: 46%; height: 46%; }
.arrow:hover { background: rgba(255,255,255,.7); border-color: var(--ink); transform: none; box-shadow: none; }
.arrow:active { transform: scale(.94); box-shadow: none; }
.arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dots { display: flex; gap: 8px; }
.dots i { width: calc(2.4 * var(--u)); min-width: 22px; height: 4px; border-radius: 99px; background: rgba(43,45,49,.18); transition: background .3s, width .3s; }
.dots i.on { background: var(--ink); width: calc(4 * var(--u)); min-width: 36px; }
.product-in { align-items: center; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .frame { border-radius: 18px; } .ctrl { gap: 16px; } .arrow { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .clip { transition: none; } .dots i { transition: none; } }
/* ---- the three steps: always open (no expanding), the active one gets a quiet blue wash and a thin progress line that fills as its clip plays ---- */
.steps { align-self: stretch; grid-auto-rows: 1fr; gap: calc(1.1 * var(--u)); }
.steps li { display: flex; min-height: 0; }
.step { position: relative; overflow: hidden; align-items: center; background: transparent; box-shadow: none; transition: background .35s ease, opacity .35s ease; }
.step > div { opacity: .55; transition: opacity .35s ease; }
.step i { opacity: .5; transition: opacity .35s ease; }
.step:hover { background: rgba(148,193,194,.16); }
.step:hover > div, .step:hover i { opacity: .85; }
.step.on { background: rgba(148,193,194,.42); }
.step.on > div, .step.on i { opacity: 1; }
.step p { margin: .4em 0 0; display: block; overflow: visible; max-height: none; opacity: 1; font-size: max(14px, calc(1.25 * var(--u))); line-height: 1.4; font-weight: 500; }
.step strong { padding-top: 0; }
.step::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red-deep); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity .3s; }
.step.on::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .step, .step > div, .step i { transition: none; } }
.product .lede { display: flex; align-items: center; gap: .7em; }
.product .lede::before { content: ''; width: .55em; height: .55em; border-radius: 50%; background: var(--red-deep); flex: none; }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .product-in { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "head head" "dev steps" "fine fine"; column-gap: calc(4 * var(--u)); row-gap: calc(2.6 * var(--u)); align-items: start; }
  .dev { grid-row: auto; align-self: start; }
}
.step, .step:hover, .step.on { box-shadow: none; transform: none; }

/* ---- steps, final form: three bold lines on the page itself (no boxes). Hairline dividers; the active line is full ink with a coral number, and its divider fills coral as the clip plays ---- */
.steps { align-self: center; grid-auto-rows: auto; gap: 0; }
.steps li { display: block; }
.step, .step:hover, .step.on { border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; padding: calc(2.2 * var(--u)) 0; gap: calc(1.8 * var(--u)); align-items: baseline; overflow: visible; }
.step > div { display: none; }
.step i { min-width: 1.5em; font-size: calc(2.4 * var(--u) * var(--ds)); color: var(--red-deep); opacity: .45; transition: opacity .35s ease; }
.step strong { font-size: max(17px, calc(1.9 * var(--u))); font-weight: var(--bwx); line-height: 1.25; opacity: .5; transition: opacity .35s ease; }
.step:hover i, .step:hover strong { opacity: .85; }
.step.on i, .step.on strong { opacity: 1; }
.step::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(43,45,49,.2); }
.steps li:first-child .step::after, .steps li .step::after { height: 2px; }
.steps li:last-child .step::before { display: none; }
.fine { display: none; }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) { .product-in { grid-template-areas: "head head" "dev steps"; } }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .product-in { grid-template-areas: "head" "dev" "steps"; } .step i { font-size: 1.8rem; } .step strong { font-size: 1.1rem; } .step { padding: 16px 0; } }
.step.on i { color: var(--red-deep); }


/* ======================================================================================================
   Overview feature cards, after linear.app's "FIG 0.1 / 0.2 / 0.3" row: tall panels, a small figure label, one large isometric line drawing,
   then a short title and a muted line. Our version keeps rounded cards and the site's fonts; the drawings are generated (2:1 isometric
   projection of rounded boxes, painted back to front) in hairline ink on the card colour, so they read like quiet technical figures.
   ====================================================================================================== */
.feat { --card: #f6f2ea; margin-top: calc(10 * var(--u)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.4 * var(--u)); }
.fc { position: relative; display: flex; flex-direction: column; padding: calc(1.7 * var(--u)) calc(2.2 * var(--u)) calc(2.4 * var(--u)); background: var(--card); border: 1px solid rgba(43,45,49,.1); border-radius: 18px; transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), border-color .5s ease; }
.fc:hover { border-color: rgba(43,45,49,.22); }
.feat .fc:nth-child(2) { transition-delay: .1s; } .feat .fc:nth-child(3) { transition-delay: .2s; }
.fig { margin: 0; font-size: max(11px, calc(.78 * var(--u))); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(43,45,49,.42); font-variant-numeric: tabular-nums; }
.fg { height: calc(25 * var(--u)); display: flex; align-items: center; justify-content: center; margin: calc(1 * var(--u)) 0 calc(2.6 * var(--u)); }
.fg svg { width: 78%; height: 90%; overflow: visible; }
.fc h3 { margin: 0 0 calc(.55 * var(--u)); font-family: var(--font); font-weight: 600; font-size: max(16px, calc(1.2 * var(--u))); letter-spacing: -.005em; line-height: 1.35; }
.fd { margin: 0; max-width: 24em; font-size: max(15px, calc(1.1 * var(--u))); line-height: 1.55; font-weight: 450; color: rgba(43,45,49,.6); }

/* drawing: fills are the card colour so nearer shapes hide farther ones; strokes are fine ink lines */
.iso path { stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.iso .s { fill: var(--card); stroke: rgba(43,45,49,.7); stroke-width: 1; }
.iso .s.plate, .iso .s.phone { stroke: rgba(43,45,49,.5); }
.iso .e { fill: none; stroke: rgba(43,45,49,.32); stroke-width: .8; }
.iso .f { fill: none; stroke: rgba(43,45,49,.24); stroke-width: .8; }
.iso .d { fill: none; stroke: rgba(43,45,49,.42); stroke-width: .9; stroke-dasharray: 1 3.2; }
.iso .core { fill: rgba(43,45,49,.08); stroke: rgba(43,45,49,.4); stroke-width: .8; }
.iso .s.lift, .iso .s.top { stroke: rgba(43,45,49,.85); }
.iso { transition: opacity 1.2s ease .2s; } .js .fc:not(.in) .iso { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .iso { transition: none; } .js .fc:not(.in) .iso { opacity: 1; } }

@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .feat { grid-template-columns: 1fr; gap: 14px; margin-top: 7vh; }
  .fc { min-height: 0; padding: 18px 22px 24px; border-radius: 16px; } .fig { font-size: 11px; }
  .fg { height: 230px; margin: 14px 0 22px; } .fg svg { width: 70%; height: 88%; }
  .fc h3 { font-size: 1.1rem; } .fd { font-size: 1rem; }
}

/* ---- steps, accordion again but quiet: the open step is a soft panel with a bigger title, the other two close up small and muted. No progress line, no extra text ---- */
.step::after, .step.on::after, .step::before, .steps li:last-child .step::before { display: none; }
.steps { gap: calc(.7 * var(--u)); }
.step, .step:hover { padding: calc(1.5 * var(--u)) calc(1.8 * var(--u)); border: 1px solid transparent; border-radius: 16px; background: transparent; align-items: center; transition: padding .45s cubic-bezier(.22,.8,.3,1), background .35s ease, border-color .35s ease; }
.step:hover { background: rgba(148,193,194,.14); }
.step.on { padding: calc(2.8 * var(--u)) calc(2.2 * var(--u)); background: rgba(148,193,194,.34); border-color: rgba(43,45,49,.16); }
.step i { font-size: calc(1.9 * var(--u) * var(--ds)); transition: font-size .45s cubic-bezier(.22,.8,.3,1), opacity .35s ease; }
.step.on i { font-size: calc(2.8 * var(--u) * var(--ds)); }
.step strong { font-size: max(15px, calc(1.5 * var(--u))); transition: font-size .45s cubic-bezier(.22,.8,.3,1), opacity .35s ease; }
.step.on strong { font-size: max(18px, calc(2.05 * var(--u))); }
@media (prefers-reduced-motion: reduce) { .step, .step i, .step strong { transition: none; } }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .step, .step:hover { padding: 12px 16px; } .step.on { padding: 20px 18px; } .step i { font-size: 1.4rem; } .step.on i { font-size: 2rem; } .step strong { font-size: 1rem; } .step.on strong { font-size: 1.2rem; } }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .step, .step:hover, .step.on { border-radius: 14px; } }
.step, .step:hover, .step.on, .step.on:hover { border-radius: 16px; }

/* ---- steps, hover: nothing moves inside the panel. Only the tint deepens a little and the whole step grows a hair (the open step keeps its own padding while hovered, which is what made 01/02/03 jump) ---- */
.steps .step { transition: padding .45s cubic-bezier(.22,.8,.3,1), background .35s ease, border-color .35s ease, transform .35s cubic-bezier(.22,.8,.3,1); }
.steps .step:hover:not(.on) { background: rgba(148,193,194,.22); border-color: rgba(43,45,49,.1); transform: scale(1.015); }
.steps .step.on:hover { padding: calc(2.8 * var(--u)) calc(2.2 * var(--u)); background: rgba(148,193,194,.5); transform: scale(1.01); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .steps .step.on:hover { padding: 20px 18px; } }
@media (prefers-reduced-motion: reduce) { .steps .step { transition: none; } .steps .step:hover:not(.on), .steps .step.on:hover { transform: none; } }

/* the open step lines its number up on the title baseline; hovering it must not switch to centre alignment (that dropped the number ~26px and snapped it back on mouse-out) */
.steps .step.on, .steps .step.on:hover { align-items: baseline; }

/* ======================================================================================================
   "Be part of IrisSpeak" merged into the coral band: the bold "caring" headline on the left, two quiet ways on the right
   (hairline rows, no cards, no tabs): Open the app, and an inline newsletter sign-up.
   ====================================================================================================== */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.care { grid-template-columns: 1fr minmax(0, calc(44 * var(--u))); align-items: start; }
.care-l { align-self: center; }                    /* the heading sits at the vertical middle of the two ways */
.ju-kick { margin: 0 0 calc(2 * var(--u)); font-size: max(13px, calc(1.05 * var(--u))); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.ju { display: flex; flex-direction: column; padding-top: calc(1 * var(--u)); }
.ju-way { padding: calc(2.6 * var(--u)) 0 calc(3 * var(--u)); border-top: 1px solid rgba(43,45,49,.3); }
.ju-way:last-child { padding-bottom: 0; }
.ju-way h3 { margin: 0 0 calc(.9 * var(--u)); font-family: var(--display); font-weight: 450; letter-spacing: var(--dls); font-size: calc(2.8 * var(--u) * var(--ds)); line-height: 1.05; }
.ju-way p { margin: 0 0 calc(2 * var(--u)); max-width: 24em; text-wrap: pretty; font-size: max(16px, calc(1.45 * var(--u))); line-height: 1.5; font-weight: 500; opacity: .82; }
.ju-form { display: flex; gap: calc(.8 * var(--u)); max-width: calc(40 * var(--u)); }
.ju-form input { flex: 1; min-width: 0; height: var(--btn-h); padding: 0 1.1em; font: inherit; font-size: max(16px, calc(1.4 * var(--u))); color: var(--ink);
  background: #fff; border: 1px solid rgba(43,45,49,.3); border-radius: 12px; transition: border-color .3s, box-shadow .3s; }
.ju-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(148,193,194,.5); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .ju { margin-top: 40px; padding-top: 0; } .ju-form { max-width: 460px; } .ju-kick { font-size: .78rem; margin-bottom: 16px; }
  .ju-way { padding: 24px 0 30px; } .ju-way h3 { font-size: 1.9rem; } .ju-way p { font-size: 1.05rem; margin-bottom: 18px; }
}
@media (max-width: 420px) { .ju-form .cta { padding: 0 1.3em; } .ju-form input { padding: 0 1.1em; } }
/* Sign up: the same hover / press as the nav's Open App (ink → soft grey, scale .97 / .95), not the on-red cream flip */
.ju-form .cta.on-red { background: #2b2d31; color: #f6f1e7; border-color: #2b2d31; }
.ju-form .cta.on-red:hover { background: #4f5258; color: #fff; border-color: #4f5258; transform: scale(.97); }
.ju-form .cta.on-red:active { background: #5d6067; color: #fff; border-color: #5d6067; transform: scale(.95); }
@media (prefers-reduced-motion: reduce) { .ju-form .cta.on-red:hover, .ju-form .cta.on-red:active { transform: none; } }

/* the two ways sit on their own white card, a layer above the coral; the card rises in, then its text follows line by line */
.ju { background: #fff; border-radius: 24px; padding: calc(3 * var(--u)) calc(3.2 * var(--u)); box-shadow: 0 2px 6px rgba(43,45,49,.06), 0 28px 56px -30px rgba(110,36,24,.5); }
.ju-way { border-top-color: rgba(43,45,49,.14); }
.ju-way:first-of-type { border-top: 0; padding-top: 0; }   /* of-type: the sheen <i> comes first, so :first-child never matched */
.ju-way > * { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .ju:not(.in) .ju-way > * { opacity: 0; transform: translateY(16px); }
.ju-way:first-child > :nth-child(1) { transition-delay: .25s; } .ju-way:first-child > :nth-child(2) { transition-delay: .35s; } .ju-way:first-child > :nth-child(3) { transition-delay: .45s; }
.ju-way:last-child > :nth-child(1) { transition-delay: .55s; } .ju-way:last-child > :nth-child(2) { transition-delay: .65s; } .ju-way:last-child > :nth-child(3) { transition-delay: .75s; }
.care-p.rv { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) { .ju-way > * { transition: none; } .js .ju:not(.in) .ju-way > * { opacity: 1; transform: none; } }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .ju { padding: 24px 22px; border-radius: 20px; } }

/* ======================================================================================================
   "Introducing IrisSpeak" arrives in the page's own motion language (no pinning, no colour change): the two halves of the heading rise out
   of their masks like the other headings, the underline draws on like the hero's, the lede follows, and the iPad settles from slightly
   smaller as it scrolls up, the way the hero photo settles (site.js ties that last one to the scroll position).
   ====================================================================================================== */
.js .product .head.rv:not(.in) { opacity: 1; transform: none; }
.product .head h2 .m { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .26em; margin: 0 -.04em -.26em; }
.product .head h2 .m > span { display: inline-block; transition: transform 1.4s var(--ease); }
.product .head h2 .m + .m > span { transition-delay: .12s; }
.js .product .head:not(.in) h2 .m > span { transform: translateY(150%); }
.product .head .hl svg path { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1) .75s; }
.js .product .head:not(.in) .hl svg path { stroke-dashoffset: 1; }
.product .head .lede { transition: opacity 1s var(--ease) .45s, transform 1s var(--ease) .45s; }
.js .product .head:not(.in) .lede { opacity: 0; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) {
  .js .product .head:not(.in) h2 .m > span, .js .product .head:not(.in) .lede { transform: none; opacity: 1; }
  .js .product .head:not(.in) .hl svg path { stroke-dashoffset: 0; }
}
.js .product .dev.rv:not(.in) { transform: none; }   /* the scroll-linked settle does the moving; the block itself only fades */

/* the demo screen as an iPad: a dark bezel with a thin aluminium edge, lit from above */
.ipad { width: 100%; transform-origin: 50% 50%; will-change: transform; }
.product .frame { border: calc(1.05 * var(--u)) solid #1c1c1f; border-radius: calc(2.6 * var(--u)); will-change: transform; backface-visibility: hidden;
  box-shadow: 0 0 0 1.5px #c4c4c9, 0 0 0 2.5px #e9e9ec, 0 2px 4px rgba(43,45,49,.08), 0 40px 70px -34px rgba(43,45,49,.45); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .product .frame { border-width: 8px; border-radius: 22px; } }
/* while the 3D sequence drives them, the generic scroll reveals stand down (GSAP sets these values directly) */
.p3d .dev.rv, .p3d .steps.rv { opacity: 1 !important; transform: none !important; transition: none !important; }
.p3d .steps > li, .p3d .ctrl { will-change: transform, opacity; }
.p3d { min-height: 100vh; display: flex; align-items: center; padding-top: calc(4 * var(--u)) !important; padding-bottom: calc(4 * var(--u)) !important; }
/* in the 3D sequence the heading waits for its cue from the timeline (.go), not for the generic scroll reveal */
.js .p3d .head:not(.go) h2 .m > span { transform: translateY(150%); }
.js .p3d .head:not(.go) .lede { opacity: 0; transform: translateY(12px); }
.js .p3d .head:not(.go) .hl svg path { stroke-dashoffset: 1; }

/* ======================================================================================================
   The iPad reveal, take 2. Lighting shared with "Your child's own cards": key light top-centre and a little in front, warm brown shadows
   (never grey/black), a 115° sheen on the glass that slides against the motion, a static top gloss. The section's stage is a rounded panel
   like the teal and coral ones: it starts warm espresso with a top-centre spotlight (the lights dimmed on aac's cream stage), and brightens
   back to the page's cream as the iPad settles, so the change of mood happens inside the page, not as a separate screen.
   ====================================================================================================== */
.p-stage { position: absolute; top: 0; bottom: 0; left: var(--gutter, 2vw); right: var(--gutter, 2vw); z-index: -1; border-radius: var(--panel-r, 32px);
  background: rgb(var(--st, 240, 235, 225)); pointer-events: none; }
.p-stage i { position: absolute; inset: 0; border-radius: inherit; opacity: var(--glow, 0);
  background: radial-gradient(62% 58% at 50% 34%, rgba(255,236,214,.22), rgba(255,226,196,.08) 40%, transparent 72%),
              radial-gradient(120% 70% at 50% 108%, rgba(0,0,0,.28), transparent 62%); }
.ipad { position: relative; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.ishadow { position: absolute; left: 6%; right: 6%; bottom: -5%; height: 16%; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(84,60,34,.34), rgba(84,60,34,.12) 55%, transparent); filter: blur(10px); will-change: transform, opacity; }
.product .frame { box-shadow: 0 0 0 1.5px #c4c4c9, 0 0 0 2.5px #ecebe8, inset 0 1.5px 0 rgba(255,255,255,.35),
  0 calc(2px + var(--lift, 1) * 6px) calc(4px + var(--lift, 1) * 8px) rgba(70,48,28, calc(.08 + var(--lift, 1) * .08)),
  0 calc(8px + var(--lift, 1) * 30px) calc(16px + var(--lift, 1) * 46px) calc(-6px - var(--lift, 1) * 8px) rgba(70,48,28, calc(.12 + var(--lift, 1) * .26)); }
.glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: var(--gl, 0);
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.95) 46%, rgba(255,255,255,.2) 54%, transparent 64%) var(--gx, 50%) 0 / 260% 100% no-repeat,
              linear-gradient(180deg, rgba(255,255,255,.55), transparent 40%); }
.p3d .dev.rv { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .glare { display: none; } }

/* the iPad as a real object: screen in front, aluminium back (camera, IrisSpeak mark) and thin metal sides, so it can turn all the way round.
   Perspective is kept weak (≈2.6 × its width) so it never looks stretched as it turns. */
.tilt { position: relative; transform-style: preserve-3d; --th: 12px; --ir: calc(2.6 * var(--u)); }
.product .tilt > .frame { transform: translateZ(calc(var(--th) / 2)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ib { position: absolute; inset: 0; border-radius: var(--ir); transform: rotateY(180deg) translateZ(calc(var(--th) / 2)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.35), transparent 60%), linear-gradient(160deg, #dedcd7, #c3c0ba 55%, #b3b0aa);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45), inset 0 -10px 30px rgba(70,48,28,.12); display: grid; place-items: center; }
.ib img { width: 9%; height: auto; opacity: .55; filter: grayscale(1) contrast(.9); }
.ib .cam { position: absolute; top: 5%; left: 4.5%; width: 9%; aspect-ratio: 1; border-radius: 24%; background: linear-gradient(145deg, #2a2a2d, #151517); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ib .cam::before, .ib .cam::after { content: ''; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4a4f5a, #0c0c0e 65%); box-shadow: 0 0 0 2px #2f2f33; }
.ib .cam::before { top: 10%; left: 10%; } .ib .cam::after { bottom: 10%; right: 10%; }
.ie { position: absolute; background: linear-gradient(90deg, #a9a6a0, #d8d6d1 50%, #a9a6a0); }
.ie.l, .ie.r { top: calc(var(--ir) * .5); bottom: calc(var(--ir) * .5); width: var(--th); transform: rotateY(90deg); }
.ie.l { left: calc(var(--th) / -2); } .ie.r { right: calc(var(--th) / -2); }
.ie.t, .ie.b { left: calc(var(--ir) * .5); right: calc(var(--ir) * .5); height: var(--th); transform: rotateX(90deg); background: linear-gradient(180deg, #a9a6a0, #d8d6d1 50%, #a9a6a0); }
.ie.t { top: calc(var(--th) / -2); } .ie.b { bottom: calc(var(--th) / -2); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .tilt { --ir: 22px; } }
/* the finished layout sits clear of the fixed nav */
.p3d { padding-top: max(116px, calc(9 * var(--u))) !important; padding-bottom: calc(2 * var(--u)) !important; }
/* the closing line of the walkthrough, in the heading's serif, under the demo (rises line by line like the other headings) */
.p-tag { background: var(--wall); padding: calc(5 * var(--u)) 4vw calc(12 * var(--u)); display: flex; justify-content: center; }
.tagline { margin: 0; width: min(calc(94 * var(--u)), 100%); text-align: center; font-family: var(--display); font-weight: 450; letter-spacing: var(--dls);
  font-size: calc(5.2 * var(--u) * var(--ds)); line-height: 1.05; color: var(--ink); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .p-tag { padding: 6vh 6vw 12vh; } .tagline { font-size: clamp(2.2rem, 8.5vw, 3.4rem); } }

/* the three.js tablet draws on a canvas over the section; the real demo (.tilt) takes over when it lands */
.p3d-canvas { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }
.product { position: relative; }
/* "The next era of AACs." opens the next screen: out of view while the demo is pinned, it comes up as you scroll on */
/* it is the Overview's title: no rule between them and a short gap, so it reads as the heading of the text below */
.p-tag { padding-top: calc(10 * var(--u)); padding-bottom: calc(2 * var(--u)); }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .p-tag { padding-top: 10vh; padding-bottom: 2vh; } }
/* "Introducing IrisSpeak" is a dark slide: the stage stays espresso once the tablet lands, and everything on it turns light.
   (Without JS the panel is dark from the start.) */
.p-stage { background: rgb(var(--st, 38, 30, 26)); }
.product .head h2 { color: #f4eee4; }
.product .steps .step strong { color: #efe7da; }
.product .steps .step i { color: #f09281; }
.product .steps .step:hover:not(.on) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.product .steps .step.on { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.product .steps .step.on:hover { background: rgba(255,255,255,.13); }
.product .arrow { color: #f4eee4; background: transparent; border-color: rgba(244,238,228,.35); }
.product .arrow:hover { background: rgba(255,255,255,.1); border-color: #f4eee4; }
.product .dots i { background: rgba(244,238,228,.22); }
.product .dots i.on { background: #f4eee4; }
.product .frame { box-shadow: 0 0 0 1.5px #c4c4c9, 0 0 0 2.5px #ecebe8, 0 30px 60px -28px rgba(0,0,0,.55); }
.product .arrow:focus-visible, .product .step:focus-visible { outline-color: #f4eee4; }

/* ======================================================================================================
   "Ready to be part of IrisSpeak?": the closing call to action in the page's 3D language.
   The coral panel opens out of a smaller rounded rectangle (the hero's opening, as a bookend); the heading rises from its masks; the white
   card lifts upright in 3D with the shared warm lighting and a sheen that crosses its face; four AAC picture cards (Fitzgerald colours)
   drift up through the panel at different depths as you scroll. care.js drives it from the scroll position.
   ====================================================================================================== */
.care { position: relative; }
.care-l, .ju-3d { position: relative; z-index: 1; }
.care-h .m { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .3em; margin: 0 -.04em -.3em; }
.care-h .m > span { display: inline-block; transition: transform 1.3s var(--ease); }
.care-h .m + .m > span { transition-delay: .12s; }
.care-p { transition: opacity 1s var(--ease) .4s, transform 1s var(--ease) .4s; }
.js .care:not(.go) .care-h .m > span { transform: translateY(150%); }
.js .care:not(.go) .care-p { opacity: 0; transform: translateY(12px); }
.care .hl2::after { transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1) .6s; }
.js .care:not(.go) .hl2::after { transform: scaleX(0) rotate(-.8deg); }
.ju-3d { perspective: 1800px; }
.ju { position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 2px 6px rgba(70,48,28,.08), 0 calc(10px + var(--lift, 1) * 26px) calc(22px + var(--lift, 1) * 40px) calc(-10px - var(--lift, 1) * 8px) rgba(70,48,28, calc(.16 + var(--lift, 1) * .24)); }
.ju-sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; mix-blend-mode: soft-light; opacity: .7;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.95) 46%, rgba(255,255,255,.2) 54%, transparent 64%) var(--sx, 140%) 0 / 260% 100% no-repeat; }
/* behind it all, an AAC board lying back in 3D: 28 picture cards, tone-on-tone with the coral (frosted white tiles, the symbols printed
   into the coral by multiply) so it reads as the panel's own texture, never competing with the words or the card in front */
.care-board { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: inherit; perspective: 1300px; perspective-origin: 50% 30%;
  -webkit-mask-image: radial-gradient(85% 75% at 42% 50%, rgba(0,0,0,.22), #000 80%); mask-image: radial-gradient(85% 75% at 42% 50%, rgba(0,0,0,.22), #000 80%); }
.cb-plane { position: absolute; left: 50%; top: 50%; width: 150%; display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(1.6 * var(--u));
  transform: translate(-50%, -46%) rotateX(52deg) rotateZ(-10deg); transform-style: preserve-3d; will-change: transform; }
.bt { aspect-ratio: .86; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; padding: .9em .6em .7em; border-radius: 18px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.38); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), 0 14px 26px -14px rgba(120,40,28,.35);
  font-weight: 800; font-size: max(13px, calc(1.35 * var(--u))); color: rgba(255,255,255,.85); backface-visibility: hidden; will-change: transform, opacity; }
.bt img { width: 64%; flex: 1; min-height: 0; object-fit: contain; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: .42; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .cb-plane { width: 230%; grid-template-columns: repeat(7, 1fr); gap: 12px; } .bt { border-radius: 12px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .care-h .m > span, .care-p, .care .hl2::after { transition: none; } }
.care-wrap { position: relative; }
/* "The next era of AACs." leads straight into the Overview: about half the old gap between them */
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .p-tag + .story { padding-top: calc(5 * var(--u)); }
  .p-tag + .story .story-label { top: calc(5 * var(--u) + .9 * var(--u)); }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) { .p-tag + .story { padding-top: 3vh; } }
