/* Home page (kerbish.app/): design A, "One phone, three moments" (D125, D126), after flighty.com, in Sunny Street.
   Loaded after site.css, which holds the fonts, the base tokens and dark mode's base colours.
   Layout: the hero and three moments zig-zag on desktop and stack at phone width, each moment with its own phone.
   Layout answers the width of `.home` (a container), so it lays out the same in any window.
   Motion is CSS only and adds movement to a page that is already complete: transform and opacity, "bouncy but
   brief" (pops 380 ms cubic-bezier(.34,1.56,.64,1), slides ~500 ms, nothing over 700 ms), one ambient loop.
   Reduce Motion and browsers without scroll-driven animations show every end state.
   Weights: 900 is Bitter ExtraBold and 700 Bitter Bold (site.css), so the design's 800 is 900 here. */

:root{
  --coral-text:#C2412C; --coral-glyph:#E0553F;
  --hair:#EDE5D3; --seen-ring:#D9D4C8;
  --pin-photo:#FCB46A; --pin-strip:#C6E6D2;
  --shadow:0 10px 30px rgba(31,42,34,.14);
  --r-pill:999px;
}
.home{container:home / inline-size;--wrap:1200px;--gutter:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
@container home (min-width:900px){.nav,.wrap,.foot{--gutter:40px}}
.home main{overflow-x:clip}
a:hover{color:var(--on-colour)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}

/* Type */
.t-h1{font-family:var(--title);font-weight:900;letter-spacing:-.01em;line-height:1.06;font-size:38px;margin:0;text-wrap:balance}
.t-h2{font-family:var(--title);font-weight:900;letter-spacing:-.01em;line-height:1.1;font-size:30px;margin:0;text-wrap:balance}
.t-h3{font-family:var(--title);font-weight:900;letter-spacing:-.01em;line-height:1.12;font-size:26px;margin:0}
.t-sub{font-size:18px;line-height:1.45;color:var(--ink-2);margin:0;max-width:30em}
.t-h1 .ln{display:block}
@container home (min-width:900px){.t-h1{font-size:64px}.t-h2{font-size:44px}.t-h3{font-size:38px}.t-sub{font-size:20px}}

/* Nav */
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px var(--gutter);max-width:calc(var(--wrap) + 2*var(--gutter));margin:0 auto}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--title);font-weight:900;font-size:22px;color:var(--ink);text-decoration:none}
.brand img{width:36px;height:36px;border-radius:9px;max-width:none}
.brand picture{flex:none;display:flex}
.nav-links{display:flex;gap:4px}
.nav-links a{position:relative;font-family:var(--title);font-weight:700;font-size:15px;color:var(--ink);text-decoration:none;padding:12px 10px;min-height:44px;display:inline-flex;align-items:center;border-radius:var(--r-pill)}
.nav-links a:hover{background:var(--leaf-tint)}
/* the links get a sliding underline */
.nav-links a::after{content:"";position:absolute;left:10px;right:10px;bottom:9px;height:2px;border-radius:2px;background:currentColor;transform:scaleX(0);transform-origin:left}
.nav-links a:hover::after,.nav-links a:focus-visible::after{transform:scaleX(1)}
@container home (max-width:420px){.brand{font-size:20px;gap:8px}.brand img{width:32px;height:32px}.nav-links a{font-size:14px;padding:12px 7px}}
/* 320 px (iPhone SE): the icon, name and three links still fit on one line, links keep their 44 px height */
@container home (max-width:359px){.nav{gap:8px}.brand{font-size:18px;gap:6px}.brand img{width:28px;height:28px;border-radius:7px}
  .nav-links{gap:0}.nav-links a{font-size:13px;padding:12px 5px}.nav-links a::after{left:5px;right:5px}}

/* Pills, tags, buttons */
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:var(--r-pill);padding:6px 14px;font-family:var(--title);font-weight:700;font-size:15px;line-height:1.2;white-space:nowrap}
.pill--leaf{background:var(--leaf-tint);color:var(--leaf-deep)}
.pill--white{background:var(--elevated);color:var(--ink);box-shadow:0 1px 0 var(--hair),var(--shadow)}
.pill--coral{background:var(--elevated);color:var(--coral-text);box-shadow:0 1px 0 var(--hair),var(--shadow)}
.tag-new{display:inline-block;background:var(--sun);color:var(--on-colour);font-family:var(--title);font-weight:900;font-size:12px;line-height:1;padding:4px 8px;border-radius:var(--r-pill)}
/* Store links: Apple's badge as it comes (no frame, no shadow), and Android as a quiet line until it is public */
.stores{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.get .stores{justify-content:center}
.appstore{display:inline-block;line-height:0;border-radius:9px}
.appstore img{display:block;width:162px;height:54px}
.appstore:focus-visible{outline:3px solid var(--leaf-deep);outline-offset:3px}
.android-soon{color:var(--ink-2);font-family:var(--title);font-weight:700;font-size:16px}
.heart{width:14px;height:14px;fill:var(--coral-glyph)}

/* Round photo pin: the photo on the welcome's peach with its grass strip; New gets a Sunshine ring and tag */
.pin{--p:64px;position:relative;width:var(--p);height:var(--p);border-radius:50%;background:linear-gradient(var(--pin-photo) 74%,var(--pin-strip) 74%);border:3px solid #fff;box-shadow:0 0 0 2px var(--seen-ring),0 6px 14px rgba(31,42,34,.22)}
.pin img{position:absolute;inset:14%;width:72%;height:72%;object-fit:contain;object-position:50% 85%}
.pin--new{box-shadow:0 0 0 4px var(--sun),0 6px 14px rgba(31,42,34,.22)}
.pin .tag-new{position:absolute;z-index:1;left:50%;top:-14px;transform:translateX(-50%);border:2px solid #fff}
.pin--photo{background:var(--pin-photo)}
.pin--photo img{inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Hands holding the phone (hands-phone-tall-v4, 1015 x 1516). The drawing is the phone: its cream bezel and the hands.
   --pw is the width of its screen (art x 118, y 14, 404 x 915, radius 63); the screen lies over that rectangle,
   1 art px larger each way, and covers the left thumb where it crosses the edge. The hands fade out below the phone,
   and the sleeve fades at the drawing's outer edge so it never ends in a hard cut. */
.held{position:relative;width:var(--pw);margin:0 auto}
.held .hands{position:absolute;width:calc(var(--pw)*1015/404);left:calc(var(--pw)*-118/404);top:calc(var(--pw)*-14/404);max-width:none;pointer-events:none;
  -webkit-mask-image:linear-gradient(#000 63%,transparent 76%),linear-gradient(to left,transparent,#000 10%);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(#000 63%,transparent 76%),linear-gradient(to left,transparent,#000 10%);mask-composite:intersect}
/* Below 1180 px the cuff (art x 702 on) would poke in at the screen edge as a sliver, so the hands fade out before it;
   from 1180 px at least 50 px of sleeve shows, which reads as a sleeve */
@container home (max-width:1179px){.held .hands{
  -webkit-mask-image:linear-gradient(#000 63%,transparent 76%),linear-gradient(to left,transparent,#000 10%),linear-gradient(to right,#000 62%,transparent 68%);
  mask-image:linear-gradient(#000 63%,transparent 76%),linear-gradient(to left,transparent,#000 10%),linear-gradient(to right,#000 62%,transparent 68%)}}
/* Mirrored for a phone on the left: the screen rectangle moves to art x 1015 - 118 - 404 = 493; the screenshot stays unmirrored */
.held--flip .hands{left:calc(var(--pw)*-493/404);transform:scaleX(-1)}
.phone{position:relative;z-index:1;width:calc(var(--pw)*406/404);margin:calc(var(--pw)*-1/404);aspect-ratio:406/917;border-radius:calc(var(--pw)*64/404)}
.screen{position:relative;width:100%;height:100%;border-radius:inherit;overflow:hidden;background:var(--base)}
/* A screenshot (1206 x 2622) keeps its shape and fills the screen by height, so ~2% a side goes. `.shot` is that box,
   so anything placed on a screenshot (map pins, a tap, a later screen) is in the screenshot's own %. */
.shot{position:absolute;top:0;bottom:0;left:50%;aspect-ratio:1206/2622;translate:-50% 0}
.shot .shot-png{position:absolute;inset:0;width:100%;height:100%;max-width:none}
.shot picture{position:absolute;inset:0}
/* The hero map's six pins, cut from the app's own map with the positions it logged (app-shots/v2/pins-*.json) */
.shot .mp{inset:auto;display:block}
.mp img{display:block;width:100%;height:auto}
.shot .mp1{left:43.03%;top:46.00%;width:13.93%;transform-origin:50% 55.6%}
.shot .mp2{left:78.28%;top:35.81%;width:8.96%}
.shot .mp3{left:17.83%;top:31.92%;width:13.93%;transform-origin:50% 55.6%}
.shot .mp4{left:76.04%;top:52.94%;width:8.96%}
.shot .mp5{left:41.04%;top:72.01%;width:8.96%}
.shot .mp6{left:20.32%;top:68.00%;width:8.96%}
/* A finger's tap (like iOS's Show Touches), the camera flash, and the later screen in steps 2 and 3 */
.tap{position:absolute;width:17%;aspect-ratio:1;border-radius:50%;translate:-50% -50%;background:rgba(40,48,44,.3);box-shadow:0 0 0 3px rgba(255,255,255,.85),0 6px 16px rgba(0,0,0,.28);opacity:0;pointer-events:none}
.tap--shutter{left:50%;top:89.3%}
.tap--thank{left:26%;top:91.7%}
.flash{position:absolute;inset:0;background:#fff;opacity:0}
/* step 3 ends on the thank-you screen only when it plays; otherwise Post detail stays */
.shot .thanks{opacity:0}
/* Sparks from the lit lamp as the thank-you appears: Sunshine four-point sparks and a few of the app's confetti
   colours burst from the disc, out through the bezel and onto the page around the phone, over the hands, and fade,
   so the phone ends as the app draws it. The disc's centre is at 50% across and 36.4% down the screenshot, which is
   0.826 of the screen's width below the phone's top; --u is 1/96 of the screen's width. */
.sparks{--u:calc(var(--pw) / 96);position:absolute;z-index:3;left:50%;top:calc(var(--pw) * .826);width:0;height:0;pointer-events:none}
.sparks i{position:absolute;left:0;top:0;width:var(--s);height:var(--s);translate:-50% -50%;opacity:0}
.sparks .st{clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}
.sparks .dt{border-radius:50%}
.sparks .pl{border-radius:999px;height:calc(var(--s)*.42)}
.sparks .flare{position:absolute;left:0;top:0;width:calc(var(--u)*64);aspect-ratio:1;translate:-50% -50%;border-radius:50%;opacity:0;
  background:radial-gradient(closest-side,rgba(255,201,60,.55),rgba(255,201,60,.18) 55%,rgba(255,201,60,0))}
.sparks .k1{--x:calc(var(--u)*-67.5);--y:calc(var(--u)*-39.0);--s:calc(var(--u)*8);--r:-8deg;background:var(--sun);--d:2.59s}
.sparks .k2{--x:calc(var(--u)*-35.0);--y:calc(var(--u)*-60.6);--s:calc(var(--u)*3);--r:29deg;background:var(--coral-glyph);--d:2.63s}
.sparks .k3{--x:calc(var(--u)*-5.6);--y:calc(var(--u)*-63.8);--s:calc(var(--u)*6);--r:-24deg;background:var(--sun);--d:2.67s}
.sparks .k4{--x:calc(var(--u)*31.3);--y:calc(var(--u)*-67.1);--s:calc(var(--u)*4.6);--r:13deg;background:var(--leaf);--d:2.55s}
.sparks .k5{--x:calc(var(--u)*75.4);--y:calc(var(--u)*-52.8);--s:calc(var(--u)*10);--r:-40deg;background:var(--sun);--d:2.59s}
.sparks .k6{--x:calc(var(--u)*102.4);--y:calc(var(--u)*-18.1);--s:calc(var(--u)*3);--r:-3deg;background:var(--sun);--d:2.63s}
.sparks .k7{--x:calc(var(--u)*92.7);--y:calc(var(--u)*24.8);--s:calc(var(--u)*7);--r:34deg;background:var(--sun);--d:2.67s}
.sparks .k8{--x:calc(var(--u)*62.2);--y:calc(var(--u)*62.2);--s:calc(var(--u)*3);--r:-19deg;background:var(--coral-glyph);--d:2.55s}
.sparks .k9{--x:calc(var(--u)*27.4);--y:calc(var(--u)*75.2);--s:calc(var(--u)*5);--r:18deg;background:var(--sun);--d:2.59s}
.sparks .k10{--x:calc(var(--u)*-28.7);--y:calc(var(--u)*78.9);--s:calc(var(--u)*7.5);--r:-35deg;background:var(--sun);--d:2.63s}
.sparks .k11{--x:calc(var(--u)*-66.5);--y:calc(var(--u)*66.5);--s:calc(var(--u)*4.6);--r:2deg;background:var(--coral-glyph);--d:2.67s}
.sparks .k12{--x:calc(var(--u)*-100.5);--y:calc(var(--u)*26.9);--s:calc(var(--u)*9);--r:39deg;background:var(--sun);--d:2.55s}
.sparks .k13{--x:calc(var(--u)*-88.9);--y:calc(var(--u)*-23.8);--s:calc(var(--u)*3);--r:-14deg;background:var(--leaf);--d:2.59s}
.sparks .k14{--x:calc(var(--u)*-59.4);--y:calc(var(--u)*-59.4);--s:calc(var(--u)*6);--r:23deg;background:var(--sun);--d:2.63s}

/* Fragments beside the phone */
.frag{position:absolute;z-index:2}
.frag .pin{--p:76px}
/* hero fragments sit beside the map, clear of the screenshot's search bar and filter chips */
.frag-pin{left:-20%;top:25%}
.frag-km{right:-30%;top:27%}
.frag-keen{left:-40%;top:46%}
/* the Alert, as its notification: the app's name, then the Alert's real title */
.frag-alert{left:-8%;top:5%;width:min(116%,300px);display:flex;gap:10px;align-items:center;padding:11px 14px;border-radius:20px;background:rgba(255,253,247,.96);box-shadow:0 1px 0 var(--hair),var(--shadow);line-height:1.25;text-align:left;color:var(--ink)}
.frag-alert img{width:34px;height:34px;border-radius:8px;flex:none}
.frag-alert small{display:block;font-size:12px;color:var(--ink-2);text-transform:uppercase;letter-spacing:.04em}
.frag-alert b{display:block;font-size:16px;font-weight:600}
.frag-new{right:-40%;top:30%}
/* phones: a smaller pin, still clear of the bezel; below 370 px there is no room beside the phone, so none.
   Tablets: higher, clear of the step number */
@container home (max-width:599px){.frag-new .pin{--p:56px}.frag-new{right:-36%}}
@container home (max-width:369px){.frag-new{display:none}}
@container home (min-width:700px) and (max-width:899px){.frag-new{top:16%}}
.frag-pin,.frag-km,.frag-keen{display:none}

/* Layout: hero and moments. Desktop zig-zags (hero text left; 1 photo left; 2 text left; 3 phone left) */
.row{display:grid;gap:28px;padding:28px 0 56px}
.row .copy{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.row.hero{padding-top:8px}
.still{margin:0;position:relative;padding:20px 0 0;height:calc(var(--pw)*2.9);overflow:visible clip;--pw:206px}
.num{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--leaf);color:var(--on-colour);font-family:var(--title);font-weight:900;font-size:19px;box-shadow:0 3px 0 var(--leaf-lip)}
.step-p{margin:0;font-size:18px;color:var(--ink-2);max-width:22em}

/* Step 1: the post's own photo as a giant photo pin, New: white ring, Sunshine ring, soft shadow, the New tag */
.photo-pin{position:relative;margin:14px auto 0;width:min(100%,300px);aspect-ratio:1}
.photo-pin .ring{position:absolute;inset:0;border-radius:50%;overflow:hidden;border:10px solid #fff;box-shadow:0 0 0 6px var(--sun),0 22px 44px rgba(31,42,34,.22)}
.photo-pin .inner{position:absolute;inset:0;border-radius:50%;overflow:hidden}
.photo-pin img{width:100%;height:100%;object-fit:cover;max-width:none}
.photo-pin .tag-new{position:absolute;z-index:1;left:50%;top:-16px;translate:-50% 0;font-size:17px;padding:6px 14px;border:3px solid #fff}

@container home (min-width:900px){
  .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:56px;padding:40px 0}
  .row.flip .copy{order:2}
  .still{--pw:265px;height:790px;padding-top:40px}
  .row.hero .still{height:800px}
  .frag-pin,.frag-km,.frag-keen{display:block}
  .frag-alert{left:-18%;top:8%}
  .frag-new{right:-36%}
  .photo-pin{width:420px;margin-top:0}
}

/* Tablet (600-899 px): a bigger hero phone; from 700 px the moments zig-zag as on desktop with a smaller phone */
@container home (min-width:600px) and (max-width:899px){
  .row.hero .still{--pw:240px}
}
@container home (min-width:700px) and (max-width:899px){
  .a-steps .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:28px;padding:32px 0}
  .a-steps .row.flip .copy{order:2}
  .a-steps .still{--pw:230px;height:calc(var(--pw)*2.95);padding-top:28px}
  .photo-pin{width:min(100%,320px);margin-top:0}
}

/* The Spot · Snap · Grab indicator: progress through the moments. It is a slim vertical pill held at the middle of
   the screen in the page's side margin, so it never covers a word. `.chapters` is the pill; `.rail` is a full-height
   column beside the moments that it sticks inside. Below 1200 px the margin is 40 px and the pill would sit 8 px from
   the step numbers, so it is hidden there. */
.a-steps{position:relative}
.rail{display:none}
@container home (min-width:1200px){
  .rail{display:block;position:absolute;top:0;bottom:0;z-index:6;width:28px;pointer-events:none;
    left:calc(4px - min(48px,max(0px,(100cqw - 1200px)/2)))}
  .chapters{position:sticky;top:calc(50vh - 90px);display:flex;flex-direction:column;gap:3px;width:28px;padding:3px;border-radius:var(--r-pill);background:rgba(255,253,247,.92);box-shadow:var(--shadow)}
  .chapters span{position:relative;display:block;writing-mode:vertical-rl;text-align:center;font-family:var(--title);font-weight:900;font-size:13px;line-height:22px;letter-spacing:.03em;padding:9px 0;border-radius:var(--r-pill);color:var(--ink-2)}
  .chapters span::after{content:attr(data-l);position:absolute;inset:0;display:grid;place-items:center;border-radius:inherit;background:var(--leaf);color:var(--on-colour)}
}

/* "Anonymous by design": four big icons, each on a Leaf disc with the lip the step numbers and buttons have.
   Drawn for the site in a duotone line style (the app's Your privacy uses the same idea, glyph on a disc). */
.a-private{padding:40px var(--gutter) 0}
.a-private ul{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
.a-private li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;font-family:var(--title);font-weight:700;font-size:17px;line-height:1.3;text-wrap:balance}
.a-private .tile{display:grid;place-items:center;width:88px;height:88px;border-radius:50%;background:var(--leaf);color:#fff;box-shadow:0 5px 0 var(--leaf-lip)}
.a-private svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:16;stroke-linecap:round;stroke-linejoin:round}
.a-private svg .d{fill:currentColor;stroke:none;opacity:.28}
.a-private svg .dots{fill:currentColor;stroke:none}
@container home (min-width:600px) and (max-width:899px){.a-private ul{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}}
@container home (min-width:900px){
  .a-private{padding:96px var(--gutter) 0}
  .a-private ul{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;margin-top:36px}
  .a-private li{gap:16px;font-size:19px}
  .a-private .tile{width:112px;height:112px}
  .a-private svg{width:60px;height:60px}
}

/* Why we're here: Australia's resource recovery rate climbing towards the 2030 goal, beside two facts; sources in
   the footer (D69). The chart is drawn by Apache ECharts on the Mac (scratchpad chart/build.py) and inlined as SVG with
   classes instead of colours, so every colour, dark mode and the draw-in come from here. */
.facts{padding:72px var(--gutter)}
@container home (min-width:900px){.facts{padding:120px var(--gutter)}}
.why{display:grid;gap:16px;margin-top:28px}
.wchart{margin:0;background:var(--elevated);border-radius:var(--r-card);padding:22px 16px 12px;box-shadow:0 4px 0 var(--card-lip)}
.wchart figcaption{margin:0 6px 4px;font-size:16px;line-height:1.4;color:var(--ink-2);text-wrap:pretty}
.wchart figcaption b{display:block;font-family:var(--title);font-weight:900;font-size:21px;line-height:1.2;color:var(--ink);margin-bottom:4px}
.wchart sup a{font-size:13px;text-decoration:none;font-weight:700;padding:2px 4px}
.wc svg{display:block;width:100%;height:auto;overflow:visible}
.wc--wide{display:none}
@container home (min-width:600px){.wc--wide{display:block}.wc--narrow{display:none}.wchart{padding:28px 24px 16px}}
.wchart .c-grid{stroke:var(--hair)}
.wchart .c-line{fill:none;stroke:var(--leaf-deep);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.wchart .c-dot{fill:var(--leaf-deep)}
.wchart .c-goal{stroke:var(--ink-2)}
.wchart .c-gap{fill:var(--leaf-tint)}
.wchart text{font-family:var(--title)}
.wchart .t-ax{fill:var(--ink-2);font-size:13px}
.wchart .t-now{fill:var(--leaf-deep);font-weight:900;font-size:15px}
.wchart .t-goal{fill:var(--ink);font-weight:700;font-size:14px}
.wchart .t-gap{fill:var(--leaf-deep);font-weight:900;font-size:14px}
.why-facts{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.fact{background:var(--elevated);border-radius:var(--r-card);padding:26px 26px 28px;box-shadow:0 4px 0 var(--card-lip)}
.fact b{display:block;font-family:var(--title);font-weight:900;font-size:56px;line-height:1;letter-spacing:-.02em;color:var(--leaf-deep);white-space:nowrap}
.fact p{margin:12px 0 0;font-size:18px;line-height:1.4;text-wrap:pretty}
.fact sup a{font-size:13px;text-decoration:none;font-weight:700;padding:2px 4px}
/* the sources sit right under the chart and facts, in small type; the footnote numbers link to them */
.why-src{margin:14px 0 0;padding-left:18px;font-size:12px;line-height:1.45;color:var(--ink-2)}
.why-src li{padding-left:2px}
.why-src li:target{color:var(--ink)}
.why-aim{margin:28px 0 0;max-width:34em;font-family:var(--title);font-weight:700;font-size:20px;line-height:1.35;color:var(--ink);text-wrap:balance}
@container home (min-width:600px) and (max-width:899px){.why-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container home (min-width:900px){
  .why{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;margin-top:36px}
  .why-facts{grid-template-rows:repeat(2,minmax(0,1fr))}
  .fact{display:flex;flex-direction:column;justify-content:center}
  .fact b{font-size:clamp(44px,4.4cqi,64px)}
  .why-aim{margin-top:36px;font-size:24px}
}

/* Closing: "Don't bin it. Kerbish it.", the pin dotting the i as in the app's splash (D131). The ı is dotless and the
   pin (the app icon's, as a mask in the text colour) sits on it, its tip just above the x-height; the second line
   drops .3em so the pin clears the first.
   On play the pin drops onto the ı and squashes as it lands. Screen readers get the plain words from .vh. */
.get{padding:40px var(--gutter) 96px;text-align:center}
.get .t-h2{margin:0 auto 28px;font-size:46px;line-height:1.08}
.get .ln{display:block}
.get .kw{color:var(--leaf-deep);margin-top:.3em}
.get .ki{position:relative}
.get .kpin{position:absolute;left:50%;bottom:.88em;width:.36em;height:.477em;margin-left:-.18em;
  background:currentColor;-webkit-mask:url("/img/kerb-pin.png") center/contain no-repeat;mask:url("/img/kerb-pin.png") center/contain no-repeat;
  transform-origin:50% 100%}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container home (min-width:900px){.get{padding-top:72px}.get .t-h2{font-size:84px}}

/* Footer */
.foot{background:var(--elevated);border-top:1px solid var(--hair);padding:36px 0 44px;font-size:15px;color:var(--ink-2)}
.foot .wrap{display:grid;gap:18px}
.foot nav{display:flex;flex-wrap:wrap;gap:4px 18px}
.foot nav a{color:var(--ink);font-weight:600;min-height:44px;display:inline-flex;align-items:center}
.foot p{margin:0}

/* Motion */
@media (prefers-reduced-motion: no-preference){
  .nav-links a::after{transition:transform .25s cubic-bezier(.2,.9,.3,1)}

  /* Hero, on load: the page is already complete in the first frame; motion only settles it */
  .hero .pill,.hero .t-h1 .ln,.hero .t-sub,.hero .stores{animation:a-rise .5s cubic-bezier(.2,.9,.3,1) both}
  .hero .t-h1 .ln:nth-child(1){animation-delay:60ms}
  .hero .t-h1 .ln:nth-child(2){animation-delay:120ms}
  .hero .t-sub{animation-delay:180ms}
  .hero .stores{animation-delay:240ms}
  /* the hands and phone settle up with a slight spring; then the one loop, a slow float */
  .hero .held{animation:a-settle .6s cubic-bezier(.34,1.56,.64,1) both,a-float 6s ease-in-out .7s infinite alternate}
}

/* Play once: home.js adds `play` to a [data-play] block when most of it is on screen, and `js` to <html>.
   Before that the block waits in its first frame; with no script or Reduce Motion it is simply in its end state. */
@media (prefers-reduced-motion: no-preference){
  .js .a-private ul:not(.play) .tile{opacity:0;scale:.5}
  .a-private ul.play .tile{animation:a-pop .5s cubic-bezier(.34,1.56,.64,1) both}
  .a-private ul.play li:nth-child(2) .tile{animation-delay:.12s}
  .a-private ul.play li:nth-child(3) .tile{animation-delay:.24s}
  .a-private ul.play li:nth-child(4) .tile{animation-delay:.36s}

  /* hero: the map's pins pop in one by one, as they do in the app, then the pieces beside the phone */
  .js .hero .still:not(.play) :is(.mp,.frag-pin,.frag-km,.frag-keen){opacity:0}
  .hero .play .mp{animation:a-pop .45s cubic-bezier(.34,1.56,.64,1) .2s both}
  .hero .play .mp2{animation-delay:.34s}
  .hero .play .mp1{animation-delay:.48s}
  .hero .play .mp4{animation-delay:.62s}
  .hero .play .mp6{animation-delay:.76s}
  .hero .play .mp5{animation-delay:.9s}
  .hero .play .frag-pin{animation:a-pop .4s cubic-bezier(.34,1.56,.64,1) 1.2s both}
  .hero .play .frag-km{animation:a-pop .4s cubic-bezier(.34,1.56,.64,1) 1.34s both}
  .hero .play .frag-keen{animation:a-pop .4s cubic-bezier(.34,1.56,.64,1) 1.48s both}

  /* closing: the pin drops onto the i of Kerbish */
  .js .get:not(.play) .kpin{opacity:0}
  .get.play .kpin{animation:a-pin-drop .46s linear .25s both}

  /* 2: the camera on the armchair for a beat, a tap on the shutter, the flash, then the New Post form rises in */
  .js .s2 .still:not(.play) .post{opacity:0}
  .s2 .play .tap{animation:a-tap 1s 1.1s both}
  .s2 .play .flash{animation:a-flash .45s 1.5s both}
  .s2 .play .post{animation:a-rise-in .55s 1.75s cubic-bezier(.2,.9,.3,1) both}

  /* Why we're here: the line draws itself, each dot pops as the line reaches it, then today's value, the goal and
     the gap to it */
  .js .wchart:not(.play) :is(.c-dot,.t-now,.c-goal,.t-goal,.c-gap,.t-gap){opacity:0}
  .js .wchart:not(.play) .c-line{stroke-dasharray:1;stroke-dashoffset:1}
  .wchart.play .c-line{stroke-dasharray:1;animation:a-draw 1.6s linear .2s both}
  .wchart.play .c-dot{transform-box:fill-box;transform-origin:center;animation:a-pop .35s cubic-bezier(.34,1.56,.64,1) both}
  /* CHART-DOTS:START */
  .wchart.play .d0{animation-delay:0.20s} .wchart.play .d1{animation-delay:0.40s} .wchart.play .d2{animation-delay:0.60s} .wchart.play .d3{animation-delay:0.80s} .wchart.play .d4{animation-delay:1.00s} .wchart.play .d5{animation-delay:1.20s} .wchart.play .d6{animation-delay:1.40s} .wchart.play .d7{animation-delay:1.60s} .wchart.play .d8{animation-delay:1.80s}
  /* CHART-DOTS:END */
  .wchart.play .t-now{animation:a-rise-in .4s 1.85s cubic-bezier(.2,.9,.3,1) both}
  .wchart.play :is(.c-goal,.t-goal){animation:a-fade .5s 2.15s ease-out both}
  .wchart.play .c-gap{transform-box:fill-box;transform-origin:50% 100%;animation:a-grow .6s 2.5s cubic-bezier(.2,.9,.3,1) both}
  .wchart.play .t-gap{animation:a-fade .4s 2.95s ease-out both}

  /* 3: the Alert drops and the New pin pops; a tap on Thank the poster, the thank-you screen, and the Alert
     and the pin go (it's picked up) */
  .js .s3 .still:not(.play) :is(.frag-alert,.frag-new){opacity:0}
  .s3 .play .frag-alert{animation:a-alert .5s .3s cubic-bezier(.34,1.56,.64,1) both,a-away .35s 3s ease-in forwards}
  .s3 .play .frag-new{animation:a-pop .4s .7s cubic-bezier(.34,1.56,.64,1) both,a-gone .3s 3.2s ease-in forwards}
  .s3 .play .tap{animation:a-tap 1s 1.8s both}
  .s3 .play .thanks{animation:a-show .5s 2.35s ease-out both}
  .s3 .play .sparks i{animation:a-spark 1.5s cubic-bezier(.2,.9,.3,1) var(--d) both}
  .s3 .play .flare{animation:a-flare 1s 2.5s ease-out both}
}

/* Scroll: only where scroll-driven animations exist, motion is welcome and the page really scrolls
   (max-height keeps a very tall window on the end states) */
@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) and (max-height: 1600px) {
  .a-steps{timeline-scope:--r1,--r2,--r3}
  .row.s1{view-timeline:--r1 block}
  .row.s2{view-timeline:--r2 block}
  .row.s3{view-timeline:--r3 block}
  .chapters .k1::after{animation:a-on linear both;animation-timeline:--r1;animation-range:entry 50% entry 80%}
  .chapters .k2::after{animation:a-on linear both;animation-timeline:--r2;animation-range:entry 50% entry 80%}
  .chapters .k3::after{animation:a-on linear both;animation-timeline:--r3;animation-range:entry 50% entry 80%}

  /* 1: the photo opens as a growing circle (the ring scales up while the photo counter-scales), then New drops in */
  .photo-pin .ring{animation:a-open linear both;animation-timeline:--r1;animation-range:entry 0% entry 90%}
  .photo-pin .inner{animation:a-open-in linear both;animation-timeline:--r1;animation-range:entry 0% entry 90%}
  .photo-pin .tag-new{animation:a-drop linear both;animation-timeline:--r1;animation-range:entry 85% cover 50%}

  /* 2: the hands and phone slide in from the right. Only settling motion is tied to scroll: a flash or a burst
     tied to it freezes half-done wherever the reader stops, which reads as a smudge on the screen */
  .s2 .held{animation:a-in-right linear both;animation-timeline:--r2;animation-range:entry 0% entry 80%}

  /* 3: the hands and phone slide in from the left (the Alert and pin play once, above) */
  .s3 .held{animation:a-in-left linear both;animation-timeline:--r3;animation-range:entry 0% entry 80%}

  /* the fact cards rise in turn (numbers at their real value) */
  .why-facts{view-timeline:--facts block}
  .fact{animation:a-up linear both;animation-timeline:--facts;animation-range:entry 0% entry 45%}
  .fact:nth-child(2){animation-range:entry 10% entry 55%}

}
}
@keyframes a-rise{from{opacity:.35;translate:0 .5em}}
@keyframes a-settle{from{translate:0 32px}}
@keyframes a-float{to{transform:translateY(-6px)}}
@keyframes a-pop{from{opacity:0;scale:.4}}
@keyframes a-on{0%{opacity:0;scale:.7;animation-timing-function:cubic-bezier(.34,1.56,.64,1)}100%{opacity:1;scale:1}}
@keyframes a-open{0%{opacity:0;transform:scale(.5);animation-timing-function:cubic-bezier(.2,.9,.3,1)}25%{opacity:1}100%{opacity:1;transform:scale(1)}}
@keyframes a-open-in{0%{transform:scale(2);animation-timing-function:cubic-bezier(.2,.9,.3,1)}100%{transform:scale(1)}}
@keyframes a-drop{0%{opacity:0;translate:-50% -36px;animation-timing-function:cubic-bezier(.34,1.56,.64,1)}100%{opacity:1;translate:-50% 0}}
@keyframes a-in-right{0%{opacity:0;translate:96px 0;animation-timing-function:cubic-bezier(.2,.9,.3,1)}100%{opacity:1;translate:0 0}}
@keyframes a-in-left{0%{opacity:0;translate:-96px 0;animation-timing-function:cubic-bezier(.2,.9,.3,1)}100%{opacity:1;translate:0 0}}
@keyframes a-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes a-fade{from{opacity:0}}
@keyframes a-grow{from{opacity:0;scale:1 0}}
@keyframes a-spark{0%{opacity:0;transform:translate(0,0) scale(.3)}12%{opacity:1}55%{opacity:1;transform:translate(var(--x),var(--y)) scale(1) rotate(var(--r))}100%{opacity:0;transform:translate(calc(var(--x)*1.15),calc(var(--y)*1.15)) scale(.5) rotate(var(--r))}}
@keyframes a-flare{0%{opacity:0;scale:.5}35%{opacity:1;scale:1}100%{opacity:0;scale:1.15}}
@keyframes a-tap{0%{opacity:0;scale:1.5}25%{opacity:1;scale:1}45%{scale:.8}65%{opacity:1;scale:1}100%{opacity:0;scale:1}}
@keyframes a-flash{0%{opacity:0}25%{opacity:.9}100%{opacity:0}}
@keyframes a-rise-in{from{opacity:0;translate:0 8%}}
@keyframes a-show{from{opacity:0;scale:.96}to{opacity:1;scale:1}}
@keyframes a-away{to{opacity:0;translate:0 -30px}}
@keyframes a-gone{to{opacity:0;scale:.4}}
@keyframes a-alert{0%{opacity:0;translate:0 -48px;animation-timing-function:cubic-bezier(.34,1.56,.64,1)}100%{opacity:1;translate:0 0}}
@keyframes a-up{0%{opacity:0;translate:0 40px;animation-timing-function:cubic-bezier(.2,.9,.3,1)}100%{opacity:1;translate:0 0}}
/* the splash's drop: gravity in, lands at 56%, squash 1.13/0.84, settle 0.97/1.04, rest */
@keyframes a-pin-drop{0%{opacity:0;translate:0 -1.1em;animation-timing-function:cubic-bezier(.55,0,1,.45)}
  15%{opacity:1}56%{translate:0 0;scale:1 1;animation-timing-function:ease-out}68%{scale:1.13 .84}84%{scale:.97 1.04}100%{opacity:1;translate:0 0;scale:1 1}}

/* Dark: Sunny Street dark (Theme.swift). The base colours are in site.css. Photos keep their daylight look, as the
   app shows photos the same in both modes. The hands drawing is the same file on forest. */
@media (prefers-color-scheme: dark){
  :root{
    --coral-text:#FF8E7C; --coral-glyph:#FF7A66;
    --hair:rgba(255,255,255,.12); --seen-ring:#56645B;
    --shadow:0 10px 30px rgba(0,0,0,.35);
  }
  .home a:hover{color:var(--ink)}
  .home .frag-alert{background:rgba(38,57,45,.96);box-shadow:0 1px 0 var(--hair),0 10px 30px rgba(0,0,0,.4)}
  .home .chapters{background:rgba(38,57,45,.92)}
  .home .pin{box-shadow:0 0 0 2px var(--seen-ring),0 6px 14px rgba(0,0,0,.4)}
  .home .pin--new{box-shadow:0 0 0 4px var(--sun),0 6px 14px rgba(0,0,0,.4)}
  .home .photo-pin .ring{box-shadow:0 0 0 6px var(--sun),0 22px 44px rgba(0,0,0,.45)}
}
