/*
 * Every design value. A colour or a length inside another stylesheet is a defect:
 * if a rule needs one, it belongs here with a comment saying what it moves.
 *
 * The three layout modes are one fluid system, not a desktop site with a fallback.
 * The phone values are the base; tablet and desktop override only what changes, in
 * the two blocks at the bottom of this file. No other file contains a breakpoint.
 *
 *   phone    < 48rem      top bar + drawer, full-width content
 *   tablet   >= 48rem     the sidebar returns as a column, at a smaller share
 *   desktop  >= 80rem     the sidebar takes its quarter of the viewport
 *
 * The two numbers are mirrored in src/client/constants.js (VIEWPORT) because a
 * media query cannot read a custom property; the check fails if they disagree.
 */

:root {
  /* ── colour ────────────────────────────────────────────────────────────────
     A printed sheet: one ground, one paper, no gradient and no glow. */
  --color-ground: #1c1c1c;
  --color-paper: #e3e3e3;
  --color-ink: #ffffff;
  --color-rule: rgba(255, 255, 255, 0.9);
  /* Secondary text — the year, the language that is not being read, the
     photograph's position. Quiet is a weight of voice, never a legibility
     compromise: at this alpha it measures above 6:1 on the ground, so it clears
     the bar for normal text with room to spare (the check measures it). */
  --color-quiet: rgba(255, 255, 255, 0.55);

  /* ── type ──────────────────────────────────────────────────────────────────
     Self-hosted. Display is Inter Tight Medium, body is Inter Regular. Sizes are
     fluid, with a floor that stays legible at 320px. */
  --type-display: 'Inter Tight', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --type-body: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --type-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* The root stays at the browser's own size, so a visitor's text preference is
     never overridden by a fixed pixel root. */
  --type-root: 100%;
  --type-display-weight: 500;
  --type-tracking-button: 0.08em;

  --type-name: clamp(0.95rem, 0.72rem + 2.4vw, 1.75rem);
  /* The small end of the scale is a readable floor, not a squeeze: nothing here
     resolves below 12px at the narrowest supported width, and the check measures
     every text element to keep it that way. */
  /* The smallest voice on the page: its floor is 0.8rem (12.8px at a 16px root), not 0.75rem (12px) —
   * it is what the bar's plates, the group and the language switch are set in, and on a phone 12px was
   * the smallest thing anyone had to read. */
  --type-year: clamp(0.8rem, 0.74rem + 0.25vw, 0.875rem);
  --type-nav: clamp(0.85rem, 0.74rem + 1.1vw, 1.15rem);
  --type-small: clamp(0.8rem, 0.72rem + 0.4vw, 0.9375rem);
  --type-mark: clamp(1.1rem, 0.8rem + 2vw, 2rem);
  --type-leading: 1.35;
  --type-tracking-name: -0.01em;
  /* The not-found document's mark, as a FONT SIZE — the one place its size is decided. The mark
     is six rows of twenty-five block characters, so its width is about fifteen characters and its
     height six lines: 4.2cqi makes the block about three fifths of the region wide, and 6cqh caps
     it in a region that is wider than it is tall. A block character is 0.6em wide and taller than
     its own em, so six rows at `line-height: 1` OVERLAP by a sixth of a line — which is why the
     rows join instead of leaving seams, and why the art keeps the proportions a terminal gives
     it. `cqi`/`cqh` are the not-found section's own box
     — it declares the container — so a phone and a desktop are one rule. */
  --type-not-found: min(4.2cqi, 6cqh);

  /* ── space ─────────────────────────────────────────────────────────────────
     One scale, used by the frame, the reel's gutter and the drawer. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  /* ── layout ────────────────────────────────────────────────────────────────
     Fractions, never fixed widths. The stage fills whatever the content region is. */
  --layout-gutter: var(--space-4);
  /* The content region has NO inline gutter (Marco, 2026-11-06: *"on opened reel i have a margin on the
     right side, can we remove that? also can we remove noth margins in left/right into mobile?"*).
     The strip's photographs are the page when they are on it, so they reach the frame's own edges — the
     sidebar's rule on the left, the window's edge on the right — and an open row cut 32px short of the
     glass on one side read as a margin that was not doing anything.

     ⚠️ What is NOT edge to edge is TEXT: what sits in the flow inside this region keeps its own inset
     (`--reel-labels-pad-inline` on the phone, `--strip-text`'s own pad-inline-end), because a name or a
     bracket touching the glass is a different thing from a photograph reaching it. */
  --layout-main-pad-start: 0px;
  --layout-main-pad-end: 0px;
  /* How far the reel's column and its labels sit inside the drawing surface. The
     surface itself is the content region's whole box, because the strip's photographs
     have to reach the sidebar's rule (Marco, 2026-10-21); this is the inset on top of
     that, and the reel reads it (Marco: *"shift the whole reel and text a little bit to
     the right"*). It is in px, not rem: it is a nudge, not a measure of type, and the
     geometry reads it as a number. 0 on the phone, where the region has no room. */
  --layout-reel-shift: 0px;
  --layout-content-longest: 72rem;
  /* The shell is at least the visible block, so the frame's two regions always
     reach the bottom of the screen. `dvh` follows the mobile address bar. */
  --layout-viewport-block: 100dvh;
  /* The content region's block, and how far down the viewport it starts. The
     reel's drawing surface is cut by the frame, not by a pad, so the region's
     block is the surface's box: on the phone that box begins at the underside of
     the bar (its own block plus the hairline that closes it), and in the two
     wider modes the region starts at the viewport's own top edge. */
  --layout-content-offset: calc(var(--layout-bar-block) + var(--layout-bar-rule));
  --layout-content-block: calc(var(--layout-viewport-block) - var(--layout-content-offset));

  /* The bar: the language switch, and the one control that opens the menu. It is
     the aside's first row on the phone and the top of the sidebar above it, so it
     has a block size rather than a minimum — the drawer starts exactly at its end,
     and its rule is the hairline under the phone's bar. */
  --layout-bar-block: calc(var(--layout-toggle-size) + 2 * var(--space-1));
  --layout-bar-rule: var(--stroke-hair);

  /* The toggle: a WORD, not a glyph (Marco, 2026-11-06: *"can we change the menu on mobile from
     hamburger and x to close, to text? so menu and close?"*). The control is sized by its own label
     and keeps a touch target's height; the word comes from the table like every other word on the
     page, so nothing here is drawn and nothing is a file. */
  --layout-toggle-display: inline-flex;
  --layout-toggle-size: 2.75rem;
  --layout-toggle-pad-inline: var(--space-2);

  /* The frame's structure, as values, so that the mode overrides below are the
     only place a breakpoint is written (design.md §2, §7). The stylesheet reads
     these and never asks which mode it is in. */
  --layout-areas: 'aside' 'main';
  --layout-columns: 1fr;
  --layout-rows: auto 1fr;

  /* The drawer's share of a phone's width: ALL of it (Marco, 2026-11-06: *"and also the width to
     100%"*) — the menu is the page for as long as it is open, and the bar above it with its
     hairline is what says the page is still there. The rest of the drawer's values are read only
     where a script can close it again: with no script the drawer is an ordinary column in the flow,
     and never a trap. Its rule is the hairline between the sidebar and the content, so the phone
     does not have one until the aside becomes a column.

     ⚠️ `--layout-drawer-top` is where the LINE ends, not where the bar's box ends: the drawer slides
     in UNDER the bar, so the hairline that closes the bar stays visible for as long as the menu is
     open (the bar carries `--layer-bar`, above the drawer, for the same reason). */
  --layout-drawer-share: 100%;
  --layout-drawer-position: fixed;
  --layout-drawer-size: var(--layout-drawer-share);
  --layout-drawer-shift: translateX(-100%);
  /* ⚠️ The floating menu is a STACKING LEVEL, and only while it floats: it passes over the open
     project's sheet here (`--layer-project`), and above the boundary it is a column in the flow that
     must not become one — the column's text layer paints OVER it there, and a drawer at this number
     would paint over the text instead, which is the project's description gone with its way out. */
  --layout-drawer-layer: var(--layer-out);
  /* The open project's text. It is NOT the drawer's child (2026-11-28): the drawer slides and goes
     `inert`, and a project's own text is not menu furniture, so on a phone the text is a sheet of its
     own — the frame under the hairline — and above the boundary it lies in the column. One element,
     two boxes, chosen by mode: the full column below the hairline above the boundary, the frame's own
     sheet on a phone. */
  --layout-project-position: fixed;
  /* ⚠️ NOT `display: none` while the sheet is shut: a box that is not displayed cannot slide, and the
     slide is the whole point (Marco: *"add some animation when u open or close, like the menu one"*).
     The shut sheet is off the floor of the frame and out of sight, and `visibility` is what takes it out
     of the tab order — flipped at the END of the slide, never at its start. */
  --layout-project-closed-visibility: hidden;
  /* A phone's sheet covers the frame from the hairline down, and it arrives from the floor — the same
     movement the menu makes, on the other axis. Its box is the frame's own (edge to edge, under the
     hairline, to the floor) in both modes, so those four numbers are the rule's, not tokens. */
  --layout-project-shift: translateY(100%);
  /* A phone's sheet covers the photographs, so its text starts at the sheet's own top edge: there is
     nothing above it to line up with. Two gutters and a step is room for the way out, which hangs on
     this band's floor. */
  --layout-project-text-top: calc(var(--layout-gutter) * 2 + var(--space-2));
  /* The way out sits in the phone's bar-column: the menu toggle stands in the corner of the bar, and
     the sheet's close stands directly under it, so they must share one inset and one inner padding or
     the eye reads two columns (Marco, 2026-11-30). Above the boundary there is no bar beside it, so
     the column keeps the gutter as its padding and hangs the control on the band's floor. */
  --layout-project-head-pad-inline: var(--layout-gutter);
  --layout-close-pad-inline: var(--space-2);
  --layout-drawer-top: var(--layout-content-offset);
  --layout-drawer-rule: 0;

  /* The three registers of the drawer — who this is, the sections, the way to write —
     share the column. On the phone they are a reading order that scrolls together, so
     nothing stretches and the menu's auto margins have no free space to take. From the
     tablet up the column is fixed in height, and the menu lands on its CENTRE LINE
     instead: the who-block and the contact each take an equal share of the free space,
     so what is above the menu and what is below it are the same height whatever the words
     are (Marco, 2026-10-22: *"in the vertical axes not horizontal"*). */
  --layout-register-flex: 0 0 auto;
  --layout-contact-display: block;
  --layout-menu-block: auto;

  /* ── strokes ───────────────────────────────────────────────────────────────
     Hairlines for rules and bracket arms, a heavier one for the mark's bracket
     (it is a printed rule, read at a distance), and the focus ring. */
  --stroke-hair: 1px;
  --stroke-mark: 1.5px;
  --stroke-focus: 2px;

  /* ── the reel ──────────────────────────────────────────────────────────────
     No tile dimensions here: the geometry is measured from the region at runtime,
     so the tile scales with the viewport instead of being asserted here.
     `--reel-mark-pad` keeps the mark clear of the photograph. */
  --reel-mark-pad: 2.5rem;
  /* The room between the photograph and the names UNDER it: a phone's distance, so it responds to
   * the window instead of being one number at 320 and the same one at 767 (it was `--space-6`, 32px,
   * everywhere). The sided arrangement does not read it — there the labels are positioned from the
   * measured geometry — so this is the whole of the distance where the list is in the flow, beside
   * `--reel-labels-pad-block` and the label's own `--mark-vpad`. */
  --reel-label-gap: clamp(1.75rem, 1rem + 4vw, 3rem);
  /* The four-way's numbers are gone with the control (2026-11-28): its two boxes, its strength and
   * its dark are not quoted anywhere. This one stays because the GEOMETRY still reads it
   * (`REEL.arrowSize` in constants.js is the same number, and `reel-geometry-matches-its-tokens`
   * holds the two together): it is the air the photographs keep from the labels and the frame's
   * edges, and the reel's proportions were calibrated with it. */
  --reel-arrow-size: 1.6rem;
  /* Where the names live. On the phone there is no ground for them: the stage is a continuous
   * filmstrip (the step is one tile and the stage is three of them), so a name under the picture would
   * stand on the NEXT project's photograph. The names are therefore ONE plate in the frame's corner,
   * over the filmstrip late in the page — the selected entry alone, in the mark's own design (paper,
   * knocked-out type, its brackets) — and the page no longer scrolls to reach them (Marco,
   * 2026-11-06: *"we only show the selected one with the selected design a little bit under the center
   * image"* → *"over the filmstrip, on a plate"*). Above the boundary they are the measured column
   * beside the tiles, every entry's own name, ghosted but all there. */
  --reel-labels-position: absolute;
  --reel-labels-touch: none;
  /* The plate is the only entry shown: the others are not painted, not in the tab order and not in the
   * hit test. Above the boundary every entry is one line of the column. */
  --reel-label-others: none;
  /* …and the column's per-frame shift is what places a label on the viewing position — a fact about the
   * SIDE arrangement. A corner plate does not move: the walk swaps it. This is a NUMBER and not a
   * transform, because a `var()` written inside a custom property is resolved where the TOKEN is
   * declared (on `:root`), where `--reel-label-shift` is not set: the expression has to stay in the
   * rule, and the mode decides whether it counts (0) or applies (1). */
  --reel-label-move: 0;
  --reel-label-position: static;
  /* On the phone the label list is in the flow under the stage, so the stage has
     to keep a real share of the screen instead of shrinking to what the list
     leaves: with eight projects that was seventy pixels of photographs. The list
     scrolls with the page, which is what a column of captions does. */
  --reel-stage-min: 40dvh;
  /* The stage is exactly one content block, so the photographs reach the frame's
     top and bottom edges. What it costs is the first screen: the label list is in
     the flow below the stage and the page scrolls to it. On the phone the reel
     therefore stops shrinking — a flexible reel would keep the list on screen by
     stealing the photographs' block, which is the opposite of the composition. */
  --reel-flex: 0 0 auto;
  --reel-labels-pad-block: var(--space-5);
  /* The label list's own inline inset where it is in the flow on the phone: the content region has no
   * gutter any more (see `--layout-main-pad-start`), and a bracket touching the glass edge is not a
   * photograph reaching a frame edge. Above the boundary the list is placed from the geometry, so it
   * keeps none of its own. */
  --reel-labels-pad-inline: var(--layout-gutter);
  /* The shift a mark has before the live layer writes one: a named zero, so that
     neither stylesheet ever spells a length of its own. */
  --reel-shift-base: 0px;

  /* ── the strip's text: two plates and the voices on them ───────────────────
     The open project names itself above its row of photographs and describes itself below it, on
     ONE SHEET: a bar of paper above the row and a bar below it, the same width as the photograph and
     flush with it (Marco, 2026-11-06: *"can we make the text a white popout card with the paper bg,
     so that it's stick out on top and bottom of the centered image?"*).

     ⚠️ This replaced a SCRIM — the ground mixed 76% with whatever was under it — because the words
     stood on photographs. They stand on paper now: the ink is the paper's own inverse, so nothing
     about the field under the sheet matters, and the quiet voice is a smaller one (the group's size,
     tracking and case) rather than a paler one.

     These two pads are the CAPTION's margin: the paper between a word and the image, or between a word
     and the paper's edge. (The description's bar and its scrollbar are gone: it is the column's now.) */
  --strip-plate-pad-inline: var(--space-3);
  --strip-plate-pad-block: var(--space-2);
  /* ⚠️ The description's scrollbar and the band's notch are gone (2026-11-28): the description is
     the column's now, so no paper scrolls and no paper has to keep clear of a control in the
     frame's corner. What the open state keeps on the drawing is a caption of two lines at most. */
  /* The strip's heading is smaller than a label's name on purpose: it captions a
     photograph the visitor is already looking at, it does not name the column. */
  --strip-name-size: clamp(1rem, 0.8rem + 1.1vw, 1.5rem);
  /* The caption's second control: `read`, below the boundary only. On the phone the description is a
     sheet over the frame, so something on the picture has to say it exists; in the column it is
     already out, and a control that does nothing would be a lie. */
  --strip-read-display: inline-flex;
  --strip-group-size: var(--type-year);
  /* The heading's two voices are stacked: the name on its line, the group under it. On a short
     band there is no room for two lines above the row, so they go on ONE line instead — two
     voices side by side rather than one plate taller than the band (see the end of this file). */
  --strip-heading-flow: column;
  --strip-heading-gap: 0px;
  /* ⚠️ No reading voice and no gap here any more: they sized the description's bar below the
     row, and the description is the shell's column now. The caption uses the name's size, the
     group's size and the plate's padding, and nothing else. */

  /* ── the mark: an inverse zone whose bounds are the brackets ──────────────
     ONE band, and it belongs to the selected entry: the inverse of the sheet, with the
     type and both brackets knocked out to the ground colour. The hovered entry carries no
     band at all — it is marked by the claw (see `--mark-claw-*` below), which is why there
     is no wash, no strength and no generated block here any more.

     The band's fill is the PAPER TOKEN, and `the-band-is-the-papers-inverse` holds the paper
     to being the ground's exact inverse channel by channel — because the canvas paints the
     same band as `1 - bg`, and one palette that moves must move in one place. */

  /* The band itself, and the ink inside it. `--mark-paper` is what the stylesheet paints
     the SELECTED band with where the canvas cannot reach — the sidebar, the phone, a
     document with no script — and what the strip's close plate is made of. The wash above
     is the same paper at the hovered strength; the fill below is the ground, because the
     type and the brackets inside a band are knocked out to it. */
  --mark-paper: var(--color-paper);
  --mark-selected-fill: var(--color-ground);
  /* The neighbours' voice: the projects on the reel that are not the selection. It is the
   * dimmest a label is ever PAINTED (Marco, 2026-10-22: *"the neighbours we can do 0.15"*) — at
   * rest the column is a ghost of eight names and the reel's own photographs carry the page. The
   * name comes up to full ink under the pointer and on focus, and that is the state the check
   * holds to a legibility bar; a neighbour at rest is a mark, not a thing being read. */
  --mark-neighbour: rgba(255, 255, 255, 0.15);
  --mark-bracket-gap: 0.28em;
  --mark-grow: 0px;
  --mark-vpad: 2px;
  /* The claw: the two brackets are the jaws of a clamp, and the gap they keep from the
     type is what they close on. Three distances of the same gap, so no length here is a
     number of its own: how far the hovered pair comes in before it slips off (`tried`),
     how far the selected pair is held shut (`clamped`), and how far the pair fades while
     it is only trying (`quiet` — above zero, or the jaws leave and the entry reads as
     unmarked). `period` is a claw's patience: a little over a second between attempts. */
  --mark-claw-quiet: 0.45;
  --mark-claw-period: 1060ms;
  --mark-claw-tried: calc(var(--mark-bracket-gap) * 0.5);
  --mark-claw-clamped: calc(var(--mark-bracket-gap) * 0.8);
  /* The third rung, added 2026-11-30: a control that is neither chosen nor pointed at still wears
     its brackets, at this share of its own ink — "the quiet [ ]" Marco asked to make the site's
     standard. Below `--mark-claw-quiet` (the jaws TRYING) and below full ink (HELD), so the three
     states are one ladder and only the last two can be mistaken for one another: 0.30 worn ·
     0.45 trying · 1.00 held. ⚠️ A share of the host's OWN ink: the reel's neighbours are already a
     ghost, and their brackets are not dimmed a second time (mark.css, §worn at rest). */
  --mark-bracket-rest: 0.3;

  /* The mark's perimeter is three tokens, and the band is the entry's own box: the
     overshoot past the bracket (--mark-grow), the bracket itself, and the gap between
     the bracket and the type (--mark-bracket-gap). They are NOT added a second time as
     inline padding — the bracket already occupies its own room in the flow, so a
     padding of the whole perimeter would put the bracket in the middle of the band
     instead of inside its edge. */

  /* ── the console ───────────────────────────────────────────────────────────
     ONE cell, and everything inside the screen is that cell: the mark, the title, the
     record, the menu and the status line are the same face at the same size, and hierarchy
     is arrangement — position, blank rows, reverse video, block art (design §14). The four
     role sizes the prototype grew (a mark type, a TUI type, a bar type, a legend type) do
     not exist here on purpose: a title larger than the record is a page, not a terminal.

     The cell belongs to the SCREEN, and the phone value is the base — above it the clamp
     grows with the screen's own inline size, so the whole screen zooms as one thing and no
     element gains importance by becoming larger. `--console-cell` and `--console-line` are
     the same grid in the font's own units (`ch` is the advance of `0`, `lh` is the line
     box), so the stylesheet can lay things out on whole cells without stating a pixel; the
     client publishes the same two numbers in px for the two things CSS cannot floor, the
     columns and the rows the box actually holds. */
  /* ⚠️ The factor is 4.17cqi, and the unit is the SCREEN's width — which is why every factor below
     ~2.6 never moved anything: 1.6% of a 326px screen is 5.2px and 2.8% is 9.1px, so both sat on the
     10px floor and the whole console printed at 6px glyphs (the comment here used to prescribe 2.8cqi
     and the token said 1.6cqi; neither would have worked).

     What makes the factor right is not the size, it is that the column count is INVARIANT under it:
     the grid's width is the screen's, and both the cell and the grid scale with it, so the console
     holds ~40 columns at every viewport instead of re-wrapping itself to 54 columns on a phone and 79
     on a tablet. The count is 1 / (the face's advance × this factor) = 1 / (0.6 × 0.0417) = 39.97, so
     a phone prints **40 columns at every width**, and the cell is the screen's own width over 40.

     ⚠️ That is ONE column of slack over the declared floor of 39 (`CONSOLE.columns`), and the slack is
     the point: the count is 1 / (advance × factor) in the REAL face, so a fallback mono wider than
     0.615em would print 39 instead of 40 — and one wider still would drop the phone to the floor's
     notice, which withholds the whole document. 40 is the largest count that still tolerates every
     face this site is likely to meet while wasting only one column.

     Why the factor moved from 3.9cqi (2026-11-26): Marco read a 390 × 844 phone and reported the folio
     *"unreadable… the chars are all smashed together… so compact that u cant have a clear reading"*.
     Measured at 3.9: the phone printed 12.714px glyphs whose ink is 92% of the cell's width, 47 rows
     of them on one screen. 3.9 is 42 columns, and 42 columns of a 326px box is 7.6px per character —
     at a fixed width there is no way to make the type bigger except to spend cells, so the count came
     down to the floor's neighbourhood and the case's margin on a phone went with it (`about.css`, the
     narrow-band rule: a 4px bezel instead of 24). Measured after, at 4.17 and a 366px screen:
     **15.25px** at 390 × 844 (+20%), 12.33px at 320 (+23%), 40 columns and 42 rows. The ceiling is
     still 16px, which a screen reaches at 384px (viewport ~408), so nothing above a phone moved.

     The clamp's own floor stays 10px: below a screen of 240px (viewport ~264) the count is what the
     10px face gives, and that is where the narrowest band of `the-floor-exists` lives now. */
  --console-cell-size: clamp(10px, 4.17cqi, 16px);
  --console-line-ratio: 1.2;
  --console-cell: 1ch;
  --console-line: 1lh;

  /* The air the device sits in, and the case's own thickness — both against the console's
     box, never the viewport's, because the object is what is being sized.

     The bezel is NOT a clamp (design §23): it is the case's sheet slice, exactly, which is
     24 px on the 1x file and 48 px on the 2x one. Anything between the two makes the sheet
     resample, and a 1 px silkscreen rule painted at 0.97 or 1.03 of its size stops being one
     pixel wide. The case's own rule picks the larger of the two by container width; this is
     the smaller, and the one a tablet and a desk get.

     ⚠️ On a PHONE it is 4 px, and not because the sheet was resampled: the case is BARE (design §23,
     `about.css`), so what the bezel is today is blank margin — 48 px of a 390 px phone spent on
     nothing, when every one of those pixels is a cell the reading could have had. The narrow-band
     rule in `about.css` drops it to 4 px, which is what takes the phone's screen from 326 to 366 px
     and its glyphs from 12.7 to 15.25 px. The air outside it is untouched: the case still sits in it.

     ⚠️ It was 32/64 until 2026-11-05, and the sheet was regenerated at 96² to follow it down
     (design §26): the quarter of the square IS the bezel, so halving the band means re-drawing
     the panel, not scaling the one that exists. */
  --console-air: clamp(8px, 1.4cqi, 30px);
  --console-bezel: 24px;
  /* …and the same slice on the 2x file. The case's rule below switches to it by container
     width, because `image-set()` picks by DEVICE pixel ratio and the drawing has to change
     with the BOX: a 48 px band on a phone would be a case twice the width it frames. */
  --console-bezel-wide: 48px;
  /* …and what a phone gets: 4 px, i.e. the panel runs almost to the edge of the page. Not a third
     density of the sheet — the case is BARE (design §23) and what the bezel is today is blank
     margin, so on the narrowest box the case is a seam rather than an air gap, and the ~44 px that
     buys go back into the cell (`--console-cell-size`'s 4.17cqi gives a 366 px screen at 390). The
     air outside it is the same at every width. */
  --console-bezel-narrow: 4px;

  /* The case's fixed widths, as the drawing's own numbers rather than measurements of the
     type: the one-pixel edge of the glass, and the flat cable's rib period, outline and
     connector. They do not scale with the cell: they are the hardware, and the hardware is
     the same on a phone. */
  --console-glass-edge: 1px;
  /* The case's frame — the rule the screen sits inside, and the air between them (Marco,
     2026-11-05: *"a simple css border… with a gap from the canvas of course"*).

     ⚠️ BOTH ARE IN CELLS, not pixels, because the frame is part of the console's arrangement and the
     console measures in cells: a device whose cell is 10 px gets a 2.5 px rule, one whose cell is 16
     gets 4 px. Written in px it would be the same hairline on a phone as on a desk, which is exactly
     what a cell-sized frame must not be.

     The GAP is measured from the GLASS: the rule hugs the screen, and what is left of the bezel is the
     air outside it. */
  --console-frame-edge: calc(var(--console-cell-size) * 0.25);
  --console-frame-gap: calc(var(--console-cell-size) * 0.4);
  /* What the case's border is painted with before the case's own sheet arrives: it is a
     border for its THICKNESS, and group 4 fills the same area with the drawn case. It is a
     token rather than the keyword so that no stylesheet but this one names a colour. */
  --console-case: transparent;

  /* The margin inside the screen: two cells, so the mark, the rows and the menu share ONE
     left edge and every line still begins on a cell boundary. A row of air above and below
     the chrome that needs separating; the gap between a year and what was done; and the gap
     between the status line's segments. */
  --console-inset: calc(var(--console-cell) * 2);
  /* A finger on the console (Marco, 2026-11-06). The files panel's rows become a touch's height — a list
   * of five files, so nothing is lost — and the status bar, which is ONE row of the grid and cannot grow
   * without eating the reading, keeps its row and grows an invisible hit area instead. Above the boundary
   * a pointer is precise: the rows are one line and the hit area is the plate itself. */
  --folio-row-block: 44px;
  --folio-target: 44px;
  --console-beat: var(--console-line);
  --console-column-gap: calc(var(--console-cell) * 2);
  --console-segment-gap: calc(var(--console-cell) * 3);

  /* The quiet voice inside the panel: the ink mixed into the field, so it is a DERIVED tone
     and not a third colour — it follows the pair, and at this share it measures past the
     legibility bar on the paper field (the check measures it). The mix itself is in
     `about.css`, next to the pair it is derived from. */
  --console-quiet-share: 70%;

  /* ── motion ────────────────────────────────────────────────────────────────
     Durations only. Distances the script animates live in constants.js. */
  --motion-ui: 140ms;
  --motion-chrome: 420ms;
  --motion-drawer: 240ms;

  /* ── depth ─────────────────────────────────────────────────────────────────
     The strip's chrome and the close control sit above the canvas; the reel's
     chrome sits below it. `--layer-bar` is the phone's bar over its own drawer:
     the menu slides in UNDER the bar, so the hairline under the bar is never
     covered by the menu it opens. */
  --layer-canvas: 0;
  --layer-reel: 3;
  --layer-strip: 6;
  /* The open project's text. BELOW `--layer-out` on purpose (Marco, 2026-11-28): on a phone the menu is
     the same element's neighbour and must pass over the description, never under it. */
  --layer-project: 7;
  --layer-out: 8;
  --layer-status: 9;
  --layer-bar: 10;
}

/* ── tablet: the sidebar returns as a column, at a smaller share ───────────── */
@media (min-width: 48rem) {
  :root {
    --layout-gutter: var(--space-5);
    /* The caption's second control is a phone's: above the boundary the description is in the column
       already, and a control that can be pressed to no effect teaches the wrong thing. */
    --strip-read-display: none;
    --layout-reel-shift: 32px;
    --layout-sidebar-share: 30%;
    --type-name: clamp(1.1rem, 0.8rem + 1.6vw, 1.9rem);

    --layout-areas: 'aside main';
    --layout-columns: var(--layout-sidebar-share) 1fr;
    --layout-rows: 1fr;
    /* ⚠️ `0px`, never `0`: `--layout-content-offset` is `calc(<length> + this)`, and a unitless zero
       cannot be added to a length, which makes the whole custom property invalid at computed-value
       time. Every `inset` reading it then falls back to `auto` — which is how the column's overlay ended
       up pinned to the bottom of the column with its own content height, instead of covering it. */
    --layout-bar-rule: 0px;
    --layout-toggle-display: none;
    /* The drawer is a column in the flow: it neither slides nor contains anything that is placed, and
       it is not a stacking level — the open project's text covers it, not the other way round. */
    --layout-drawer-position: static;
    --layout-drawer-size: auto;
    --layout-drawer-shift: none;
    --layout-drawer-layer: auto;
    /* The column's overlay: the FULL column below the hairline, edge to edge, so the only thing of the
       page still showing above it is the language switch. Nothing slides — the text is out while a
       project is open, and goes with the project.
       The text's first line is MEASURED (`--project-text-top`, published by the reel): it starts level
       with the row of photographs' top edge, and the way out hangs on that band's floor. */
    --layout-project-position: absolute;
    /* In the column there is no sheet to shut and nothing to slide: the text is out while a project is
       open, and goes with the project. */
    --layout-project-closed-visibility: visible;
    --layout-project-shift: none;
    /* The floor of this band, when nothing has been measured yet: the gutter. */
    --layout-project-text-top: var(--layout-gutter);
    /* No bar beside the column's way out: it takes the gutter as its padding, its own box, and it
       stands on this band's floor (see the base values). */
    --layout-project-head-pad-inline: 0px;
    --layout-close-pad-inline: var(--layout-gutter);
    --layout-drawer-top: 0;
    --layout-drawer-rule: var(--stroke-hair);

    /* The column's fixed height gives the menu free space to centre in — see the base
       values for why this is not `margin-block: auto` on the phone as well. */
    --layout-register-flex: 1 1 0;
    --layout-contact-display: flex;
    --layout-menu-block: 0;

    /* The sidebar returns as a column, so nothing sits above the content region
       and the surface reaches the viewport's own top edge. */
    --layout-content-block: var(--layout-viewport-block);

    /* The labels leave the flow and become the measured column beside the tiles,
       and they take the drag with them. They no longer sit under the stage, so the
       list needs no block pad of its own. */
    --reel-labels-position: absolute;
    --reel-labels-touch: none;
    --reel-label-others: block;
    --reel-label-move: 1;
    --reel-label-position: absolute;
    --reel-stage-min: 0;
    --reel-flex: 1 1 auto;
    --reel-labels-pad-block: 0;
    --reel-labels-pad-inline: 0px;
    --folio-row-block: 0px;
    --folio-target: 0px;
  }
}

/* ── desktop: the sidebar takes its quarter of the viewport ────────────────── */
@media (min-width: 80rem) {
  :root {
    --layout-gutter: var(--space-6);
    --layout-reel-shift: 64px;
    --layout-sidebar-share: 25%;
    --type-name: clamp(1.2rem, 0.9rem + 1.2vw, 2.1rem);
  }
}

/* ── the short viewport: a phone on its side ─────────────────────────────────
   The band above the row is the STAGE's, not the window's, but a window this short is the only case
   where that band is around a hundred pixels — and the caption is what is left of the open state's
   text on the drawing (the description is the shell's, since 2026-11-28). So the caption comes down a
   step rather than the photographs giving up their row: the name at `1rem`, the group at the small
   voice, the paper one step tighter, and the two voices SIDE BY SIDE — a one-line caption in a band
   that has no room for two. The way out is in the column now, so nothing here has to leave room for
   it. */
@media (max-height: 32rem) {
  :root {
    --strip-name-size: 1rem;
    --strip-group-size: var(--type-small);
    --strip-plate-pad-block: var(--space-1);
    --strip-heading-flow: row;
    --strip-heading-gap: var(--space-2);
  }
}

/*
 * The printed sheet: reset, typography, focus, and the two utilities the whole
 * tree shares.
 *
 * Every value here is a custom property from tokens.css. A colour or a length
 * written inline is a defect (design.md §2): if a rule needs a new value, the
 * value belongs in tokens.css with a comment saying what it moves.
 */

/* ── the self-hosted faces ───────────────────────────────────────────────────
   @generated:fonts — the build writes one @font-face per file that actually
   exists in static/fonts, with the hashed address it emitted for it, so a
   missing face is a missing rule rather than a request that 404s. Do not edit
   between the markers by hand. */
/* @generated:fonts:start */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-regular.8909904a.woff2") format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/inter-tight-medium.6c0019f8.woff2") format('woff2');
}
/* @generated:fonts:end */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--color-ground);
  color: var(--color-paper);
  font-family: var(--type-body);
  font-size: var(--type-root);
  line-height: var(--type-leading);
}

body {
  margin: 0;
  background-color: var(--color-ground);
  color: var(--color-paper);
  font-size: var(--type-small);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--type-display);
  font-size: var(--type-name);
  font-weight: var(--type-display-weight);
  letter-spacing: var(--type-tracking-name);
  line-height: var(--type-leading);
}

p {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* A link is not underlined when the pointer is on it: on this page a hovered entry is
   marked — the band inverts — and an underline beside the mark is a second, weaker
   statement of the same thing (Marco, 2026-10-21). A FOCUSED link keeps the line,
   because a keyboard's focus is a different reader's cue and it cannot see the band.
   The contact link is underlined at rest, in `shell.css`, where it is the only link
   that leaves the site. */
a:focus-visible {
  text-decoration: underline;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

hr {
  margin: 0;
  border: 0;
  block-size: var(--stroke-hair);
  background-color: var(--color-rule);
}

:focus-visible {
  outline: var(--stroke-focus) solid var(--color-ink);
  outline-offset: var(--space-1);
}

/* ── the two shared utilities ───────────────────────────────────────────────
   `.visually-hidden` keeps a name available to assistive technology without
   painting it; `.skip` is the first thing in the document and stays out of the
   way until it has focus. */

.visually-hidden {
  position: absolute;
  inline-size: var(--stroke-hair);
  block-size: var(--stroke-hair);
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: var(--layer-out);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-paper);
  color: var(--color-ground);
  font-size: var(--type-small);
  transform: translateY(calc(var(--space-7) * -1));
  transition: transform var(--motion-ui) ease;
}

.skip:focus-visible {
  transform: translateY(0);
}

/*
 * The frame: one shell, three modes.
 *
 * The phone composition is the base — the aside's bar, the drawer it opens, the
 * content — and the tablet and desktop compositions arrive entirely through the
 * mode values in tokens.css: this file reads them and never asks which mode it is
 * in. That is what keeps the breakpoints in one place, where the check can compare
 * them with `VIEWPORT`, and it is why no length and no breakpoint appears here
 * (design.md §2, §7).
 *
 *   phone               a bar across the top, the menu off-canvas, content full width
 *   tablet and up       the aside is a column: the bar at its top, the menu below
 *   desktop and up      the aside takes its quarter
 *
 * The two boundaries themselves are declared in tokens.css and nowhere else.
 *
 * The aside is one landmark in two parts, settled in design.md §7 ("The phone
 * bar"): the bar, always visible, carrying the language switch and the single
 * control that opens the menu; and the drawer, carrying the name and the
 * navigation. Only the drawer slides, so the language is stated once and never
 * disappears into a closed menu, and "open" and "close" are one control in one
 * state rather than two that can disagree.
 *
 * Off-canvas only exists where a script is running to open it again
 * (`html[data-scripting]`). Without one the drawer would be a navigation nobody
 * can reach: it stays in the flow, and the toggle — a control that cannot work —
 * is not painted at all.
 */

.shell {
  display: grid;
  grid-template-areas: var(--layout-areas);
  grid-template-columns: var(--layout-columns);
  grid-template-rows: var(--layout-rows);
  min-block-size: var(--layout-viewport-block);
}

/* ── the aside: the bar and the drawer ─────────────────────────────────────
   One landmark. On the phone its own box is the bar, and the drawer is taken out
   of the flow; from the tablet up it is the sidebar column and both parts sit in
   it. Each mode decides where the hairline goes: under the bar, or at the
   sidebar's end. */

.shell-aside {
  grid-area: aside;
  /* The open project's text is measured against the ASIDE — not the drawer, which slides away and
     goes `inert` on a phone. Its box begins at the hairline under the bar in both modes. */
  position: relative;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  background-color: var(--color-ground);
  border-block-end: var(--layout-bar-rule) solid var(--color-rule);
  border-inline-end: var(--layout-drawer-rule) solid var(--color-rule);
}

.shell-bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  block-size: var(--layout-bar-block);
  padding-inline: var(--layout-gutter);
  /* The bar stays ON TOP of the menu it opens (Marco, 2026-11-06: *"the menu can we make the
     z-index below the top menu bar? so we still have the line?"*): the drawer slides in under it,
     so the hairline under the bar is not covered by the panel it belongs to. */
  position: relative;
  z-index: var(--layer-bar);
}

/* ── the toggle ────────────────────────────────────────────────────────────
   A WORD, not a hamburger (Marco, 2026-11-06: *"can we change the menu on mobile from hamburger
   and x to close, to text? so menu and close?"*). The control is sized by its own label, in the
   same voice as the language switch beside it, and keeps a touch target's height — the width is
   the word's plus one step of padding, and the minimum is the target. Nothing is drawn: no icon,
   no file, no font. The state decides which word is shown.

   One control, one name at a time. Both strings are in the document, in its own language, from the
   table; the state takes one of them out of the tree. */

.shell-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  /* The word is bounded like every other control's (Marco, 2026-11-30): the brackets are the mark's
     two characters, set in the same gap as everywhere else. ⚠️ The button keeps its `min-inline-size`
     as a FLOOR, not a cap: the pair widens it, and the bar (`justify-content: space-between`) takes
     the growth out of the space between the switch and it. */
  gap: var(--mark-bracket-gap);
  min-inline-size: var(--layout-toggle-size);
  block-size: var(--layout-toggle-size);
  padding-inline: var(--layout-toggle-pad-inline);
  font-size: var(--type-small);
  letter-spacing: var(--type-tracking-button);
}

html[data-scripting] .shell-toggle {
  display: var(--layout-toggle-display);
}

.shell-toggle[aria-expanded='true'] .shell-toggle-open,
.shell-toggle[aria-expanded='false'] .shell-toggle-close {
  display: none;
}

/* ── the drawer: the name and the navigation ───────────────────────────────
   The only thing that slides. Its width, its offset and its rule are its own
   values, so the bar above it stays put while it travels. */

.shell-drawer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-6);
  min-inline-size: 0;
  padding: var(--layout-gutter);
  background-color: var(--color-ground);
}

html[data-scripting] .shell-drawer {
  position: var(--layout-drawer-position);
  inset-block-start: var(--layout-drawer-top);
  inset-block-end: 0;
  inset-inline-start: 0;
  /* ⚠️ `--layout-drawer-layer`, not `--layer-out`: a floating menu is a stacking level and a column in
     the flow is not. On a phone the number puts the menu over the open project's sheet (the menu has
     to pass over the description, never under it); above the boundary the value is `auto`, so the
     project's text layer — which is positioned — paints over the column's registers, which are its
     subject. A fixed `--layer-out` here made the drawer win in both modes at once, and the column's
     text disappeared behind the menu's own paper. */
  z-index: var(--layout-drawer-layer);
  inline-size: var(--layout-drawer-size);
  overflow: auto;
  transform: var(--layout-drawer-shift);
}

/* The slide belongs to the visitor's own press. On the first paint the document is
   still the no-scripting presentation, so the drawer is a column in the flow and the
   script is what moves it out: with the transition on from the start, that is a menu
   that slides away by itself on every load. The script allows it one frame later. */
html[data-scripting] .shell-drawer[data-motion='true'] {
  transition: transform var(--motion-drawer) ease;
}

html[data-scripting] .shell-drawer[data-open='true'] {
  transform: translateX(0);
}

/* ── the open project: a layer over the column ─────────────────────────────
   The column is where this page puts prose, and an open project's description is prose (Marco,
   2026-11-28, relaying feedback: *"move the project description from underneath it to the 25%
   area"*). It arrives as a LAYER, covering the column's own registers — not as a fourth register in
   their flow (Marco, same day: *"i was thinking of opening an overlay div inside the 25% area"*).

   Three reasons, and the second is the load-bearing one:
   · nothing in the column MOVES: the name, the menu and the contact keep the composition they have at
     rest, so opening a project does not re-centre the page's furniture;
   · it is the SAME DEVICE in every mode — at the desktop and the tablet it covers the column, on a
     phone it covers the frame — so the phone's "open it fullscreen" is this element measured
     differently, not a second mechanism;
   · it is a STATE of the column, the way the reel is one page in two states.

   The ground is the ground: NO PAPER, and no rule of its own either. The page has exactly one inverted
   rectangle and it belongs to the selection's mark (`mark.css`), so a panel of paper here would be a
   second mark saying a second thing; and the overlay is edge to edge, so there is no edge to draw.

   It starts at the hairline under the bar — it is the ASIDE's child, not the drawer's, because the
   drawer slides and goes `inert` on a phone and a project's text is not menu furniture — and it scrolls
   on its own: a description may be a page of prose, and the column is a column, not a page. */
.shell-project {
  /* TWO BOXES, ONE ELEMENT. Above the boundary the layer lies in the column — `absolute` in the
     aside, from the hairline down, the column's width. On a phone it is a SHEET of the frame's own
     size (`fixed`, the same hairline to the floor), because the column there is a drawer that slides
     and goes `inert`, and a project's text is not menu furniture (Marco, 2026-11-28). Both values are
     modes' (`--layout-project-*`), never a media query in this file. */
  position: var(--layout-project-position);
  /* ⚠️ In the column this is the FULL overlay — the column below the hairline, edge to edge — and the
     description's own top padding is the MEASURED height of the row of photographs' top edge, so the
     words and the picture begin on one line across the page. On a phone the same element is the frame's
     sheet, its text starting at the sheet's own top. Both come from mode values. */
  inset-block-start: var(--layout-content-offset);
  inset-block-end: 0;
  inset-inline: 0;
  /* ⚠️ `--layer-project`, not `--layer-out`: on a phone the drawer is this element's neighbour and the
     menu has to pass OVER the description, never under it (Marco, 2026-11-28). Above the boundary the
     drawer is not a stacking level at all (`--layout-drawer-layer` is `auto` there), so this number —
     any positive one — is over the column's own registers. */
  z-index: var(--layer-project);
  display: block;
  min-inline-size: 0;
  overflow: auto;
  background-color: var(--color-ground);
  /* The movement is the MENU's, on the other axis (Marco, 2026-11-28: *"add some animation when u open
     or close, like the menu one"*): the sheet arrives from the floor on a phone, and in the column there
     is nothing to move. ⚠️ Enabled one frame after the boot, exactly as the drawer's is, so a page that
     loads with a project already open does not animate itself into place. */
  transform: var(--layout-project-shift);
  transition: none;
  /* ⚠️ NO padding of its own: the DESCRIPTION carries the gutter, so that its first line can be
     pushed to the height of the row's own top edge (`--project-text-top`, measured and published by
     the reel) without the padding interfering. The way out is out of the flow, in the empty band
     that alignment leaves above the words. */
}

.shell-project[hidden] {
  display: none;
}

/* ⚠️ `:not([hidden])` is load-bearing, not decoration: `[hidden]` and `[data-sheet]` are two attribute
   selectors of the same weight, so whichever rule comes last wins — without the guard this one would
   paint the register on every page load, with nothing open. A hidden element is hidden in every mode;
   a shut sheet is out of sight on a phone and out in the column. */
/* A phone opens a project on its PHOTOGRAPHS: the sheet is shut until the caption's own word asks for
   it, standing off the floor of the frame and out of sight. Above the boundary the same attribute asks a
   question with one answer — the text is in the column whenever a project is open — so the mode's
   `--layout-project-shift` is `none` and `--layout-project-closed-visibility` is `visible` there.

   ⚠️ A shut sheet is NOT `display: none`: a box that is not displayed cannot slide. It waits one frame's
   measure below the frame, is `visibility: hidden` so it is out of the tab order, and the flip happens at
   the END of the slide (a delayed `visibility` transition) rather than at its start. */
.shell-project[data-sheet='closed']:not([hidden]) {
  transform: var(--layout-project-shift);
  visibility: var(--layout-project-closed-visibility);
}

.shell-project[data-sheet='open'] {
  transform: translateY(0);
  visibility: visible;
}

html[data-scripting] .shell-project[data-motion='true'] {
  transition: transform var(--motion-drawer) ease;
}

html[data-scripting] .shell-project[data-motion='true'][data-sheet='closed'] {
  transition: transform var(--motion-drawer) ease, visibility 0s linear var(--motion-drawer);
}

/* The way out stands at the panel's top corner — one gutter above the description's first line, which
   is as close to the words as a control can stand without being in them (Marco, 2026-11-28: *"i would
   lower the close closer to the description text"*). It is out of the flow so that the line it hangs
   above is the row's own top edge, and nothing pushes anything. */
/* The band the text's first line leaves above it — the row's measured top edge in the column, two
   gutters and a step on a phone — and nothing painted in it. The way out hangs on that band's FLOOR, so
   it stands immediately above the description's first line instead of floating at the top of the
   overlay. */
.project-head {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: var(--project-text-top, var(--layout-project-text-top));
  display: flex;
  /* ⚠️ The close stands in the bar's own COLUMN on a phone (`--layout-project-head-pad-inline` = the
     gutter there, and the close pads by the toggle's `--space-2`), so `[ close ]` reads as the
     continuation of `[ menu ]` above it. It stays on the band's FLOOR in both modes: the band is the
     sheet's head, and the description's first line begins at that floor. Centring it in the band was
     tried (2026-11-30) and rejected — the focus ring then grazes the bar's hairline, and on a phone
     the bar is painted over the sheet, so the ring's top edge would be clipped. */
  align-items: flex-end;
  justify-content: flex-end;
  padding-inline: var(--layout-project-head-pad-inline);
  pointer-events: none;
}

/* The way out, at the OUTER edge and on the band's floor, so it stands immediately above the
   description's first line instead of floating at the top of the column. Right, because the eye
   leaves a column on its outer edge and a control there covers nothing; out of the flow, because the
   description's first line is fixed to the row's top edge and the two must not push each other. Its
   padding is the tap target, drawn in nothing. */
.project-close {
  display: inline-flex;
  align-items: baseline;
  gap: var(--mark-bracket-gap);
  padding: var(--space-2) var(--layout-close-pad-inline);
  background: none;
  pointer-events: auto;
  color: inherit;
  font-size: var(--type-small);
  letter-spacing: var(--type-tracking-button);
}

/* The description: the site's reading voice on the column's own ground. Its measure is the practice
   sentence's own (`min(44ch, 100%)`) — at the desktop the column is narrower than 44ch so the cap
   never bites, at the tablet it does not either, and the description is the same block of words
   wherever the page is read. No plate and no scroll box of its own: the LAYER scrolls. */
/* ⚠️ The top padding is the MEASURED distance to the row's top edge in the column — `--project-text-top`,
   set by the reel on the layer ITSELF, so it is read here and not through a token: a custom property
   declared on `:root` cannot see a value written on a descendant. On a phone nothing is measured and
   the mode's own value is the sheet's top. */
.project-description {
  margin: 0;
  padding: var(--layout-gutter);
  padding-block-start: var(--project-text-top, var(--layout-project-text-top));
  max-inline-size: min(44ch, 100%);
  font-family: var(--type-body);
  font-size: var(--type-small);
  line-height: var(--type-leading);
  color: var(--color-ink);
  text-wrap: pretty;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  overflow-wrap: break-word;
}

/* ── who, and where to write ────────────────────────────────────────────────
   The bar carries three registers in a fixed order: who this is at the top, the
   sections in the middle, the way to write at the bottom. The menu is put in the
   middle by its own auto margins rather than by a spacer — the free space above and
   below it is the same, so it sits between the two instead of being pinned under the
   text with a void beneath it. In the drawer (the phone) the three travel together,
   in that order, which is the order they are read in. */

/* One paragraph (Marco, 2026-11-06: *"can we make shell-name and shell-about into a single div? i
   thought of that as one p so text is together"*, then *"can we remove the inner span? also the css
   linked to it?"*): the name is the paragraph's first WORD, not a node of its own — one face, one
   size, one ink, the measure the paragraph's. The sentence keeps a `span` because the language swap
   writes `textContent` into every `data-key` node, and on the paragraph it would take the name with
   it. */
/* NO WORD ON A LINE OF ITS OWN (Marco, 2026-11-28: *"like a text box for the text, so we dont have a
   single word going into the new line"*). `pretty` is the engine's own widow-avoidance: it pulls the
   last word up rather than dropping it alone onto a new line.

   ⚠️ `balance` was measured and is NOT the tool: on this paragraph (eight lines at a phone) the
   balance heuristic gives up and falls back to a greedy wrap, which left the last line as "clouds."
   — the same widow it was added to remove. `pretty` on its own answers "the clouds.".
   `text-wrap-mode`-style fallbacks are not needed: an engine without `pretty` simply wraps greedily. */
.shell-who {
  /* The measure: 44ch, and never wider than the column it is in. Marco, 2026-11-28: the paragraph's
     rag was falling badly because 32ch is a NARROWER measure than the drawer it sits in — on a phone
     the drawer gives ~44ch and the cap was throwing 100px of it away, which is what turned a line into
     a stub. 44ch is inside the 45–75 a body measure wants and is the widest the widest column this
     text ever gets will allow, so the sentence is as long a line as the shell can honestly give it.
     On the desk the column is already narrower than 44ch, so nothing there moves. */
  max-inline-size: min(44ch, 100%);
  font-family: var(--type-body);
  font-size: var(--type-small);
  line-height: var(--type-leading);
  color: var(--color-quiet);
  /* THE RAG (Marco, 2026-11-28). Ragged right and never justified: at this measure (32ch) a
     justified column can only be flush by opening rivers or by hyphenating half the words, and both
     were measured and rejected. What shapes the rag instead is HYPHENATION with tight limits — a
     break is allowed only in a word of six letters or more, with at least three letters on each side
     — so `photo-graphy` is possible and `photograp-hy` is not. The stock limits hyphenate far too
     readily and produced exactly that break.
     `text-wrap: pretty` keeps the last line from being a single word where the engine has it (the
     script in `client/widows.js` is the same rule for the engines that do not), and
     `overflow-wrap: break-word` is the safety net for a word longer than the measure. */
  text-wrap: pretty;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  overflow-wrap: break-word;
}

/* The pair the script binds so that no line is one word (see `client/widows.js`): the two words
   travel together, so a break can happen before them but not between them. Declared here and not
   inline, because the page's policy refuses inline styles. */
.shell-bound {
  white-space: nowrap;
}

.shell-drawer > .shell-who {
  flex: var(--layout-register-flex);
}

.shell-drawer > .shell-contact {
  display: var(--layout-contact-display);
  flex: var(--layout-register-flex);
  align-items: flex-end;
}

.shell-drawer > .nav {
  margin-block: var(--layout-menu-block);
}

.shell-contact {
  font-family: var(--type-body);
  font-size: var(--type-small);
  line-height: var(--type-leading);
}

/* A link in the bar is underlined at rest: it is the way to write to a person, and a
   quiet mark that only appears on hover is a thing visitors do not find. The colour is
   the ink, not the quiet grey — this is the one control in the bar that leaves the site. */
.contact-link {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-quiet);
  text-underline-offset: 0.25em;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration-color: var(--color-ink);
}

/* ── the navigation ───────────────────────────────────────────────────────── */

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: var(--mark-bracket-gap);
  /* The entry hugs its own word: the mark's bounds are the brackets, so a link that
     stretched the whole column would print a band across the sidebar. */
  inline-size: fit-content;
  font-family: var(--type-display);
  font-size: var(--type-nav);
  font-weight: var(--type-display-weight);
  letter-spacing: var(--type-tracking-name);
}

/* The current destination is marked by a rule under the word, not by colour
   alone, so the marking survives a monochrome print and a dim screen. */
.nav-link[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

/* ── the language switch ────────────────────────────────────────────────────
   One current option, one link to the counterpart document. With the script
   running the link is intercepted; without it, it is an ordinary anchor to a
   document the build has already rendered in that language (design.md §13). */

.lang {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--type-small);
  letter-spacing: var(--type-tracking-button);
  /* Set as they are written — `En`, `It` — rather than shouted. The two words are a
     place, not a control's label, and the mark is what says which one is being read. */
}

.lang-option {
  display: inline-flex;
  align-items: baseline;
  gap: var(--mark-bracket-gap);
}

.lang-option[aria-current='true'] {
  color: var(--color-ink);
}

.lang-option:not([aria-current='true']) {
  color: var(--color-quiet);
}

/* The separator between the two languages: a printer's slash, in the quiet ink, and the
   only thing that delimits the pair since the brackets came off it (2026-10-22).

   Its air is DERIVED, not a length of its own: one step of the page's spacing scale on each
   side, set as a NEGATIVE margin against the row's gap, because a flex gap is already spent
   on both sides of the node and the slash does not want all of it. Clearing the glyph, not
   the box. */
.lang-sep {
  color: var(--color-quiet);
  margin-inline: calc(var(--space-2) - var(--space-3));
}

/* ── the content region ───────────────────────────────────────────────────── */

.shell-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  min-block-size: 0;
  /* The block pad is the content's, not the region's: the reel's surface is cut by
     the frame's own top and bottom edges, so it spans the region's whole block. The
     inline gutter stays here, and the static column carries its own pad. */
  /* No inline pad at all, in any mode (Marco, 2026-11-06: *"on opened reel i have a margin on the
     right side, can we remove that? also can we remove noth margins in left/right into mobile?"*).
     And that is the point: the reel's canvas is the stage, the stage is this region's own box, and the
     strip's row is wider than the stage — so the photographs reach the frame's edges (the sidebar's
     rule on the left, the window's edge on the right) only if the DRAWING SURFACE does. An open row
     cut 32px short of the glass on one side was a margin doing nothing.
     ⚠️ What keeps its air is TEXT, which carries its own inset: the label list where it is in the flow
     (`--reel-labels-pad-inline`), the strip's text (`padding-inline-end`), and the band's flow margin.
     The column's own inset is the geometry's (`--layout-reel-shift`, read by the reel); the static
     column carries its own gutter either way. */
  padding: 0 var(--layout-main-pad-end) 0 var(--layout-main-pad-start);
}

/* ── the menu's place in the column ─────────────────────────────────────────
   Above the boundary the three registers share one column, and the menu lands on the
   column's CENTRE LINE: the who-block and the contact each take an equal share of the free
   space, so what is above the menu and what is below it are the same height whatever the
   words are (Marco, 2026-10-22: *"in the vertical axes not horizontal"*).

   ⚠️ Not `margin-block: auto`. Auto margins equalise the WHITESPACE around the menu, which
   puts it off centre by half the difference between the two neighbouring blocks — with a
   three-line about and a one-line contact that was 35px low. Below the boundary the drawer
   is a scrolling column and the three travel together in reading order, which is what the
   phone wants — so the three values are the modes' business, in tokens.css, and this file
   stays free of the boundary. */

/*
 * The reel: the column of photographs and the labels that open them.
 *
 * This file carries the composition only. The reel's geometry — the tile's size,
 * the step between tiles, the viewing position, the label column — is measured
 * from the content region at runtime (`src/client/reel-geometry.js`) and written
 * onto the reel as custom properties, so it responds to the viewport instead of
 * being asserted here (design.md §7).
 *
 * Two arrangements, decided by the mode values in tokens.css and never by this
 * file asking which mode it is in: on the phone the label list sits UNDER the tile
 * column, because a label plus the room the mark needs cannot sit beside a tile
 * that is a third of a width; above the phone boundary it sits BESIDE it, each
 * label at its own tile's height.
 */

.reel {
  position: relative;
  display: flex;
  flex: var(--reel-flex);
  flex-direction: column;
  gap: var(--reel-label-gap);
  min-block-size: 0;
  /* The column is cut by the region's edges, not clipped by a scroll box. */
  overflow: clip;
}

/* The stage is where the drawing surface is mounted, and the box the geometry is
   measured in. It is exactly one content block — the region's own, from the bar's
   underside to the frame's bottom edge — so the photographs are cut by the frame
   rather than floated inside a padding. A drag on it turns the reel, so it does
   not scroll the page. */
.reel-stage {
  position: relative;
  flex: 0 0 auto;
  block-size: var(--layout-content-block);
  min-block-size: var(--reel-stage-min);
  touch-action: none;
  /* The stage is a gesture surface, not text: a press that starts a selection
     turns the next drag into the browser's own, and the reel stops mid-gesture. */
  user-select: none;
}

/* The canvas fills the stage and sits behind the marks the reel places in it. It
   takes no pointer events of its own: the stage is the gesture surface, and a
   canvas that swallowed presses would make the column untouchable. Its intrinsic
   size is the device's; the two declarations here are what lay it out. */
.reel-canvas {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
}

/* ── the labels ────────────────────────────────────────────────────────────
   One list, positioned by the mode: in flow under the stage, or a measured column
   beside the tile column. Each label's height along the column, and how legible it
   is, are written per frame; both arrive as custom properties. */

.reel-labels {
  position: var(--reel-labels-position);
  inset-block-start: 0;
  inset-block-end: 0;
  inset-inline-start: var(--reel-label-left, 0);
  inline-size: var(--reel-label-width);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  /* Only where the list is in the flow, below the stage: it keeps the frame's
     block margin because the region no longer has one. */
  /* ⚠️ The plate hangs from the SELECTED photograph's own floor, not from the frame's (Marco, 2026-11-06:
     *"we need to make the project title a little bit closer to the current selected one"*): at the frame's
     bottom it stood 264px under the picture it names. The expression is here and not in a token, because a
     `var()` inside a custom property resolves where the token is DECLARED (`:root`), where the reel has
     published nothing — the same trap the labels' transform hit. Above the boundary the entries are
     absolutely placed from the geometry, so this pad is the phone's alone. */
  padding-block-start: calc(var(--reel-tile-top, 0px) + var(--reel-tile-tall, 0px) + var(--reel-labels-pad-block));
  padding-block-end: 0;
  padding-inline: var(--reel-labels-pad-inline);
  touch-action: var(--reel-labels-touch);
  user-select: none;
  /* The phone's one plate stands on the frame's floor, and the list spans the whole stage to put it
     there — so the list itself must let the drag through to the photographs and only the plate take a
     press. (`pointer-events` is inherited: the control re-enables it for itself.) */
  pointer-events: none;
  justify-content: flex-start;
}

/* One entry, and the walk swaps it: the plate is the selection's own design, so what shows it is the
   mark and not a second vocabulary. */
.reel-labels .label:not([data-marked='solid']) {
  display: var(--reel-label-others);
}

.label {
  position: var(--reel-label-position);
  inset-block-start: 0;
  inset-inline-start: 0;
  transform: translateY(calc(
    (var(--reel-label-shift, var(--reel-shift-base)) - 50%) * var(--reel-label-move)
  ));
  opacity: var(--reel-label-opacity, 1);
}

/* The control hugs its own type — the mark's band is its box, so a full-width
   control would paint a band across the whole column — but never wider than the
   column: a long name wraps rather than running into the region's edge. */
.label-control {
  max-inline-size: 100%;
  /* …and it is the one thing in the list that takes a press (see `pointer-events` above). */
  pointer-events: auto;
}

.label-name {
  min-inline-size: 0;
}

/* A label that cannot be read is not a target either: it is out of the tab order
   and out of the hit test, so it can neither be focused nor activated. */
.label[data-legible='false'] {
  visibility: hidden;
}

.label-control {
  display: flex;
  align-items: baseline;
  /* The gap is the mark's own: it is the room between a bracket and the run it
     bounds, and the same number on the sidebar's entries — one device, not two. */
  gap: var(--mark-bracket-gap);
  inline-size: fit-content;
  padding-block: var(--mark-vpad);
}

.label-name {
  font-family: var(--type-display);
  font-size: var(--type-name);
  font-weight: var(--type-display-weight);
  letter-spacing: var(--type-tracking-name);
}

.label-year {
  font-size: var(--type-year);
  letter-spacing: var(--type-tracking-button);
  /* The year is a quieter VOICE than the name, not a quieter colour: it inherits whatever the
     entry is wearing, so the selected one's year is knocked out with the plate (the mark carries
     the whole row, not just the name). */
  color: inherit;
  opacity: 0.62;
}

/* ⚠️ Only the SELECTED entry shows its year (Marco, 2026-10-23: *"for the non selected one can we
   remove the year?"*). A ghost of the column is a name and nothing else — the year was the loudest
   thing on it, because four digits carry more than a word at 0.15.

   REMOVED, not hidden (Marco, 2026-11-06: *"we have a black space like [ project 1       ]"*).
   `visibility: hidden` kept the year's advance in the row, and the brackets bound the ROW: the jaws
   closed on a word that was not there. Taking it out costs exactly one thing, and it is measured:
   the entry's own trailing edge now follows its own words, while its NAME never moves and no other
   entry moves at all (`marking-moves-no-layout` claims those two, and only those). */
.label:not([data-marked='solid']) .label-year {
  display: none;
}


/*
 * The mark: the inverse band on the SELECTED entry, the brackets that bound it (which are
 * also the claw), and the printed arrows.
 *
 * The band is the selected entry's alone, and it is painted by THIS FILE in every mode:
 * the canvas painted the reel's one until 2026-10-22 and paints no part of the mark any
 * more. The brackets are the selected entry's too — on the reel's labels and on nothing
 * else (Marco, 2026-10-22: *"the [ ] only on selected item not on selectable"*) — while
 * the sidebar's entries keep theirs in every state, because there they delimit a control.
 *
 * Nothing in this file may carry a colour or a length of its own.
 */

/* Room reserved for the mark, on every entry and in every state, so that marking an
   entry changes no element's rectangle (design.md §9): the overshoot past the bracket
   is the padding, the bracket and its gap are in the flow, and all three are there in
   every state.

   The control's type size is the NAME's, and that is what the mark is measured in:
   `em` in a custom property is resolved where the property is USED, so the bracket and
   its gap resolve against this declaration. Left inheriting the small voice, the
   brackets printed at nine pixels beside a thirty-three pixel name. */
.label-control {
  padding-inline: var(--mark-grow);
  font-size: var(--type-name);
}

/* ── the brackets ───────────────────────────────────────────────────────────
   The two characters, set in the type: `[` and `]`, in the row's own colour and
   weight, so they are the same ink as the name between them and take the state's
   colour for free. They were four border segments in a fixed square until
   2026-10-21 — drawn rather than typed — and Marco asked for the characters.

   They are `aria-hidden`: the mark is a picture of a selection, and the selection is
   already said by `aria-current`/`aria-expanded` on the control. A screen reader that
   read "left square bracket" before every name would be reading punctuation that
   means nothing to it. */

.mark-bracket {
  display: block;
  flex: 0 0 auto;
  align-self: center;
  /* The glyph's own advance is the width; the size is the type's. Nothing here may
     change by state, or the mark would move what it marks. */
  font: inherit;
  color: inherit;
}

/* ── worn at rest ──────────────────────────────────────────────────────────
   Every bracketed control wears its brackets at rest (Marco, 2026-11-30: *"can we make this the
   standard of the site? on every button we have the quiet [ ] … on hover the claw motion … the
   selected one is for the menu and the reel only"*).

   ⚠️ This REVERSES 2026-10-22's *"the [ ] only on selected item not on selectable"*. The brackets
   are no longer a mark that ARRIVES on a state: they are the BOUNDS a control always has, and the
   same two characters say the three things by their ink and their motion — WORN at rest (the
   resting share), TRYING under the pointer (the claw's own quiet and its bite), HELD when chosen
   (full ink, clamped, inside the band). Only the menu and the reel can be HELD: they are the only
   places where something is chosen.

   Worn, not hidden, also retires a trap this file used to keep: three lists (hidden, revealed on
   hover, running the claw) had to stay in step, and a host added to the last two only animated
   jaws that were still invisible. Measured that on both of the lone controls on 2026-11-06.

   ⚠️ TWO rules, because a share is a share of the control's OWN ink, and some hosts already SPEAK
   quietly: the reel's labels rest at `--mark-neighbour` (a ghost of the column), the language
   switch's other option and the not-found page's way back at `--color-quiet`. Their brackets are
   worn in that same voice — no second dimming. Multiplied, the reel's pair would be 0.15 × 0.30 =
   0.05: not quiet, gone (contrast ≈1.1:1), and the reel would show no brackets at all. A host that
   rests at the page's own ink instead wears the resting share.

   ⚠️ The space is still ONLY ever reserved, never re-laid: `visibility` and `opacity` move no
   rectangle, so a state arriving still changes no box (design.md §9). */
.label .mark-bracket,
.nav-link .mark-bracket,
.lang-option .mark-bracket,
.not-found-link .mark-bracket,
.project-close .mark-bracket,
.strip-read .mark-bracket,
.shell-toggle .mark-bracket {
  visibility: visible;
}

.nav-link .mark-bracket,
.project-close .mark-bracket,
.strip-read .mark-bracket,
.shell-toggle .mark-bracket {
  opacity: var(--mark-bracket-rest);
}

/* ── the band ───────────────────────────────────────────────────────────────
   ONE band, and it is the selected entry's: the inverse of the sheet — paper behind, the
   ground colour for the type and for both brackets. No pattern, no second strength.

   It was a ramp of terminal half-tones for an afternoon (Marco, 2026-10-22: *"like the dither
   for the photos, same vibe"* → *"can u strip the rest and just use the ramp?"* → *"its not
   [uniform]"*): a field of block-shade characters at one tone, which solved the uniformity but
   left the mark as a fill made of dots. His verdict was to go back to the plate and let it be
   SMALLER instead (*"then we can restore to the previous heighlight maybe just make the box a
   little smaller"*) — the mark is the fill, and the fill hugs the words.

   Painted by the STYLESHEET in every mode: the canvas paints no part of the mark since
   2026-10-22, so there is one painter and `--mark-paper` is where it reads its colour. */

.label[data-marked='solid'] .label-control {
  background-color: var(--mark-paper);
}

.label[data-marked='solid'] .label-control,
.label[data-marked='solid'] .label-year {
  color: var(--mark-selected-fill);
}

/* ── the neighbours ─────────────────────────────────────────────────────────
   The projects that are not the selection are QUIET — a ghost of the column at
   `--mark-neighbour` — and they come up to the page's own ink only when the pointer is on them
   or a keyboard has reached them (Marco, 2026-10-22: *"in the 1-c i like that u dont see the name
   of the other projects ... i would merge both, maybe less visible the non selected projects, but
   still hoverable and selectable"*).

   It is the column's own answer to the same question the plate answers: at rest the reel's
   photographs carry the page and the names are a reserve, so the only entry in ink is the one you
   are going to. Nothing is hidden — every name is still a target in the hit test, still in the tab
   order, still announced — and nothing about the rectangle changes, because a colour is not a
   length (design.md §9).

   ⚠️ The reel's hover is `data-marked="hover"` and NOT `:hover`: a touch leaves `:hover` stuck on
   whatever it last tapped, and a name left blazing after the finger has gone would be a mark for
   a state nobody holds (see the claw section). The sidebar keeps `:hover`, because its entries are
   the drawer's and it closes behind them. */
.label:not([data-marked='solid']) .label-control {
  color: var(--mark-neighbour);
}

/* ⚠️ The focus rule is scoped to the entries that REST at the neighbour tone. It used to read
   `.label .label-control:focus-visible`, which also matched the SELECTED entry — the one on the
   paper plate — and painted the page's ink on it: paper-white type on a paper plate, 1.28:1, the
   name gone the moment a keyboard reached it. The plate's own pair (`--mark-selected-fill` on
   `--mark-paper`) is the only ink that reads there, and focus changes nothing about a ground, so
   the selection keeps it and only the ghost comes up to full ink. */
.label[data-marked='hover'] .label-control,
.label:not([data-marked='solid']) .label-control:focus-visible {
  color: var(--color-ink);
}

/* ── the claw ────────────────────────────────────────────────
   The two brackets are the jaws of a clamp, and the gap they keep from the type is what
   they close on. Hovered, the pair only TRIES: it snaps in on the word, releases, snaps in
   again — twice a second, in two positions and never between them, dimmed, because it has
   not got hold of anything yet. Selected, it is clamped: the same jaws held shut on the
   word, in full ink, and the band around them is the clasp. One gesture with two outcomes,
   which is what a pointer and a selection are.

   Why the brackets and not the band. The band is painted by the canvas above the phone
   boundary, and a band that moved or pulsed would need a clock in the fragment stage and a
   frame loop that never idles — on a phone that is the battery the reel spends on its
   photographs. The brackets are DOM in every mode, so this costs the compositor nothing and
   reaches the reel, the sidebar, the phone and the no-canvas copy from one rule. Nothing
   here touches layout: a transform draws the brackets somewhere else and their reserve is
   the padding, so a mark arriving moves no rectangle.

   The reel's half is the client's state (`data-marked="hover"`, written on the entry the
   pointer is over and cleared when it leaves or a press begins), NOT `:hover` on the label:
   a touch leaves `:hover` stuck on whatever it last tapped, and jaws still working under a
   finger that has gone away would be a mark for a state nobody holds. The sidebar keeps
   `:hover`, because its entries are the drawer's and it closes behind them.

   On the reel's labels the pair is not printed until the entry is the one being chosen, and
   then it does exactly what the sidebar's does: it tries on a hover, dimmed, and clamps on a
   selection (Marco, 2026-10-22: *"on hover on the project names i dont see the animation of
   the [ ]"*).

   ⚠️ There are TWO rules per host and BOTH are needed: this one makes the pair visible, the one
   below runs the claw. A host added to the claw's list only animates its jaws on brackets that are
   still `hidden` — measured exactly that on the not-found link and the strip's close control
   before 2026-11-06, with a real pointer: `animation: mark-claw-try` running on
   `visibility: hidden`, which looks precisely like nothing happening.

   The not-found document's way back is the fourth host (2026-11-06, Marco: *"can u treat the
   back to work a link as every other link? … i meant the [ ] animation on hover"*): it has no
   selected state — one link, and it is always the one to take — so it carries the TRY and
   nothing else, exactly as a sidebar entry that is never chosen does. */

.mark-bracket[data-side='open'] {
  --mark-claw-sign: 1;
}

.mark-bracket[data-side='close'] {
  --mark-claw-sign: -1;
}

/* TWO states and nothing between them. A terminal does not ease — it switches — and the
   first thing this replaces was an eased swing in, a drift back and half a second of
   nothing, which reads as smooth and, worse, as slow: the jaws did not start until a fifth
   of the way through the cycle. Now the bite lands on the frame the pointer arrives (0 % is
   already closed), and the pair then alternates between in and out with a hard `steps()`
   jump. Per-frame positions: two. */
@keyframes mark-claw-try {
  0%,
  50% {
    transform: translateX(calc(var(--mark-claw-tried) * var(--mark-claw-sign)));
  }
  50.01%,
  100% {
    transform: translateX(0);
  }
}

.label[data-marked='hover'] .mark-bracket,
.nav-link:hover:not([data-marked='solid']) .mark-bracket,
.lang-option:hover:not([data-marked='solid']) .mark-bracket,
.not-found-link:hover .mark-bracket,
.strip-read:hover .mark-bracket,
.project-close:hover .mark-bracket,
.shell-toggle:hover .mark-bracket {
  opacity: var(--mark-claw-quiet);
  animation: mark-claw-try var(--mark-claw-period) steps(1, end) infinite;
}

/* Clamped: the same jaws, shut on the word and held there. Not animated — the claw has
   taken hold, and a grip does not twitch. Full ink, at the top of the ladder: this is the only
   rung a chosen entry may occupy, so the resting share is cancelled here. */
.label[data-marked='solid'] .mark-bracket,
.nav-link[data-marked='solid'] .mark-bracket,
.lang-option[data-marked='solid'] .mark-bracket {
  opacity: 1;
  transform: translateX(calc(var(--mark-claw-clamped) * var(--mark-claw-sign)));
}

/* Reduced motion keeps the statement and drops the movement, as everywhere else: the jaws
   hold at the distance they would have reached, dim and still, so a hovered entry is still
   told apart from one carrying no mark — and from a selected one, whose jaws are shut. */
@media (prefers-reduced-motion: reduce) {
  .label[data-marked='hover'] .mark-bracket,
  .nav-link:hover:not([data-marked='solid']) .mark-bracket,
  .lang-option:hover:not([data-marked='solid']) .mark-bracket,
  .not-found-link:hover .mark-bracket,
  .strip-read:hover .mark-bracket,
  .project-close:hover .mark-bracket,
  .shell-toggle:hover .mark-bracket {
    animation: none;
    transform: translateX(calc(var(--mark-claw-tried) * var(--mark-claw-sign)));
  }
}

/* ── the sidebar's entries ──────────────────────────────────────────────────
   The same device in a column the canvas does not cover: the band on the current one, the
   jaws on the one under the pointer, and nothing at all on the rest. The pad is reserved on
   every entry in every state, so a mark arriving moves nothing. */

.nav-link,
.lang-option {
  padding-inline: var(--mark-grow);
  padding-block: var(--mark-vpad);
  /* Lower case, because these are a terminal's entries and not a heading: `[ work ]`, `[ en ]`.
     Done in the STYLESHEET and not in the string table on purpose — a screen reader still hears
     "Work" and "En", which are words, while the page prints `work` and `en`, which are marks
     (Marco, 2026-10-22). The brackets are punctuation and `text-transform` cannot touch them. */
  text-transform: lowercase;
}

.nav-link[data-marked='solid'],
.lang-option[data-marked='solid'] {
  background-color: var(--mark-paper);
  color: var(--mark-selected-fill);
  text-decoration: none;
}

/* ── the four-way is gone ──────────────────────────────────────────────────
   The band that walked the reel's two axes is REMOVED (Marco, 2026-11-28, relaying feedback:
   *"remove the d pad in the corner, that is useless"*). Everything it painted lived here — one
   `↑` turned by each arm, the mode's placement in the gutter, the pulse's shift and weight, the
   dark of an arm at the end of a finite row.

   Nothing it DID is lost: a drag and a swipe on the stage walk both axes, the wheel walks both,
   the arrow keys walk both while the reel is the focused stop, a name label is a control, and a
   tap or a downward swipe closes. What is lost is the one thing it uniquely SAID — that the row
   continues and that keys work here — and what still says it is structural: the row is cut at
   both frame edges, its neighbours are drawn smaller and dimmer, and the position is announced.

   ⚠️ The reel's own chrome — labels, brackets, marks — is untouched: the band was never of it,
   and the mark's own band above is the selection's, not a control's.

/*
 * The gesture's chrome: the announcement, and the open project's CAPTION.
 *
 * Everything here belongs to the strip and exists only while the strip is open. What is left on the
 * drawing is a caption (the project's name and its work group) and a sentence that is announced and
 * never painted; the description and the way out are the shell's column's, in `shell.css`
 * (Marco, 2026-11-28 — see the change `work-text-in-the-column`).
 *
 * The strip's own photographs are drawn by the renderer, not laid out here. What is laid out is the
 * one rule that takes the reel off the surface while they are up — the chrome below is the strip's,
 * and the reel's own goes to zero — and the bar of paper the caption stands on.
 */

/* ── nothing of the reel over the strip ─────────────────────────────────────
   While a project is open, the reel's own chrome goes to ZERO — not to a low
   opacity, because dimming is not the same as being behind (design.md §9), and a
   label at any visible strength is the reel painted over the project's
   photographs. The model puts the same list out of the tab order and out of the
   accessibility tree (`inert`), so the two surfaces agree about what is gone and
   not merely quiet. The rule carries no transition on purpose: the chrome is above
   the strip's photographs from the first frame of the gesture, and a fade would be
   the reel changing over them. */
.reel[data-open] .reel-labels {
  opacity: 0;
  pointer-events: none;
}

/* ⚠️ A vertical step CLOSES the row to scroll the column under it (Marco, 2026-10-23: *"we still dont
   have the scroll animation"*), and the scroll is the reel's — so the labels are not the page's during
   that phase either: the visitor asked to move between projects, and a column of names coming back for
   a third of a second is the page losing its place rather than scrolling. Held down by the same rule,
   with the same absence of a transition: there is nothing to fade. */
.reel[data-stepping] .reel-labels {
  opacity: 0;
  pointer-events: none;
}

/* ⚠️ Nothing of the reel's stays any more. The four-way used to be the exception — it was the only
   way to walk the row in ink — and it is REMOVED (2026-11-28): the row is walked by the gesture, the
   wheel and the arrow keys, all of which the visitor already has. `mark.css` says the rest. */

/* The strip occupies the CONTENT REGION, not the window: its photographs are drawn in
   the stage and its way out belongs in the corner of the surface they are on. A
   window-fixed box put the control over the sidebar's own language switch — two
   controls on one another, and one of them unreadable. */
.strip {
  position: absolute;
  inset: 0;
  /* ⚠️ The REEL's box, not the STAGE's, is what `inset: 0` would give: the reel is a flex column that
     grows past the stage whenever something beside it is taller than the frame (the sidebar at 844×390
     is 450.7 in a 390 frame, so the whole reel is), and the sheet is printed on the STAGE.
     `--reel-frame-tall` is the stage's own measured block, published by the reel, and it kept a long
     description inside the page when the description lived here. It stays: the strip is a box on the
     stage, and it should be the stage's box. */
  block-size: var(--reel-frame-tall, auto);
  z-index: var(--layer-strip);
  /* The photographs own the pointer; a control that wants it says so, and a
     control that does not is invisible to the drag (design.md §9). */
  pointer-events: none;
}

/* Closed is not painted, and not painted means not focusable. */
.strip[hidden] {
  display: none;
}

/* The announcement: the photograph at the viewing position, its place in the row and its own
description. It is ANNOUNCED, not painted (Marco, 2026-11-06: *"can we remove the photograph 1 of
3 text"*). It keeps its `role="status"` and its `visually-hidden` box, so a visitor who cannot see
the canvas is told the same thing, and it is still the first place a step along the row speaks. */
.strip-status {
  font-size: var(--type-small);
  pointer-events: none;
}

/* ── the strip's text: the CAPTION bar ─────────────────────────────────────
   The open state is a printed SHEET and not type laid over a photograph (Marco, 2026-11-06): a bar
   of paper on the photograph's top edge, exactly as wide as the photograph and flush with it, so
   paper / photograph read as one column of one width — the sheet, with the image cut into it.

   ⚠️ ONE BAR, and it carries ONE thing (Marco, 2026-11-28). The description left the drawing for
   the shell's column, and the way out went with it: a picture that fills the frame has to say that
   something is open, and the project's own name is what says it. So the sheet is a CAPTION — the
   name and the work group — and it is the only text the strip paints.

   ⚠️ The bar stands in the ROW's own column, exactly where the photograph is drawn: the row grows
   out of the photograph the visitor tapped, and that photograph is at the tile's place, which is the
   closed composition's. Centring the sheet would mean sliding the row 192px away from the photograph
   that was tapped, during the fold — the photograph would leave the visitor's finger while the print
   lifts, and `the-front-lifts-the-print-and-never-inverts` reads the lift point by point on that
   rectangle. So the sheet follows the row. On the phone the two are the same thing. */
.strip-text {
  position: absolute;
  /* ⚠️ The rectangle the print is DRAWN in, published by the renderer (`--reel-photo-*`), not the
     model's box: the drawn one is snapped to the device grid on both axes, and a paper measured from
     the model sits a fraction of a pixel off it — a hairline of ground on one side of the photograph and
     of paper on the other. The model's numbers are the fallback for the frame before the row is drawn. */
  inset-inline-start: var(--reel-photo-left, var(--reel-tile-left, 0px));
  inline-size: var(--reel-photo-inline, var(--reel-tile-inline, 100%));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* The sheet's MARGIN: the paper's own padding, and the only air between a word and the
     image or the paper's edge. */
  padding: var(--strip-plate-pad-block) var(--strip-plate-pad-inline);
  /* ⚠️ `--mark-paper`, not `--color-paper`: they are the same colour today, and the point is that they
     stay the same colour — the sheet's paper IS the mark's paper, so there is one white on the page and
     `the-band-is-the-papers-exact-inverse` holds all of them to the ground's inverse. */
  background-color: var(--mark-paper);
  color: var(--mark-selected-fill);
}

/* The caption sits ON the picture's top line, lifted by its own height: `inset-block-end` would be
   measured from the stage's bottom edge, and the bar's height is its content's, so only the transform
   can put the paper's edge exactly on the picture's. ⚠️ The picture occupies the ROW's box —
   `--reel-tile-top` to `+ --reel-tile-tall`, the tile swollen by the fold-out — not `--reel-tile-block`,
   which is the tile before the swell. */
.strip-text[data-strip-text='name'] {
  inset-block-start: var(--reel-photo-top, var(--reel-tile-top, 0px));
  inset-block-end: auto;
  transform: translateY(-100%);
}

/* The way INTO the project's text — a bar of paper UNDER the row of photographs (Marco, 2026-11-28:
   *"we can put the read below the images"*), the caption's twin on the row's other edge: the same width,
   flush with the photograph, the same paper. Below the boundary only (`--strip-read-display`): above it
   the description is in the column already, and a control that does nothing would be a lie.

   ⚠️ `pointer-events: auto` on the CONTROL, because the strip it stands in takes none — the photographs
   own the drag, and a bar of paper that swallowed one would take the row's gesture away. */
.strip-text[data-strip-text='read'] {
  inset-block-start: calc(var(--reel-photo-top, var(--reel-tile-top, 0px)) + var(--reel-photo-tall, var(--reel-tile-tall, 0px)));
  inset-block-end: auto;
  display: var(--strip-read-display);
  flex-direction: row;
  justify-content: space-between;
}

.strip-read {
  display: inline-flex;
  align-items: baseline;
  gap: var(--mark-bracket-gap);
  margin: 0;
  padding: var(--space-2) 0;
  background: none;
  color: inherit;
  font-size: var(--type-small);
  letter-spacing: var(--type-tracking-button);
  pointer-events: auto;
}

/* A block of the sheet's type. ⚠️ No background and no padding of its own: the BAR is the paper (see
   above) and it carries the margin, so a heading is just words in the sheet's ink. */
.strip-plate {
  max-inline-size: 100%;
}

/* The strip's heading is the project's NAME and its work group, in one `<h2>`: a photograph of a
   work with no title on it is a picture of nothing in particular. The two are two voices on the sheet
   — size, case and tracking say which is which — and the quiet voice is quieter by SIZE, never by
   alpha: the ink is the paper's inverse, so there is one ink and the hierarchy is the type's. */
.strip-heading {
  margin: 0;
  flex: 1 1 auto;
  min-inline-size: 0;
  /* Two voices, one sheet. Stacked (`column`) they are the name and the group under it; on a short
     bar they stand side by side (`row`) rather than making the bar taller than the room it has — and
     a name long enough to fill the line wraps the group under it instead of running off the paper. */
  display: flex;
  flex-direction: var(--strip-heading-flow);
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--strip-heading-gap);
  font-family: var(--type-display);
  font-size: var(--strip-name-size);
  font-weight: var(--type-display-weight);
  line-height: var(--type-leading);
  letter-spacing: var(--type-tracking-name);
}

.strip-name,
.strip-group {
  display: block;
}

.strip-group {
  font-size: var(--strip-group-size);
  letter-spacing: var(--type-tracking-button);
  text-transform: uppercase;
}

/*
 * The static presentation: the same projects as a printed column, with their text
 * and their photographs in flow.
 *
 * The canvas is an enhancement, not the site. This column is what a visitor gets
 * with no script, with a blocked script, or with a drawing surface that refused
 * to start — and it is the same markup in all three cases, which is why it is a
 * template rather than a special case (design.md §14).
 *
 * The switch itself lives here, at the end of the cascade, because it is one
 * pair of rules and splitting it across two files is how the prototype ended up
 * with a column painted behind a working canvas.
 */

.fallback {
  max-inline-size: var(--layout-content-longest);
  /* The region carries no block pad (the reel reaches its edges), so the printed
     column keeps the frame's margin itself. */
  /* The block pad is the column's; the inline-start pad is now its own too, because the
     content region gives its left edge to the reel's surface. */
  padding: var(--layout-gutter) 0 var(--layout-gutter) var(--layout-gutter);
}

.fallback-lead {
  margin-block-end: var(--space-5);
  font-size: var(--type-small);
  color: var(--color-quiet);
}

.fallback-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.fallback-project {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fallback-year {
  font-size: var(--type-year);
  letter-spacing: var(--type-tracking-button);
  color: var(--color-quiet);
}

.fallback-description {
  max-inline-size: var(--layout-content-longest);
  font-size: var(--type-small);
}

/* ── the photographs, in flow ───────────────────────────────────────────────
   Each one reserves its space from its own declared dimensions, so the column
   does not shift as the images arrive. */

.photographs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-block-start: var(--space-3);
}

.photograph {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.photograph-image {
  inline-size: 100%;
}

.photograph-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--type-small);
}

.photograph-position {
  color: var(--color-quiet);
}

/* ── the enhancement switch ─────────────────────────────────────────────────
   The reel is painted only once a drawing surface is actually up, which is the
   flag the context module sets on the root. No flag — no script, a script that
   failed, a lost surface — means the column stands and the reel is not there. */

html:not([data-gl='true']) .reel {
  display: none;
}

/* Until the surface has decided, NEITHER presentation is painted: the column is a
   whole page of text and photographs, and showing it for the length of a bundle
   download reads as a page that loads twice. `no-scripting.css`, referenced from
   <noscript>, is what gives the column back to a document that cannot script. */
html:not([data-gl]) .fallback {
  display: none;
}

html[data-gl='true'] .fallback {
  display: none;
}

/*
 * The console: an application on a screen, inside the site's frame.
 *
 * The page's other sheets describe a sheet of paper with things printed on it. This one
 * describes a DEVICE: air, a case, and a rectangle that is the application's whole world.
 * Nothing outside this file knows the screen exists, and nothing inside it knows about the
 * page: the edge of the panel is where the site's vocabulary becomes the terminal's
 * (design §9).
 *
 * Three rules this file is built on, all of them from design.md §14:
 *
 * 1. ONE CELL. The mark, the title, the record, the menu and the status line are the same
 *    face at the same size. Hierarchy is arrangement — position, blank rows, reverse video,
 *    block art — and never a second type size. Every length here is therefore either a
 *    token, a `var()`, a percentage or a unitless zero: not one pixel measurement appears
 *    in this file, because a pixel is a decision the face has already made.
 *
 * 2. THE GRID IS WHOLE CELLS, AND THE APP MEASURES IT. `ch` is the advance of `0` and `lh`
 *    is the line box, so the stylesheet can lay the screen out in cells; the two things CSS
 *    cannot do — floor a box to a whole number of them, and choose a band — are the client's
 *    (`console.js`), which publishes `--cell-advance`, `--cell-line`, `--cell-columns`,
 *    `--cell-rows` and one `data-band` on the screen. CSS paints what the app measured.
 *
 * 3. THE PROGRAM PAINTS. No transition, no animation, no transform, no smooth scrolling and
 *    no blinking cursor exists anywhere inside the panel — see the comment below, where the
 *    repaint lives, and what it does not do (design §20: nothing flashes).
 */

/* ── the device: the air, the case, the screen ───────────────────────────────────────────
   The console is the container the device's own lengths are measured against (`--console-air`,
   `--console-bezel`, the cell's clamp), because an element cannot query itself: the air and
   the case are inside `.console`, and the cell is inside the screen.

   The case's thickness is the difference between the screen's box and the console's, and
   every measurement in this file — including the two numbers the floor prints — is taken
   with it in place; the sheet that paints it is the rule below, and the air it sits in is a
   margin outside it. */

.console {
  container-type: inline-size;
  display: flex;
  flex: 1 1 auto;
  min-block-size: 0;
  min-inline-size: 0;
}

/* ── the case: the glass's bezel, and NOTHING painted ────────────────────────────────────
   The case is BARE for now (Marco, 2026-11-05: *"we need to remove the whole code for the border
   for now"*). What is left is the GEOMETRY and nothing else: a transparent border as thick as the
   bezel, which makes the screen the border's content box — exact by construction, at any shape the
   region takes — and the console's own air outside it.

   ⚠️ Everything that DRAW the panel was removed with it: the nine-slice sheet (`static/case/`, its
   two densities, the generated `border-image-source` block below, the `build.js` that emitted it) and
   the WebGL surface that printed the same band (`src/client/gl/case.js`, `CASE`). The drawing itself
   survives in `prototype/case-board.py`, which is a throwaway generator and not part of the build:
   `python3 case-board.py case-board` redraws the sheet if the case comes back.

   The glass keeps its own one-pixel edge (`.console-screen` below), which is the one thing between
   the paper screen and the page's ground. */

.console-case {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-block-size: 0;
  min-inline-size: 0;
  /* The air is OUTSIDE the case, and it is a margin rather than a padding because
     `--console-air` is a `cqi` clamp measured against the CONSOLE's box — an element cannot
     query itself, so it cannot be this one's own padding. The bezel below is the root token
     (24 px); the container rule after this one is the only thing that changes it. */
  margin: var(--console-air);
  border: var(--console-bezel) solid var(--console-case);
}

/* …and the same thickness on the wide case: the switch is by CONTAINER width, because the case has
   two sizes and the console is what knows which one it is in. 1440x900 lands on 48; 1000x1000 and
   768x1024 on 24; a phone on 4 (the rule below). */
@container (min-width: 800px) {
  .console-case {
    --console-bezel: var(--console-bezel-wide);
  }
}

/* ── the narrow band: the phone's case is a seam ─────────────────────────────────────────
   On a phone the case is 4 px, not 24 (Marco, 2026-11-26: the folio was unreadable at 390 × 844 and
   every pixel of margin is a cell the reading could have had). The case is BARE — no sheet is
   painted, design §23 — so the 24 px bezel is not a drawing on a phone, it is 48 px of blank page
   holding a 326 px screen inside a 390 px box. Thinned to 4 px the screen is 366 px, and since the
   cell is the screen's own width over 40 (`--console-cell-size`), all of it comes back as type:
   measured 12.714 → 15.25 px. The air OUTSIDE the case is untouched, so the panel still sits in the
   page rather than bleeding off it, and the glass's frame (`--console-frame-edge` + `-gap`, 0.65 cell
   = 9.9 px at this cell) still has the 12 px of margin it needs.

   480 px is the boundary because it is the widest a phone is held at (430 is the widest current
   handset) and the narrowest a tablet is held at (768), so no device sits near it. */
@container (max-width: 480px) {
  .console-case {
    --console-bezel: var(--console-bezel-narrow);
  }
}

/* ── the glass's edge: one pixel, and no metal can ───────────────────────────────────────
   The reference is a BARE PANEL, not a module on a board (Marco, 2026-11-05: a 5.8" e-paper
   panel — white face, no screws, a ribbon and two mounts on its bottom edge). So the glass is
   not framed by a can: it is separated from the panel's face by a single pixel of ink, which is
   the whole of what a bonded panel shows you. It is a `box-shadow` spread so it costs the box
   nothing and the screen is still the case's content box exactly.

   The sheet paints the panel: its face, its 1 px edge and the 4 px chin along its bottom edge,
   which is the panel's own thickness seen edge-on. The band on that face is the glass's shadow,
   and it stops `CASE.gap` px short of the glass — the surface and the sheet both, design §26 —
   so the margin the glass sits in is clean paper rather than the darkest part of the band. */

.console-screen {
  /* The glass's edge, declared ONCE: a `box-shadow` list is one value, and the focus ring below is
     this same one-pixel ring with an inset rule in front of it — two spellings of it would drift. */
  --console-glass-ring: 0 0 0 var(--console-glass-edge) var(--color-ground);
  box-shadow: var(--console-glass-ring);
  /* …and the case's frame: a line `--console-frame-edge` thick, in the PAPER, because outside the case
     is the page's own ground and a line in the ink would be invisible on it. An `outline` is the whole
     of the mechanism — it is painted outside the border box, `outline-offset` is where, and it costs
     the box nothing, so the screen is still the case's content box and no measurement of the console
     moves.

     ⚠️ The offset is counted from the GLASS: the rule stands `--console-frame-gap` off the screen, and
     whatever is left of the bezel is the air around it. It is a frame for the glass, not the panel's
     boundary. */
  outline: var(--console-frame-edge) solid var(--color-paper);
  outline-offset: var(--console-frame-gap);
}

/* ── the screen: the field, and the app's world ──────────────────────────────────────────
   The site's two colours the other way round, as TWO NEW NAMES. Note what is NOT written
   here: `--color-ground: var(--color-paper)`. A pair of names that swap each other's values
   on one element is a cycle — both sides become invalid at computed-value time and the panel
   paints nothing at all, i.e. a transparent screen over the page's dark ground: black type
   on black. The pair is the only inversion, and everything inside the screen is written once
   in terms of it, so the whole screen flips as one thing.

   `container-type: size` is what makes the screen's rectangle the app's whole world: contents
   cannot grow it, so the document never scrolls on the console's behalf and the pane is the
   only thing that does. It is released to `inline-size` in `no-scripting.css`, where the
   record IS the document and the panel has to hug it. */

.console-screen {
  --console-field: var(--color-paper);
  --console-ink: var(--color-ground);
  --console-quiet: color-mix(in srgb, var(--console-ink) var(--console-quiet-share), var(--console-field));

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-inline-size: 0;
  min-block-size: 0;
  overflow: hidden;
  container-type: size;
  background-color: var(--console-field);
  color: var(--console-ink);
}

/* ── the grid: a whole number of cells, centred ─────────────────────────────────────────
   The remainder of the screen's box is the panel's own margin inside the laminate — it is
   NOT distributed among the lines, so every line's box begins and ends on a cell boundary at
   both ends of the screen, and a glyph is never cut. Before the client has measured (and in
   a document with no script) the two lengths below are invalid and fall back to `auto`, so
   the first paint is a readable console that the measurement then snaps to the grid.

   TWO rows: the panes take everything and the bar takes its one line (design §18). There is
   no third row for a header and no fourth for a rule. */

.console-grid {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  /* The grid sits on the canvas's BOTTOM edge (Marco, 2026-11-05): the screen centres its only
     child, and centring a box of whole rows leaves the leftover above and below it — so the bar's
     band floated a few pixels off the bottom and the case's dark showed under it. `align-self` on
     the grid alone and not `align-items` on the screen, because the floor's notice is the screen's
     other child and it must stay centred. The leftover row now sits above the document, where a
     margin reads as air rather than as a gap under the bar. */
  align-self: end;
  inline-size: calc(var(--cell-columns) * var(--cell-advance));
  block-size: calc(var(--cell-rows) * var(--cell-line));
  /* the bar bleeds past this box on purpose: the SCREEN is what clips it, flush with the glass */
  overflow: visible;
  /* The air ABOVE the bar (Marco, 2026-11-05): one line of paper between the document and the band —
     same strip of paper the grid has above itself. HALF a line, because the strip above the grid is
     the screen's leftover — a remainder smaller than a line whose average is half of one — so half a
     line is the air that matches it; a whole line read as twice as much (Marco: *"2x of the space…
     on top"*). It is a row gap and not the bar's padding because it belongs to the grid, and the
     client measures the pane (`viewRows()`) instead of assuming it, so the page keys follow. */
  row-gap: calc(var(--console-line) * 0.5);
  font-family: var(--type-mono);
  font-size: var(--console-cell-size);
  line-height: var(--console-line-ratio);
}

/* ── the panes: the inset, and the pane ─────────────────────────────────────────────────
   The pane is the only scrolling box on the page, and the screen's ONLY region beside the bar:
   the files are a panel behind one key now (design §21), so there is no second column and no row
   above the document to flow around.

   The inset lives here rather than on the pane because it belongs to the ROW: at 80 columns the
   arithmetic is `2 + 76 + 2 = 80`, so the document's cells are the pane's content box and the
   client measures exactly that. */

.console-panes {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-block-size: 0;
  padding-inline: var(--console-inset);
}

/* ── the pane: the only scrolling box on the page ───────────────────────────────────────
   `overscroll-behavior` keeps a wheel at the document's end from walking out into the page,
   and the scrollbar is not painted: a terminal's viewport has no chrome of its own. Nothing
   here is smooth — a pager moves the view and stops.

   ⚠️ `scrollbar-gutter: stable` is the measure's guarantee and not a nicety: a platform
   scrollbar that appears only when it is needed would take its width out of this box the
   moment a long file is opened, so the measure would change WHILE READING, the wrap would
   disagree with itself and the live frame would differ from the committed one (design §3). The
   gutter is reserved, and the client measures this box's content edge rather than the screen's. */

.console-pane {
  min-block-size: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: none;
  scroll-behavior: auto;
}

.console-pane::-webkit-scrollbar {
  display: none;
}

/* ── one file: blocks, and the rows they carry ─────────────────────────────────────────
   The renderer wrapped the text, so a printed row is a LINE of the block and not a paragraph
   of its own. `white-space: pre` on the line is what keeps the wrap the renderer chose (and
   the indent a list or a quote carries) instead of letting the browser wrap it again at a
   different column — the one thing a measured grid cannot allow.

   `data-air` is the block's blank rows, from the renderer's own rule: level is air and never
   size, so a heading's rank is the space around it. Two lengths, both the cell's.

   A `p` and an `h2` print the same: `font: inherit` takes the user agent's size and margin
   away, and the three classes below are the only marks a run can carry. */

.folio-file {
  display: block;
}

.folio-file[hidden] {
  display: none;
}

/* The document is printed, not typeset: a block inherits the screen's face and size and gives
   back every device the page's own prose rules would put between its cells. `font` is the
   shorthand and it does NOT reset `letter-spacing`, which the page sets on its headings — so a
   heading's rows were 0.98 cells a character wide and the grid moved under them the moment a
   heading was on a row. Measured: `photography` printed 10.818 cells for 11 at 1440 before
   this line, 11.000 after. */
.folio-block {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
}

.folio-block[data-air='1'] {
  margin-block-start: var(--console-line);
}

.folio-block[data-air='2'] {
  margin-block-start: calc(var(--console-line) * 2);
}

.folio-line {
  display: block;
  white-space: pre;
}

/* Two attributes and one quiet voice: markdown's two emphases, and the document's only dim.
   Inside the rendered document bold and underline are allowed — the requirement's one scoped
   exception — and nothing here leaks outside it. */
.folio-bold {
  font-weight: 700;
}

.folio-underline {
  text-decoration: underline;
}

.folio-dim {
  color: var(--console-quiet);
}

/* ── a panel: the files, the keys, or the outline, in the pane's place ──────────────────
   Not an overlay and not a screen. `f`, `h` and `t` replace the pane's CONTENT (design §8, §16,
   §21), which is what makes two invariants structural instead of promised: nothing a panel draws
   can reach the bar, because a panel is a child of the box that scrolls; and a panel taller than
   the pane scrolls in the pane, because the pane is the only box with a scroll range on the page.

   Its rows are printed rows — one `.folio-line` each, the same element a document's rows use — so
   a document and a panel share one measurement, one wrapper and one grid.

   `align-items: flex-start` is the cursor's: reverse video covers the ENTRY's cells rather than
   the pane's whole width, exactly as the bar's plates cover their own. A row is a flex item sized
   by its content, so the band stops where the row stops. */

.folio-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.folio-panel[hidden] {
  display: none;
}

/* ── a row of the files panel: a printed row that is also a control ──────────────────────
   The declaration's rows are `button type="button" tabindex="-1"` (design §21): a press opens
   the file under it, and none of them is a stop of its own — the screen is the document's one
   stop, and `f` is the way in. `tabindex="-1"` still lets a press focus it, so the focus ring is
   the same hairline the list's entries carried.

   The button's own chrome is the user agent's, and the screen has one vocabulary: no border, no
   padding, no margin, the face inherited. The row is `nowrap` — a filename is never wrapped or
   truncated (a list is not prose). */

.folio-row {
  /* A row of the files panel: ONE line of the screen, and a target a finger can find. The type sits on
     its own line of the grid (the row's block is the line), and the row's block grows to a touch's
     height around it — a list of five files, so nothing is lost by it (Marco, 2026-11-06: the panel's
     rows were 17px tall on a phone). The reverse band of the cursor grows with it, which is right: the
     cursor is a band, and a band a finger cannot see is not a cursor. */
  display: flex;
  align-items: center;
  min-block-size: var(--folio-row-block);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  white-space: nowrap;
}

/* A row of the outline: a heading you can press, and it keeps the row's own height. The files panel's
   rows grow to a touch's block because a file is chosen by finger and there are few of them; a
   heading is one line of the document's own, and a list of headings stretched to 44px each would be
   a panel that scrolls where the document did not (Marco, 2026-11-29). Everything else is the same
   reset, so a press target never becomes a second kind of type. */
.folio-heading {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  white-space: nowrap;
  inline-size: 100%;
}

/* The cursor. It is the screen's only reverse while a panel is open, and the band is the site's own
   two ink tokens — the same declaration the bar's plates carry, because it is the same reverse.
   A terminal cannot print dim and reverse at the same time, so a cursor's row carries reverse and
   no other mark (design §8, §11, §21). */
.folio-reverse {
  background-color: var(--color-ground);
  color: var(--color-paper);
}

/* ── the bar: glow's, and always the last row ─────────────────────────────────────────
   Five parts, left to right (Marco, 2026-11-05, design §19 and §22): the program's name in a
   PLATE, the open file's NAME in a plate, the key that opens the files panel in a plate beside it,
   how far through the document the view is, and the help key with the word for what it gives in a
   plate at the far end. It is glow's pager bar in this console's one pair of inks: glow paints the
   band with a background and its name on a coloured plate, and here the band is the console's ink
   and a plate is the console's FIELD — a `normal` cell inside a reversed row, which is ink on the
   field and no third colour. The percentage takes the free space, so it and the help plate sit at
   the right end, where a terminal puts its own report.

   It is the last row of the grid, so nothing can scroll it away — not a panel, not a document —
   and it is `nowrap`: the widest arrangement is
   2 + 7 + 1 + 9 + 3 + 4 + 3 + 8 + 2 = 39 cells — a 7-letter file name (` hobbies `), the two
   insets, six plates and the bar's one gap — and 39 is exactly what the narrowest band above the
   floor holds (design §22). One cell more and the bar would be a bar that clips its own last
   plate. */

.console-status {
  display: flex;
  align-items: stretch;
  /* The air is in the PLATES and not in a gap: a plate pads itself one cell each side, so the
     program's plate and the file's are separated by `BAR.blank`'s single cell, and the file's name
     sits hard against the key beside it — two plates' padding is the space between `readme` and
     `f`, which is why the frame writes them with no blank at all (design §22). */
  gap: 0;
  /* ⚠️ The bar spans the CANVAS, not the grid (Marco, 2026-11-05). A grid of whole cells is centred,
     so it is up to one advance narrower than the screen and the bar's band stopped short of both
     edges by half of that leftover. So the bar bleeds one whole advance — more than any leftover can
     be — and the screen's own `overflow: hidden` cuts it flush with the glass. The bleed is handed
     straight back to the padding, so the five plates stay on the grid's columns and the bar's type
     does not move by a pixel. */
  margin: 0 calc(var(--cell-advance) / -2);
  padding-inline: calc(var(--console-inset) + var(--cell-advance) / 2);
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--console-ink);
  color: var(--console-field);
}

/* The air after the program's plate, in cells: `BAR.blank`. One cell here plus the plates' own
   padding prints as the two spaces the frame writes, so the program and its file read as one pair
   at the left and the report at the right stays the screen's. */
.console-status-name {
  margin-inline-end: var(--cell-advance);
}

/* The bar's one CONTROL (design §22): the open file's name is a button, so a pointer can open the
   files panel where a keyboard presses `f`. Its chrome is the user agent's and the screen has one
   vocabulary, so everything a button brings is taken away — except what makes it a button, which is
   that it can be pressed. The plate's own pair is painted by the rule below, which is more specific
   than this one and keeps the cell of padding the frame writes as spaces. */
.console-status button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

/* A plate: the band's pair the other way round, one cell of padding each side — the same cells the
   frame writes as `normal` (`plateOf()`), so the artefact and the page agree about its width. */
.console-status [data-plate] {
  padding-inline: var(--cell-advance);
  background-color: var(--console-field);
  color: var(--console-ink);
}

/* The percentage is the right end's first part: the free space goes before it, so the left group
   stays hard against the inset at the left (design §19). The help plate follows it across the bar's
   one gap, which is the segment gap the frame writes (design §22). */
.console-status-position {
  margin-inline-start: auto;
}

/* ── a thumb on a one-row bar ────────────────────────────────────────────────────────
   The status bar is ONE row of the grid (~17px on the phone) and it may not grow: the row is reading.
   So the plates that are controls — the file's name, the percentage, the help — keep their row and
   grow an invisible target around it to `--folio-target`, which is a thumb's height on the phone and
   0 above the boundary. The programme's own name is not a control and gets none. */
.console-status-file {
  position: relative;
}

/* …and it is the bar's ONE control: the programme's name, the file's key and the percentage are report,
   not targets, so only the name grows a thumb's rectangle around its row. ⚠️ Vertically only: an inline
   overhang widens the plate's own scrollable box, and `the-grid-is-whole-cells` reads that as a clipped
   glyph (8px of it, on a phone). The name is already ~50px wide. */
.console-status-file::after {
  content: '';
  position: absolute;
  inset-block: calc((var(--folio-target) - 100%) / -2);
  inset-inline: 0;
}

.console-status-hint {
  margin-inline-start: var(--console-segment-gap);
}

/* ── the notice: the floor's whole screen, and nothing above it ──────────────────────
   Above the floor it is not painted at all — `display: none`, not a zero-size box and not a
   visually-hidden one, so nothing on a working screen carries a sentence about a screen that is
   too small. (This rule was deleted by accident when the bar's block was rewritten, and
   `the-floor-exists` caught it: at 360 × 640 the notice was being painted at band "standard".) */

.console-notice {
  display: none;
  margin: 0;
  padding: var(--console-inset);
  color: var(--console-quiet);
}

/* ── the floor: the panel stays, the notice says which axis is short ────────────────
   There is no `[data-need]` rule here, and that is the point: the sentence is CHOSEN by the
   client from the two numbers it measured, not painted by hiding one of three. A hidden
   sentence is still in the document and still a text — anything that reads the DOM reads it —
   and the requirement is that the notice does not name an axis the screen already satisfies
   (`terminal.md` §8 defect 8). One node, one sentence, and `data-need` says which one it is. */
.console-screen[data-band='floor'] .console-panes,
.console-screen[data-band='floor'] .console-status {
  display: none;
}

.console-screen[data-band='floor'] .console-notice {
  display: grid;
  grid-row: 1 / -1;
  place-content: center;
  gap: var(--console-beat);
}

/* ── one ink means one focus indicator ────────────────────────────────────────────────
   The user agent's ring is a two-tone blue, which is the only foreign colour a one-ink page
   may not carry. The screen is the document's single stop in the tab order, so this is the
   ring a keyboard visitor sees: one hairline in the console's ink, on paper.

   ⚠️ On the SCREEN the ring is a `box-shadow`, not an `outline` — because the screen's `outline`
   is already the case's frame (above). One property with two jobs: the job written later wins,
   and the frame lost. A keyboard-focused screen wore a hairline at the glass's edge and no border
   at all, so the terminal's border disappeared the moment `Enter` gave the screen its focus back
   (Marco, 2026-11-06: *"when i use the enter to change file the border around terminal is gone"*).
   The shadow is painted INSIDE the glass, on the paper, in the ink — the frame stays outside it,
   where it was, and a focused screen is a screen whose edge has thickened by one pixel.

   ⚠️ And the PANE carries no ring at all: it is not a stop of its own (`tabindex="-1"`), it takes
   the keyboard from the key that opened the panel, and that is a keyboard focus — so `:focus-visible`
   matched it and the page's own ring (2px of the site's ink, four pixels off the box) was painted
   over the paper, around the document, as a second box in a vocabulary of one (Marco, same day:
   *"also on the display on enter i see a box selection"*). Inside a panel the cursor's band is what
   says where you are. */

.console-screen:focus-visible {
  box-shadow: inset 0 0 0 var(--stroke-hair) var(--console-ink), var(--console-glass-ring);
}

.folio-row:focus-visible {
  outline: var(--stroke-hair) solid var(--console-ink);
  outline-offset: 0;
}

.console-pane:focus-visible {
  outline: none;
}

/* ── the repaint ──────────────────────────────────────────────────────────────────────
   A console program writes a frame into a buffer; it does not transition, ease or animate.
   That is why NOTHING inside the screen may carry a `transition`, an `animation`, a
   `@keyframes`, a `transform`, a smooth scroll or a blinking cursor: the only thing that
   ever happens to the screen's content is that one frame is replaced by another, and anything
   that eased between two frames would be the screen lying about being a screen. A section
   change therefore repaints everything at once — the record, the cursor, the menu and the
   status line are one paint, because not one of them has a duration of its own — and the
   frame is REPLACED, never flashed: there is no inverted frame, no swap of the pair and no
   e-ink blink on the way from one frame to the next (design §20). The device's e-ink metaphor
   is carried by the case and the paper, not by inverting the pair. The cursor is steady: a
   blinking block would be the only thing on the page moving on its own. */

/* ── the measuring probe ────────────────────────────────────────────────────────────
   The span the client sets `0` in, to read the cell's advance from the very face the screen
   is printed in. It is out of the flow and unpainted, it exists for one synchronous read, and
   it is removed in the same task — nothing of the measurement is ever left in the screen. */

.console-probe {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  visibility: hidden;
  white-space: pre;
}

/*
 * The not-found document: a numeral drawn in characters, and one line under it.
 *
 * There is no picture and nothing to paint: the `pre` is the mark, the stylesheet sizes it, and
 * the group sits in the middle of the region. One token decides the mark's size
 * (`--type-not-found`), so a phone, a tablet and a desktop are one rule — the block is as wide
 * as it can be at 50% of the region and never taller than two thirds of it.
 */

.not-found {
  /* `cqi`/`cqh` in the type token are this box's own, which is why the container is declared
     here: the mark is a share of the region, never of the viewport. */
  container-type: size;
  display: grid;
  place-items: center;
  flex: 1;
  min-block-size: 0;
}

/* The mark and its line are ONE group: the sentence belongs to the number, so it is directly
   under it, and the whole thing is what is centred. */
.not-found-mark {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  max-inline-size: 100%;
}

.not-found-number {
  /* The screen's own face and its own leading: a `pre` set in a proportional font is not a
     picture of a terminal, it is a paragraph that happens to have spaces in it. */
  margin: 0;
  font-family: var(--type-mono);
  font-size: var(--type-not-found);
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-paper);
  /* A row is seventeen columns and the mark may not wrap into a paragraph. */
  white-space: pre;
}

.not-found-line {
  color: var(--color-paper);
  font-family: var(--type-body);
  font-size: var(--type-small);
  font-weight: 400;
  letter-spacing: normal;
}

.not-found-back {
  font-size: var(--type-small);
}

.not-found-link {
  /* The site's link, not a blue one: the brackets are the mark, the word is between them, and
     there is no underline anywhere on the site. Fitted to its own word, so the brackets print at
     the word's edges rather than at the ends of a stretched box. */
  display: inline-flex;
  align-items: baseline;
  gap: var(--mark-bracket-gap);
  inline-size: fit-content;
  color: var(--color-quiet);
  font-family: var(--type-body);
  font-size: var(--type-small);
}

/* The brackets are the mark's, so their rules are the mark's (`mark.css`): hidden until the pointer
   arrives, then the jaws' try. Nothing is overridden here — this link is the mark's fourth host. */
.not-found-link:hover,
.not-found-link:focus-visible {
  color: var(--color-paper);
}
