/* Hallmark · shape: Narrative Workflow · genre: editorial · theme: custom (vibe: "soft paper, rounded glass, one lime stain"; restyled from Brutal, deal 1/3, seed corporate-mento-vocational-self-discovery-c12e·2cd50e92·2026-11-20·r0) · job: sign up · draw: ddc601
 * hero: Stage · nav: floating pill · footer: mast · imagery: none · signature: the ≡ set large as the lema, «Lo que eres ≡ lo que haces», on frosted glass over a lime stain
 * axes: light/geometric-sans/chromatic-yellow · posture: restrained · contrast: pass · fold: pass · copy: verbatim · brand: MENTO (libro de marca v1.0, 2026-10) · redesign: restyle (keep the layout) · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V4 · weakest: E, ten verbatim stages push past the six-to-nine section guidance; varied the object and the surface per stage so no two neighbours share a skeleton */
/* Hallmark · waive 81 · the only photograph is img.avatar inside .letter__sign · it is Chema's portrait beside his own signature, black and white with a lime ring, not a data-slot */
/* Hallmark · dismissed 3 · the two team cards are the two halves of the team as the client's text splits it, education and AI; one paper, one ink, so they never read as a tile row */
/* Hallmark · waive 1 · display is Outfit 600, body Inter 400, both locked by the libro de marca §07 · Inter is the brand's declared interface face, used for body and never for a head */
/* Hallmark · dismissed 29 · the client asked for translucent surfaces in so many words · glass sits only where something shows through it: the nav over the scrolling page and the lema over the hero's lime stain, which is the brand book's own «mancha» */
/* Hallmark · dismissed 59 · twelve blocks, not nine: the source is a ten-stage argument the client supplied verbatim, and Narrative Workflow is the shape that numbers stages · every stage carries a different object and the surface changes, so no two neighbours share a skeleton */
/* Hallmark · dismissed 54 · the libro de marca's «antetítulo espaciado» (Inter uppercase, tracking +24 %) is dropped on purpose: Floor 9 outranks it, and the stage number inside each h2 does its work */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- type the brand book sets ---------- */

h1, h2 { line-height: 1.04; }
h1 { max-width: 14ch; }
h2 { max-width: 24ch; }
.display-s { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-display-s); letter-spacing: var(--tracking-display); line-height: 1.06; max-width: 30ch; overflow-wrap: break-word; min-width: 0; }
.lead { color: var(--color-ink-2); }
.prose p + p { margin-top: var(--space-lg); }
.prose { max-width: 62ch; }
.prose--wide { max-width: 68ch; }
/* 01 opens with Chema's statement set large, the follow-up paragraph at body size */
.opening { font-size: var(--text-xl); line-height: 1.4; color: var(--color-ink); max-width: 40ch; }
/* §02 has no object of its own: two columns give it the width the stage needs */
.prose--cols { max-width: none; columns: 2; column-gap: var(--space-3xl); }
.prose--cols p { break-inside: avoid; }
.prose--cols p + p { margin-top: var(--space-lg); }

.claim { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.3; letter-spacing: var(--tracking-display); max-width: 26ch; text-decoration: underline var(--stain); text-decoration-thickness: 0.36em; text-underline-offset: -0.24em; text-decoration-skip-ink: none; }
/* on ink the marker would swallow the letters: the claim turns lime instead (lime on ink 14:1) */
.stage--ink .claim { color: var(--color-accent); text-decoration: none; }
.claim--wide { max-width: 32ch; margin-top: var(--space-2xl); }
.source { margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-hair); max-width: 86ch; font-size: var(--text-sm); color: var(--color-muted); }
.dot { color: var(--color-accent); }

.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); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); }
.skip:focus { top: var(--space-md); }

/* ---------- controls: the capsule of the symbol's middle bar ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 18%, transparent); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-paper) 70%, transparent); color: var(--color-ink); font: 600 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.btn:hover { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); background: var(--color-paper-3); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
/* on the ink bands the plain button turns solid paper, or it reads grey */
.stage--ink .btn { border-color: var(--color-paper); background: var(--color-paper); }
.stage--ink .btn:hover { border-color: var(--color-accent); background: var(--color-accent); }
.btn--ink { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); box-shadow: var(--shadow-card); }
.btn--ink:hover { border-color: var(--color-ink-2); background: var(--color-ink-2); color: var(--color-paper); }
.btn--ink:active { background: var(--color-ink); }

a:not([class]) { text-decoration-thickness: var(--rule-hair); }
a:not([class]):hover { background: var(--color-accent); color: var(--color-accent-ink); text-decoration: none; border-radius: var(--space-2xs); }

/* ---------- nav: a floating pill of frosted glass over the page ---------- */

.slab { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding-top: var(--space-sm); }
.slab__in { display: flex; align-items: center; gap: var(--space-xl); min-height: 64px; padding-inline: var(--space-lg) var(--space-xs); border: var(--rule-hair) solid var(--glass-edge); border-radius: var(--radius-pill); background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur-nav); backdrop-filter: var(--glass-blur-nav); }
.wordmark { display: block; width: 100%; height: auto; }
.slab__mark { display: block; flex: none; color: var(--color-ink); border-radius: var(--space-2xs); }
.slab__mark .wordmark { width: 118px; }
.slab__mark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: var(--space-xs); }
.slab__cta { min-height: 48px; margin-inline-start: auto; }

/* ---------- hero: Stage, the lema on glass over a lime stain ---------- */

.hero { position: relative; isolation: isolate; overflow: clip; padding-block: var(--space-2xl); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
/* the stain: the brand book's lime «mancha», static, behind the glass */
.hero::before { width: 44%; aspect-ratio: 1; right: 16%; top: -2%; background: radial-gradient(closest-side, var(--stain) 18%, transparent); }
.hero::after { width: 40%; aspect-ratio: 1; right: 30%; bottom: -18%; background: radial-gradient(closest-side, var(--stain-warm), transparent); }
.hero__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: stretch; min-height: calc(100svh - 204px); }
.hero__text { align-self: center; }
.hero h1 { font-size: clamp(2.5rem, 3.4vw + 0.75rem, 3.8rem); line-height: 1.04; max-width: none; }
.brush { display: block; width: 50%; min-width: 180px; height: var(--space-lg); margin-top: var(--space-sm); fill: var(--color-accent); }
.hero .lead { margin-top: var(--space-lg); max-width: 30ch; font-size: var(--text-xl); line-height: 1.35; color: var(--color-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

/* the hero's right half waits for the film: same glass panel, the clip will fill it edge to edge */
.hero__media { display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-panel); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-lift); min-height: 320px; }
.hero__media > video, .hero__media > img { width: 100%; height: 100%; object-fit: cover; }
/* the clip has burned-in subtitles and edge-to-edge charts: keep it whole at 16:9, never crop */
.hero__media--video { align-self: center; aspect-ratio: 16 / 9; min-height: 0; background: var(--color-paper); }
.hero__media--video > video { object-fit: contain; }
/* custom video controls: floating bar just above the clip's burned-in subtitle band (14.2% of its height), shown on hover, keyboard focus, tap (touch), pause or reduced motion; the sound toggle is always visible */
.hero__media--video { position: relative; }
.hero__media--video > video { grid-area: 1 / 1; }
.vid__i { width: 22px; height: 22px; fill: currentColor; }
.vid__i .ln { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.vid__sound, .vid__play { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); color: var(--color-paper); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.vid__sound { position: absolute; top: var(--space-sm); right: var(--space-sm); z-index: 2; background: color-mix(in oklab, var(--color-ink) 62%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vid__sound:hover { background: color-mix(in oklab, var(--color-ink) 82%, transparent); }
.vid__sound .vid__i--on, .is-muted .vid__sound .vid__i--off { display: block; }
.vid__sound .vid__i--off, .is-muted .vid__sound .vid__i--on { display: none; }
.vid__bar { position: absolute; left: var(--space-sm); right: var(--space-sm); bottom: calc(14.2% + var(--space-xs)); z-index: 1; display: flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-md) 0 0; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-ink) 72%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--color-paper); opacity: 0; pointer-events: none; transition: opacity var(--dur-short) var(--ease-out); }
.vid__bar[hidden] { display: none; }
.hero__media--video:has(:focus-visible) .vid__bar, .hero__media--video.is-active .vid__bar, .hero__media--video.is-static .vid__bar, .hero__media--video.is-paused .vid__bar { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .hero__media--video:hover .vid__bar { opacity: 1; pointer-events: auto; } }
.vid__play { background: transparent; }
.vid__play:hover { background: color-mix(in oklab, var(--color-paper) 18%, transparent); }
.vid__play .vid__i--play, .is-paused .vid__play .vid__i--pause { display: none; }
.is-paused .vid__play .vid__i--play { display: block; }
.vid__seek { flex: 1; min-width: 0; height: 24px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.vid__seek::-webkit-slider-runnable-track { height: 4px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--color-paper) var(--p, 0%), color-mix(in oklab, var(--color-paper) 32%, transparent) var(--p, 0%)); }
.vid__seek::-moz-range-track { height: 4px; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-paper) 32%, transparent); }
.vid__seek::-moz-range-progress { height: 4px; border-radius: var(--radius-pill); background: var(--color-paper); }
.vid__seek::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: calc(-1 * var(--space-2xs)); border: 0; border-radius: 50%; background: var(--color-paper); -webkit-appearance: none; appearance: none; }
.vid__seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--color-paper); }
.vid__time { flex: none; font-size: var(--text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vid__sound:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.vid__play:focus-visible, .vid__seek:focus-visible { outline: 2px solid var(--color-paper); outline-offset: -4px; }
@media (max-width: 40rem) { .portrait { max-width: 280px; } .vid__time { display: none; } .vid__bar { left: var(--space-xs); right: var(--space-xs); bottom: calc(14.2% + var(--space-2xs)); padding-right: var(--space-sm); } .vid__sound { top: var(--space-xs); right: var(--space-xs); } .vid__sound, .vid__play { width: 36px; height: 36px; } .vid__i { width: 18px; height: 18px; } }
.lema { display: flex; flex-direction: column; justify-content: center; padding: var(--space-2xl); border-radius: var(--radius-panel); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-lift); color: var(--color-ink); }
.lema__line { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1.1; }
.lema__sign { width: 100%; max-width: 300px; height: auto; margin-block: var(--space-2xl); color: var(--color-ink); }

/* ---------- stages: plain paper alternating with rounded bands ----------
   02 · 04 · 07 · 10 sit on a superficie band, 05 and 09 on the ink band, the rest on paper.
   The band is inset from the page edge but its content keeps the page's left line. */

.stage { padding-block: var(--section-gap-s); }
.stage--band, .stage--ink, .stage--close {
  --band-inset: var(--space-lg);
  --card: var(--color-paper);
  margin-block: var(--space-lg);
  margin-inline: max(var(--band-inset), (100% - var(--container)) / 2 + var(--band-inset));
  border-radius: var(--radius-panel);
  background: var(--color-paper-2);
}
.stage--band > .container, .stage--ink > .container, .stage--close > .container { padding-inline: max(var(--space-md), var(--gutter) - var(--band-inset)); }
.stage--ink { background: var(--color-ink); color: var(--color-paper); }
.stage h2 { font-size: var(--text-section); max-width: 22ch; }
.stage__n { display: flex; width: fit-content; align-items: center; min-height: 32px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; margin-bottom: var(--space-lg); }
.stage__lead { margin-top: var(--space-lg); max-width: 60ch; }
.stage__body { margin-top: var(--space-2xl); }
.stage__body > .cells + .prose, .stage__body > .prose + .claim { margin-top: var(--space-2xl); }
.stage .btn { margin-top: var(--space-2xl); }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.stage__split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.stage__split h2 { max-width: 16ch; }

/* ---------- cells: soft cards with air between them ---------- */

.cells { display: grid; gap: var(--space-md); }
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { padding: var(--space-xl); border-radius: var(--radius-card); background: var(--card, var(--color-paper-2)); }
.cell--wide { grid-column: 1 / -1; }
.cell--ink { background: var(--color-ink); color: var(--color-paper); box-shadow: var(--shadow-card); }
.cell h3 { margin-bottom: var(--space-sm); }
.cell__k { font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.cell--ink .cell__k, .cell--ink .cell__u { color: var(--color-paper-3); }
.cell--ink .figure { color: var(--color-accent); }
.cell__u { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); max-width: 30ch; }
.figure { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-3xl); line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.figure--lg { font-size: var(--text-display-s); font-variant-numeric: tabular-nums; }

/* ---------- the model: an index in a soft rounded table ---------- */

.index { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-card); background: var(--card, var(--color-paper-2)); overflow: hidden; }
.index th, .index td { text-align: left; padding: var(--space-md) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule-hair); font-size: var(--text-md); font-weight: 400; vertical-align: baseline; overflow-wrap: break-word; }
.index tr:first-child th, .index tr:first-child td { border-top: 0; padding-top: var(--space-lg); }
.index tr:last-child th, .index tr:last-child td { padding-bottom: var(--space-lg); }
.index th { font-weight: 600; width: 44%; }
.index td:last-child { color: var(--color-muted); }
/* no hover here: the rows are not links, and a lime band would promise a click that does nothing */
.model__note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); max-width: 72ch; }
.model__title { margin-top: var(--space-3xl); font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: var(--tracking-display); }
/* ---------- rows ---------- */

.rows { border-top: var(--rule-hair) solid var(--color-rule-hair); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule-hair); align-items: baseline; }
.row p { color: var(--color-ink-2); }

/* ---------- the letter, on the ink band ---------- */

.letter { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.letter__q { font-size: var(--text-display-s); max-width: 14ch; }
.letter__sign { margin-top: var(--space-xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-hair); font-size: var(--text-sm); color: var(--color-muted); }
.stage--ink .letter__sign { border-top-color: color-mix(in oklab, var(--color-paper) 30%, transparent); color: var(--color-paper-3); }

/* ---------- the close: the form on the last band ---------- */

.stage__form { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.form__head h2 { max-width: 17ch; }
.form__head .lead { margin-top: var(--space-lg); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); }
.field { display: flex; flex-direction: column; gap: var(--space-xs); }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); color: var(--color-ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] { min-height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 58%, var(--color-paper)); border-radius: var(--radius-sm); background: var(--color-paper); color: var(--color-ink); transition: border-color var(--dur-short) var(--ease-out); }
.field input[type="text"]:hover, .field input[type="email"]:hover, .field input[type="tel"]:hover { border-color: var(--color-ink-2); }
.field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-focus); }
.field input[aria-invalid] { border-color: var(--color-error); border-width: 2px; }
.check { flex-direction: row; align-items: center; gap: var(--space-sm); }
.check label { font-size: var(--text-md); color: var(--color-ink); }
.check input { flex: none; width: var(--space-lg); height: var(--space-lg); accent-color: var(--color-ink); }
.check input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: var(--space-2xs); }
.form__legal { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); max-width: 70ch; }
.form__legal a, .check a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; white-space: nowrap; }
.form__legal strong { font-weight: 600; }
/* honeypot: off-screen, never display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fill { padding: 0 0.3em; border: var(--rule-hair) dashed var(--color-muted); border-radius: var(--space-2xs); color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.form .btn { margin-top: var(--space-lg); }
.form__help { min-height: 1lh; margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
/* success state: replaces the form after a confirmed send */
.form__done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); min-height: 420px; padding: var(--space-2xl) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper); text-align: center; outline: none; }
.form__done[hidden] { display: none; }
.done__icon { display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: var(--color-ink); }
.done__icon svg { width: 88px; height: 88px; fill: none; stroke: var(--color-accent); stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 56; stroke-dashoffset: 0; }
.done__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1.1; }
.done__text { max-width: 40ch; color: var(--color-ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .form__done:not([hidden]) .done__icon { animation: done-pop 0.4s var(--ease-out) both; }
  .form__done:not([hidden]) .done__icon svg { animation: done-draw 0.5s var(--ease-out) 0.25s both; }
}
@keyframes done-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes done-draw { from { stroke-dashoffset: 56; } to { stroke-dashoffset: 0; } }

/* ---------- footer: mast, ink with a rounded shoulder ---------- */

.mast { margin-top: var(--section-gap-s); padding-block: var(--space-3xl); border-radius: var(--radius-panel) var(--radius-panel) 0 0; background: var(--color-ink); color: var(--color-paper); }
.mast__mark { color: var(--color-paper); }
.mast__mark .wordmark { width: 260px; max-width: 60%; }
.mast__claim { margin-top: var(--space-lg); font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); letter-spacing: var(--tracking-display); }
.brush--mast { width: min(420px, 70%); min-width: 0; margin-top: var(--space-xs); }
.mast__index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-2xl); margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-accent) 45%, transparent); max-width: 780px; }
.mast__index a { text-decoration: none; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-md); transition: background-color var(--dur-short) var(--ease-out); }
.mast__index a:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.mast__index a:hover .num { color: var(--color-accent-ink); }
.mast__index a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.mast__index .num { color: var(--color-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.mast__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-3xl); align-items: start; }
/* the lema moved here from the hero: on ink the lines turn paper and the ≡ turns lime (14:1) */
.lema--mast { padding: var(--space-xl); background: color-mix(in oklab, var(--color-paper) 6%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: var(--rule-hair) solid color-mix(in oklab, var(--color-paper) 16%, transparent); color: var(--color-paper); }
.lema--mast .lema__line { font-size: var(--text-xl); }
.lema--mast .lema__sign { max-width: 180px; margin-block: var(--space-lg); color: var(--color-accent); }
.mast__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: var(--rule-hair); text-underline-offset: 0.2em; cursor: pointer; border-radius: var(--space-2xs); }
.mast__link:hover { color: var(--color-accent); }
.mast__link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---------- cookie notice: a glass card at the foot of the screen, both choices the same size ---------- */

.cookies { position: fixed; z-index: var(--z-toast); left: var(--space-md); bottom: var(--space-md); max-width: 560px; padding: var(--space-lg); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-paper) 88%, transparent); -webkit-backdrop-filter: var(--glass-blur-nav); backdrop-filter: var(--glass-blur-nav); box-shadow: var(--shadow-lift); }
.cookies[hidden] { display: none; }
.cookies__text { font-size: var(--text-sm); color: var(--color-ink-2); }
.cookies__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.cookies__actions .btn { flex: 1 1 140px; min-height: 48px; }
.mast__legal { margin-top: var(--space-2xl); font-size: var(--text-sm); color: var(--color-paper-3); max-width: 70ch; }

/* ---------- objects from the colegios film: the impreso, the ticket, the test, the stamps ----------
   Paper things on the page, each set a degree or two off square, as if laid on the desk. */

.obj { margin: 0; position: relative; border-radius: var(--radius-card); background: var(--card, var(--color-paper-2)); padding: var(--space-xl); }
.obj__k { font-size: var(--text-sm); color: var(--color-muted); }
.mark { text-decoration: underline var(--stain); text-decoration-thickness: 0.3em; text-underline-offset: -0.2em; text-decoration-skip-ink: none; }
.boxes { margin: 0; padding: 0; list-style: none; font-family: var(--font-display); font-weight: 500; letter-spacing: var(--tracking-display); }
.boxes li { display: flex; align-items: center; gap: var(--space-sm); }
.boxes--col { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); font-size: var(--text-lg); }
.boxes--row { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-lg); font-size: var(--text-lg); }
.box { flex: none; width: 22px; height: 22px; border: 2px solid var(--color-ink); border-radius: 6px; background: var(--color-paper); }

/* 02 · the impreso de matrícula: a cross lands in every box, one after another, because she cannot choose */
.impreso { transform: rotate(1.5deg); box-shadow: var(--shadow-card); }
.impreso__q { margin-top: var(--space-sm); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1.1; }
.impreso__meta { margin-top: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--color-ink); font-size: var(--text-sm); color: var(--color-muted); }
.impreso .box { position: relative; }
.impreso .box::before, .impreso .box::after { content: ""; position: absolute; left: 50%; top: 50%; width: 130%; height: 2.5px; margin-left: -65%; margin-top: -1.25px; border-radius: 2px; background: var(--color-ink); transform: rotate(45deg) scaleX(1); }
.impreso .box::after { transform: rotate(-45deg) scaleX(1); }
.js .impreso:not(.is-in) .box::before { transform: rotate(45deg) scaleX(0); }
.js .impreso:not(.is-in) .box::after { transform: rotate(-45deg) scaleX(0); }
.js .impreso .box::before, .js .impreso .box::after { transition: transform 0.18s var(--ease-out); }
.js .impreso li:nth-child(1) .box::before { transition-delay: 0.6s; }  .js .impreso li:nth-child(1) .box::after { transition-delay: 0.78s; }
.js .impreso li:nth-child(2) .box::before { transition-delay: 1.3s; }  .js .impreso li:nth-child(2) .box::after { transition-delay: 1.48s; }
.js .impreso li:nth-child(3) .box::before { transition-delay: 2.0s; }  .js .impreso li:nth-child(3) .box::after { transition-delay: 2.18s; }
.js .impreso li:nth-child(4) .box::before { transition-delay: 2.7s; }  .js .impreso li:nth-child(4) .box::after { transition-delay: 2.88s; }

/* 03 · the cost is a till receipt with a torn edge */
.cell--ticket { padding-bottom: var(--space-2xl); border-radius: var(--radius-sm) var(--radius-sm) 0 0; transform: rotate(-1.5deg); border-top: 2px dashed var(--color-rule-hair);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 95% 100%, 90% 96%, 85% 100%, 80% 96%, 75% 100%, 70% 96%, 65% 100%, 60% 96%, 55% 100%, 50% 96%, 45% 100%, 40% 96%, 35% 100%, 30% 96%, 25% 100%, 20% 96%, 15% 100%, 10% 96%, 5% 100%, 0 96%); }

/* 04 · the orientation test, and the bicycle nobody has ridden */
.stage__aside > .obj { margin-top: var(--space-2xl); }
.test { transform: rotate(-1deg); padding-bottom: calc(var(--space-xl) + 112px); }
.test__q { margin-top: var(--space-sm); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1.1; }
.test__bar { position: absolute; left: var(--space-xl); right: var(--space-xl); bottom: var(--space-xl); height: 1px; background: var(--color-rule-hair); }
.test__bar::before { content: ""; position: absolute; left: 0; top: -1px; width: 23%; height: 3px; border-radius: 2px; background: var(--color-ink); }
.bike { position: absolute; right: var(--space-xl); bottom: calc(var(--space-xl) + var(--space-md)); width: 128px; height: auto; overflow: visible; }
.bike .t { fill: none; stroke: var(--color-ink); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .test:not(.is-in) .bike .t { stroke-dashoffset: 1; }
.js .test .bike .t { transition: stroke-dashoffset 0.7s var(--ease-out) 0.35s; }

/* 05 · the face behind the letter */
.letter__sign { display: flex; align-items: center; gap: var(--space-sm); }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 15%; filter: grayscale(1) contrast(1.2); outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* 09 · the regulations are rubber stamps */
.stamp { display: inline-block; padding: 0.35em 0.6em; border: 2px solid var(--color-ink); border-radius: var(--space-2xs); background: var(--color-paper); line-height: 1.25; transform: rotate(-2deg); }
.row:nth-child(2) .stamp { transform: rotate(1.5deg); }
.row:nth-child(3) .stamp { transform: rotate(-1deg); }
.js .stamp { transition: opacity var(--dur-short) var(--ease-out), scale var(--dur-long) var(--ease-out); }
.js .stamp:not(.is-in) { opacity: 0; scale: 1.25; }

/* the hero's second paragraph sits under the lead, a step quieter */

/* 06 · the model's sources, one per rounded row */
.index--list { margin: 0; padding: 0; list-style: none; }
.index--list li { padding: var(--space-md) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule-hair); font-size: var(--text-md); color: var(--color-ink-2); }
.index--list li:first-child { border-top: 0; padding-top: var(--space-lg); }
.index--list li:last-child { padding-bottom: var(--space-lg); }
.index--list strong { font-weight: 600; color: var(--color-ink); }

/* 07 · the student at the centre, the four blocks of the route around them */
.split--mid { align-items: center; }
/* torn-paper photo (same paper mask as the video), full width of its column */
.cutout { display: block; width: 100%; height: auto; margin-top: var(--space-2xl); }
/* torn-paper portrait (same cut-out as the video): transparent PNG edges, so no frame or radius */
.portrait { display: block; width: 100%; max-width: 460px; height: auto; justify-self: center; }
.orbit { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; }
.orbit::before { content: ""; position: absolute; inset: 13%; border: 2px dashed color-mix(in oklab, var(--color-ink) 22%, transparent); border-radius: 50%; }
.orbit__core { z-index: 1; position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; translate: -50% -50%; display: grid; place-content: center; gap: var(--space-2xs); padding: var(--space-md); border-radius: 50%; background: var(--color-ink); color: var(--color-paper); text-align: center; box-shadow: 0 0 0 10px var(--color-accent), var(--shadow-lift); }
.orbit__core strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); letter-spacing: var(--tracking-display); line-height: 1.1; }
.orbit__core span { font-size: var(--text-sm); color: var(--color-paper-3); }
.orbit__ring { display: contents; margin: 0; padding: 0; list-style: none; }
.orbit__ring li { position: absolute; width: 40%; translate: -50% -50%; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); letter-spacing: var(--tracking-display); line-height: 1.2; text-align: center; }
.orbit__ring li:nth-child(1) { left: 24%; top: 17%; }
.orbit__ring li:nth-child(2) { left: 76%; top: 17%; }
.orbit__ring li:nth-child(3) { left: 76%; top: 83%; }
.orbit__ring li:nth-child(4) { left: 24%; top: 83%; }
.js .orbit[data-reveal] li { transition: opacity var(--dur-long) var(--ease-out), scale var(--dur-long) var(--ease-out); }
.js .orbit[data-reveal]:not(.is-in) li { opacity: 0; scale: 0.85; }
.js .orbit li:nth-child(2) { transition-delay: 0.12s; } .js .orbit li:nth-child(3) { transition-delay: 0.24s; } .js .orbit li:nth-child(4) { transition-delay: 0.36s; }

/* 08 · two halves of the team */
.cells--team .cell { padding: var(--space-xl); }
.cells--team .cell p { color: var(--color-ink-2); }
.cells--team .cell--ink p { color: var(--color-paper-3); }
.cells--team .cell--ink h3 { color: var(--color-accent); }

/* 09 · the principles sit on ink: hairlines and body text lighten, the stamps stay paper */
.stage--ink .rows, .stage--ink .row { border-color: color-mix(in oklab, var(--color-paper) 22%, transparent); }
.stage--ink .row p { color: var(--color-paper-3); }
.stage--ink .stamp { color: var(--color-ink); }
.row:nth-child(4) .stamp { transform: rotate(2deg); }
.row:nth-child(5) .stamp { transform: rotate(-1.5deg); }

/* objects settle into place once, the first time they are seen */
.js .obj[data-reveal], .js .cell--ticket { transition: opacity var(--dur-long) var(--ease-out), translate var(--dur-long) var(--ease-out); }
.js .obj[data-reveal]:not(.is-in), .js .cell--ticket:not(.is-in) { opacity: 0; translate: 0 var(--space-xl); }

/* ---------- narrow ---------- */

/* the footer index needs the full width before the lema can sit beside it */
@media (max-width: 72rem) {
  .mast__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .lema--mast { max-width: 420px; }
}

@media (max-width: 60rem) {
  .hero__in, .split, .stage__split, .letter, .stage__form { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .hero { padding-block: var(--space-2xl) var(--space-3xl); }
  .hero::before { width: 90%; right: -20%; top: auto; bottom: 0; }
  .hero::after { display: none; }
  .cells--3, .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose--cols { columns: 1; }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
    .letter__q, .mast__index { max-width: none; }
  .hero__media { min-height: 260px; }
  .hero__media--video { min-height: 0; }
  .cookies { right: var(--space-md); max-width: none; }
  .impreso, .test { transform: none; }
  .stage--band, .stage--ink, .stage--close { --band-inset: var(--space-xs); }
}

@media (max-width: 40rem) {
  .hero .lead { font-size: var(--text-lg); }
  .cells--2, .cells--3, .fields { grid-template-columns: minmax(0, 1fr); }
  .index, .index tbody, .index tr, .index th, .index td { display: block; width: auto; }
  .index tr { border-top: var(--rule-hair) solid var(--color-rule-hair); padding: var(--space-md) var(--space-lg); }
  .index tr:first-child { border-top: 0; }
  .index th, .index td, .index tr:first-child th, .index tr:first-child td, .index tr:last-child th, .index tr:last-child td { border-top: 0; padding: 0; }
  .index td { color: var(--color-muted); font-size: var(--text-sm); }
  .mast__index { grid-template-columns: minmax(0, 1fr); }
  .slab__in { gap: var(--space-sm); min-height: 56px; padding-inline: var(--space-md) var(--space-2xs); }
  .slab__mark .wordmark { width: 96px; }
  .orbit { max-width: 360px; }
  .orbit__ring li { width: 44%; padding: var(--space-xs) var(--space-sm); font-size: var(--text-sm); }
  .orbit__core strong { font-size: var(--text-lg); }
  .slab__cta { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
  .brush { width: 60%; }
  .cell { padding: var(--space-lg); }
  .stage--band, .stage--ink, .stage--close { border-radius: var(--radius-card); }
}
