/* Hallmark · shape: Feature Stack, recomposed as splits around the screens (draw fea022) · genre: playful · theme: brand (Hum's card-stock material, dealt 1/3) · redesign: full
 * paper: oklch(16% 0.045 274) · accent: oklch(76% 0.165 62) · display: Bahnschrift 700 at 82% width · body: Bahnschrift · hero: Stage · nav: floating pill (solid card stock, three page links and the action) · footer: mast · motion: the deal (three role cards fly out of the face-down pile once, the last turns over), off under reduced motion · signature: the app's own role reveal, set large and dealt as card stock, with a deck of role cards to turn over
 * axes: dark/condensed-sans/chromatic-orange · posture: full palette (orange the action and the one field, blue links and focus, red reserved for the role animations, cream card stock for what a player hands round) · contrast: pass · fold: pass · finish-review: subagent · 8 findings · 7 resolved 1 answered (F8 ragged columns) · hero-review: not run separately · job: try · draw: fea022 · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: P, a party game page could still read as any app page; the roles turn over like dealt cards and the reviews sit as notes on the table so the page plays the game */
/* Hallmark · reworded "Η πρώτη εφαρμογή που έφερε… για πάνω από μία δεκαετία!" into the hero line and the figures line · 58 names the 30-word hero */
/* Hallmark · dropped assets/js/crt.js, the narration waveform · the CRT overlay and the waveform were decoration the user asked to lose for a modern Palermo page */
/* Hallmark · dropped screenshot-6.png · the user found the closing screen looked off; the close is the line and the store badges */
/* Hallmark · dropped screenshot-1.png, screenshot-2.png, screenshot-3.png, screenshot-4.png, screenshot-5.png · the Palermo store frames are joined into strip-night and pair-roles so the phones run unbroken */
/* Hallmark · waive 39b · button.role is a playing card of the Palermo deck, 430px tall · the cards are game pieces turned over, not form controls */
/* Hallmark · waive 77 · section.field holds the decade line at display-s and two 104px figures · a figures band on the orange Palermo field, mass set in type */
/* Hallmark · dismissed 49 · the role cards are whole playing cards whose name and description wrap by design; nothing in a nav or button bar wraps */
/* Hallmark · dismissed 25 · .role__desc is a one-sentence caption on a 300px Palermo playing card, 28ch is its measure */
/* Hallmark · dismissed render · the font warning comes from the file:// pass; the localhost shots set Bahnschrift from assets/fonts */
/* Hallmark · answered F20 · the review wall stays in balanced columns; Palermo's 11 reviews vary from one line to six, so the last pocket is the length of one note */
/* Hallmark · dismissed F20 · the deck renders as one row of four at 1440, the Lottie tile closing the row */
/* Hallmark · waive 80 · span.role__anim plays mayor.json, lunatic.json and avenger.json from the Palermo app itself · the role art players see in the game, not a drawing made for the page */
/* Hallmark · dropped #roleAnimation · the user asked to lose the Palermo gun animation once each role card plays its own; a face-down pile stands for the rest of the deck */
@import url("./tokens.css");
@import url("./base.css");

:root { --torn-foot: polygon(0% 0%, 100% 0%, 100.0% calc(100% - 1px), 97.5% calc(100% - 5px), 95.0% calc(100% - 8px), 92.5% calc(100% - 13px), 90.0% calc(100% - 8px), 87.5% calc(100% - 6px), 85.0% calc(100% - 9px), 82.5% calc(100% - 13px), 80.0% calc(100% - 6px), 77.5% calc(100% - 1px), 75.0% calc(100% - 8px), 72.5% calc(100% - 6px), 70.0% calc(100% - 1px), 67.5% calc(100% - 5px), 65.0% calc(100% - 14px), 62.5% calc(100% - 9px), 60.0% calc(100% - 1px), 57.5% calc(100% - 3px), 55.0% calc(100% - 2px), 52.5% calc(100% - 8px), 50.0% calc(100% - 6px), 47.5% calc(100% - 6px), 45.0% calc(100% - 6px), 42.5% calc(100% - 7px), 40.0% calc(100% - 7px), 37.5% calc(100% - 2px), 35.0% calc(100% - 0px), 32.5% calc(100% - 3px), 30.0% calc(100% - 0px), 27.5% calc(100% - 4px), 25.0% calc(100% - 0px), 22.5% calc(100% - 1px), 20.0% calc(100% - 2px), 17.5% calc(100% - 8px), 15.0% calc(100% - 2px), 12.5% calc(100% - 7px), 10.0% calc(100% - 8px), 7.5% calc(100% - 1px), 5.0% calc(100% - 4px), 2.5% calc(100% - 3px), 0.0% calc(100% - 7px));
  --torn: polygon(0.0% 1px, 2.5% 7px, 5.0% 9px, 7.5% 14px, 10.0% 8px, 12.5% 4px, 15.0% 9px, 17.5% 10px, 20.0% 6px, 22.5% 9px, 25.0% 7px, 27.5% 11px, 30.0% 4px, 32.5% 1px, 35.0% 9px, 37.5% 6px, 40.0% 3px, 42.5% 9px, 45.0% 10px, 47.5% 4px, 50.0% 6px, 52.5% 9px, 55.0% 3px, 57.5% 7px, 60.0% 2px, 62.5% 2px, 65.0% 0px, 67.5% 0px, 70.0% 8px, 72.5% 6px, 75.0% 13px, 77.5% 10px, 80.0% 10px, 82.5% 14px, 85.0% 14px, 87.5% 6px, 90.0% 7px, 92.5% 9px, 95.0% 4px, 97.5% 0px, 100.0% 8px, 100.0% calc(100% - 1px), 97.5% calc(100% - 5px), 95.0% calc(100% - 8px), 92.5% calc(100% - 13px), 90.0% calc(100% - 8px), 87.5% calc(100% - 6px), 85.0% calc(100% - 9px), 82.5% calc(100% - 13px), 80.0% calc(100% - 6px), 77.5% calc(100% - 1px), 75.0% calc(100% - 8px), 72.5% calc(100% - 6px), 70.0% calc(100% - 1px), 67.5% calc(100% - 5px), 65.0% calc(100% - 14px), 62.5% calc(100% - 9px), 60.0% calc(100% - 1px), 57.5% calc(100% - 3px), 55.0% calc(100% - 2px), 52.5% calc(100% - 8px), 50.0% calc(100% - 6px), 47.5% calc(100% - 6px), 45.0% calc(100% - 6px), 42.5% calc(100% - 7px), 40.0% calc(100% - 7px), 37.5% calc(100% - 2px), 35.0% calc(100% - 0px), 32.5% calc(100% - 3px), 30.0% calc(100% - 0px), 27.5% calc(100% - 4px), 25.0% calc(100% - 0px), 22.5% calc(100% - 1px), 20.0% calc(100% - 2px), 17.5% calc(100% - 8px), 15.0% calc(100% - 2px), 12.5% calc(100% - 7px), 10.0% calc(100% - 8px), 7.5% calc(100% - 1px), 5.0% calc(100% - 4px), 2.5% calc(100% - 3px), 0.0% calc(100% - 7px)); }

body { font-size: 1.0625rem; background: var(--grain), var(--color-paper); }
h1, h2, h3 { font-stretch: var(--display-stretch); }
a { color: var(--color-accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-card); color: var(--color-card-ink); border-radius: var(--radius-input); }
.skip:focus-visible { top: var(--space-md); }

/* Controls: card stock that presses down */
.btn { --edge: 5px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-stock); font: 700 var(--text-md)/1 var(--font-display); font-stretch: 90%; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: 0 var(--edge) 0 0 var(--btn-edge); background: var(--grain), var(--btn-bg); color: var(--btn-ink); transition: translate var(--dur-micro) var(--ease-snap), box-shadow var(--dur-micro) var(--ease-snap); }
.btn:hover { --edge: 7px; translate: 0 -2px; text-decoration: none; color: var(--btn-ink); }
.btn:active { --edge: 1px; translate: 0 4px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; translate: none; }
.btn--primary { --btn-bg: var(--color-accent); --btn-ink: var(--color-accent-ink); --btn-edge: var(--color-accent-deep); transition-timing-function: var(--ease-spring); }
.btn--card { --btn-bg: var(--color-card); --btn-ink: var(--color-card-ink); --btn-edge: var(--color-card-edge); }

.store-badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.badge { display: block; border-radius: 10px; box-shadow: 0 5px 0 0 var(--color-night-edge); transition: translate var(--dur-micro) var(--ease-snap), box-shadow var(--dur-micro) var(--ease-snap); }
.badge img { height: 56px; width: auto; }
.badge:hover { translate: 0 -2px; box-shadow: 0 7px 0 0 var(--color-night-edge); }
.badge:active { translate: 0 4px; box-shadow: 0 1px 0 0 var(--color-night-edge); }

/* Nav: a solid pill floating over the night */
:root { --nav-height: 88px; }
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding-block: var(--space-sm); pointer-events: none; }
.nav__pill { pointer-events: auto; display: flex; align-items: center; gap: var(--space-xs); min-height: 64px; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); background: var(--grain), var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule), 0 4px 0 0 var(--color-night-edge), 0 18px 32px -16px var(--color-shadow); }
.nav__logo { display: block; margin-right: auto; border-radius: var(--radius-input); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: var(--space-2xs); margin: 0 var(--space-sm) 0 0; padding: 0; list-style: none; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-md); white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav__links a:hover { background: var(--color-paper-3); color: var(--color-ink); text-decoration: none; }
.nav__links a:active { background: var(--color-rule); }
.btn--pill { border-radius: var(--radius-pill); min-height: 48px; }

/* Hero: Stage */
.hero { display: grid; align-items: center; min-height: calc(100dvh - var(--nav-height)); padding-block: var(--space-xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero h1 { font-size: clamp(3rem, 4.6vw + 1rem, 6.25rem); line-height: 0.96; max-width: 11ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 34ch; }
.hero .store-badges { margin-top: var(--space-xl); }
.hero__visual { position: relative; margin: 0; justify-self: start; filter: var(--shadow-paper); }
.sheet { height: min(calc(100dvh - var(--nav-height) - var(--space-3xl)), 680px); aspect-ratio: 1320 / 1434; border-radius: var(--radius-card); overflow: hidden; rotate: 1.5deg; clip-path: var(--torn-foot); background: var(--color-paper-3); }
.sheet img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; border-radius: var(--radius-card); }
.sticker { position: absolute; left: calc(-1 * var(--space-xl)); bottom: 14%; display: grid; place-content: center; width: 148px; aspect-ratio: 1; border-radius: 50%; background: var(--grain), var(--color-field); color: var(--color-field-ink); text-align: center; font: 400 var(--text-md)/1.1 var(--font-body); rotate: -12deg; box-shadow: 0 5px 0 0 var(--color-field-edge), 6px 16px 24px -10px var(--color-shadow); }
.sticker b { display: block; font: 700 var(--text-2xl)/1 var(--font-display); font-stretch: var(--display-stretch); font-variant-numeric: tabular-nums; }

/* Narration: the app's screens */
.story { padding-block: var(--space-2xl) var(--section-gap); }
.story__frame { filter: var(--shadow-paper); }
.story__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: center; }
.story__text { padding-right: var(--space-xl); }
.story .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }
.story__visual { margin: 0; aspect-ratio: 1980 / 1150; clip-path: var(--torn-foot); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-3); }
.story__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; border-radius: var(--radius-card); }

/* Roles: a deck to turn over */
.roles { padding-block: var(--section-gap-s); background: var(--grain), var(--fibre), var(--color-paper-2); }
.roles__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; justify-content: space-between; }
.roles__head .lead { color: var(--color-ink-2); }
.roles__deck { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.role { position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; padding: 0; border: 0; border-radius: var(--radius-card); background: none; cursor: pointer; perspective: 1400px; transition: translate var(--dur-short) var(--ease-snap); }
.role:hover { translate: 0 -6px; }
.role:active { translate: 0 2px; }
.roles__deck li:nth-child(1) .role { rotate: -2deg; } .roles__deck li:nth-child(2) .role { rotate: 1.5deg; } .roles__deck li:nth-child(3) .role { rotate: -1deg; }
.role__back, .role__front { position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--radius-card); backface-visibility: hidden; transition: transform var(--dur-long) var(--ease-snap), visibility 0s linear calc(var(--dur-long) / 2); box-shadow: 0 6px 0 0 var(--btn-edge, var(--color-night-edge)), 0 22px 30px -16px var(--color-shadow); }
.role__back { --lattice: color-mix(in oklab, var(--color-accent) 20%, transparent); background: repeating-linear-gradient(45deg, transparent 0 13px, var(--lattice) 13px 14px), repeating-linear-gradient(-45deg, transparent 0 13px, var(--lattice) 13px 14px), var(--grain), var(--color-paper-3); box-shadow: 0 6px 0 0 var(--color-night-edge), 0 22px 30px -16px var(--color-shadow); }
.role__back::before, .role__back::after { content: ""; position: absolute; border-radius: calc(var(--radius-card) - var(--space-sm)); pointer-events: none; }
.role__back::before { inset: var(--space-sm); border: 2px solid var(--color-accent); }
.role__back::after { inset: calc(var(--space-sm) + var(--space-xs)); border: 1px solid color-mix(in oklab, var(--color-accent) 45%, transparent); }
.role__seal { display: grid; place-items: center; width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--grain), var(--color-paper-2); box-shadow: 0 0 0 2px var(--color-accent), 0 0 0 var(--space-xs) var(--color-paper-3), 0 0 0 calc(var(--space-xs) + 1px) color-mix(in oklab, var(--color-accent) 45%, transparent); transition: rotate var(--dur-long) var(--ease-snap); }
.role__seal img { width: 74%; height: auto; translate: -6% 0; } /* optical centre: the palm and drip carry the weight right of the outline's centre */
.role:hover .role__seal { rotate: -8deg; }
.role__pip { position: absolute; top: var(--space-lg); left: var(--space-lg); padding: 0 var(--space-2xs); background: var(--color-paper-3); color: var(--color-accent); font: 700 var(--text-xl)/1 var(--font-display); font-stretch: var(--display-stretch); }
.role__pip--foot { top: auto; left: auto; bottom: var(--space-lg); right: var(--space-lg); rotate: 180deg; }
.role__front { transform: rotateY(180deg); align-content: start; justify-items: center; grid-template-rows: minmax(0, 1fr) auto auto auto; gap: var(--space-2xs); padding: var(--space-md) var(--space-lg) var(--space-lg); background: var(--grain), var(--color-card-neutral); color: var(--color-ink); --btn-edge: var(--color-night-edge); text-align: center; }
.role__front::after { content: ""; position: absolute; inset: var(--space-sm); border: 1px solid color-mix(in oklab, var(--color-ink) 14%, transparent); border-radius: calc(var(--radius-card) - var(--space-sm)); pointer-events: none; }
.role__anim { width: 100%; height: 100%; min-height: 0; max-width: 200px; }
.role__anim svg { width: 100%; height: 100%; }
.role__name { font: 700 var(--text-2xl)/1 var(--font-display); font-stretch: var(--display-stretch); overflow-wrap: break-word; min-width: 0; }
.role__team { font-size: var(--text-sm); color: var(--color-card-neutral-muted); }
/* The front takes its team's colour: civilians blue, mafia red, neutral stays cream */
.role--civilians .role__front { background: var(--grain), var(--color-card-civilians); --btn-edge: var(--color-card-civilians-edge); }
.role--civilians .role__team { color: var(--color-card-civilians-muted); }
.role--mafia .role__front { background: var(--grain), var(--color-card-mafia); --btn-edge: var(--color-card-mafia-edge); }
.role--mafia .role__team { color: var(--color-card-mafia-muted); }
.role__desc { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.4; color: var(--color-ink-2); max-width: 30ch; text-wrap: pretty; }
.js .role[aria-pressed="false"] .role__front, .role[aria-pressed="true"] .role__back { visibility: hidden; }
.role[aria-pressed="true"] .role__back { transform: rotateY(-180deg); }
.role[aria-pressed="true"] .role__front { transform: rotateY(0deg); }
html:not(.js) .role__back { display: none; }
html:not(.js) .role__front { transform: none; }
.roles__more { display: grid; justify-items: center; gap: var(--space-sm); text-align: center; }
.roles__stack { position: relative; display: block; width: 56%; aspect-ratio: 5 / 7; margin-bottom: var(--space-md); }
.roles__stack .role__back { rotate: -14deg; translate: -20% 4%; }
.roles__stack .role__back:nth-child(2) { rotate: 12deg; translate: 20% 2%; }
.roles__stack .role__back:nth-child(3) { rotate: -1deg; translate: 0 -2%; }
.roles__stack .role__back::before { inset: var(--space-xs); }
.roles__stack .role__back::after { inset: calc(var(--space-xs) + var(--space-2xs)); }
.roles__more p { font: 700 var(--text-xl)/1.1 var(--font-display); font-stretch: var(--display-stretch); color: var(--color-ink-2); }
.roles__hint { margin-top: var(--space-sm); font-size: var(--text-md); color: var(--color-accent); }
html:not(.js) .roles__hint { display: none; }

/* Figures on the orange field */
.field { margin-top: calc(-1 * var(--space-md)); padding-block: calc(var(--section-gap-s) + var(--space-md)); background: var(--grain), var(--fibre), var(--color-field); color: var(--color-field-ink); clip-path: var(--torn); position: relative; z-index: var(--z-base); }
.field ::selection { background: var(--color-field-ink); color: var(--color-field); }
.field__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.field__line { font: 700 var(--text-display-s)/1.02 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: var(--tracking-display); max-width: 18ch; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.figures { margin: 0; display: grid; gap: 0; }
.figures > div { display: flex; flex-direction: column-reverse; padding-block: var(--space-lg); border-top: 2px solid var(--color-field-ink); }
.figures > div:last-child { border-bottom: 2px solid var(--color-field-ink); }
.figures dd { margin: 0; font: 700 clamp(3.5rem, 5vw + 1rem, 6.5rem)/0.95 var(--font-display); font-stretch: var(--display-stretch); font-variant-numeric: tabular-nums; }
.figures dt { margin-top: var(--space-xs); font-size: var(--text-lead); }
.figures__lead { flex-direction: column !important; }
.figures__lead dt { margin: 0 0 var(--space-xs); }
.field :focus-visible { outline-color: var(--color-focus-on-field); }

/* Videos: four shorts, played in place */
.videos { padding-block: var(--section-gap) 0; }
.videos__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-2xl); }
.videos__more { font-size: var(--text-md); white-space: nowrap; }
.videos__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.short { display: grid; gap: var(--space-md); margin: 0; color: var(--color-ink); text-decoration: none; border-radius: var(--radius-card); }
.short:hover { text-decoration: none; color: var(--color-ink); }
.short__frame { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-3); box-shadow: 0 5px 0 0 var(--color-night-edge), 0 22px 30px -16px var(--color-shadow); transition: translate var(--dur-short) var(--ease-snap); }
.short__frame img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; border-radius: var(--radius-card); }
.short:hover .short__frame { translate: 0 -4px; }
.short:active .short__frame { translate: 0 2px; }
.short__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--grain), var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 5px 0 0 var(--color-accent-deep), 0 12px 20px -8px var(--color-shadow); transition: translate var(--dur-micro) var(--ease-spring); }
.short__play svg { margin-left: var(--space-2xs); }
.short:hover .short__play { translate: 0 -2px; }
.short__title { font: 700 var(--text-lg)/1.2 var(--font-display); font-stretch: 90%; text-wrap: balance; }

/* Reviews: notes on the table */
.reviews { padding-block: var(--section-gap); }
.reviews h2 { margin-bottom: var(--space-2xl); }
.reviews__wall { columns: 3 18rem; column-gap: var(--gap-columns); }
.reviews__wall:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-card); }
.review { break-inside: avoid; display: grid; gap: var(--space-sm); margin-bottom: var(--space-xl); padding: var(--space-lg) var(--space-lg) var(--space-lg); border-radius: var(--radius-card); background: var(--grain), var(--fibre), var(--color-card); color: var(--color-card-ink); box-shadow: 0 5px 0 0 var(--color-card-edge), 0 22px 30px -18px var(--color-shadow); rotate: -0.8deg; }
.review:nth-child(3n + 2) { rotate: 0.9deg; }
.review:nth-child(3n) { rotate: -0.3deg; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); }
.review-stars { color: var(--color-accent-deep); letter-spacing: 0.04em; font-size: var(--text-md); }
.review-platform { font-size: var(--text-sm); color: var(--color-card-muted); }
.review h3 { font-size: var(--text-title); line-height: 1.1; max-width: none; }
.review--short h3 { font-size: var(--text-2xl); line-height: 1.02; }
.review p { font-size: var(--text-md); line-height: 1.5; color: var(--color-card-ink); }
.review p:empty { display: none; }
.review-name { font-size: var(--text-sm); color: var(--color-card-muted); }

/* Newsletter: the Brevo form, self-contained (no external sib-styles.css) */
.newsletter { padding-block: var(--section-gap-s) var(--section-gap); }
.newsletter__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.newsletter__copy h2 { font-size: var(--text-section); max-width: 18ch; }
.newsletter__copy p { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 46ch; }
.sib-form-message-panel { display: none; margin-bottom: var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-input); border: 1px solid; font-size: var(--text-md); line-height: 1.45; }
.sib-form-message-panel--active { display: block; }
.sib-form-message-panel__text { display: flex; align-items: center; gap: var(--space-sm); }
.sib-form-message-panel .sib-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: currentColor; }
#error-message { color: var(--color-error-on-night); border-color: var(--color-error-on-night); background: var(--color-paper-2); }
#success-message { color: var(--color-ink); border-color: var(--color-accent-2); background: var(--color-paper-2); }
#sib-form { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--grain), var(--fibre), var(--color-paper-2); }
.sib-form .form__entry, .sib-form .sib-form-block { margin: 0; padding: 0; border: 0; }
.sib-form .form__label-row { display: flex; flex-direction: column; gap: var(--space-xs); }
.sib-form .entry__label { font-size: var(--text-sm); color: var(--color-ink-2); }
#sib-form input.input { width: 100%; height: 52px; padding: 0 var(--space-md); border-radius: var(--radius-input); border: 1px solid var(--color-muted); background: var(--color-paper); color: var(--color-ink); font: inherit; outline: 3px solid transparent; outline-offset: 2px; }
#sib-form input.input:focus-visible { outline-color: var(--color-focus); }
#sib-form input.input::placeholder { color: var(--color-muted); }
#sib-form input.input:disabled { opacity: 0.55; cursor: not-allowed; }
.sib-form .entry__choice label { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: var(--text-sm); line-height: 1.45; color: var(--color-ink-2); cursor: pointer; }
.sib-form .entry__choice label { position: relative; }
.sib-form .input_replaced { position: absolute; top: 0; left: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; z-index: var(--z-raised); }
.sib-form .input_replaced:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.sib-form .checkbox { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid var(--color-muted); border-radius: 6px; background: var(--color-paper); }
.sib-form .input_replaced:checked + .checkbox { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.sib-form .input_replaced:checked + .checkbox::before { content: ""; position: absolute; top: 3px; left: 7px; width: 6px; height: 11px; border: solid var(--color-accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sib-form .input_replaced:focus-visible + .checkbox { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.sib-form .entry__error { display: none; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-error-on-night); }
.sib-form-block__button { --edge: 5px; width: 100%; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); margin-top: var(--space-xs); border: 0; border-radius: var(--radius-stock); background: var(--grain), var(--color-accent); color: var(--color-accent-ink); font: 700 var(--text-md)/1 var(--font-display); font-stretch: 90%; white-space: nowrap; cursor: pointer; box-shadow: 0 var(--edge) 0 0 var(--color-accent-deep); transition: translate var(--dur-micro) var(--ease-spring), box-shadow var(--dur-micro) var(--ease-spring); }
.sib-form-block__button:hover { --edge: 7px; translate: 0 -2px; }
.sib-form-block__button:active { --edge: 1px; translate: 0 4px; }
.sib-form-block__button:disabled { opacity: 0.55; cursor: not-allowed; translate: none; }
.sib-hide-loader-icon { display: none; }
.progress-indicator__icon { width: 1.2rem; height: 1.2rem; fill: currentColor; animation: indicator-spin 1.3s linear infinite; }
@keyframes indicator-spin { to { transform: rotate(360deg); } }
.input--hidden { display: none !important; }

/* Download: the close */
.download { padding-block: var(--section-gap-s); background: var(--grain), var(--fibre), var(--color-paper-2); border-top: 4px solid var(--color-night-edge); }
.download__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--space-3xl); align-items: center; }
.download h2 { font-size: clamp(3rem, 5.6vw + 1rem, 7.25rem); line-height: 0.95; max-width: 13ch; }
.download__sub { margin-top: var(--space-md); font: 700 var(--text-xl)/1.1 var(--font-display); font-stretch: var(--display-stretch); color: var(--color-accent); }
.download .store-badges { margin-top: var(--space-xl); }
.download__icon { order: -1; margin: 0; justify-self: start; width: min(100%, 340px); aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; rotate: -6deg; box-shadow: 0 8px 0 0 var(--color-night-edge), 0 30px 44px -18px var(--color-shadow); }
.download__icon img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid color-mix(in oklab, var(--color-ink) 12%, transparent); outline-offset: -1px; border-radius: 22.5%; }

/* Footer */
.site-footer { padding-block: var(--space-3xl) var(--space-2xl); font-size: var(--text-sm); color: var(--color-muted); }
.footer-help { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--color-rule); }
.footer-help p { font-size: var(--text-lead); line-height: 1.4; color: var(--color-ink); max-width: 46ch; }
.footer-mast { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-2xl) var(--space-xl); }
.footer-mast__logo { display: block; border-radius: var(--radius-input); }
.footer-mast__logo img { height: 40px; width: auto; }
.social { display: flex; gap: var(--space-sm); }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-paper-3); box-shadow: 0 4px 0 0 var(--color-night-edge); transition: translate var(--dur-micro) var(--ease-snap); }
.social a:hover { translate: 0 -2px; }
.social a:active { translate: 0 3px; }
.social img { width: 22px; height: 22px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); }
.legal-links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.fine-print { margin-top: var(--space-lg); max-width: 75ch; font-size: var(--text-xs); line-height: 1.5; }

@media (max-width: 60rem) {
  .nav__links { display: none; }
  .hero { min-height: 0; padding-block: var(--space-2xl) var(--space-3xl); }
  .hero__grid, .story__grid, .roles__head, .field__grid, .newsletter__grid, .download__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .sheet { height: auto; width: min(100%, 520px); }
  .sticker { left: 0; width: 116px; }
  .sticker b { font-size: var(--text-xl); }
  .story__text { padding-right: 0; }
  .roles__deck, .videos__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 46%); gap: var(--space-lg); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding: var(--space-sm) var(--gutter) var(--space-xl); }
  .roles__deck > li, .videos__row > li { scroll-snap-align: start; }
  /* Phone deck: straight cards, the one in view centred with its neighbours peeking either side */
  .roles__deck { margin-top: var(--space-xl); align-items: stretch; scroll-padding-inline: 0; }
  .roles__deck > li { scroll-snap-align: center; }
  .roles__deck li:nth-child(n) .role { rotate: none; }
  .role__front { grid-template-rows: 112px auto auto auto; align-content: center; padding: var(--space-lg) var(--space-md); }
  .role__anim { max-width: 112px; }
  .role__name { font-size: var(--text-2xl); }
  .role__desc { font-size: var(--text-md); line-height: 1.45; margin-top: var(--space-sm); }
  .roles__more { align-content: center; }
    .footer-help { flex-direction: column; align-items: flex-start; }
  .download__icon { width: 160px; }
}
@media (max-width: 40rem) {
  .nav__logo img { height: 32px; }
  .nav__pill { padding-left: var(--space-md); }
  .nav .btn { min-height: 44px; padding: 0 var(--space-md); }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 3.5rem); }
  .badge img { height: 48px; }
  .roles__deck, .videos__row { grid-auto-columns: 80%; }
    .footer-mast { flex-direction: column; align-items: flex-start; }
  .reviews__wall { columns: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 84%; align-items: stretch; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding: var(--space-xs) var(--gutter) var(--space-xl); }
  .reviews__wall > .review { scroll-snap-align: start; margin-bottom: 0; align-content: start; grid-template-rows: auto auto auto 1fr; }
  .review-name { align-self: end; }
  .review p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .badge, .role, .role__back, .role__front, .role__seal, .social a, .sib-form-block__button, .nav__links a, .short__frame, .short__play { transition: none; }
  .progress-indicator__icon { animation: none; }
}
