/* Occhio di Lince. Same world as davidegiacomel.space: periwinkle, navy, lime, Bricolage Grotesque, the same buttons,
   highlighter and entrance. WHY the font is served from here: no visitor address goes to Google. SIL Open Font License. */
@font-face {
  font-family: "Bricolage Grotesque"; src: url("/bricolage.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
:root {
  --hero: oklch(0.70 0.14 280);
  --ink: oklch(0.21 0.05 276);
  --ink-soft: oklch(0.33 0.05 276);
  --ink-raised: oklch(0.27 0.05 276);  /* the input card on the navy hero */
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.012 280);
  --muted: oklch(0.47 0.03 276);
  --line: oklch(0.89 0.02 280);
  --lilac: oklch(0.83 0.08 280);
  --accent: oklch(0.93 0.18 118);
  --on-dark: oklch(0.97 0.01 280);
  --target: #c9f0a8;     /* the green of a target cell in the real Sheet */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  --bar: 4rem;
  --eye: 7.5rem;         /* the lime disc of the eye at the throat */
  --section: clamp(4rem, 8vw, 6.5rem);  /* a section's top and bottom padding; also the navy under the hero's scheme */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-soft) var(--surface); accent-color: var(--ink); }
body {
  margin: 0; background: var(--bg); color: var(--ink); caret-color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-optical-sizing: auto;
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem); line-height: 1.6; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; font-weight: 750; letter-spacing: -0.03em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-underline-offset .3s var(--ease); }
a:hover { text-underline-offset: 0.32em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 30; padding: .6rem 1rem; background: var(--ink); color: var(--on-dark); }
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; }

/* ---------- buttons (as on davidegiacomel.space) ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .8rem 1.3rem;
  border-radius: 999px; font-weight: 650; font-size: .95rem; text-decoration: none;
  background: var(--ink); color: var(--on-dark);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.small { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .9rem; }

/* the lime highlighter under key words */
.hl {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / 100% 0.32em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .06em;
}

/* ---------- bar ---------- */
/* WHY sticky and the hero's violet with a soft shadow: the same bar as the personal site, so the two read as one maker. */
.bar { position: sticky; top: 0; z-index: 20; background: var(--hero); box-shadow: 0 .6rem 1.5rem -1rem oklch(0.21 0.05 276 / 0.55); }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: var(--bar); }
.id { display: flex; align-items: center; gap: 1rem; min-width: 0; }
/* the tool's own "Powered by" line, quieter than the name: a hairline divider, small text, the domain in bold */
.by { padding-left: 1rem; border-left: 1px solid oklch(0.21 0.05 276 / 0.3); font-size: .85rem; text-decoration: none; white-space: nowrap; }
.by b { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; white-space: nowrap; }
.logo { width: 2.6rem; height: 2.6rem; flex: none; }
.brand span { font-size: 1.3rem; font-weight: 750; letter-spacing: .005em; font-variation-settings: "opsz" 96; }
/* WHY the email here (plan LINCE-HERO step 1): the hero lost its buttons to the scheme, so the bar carries both ways to ask */
.cta { display: flex; align-items: center; gap: .5rem; flex: none; }
.bar .btn { white-space: nowrap; }
.mail { padding-inline: .95rem; }
/* WHY .sr and no aria-label under 72rem: the address stays the accessible name, the same words a voice user reads (WCAG 2.5.3) */
@media (max-width: 72rem) {
  .mail { width: 2.5rem; padding: 0; justify-content: center; }
  .mail span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- hero: the page's one navy band ---------- */
/* WHY navy at the top (plan LINCE-HERO): the scheme says the product in one look, and its lime tunnel needs the dark. */
/* The band is .stage; the white after it is the page. --gap = the navy between the copy and the scheme.
   WHY --section under the scheme (Davide, 2026-11-17): the navy under the last card matches the white between the band and
   the next title ("Guardalo in azione"), which is a section's top padding.
   WHY the title close under the bar and more navy before the scheme (Davide, 2026-11-17, at 1243x880): about 56-64px over
   the title, 64-80px between the subtitle and the scheme on desktop, so the copy reads as the band's heading.
   WHY the band never grows to the screen's height (Davide, 2026-11-17: 160px of empty navy over the title and 150px under
   the subtitle at 1276x1082): its height is its content; on tall screens more of the white page shows under it. */
.hero { --gap: clamp(2.5rem, 5.5vw, 5rem); }
.stage { background: var(--ink); color: var(--on-dark); overflow: clip; padding-block: clamp(2.5rem, 4.5vw, 4rem) var(--section); }
.hero :focus-visible { outline-color: var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 4.1rem); letter-spacing: -0.035em; }
/* WHY (Davide, 2026-11-17): with the tight tracking the apostrophe of "L'AI" vanished and it read "LAI". Italian puts no
   space after it, so the apostrophe gets a little room of its own instead. */
.hero h1 .ap { margin-inline: .06em; }
/* WHY a full highlight with dark letters (Davide, 2026-11-17): on navy the light letters over the band of "Vediamolo
   insieme" blurred where they crossed it; a thin line and a band under the letters were not his style either. */
.hero h1 .hl { white-space: nowrap; color: var(--ink); background-position: 0 0; background-size: 100% 100%; padding-inline: .12em; }
/* WHY close under the title (Davide, 2026-11-17): title and subtitle read as one block */
.lede { margin-top: .4rem; max-width: 44ch; font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem); }
[id] { scroll-margin-top: calc(var(--bar) + 1.5rem); }

/* ---------- the scheme: sites swirl into the tunnel, the eye reads them, the targets come out ---------- */
/* WHY a grid with the throat split in two equal columns: the eye spans both, so the line between them is its centre;
   the mouth ends on that line and the exit starts on it, and no offset can leave the tunnel off the eye. */
.scheme {
  container-type: inline-size; position: relative; display: grid;
  margin-top: var(--gap);
  grid-template-columns: 40% 12.5% 12.5% minmax(0, 1fr); grid-template-rows: auto auto;
}
/* WHY capped by the viewport's height (plan LINCE-SCROLL step 8): real laptop windows are short (1366x650 in Chrome); the
   scheme alone must fit under the bar to be pinned. Its height is about 14.6% of its width (half the mouth) plus about
   22rem (the card under the eye), so width <= (height left - 22rem) / 0.146. 48rem floor: below it, no pin. */
@media (min-width: 64.01rem) {
  .scheme { width: min(100%, max(48rem, calc((100svh - var(--bar) - 3rem - 22rem) * 6.85))); margin-inline: auto; }
}
/* The pin, added by lince.js. WHY two kinds: .pin-all when the band's title and scheme fit (with a strip of the white page
   under the band where the screen is tall enough: Davide, the visitor sees there is more below), the band stays still while
   white space passes under it; .pin when only
   the scheme fits (short laptops): the copy scrolls away and the scheme stays, over navy space.
   WHY lince.js may narrow the scheme for .pin-all (Davide, 2026-11-17): the title must stay on screen while the scheme
   runs, so a smaller scheme with the title beats a bigger one without it; .pin only where even that cannot fit. */
.stage-space, .pin-space { display: none; }
.hero.pin-all .stage { position: sticky; top: var(--bar); }
.hero.pin-all .stage-space { display: block; height: 200svh; }
/* WHY 200svh: at 150 the sites rushed into the eye (Davide) */
.hero.pin .pin-space { display: block; height: 200svh; }
/* centred in the space under the bar (--sh = the scheme's height, set by lince.js), at least 1rem under the bar */
.hero.pin .scheme { position: sticky; top: max(calc(var(--bar) + 1rem), calc(var(--bar) + (100svh - var(--bar) - var(--sh, 0px)) / 2)); }

/* .swirl holds the tunnel, .flock the chips: the same box (same grid area, same aspect), so the same cqi */
.swirl, .flock { grid-area: 1 / 1 / 2 / 3; align-self: center; position: relative; aspect-ratio: 9 / 5; container-type: inline-size; }
/* the tunnel fades in from the dark at the open end */
.swirl { mask-image: linear-gradient(to right, transparent, #000 20%); }
/* WHY over the eye (z-index above .throat): the chips are seen going into the pupil, not behind the disc.
   WHY the anchor is the pupil, not the disc's centre: the mark's pupil sits 9.5 of its 64 units under the centre, and the
   mark is 76% of the disc, so 0.1128 x --eye lower. The perspective starts there too, so depth pulls toward the pupil.
   --turn turns the whirl's axis (down in the vertical layout); --rk scales the distance, --hk the whirl's radius; --lift starts
   the axis on the tunnel's own axis (the disc's centre line) and bends it into the pupil on the way. */
.flock {
  z-index: 3; pointer-events: none;
  --ax: 100%; --ay: calc(50% + var(--eye) * .1128); --turn: 0deg; --rk: 1; --hk: .22; --spin: 540deg; --lift: calc(var(--eye) * -.1128);
  perspective: 60cqi; perspective-origin: var(--ax) var(--ay);
}
.tun { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tun path, .tun ellipse { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tun ellipse { stroke-width: 1.25; opacity: .4; }
.tun-v, .tun-xv { display: none; }
/* WHY absolute with a grid area: the area is its box, and an SVG's own height never stretches the rows.
   The exit horn opens to the height of the four rows (centred on the eye like them), ending just inside the first and last. */
.tun-x { grid-area: 1 / 3 / 2 / 4; height: 9.5rem; margin-block: auto; }

/* WHY a whirl in 3D (Davide, 2026-11-17: the sites must swirl, go up and down, and enter the pupil): each chip sits on the
   pupil and runs a cone-shaped spiral around the tunnel's axis: --D back along the axis, rotateX(--T) translateY(--H)
   rotateX(-T) puts it on a ring of radius --H around the axis, always facing the visitor. Both shrink to zero while --T
   turns 1.5 times, so the chip swings up and down, smaller at the back, and ends in the pupil. The ring is pushed back by
   --H (translateZ) so the perspective only ever shrinks a chip (no blurry upscaled text). Each function interpolates on
   its own, so two keyframes give the whole spiral. The cone stays inside the horn (its radius is 0.22 x the distance; the
   horn's is about 0.28 x the square root of it). WHY two scales: their product shrinks slowly, then fast (0.35 at 85% of
   the path, 0.1 at the end), so a chip is still seen as a chip over the eye before it drops into the pupil. --p places a chip of the still frame on its path. */
.chip {
  --D: calc(var(--r0) * var(--rk) * 1cqi); --H: calc(var(--D) * var(--hk));
  --q: var(--p, 0); --T: calc(var(--ph) + var(--spin) * var(--q));
  position: absolute; left: var(--ax); top: var(--ay); z-index: 1;
  padding: .35em .8em; border-radius: 999px; background: var(--bg); color: var(--ink); white-space: nowrap;
  font-size: clamp(.78rem, 2.4cqi, 1.05rem); font-weight: 600; line-height: 1.2;
  box-shadow: 0 .5rem 1rem -.6rem oklch(0 0 0 / 0.6);
  transform: rotate(var(--turn)) translateX(calc(var(--D) * (var(--q) - 1))) translateY(calc(var(--lift) * (1 - var(--q)))) translateZ(calc(var(--H) * (var(--q) - 1)))
    rotateX(var(--T)) translateY(calc(var(--H) * (1 - var(--q)))) rotateX(calc(-1 * var(--T))) rotate(calc(-1 * var(--turn)))
    translate(-50%, -50%) scale(calc(1 - .95 * var(--q))) scale(calc(1 + var(--q)));
  opacity: 0;
}
/* the still frame (no JS, reduced motion): a few chips placed along their paths */
.chip.s { opacity: 1; }

.throat {
  grid-area: 1 / 2 / 2 / 4; justify-self: center; align-self: center; z-index: 2; position: relative;
  display: grid; place-items: center; width: var(--eye); aspect-ratio: 1; border-radius: 50%; background: var(--accent);
  /* a navy gap between the converging lines and the disc, so they meet it cleanly */
  box-shadow: 0 0 0 .45rem var(--ink);
}
/* color = the lids' fill: the disc's lime, so a shut eye melts into the disc */
.throat svg { width: 76%; height: 76%; overflow: visible; color: var(--accent); }

/* what goes in: the tool's own form, filled with an invented search (plan LINCE-SCROLL step 5) */
.ask {
  grid-area: 2 / 2 / 3 / 4; justify-self: center; width: min(100%, 18rem); z-index: 2;
  /* WHY this pull: it tucks the card under the eye, where the horn is narrow; 14.58cqi is half the mouth's height (52.5% x 5/9) */
  margin-top: calc(6.25rem - 14.58cqi); padding: .9rem 1rem 1rem;
  border-radius: 1rem; background: var(--bg); color: var(--ink); box-shadow: 0 1rem 2rem -1rem oklch(0 0 0 / 0.6);
}
.ask-h { font-size: .95rem; font-weight: 750; letter-spacing: -0.01em; }
/* WHY "(esempio)" here (Davide, 2026-11-17): the heading over the rows went; the invented names stay marked (PRODUCT.md) */
.ask-h span { color: var(--ink-soft); font-weight: 600; }
.ask dl { display: grid; gap: .6rem; margin: .65rem 0 0; }
.ask dt { color: var(--ink-soft); font-size: .8rem; font-weight: 650; line-height: 1.3; }
/* the value in a box like the tool's input: real text, nothing to type */
.ask dd { margin: .25rem 0 0; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); font-size: .92rem; font-weight: 600; line-height: 1.3; }

/* what comes out: only the targets, best first */
.exit { grid-area: 1 / 4 / 2 / 5; align-self: center; position: relative; display: grid; gap: .8rem; padding-left: .5rem; }
.rows ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rows li {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem .45rem .45rem .95rem;
  border-radius: .7rem; background: var(--bg); color: var(--ink); font-weight: 650; line-height: 1.3; transform-origin: left center;
}
.rows li b { flex: none; min-width: 3rem; padding: .25rem 0; border-radius: .5rem; background: var(--target); text-align: center; font-size: 1.1rem; font-weight: 750; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
section:not(.hero) { padding-block: var(--section); }
section h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); margin-bottom: clamp(2rem, 4vw, 3rem); }

/* watch it: the recording of the real tool. WHY white: right under the navy hero, and the prices keep the lilac band */
.watch video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 1.25rem; background: var(--ink); box-shadow: 0 2rem 3.5rem -2.25rem oklch(0.21 0.05 276 / 0.7); }
.player { position: relative; }
/* the button lince.js puts over the poster: all of it but the strip of the native controls */
.player .start { position: absolute; inset: 0 0 4rem 0; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 1.25rem 1.25rem 0 0; }
.player .start:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* prices */
.plans { background: var(--surface); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.cards li { padding: clamp(1.5rem, 2.5vw, 2rem); border-radius: 1.5rem; background: var(--bg); box-shadow: 0 1.25rem 2.5rem -2rem oklch(0.21 0.05 276 / 0.5); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cards li:hover { transform: translateY(-3px); box-shadow: 0 1.75rem 3rem -2rem oklch(0.21 0.05 276 / 0.6); }
.cards h3 { font-size: 1.35rem; }
.price { margin-top: 1rem; color: var(--muted); }
.price b { display: block; color: var(--ink); font-size: clamp(2.4rem, 3.6vw, 3.1rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.qty { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 1.2rem; font-weight: 700; }
.unit { color: var(--muted); }
/* WHY a small box (Davide, 2026-11-17): as bare text under the cards the terms read as a stray line, not as a note */
.vat { width: fit-content; margin-top: 1.5rem; padding: .75rem 1.1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--bg); color: var(--ink-soft); font-weight: 600; }

/* close */
.talk { background: var(--hero); text-align: center; }
/* the arch of davidegiacomel.space with its offset ink outline, small: the same person, the same frame */
.me { position: relative; display: block; width: 8rem; height: 9.7rem; margin: 0 auto 2rem; }
.me img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.me::before { content: ""; position: absolute; inset: 0; translate: -.7rem -.7rem; border: 2px solid oklch(0.21 0.05 276 / 0.55); border-bottom: 0; border-radius: 999px 999px 0 0; }
.talk h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); margin-bottom: 1.5rem; }
.talk p { margin-inline: auto; max-width: 44ch; font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); }
.talk .actions { justify-content: center; margin-top: 2rem; }

.foot { background: var(--hero); border-top: 1px solid oklch(0.21 0.05 276 / 0.15); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; font-size: .95rem; }
.foot .note { flex-basis: 100%; font-size: .85rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .hero .hl { animation: wipe-full 1.1s var(--ease) 650ms both; }

  /* WHY everything hangs on html.js: lince.js adds that class before the body paints; without the file the CSS shows
     the still last frame, never a frame 0. */
  /* The opening plays once by time on load and is never paused (plan LINCE-SCROLL step 7): with the scheme pinned,
     scroll 0 must already show the tunnel drawn and the eye open, not an empty navy area. */
  html.js .scheme .tun-m { animation: open-l .8s var(--ease) .15s both; }
  html.js .scheme .tun-v { animation: open-u .8s var(--ease) .15s both; }
  html.js .scheme .tun-x { animation: open-r .8s var(--ease) .15s both; }
  html.js .scheme .tun-xv { animation: open-d .8s var(--ease) .15s both; }
  html.js .scheme .lid-o { animation: eye-open .7s var(--ease) .1s both; }
  /* The run is driven by scroll: one virtual 10 s timeline (RUN_MS in lince.js), always paused; lince.js sets every
     animation's currentTime to progress x 10 s, so each --d delay places its piece on that timeline. WHY no pause
     button: the visitor moves it by scrolling, so it never starts by itself (WCAG 2.2.2). The names here are the
     list lince.js scrubs: swirl, blink, out, fit. */
  /* 10 chips 0.8 s apart, 2 s each: one or two on screen; the first is mid-path at 0. A soft ease-in: they gather speed
     toward the throat but no longer rush into it (Davide) */
  html.js .scheme .chip { animation: swirl 2s cubic-bezier(.35, 0, .7, .75) var(--d) both paused; }
  /* three slow blinks over the run, not tied to the chips (Davide); each row comes out on its own, its score green 0.4 s after */
  html.js .scheme .lid { animation: blink 10s ease-in-out both paused; }
  html.js .scheme .rows li { animation: out .6s var(--ease) var(--d) both paused; }
  html.js .scheme .rows li b { animation: fit .35s ease calc(var(--d) + 1s) both paused; }

  @keyframes rise { from { opacity: 0; transform: translateY(1.2rem); filter: blur(6px); } }
  @keyframes wipe { from { background-size: 0% 0.32em; } }
  @keyframes wipe-full { from { background-size: 0% 100%; } }
  @keyframes open-l { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
  @keyframes open-r { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  @keyframes open-u { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
  @keyframes open-d { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
  /* the lids slide (translate only, never scale): sharp at any frame the scroll stops on */
  @keyframes eye-open { from { transform: translateY(var(--dy)); } }
  /* the same functions in the same order at both ends, so each one interpolates on its own (the spiral of .chip) */
  @keyframes swirl {
    0% {
      opacity: 0;
      transform: rotate(var(--turn)) translateX(calc(-1 * var(--D))) translateY(var(--lift)) translateZ(calc(-1 * var(--H))) rotateX(var(--ph))
        translateY(var(--H)) rotateX(calc(-1 * var(--ph))) rotate(calc(-1 * var(--turn))) translate(-50%, -50%) scale(1) scale(1);
    }
    14%, 92% { opacity: 1; }
    100% {
      opacity: 0;
      transform: rotate(var(--turn)) translateX(0) translateY(0) translateZ(0) rotateX(calc(var(--ph) + var(--spin)))
        translateY(0) rotateX(calc(-1 * (var(--ph) + var(--spin)))) rotate(calc(-1 * var(--turn))) translate(-50%, -50%) scale(.05) scale(2);
    }
  }
  @keyframes blink {
    0%, 16%, 28%, 44%, 56%, 72%, 84%, 100% { transform: none; }
    22%, 50%, 78% { transform: translateY(var(--dy)); }
  }
  @keyframes out { from { opacity: 0; transform: translateX(-2rem) scale(.9); } }
  @keyframes fit { from { background-color: var(--bg); } }

  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .cards .reveal:nth-child(2) { animation-range: entry 8% entry 63%; }
    .cards .reveal:nth-child(3) { animation-range: entry 16% entry 71%; }
    .talk .hl { animation: wipe linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
    @keyframes reveal { from { opacity: 0; translate: 0 2.5rem; scale: .97; } }
  }
}

/* ---------- smaller screens ---------- */
@media (max-width: 64rem) {
  /* the scheme turns vertical: the chips come down into the eye, the card under it, then the rows */
  .scheme { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 2.25rem auto; max-width: 30rem; margin-inline: auto; }
  .swirl, .flock { grid-area: 1 / 1; aspect-ratio: 5 / 4; }
  .swirl { mask-image: linear-gradient(to bottom, transparent, #000 22%); }
  /* the horn is wider for its length here, so the whirl is too; 115cqi of the scheme = about the same depth as on desktop */
  .flock { --ax: 50%; --ay: calc(100% + var(--eye) * .1128); --turn: 90deg; --rk: .8; --hk: .34; --lift: 0px; perspective: 115cqi; }
  .chip { font-size: clamp(.72rem, 3.3cqi, .9rem); }
  .tun-m, .tun-x { display: none; }
  .tun-v { display: block; }
  /* the eye's centre sits on the mouth's bottom edge: that point is the start of the exit horn too (row 2's top) */
  .throat { grid-area: 2 / 1; margin-top: calc(var(--eye) / -2); }
  .ask { grid-area: 3 / 1; margin-top: 1.25rem; width: min(100%, 22rem); }
  .tun-xv { display: block; grid-area: 2 / 1 / 5 / 2; }
  .exit { grid-area: 5 / 1; padding-left: 0; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; }
}
@media (min-width: 48rem) and (max-width: 64rem) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}
@media (max-width: 40rem) {
  .brand span { font-size: 1.15rem; }
  .bar .btn.small:not(.mail) { padding-inline: .9rem; }
  .talk .actions .btn { width: 100%; justify-content: center; }
  /* the phone cut is 4:5 (demo-phone.mp4); the 16:9 poster is cropped to its middle until play */
  .watch video { aspect-ratio: 4 / 5; object-fit: cover; }
  /* no room beside the name and the two pills; the footer still names the maker */
  .by { display: none; }
}
/* WHY "Demo": with the mail pill, "Chiedi una demo" no longer fits beside the name on a 390px phone; the hidden words stay in the name */
@media (max-width: 30rem) {
  .demo-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .demo-c { text-transform: capitalize; }
}
