/* Sorted Studio — motion layer (RISE method: one reference, one idea, one style, five frames checked).
   Each piece is drawn in code. Nothing here hides content: without JavaScript every finished state shows.
   Pieces: headline rise, hop nav, soft press (was the jelly), glide frame, curtain footer, stat strip, ticker,
   ink band, menu takeover (phones). Later rounds are appended below. */

/* 1. Headline rise (10 Oct 2026). The page H1 rises once, 0.3 s from first paint. Pure CSS, so it never waits
      for a script and never flashes. The lead and the buttons do not move: they can be read from the first frame. */
.js .hero h1, .js .page-hero h1 { animation: h1-rise 0.3s var(--ease-out) both; }
@keyframes h1-rise { from { opacity: 0; transform: translateY(0.16em); } }

/* 2. Hop nav. The tick rides on the menu link under the cursor and hops to the next one.
      It rests on the current page's link. Desktop with a mouse only. */
@media (min-width: 861px) and (hover: hover) {
  .js .nav__links { position: relative; }
  .nav__rider { position: absolute; left: 0; top: -10px; width: 18px; height: 18px; opacity: 0; pointer-events: none; z-index: 1;
    transform: translate(var(--x, 0px), 6px) scale(0.5);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease; }
  .nav__rider.is-on { opacity: 1; transform: translate(var(--x, 0px), 0) scale(1); }
  .nav__rider i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--lime); }
  .nav__rider i.is-hop { animation: hop 0.3s var(--ease-out); }
  .nav__rider svg { width: 11px; height: 11px; }
  @keyframes hop { 0% { transform: none; } 35% { transform: translateY(-11px) scale(1.08, 0.94); } 100% { transform: none; } }
}

/* 3. Soft press (10 Oct 2026, was the jelly). A press sinks to 0.97 at once and lets go in 0.16 s. No hover growth. */
.btn { transition: transform 0.16s var(--ease-out), background-color 0.18s ease, color 0.18s ease; }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }

/* 4. Glide frame. One ink frame slides to the price step under the cursor and grows to fit it. */
@media (hover: hover) and (pointer: fine) {
  .js .ladder { position: relative; }
  .ladder__glide { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; opacity: 0;
    width: var(--w, 0px); height: var(--h, 0px); transform: translate(var(--x, 0px), var(--y, 0px));
    border-radius: var(--r-card); box-shadow: 0 0 0 2.5px var(--ink), var(--shadow-float);
    transition: transform 0.3s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.2s ease; }
  .ladder__glide.is-on { opacity: 1; }
}

/* 5. Curtain footer. The page lifts away like a curtain and the footer waits underneath.
      Light version (13 Oct 2026): the page has a hairline edge, round bottom corners and a soft shadow, so it reads as a sheet, not an overlap. */
@media (min-width: 861px) and (min-height: 640px) {
  .js main { position: relative; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--ash); border-radius: 0 0 var(--r-card) var(--r-card);
    box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 22%, transparent); }
  .js .footer { position: sticky; bottom: 0; z-index: 0; border-top: 0; }
}

/* 6. Stat strip. Four numbers under the hero; they count up when they come into view. */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ash); }
.stats li { padding: clamp(var(--space-5), 2.8vw, var(--space-6)) clamp(var(--space-3), 2vw, var(--space-6)) clamp(var(--space-5), 2.8vw, var(--space-6)) clamp(var(--space-4), 2vw, var(--space-6)); border-left: 1px solid var(--ash); }
.stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
.stats li:nth-child(n + 3) { border-top: 1px solid var(--ash); }
@media (min-width: 861px) {
  .stats { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.55fr) minmax(0, 0.85fr) minmax(0, 0.85fr); }
  .stats li:nth-child(odd) { border-left: 1px solid var(--ash); padding-left: clamp(var(--space-4), 2vw, var(--space-6)); }
  .stats li:first-child { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 0; }
}
/* Very big text: the number board goes to one column, so "R1,950" fits a phone (14 Oct 2026). Measured in em. */
.wrap:has(> .stats) { container-type: inline-size; }
@container (max-width: 15em) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats li { border-left: 0; padding-left: 0; }
  .stats li + li { border-top: 1px solid var(--ash); }
}
.stats__num { display: block; font: 500 clamp(var(--step-5), 0.5rem + 4vw, var(--step-7))/1 var(--font-display); letter-spacing: -0.022em; font-variant-numeric: tabular-nums; }
.stats__num small { font: 500 var(--step-1)/1 var(--font-text); letter-spacing: 0; margin-left: 0.2em; }
.stats__what { display: block; margin-top: var(--space-3); color: var(--ink-soft); font-size: var(--fs-small); text-wrap: pretty; max-width: 22ch; }

/* 7. Ticker. The kinds of local business I build for, in one long line that never ends. Pauses under the cursor; still without motion. */
.ticker { overflow: hidden; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ash); padding-block: clamp(var(--space-4), 2vw, var(--space-5)); }
.ticker__track { display: flex; width: max-content; animation: ticker 44s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__line { --tg: clamp(var(--space-5), 2.6vw, var(--space-6)); display: flex; align-items: center; gap: var(--tg); padding-right: var(--tg); white-space: nowrap; font: 500 clamp(var(--step-3), 0.6rem + 2.6vw, var(--step-5))/1 var(--font-display); letter-spacing: -0.016em; }
.ticker__line svg { width: 0.58em; height: 0.58em; flex: none; }
/* Each trade and its tick are one item, so on phones a line never starts with a tick (11 Oct 2026). */
.ticker__item { display: flex; align-items: center; gap: var(--tg); }
.ticker__line .mark::before { animation: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
/* Phones and tablets: the ticker stands still. One copy of the line, wrapped and centred. */
@media (max-width: 860px) {
  .ticker__track { animation: none; width: auto; justify-content: center; }
  .ticker__line + .ticker__line { display: none; }
  .ticker__line { --tg: var(--space-4); flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--tg); padding: 0 var(--gutter); white-space: normal; font-size: var(--step-1); }
  .ticker__line span { white-space: nowrap; }
  .ticker__item:last-child svg { display: none; }
  .ticker { cursor: default; }
}

/* 8. Tone band (13 Oct 2026, was ink). One step under the paper with hairlines, so the WhatsApp section stands apart without a dark block. */
.band--tone { background: var(--tone); border-block: 1px solid var(--ash); }

/* 9. Menu takeover (phones). The menu opens as a lime circle that grows out of the menu button and swallows the page. */
@media (max-width: 860px) {
  .js .nav__links { display: flex; visibility: hidden; background: var(--paper); border-bottom: 0; box-shadow: none;
    clip-path: circle(0px at calc(100% - 43px) -24px);
    transition: clip-path 0.2s var(--ease-in-out), visibility 0s linear 0.2s; }
  .js .nav--open .nav__links { visibility: visible; clip-path: circle(160% at calc(100% - 43px) -24px); transition: clip-path 0.25s var(--ease-out), visibility 0s; }   /* 0.25 s open, 0.2 s close (11 Oct 2026, was 0.45 / 0.35) */
  .js .nav__links a:not(.btn) { border-bottom-color: var(--rule); }
  .js .nav__links li { opacity: 0; transform: translateY(10px); transition: opacity 0.15s ease, transform 0.2s var(--ease-out); }
  .js .nav--open .nav__links li { opacity: 1; transform: none; }
  .js .nav--open .nav__links li:nth-child(1) { transition-delay: 0.06s; }
  .js .nav--open .nav__links li:nth-child(2) { transition-delay: 0.08s; }
  .js .nav--open .nav__links li:nth-child(3) { transition-delay: 0.10s; }
  .js .nav--open .nav__links li:nth-child(4) { transition-delay: 0.12s; }
  .js .nav--open .nav__links li:nth-child(5) { transition-delay: 0.14s; }
  .js .nav--open .nav__toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

/* Without motion: every finished state, no movement. */
@media (prefers-reduced-motion: reduce) {
  .js .hero h1, .js .page-hero h1 { animation: none; }
  .ticker__track { animation: none; }
  .btn:hover, .btn:active { transform: none; }
  .nav__rider, .ladder__glide { display: none; }
  .js .nav__links { clip-path: none; transition: none; }
  .js .nav__links li { opacity: 1; transform: none; transition: none; }
}

/* ---------- Round two: go big ---------- */

/* 11. Loader reveal: removed 10 Oct 2026. It held a lime screen in front of the headline on every first visit.
       The headline now shows from the first frame; the sort stage is the opening moment. */

/* 12. The hero (13 Oct 2026: light, was moss). Paper ground, near-black type; the computer and phone stand on it.
       "Sorted." is ink on lime from the first frame: no swipe here. */
.hero { padding-block: clamp(var(--space-7), 4.4vw, var(--space-8)) clamp(var(--space-6), 3.4vw, var(--space-7)); }   /* 48 px clear above the headline on phones; at most 48 px under the caption (13 Oct 2026, was 96) */
.hero .mark { animation: none; }
.hero .mark::before { animation: none; }

/* 14. Holo sticker. A round "Founding price" sticker that tilts toward the cursor and catches the light. */
.sticker { position: absolute; z-index: 2; top: -36px; right: -14px; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--lime); color: var(--ink); font: 700 var(--fs-label)/1.12 var(--font-text); letter-spacing: 0.01em;
  border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-sticker);
  transform: rotate(-9deg) perspective(300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s var(--ease-out); overflow: hidden; }
.sticker::after { content: ""; position: absolute; inset: -40%; background: radial-gradient(closest-side at var(--gx, 30%) var(--gy, 25%), color-mix(in srgb, var(--white) 42%, transparent), transparent 70%); mix-blend-mode: screen; pointer-events: none; }
.sticker span { position: relative; }
.step { position: relative; }
.offer__pricebox { position: relative; display: inline-block; padding-right: var(--space-9); }
.offer__pricebox .sticker { top: -30px; right: -8px; width: 84px; height: 84px; }   /* 84px holds the 14px label and keeps 12px clear of the price (11 Oct 2026; was 78px with 12px text) */

/* 15. The flying tick. A back-to-top button that squats, then flies off the top of the screen. */
.fly { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 58px; height: 58px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow-hint); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(24px) scale(0.8); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s var(--ease-out), background-color 0.18s ease; }   /* shows in 0.3 s (11 Oct 2026, was 0.5) */
.fly svg { width: 26px; height: 26px; }
.fly.is-show { opacity: 1; transform: none; pointer-events: auto; }
.fly:hover { background: var(--lime); border-color: var(--lime); }
.fly.is-fly { animation: fly-up 0.28s var(--ease-in-out) both; pointer-events: none; }   /* 0.28 s, page scroll included, so it is done inside 300 ms with a frame to spare (11 Oct 2026, was 1 s) */
@keyframes fly-up { 0% { transform: none; } 22% { transform: translateY(10px) scale(1.14, 0.84); } 38% { transform: translateY(-8px) scale(0.92, 1.1); } 100% { transform: translateY(-130vh) rotate(-12deg); } }

/* 17. The brand tick hops when you hover the name. */
@media (hover: hover) { .brand:hover svg { animation: hop 0.3s var(--ease-out); } }

@media (prefers-reduced-motion: reduce) {
  .fly.is-fly { animation: none; }
  .sticker { transform: rotate(-9deg); }
  .brand:hover svg { animation: none; }
}
.footer__base { align-items: center; }
@media (min-width: 861px) { .js .footer__base { padding-right: var(--space-9); } }

/* ---------- Round three ---------- */

/* 18. Founding tag on the one-page step. A pill inside the card, so nothing overlaps. */
.step__tag { align-self: flex-start; display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--space-3); margin-bottom: var(--space-3); border-radius: var(--r-pill); background: var(--lime); color: var(--ink); font: 700 var(--fs-label)/1 var(--font-text); letter-spacing: 0.02em; white-space: nowrap; }
a.step:hover .step__tag { background: var(--lime); color: var(--ink); }

/* 19. Split-flap numbers. Each digit is a tile on a departures board; it flips through the digits and lands on the number. */
.flap { display: inline-flex; align-items: center; gap: 0; vertical-align: bottom; }
.flap__d { position: relative; display: inline-grid; place-items: center; min-height: 1.16em; color: var(--ink); font-variant-numeric: tabular-nums; perspective: 300px; overflow: hidden; }   /* plain digits, no dark tiles (13 Oct 2026) */
.flap__d span { display: block; transform-origin: 50% 50%; }
.flap__d.is-flip span { animation: flap 90ms linear; }
@keyframes flap { 0% { transform: rotateX(0); } 50% { transform: rotateX(-90deg); } 100% { transform: rotateX(0); } }
.flap__s { display: inline-block; }
.stats__num .flap + small { margin-left: 0.3em; }

/* 20. WhatsApp bar on phones. The button where the thumb lands, on my own site too. */
.wa-bar { display: none; }
@media (max-width: 860px) {
  .js .footer { padding-bottom: var(--space-9); }
  .js .wa-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 54; display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 60px; padding: 0 var(--space-4) calc(env(safe-area-inset-bottom, 0px));
    background: var(--card); color: var(--ink); font: 700 var(--step-0)/1 var(--font-text); text-decoration: none; border-top: 1px solid var(--line); }
  .js .wa-bar svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--lime); }
  .js .wa-bar:active { background: var(--tone); }
  html.menu-open .wa-bar { display: none; }
  .js .wa-bar { transition: transform 0.3s var(--ease-out), visibility 0s linear 0s; }
  /* Home: while the hero is in view its own two calls are the only ones. The bar and the header pill wait
     until the visitor scrolls past it (js/motion.js drops .hero-in once, and they stay after that). */
  .js.hero-in .wa-bar { transform: translateY(100%); visibility: hidden; transition: transform 0.3s var(--ease-out), visibility 0s linear 0.3s; }
  .js.hero-in .nav:not(.nav--open) .nav__cta { visibility: hidden; opacity: 0; }
  .js .nav__cta { transition: transform 0.18s var(--ease-out), opacity 0.2s ease, background-color 0.18s ease, color 0.18s ease; }
  .js .fly { display: none; }
  .nav--open .nav__cta { background: var(--ink); color: var(--paper); }
  /* One lime fill per phone screen (11 Oct 2026): while the bar is up, the header pill is an outline. */
}
/* Wider screens (21 Oct 2026, Mark): the same WhatsApp link floats as a pill in the bottom-right corner;
   the back-to-top button sits above it. */
@media (min-width: 861px) {
  .js .wa-bar { position: fixed; right: 18px; bottom: 18px; z-index: 54; display: inline-flex; align-items: center; gap: var(--space-2); height: 58px; padding: 0 var(--space-5) 0 var(--space-2);
    border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font: 700 var(--step-0)/1 var(--font-text); text-decoration: none; box-shadow: var(--shadow-lift); transition: transform 0.18s var(--ease-out); }
  .js .wa-bar svg { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--lime); color: var(--ink); }
  .js .wa-bar:hover { transform: translateY(-2px); }
  .js .fly { bottom: 88px; }
  .js.has-wa-bar .footer { padding-bottom: 96px; }   /* the last footer line ends above the pill */
}
/* Pages with their own lime button (11 Oct 2026): check-up (the check-up), start (the page the pill links to) and 404
   ("Go to the home page"). There the header "Start my website" pill is an outline, at every width. Light on the dark header since 5 Nov 2026. */
.pill-line .nav:not(.nav--open) .nav__cta, .pill-line .nav:not(.nav--open) .nav__links .btn { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
.pill-line .nav:not(.nav--open) .nav__cta:hover, .pill-line .nav:not(.nav--open) .nav__links .btn:hover { background: var(--paper); color: var(--ink); }

/* 21. Map footer, the small version. One studio, one pin, the local time. */
.footer__clock { display: inline-flex; align-items: center; gap: var(--space-2); }
.footer__clock i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 60%, transparent); }
.footer.is-in .footer__clock i { animation: ping 2.4s ease-out 3; }  /* only once the footer is in view: at page load it repainted the page for 7 s, far off screen */
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 60%, transparent); } 70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--lime) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 0%, transparent); } }
.footer__clock time { color: var(--ink); font-weight: 600; }

/* 22. Tumble footer. The big name drops in letter by letter when the footer comes into view. Poke a letter and it hops. */
.js .footer__word .tl { display: inline-block; cursor: default; }
.js .footer:not(.is-in) .footer__word .tl { transform: translateY(-1.3em) rotate(-8deg); opacity: 0; }
.js .footer.is-in .footer__word .tl { animation: tumble 0.3s cubic-bezier(0.34, 1.5, 0.64, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes tumble { from { transform: translateY(-1.3em) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.js .footer.is-in .footer__word .tl.is-hop { animation: letter-hop 0.3s var(--ease-out); }
@keyframes letter-hop { 0% { transform: none; } 35% { transform: translateY(-0.22em) scale(1.06, 0.94); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .flap__d.is-flip span { animation: none; }
  .footer__clock i, .footer.is-in .footer__clock i { animation: none; }
  .js .footer:not(.is-in) .footer__word .tl, .js .footer.is-in .footer__word .tl { transform: none; opacity: 1; animation: none; }
  .js .footer__word .tl.is-hop { animation: none; }
}
@media (max-width: 860px) { .stats__num { font-size: clamp(var(--step-3), 0.5rem + 6vw, var(--step-5)); } .stats__num small { font-size: var(--step-0); } }
@media (max-width: 960px) { .offer__pricebox .sticker { display: none; } .offer__pricebox { padding-right: 0; } }

/* ---------- Round four ---------- */
/* The price on the board reads as one price: its own wide cell, "once-off" after it. */
.stats__num--price { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 0.3em; row-gap: var(--space-2); }
.stats__num--price small { margin-left: 0; padding-bottom: 0.12em; }
/* Extra page, plain to see on the home ladder. */
.step__add { align-self: flex-start; display: inline-flex; align-items: center; max-width: 100%; min-height: 28px; margin-top: var(--space-3); padding: var(--space-1) var(--space-3); border-radius: var(--r-input); border: 1.5px solid var(--ink); font: 600 var(--fs-label)/1.2 var(--font-text); text-wrap: balance; }   /* one line where it fits; on narrow cards it wraps inside its border instead of poking out (11 Oct 2026) */
a.step:hover .step__add { border-color: var(--ink); }
/* Extra page row on the Prices page: an add-on, set in a little from the packages. */
.offer--addon { background: var(--card); border: 1px solid var(--ash); border-radius: var(--r-card, 28px); padding-inline: clamp(var(--space-5), 3vw, var(--space-6)); margin-block: var(--space-4); }
.offer--addon + .offer { border-top-color: transparent; }
/* Side by side, the card's columns line up with the packages above and below (14 Oct 2026; the text sat 15 px right
   and the price 15 px left). The same 3 : 5 : 3 split as .offer, worked out on the full width, minus the card's padding and border. */
@media (min-width: 961px) {
  .offer--addon {
    --pad: calc(clamp(var(--space-5), 3vw, var(--space-6)) + 1px); --cg: clamp(var(--space-5), 4vw, var(--space-7));
    grid-template-columns: minmax(0, calc((100% + 2 * var(--pad) - 2 * var(--cg)) * 3 / 11 - var(--pad))) minmax(0, calc((100% + 2 * var(--pad) - 2 * var(--cg)) * 5 / 11)) minmax(0, calc((100% + 2 * var(--pad) - 2 * var(--cg)) * 3 / 11 - var(--pad)));
  }
}
.stats__num--price { column-gap: 0.16em; }
.stats__num--price .flap__s { padding: 0; margin: 0 -0.03em; }
/* The price's unit word sits on the same baseline as the others (14 Oct 2026; it was bottom-aligned, about 14 px low). */
.stats__num--price { align-items: baseline; }
.stats__num--price small { padding-bottom: 0; }
/* Small phones: "R1,950 once-off" cannot fit its cell, so every unit word goes under its number and all four match (14 Oct 2026). */
@container (max-width: 25em) {
  .stats__num small, .stats__num .flap + small { display: block; margin-left: 0; margin-top: var(--space-1); }
  .stats__num--price { flex-direction: column; align-items: flex-start; row-gap: 0; }
}

/* ---------- Round five ---------- */
/* The marked word on a dark band is ink on lime. It starts cream, so it never vanishes before the lime arrives. */


/* Phones: the computer shot full width, the phone shot under it, big enough to read. */
@media (max-width: 600px) {
  .case__pair, .case__shots--site .case__pair { grid-template-columns: 1fr; gap: var(--space-5); }
  .case__pair > .screen--phone { width: 62%; justify-self: center; }
}

/* Tap to enlarge. Each screenshot opens full screen; a tap zooms in, a second tap fits it again. */
.zoomable { position: relative; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.zoomable:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--lime); box-shadow: var(--shadow-hint); pointer-events: none; transition: transform 0.25s var(--ease-out); }
.zoom-hint svg { width: 18px; height: 18px; }
.screen--phone .zoom-hint { right: 12px; bottom: 12px; width: 34px; height: 34px; }
@media (hover: hover) { .zoom-hint { opacity: 0; transform: scale(0.8); transition: opacity 0.2s ease, transform 0.25s var(--ease-out); } .zoomable:hover .zoom-hint, .zoomable:focus-visible .zoom-hint { opacity: 1; transform: none; } }

.lb { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: var(--surface-dark); color: var(--paper); --focus: var(--lime); opacity: 0; transition: opacity 0.25s ease; }
.lb.is-open { opacity: 1; }
.lb__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: max(var(--space-3), env(safe-area-inset-top)) var(--space-4) var(--space-2); font: 500 var(--fs-label)/1.3 var(--font-text); color: var(--on-ink-soft); }
.lb__btn { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--lime); color: var(--ink); cursor: pointer; }
.lb__btn svg { width: 22px; height: 22px; }
.lb__btn--ghost { background: color-mix(in srgb, var(--paper) 12%, transparent); color: var(--paper); }
.lb__btn[hidden] { display: none; }
.lb__view { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: var(--space-2) var(--space-4); touch-action: pan-y; }
.lb__view img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; cursor: zoom-in; transform: scale(0.96); transition: transform 0.35s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.lb.is-open .lb__view img { transform: none; }
.lb.is-zoom .lb__view { overflow: auto; display: flex; place-items: initial; touch-action: auto; -webkit-overflow-scrolling: touch; }
.lb.is-zoom .lb__view img { flex: none; margin: auto; max-width: none; max-height: none; cursor: zoom-out; border-radius: 0; }
.lb__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom)); }
.lb__alt { flex: 1; margin: 0; text-align: center; font: 500 var(--fs-label)/1.4 var(--font-text); color: var(--on-ink-soft); }
html.lb-open, html.lb-open body { overflow: hidden; }
html.lb-open .wa-bar, html.lb-open .fly { display: none; }
@media (prefers-reduced-motion: reduce) { .lb, .lb__view img { transition: none; } }
.lb[hidden] { display: none; }

/* ---------- Round six: easy to read on phones ---------- */
@media (max-width: 600px) {
  .step__tag { min-height: 28px; }
  .step__add { min-height: 32px; }
  /* The drawn phone is bigger on phones, so the chat can be read. */
  .tap .tap__stage { aspect-ratio: 0.6; }
  .tap .tap__phone { width: 78%; }
}
/* The price tiles: one slow flip each, landing on the right digit. */
.flap__d.is-land span { animation: flap 0.3s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .flap__d.is-land span { animation: none; } }

/* ---------- Round six, review fixes ---------- */
.sort-stage__replay, .tap__replay { width: 44px !important; height: 44px !important; }
.offer__pricebox { margin-bottom: var(--space-4); }
.spin__back { background: transparent; border-color: transparent; }
/* The marker slides under each box and into Day 7, never on top of an edge. */
.week .week__marker { z-index: 0; }

/* ---------- Round six, Astra fixes ---------- */
.ticker { cursor: pointer; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
/* A real pause button for the ticker (11 Oct 2026): keyboard users could not stop it. Wide screens only, where it moves. */
.ticker { position: relative; }
.ticker__pause { position: absolute; right: var(--gutter); top: calc(50% - 22px); z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 8px var(--paper); transition: background-color 0.18s ease; }
.ticker__pause svg { width: 18px; height: 18px; }
.ticker__pause .ticker__play, .ticker__pause[aria-pressed="true"] .ticker__stop { display: none; }
.ticker__pause[aria-pressed="true"] .ticker__play { display: block; }
.ticker__pause:hover { background: var(--lime); }
/* The button has its own space (11 Oct 2026): the line fades out to the paper before it, so no letter slides under it. */
.ticker::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; z-index: 1; width: calc(var(--gutter) + 44px + var(--space-9));
  background: linear-gradient(to right, transparent, var(--paper) var(--space-7)); pointer-events: none; }
@media (max-width: 860px) { .ticker__pause, .ticker::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .ticker__pause, .ticker::after { display: none; } }
html.menu-open { overflow: hidden; }   /* html only (13 Oct 2026): hidden on body made body the scroller, so the sticky header slid away when the menu opened mid-page */
@media (max-width: 860px) { .nav--open .nav__links { max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; } }
/* The card backs stay invisible (spin.css loads later, so this needs the extra class). */
.spin .spin__card .spin__back { background: transparent; border-color: transparent; }
/* Viewer zoom button */
.lb__zoom { width: auto; padding: 0 var(--space-4); gap: var(--space-2); display: inline-flex; align-items: center; border-radius: 999px; font: 600 var(--step-0)/1 var(--font-text); }
.lb__view:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* Every viewer button gets the lime ring too: the default ink ring vanished on the dark viewer (11 Oct 2026). .lb sets --focus. */

/* 13 Oct 2026 review fixes */
/* Wide: the fade before the pause button starts earlier, so no cut letter shows next to it. */
@media (min-width: 861px) { .ticker::after { width: calc(var(--gutter) + 44px + var(--space-10)); } }
/* The footer tick waits for the letters, so it never floats alone on the band. */
.js .footer__word svg { transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.34, 1.5, 0.64, 1); transition-delay: 0.6s; }
.js .footer:not(.is-in) .footer__word svg { opacity: 0; transform: scale(0.4); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .js .footer:not(.is-in) .footer__word svg { opacity: 1; transform: none; } }
/* Wide: a soft fade on the left edge too, so words do not appear cut in half. */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .ticker::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: var(--space-8); background: linear-gradient(to left, transparent, var(--paper)); pointer-events: none; }
}

/* ---------- Round five: wow (16 Oct 2026) ----------
   The home film (css/film.css, js/film.js) was removed on 20 Oct 2026 (it felt broken, see MOTION-LOG.md).
   All off with reduced motion; mouse pieces off on touch. */

/* 21. Page change. The header stays put and the page under it fades and rises. Chrome and Edge; others jump as before. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: nav; }
  ::view-transition-old(root) { animation: vt-out 0.22s var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vt-in 0.3s var(--ease-out) 0.22s both; }   /* starts when the old page is gone: overlapping fades showed the old page through the new one (18 Nov 2026) */
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* 23. Live preview. A concept card scrolls through the whole example site while the cursor rests on it
   (on every window since the home film went, 20 Oct 2026). */
.demo-card__shot { position: relative; }
.demo-card__shot .demo-card__live { aspect-ratio: auto; max-width: none; object-fit: fill; }
.demo-card__live { position: absolute; left: 0; right: 0; top: var(--bar); width: 100%; height: auto; opacity: 0; transform: translateY(0); transition: opacity 0.3s ease, transform 0.9s var(--ease-out); pointer-events: none; }
.demo-card.is-live .demo-card__live { opacity: 1; transform: translateY(calc(var(--travel, 0px) * -1)); transition: opacity 0.3s ease, transform var(--dur, 7s) cubic-bezier(0.45, 0, 0.25, 1) 0.15s; }

/* 24. Cursor label. A small ink pill follows the cursor over the example sites and says what a click does. */
.cur { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-4); border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font: 600 var(--fs-label)/1 var(--font-text); white-space: nowrap;
  translate: var(--cx, -200px) var(--cy, -200px); scale: 0.4; opacity: 0; transition: scale 0.28s var(--ease-out), opacity 0.2s ease; }
.cur.is-on { scale: 1; opacity: 1; }
.cur svg { width: 14px; height: 14px; }
.has-cur .demo-card, .has-cur .demo-card * { cursor: none; }

/* 25. Magnetic button. The lime button leans toward the cursor and springs back. Uses translate, so the soft press still works. */
.btn--lime.is-mag { translate: var(--bx, 0) var(--by, 0); transition: translate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.16s var(--ease-out), background-color 0.18s ease, color 0.18s ease; }
.btn--lime.is-mag.is-near { transition: translate 0.12s linear, transform 0.16s var(--ease-out), background-color 0.18s ease, color 0.18s ease; }

/* 27. Ticker lean. A fast scroll leans the words and speeds the line; scrolling up runs it backwards. */
.ticker__line { transform: skewX(var(--lean, 0deg)); }

/* 28. Big section titles (awwwards.com "Nominees"). A giant centred title, and a lime tick that pops onto the last word. */
.head--big { text-align: center; max-width: none; }
.head--big h2 { max-width: 13em; margin-inline: auto; font-size: clamp(var(--step-4), 0.6rem + 5.2vw, var(--step-10)); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.head--big p { margin-inline: auto; }
.pop { display: inline-block; width: 0.44em; height: 0.44em; margin-left: 0.08em; vertical-align: 0.82em; transform: rotate(-12deg); }
.pop svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js .pop { transition: transform 0.6s cubic-bezier(0.34, 1.7, 0.64, 1) 0.2s; }
  .js .head--big:not(.is-in) .pop { transform: scale(0) rotate(-40deg); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-card__live, .cur { display: none; }
  .btn--lime.is-mag { translate: none; }
  .ticker__line { transform: none; }
}

