/* ==========================================================================
   components.css (0.5): the ready-made components. They read only the tokens from base.css.
   Contents:   1 titles · 2 badge and labels · 3 buttons (six families) · 4 cards (shells, halo) and grids
               5 the scene and its stage · 6 scene backgrounds · 7 textures and light · 8 focus
               9 scene objects · 10 hover moves · 11 drawn dates · 12 site frames
               13 section shapes · 14 image placeholder · 15 pricing tiers · 16 questions · 17 page endings · 18 motion
               19 components new in 0.5: title voices, spotlight list, stateful button, rolling digits, action bar,
                  connecting line, shrinking photo, shapes sampled from the place, embossing, stamp, floating footer
               20 devices (new in 0.7): the phone (Android-like, iPhone-like with its island), the phone cut off at the bottom, the tablet, the laptop,
                  the status bar, the slots for the official store badges
   Copy into the page the blocks you use, and only those. Nothing here is mandatory:
   each component is picked for a reason (references/repertoire.md).
   ========================================================================== */

/* ---------- 1. Titles ----------
   <h1 class="title">Your workshop, <span class="v-italic">finally tidy.</span></h1>
   A second voice is a choice, not a rule: a title with a single voice is fine. One treatment per page. */
.title { font-family: var(--f-title); font-weight: var(--title-weight); font-size: var(--t-h1); line-height: var(--title-leading); letter-spacing: var(--title-tracking); text-transform: var(--title-case); text-wrap: balance; }
.title--2 { font-size: var(--t-h2); }
.title--3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.02em; text-transform: none; }
[data-outfit="poster"] .title--3 { font-family: var(--f-text); font-weight: 700; letter-spacing: -0.02em; }
[data-outfit="editorial"] .title--3 { font-family: var(--f-text); font-weight: 500; letter-spacing: -0.015em; }

.v-color { color: var(--accent-text); background: linear-gradient(transparent 60%, var(--marker) 60% 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.v-thin { font-weight: var(--thin-weight); color: var(--ink-2); }                      /* two tones: the sentence has two beats */
.v-italic { font-family: var(--f-italic); font-style: italic; font-weight: 400; letter-spacing: -0.015em; text-transform: none; font-size: 1.07em; }   /* one word in serif: warmth on that word */
[data-outfit="editorial"] .v-italic, [data-outfit="cozy"] .v-italic { color: var(--accent-text); }
.v-marker { color: var(--on-accent); background: linear-gradient(transparent 10%, var(--accent) 10% 92%, transparent 92%); padding-inline: 0.14em; margin-inline: -0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* the highlighted word: a direct tone */
/* the word underlined in marker: an uneven, hand-drawn stroke that draws itself in on arrival */
.v-underline { position: relative; white-space: nowrap; }
.v-underline::after { content: ""; position: absolute; left: -0.06em; right: -0.06em; bottom: -0.16em; height: 0.3em; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12c28-6 52-8 80-6 22 2 40 6 62 4 18-2 34-5 52-3M9 17c40-5 92-6 150-3' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12c28-6 52-8 80-6 22 2 40 6 62 4 18-2 34-5 52-3M9 17c40-5 92-6 150-3' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
html.js [data-reveal] .v-underline::after, html.js .v-underline[data-reveal]::after { clip-path: inset(0 100% 0 0); transition: clip-path 0.7s var(--ease) 0.45s; }
html.js [data-reveal].in-view .v-underline::after, html.js .v-underline[data-reveal].in-view::after { clip-path: inset(0); }
/* the word caught in a selection frame (when the product is a tool): <span class="v-frame frame" data-name="Title">tidy.</span> — see 12 */
.v-frame { color: var(--accent-text); padding-inline: 0.14em; margin-inline: 0.04em; }
/* an icon inside the sentence, when a word is better drawn than written */
/* the tile sits ON the text baseline and is as tall as the capitals: an inline block whose content is clipped
   takes its bottom edge as its baseline (otherwise it takes the baseline of its drawing, and the tile hangs below the line) */
.title .inline-icon { position: relative; display: inline-block; overflow: hidden; width: 0.78em; height: 0.74em; border-radius: 0.22em; background: var(--accent); color: var(--on-accent); vertical-align: baseline; margin-inline: 0.06em; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0.1em 0.26em -0.1em color-mix(in oklch, var(--accent) 60%, transparent); }
.title .inline-icon svg { position: absolute; inset: 0; margin: auto; width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the title on the left, the sentence on the right: to open a section ("feels very Apple") */
.section-head { display: grid; gap: 1.25rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head > :first-child { display: grid; gap: 1.125rem; justify-items: start; }
@media (min-width: 860px) { .section-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; } .section-head > :last-child { justify-self: end; } }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-head--center > :first-child { justify-items: center; }
.section-head--center > :last-child { justify-self: center; }

/* ---------- 2. The badge and the labels ----------
   <p class="badge">Bookings open until June 30</p>          above the page headline: it carries a FACT
   <p class="badge"><i class="badge__dot"></i>Open now</p>   the dot: only for "right now"
   <p class="label">Step 01</p>                              on a card: a number, a duration, a name
   Never a colored square or dot "for decoration": a sign means something, or it is not there. */
.badge { display: inline-flex; align-items: center; gap: 0.55rem; width: fit-content; max-width: 100%; padding: 0.5rem 0.9rem; border: var(--border); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 var(--t-small) / 1.2 var(--f-text); box-shadow: var(--sheen), 0 1px 2px color-mix(in oklch, var(--shadow-tint) 8%, transparent); }
[data-outfit="workshop"] .badge, [data-outfit="editorial"] .badge { border-radius: var(--r-small); font: 500 var(--t-mono) / 1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.badge__dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.2rem color-mix(in oklch, var(--accent) 22%, transparent); }
.label { display: inline-flex; align-items: center; gap: 0.5em; width: fit-content; padding: 0.3rem 0.55rem; border: 1px dashed var(--stroke); color: var(--ink-2); font: 500 var(--t-mono) / 1 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
[data-outfit="poster"] .label, [data-outfit="soft"] .label, [data-outfit="cozy"] .label { border-style: solid; border-color: var(--hairline); border-radius: 999px; padding: 0.35rem 0.7rem; letter-spacing: 0.02em; text-transform: none; font-size: 0.8125rem; }

/* ---------- 3. Buttons: six families, pick ONE for the page (references/repertoire.md) ----------
   <a class="button" href="#book">Book a table</a>
   One solid accent button per screen. No icon by default: an arrow or an icon has to earn its place, or it goes.
   With an arrow: <a class="button">See the quote <span class="button__icon" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M3 8h9.5M8.5 4l4 4-4 4"/></svg></span></a> */
.button { --h: 3.25rem; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: var(--h); padding: 0 1.4rem; border: 0; border-radius: var(--r-button); background: var(--accent); color: var(--on-accent); font: 600 1rem / 1 var(--f-text); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.3s var(--ease), filter 0.25s; -webkit-tap-highlight-color: transparent; }
.button:hover { filter: brightness(1.05); }
.button:active { transform: scale(0.975); }
.button:has(.button__icon) { padding-inline: 1.375rem 0.5rem; }
.button__icon { display: grid; place-items: center; width: calc(var(--h) - 1rem); height: calc(var(--h) - 1rem); border-radius: calc(var(--r-button) - 0.3rem); background: var(--on-accent); color: var(--accent); overflow: hidden; }
.button__icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button:hover .button__icon svg, .button:focus-visible .button__icon svg { animation: arrow-pass 0.55s var(--ease); }
@keyframes arrow-pass { 0% { transform: translateX(0); } 45% { transform: translateX(160%); } 46% { transform: translateX(-160%); } 100% { transform: translateX(0); } }
/* a. the radiant pill: the single action of a dark or technical page */
.button--radiant { border-radius: 999px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 0 0 1px color-mix(in oklch, var(--accent) 60%, transparent), 0 0.5rem 1.6rem -0.3rem color-mix(in oklch, var(--accent) 75%, transparent), 0 0 3.2rem -0.4rem color-mix(in oklch, var(--accent) 55%, transparent); }
.button--radiant:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 0 0 1px var(--accent), 0 0.6rem 2rem -0.2rem var(--accent), 0 0 4.2rem -0.2rem color-mix(in oklch, var(--accent) 75%, transparent); }
/* b. the two blocks: a machine look (the word, then the arrow in its own block) */
.button--blocks { border-radius: 0; padding: 0; gap: 2px; background: none; color: var(--on-accent); font: 600 0.875rem / 1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.button--blocks > span { display: grid; place-items: center; min-height: var(--h); padding-inline: 1.25rem; background: var(--accent); transition: background-color 0.25s, translate 0.3s var(--ease); }
.button--blocks > span:last-child { padding-inline: 0; width: var(--h); }
.button--blocks > span svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.button--blocks:hover > span:last-child { translate: 0.25rem 0; }
/* c. the thick-edged key: a playful brand; it sinks when pressed */
.button--key { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0.3rem 0 var(--accent-deep); transform: translateY(-0.15rem); }
.button--key:hover { transform: translateY(-0.25rem); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0.4rem 0 var(--accent-deep); }
.button--key:active { transform: translateY(0.1rem); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0.05rem 0 var(--accent-deep); }
/* d. the domed button: a polished product; light on top, a shadow in its own color underneath */
.button--domed { background: radial-gradient(120% 140% at 50% 0%, color-mix(in oklch, white 26%, var(--accent)), var(--accent) 62%, color-mix(in oklch, var(--accent) 86%, black)); box-shadow: inset 0 1.5px 0 rgb(255 255 255 / 0.5), inset 0 -3px 6px rgb(0 0 0 / 0.1), 0 1px 2px color-mix(in oklch, var(--accent-deep) 50%, transparent), 0 0.75rem 1.5rem -0.5rem color-mix(in oklch, var(--accent) 65%, transparent); }
.button--domed:hover { transform: translateY(-1px); box-shadow: inset 0 1.5px 0 rgb(255 255 255 / 0.55), inset 0 -3px 6px rgb(0 0 0 / 0.1), 0 1px 2px color-mix(in oklch, var(--accent-deep) 50%, transparent), 0 1.1rem 2rem -0.5rem color-mix(in oklch, var(--accent) 75%, transparent); }
/* e. the iridescent outline: a restrained page that needs just one touch of light (the button is dark, its edge shines) */
.button--iridescent { border: 2px solid transparent; background: linear-gradient(var(--dark), var(--dark)) padding-box, conic-gradient(from var(--angle, 200deg), var(--a-pale), var(--a-dark), var(--on-dark), var(--a), var(--a-pale)) border-box; color: var(--on-dark); box-shadow: 0 0.6rem 1.4rem -0.7rem color-mix(in oklch, var(--shadow-tint) 60%, transparent); }
.button--iridescent:hover { --angle: 320deg; }
/* f. the face (or the video): when what the visitor buys is a person. Only with a REAL photo supplied by the client. */
.button--face { padding-inline: 0.4rem 1.4rem; border-radius: 999px; }
.button--face img, .button--face video { width: calc(var(--h) - 0.8rem); height: calc(var(--h) - 0.8rem); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--on-accent); }
/* the quiet buttons, for everything that is not the action */
.button--ink { background: var(--ink); color: var(--bg); }
.button--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.button--secondary:hover { background: var(--sunken); filter: none; }
.button--link { min-height: 2.75rem; padding: 0; background: none; color: var(--ink); border-radius: 4px; text-decoration: underline; text-decoration-color: var(--stroke); text-underline-offset: 0.3em; }
.button--link:hover { text-decoration-color: var(--accent-text); filter: none; }
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
@media (max-width: 520px) { .buttons > .button:not(.button--link) { flex: 1 1 100%; } }

/* ---------- 4. Cards and grids ----------
   <article class="card" tabindex="0">
     <div class="card__scene bg bg--grid"><div class="stage"> …the layers of the scene… </div></div>
     <div class="card__text"><h3 class="title title--3">The fact, as a title</h3><p>Two lines at most.</p></div>
   </article>
   Three shells: the double shell (default), the fade (gray at the top, white at the bottom, no frame), the bare card. */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 6px; border: var(--border); border-radius: var(--r-shell); background: var(--card); box-shadow: var(--shadow); }
.card__scene { border-radius: var(--r-card); background-color: var(--sunken); }
.card__text { display: grid; gap: 0.5rem; align-content: start; padding: 1.125rem 1rem 1.125rem; max-width: 34rem; }
.card__text p { color: var(--ink-2); font-size: var(--t-small); line-height: 1.45; text-wrap: pretty; }
.card__text .label { margin-bottom: 0.25rem; }
.card--fade { padding: 0; border-color: transparent; background: linear-gradient(180deg, var(--sunken), var(--card) 62%); box-shadow: var(--sheen), var(--shadow); }
.card--fade .card__scene, .card--bare .card__scene { background-color: transparent; border-radius: var(--r-shell) var(--r-shell) 0 0; }
.card--fade .card__text, .card--bare .card__text { padding: 1.25rem 1.375rem 1.5rem; }
.card--bare { padding: 0; border-color: transparent; }
.card--text-top { flex-direction: column-reverse; }                                   /* the text on top, the scene below */
.card--text-top.card--fade { background: linear-gradient(0deg, var(--sunken), var(--card) 62%); }
.card--text-top.card--fade .card__scene, .card--text-top.card--bare .card__scene { border-radius: 0 0 var(--r-shell) var(--r-shell); }
.card--dark { border-color: transparent; }                                       /* the tokens flip in base.css */
.card--tint { --card: var(--accent-pale); --sunken: color-mix(in oklch, var(--accent-pale) 82%, var(--accent)); --hairline: color-mix(in oklch, var(--accent-pale) 84%, var(--accent-deep)); --stroke: color-mix(in oklch, var(--accent-pale) 66%, var(--accent-deep)); border-color: transparent; box-shadow: none; }
.card--tint .title { color: var(--accent-deep); }
/* the halo: a light in the brand color follows the mouse along the edge and inside the scene (motion.js sets --mx, --my) */
.card::after { content: ""; position: absolute; inset: -1px; z-index: 2; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: radial-gradient(15rem circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklch, var(--accent) 85%, transparent), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card__scene::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: radial-gradient(20rem circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklch, var(--accent) 9%, transparent), transparent 70%); }
@media (hover: hover) { .card:hover::after, .card:hover .card__scene::after { opacity: 1; } }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.125rem); }
.bento > * { grid-column: span 12; }
@media (min-width: 720px) {
  .bento--2-2 > :nth-child(4n + 1), .bento--2-2 > :nth-child(4n + 4) { grid-column: span 7; }      /* widths swap from one row to the next */
  .bento--2-2 > :nth-child(4n + 2), .bento--2-2 > :nth-child(4n + 3) { grid-column: span 5; }
  .bento--2-3 > :nth-child(-n + 2) { grid-column: span 6; }
  .bento--2-3 > :nth-child(n + 3) { grid-column: span 4; }
  .bento--3 > * { grid-column: span 4; }
  .bento--2 > * { grid-column: span 6; }
}
@media (min-width: 720px) and (max-width: 979px) { .bento--2-3 > :nth-child(n + 3), .bento--3 > * { grid-column: span 6; } .bento--2-3 > :nth-child(5), .bento--3 > :nth-child(3):last-child { grid-column: 4 / span 6; } }

/* ---------- 5. The scene and its stage ----------
   A scene is drawn on a STAGE 48 cells wide and 30 cells tall. Each layer is placed with its coordinates:
     style="--x:6;--y:4;--l:22"   (--x, --y: the top-left corner, in cells; --l, --h: width and height; --r: angle in degrees; --z: stacking order)
   (write --l:22 with no space before the colon). The stage scales with the card: at 390 px as at 1440,
   nothing spills out and nothing distorts. A layer may overflow the stage (negative coordinates or > 48): the card clips it.
   Inside a scene, 1em = one cell (about 10 px on a desktop): text sizes are written in em (1.1em, 1.6em…).
   Outside a card (the hero visual): <div class="scene" style="--gw:64;--gh:44;aspect-ratio:64/44"><div class="stage">…</div></div> */
.scene, .card__scene { position: relative; isolation: isolate; overflow: hidden; container-type: size; --u: min(100cqw / var(--gw, 48), 100cqh / var(--gh, 30)); }
.card__scene { height: clamp(15rem, 10.5rem + 12vw, 20rem); }
.scene--overflow { overflow: visible; }                                               /* the hero visual may let its layers overflow */
.stage { position: absolute; left: 50%; top: 50%; width: calc(var(--gw, 48) * var(--u)); height: calc(var(--gh, 30) * var(--u)); translate: -50% -50%; font-size: var(--u); line-height: 1.25; }
.stage--cover { --u: max(100cqw / var(--gw, 48), 100cqh / var(--gh, 30)); }      /* fills the whole scene, even if it gets cropped on two edges */
.stage > * { position: absolute; left: calc(var(--x, 0) * var(--u)); top: calc(var(--y, 0) * var(--u)); rotate: calc(var(--r, 0) * 1deg); z-index: var(--z, auto); }
.stage > svg { max-width: none; }
.stage > [style*="--l:"] { width: calc(var(--l) * var(--u)); }
.stage > [style*="--h:"] { height: calc(var(--h) * var(--u)); }
@supports not (width: 1cqw) { .scene, .card__scene { --u: 9px; } }

/* ---------- 6. Scene backgrounds: never empty, and they fade out where the text sits ----------
   <div class="card__scene bg bg--dots">   (+ .glow for a patch of light in the brand color)
   --fade sets the mask (default: visible at the top, gone at the bottom, where the text comes). */
.bg::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; -webkit-mask-image: var(--fade, linear-gradient(180deg, #000 25%, transparent 96%)); mask-image: var(--fade, linear-gradient(180deg, #000 25%, transparent 96%)); }
.bg--grid::before { background-image: linear-gradient(color-mix(in oklch, var(--stroke) 46%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklch, var(--stroke) 46%, transparent) 1px, transparent 1px); background-size: calc(4 * var(--u, 10px)) calc(4 * var(--u, 10px)); background-position: 50% -1px; }
.bg--dots::before { background-image: var(--tex-dots); background-size: calc(1.3 * var(--u, 10px)) calc(1.3 * var(--u, 10px)); }
.bg--stripes::before { background-image: var(--tex-stripes); }
.bg--hatch::before { background-image: var(--tex-hatch); }
.bg--rings::before { background-image: repeating-radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), transparent 0 calc(3.4 * var(--u, 10px) - 1px), color-mix(in oklch, var(--stroke) 50%, transparent) calc(3.4 * var(--u, 10px) - 1px) calc(3.4 * var(--u, 10px))); --fade: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #000 10%, transparent 72%); }
.bg--center::before { --fade: radial-gradient(ellipse at 50% 42%, #000 20%, transparent 78%); }
.bg--corner::before { --fade: linear-gradient(135deg, #000 10%, transparent 70%); }
/* .glow: a patch of light in the brand color, behind the lit object (--lx, --ly: its center; --lf: its strength; --lr: its radius) */
.glow { --lx: 50%; --ly: 52%; background-image: radial-gradient(circle at var(--lx) var(--ly), color-mix(in oklch, var(--accent) var(--lf, 22%), transparent), transparent var(--lr, 46%)); }

/* ---------- 7. Textures and light: lay them over a flat color, never on their own ----------
   .tex-hatch .tex-stripes .tex-dots: a fine pattern over the element's color (something taken, inactive, or a material)
   .tex-grain: grain (a pseudo-element; the element must be position: relative or absolute)
   .tex-raised: soft relief (round button, tile) · .tex-sunken: recessed · .tex-metal · .tex-paper · (.tex-emboss: block 19)
   .shadow-rest .shadow-float .shadow-far: the three shadow heights · .shadow-colored: a colored object casts a shadow of its own color */
.tex-hatch { background-image: var(--tex-hatch); }
.tex-stripes { background-image: var(--tex-stripes); }
.tex-dots { background-image: var(--tex-dots); background-size: 0.8em 0.8em; }
.tex-grain::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); mix-blend-mode: var(--grain-blend); opacity: var(--grain-strength, 0.32); pointer-events: none; }
.tex-raised { background: linear-gradient(180deg, var(--card), color-mix(in oklch, var(--sunken) 75%, var(--card))); box-shadow: var(--sheen), inset 0 -0.14em 0.2em color-mix(in oklch, var(--shadow-tint) 7%, transparent), var(--shadow-rest); }
.tex-sunken { background: var(--sunken); box-shadow: inset 0 0.12em 0.3em color-mix(in oklch, var(--shadow-tint) 26%, transparent), 0 1px 0 color-mix(in oklch, white 60%, transparent); }
.tex-metal { background: linear-gradient(105deg, oklch(0.58 0.006 260), oklch(0.93 0.003 260) 22%, oklch(0.7 0.006 260) 48%, oklch(0.95 0.003 260) 72%, oklch(0.6 0.006 260)); }
.tex-paper { background: linear-gradient(180deg, color-mix(in oklch, white 55%, var(--card)), var(--card)); border: 1px solid var(--hairline); }
.tex-domed { background: radial-gradient(circle at 34% 28%, color-mix(in oklch, white 42%, var(--accent)), var(--accent) 58%, var(--accent-deep) 118%); box-shadow: inset 0 -0.3em 0.6em color-mix(in oklch, black 16%, transparent), inset 0 0.1em 0.1em rgb(255 255 255 / 0.35), var(--glow); color: var(--on-accent); }
.shadow-rest { box-shadow: var(--sheen), var(--shadow-rest); }
.shadow-float { box-shadow: var(--sheen), var(--shadow-float); }
.shadow-far { box-shadow: var(--shadow-far); }
.shadow-colored { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), var(--glow); }
/* the contact shadow on the ground, under a standing object (a pin, a stand): <i class="ground-shadow" style="--x:..;--y:..;--l:4"></i> */
.ground-shadow { height: calc(var(--l, 4) * var(--u) * 0.22); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklch, var(--shadow-tint) var(--strength, 34%), transparent), transparent); }

/* ---------- 8. Focus: sharp in the center, pale and blurred at the edges ----------
   The subject has no class. The extras: .depth-2 (pale), .depth-3 (pale and blurred, often cropped by the edge). */
.depth-2 { opacity: 0.72; filter: blur(0.03em); box-shadow: none; }
.depth-3 { opacity: 0.48; filter: blur(0.1em); box-shadow: none; }

/* ---------- 9. Scene objects (all in em: they follow the scale of the stage) ---------- */
:where(.phone, .seal, .pin, .folder, .dial, .sheet, .key, .tex-grain, .snippet, .browser) { position: relative; }
/* the snippet: a small piece of a screen. It carries REAL content (a first name, a time, an amount); the gray bars go with it, never on their own. */
.snippet { display: grid; gap: 0.7em; align-content: start; padding: 1em 1.1em; border: 1px solid var(--hairline); border-radius: 1.2em; background: var(--card); box-shadow: var(--sheen), var(--shadow-rest); }
.snippet b, .snippet strong { font: 600 1.15em / 1.2 var(--f-text); letter-spacing: -0.01em; }
.snippet small { font: 500 0.95em / 1.2 var(--f-text); color: var(--ink-2); }
.row { display: flex; align-items: center; gap: 0.7em; min-width: 0; }
.row > .toggle, .row > .end { flex: none; margin-left: auto; }
.line { display: block; height: 0.62em; width: calc(var(--w, 100) * 1%); border-radius: 99px; background: linear-gradient(90deg, var(--hairline), color-mix(in oklch, var(--hairline) 55%, var(--card))); }
.line--pale { opacity: 0.6; height: 0.5em; }
.line--strong { background: var(--accent); box-shadow: 0 0.2em 0.6em -0.15em color-mix(in oklch, var(--accent) 70%, transparent); }
.stat { font: var(--title-weight) 2.6em / 1 var(--f-title); letter-spacing: var(--title-tracking); white-space: nowrap; }
.avatar { flex: none; display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--accent-pale); color: var(--accent-deep); font: 700 0.95em / 1 var(--f-text); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent-deep) 14%, transparent), inset 0 0.12em 0 rgb(255 255 255 / 0.5); }
.avatar--gray { background: var(--sunken); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hairline), inset 0 0.12em 0 rgb(255 255 255 / 0.5); }
/* the status pill, the colored-glass tag (often tilted 3 to 8 degrees), the cursor with a first name: the foreground */
.pill { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.5em 0.9em 0.5em 0.5em; border: 1px solid var(--hairline); border-radius: 99px; background: var(--card); color: var(--ink); font: 600 1.05em / 1 var(--f-text); white-space: nowrap; box-shadow: var(--sheen), var(--shadow-float); }
.pill > i { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4); }
.pill > i svg { width: 0.85em; height: 0.85em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pill--bare { padding-inline: 0.9em; }
.pill--accent { border: 0; background: linear-gradient(180deg, color-mix(in oklch, white 24%, var(--accent)), var(--accent)); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), var(--glow); }
.pill--accent > i { background: var(--on-accent); color: var(--accent); }
.tag { padding: 0.5em 0.8em; border-radius: 0.6em; background: linear-gradient(180deg, color-mix(in oklch, white 28%, var(--accent)), var(--accent)); color: var(--on-accent); font: 600 1em / 1 var(--f-text); white-space: nowrap; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.18), var(--glow); }
.tag--light { background: var(--card); color: var(--ink); box-shadow: var(--sheen), var(--shadow-float); border: 1px solid var(--hairline); }
.cursor { display: inline-flex; align-items: flex-start; pointer-events: none; z-index: 5; }
.cursor svg { width: 1.5em; height: 1.9em; fill: var(--ink); stroke: var(--card); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 0.15em 0.2em color-mix(in oklch, var(--shadow-tint) 35%, transparent)); }
.cursor b { margin: 1.4em 0 0 -0.1em; padding: 0.3em 0.6em; border-radius: 0.3em 0.8em 0.8em 0.8em; background: var(--accent); color: var(--on-accent); font: 600 0.95em / 1 var(--f-text); box-shadow: var(--glow); }
.cursor--gray b { background: var(--ink); color: var(--card); box-shadow: var(--shadow-rest); }
/* the browser window: <div class="browser"><div class="browser__bar"><i></i><i></i><i></i><span class="browser__url">client-name.com</span></div><div class="browser__body">…the real site, in miniature…</div></div> */
.browser { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--hairline); border-radius: 1.3em; background: var(--card); box-shadow: var(--sheen), var(--shadow-float); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 0.45em; padding: 0.7em 0.9em; border-bottom: 1px solid var(--hairline); background: color-mix(in oklch, var(--sunken) 55%, var(--card)); }
.browser__bar > i { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--hairline); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--ink) 8%, transparent); }
.browser__url { flex: 1; margin-left: 0.7em; padding: 0.38em 0.9em; border: 1px solid var(--hairline); border-radius: 99px; background: var(--card); color: var(--ink-2); font: 500 0.88em / 1 var(--f-mono); }
.browser__body { position: relative; display: grid; gap: 0.8em; align-content: start; padding: 1.2em; }
.browser__menu { display: flex; align-items: center; gap: 1.1em; font: 500 0.9em / 1 var(--f-text); color: var(--ink-2); }
.browser__menu b { margin-right: auto; color: var(--ink); font: var(--title-weight) 1.25em / 1 var(--f-title); letter-spacing: var(--title-tracking); }
.browser__menu span:last-child { padding: 0.5em 0.9em; border-radius: 99px; background: var(--ink); color: var(--card); }
.browser__title { font: var(--title-weight) 2.3em / 1.02 var(--f-title); letter-spacing: var(--title-tracking); text-transform: var(--title-case); max-width: 9em; }
/* the phone. Five details make it recognizable: its proportions (9 by 19.3), its thin, even black bezel, its metal frame
   with its antenna breaks, its buttons ON THE SIDES, and the pill at the top / the bar at the bottom. Its island makes it an
   iPhone-like phone, so its buttons are that family's, at the same shares of the height as in block 20: on the left the small
   action button above two separate volume buttons, on the right the long side button, centered on the volume pair.
   Often only part of it is shown (the bottom, or the top): negative --y, and the card crops the rest.
   <div class="phone" style="--x:13;--y:-14;--l:22"><div class="phone__bezel"><div class="phone__screen">…<i class="phone__island"></i><i class="phone__home"></i></div></div></div> */
.phone { --rt: 4.2em; aspect-ratio: 9 / 19.5; padding: 0.3em; border-radius: var(--rt); background: linear-gradient(105deg, oklch(0.58 0.006 260), oklch(0.93 0.003 260) 22%, oklch(0.7 0.006 260) 48%, oklch(0.95 0.003 260) 72%, oklch(0.6 0.006 260)); box-shadow: var(--shadow-float), 0 3.5em 4em -2.6em color-mix(in oklch, var(--shadow-tint) 40%, transparent); }
.phone::before { content: ""; position: absolute; inset: 0 -0.16em; z-index: -1; --b: linear-gradient(oklch(0.66 0.006 260), oklch(0.5 0.006 260)); background: var(--b) left 21.5% / 0.3em 4.5% no-repeat, var(--b) left 30.8% / 0.3em 7.5% no-repeat, var(--b) left 41.1% / 0.3em 7.5% no-repeat, var(--b) right 35.2% / 0.3em 12% no-repeat; border-radius: 0.2em; }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; --c: linear-gradient(oklch(0.42 0.006 260 / 0.75), oklch(0.42 0.006 260 / 0.75)); background: var(--c) left 5.2em / 0.3em 0.13em no-repeat, var(--c) right 5.2em / 0.3em 0.13em no-repeat, var(--c) left calc(100% - 5.2em) / 0.3em 0.13em no-repeat, var(--c) right calc(100% - 5.2em) / 0.3em 0.13em no-repeat; }
.phone__bezel { height: 100%; padding: 0.6em; border-radius: calc(var(--rt) - 0.3em); background: oklch(0.13 0.004 270); box-shadow: inset 0 0 0 1px oklch(0.3 0.004 270); }
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--rt) - 0.9em); background: var(--card); overflow: hidden; }
.phone__island { position: absolute; left: 50%; top: 0.8em; width: 31%; height: 1.75em; border-radius: 99px; background: oklch(0.13 0.004 270); translate: -50% 0; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 1.05em 1.9em 0; font: 600 0.95em / 1 var(--f-text); }
.phone__status i { display: block; width: 3.6em; height: 0.85em; background: linear-gradient(var(--ink), var(--ink)) right / 1.5em 0.72em no-repeat, radial-gradient(circle, var(--ink) 55%, transparent 60%) left / 0.85em 0.85em no-repeat, radial-gradient(circle, var(--ink) 55%, transparent 60%) 1.05em / 0.85em 0.85em no-repeat; border-radius: 0.2em; }
.phone__home { position: absolute; left: 50%; bottom: 0.6em; width: 34%; height: 0.36em; border-radius: 99px; background: var(--ink); opacity: 0.85; translate: -50% 0; }
/* a conversation: <div class="thread"><p class="bubble">…</p><p class="bubble bubble--me">…</p></div> */
.thread { display: grid; gap: 0.7em; align-content: end; padding: 1em 0.9em; }
.thread small { font: 500 0.82em / 1 var(--f-text); color: var(--ink-2); text-align: center; }
.bubble { justify-self: start; max-width: 82%; padding: 0.7em 1em; border: 1px solid var(--hairline); border-radius: 1.3em 1.3em 1.3em 0.4em; background: var(--card); box-shadow: var(--shadow-rest); font: 500 1.02em / 1.3 var(--f-text); }
.bubble--me { justify-self: end; border: 0; border-radius: 1.3em 1.3em 0.4em 1.3em; background: linear-gradient(180deg, color-mix(in oklch, white 22%, var(--accent)), var(--accent)); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), var(--glow); }
.composer { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.6em 0.55em 1.1em; border: 1px solid var(--hairline); border-radius: 99px; background: var(--card); color: var(--ink-2); font: 500 0.95em / 1 var(--f-text); box-shadow: var(--sheen), var(--shadow-rest); }
.composer > i { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; margin-left: auto; border-radius: 50%; background: var(--ink); color: var(--card); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), var(--shadow-rest); }
.composer > i svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* the map pin (a drop, a disc inside, its ground shadow kept separate: .ground-shadow): <span class="pin" style="--x:20;--y:8"><b>12</b></span> */
.pin { width: 3.6em; height: 4.4em; filter: drop-shadow(0 0.25em 0.3em color-mix(in oklch, var(--accent-deep) 45%, transparent)); }
.pin::before { content: ""; position: absolute; left: 0; top: 0; width: 3.6em; height: 3.6em; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(180deg, color-mix(in oklch, white 30%, var(--accent)), var(--accent) 45%, color-mix(in oklch, var(--accent) 80%, black)); box-shadow: inset 0.12em 0.12em 0 rgb(255 255 255 / 0.35); }
.pin > b, .pin::after { content: ""; position: absolute; left: 0.75em; top: 0.75em; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--card); color: var(--ink); font: 700 0.95em / 1 var(--f-text); box-shadow: inset 0 0.12em 0.25em color-mix(in oklch, var(--shadow-tint) 30%, transparent); }
.pin:has(> b)::after { content: none; }
.pin--dark::before { background: linear-gradient(180deg, color-mix(in oklch, var(--ink) 70%, var(--card)), var(--ink)); }
.pin--dark { filter: drop-shadow(0 0.25em 0.3em color-mix(in oklch, var(--shadow-tint) 40%, transparent)); }
/* the neighborhood map: an <svg class="map" viewBox="0 0 96 60"> with .map__block (the city blocks), .map__street, .map__route, and <text> along the streets */
.map { width: 100%; height: 100%; overflow: visible; }
.map__block { fill: color-mix(in oklch, var(--card) 70%, var(--sunken)); stroke: var(--hairline); stroke-width: 0.25; }
.map__park { fill: color-mix(in oklch, var(--accent-pale) 70%, var(--sunken)); }
.map__street { fill: none; stroke: var(--card); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.map__street--small { stroke-width: 1.5; }
.map__route { fill: none; stroke: var(--accent); stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.2 1.9; }
.map text { font: 500 1.55px var(--f-text); fill: var(--ink-2); letter-spacing: 0.06em; text-transform: uppercase; }
/* the document: a sheet of paper with real lines, a total, sometimes a seal and a signature */
.sheet { display: grid; gap: 0.55em; align-content: start; padding: 1.4em 1.5em; border: 1px solid var(--hairline); border-radius: 0.3em; background: linear-gradient(180deg, color-mix(in oklch, white 55%, var(--card)), var(--card)); color: var(--ink); font: 500 0.95em / 1.3 var(--f-text); box-shadow: var(--shadow-float); }
.sheet h4 { font: var(--title-weight) 1.5em / 1.1 var(--f-title); letter-spacing: var(--title-tracking); margin-bottom: 0.2em; }
.sheet p { display: flex; justify-content: space-between; gap: 1em; padding-bottom: 0.45em; border-bottom: 1px dashed var(--hairline); }
.sheet p span:last-child { white-space: nowrap; }
.sheet .sheet__total { border: 0; padding-top: 0.2em; font: 700 1.25em / 1 var(--f-text); }
/* paper stays paper: at night and inside a dark block, the sheet keeps its daytime colors (it does not turn gray) */
:is([data-surface="night"], .card--dark, .tier--featured, .footer--dark, .panel--dark) .sheet {
  --card: oklch(0.977 0.006 85); --sunken: oklch(0.94 0.008 85); --ink: oklch(0.24 0.012 60); --ink-2: oklch(0.47 0.012 60);
  --hairline: oklch(0.87 0.008 85); --stroke: oklch(0.74 0.01 85); --shadow-tint: oklch(0.05 0 0);
  --accent: var(--a); --on-accent: var(--a-on); --accent-text: var(--a-text); --accent-pale: var(--a-pale); --accent-deep: var(--a-deep); --marker: var(--a-marker); }
.sheet--dogear::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 2.4em; height: 2.4em; background: linear-gradient(315deg, var(--sunken) 0 49%, color-mix(in oklch, var(--shadow-tint) 16%, var(--card)) 50%, var(--card) 62%); box-shadow: -0.2em -0.2em 0.4em -0.2em color-mix(in oklch, var(--shadow-tint) 30%, transparent); }
.seal { display: grid; place-items: center; width: 6.6em; height: 6.6em; padding: 0.9em; border-radius: 50%; font: 700 0.86em / 1.08 var(--f-text); letter-spacing: 0.05em; text-align: center; text-transform: uppercase; }
.seal::before { content: ""; position: absolute; inset: 0.4em; border: 1px dashed color-mix(in oklch, var(--on-accent) 60%, transparent); border-radius: 50%; }
.signature { width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* the folder: a back with its tab, sheets, a flap that opens slightly on hover
   <div class="folder" style="--x:13;--y:8;--l:22;--h:16"><i class="folder__back"></i><div class="folder__sheet">…</div><div class="folder__flap">…</div></div> */
.folder { perspective: 70em; }
.folder__back { position: absolute; inset: 0; border-radius: 1em; background: var(--accent-deep); }
.folder__back::before { content: ""; position: absolute; left: 0; bottom: calc(100% - 1em); width: 42%; height: 2.6em; border-radius: 0.9em 0.9em 0 0; background: inherit; clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); }
.folder__sheet { position: absolute; left: 7%; right: 7%; top: -9%; height: 78%; display: grid; gap: 0.5em; align-content: start; padding: 0.9em 1em; border-radius: 0.4em; background: var(--card); border: 1px solid var(--hairline); box-shadow: var(--shadow-rest); font: 500 0.9em / 1.25 var(--f-text); rotate: calc(var(--r, 0) * 1deg); transition: translate 0.55s var(--ease) var(--d, 0s), rotate 0.55s var(--ease) var(--d, 0s); }
.folder__flap { position: absolute; inset: 20% 0 0; display: grid; align-content: end; padding: 1.1em 1.2em; border-radius: 0.5em 0.5em 1em 1em; background: linear-gradient(180deg, color-mix(in oklch, white 20%, var(--accent)), var(--accent) 70%); color: var(--on-accent); font: 600 1.15em / 1.2 var(--f-text); transform-origin: 50% 100%; transition: transform 0.55s var(--ease); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), var(--glow); }
.folder__flap small { font: 500 0.82em / 1.3 var(--f-text); opacity: 0.8; }
:is(.card:hover, .card:focus-within, .card.playing) .folder__flap { transform: rotateX(-26deg); }
:is(.card:hover, .card:focus-within, .card.playing) .folder__sheet { translate: 0 calc(var(--rise, -2.4) * 1em); rotate: calc(var(--r2, var(--r, 0)) * 1deg); }
/* the dial: twelve ticks, a colored range from --from to --a (in hours, on a twelve-hour face), a hand, a domed hub in the center
   <div class="dial" style="--x:13;--y:4;--l:22;--from:7;--a:12" data-in-view><i class="dial__ticks"></i><i class="dial__range"></i><i class="dial__hand"></i><b class="dial__hub tex-grain">7 am</b></div> */
.dial { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 36% 28%, var(--card), color-mix(in oklch, var(--sunken) 80%, var(--card)) 74%); box-shadow: var(--sheen), inset 0 -0.5em 1em -0.4em color-mix(in oklch, var(--shadow-tint) 16%, transparent), var(--shadow-float); }
.dial > * { position: absolute; }
.dial__ticks { inset: 5%; border-radius: 50%; background: repeating-conic-gradient(from -0.7deg, var(--ink-2) 0 1.4deg, transparent 1.4deg 30deg), repeating-conic-gradient(from -0.3deg, var(--stroke) 0 0.6deg, transparent 0.6deg 6deg); -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 89%); mask: radial-gradient(closest-side, transparent 88%, #000 89%); }
.dial__range { inset: 15%; border-radius: 50%; background: var(--tex-hatch), conic-gradient(from calc(var(--from) * 30deg), var(--accent) 0 calc((var(--a) - var(--from)) * 30deg), color-mix(in oklch, var(--stroke) 30%, transparent) 0); -webkit-mask: radial-gradient(closest-side, transparent 80%, #000 81%); mask: radial-gradient(closest-side, transparent 80%, #000 81%); }
.dial__hand { left: 50%; bottom: 50%; width: 0.5em; height: 36%; margin-left: -0.25em; border-radius: 99px; background: var(--ink); transform-origin: 50% 100%; transform: rotate(calc(var(--from) * 30deg)); transition: transform 1.3s var(--ease) 0.15s; box-shadow: 0.1em 0.2em 0.3em color-mix(in oklch, var(--shadow-tint) 30%, transparent); }
.dial.in-view .dial__hand, html:not(.js) .dial__hand { transform: rotate(calc(var(--a) * 30deg)); }
:is(.card:hover, .card:focus-within) .dial__hand { transform: rotate(calc(var(--a) * 30deg + 360deg)); }
.dial__hub { left: 50%; top: 50%; display: grid; place-items: center; width: 36%; height: 36%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 34% 28%, color-mix(in oklch, white 42%, var(--accent)), var(--accent) 58%, var(--accent-deep) 118%); box-shadow: inset 0 -0.3em 0.6em color-mix(in oklch, black 16%, transparent), var(--glow); color: var(--on-accent); font: 700 1.5em / 1 var(--f-title); letter-spacing: var(--title-tracking); }
/* the raised switch: only to show a real option being turned on. <i class="toggle"></i>; .is-lit, or the .toggle--play hover move */
.toggle { display: block; width: 5.4em; height: 3em; border-radius: 99px; background: var(--sunken); box-shadow: inset 0 0.15em 0.35em color-mix(in oklch, var(--shadow-tint) 30%, transparent), 0 1px 0 color-mix(in oklch, white 60%, transparent); transition: background-color 0.4s var(--ease), box-shadow 0.4s; }
.toggle::after { content: ""; position: absolute; left: 0.3em; top: 0.3em; width: 2.4em; height: 2.4em; border-radius: 50%; background: linear-gradient(180deg, white, oklch(0.93 0.004 260)); box-shadow: inset 0 1px 0 white, 0 0.15em 0.3em color-mix(in oklch, var(--shadow-tint) 40%, transparent); transition: translate 0.5s var(--ease-spring); }
.toggle:not(.stage > *) { position: relative; }
.toggle.is-lit, :is(.card:hover, .card:focus-within, .card.playing) .toggle--play { background-color: var(--accent); box-shadow: inset 0 0.15em 0.35em color-mix(in oklch, var(--accent-deep) 55%, transparent), var(--glow); }
.toggle.is-lit::after, :is(.card:hover, .card:focus-within, .card.playing) .toggle--play::after { translate: 2.4em 0; }
/* the raised round key (an icon inside): <span class="key tex-raised"><svg …/></span> */
.key { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; color: var(--ink-2); }
.key svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the curve: an <svg class="curve" viewBox="0 0 96 60" preserveAspectRatio="none"> with .curve__guides, .curve__area, .curve__stroke; the point is a separate layer (.point) */
.curve { width: 100%; height: 100%; overflow: visible; }
.curve__guides { fill: none; stroke: var(--stroke); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; opacity: 0.7; }
.curve__area { fill: var(--accent); opacity: 0.2; -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%); mask-image: linear-gradient(180deg, #000, transparent 92%); }
.curve__stroke { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.curve__stroke--accent { stroke: var(--accent); }
.point { width: 1.5em; height: 1.5em; margin: -0.75em 0 0 -0.75em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.26em var(--card), 0 0 0 0.9em color-mix(in oklch, var(--accent) 20%, transparent), 0 0 0 1.6em color-mix(in oklch, var(--accent) 9%, transparent), var(--glow); }
/* the bars of a small chart: <div class="bars" style="…"><i style="--v:.4"></i><i style="--v:.7" class="is-lit"><b>42</b></i>…</div> */
.bars { display: flex; align-items: flex-end; gap: 0.7em; }
.bars > i { position: relative; flex: 1; height: calc(var(--v, 0.5) * 100%); border-radius: 0.5em 0.5em 0.15em 0.15em; background: linear-gradient(180deg, var(--hairline), color-mix(in oklch, var(--hairline) 50%, var(--card))); }
.bars > i.tex-hatch { background-image: var(--tex-hatch), linear-gradient(180deg, var(--hairline), color-mix(in oklch, var(--hairline) 50%, var(--card))); }
.bars > i.is-lit { background: linear-gradient(180deg, color-mix(in oklch, white 25%, var(--accent)), var(--accent)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), var(--glow); }
.bars > i > b { position: absolute; left: 50%; top: 0.5em; translate: -50% 0; color: var(--on-accent); font: 700 0.9em / 1 var(--f-text); }

/* ---------- 10. Hover moves: one to three elements move inside the card; everything comes back when the mouse leaves ----------
   (the card itself stays put, or lifts by a few pixels when a library part teaches it: references/motion.md, part 4)
   At rest, the scene is complete and calm. The hover moves act out the card's TITLE (references/motion.md).
   .slide      moves: --dx, --dy in cells; --r2: its new angle (straightening up = --r2:0); --scale: its scale; --d: its delay
   .pop-in     hidden at rest, appears (a "confirmed" pill, a reply)
   .exit       visible at rest, moves away (--dx, --dy) while fading out (a sent message)
   .replay     replays its entrance (lines added one by one: --d to offset them)
   .refill     a bar fills up again to its value (--v, from 0 to 1)
   .light-up   gray at rest, takes on the accent color and its glow
   .trace      an SVG path redraws itself (pathLength="1" on the path)
   .follow     follows the mouse by a few pixels (--k: its share of the movement, negative to mirror it); data-follow on the scene */
.slide, .exit { transition: translate 0.6s var(--ease) var(--d, 0s), rotate 0.6s var(--ease) var(--d, 0s), scale 0.6s var(--ease) var(--d, 0s), opacity 0.4s var(--ease) var(--d, 0s); }
.pop-in { opacity: 0; translate: 0 0.6em; scale: 0.94; transition: opacity 0.35s var(--ease) var(--d, 0s), translate 0.5s var(--ease-spring) var(--d, 0s), scale 0.5s var(--ease-spring) var(--d, 0s); }
.refill { transform: scaleX(var(--v, 1)); transform-origin: left center; }
[dir="rtl"] .refill { transform-origin: right center; }
.light-up { transition: background-color 0.4s var(--ease) var(--d, 0s), color 0.4s var(--ease) var(--d, 0s), box-shadow 0.4s var(--ease) var(--d, 0s), border-color 0.4s var(--ease) var(--d, 0s); }
.trace { stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: none; }   /* with non-scaling-stroke, the line would come out chopped into dashes: stroke width stays in drawing units */
.follow { translate: calc(var(--sx, 0) * var(--k, 1) * 1px) calc(var(--sy, 0) * var(--k, 1) * 1px); transition: translate 0.5s var(--ease); }
:is(.card:hover, .card:focus-within, .card.playing) .slide { translate: calc(var(--dx, 0) * var(--u, 1em)) calc(var(--dy, 0) * var(--u, 1em)); rotate: calc(var(--r2, var(--r, 0)) * 1deg); scale: var(--scale, 1); }
:is(.card:hover, .card:focus-within, .card.playing) .exit { translate: calc(var(--dx, 6) * var(--u, 1em)) calc(var(--dy, -4) * var(--u, 1em)); opacity: 0; scale: 0.8; }
:is(.card:hover, .card:focus-within, .card.playing) .pop-in { opacity: 1; translate: 0 0; scale: 1; }
:is(.card:hover, .card:focus-within, .card.playing) .replay { animation: scene-replay 0.55s var(--ease-spring) var(--d, 0s) backwards; }
:is(.card:hover, .card:focus-within, .card.playing) .refill { animation: scene-refill 0.9s var(--ease) var(--d, 0s) backwards; }
:is(.card:hover, .card:focus-within, .card.playing) .light-up { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), var(--glow); }
:is(.card:hover, .card:focus-within, .card.playing) .trace { animation: scene-trace 1.1s var(--ease) var(--d, 0s) backwards; }
@keyframes scene-replay { from { opacity: 0; translate: 0 0.8em; scale: 0.94; } }
@keyframes scene-refill { from { transform: scaleX(0.04); } }
@keyframes scene-trace { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { .pop-in { opacity: 1; translate: 0 0; scale: 1; } .follow { translate: 0 0; } }

/* ---------- 11. Drawn dates: never the browser's date picker ----------
   <div class="dates" data-month="2027-03" data-taken="3,4,9,17,18" data-selected="12"></div>           (motion.js builds it)
   data-range: pick an arrival, then a departure. Taken = hatched. Selected = filled with the accent color, no checkmark.
   It fires the "choice" event (detail: { start, end }, the first and the last day): the summary listens for it. Outside a scene: font-size: 0.95rem. */
.dates { display: grid; gap: 0.7em; padding: 1em; border: 1px solid var(--hairline); border-radius: 1.3em; background: var(--card); box-shadow: var(--sheen), var(--shadow-rest); font-family: var(--f-text); }
.dates__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; }
.dates__head b { font: 600 1.15em / 1 var(--f-text); text-transform: capitalize; }
.dates__head button { display: grid; place-items: center; width: 2.2em; height: 2.2em; border: 1px solid var(--hairline); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: var(--sheen); }
.dates__head button svg { width: 0.9em; height: 0.9em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dates__head button:disabled { opacity: 0.35; cursor: default; }
.dates__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25em; }
.dates__grid > span { display: grid; place-items: center; height: 1.8em; color: var(--ink-2); font: 600 0.8em / 1 var(--f-text); }
.dates__grid > button { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font: 500 1em / 1 var(--f-text); cursor: pointer; transition: background-color 0.2s, color 0.2s, scale 0.3s var(--ease-spring); }
.dates__grid > button:hover:not(:disabled, .is-selected) { background: var(--sunken); }
.dates__grid > button:disabled { color: color-mix(in oklch, var(--ink-2) 62%, transparent); background-image: var(--tex-hatch); background-color: color-mix(in oklch, var(--sunken) 60%, transparent); cursor: not-allowed; text-decoration: line-through; text-decoration-color: color-mix(in oklch, var(--ink-2) 40%, transparent); }
.dates__grid > button.is-past { background: none; text-decoration: none; opacity: 0.4; }
.dates__grid > button.is-in-range { border-radius: 0; background: var(--accent-pale); color: var(--accent-deep); }
.dates__grid > button.is-selected { background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: var(--glow); scale: 1.06; }
/* options to pick from (times, sizes, quantity): <div class="choice"><button type="button">7:30 pm</button><button type="button" aria-pressed="true">8 pm</button></div> */
.choice { display: flex; flex-wrap: wrap; gap: 0.4em; }
.choice > button { min-height: 2.6em; padding: 0 1em; border: 1px solid var(--hairline); border-radius: 99px; background: var(--card); color: var(--ink); font: 500 1em / 1 var(--f-text); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.choice > button:hover { border-color: var(--stroke); }
.choice > button[aria-pressed="true"] { border-color: transparent; background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: var(--glow); }
.choice > button:disabled { background-image: var(--tex-hatch); color: var(--ink-2); cursor: not-allowed; }

/* ---------- 12. Frames: a frame around the WHOLE site, or a selection around ONE element ----------
   The site frame says "precision, craft": use it for an agency, a tool, something technical; avoid it for warmth and flavor.
   Its drawing changes with every site. Three drawings: <div class="site-frame site-frame--ruler" aria-hidden="true"></div> right after <body>. */
.site-frame { position: fixed; inset: 0; z-index: 30; pointer-events: none; --c: color-mix(in oklch, var(--stroke) 80%, transparent); }
.site-frame::before, .site-frame::after { content: ""; position: absolute; }
/* a. the graduated ruler, along the top and the left */
.site-frame--ruler::before { left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--c) 0 1px, transparent 1px 10px) 0 0 / 100% 5px no-repeat, repeating-linear-gradient(90deg, var(--c) 0 1px, transparent 1px 100px) 0 0 / 100% 12px no-repeat; }
.site-frame--ruler::after { left: 0; top: 0; bottom: 0; width: 12px; background: repeating-linear-gradient(0deg, var(--c) 0 1px, transparent 1px 10px) 0 0 / 5px 100% no-repeat, repeating-linear-gradient(0deg, var(--c) 0 1px, transparent 1px 100px) 0 0 / 12px 100% no-repeat; }
/* b. two hairlines and printer's registration crosses, on each side of the page */
.site-frame--crosses::before { inset: 0 calc((100vw - min(1180px, 100vw - 2.5rem)) / 2 - 1.25rem); border-inline: 1px solid var(--c); --x: linear-gradient(var(--ink-2), var(--ink-2)); background: var(--x) -6px 96px / 11px 1px, var(--x) -1px 91px / 1px 11px, var(--x) calc(100% + 6px) 96px / 11px 1px, var(--x) calc(100% + 1px) 91px / 1px 11px, var(--x) -6px calc(100% - 96px) / 11px 1px, var(--x) -1px calc(100% - 91px) / 1px 11px, var(--x) calc(100% + 6px) calc(100% - 96px) / 11px 1px, var(--x) calc(100% + 1px) calc(100% - 91px) / 1px 11px; background-repeat: no-repeat; background-origin: border-box; overflow: visible; }
/* c. the hatched margins */
.site-frame--hatch::before, .site-frame--hatch::after { top: 0; bottom: 0; width: calc((100vw - min(1180px, 100vw - 2.5rem)) / 2 - 1.5rem); background: repeating-linear-gradient(135deg, var(--c) 0 1px, transparent 1px 9px); }
.site-frame--hatch::before { left: 0; border-right: 1px solid var(--c); }
.site-frame--hatch::after { right: 0; border-left: 1px solid var(--c); }
@media (max-width: 1100px) { .site-frame--crosses, .site-frame--hatch { display: none; } }
@media (max-width: 700px) { .site-frame--ruler::after { display: none; } }

/* the selection around ONE element, as in a design tool: a stroke, four square handles, the layer name.
   <div class="frame" data-name="Photo"> … </div>   or, inside a title, <span class="v-frame frame" data-name="Title">word</span>   Once per screen at most. */
.frame { position: relative; display: inline-block; outline: 1.5px solid var(--accent-text); outline-offset: -0.75px; }
.frame::before { content: ""; position: absolute; inset: -4.5px; z-index: 2; pointer-events: none; --p: linear-gradient(var(--accent-text), var(--accent-text)); --q: linear-gradient(var(--card), var(--card)); background-image: var(--q), var(--q), var(--q), var(--q), var(--p), var(--p), var(--p), var(--p); background-repeat: no-repeat; background-size: 5px 5px, 5px 5px, 5px 5px, 5px 5px, 8px 8px, 8px 8px, 8px 8px, 8px 8px; background-position: 1.5px 1.5px, calc(100% - 1.5px) 1.5px, 1.5px calc(100% - 1.5px), calc(100% - 1.5px) calc(100% - 1.5px), 0 0, 100% 0, 0 100%, 100% 100%; }
.frame[data-name]::after { content: attr(data-name); position: absolute; left: -1.5px; bottom: 100%; z-index: 2; margin-bottom: 5px; padding: 3px 6px; background: var(--accent-text); color: var(--card); font: 500 0.6875rem / 1 var(--f-mono); letter-spacing: 0.04em; text-transform: none; white-space: nowrap; border-radius: 2px; }
div.frame, section.frame { display: block; }

/* ---------- 13. Section shapes: the shape says what the section holds. Never the same shape in two sections in a row. ---------- */
/* a. the sticky heading: ONE idea, and the proof for it scrolling beside it. The heading stays, the illustrations go by.
   <div class="sticky"><div class="sticky__title">…badge, title, text, button…</div><div class="sticky__flow"> <article class="card">…</article> … </div></div> */
.sticky { display: grid; gap: 2rem; }
.sticky__title { display: grid; gap: 1.125rem; justify-items: start; align-content: start; }
.sticky__flow { display: grid; gap: clamp(0.75rem, 1.4vw, 1.125rem); }
@media (min-width: 900px) { .sticky { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; } .sticky__title { position: sticky; top: clamp(5rem, 16vh, 9rem); } }
/* b. the stack: screens or steps that follow one another; each card comes to cover the previous one, which leaves its edge showing
   <div class="stack"><article class="stack__card" style="--i:0">…</article><article class="stack__card" style="--i:1">…</article></div> */
.stack { display: grid; gap: 1.25rem; }
.stack > * { position: sticky; top: calc(var(--stack-top, 5rem) + var(--i, 0) * 0.875rem); }
.stack__card { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem); border: var(--border); border-radius: var(--r-shell); background: var(--card); min-height: min(24rem, 62vh); box-shadow: var(--sheen), 0 -10px 30px -24px color-mix(in oklch, var(--shadow-tint) 50%, transparent); }
@media (min-width: 820px) { .stack__card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; } }
.stack__card > :first-child { display: grid; gap: 1rem; justify-items: start; }
@media (max-height: 560px) { .stack > * { position: static; } }
/* c. the clover: four equal steps around a core (the logo, a number, a word)
   <div class="clover"><article>…</article><article>…</article><article>…</article><article>…</article><div class="clover__core">4</div></div> */
.clover { position: relative; display: grid; gap: clamp(0.75rem, 1.4vw, 1.125rem); }
.clover > article { display: grid; gap: 0.6rem; align-content: start; padding: clamp(1.25rem, 2.4vw, 2rem); border: var(--border); border-radius: var(--r-shell); background: var(--card); box-shadow: var(--sheen), var(--shadow); }
.clover__core { display: none; }
@media (min-width: 760px) {
  .clover { grid-template-columns: 1fr 1fr; --c: clamp(4.5rem, 9vw, 7rem); }
  .clover > article { min-height: 15rem; }
  .clover > article:nth-of-type(1) { border-end-end-radius: var(--c); padding-right: calc(var(--c) * 0.7); }
  .clover > article:nth-of-type(2) { border-end-start-radius: var(--c); padding-left: calc(var(--c) * 0.7); }
  .clover > article:nth-of-type(3) { border-start-end-radius: var(--c); padding-right: calc(var(--c) * 0.7); align-content: end; }
  .clover > article:nth-of-type(4) { border-start-start-radius: var(--c); padding-left: calc(var(--c) * 0.7); align-content: end; }
  .clover__core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: calc(var(--c) * 1.25); height: calc(var(--c) * 1.25); translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 34% 28%, color-mix(in oklch, white 42%, var(--accent)), var(--accent) 58%, var(--accent-deep) 118%); color: var(--on-accent); font: var(--title-weight) clamp(1.75rem, 3.4vw, 2.75rem) / 1 var(--f-title); box-shadow: inset 0 -0.3em 0.6em rgb(0 0 0 / 0.14), 0 0 0 0.5rem var(--bg), var(--glow); }
}
/* d. the panel and its calm grid: a promise on the left (dark or tinted), its categories on the right, understated
   <div class="duo"><div class="duo__panel panel--dark">…</div><ul class="duo__grid"><li>…</li>…</ul></div> */
.duo { display: grid; gap: clamp(0.75rem, 1.4vw, 1.125rem); }
.duo__panel { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 1rem; align-content: end; justify-items: start; min-height: 20rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-shell); }
.duo__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1px; border: var(--border); border-radius: var(--r-shell); background: var(--hairline); overflow: hidden; }
.duo__grid > li { display: grid; gap: 0.4rem; align-content: start; padding: 1.25rem; background: var(--card); transition: background-color 0.25s; }
.duo__grid > li:hover { background: color-mix(in oklch, var(--accent-pale) 55%, var(--card)); }
.duo__grid > li b { font: 600 1rem / 1.25 var(--f-text); }
.duo__grid > li span { color: var(--ink-2); font-size: var(--t-small); line-height: 1.4; }
@media (min-width: 900px) { .duo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }

/* ---------- 14. The image placeholder: finished, it says exactly which image it expects ----------
   <figure class="photo" style="--ratio:4/5" role="img" aria-label="Placeholder: the founder, head and shoulders, at her workbench">
     <!-- <img src="founder.jpg" alt="Emma, founder, at her workbench"> -->
     <figcaption><b>Photo</b> the founder, head and shoulders, at her workbench, window light from the left</figcaption><span class="photo__format">4:5</span>
   </figure>   .photo--cutout: a cut-out subject, no background (a person, a product); .photo--round: a round portrait */
.photo { position: relative; display: grid; align-content: end; aspect-ratio: var(--ratio, 4 / 5); min-height: fit-content; padding: 1rem; border-radius: var(--r-card); background: var(--accent-pale); color: var(--accent-deep); overflow: hidden; }
.photo::before { content: ""; position: absolute; inset: 0.75rem; --b: linear-gradient(currentColor, currentColor); background-image: var(--b), var(--b), var(--b), var(--b), var(--b), var(--b), var(--b), var(--b); background-repeat: no-repeat; background-size: 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px; background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; opacity: 0.55; }
.photo::after { content: ""; position: absolute; inset: 0; background-image: var(--tex-hatch); opacity: 0.6; -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.photo figcaption { position: relative; z-index: 1; margin: 0.75rem; max-width: 19rem; font: 500 0.8125rem / 1.35 var(--f-text); }
.photo figcaption b { display: block; margin-bottom: 0.3rem; font: 500 var(--t-mono) / 1 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.75; }
.photo__format { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 1; font: 500 var(--t-mono) / 1 var(--f-mono); opacity: 0.7; }
.photo img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.photo--cutout { background: none; border: 1.5px dashed color-mix(in oklch, var(--accent-deep) 45%, transparent); }
.photo--cutout::after { content: none; }
.photo--cutout img { object-fit: contain; object-position: bottom; }
.photo--round { aspect-ratio: 1; border-radius: 50%; place-content: center; text-align: center; }
.photo--round::before { content: none; }

/* ---------- 15. Pricing tiers: three at most, ONE featured, and that is the one carrying the solid button ----------
   <div class="tiers"> <article class="tier">…</article> <article class="tier tier--featured">…</article> … </div>
   Two ways to feature a tier: the light / dark inversion (.tier--featured) or the glow (.tier--glow). Never an invented struck-through price. */
.tiers { display: grid; gap: clamp(0.75rem, 1.4vw, 1.125rem); align-items: stretch; }
.tier { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.25rem; padding: clamp(1.25rem, 2.2vw, 1.75rem); border: var(--border); border-radius: var(--r-shell); background: var(--card); box-shadow: var(--sheen); }
@media (min-width: 820px) {
  .tiers { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto; }
  .tier { grid-row: span 4; grid-template-rows: subgrid; row-gap: 1.25rem; } }
.tier--featured { border-color: transparent; box-shadow: var(--sheen), var(--shadow-far); }
.tier--glow { border-color: color-mix(in oklch, var(--accent) 55%, var(--hairline)); background: radial-gradient(120% 60% at 50% 0%, color-mix(in oklch, var(--accent) 16%, var(--card)), var(--card) 70%); box-shadow: var(--sheen), 0 1.5rem 3rem -1.5rem color-mix(in oklch, var(--accent) 55%, transparent); }
.tier__name { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2rem; font: 600 1.0625rem / 1.2 var(--f-text); }
.tier__price { font: var(--title-weight) clamp(2.25rem, 1.8rem + 1.6vw, 3rem) / 1 var(--f-title); letter-spacing: var(--title-tracking); }
.tier__price small { display: block; margin-top: 0.5rem; font: 400 var(--t-small) / 1.35 var(--f-text); letter-spacing: 0; color: var(--ink-2); }
.tier__list { display: grid; gap: 0.625rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--hairline); font-size: var(--t-small); }
.tier__list li { display: grid; grid-template-columns: 1.125rem 1fr; gap: 0.625rem; align-items: start; }
.tier__list li::before { content: ""; width: 1.125rem; height: 1.125rem; margin-top: 0.12rem; border-radius: 50%; background: var(--accent-text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M5.5 9.3l2.3 2.3 4.7-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M5.5 9.3l2.3 2.3 4.7-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tier .button { width: 100%; }
.tier:not(.tier--featured, .tier--glow) .button { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }

/* ---------- 16. Questions: a sticky heading on the left while the answers scroll ----------
   <div class="questions"><div>…title…</div><div class="questions__list"><details><summary>…</summary><p>…</p></details>…</div></div> */
.questions { display: grid; gap: 2rem; }
@media (min-width: 860px) { .questions { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } .questions > :first-child { position: sticky; top: 6rem; } }
.questions > :first-child { display: grid; gap: 1.125rem; justify-items: start; }
.questions__list { counter-reset: q; border-top: 1px solid var(--hairline); }
.questions__list details { border-bottom: 1px solid var(--hairline); }
.questions__list summary { counter-increment: q; display: grid; grid-template-columns: 2.25rem 1fr 1.5rem; align-items: baseline; gap: 0.5rem; padding: 1.125rem 0; font: 600 1.0625rem / 1.3 var(--f-text); cursor: pointer; list-style: none; }
.questions__list summary::-webkit-details-marker { display: none; }
.questions__list summary::before { content: counter(q, decimal-leading-zero); font: 500 var(--t-mono) / 1 var(--f-mono); color: var(--ink-2); }
.questions__list summary::after { content: ""; align-self: center; width: 0.75rem; height: 0.75rem; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; transition: transform 0.35s var(--ease); }
.questions__list details[open] summary::after { transform: rotate(135deg); }
.questions__list details p { padding: 0 1.5rem 1.25rem 2.75rem; color: var(--ink-2); max-width: 38rem; }

/* ---------- 17. Page endings: several ways, never out of habit (references/repertoire.md) ----------
   <footer class="footer"> <div class="page footer__top">…</div> <div class="page footer__bottom">…</div> …the last image, if the page has one… </footer>
   a. .footer__image: a scene, the brand's object at giant size, or the motif from the top of the page: an <svg> or a block, resting on the bottom edge, cropped by it
   b. .footer__name: the name in giant letters, only if it is short and beautiful to read (data-fit: it takes the full width)
   c. .footer--floating: the rounded block floating on the background (block 19)
   d. nothing: a restrained page ends plainly, on its links. */
.footer { position: relative; overflow: clip; padding-top: clamp(3rem, 6vw, 5rem); background: var(--card); border-top: var(--border); }
.footer--dark { border-top: 0; }
.footer__top { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 820px) { .footer__top { grid-template-columns: minmax(0, 1.3fr) repeat(var(--columns, 2), minmax(0, 0.6fr)); gap: 3rem; } }
.footer__top h2, .footer__top h3 { margin-bottom: 0.875rem; font: 500 var(--t-mono) / 1 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.footer__top li + li { margin-top: 0.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--accent-text); text-underline-offset: 0.3em; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--hairline); color: var(--ink-2); font-size: var(--t-small); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__image { display: block; width: var(--page); margin: clamp(1rem, 3vw, 2.5rem) auto 0; }
.footer__image > svg { width: 100%; height: auto; margin-bottom: -1px; }
.footer__name { margin: clamp(1rem, 3vw, 2.5rem) auto -0.2em; width: var(--page); font-family: var(--f-title); font-weight: var(--title-weight); font-size: clamp(4.5rem, 22vw, 20rem); line-height: 0.78; letter-spacing: -0.045em; text-transform: var(--title-case); text-align: center; white-space: nowrap; color: color-mix(in oklch, var(--ink) 9%, var(--card)); -webkit-user-select: none; user-select: none; }
.footer__name--solid { color: var(--accent); }
.footer__name--outline { color: transparent; -webkit-text-stroke: 1px var(--stroke); }
.footer__name--glow { color: transparent; background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 80%, var(--ink)), transparent 92%); -webkit-background-clip: text; background-clip: text; }

/* ---------- 18. Motion (with motion.js) ----------
   Each element has ONE movement: short, played once, and meaningful. Nothing loops. Without JavaScript, everything is visible. */
html.js [data-reveal] { opacity: 0; transform: translateY(1.125rem); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), filter 0.7s var(--ease); transition-delay: calc(var(--stagger, 0) * 80ms); }
html.js [data-reveal="left"] { transform: translateX(-1.5rem); }
html.js [data-reveal="right"] { transform: translateX(1.5rem); }
html.js [data-reveal="zoom"] { transform: scale(0.955); }
html.js [data-reveal="settle"] { transform: translateY(1.5rem) rotate(var(--tilt, 4deg)); transform-origin: 50% 100%; }   /* the hero object arrives tilted and settles */
html.js [data-reveal="focus"] { transform: none; filter: blur(8px); }                                                    /* blurred, then sharp */
html.js [data-reveal].in-view { opacity: 1; transform: none; filter: none; }
/* a line that draws itself: <path pathLength="1" data-trace …>  (inside an element that receives .in-view, or on the element itself) */
html.js [data-trace] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); transition-delay: calc(var(--stagger, 0) * 140ms); }
html.js .in-view [data-trace], html.js [data-trace].in-view { stroke-dashoffset: 0; }
/* a gauge that fills up to its value: <span class="gauge" style="--v:.76"><i></i></span> */
.gauge { display: block; height: 0.5rem; border-radius: 99px; background: var(--hairline); overflow: hidden; }
.gauge > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; transform: scaleX(var(--v, 0.5)); }
.gauge--hatch > i { background: repeating-linear-gradient(135deg, var(--accent) 0 3px, color-mix(in oklch, var(--accent) 55%, transparent) 3px 6px); }
html.js .gauge > i { transform: scaleX(0); transition: transform 1.1s var(--ease) calc(var(--stagger, 0) * 110ms); }
html.js .in-view .gauge > i, html.js .gauge.in-view > i { transform: scaleX(var(--v, 0.5)); }
/* the calendar that fills in day after day: <ol class="calendar" data-days="31" data-start="4" data-taken="3,4,10,11,17,18"></ol> (data-start: 1 = the month starts on a Monday) */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25em; width: min(100%, 16rem); font: 500 0.75rem / 1 var(--f-text); font-variant-numeric: tabular-nums; }
.stage .calendar { width: auto; font-size: 0.95em; }
.calendar li { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; color: var(--ink-2); background: var(--sunken); }
.calendar li.taken { color: var(--on-accent); background: var(--accent); }
html.js .calendar li.taken { color: var(--ink-2); background: var(--sunken); transition: background-color 0.3s calc(var(--stagger, 0) * 130ms + 0.2s), color 0.3s calc(var(--stagger, 0) * 130ms + 0.2s), transform 0.45s var(--ease-spring) calc(var(--stagger, 0) * 130ms + 0.2s); transform: scale(0.86); }
html.js .calendar.in-view li.taken { color: var(--on-accent); background: var(--accent); transform: none; }

/* ---------- 19. Components new in 0.5 (drawn from references of places, brands and interactive components) ----------
   Each one has its reason in references/repertoire.md; none is mandatory. */

/* a. the boxed word: a very pale background and four thin lines that run past the corners, like the guides in a design tool.
   The word keeps its ink color; the rule is the same for every accent. <span class="v-boxed">tidy</span> */
.v-boxed { position: relative; display: inline-block; margin-inline: 0.1em; padding: 0.05em 0.1em 0.07em; line-height: 0.92; background: color-mix(in oklab, var(--accent) 13%, transparent); }
.v-boxed::before { content: ""; position: absolute; inset: -0.14em -0.24em; pointer-events: none; --l: color-mix(in oklab, var(--accent-deep) 75%, transparent);
  background: linear-gradient(var(--l), var(--l)) 0 0.14em / 100% 1px no-repeat, linear-gradient(var(--l), var(--l)) 0 calc(100% - 0.14em) / 100% 1px no-repeat,
    linear-gradient(var(--l), var(--l)) 0.24em 0 / 1px 100% no-repeat, linear-gradient(var(--l), var(--l)) calc(100% - 0.24em) 0 / 1px 100% no-repeat; }
/* b. the fading ending: the last words turn gray (at least 3:1 contrast, so titles only). <span class="v-dim">…the ending.</span> */
.v-dim { color: color-mix(in oklab, var(--ink-2) 78%, var(--bg)); }

/* c. the list with one lit word: the hovered word (or, on touch, the one in the middle of the screen: data-center) lights up, the others fade.
   <ul class="spotlight-list" data-center><li><span>Haircut</span><small>30 min · from €35</small></li>…</ul> */
.spotlight-list { display: grid; gap: 0.15em; font: var(--title-weight) clamp(2rem, 1.3rem + 2.8vw, 3.75rem) / 1.04 var(--f-title); letter-spacing: var(--title-tracking); text-transform: var(--title-case); }
.spotlight-list > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2em 1em; padding-block: 0.08em; border-bottom: 1px solid var(--hairline); color: var(--ink); cursor: default; transition: color 0.35s var(--ease); }
.spotlight-list > li small { font: 500 var(--t-small) / 1.3 var(--f-text); letter-spacing: 0; text-transform: none; color: var(--ink-2); opacity: 0; translate: -0.5em 0; transition: opacity 0.3s var(--ease), translate 0.4s var(--ease); }
.spotlight-list:has(> li:hover, > li.is-lit) > li:not(:hover, .is-lit) { color: color-mix(in oklab, var(--ink) 56%, var(--bg)); }   /* at least 3:1: they stay readable */
.spotlight-list > li:is(:hover, .is-lit) small { opacity: 1; translate: 0 0; }
@media (hover: none) { .spotlight-list > li small { opacity: 1; translate: 0 0; } }

/* d. the button that turns into its result: idle → loading (a ring spins) → done ("Sent"); or error.
   <button class="button button--states" type="button"><span class="button__label">Book</span><span class="button__loading" aria-hidden="true"></span>
   <span class="button__done" aria-live="polite"><svg viewBox="0 0 12 12"><path d="M2.5 6.4l2.3 2.3 4.7-5"/></svg>Booked</span><span class="button__error">Try again</span></button>
   The page sets data-state="loading" | "done" | "error"; data-demo: it plays through on its own when clicked (for a demo). */
.button--states { display: inline-grid; place-items: center; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), translate 0.25s var(--ease); }
.button--states > * { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 0.45em; transition: opacity 0.25s var(--ease), translate 0.35s var(--ease); }
.button--states > :not(.button__label) { opacity: 0; translate: 0 0.5em; pointer-events: none; }
.button__loading { width: 1.1em; height: 1.1em; border-radius: 50%; border: 2px solid color-mix(in oklab, currentColor 30%, transparent); border-top-color: currentColor; }
.button__done svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button--states[data-state] > .button__label { opacity: 0; translate: 0 -0.5em; }
.button--states[data-state="loading"] { cursor: progress; }
.button--states[data-state="loading"] > .button__loading, .button--states[data-state="done"] > .button__done, .button--states[data-state="error"] > .button__error { opacity: 1; translate: 0 0; }
.button--states[data-state="loading"] > .button__loading { animation: button-spin 0.8s linear infinite; }
.button--states[data-state="done"] { background: var(--dark); color: var(--on-dark); box-shadow: var(--sheen); }
.button--states[data-state="error"] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@keyframes button-spin { to { rotate: 1turn; } }
@media (prefers-reduced-motion: reduce) { .button--states[data-state="loading"] > .button__loading { animation: none; border-color: currentColor; border-style: dotted; } }

/* e. rolling digits: only the digits that change move; the old one rises and fades out, the new one comes in from below.
   <span class="roll" data-value="€24.00"></span>   (motion.js: changing data-value is enough) */
.roll { display: inline-flex; font-variant-numeric: tabular-nums; white-space: nowrap; }
.roll__c { position: relative; display: inline-block; }
.roll__c > .roll__old { position: absolute; inset: 0; }
.roll__c--move > .roll__new { animation: roll-in 0.32s var(--ease) both; }
.roll__c--move > .roll__old { animation: roll-out 0.32s var(--ease) both; }
@keyframes roll-in { from { opacity: 0; transform: translateY(0.55em); } }
@keyframes roll-out { to { opacity: 0; transform: translateY(-0.55em); } }

/* f. the action bar pinned to the bottom: one to three actions that apply to the whole page. It shows up once the hero is past and
   steps aside when the footer comes into view (motion.js). <nav class="action-bar" aria-label="Book"><a class="button" …>…</a></nav> */
.action-bar { position: fixed; z-index: 35; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; gap: 0.4rem; padding: 0.4rem; border: var(--border); border-radius: calc(var(--r-button) + 0.4rem); background: color-mix(in oklab, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--sheen), var(--shadow-float); transition: translate 0.5s var(--ease), opacity 0.3s var(--ease); }
html.js .action-bar:not(.in-view) { translate: 0 calc(100% + 2rem); opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .action-bar { left: 0.75rem; right: 0.75rem; bottom: max(0.75rem, env(safe-area-inset-bottom)); } .action-bar > * { flex: 1; } body:has(.action-bar) { padding-bottom: 5rem; } }

/* g. the line connecting the steps: it draws itself as you scroll down, a capsule shows where you are, past steps light up.
   <ol class="timeline" data-progress><li><b class="timeline__num">01</b><div>…title, text, object…</div></li>…<i class="timeline__capsule" aria-hidden="true"></i></ol> */
/* the line runs BEHIND the numbers: the list is its own layer (isolation), the numbers sit above it (z-index) on an opaque disc */
.timeline { position: relative; isolation: isolate; display: grid; gap: clamp(2rem, 5vw, 3.5rem); padding-left: 3.5rem; --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 1.05rem; top: 0.6rem; bottom: 0.6rem; width: 2px; border-radius: 2px; background: var(--hairline); }
.timeline::after { background: var(--accent); transform-origin: top; scale: 1 var(--p); }
.timeline > li { position: relative; display: grid; gap: 0.6rem; }
.timeline__num { position: absolute; z-index: 1; left: -3.5rem; top: 0; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--card); color: var(--ink-2); font: 600 0.8125rem / 1 var(--f-mono); box-shadow: 0 0 0 1px var(--hairline), 0 0 0 5px var(--bg); transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }
.timeline > li.is-past .timeline__num { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px var(--bg), var(--glow); }
.timeline__capsule { position: absolute; left: calc(1.05rem - 5px); top: 0.6rem; width: 12px; height: 26px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px var(--bg), var(--glow); translate: 0 calc(var(--p) * (var(--l, 0px) - 1.2rem - 26px)); }
@media (prefers-reduced-motion: reduce) { .timeline { --p: 1 !important; } .timeline > li .timeline__num { background: var(--accent); color: var(--on-accent); } }

/* h. the shrinking photo: it arrives full-bleed, then narrows to a portrait in the center, and the text settles in on each side.
   <section class="shrink" data-progress="sticky"><div class="shrink__sticky"><div class="shrink__left">…</div>
   <figure class="photo shrink__photo">…</figure><div class="shrink__right">…</div></div></section> */
.shrink { position: relative; height: 230vh; --p: 0; }
.shrink__sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr minmax(0, 30rem) 1fr; align-items: center; gap: clamp(1rem, 3vw, 3rem); padding-inline: clamp(1rem, 3vw, 2.5rem); overflow: clip; }
.shrink__photo { grid-area: 1 / 2; place-content: center; justify-items: center; text-align: center; width: 100%; height: 100%; max-height: 82vh; aspect-ratio: auto; z-index: 1; clip-path: inset(0 round var(--r-shell)); }
html.js .shrink__photo { grid-column: 1 / -1; height: 100vh; max-height: none; border-radius: 0; clip-path: inset(calc(var(--p) * 9vh) calc(var(--p) * (50% - 15rem)) round calc(var(--p) * var(--r-shell))); }
.shrink__left { grid-area: 1 / 1; display: grid; gap: 1rem; justify-items: start; z-index: 2; }
.shrink__right { grid-area: 1 / 3; display: grid; gap: 1rem; justify-items: start; z-index: 2; }
html.js .shrink__left, html.js .shrink__right { opacity: clamp(0, calc((var(--p) - 0.55) * 3), 1); translate: 0 calc((1 - clamp(0, calc((var(--p) - 0.55) * 3), 1)) * 1.5rem); }
@media (max-width: 899px), (max-height: 520px), (prefers-reduced-motion: reduce) {
  .shrink { height: auto; }
  .shrink__sticky { position: static; height: auto; grid-template-columns: minmax(0, 1fr); padding-block: 2rem; }
  html.js .shrink__photo, .shrink__photo { grid-area: auto; height: auto; aspect-ratio: var(--ratio, 4 / 5); max-height: 70vh; clip-path: inset(0 round var(--r-shell)); }
  .shrink__left, .shrink__right { grid-area: auto; }
  html.js .shrink__left, html.js .shrink__right { opacity: 1; translate: 0 0; } }

/* i. shapes sampled from the client's place or object (references/places-and-products.md): ONE per page, on everything that has an edge.
   .chamfer: the cut corners of a box, of a plaque (--corner) · .scallop: the edge of a label (--f) · .arch: a door, a shop window */
.chamfer { --corner: 12px; border-radius: 0; clip-path: polygon(var(--corner) 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, var(--corner) 100%, 0 calc(100% - var(--corner)), 0 var(--corner)); }
.scallop { --f: 8px; border-radius: 0; --round: radial-gradient(circle at 50% 100%, #000 calc(var(--f) - 0.5px), #0000 var(--f)); --round-bottom: radial-gradient(circle at 50% 0, #000 calc(var(--f) - 0.5px), #0000 var(--f));
  -webkit-mask: linear-gradient(#000 0 0) 0 50% / 100% calc(100% - 2 * var(--f) + 1px) no-repeat, var(--round) 0 0 / calc(2 * var(--f)) var(--f) repeat-x, var(--round-bottom) 0 100% / calc(2 * var(--f)) var(--f) repeat-x;
  mask: linear-gradient(#000 0 0) 0 50% / 100% calc(100% - 2 * var(--f) + 1px) no-repeat, var(--round) 0 0 / calc(2 * var(--f)) var(--f) repeat-x, var(--round-bottom) 0 100% / calc(2 * var(--f)) var(--f) repeat-x; }
.arch { border-radius: 999px 999px 0 0; }   /* the radii shrink together: the top becomes an exact semicircle, the bottom stays straight (a door) */
/* the double border of a plaque (a hairline a few pixels inside the edge), for a button or a label sampled from the place */
.plaque { outline: 1px solid color-mix(in oklab, currentColor 45%, transparent); outline-offset: -5px; }

/* j. tone-on-tone relief (embossing): the same color as the background, drawn by light alone. A sign pressed into the paper. */
.tex-emboss { background-color: inherit; color: transparent; text-shadow: -1px -1px 0 color-mix(in oklab, white 70%, transparent), 1px 1px 1px color-mix(in oklab, var(--shadow-tint) 30%, transparent); }
svg.tex-emboss { color: inherit; filter: drop-shadow(-1px -1px 0 color-mix(in oklab, white 75%, transparent)) drop-shadow(1px 1px 0.5px color-mix(in oklab, var(--shadow-tint) 32%, transparent)); }

/* k. the stamp set askew, straddling a corner: a date, a piece of proof, a "made here". It enters by landing on the page (data-reveal="stamp").
   <span class="stamp" style="--r:-12deg"><svg viewBox="0 0 100 100">…text along the circle (textPath)…</svg></span> */
.stamp { position: absolute; display: grid; place-items: center; width: var(--t, 6.5rem); aspect-ratio: 1; border-radius: 50%; color: var(--accent-deep); rotate: var(--r, -12deg); pointer-events: none; }
.stamp svg { width: 100%; height: 100%; overflow: visible; fill: currentColor; }
.stamp svg circle { fill: none; stroke: currentColor; }
.stamp text { font: 600 9.5px / 1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; }
html.js [data-reveal="stamp"] { opacity: 0; transform: scale(1.35); transition: opacity 0.25s var(--ease), transform 0.45s var(--ease-spring); }

/* l. the footer as a rounded block, floating on the background (for a shop, a light and warm page) */
.footer--floating { width: min(100% - 1.5rem, 1260px); margin: 0 auto clamp(0.75rem, 2vw, 1.25rem); border: 0; border-radius: max(1.25rem, calc(var(--r-shell) * 1.5)); box-shadow: var(--sheen), var(--shadow), 0 0 0 1px var(--hairline); }
.footer--floating .footer__top, .footer--floating .footer__bottom { width: auto; margin-inline: clamp(1.25rem, 4vw, 3rem); }

/* m. the image placeholder that speaks to the client: "Your photo here", what to photograph, the image prompt to copy */
.photo--prompt { align-content: space-between; }
.photo--prompt figcaption { max-width: none; display: grid; gap: 0.35rem; }
.photo--prompt figcaption > b { font: 600 0.9375rem / 1.2 var(--f-text); letter-spacing: 0; text-transform: none; opacity: 1; }
.photo--prompt figcaption > span { max-width: 24rem; }
.photo__prompt { margin-top: 0.4rem; max-width: 34rem; }
.photo__prompt summary { width: fit-content; font: 600 var(--t-mono) / 1.6 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }
.photo__prompt p { margin: 0.5rem 0 0.75rem; padding: 0.75rem 0.875rem; border-radius: var(--r-small); background: color-mix(in oklab, var(--card) 82%, transparent); color: var(--ink); font: 400 0.8125rem / 1.45 var(--f-text); }

/* n. (0.7) the image slot: an empty frame, like a wireframe, with one discreet button that opens the image prompt.
   The default image placeholder when you have no image tool. The frame keeps the exact shape of the image to come and
   the page reads finished; whoever makes the images opens the button, copies the prompt, generates the image and saves
   it under the name given in data-image: motion.js then shows it in place of the slot, nothing else to edit.
   <figure class="photo photo--slot" style="--ratio:16/9" data-image="images/room.jpg" data-alt="The dining room from the door, late afternoon" role="img" aria-label="Image to come: the dining room from the door">
     <span class="photo__format">16:9</span>
     <details class="photo__ask"><summary>Your image</summary>
       <div class="photo__ask-panel"><p>Interior photograph of …, 16:9, 2400 × 1350, no text, no logo.</p>
         <button type="button" class="button button--secondary" data-copy>Copy the prompt</button></div>
     </details>
   </figure> */
.photo--slot { isolation: isolate; align-content: end; padding: 0.75rem; background: color-mix(in oklab, var(--card) 70%, var(--bg)); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.photo--slot::after { background-image: linear-gradient(to top right, transparent calc(50% - 0.5px), color-mix(in oklab, currentColor 14%, transparent) 50%, transparent calc(50% + 0.5px)), linear-gradient(to top left, transparent calc(50% - 0.5px), color-mix(in oklab, currentColor 14%, transparent) 50%, transparent calc(50% + 0.5px)); opacity: 1; -webkit-mask-image: none; mask-image: none; }
.photo--slot::before { opacity: 0.35; }
.photo--slot .photo__format { top: 1rem; right: 1rem; opacity: 0.45; }
.photo__ask { position: static; z-index: 3; justify-self: start; }
.photo__ask summary { list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2rem; padding: 0.3rem 0.7rem; border-radius: 99px; background: color-mix(in oklab, var(--card) 88%, transparent); box-shadow: 0 0 0 1px var(--hairline); color: var(--ink-2); font: 500 0.75rem / 1 var(--f-text); cursor: pointer; opacity: 0.78; transition: opacity 0.2s, box-shadow 0.2s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.photo__ask summary::-webkit-details-marker { display: none; }
.photo__ask summary::before { content: ""; width: 0.8rem; height: 0.6rem; border: 1.5px solid currentColor; border-radius: 2px; background: radial-gradient(circle at 70% 35%, currentColor 1.2px, transparent 1.6px); }
.photo__ask summary:hover, .photo__ask[open] summary, .photo__ask summary:focus-visible { opacity: 1; box-shadow: 0 0 0 1px var(--ink-2); }
.photo__ask summary { position: relative; z-index: 4; }
.photo__ask-panel { position: absolute; z-index: 3; left: 0.75rem; right: 0.75rem; bottom: 3.25rem; max-width: 34rem; max-height: calc(100% - 4.25rem); overflow: auto; overscroll-behavior: contain; padding: 0.875rem; border-radius: var(--r-small); background: var(--card); color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--hairline); }
.photo__ask-panel p { margin: 0 0 0.75rem; font: 400 0.8125rem / 1.5 var(--f-text); }
.photo__ask-panel .button { min-height: 2.25rem; padding: 0.4rem 0.9rem; font-size: 0.8125rem; }
.photo--slot.is-filled { padding: 0; background: none; box-shadow: none; }
.photo--slot.is-filled::before, .photo--slot.is-filled::after, .photo.is-filled .photo__ask, .photo.is-filled .photo__format, .photo:not(.photo--slot).is-filled figcaption { display: none; }
/* the film slot (0.8): the same frame, for a film that says the trade best in motion (a hero, a room at work).
   <figure class="photo photo--slot" style="--ratio:16/9" data-video="images/hero.mp4" data-poster="images/hero.jpg"
           data-alt="A dog being dried, then a cat brushed, in the van" role="img" aria-label="Film to come: ...">
     <span class="photo__format">16:9 · film</span>
     <details class="photo__ask"><summary>Your film</summary><div class="photo__ask-panel"><p>...the film's prompt...</p>
       <button type="button" class="button button--secondary" data-copy>Copy the prompt</button></div></details>
   </figure>
   As soon as images/hero.mp4 exists, motion.js puts the film in place: muted, looping, inline;
   with "reduced motion" it stays on its still, with controls. No file yet: the slot shows, like an image slot. */
.photo video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
@media print { .photo__ask { display: none; } }

/* ---------- 20. Devices: the phone, the tablet, the laptop, and the store badges (new in 0.7) ----------
   For a device shown at page level (a hero, an app section, a feature), not as a small object inside a stage
   (inside a .stage, the small .phone of block 9 stays). Demo of every variant: components/devices.html.
   What makes a device look real, and what a hand-drawn one always gets wrong:
   - the proportions of a recent device (phone about 19.5 by 9: its width is 0.46 x its height), never thinner, never squatter;
   - a thin, EVEN black border all around the screen, a thin metal frame outside it, screen corners rounded (about 12% of the width);
   - the buttons ON THE SIDES, in relief by a hair, never on the face, and of ONE family, never a mix:
     an iPhone-like phone (.device-phone--island): on the left the small action button, then two separate volume buttons
     below it; on the right the long side button, centered on the pair of volume buttons; the camera island at the top
     (placed from the maker's published drawing, as a share of the height: action button 20.5 to 25 %, volume 28.5 to 36 %
     and 38 to 45.5 %, side button 31 to 43 %);
     an Android-like phone (.device-phone): a punch-hole camera, nothing on the left, the power key on the right
     with the volume rocker just below it (no island, no action button, no Apple trait);
   - a true status bar: the time on the left, signal, wifi and battery on the right; the camera in the middle;
   - the screen shows the REAL screens of the product (designed first, the same everywhere on the page), never gray bars.
   Size: one variable, --device-w (any length: 300px, 22rem, min(78vw, 320px)). Everything inside is in em and follows it:
   in the phone, 1em is about one point of a 393-point-wide phone, so an app written in em looks right at any size.
   Finishes: .device--graphite (default of the Android-like phone and the tablet), .device--silver (default of the laptop),
   .device--titanium (default of the island phone). */

.device-phone, .device-tablet, .device-laptop { --f1: oklch(0.3 0.004 270); --f2: oklch(0.52 0.004 270); --f3: oklch(0.22 0.004 270); --glass: oklch(0.1 0.003 270); position: relative; flex: none; isolation: isolate; }
.device-phone--island, .device-laptop { --f1: oklch(0.62 0.008 80); --f2: oklch(0.84 0.006 80); --f3: oklch(0.5 0.008 80); }
.device-laptop { --f1: oklch(0.8 0.004 250); --f2: oklch(0.95 0.002 250); --f3: oklch(0.66 0.005 250); }
.device-phone.device--graphite, .device-tablet.device--graphite, .device-laptop.device--graphite { --f1: oklch(0.3 0.004 270); --f2: oklch(0.52 0.004 270); --f3: oklch(0.22 0.004 270); }
.device-phone.device--silver, .device-tablet.device--silver, .device-laptop.device--silver { --f1: oklch(0.8 0.004 250); --f2: oklch(0.95 0.002 250); --f3: oklch(0.66 0.005 250); }
.device-phone.device--titanium, .device-tablet.device--titanium, .device-laptop.device--titanium { --f1: oklch(0.62 0.008 80); --f2: oklch(0.84 0.006 80); --f3: oklch(0.5 0.008 80); }

/* a. THE PHONE. Two variants, both without any brand mark:
   .device-phone                 the Android-like phone: a punch-hole camera, a gesture bar, power key and volume rocker on the right
   .device-phone--island         the iPhone-like phone: a pill-shaped camera island; on the left the action button and two
                                 separate volume buttons, on the right the side button
   Pick one and keep its traits whole: never an island with Android buttons, never a punch-hole with an action button.
   <div class="device-phone device-phone--island" style="--device-w:320px">
     <div class="device-phone__screen">
       <div class="device-status"><time>9:41</time><span class="device-status__icons"><i class="i-signal"></i><i class="i-wifi"></i><i class="i-battery"></i></span></div>
       <div class="device-app">…the app's real screen, written in em…</div>
     </div>
   </div>
   A screenshot instead: <img class="device-shot" src="…" alt="…"> as the only child of the screen (it has its own status bar).
   A dark app: add .device-screen--dark to the screen (the status bar and the home bar turn light). */
.device-phone { width: var(--device-w, 300px); aspect-ratio: 9 / 19.5; font-size: calc(var(--device-w, 300px) / 30); padding: 0.26em; border-radius: 4.6em;
  background: linear-gradient(100deg, var(--f3), var(--f2) 9%, var(--f1) 22%, var(--f1) 78%, var(--f2) 91%, var(--f3));
  box-shadow: inset 0 0 0 0.05em color-mix(in oklch, white 30%, transparent), 0 0 0 0.04em color-mix(in oklch, black 45%, transparent), 0 0.15em 0.3em color-mix(in oklch, var(--shadow-tint) 20%, transparent), 0 2.4em 4.5em -1.2em color-mix(in oklch, var(--shadow-tint) 42%, transparent); }
.device-phone--island { border-radius: 4.75em; }
/* the side buttons: outside the frame, behind it, by a hair (positions in em on a 65em-high phone, from real phones:
   iPhone: action button from 20.5 to 25% of the height, volume up 28.5 to 36%, volume down 38 to 45.5%, side button 31 to 43% on the right;
   Android: power key at about 22% on the right, volume rocker at about 33% below it, nothing on the left) */
.device-phone::before, .device-phone::after { content: ""; position: absolute; top: 0; z-index: -1; width: 0.34em; height: 100%; --b: linear-gradient(90deg, var(--f3), var(--f2) 45%, var(--f1)); }
.device-phone::before { left: -0.28em; background: none; }
.device-phone::after { right: -0.28em; background: var(--b) 0 14.4em / 100% 4.2em no-repeat, var(--b) 0 21.2em / 100% 8.4em no-repeat; }
.device-phone--island::before { background: var(--b) 0 13.3em / 100% 3em no-repeat, var(--b) 0 18.5em / 100% 4.9em no-repeat, var(--b) 0 24.7em / 100% 4.9em no-repeat; }
.device-phone--island::after { background: var(--b) 0 20.2em / 100% 7.7em no-repeat; }
/* the screen: its black border IS the bezel, even on all four sides; the inside radius is about 12% of the width */
.device-phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 0.78em solid var(--glass); border-radius: 4.34em; background: var(--card); color: var(--ink); font: 400 1em / 1.3 var(--f-text); box-shadow: 0 0 0 0.04em color-mix(in oklch, white 12%, transparent); }
.device-phone--island .device-phone__screen { border-radius: 4.49em; }
/* the camera: a punch-hole (Android-like) or the island (iPhone-like, a pill), always centered, always above the content */
.device-phone__screen::before { content: ""; position: absolute; z-index: 20; left: 50%; top: 0.95em; width: 1em; height: 1em; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 38% 36%, oklch(0.42 0.04 260) 0 12%, var(--glass) 30%); box-shadow: 0 0 0 0.12em color-mix(in oklch, var(--glass) 60%, transparent); }
.device-phone--island .device-phone__screen::before { top: 0.8em; width: 9.2em; height: 2.75em; border-radius: 99px; background: radial-gradient(circle at 76% 50%, oklch(0.3 0.03 260) 0 0.32em, transparent 0.42em), var(--glass); box-shadow: none; }
/* the home bar at the bottom (it takes the text color: dark on a light app, light on a dark one) */
.device-phone__screen::after { content: ""; position: absolute; z-index: 20; left: 50%; bottom: 0.6em; width: 30%; height: 0.3em; translate: -50% 0; border-radius: 99px; background: currentColor; opacity: 0.85; }
.device-phone--island .device-phone__screen::after { width: 36%; height: 0.38em; bottom: 0.55em; }
.device-screen--dark { background: oklch(0.14 0.004 270); color: oklch(0.97 0.002 270); }
.device-app { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.device-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* b. THE STATUS BAR: a real time, real icons (drawn once, here, as masks: they take the text color).
   Write a plausible time ("9:41", "10:08"): never "00:00", never a ticking clock. */
.device-status { flex: none; display: flex; align-items: center; justify-content: space-between; height: 3.1em; padding: 0.35em 1.7em 0 1.9em; font: 500 1.05em / 1 var(--f-text); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.device-status > :first-child { font: inherit; }
.device-phone--island .device-status { display: grid; grid-template-columns: 1fr 9.2em 1fr; height: 4.35em; padding: 0.55em 0.6em 0; font-size: 1.2em; font-weight: 600; }
.device-phone--island .device-status > :first-child { justify-self: center; }
.device-phone--island .device-status__icons { grid-column: 3; justify-self: center; font-size: 0.86em; }
.device-status__icons { display: inline-flex; align-items: center; gap: 0.32em; }
.device-status__icons > * { display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-signal { width: 1.3em; height: 0.86em; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5.5' width='3' height='6.5' rx='1'/%3E%3Crect x='10' y='3' width='3' height='9' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3C/svg%3E"); }
.i-wifi { width: 1.2em; height: 0.9em; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-0.5 -0.5 17 13' stroke='black' stroke-width='0.7' stroke-linejoin='round'%3E%3Cpath d='M8 11.5 L5.454 8.954 A3.6 3.6 0 0 1 10.546 8.954 Z'/%3E%3Cpath d='M2.767 6.267 A7.4 7.4 0 0 1 13.233 6.267 L11.818 7.682 A5.4 5.4 0 0 0 4.182 7.682 Z'/%3E%3Cpath d='M0.08 3.58 A11.2 11.2 0 0 1 15.92 3.58 L14.505 4.995 A9.2 9.2 0 0 0 1.495 4.995 Z'/%3E%3C/svg%3E"); }
.i-battery { width: 1.95em; height: 0.92em; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 13'%3E%3Crect x='0.5' y='0.5' width='23' height='12' rx='3.8' fill='none' stroke='black' stroke-opacity='0.4'/%3E%3Crect x='2' y='2' width='17' height='9' rx='2.3'/%3E%3Cpath d='M25 4.4 a1.6 1.6 0 0 1 0 4.2 z' fill-opacity='0.45'/%3E%3C/svg%3E"); }

/* c. THE PHONE CUT OFF AT THE BOTTOM: only the top shows, and it fades out at the bottom (NEVER at the top:
   the top of a phone, its camera and its status bar, is what makes it a phone).
   <div class="device-cut" style="--device-w:320px;--show:0.62"><div class="device-phone">…</div></div>
   --device-w goes on .device-cut (the phone inherits it) · --show: the visible share of the phone's height (0.4 to 0.8)
   · --fade: the height of the fade (default 28%) */
.device-cut { --pad: calc(var(--device-w, 300px) * 0.14); width: fit-content; height: calc(var(--device-w, 300px) / 0.4615 * var(--show, 0.62) + var(--pad)); margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0; padding: var(--pad) var(--pad) 0; overflow: hidden; -webkit-mask: linear-gradient(to bottom, #000 calc(100% - var(--fade, 28%)), transparent); mask: linear-gradient(to bottom, #000 calc(100% - var(--fade, 28%)), transparent); }

/* d. THE TABLET (landscape by default; .device-tablet--portrait). Same rules: an even black border, a thin frame,
   the camera in the middle of the long edge, the buttons on the top edge and the right side.
   <div class="device-tablet" style="--device-w:620px"><div class="device-tablet__screen"><div class="device-status">…</div><div class="device-app">…</div></div></div> */
.device-tablet { width: var(--device-w, 560px); aspect-ratio: 1.39; font-size: calc(var(--device-w, 560px) / 60); padding: 0.24em; border-radius: 3.1em;
  background: linear-gradient(100deg, var(--f3), var(--f2) 5%, var(--f1) 14%, var(--f1) 86%, var(--f2) 95%, var(--f3));
  box-shadow: inset 0 0 0 0.05em color-mix(in oklch, white 30%, transparent), 0 0 0 0.04em color-mix(in oklch, black 45%, transparent), 0 0.15em 0.3em color-mix(in oklch, var(--shadow-tint) 18%, transparent), 0 2.4em 4.5em -1.6em color-mix(in oklch, var(--shadow-tint) 40%, transparent); }
.device-tablet--portrait { aspect-ratio: 1 / 1.39; }
.device-tablet::before { content: ""; position: absolute; z-index: -1; top: -0.3em; right: -0.3em; width: 12em; height: 12em; --b: linear-gradient(var(--f2), var(--f3)); --c: linear-gradient(90deg, var(--f3), var(--f2)); background: var(--b) right 4.6em top 0 / 4.2em 0.36em no-repeat, var(--c) right 0 top 4.8em / 0.36em 2.8em no-repeat, var(--c) right 0 top 8em / 0.36em 2.8em no-repeat; }
.device-tablet::after { content: ""; position: absolute; z-index: 2; left: 50%; top: 1.05em; width: 0.62em; height: 0.62em; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 38% 36%, oklch(0.42 0.04 260) 0 14%, oklch(0.16 0.004 270) 34%); }
.device-tablet--portrait::after { top: 50%; left: 1.05em; translate: 0 -50%; }
.device-tablet__screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 2.1em solid var(--glass); border-radius: 2.86em; background: var(--card); color: var(--ink); font: 400 1em / 1.3 var(--f-text); }
.device-tablet .device-status { height: 2.4em; padding: 0 1.6em; font-size: 1em; }

/* e. THE LAPTOP: the lid (a black bezel, thicker at the bottom, a camera at the top, no logo) on a metal base
   with its thumb notch. The base is a bit wider than the lid, as in a real front view.
   <div class="device-laptop" style="--device-w:720px"><div class="device-laptop__screen">…the real site or app…</div></div> */
.device-laptop { width: var(--device-w, 640px); font-size: calc(var(--device-w, 640px) / 64); padding-bottom: 1.5em; }
.device-laptop__screen { position: relative; width: 87%; margin-inline: auto; aspect-ratio: 16 / 10.3; overflow: hidden; border: solid var(--glass); border-width: 1.55em 1.2em 2em; border-radius: 2em 2em 0.5em 0.5em; background: var(--card); color: var(--ink); font: 400 1em / 1.3 var(--f-text);
  box-shadow: 0 0 0 0.14em var(--f1), 0 0 0 0.2em color-mix(in oklch, black 25%, transparent); }
.device-laptop::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 0.55em; width: 0.5em; height: 0.5em; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 38% 36%, oklch(0.42 0.04 260) 0 14%, oklch(0.18 0.004 270) 36%); }
.device-laptop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.65em; border-radius: 0.15em 0.15em 2.2em 2.2em / 0.15em 0.15em 1.3em 1.3em;
  background: radial-gradient(ellipse 5em 0.5em at 50% 0, color-mix(in oklch, var(--f3) 85%, black) 0 96%, transparent 100%), linear-gradient(var(--f2), var(--f1) 35%, var(--f3) 92%, color-mix(in oklch, var(--f3) 70%, black));
  box-shadow: 0 1.4em 2em -0.8em color-mix(in oklch, var(--shadow-tint) 45%, transparent), 0 0.2em 0.3em -0.1em color-mix(in oklch, var(--shadow-tint) 35%, transparent); }

/* f. THE STORE BADGES: two SLOTS, never two drawings. The badges are trademarks: download the official files
   at build time and place them untouched (no recoloring, no redrawing, no tilt, no animation, no added shadow).
   - App Store: rules at https://developer.apple.com/app-store/marketing/guidelines/ , the badge in each language at
     https://toolbox.marketingtools.apple.com/ . Black is preferred, and required when another store's badge sits next to it.
   - Google Play: https://partnermarketinghub.withgoogle.com/brands/google-play/google-play/lockups-icons-badges/
     ("Get it on Google Play" badges, one per language; play.google.com/intl/en_us/badges/ redirects there).
   - The rules both share, built into the slots: the App Store badge comes FIRST; both have the SAME height
     (Google Play: the same size or larger), at least 40px on screen (Apple's minimum; Google's is 28px);
     a clear space of a quarter of the badge height on every side, with no text, photo or graphic inside it.
   - Use the badges in the page's language. If a downloaded file has a transparent margin baked in, crop it
     (or take the version without one) so both badges have the same VISIBLE height.
   - Link each badge to the app's real store page. No real app yet: keep the empty slots, never a fake link.
   <div class="store-badges" style="--badge-h:48px">
     <a class="store-badge store-badge--apple" href="https://apps.apple.com/…"><img src="app-store-badge.svg" alt="Download on the App Store"></a>
     <a class="store-badge store-badge--google" href="https://play.google.com/store/apps/details?id=…"><img src="google-play-badge.svg" alt="Get it on Google Play"></a>
   </div>
   Empty slot (before the file is in place): a <span> with the same classes, no <img>, and data-label="App Store badge" (short: it must fit on one line). */
.store-badges { --badge-h: 48px; --h: max(var(--badge-h), 40px); display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--h) / 2.5); margin-block: calc(var(--h) / 4); }
.store-badge { display: block; flex: none; height: var(--h, 48px); aspect-ratio: var(--ratio); }
.store-badge--apple { --ratio: 119.66 / 40; order: -1; }
.store-badge--google { --ratio: 564 / 168; }
.store-badge:has(img, svg) { aspect-ratio: auto; }
.store-badge img, .store-badge svg { display: block; height: 100%; width: auto; }
.store-badge:not(:has(img, svg)) { display: grid; place-items: center; padding-inline: 0.75em; border: 1.5px dashed var(--stroke); border-radius: calc(var(--h, 48px) * 0.18); color: var(--ink-2); font: 500 0.6875rem / 1.2 var(--f-mono); letter-spacing: 0.02em; text-align: center; text-decoration: none; }
.store-badge:not(:has(img, svg))::after { content: attr(data-label); }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: calc(var(--h, 48px) * 0.18); }
