/*
 * Nordco site: "The printed annual" (design-taste-frontend, seed 1269767691; see DESIGN.md). Sand paper and one
 * cobalt do everything, like a two-colour print job: text, drawings and solid blocks are all the same blue. One
 * face (Switzer; Onest for Russian, IBM Plex Sans Arabic for Arabic), five sizes, one pair of outer margins, a
 * column line at 42% of the width. No rules, gradients, shadows or labels: tone steps and whole fields of colour
 * separate things. Plain CSS with logical properties, so the Arabic pages mirror the layout.
 */
:root {
    --bg: #e6dbc7;
    --surface: #ddd0b9;
    --frame: #d3c4a8;
    --sheet: #ffffff;
    --sheet-edge: #e7e1d4;
    --ink: #062b8a;
    --ink-deep: #041f66;
    --tone-2: #1d43a3;
    --muted: #3a5aa8;

    --face: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
    --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
    --step-head: clamp(2.5rem, 1.5rem + 4.2vw, 6.5rem);
    --step-display: clamp(96px, 12.5vw, 190px);
    --track: -0.04em;

    --m: clamp(16px, 2vw, 32px);
    --gap: 8px;
    --axis: 42vw;
    --sec: clamp(96px, 11vw, 200px);
    --bar-h: 60px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
:root:lang(ru) { --face: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif; }
/* Arabic letters join: no negative tracking, a little more leading for the dots and marks. */
:root:lang(ar) { --face: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; --track: 0; }
:lang(ar) * { letter-spacing: 0 !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.site-body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--face);
    font-size: var(--step-body);
    line-height: 1.5;
    letter-spacing: -0.005em;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}
:where(.site-body) a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
:where(.site-body) a:hover { text-underline-offset: .32em; }
.site-body :focus-visible { outline: 3px solid var(--muted); outline-offset: 3px; }
.site-body ::selection { background: var(--ink); color: var(--bg); }
:where(.site-body) img, :where(.site-body) svg { display: block; max-width: 100%; }
:where(.site-body) :is(h1, h2, h3, p, figure, ol, ul, dl, dd) { margin: 0; }
:where(.site-body) :is(h1, h2, h3) { font-size: inherit; font-weight: inherit; }
:where(.site-body) :is(ol, ul) { list-style: none; padding: 0; }
:where(.site-body) button { font: inherit; }
:where(.site-body) table { border-collapse: collapse; }
[hidden] { display: none !important; }
.skip { position: absolute; inset-inline-start: var(--m); top: var(--m); background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 50; transform: translateY(-200%); }
.skip:focus { transform: none; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.num { font-variant-numeric: tabular-nums; }

.h-head, .h-page {
    font-size: var(--step-head);
    font-weight: 600;
    letter-spacing: var(--track);
    line-height: .95;
}
:lang(ar) :is(.h-head, .h-page, .board__title, .foot__name) { line-height: 1.15; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--ink); color: var(--bg) !important;
    padding: 14px 22px; border: 0; border-radius: 0;
    font: 500 var(--step-body)/1.2 var(--face); text-decoration: none;
    cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--ink-deep); }
.btn:active { transform: translateY(1px); }

/* ---------- tiles and the top row ---------- */
.tile { border-radius: 0; }
.tile--paper { background: var(--surface); color: var(--ink); }
.tile--ink { background: var(--ink); color: var(--bg); }
.tile--accent { background: var(--tone-2); color: var(--bg); }
.tile--frame { background: var(--frame); }

.bar { padding: var(--m) var(--m) 0; position: relative; z-index: 10; }
.bar__row { display: grid; grid-template-columns: var(--bar-h) 1fr auto; gap: var(--gap); height: var(--bar-h); }
.bar__logo { display: grid; place-items: center; }
.lockup { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.mark { display: block; width: 30px; height: 30px; }
.mark svg { width: 100%; height: 100%; }
.bar .wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bar__links { display: flex; align-items: center; justify-content: space-between; padding-block: 0; padding-inline: calc(50vw - var(--m) - var(--bar-h) - var(--gap)) 20px; }
.bar__nav { display: flex; gap: 28px; }
.bar__nav a, .lang-switch a, .lang__list a { text-decoration: none; }
.bar__nav a:hover, .lang-switch a:hover, .lang__list a:hover { text-decoration: underline; }
.bar__nav a[aria-current="page"], .lang-switch a[aria-current="true"], .lang__list a[aria-current="true"] { text-decoration: underline; }
.bar__action { display: flex; align-items: center; padding: 0 24px; font-weight: 500; text-decoration: none; transition: background .15s; }
.bar__action:hover { background: var(--ink-deep); }
.bar__menu { display: none; width: var(--bar-h); border: 0; color: var(--ink); cursor: pointer; place-items: center; }
.bar__menu[aria-expanded="true"] .icon__open, .bar__menu[aria-expanded="false"] .icon__close { display: none; }
.cta-short { display: none; }

/* The language choice: the current code on the paper tile, the eight languages on an ink sheet under it. */
.lang { position: relative; }
.lang__current { list-style: none; cursor: pointer; font-weight: 500; padding: 10px 4px; }
.lang__current::-webkit-details-marker { display: none; }
.lang__current::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.lang[open] .lang__current::after { transform: translateY(1px) rotate(225deg); }
.lang__list { position: absolute; inset-inline-end: -20px; top: calc(100% + 9px); background: var(--ink); color: var(--bg); padding: 16px 24px; display: grid; gap: 10px; min-width: 200px; }

.mnav { margin: var(--gap) var(--m) 0; background: var(--surface); padding: 20px; display: grid; gap: 14px; font-size: var(--step-lead); }
.mnav a { text-decoration: none; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.lang-switch--menu { font-size: var(--step-body); padding-top: 8px; }
.lang-switch--menu a { padding: 6px 0; }

/* ---------- 1. the board ---------- */
.board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "name name paper paper" "screen screen say1 say2";
    gap: var(--gap);
    margin: var(--gap) var(--m) 0;
    height: calc(100svh - var(--bar-h) - var(--m) - var(--gap) - var(--m));
    min-height: 600px;
}
.board__name { grid-area: name; display: flex; align-items: flex-end; padding: 24px; overflow: hidden; }
.board__title { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.04em; line-height: .82; }
.board__pic { position: relative; overflow: hidden; }
.board__pic--paper { grid-area: paper; }
.board__pic--screen { grid-area: screen; padding-block-start: 28px; padding-inline-start: 28px; }
.board__pic--screen .ui { height: 100%; }
.board__say { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px; }
.board__say--a { grid-area: say1; }
.board__say--b { grid-area: say2; overflow: hidden; --pad: 24px; }
/* The three.js modules (blocks.js) fill the box below the text; until they draw, the box is plain blue. */
.blocks { display: block; flex: 1 1 0; min-height: 0; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)); opacity: 0; transition: opacity .8s var(--ease); }
.blocks.is-on { opacity: 1; }
.say { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.say__link { font-weight: 500; }

/* Found pictures, one treatment: printed in cobalt on the paper (greyscale, blacks to cobalt, whites stay). */
.board__pic--paper, .mosaic__pic, .contact-band__pic, .about__pic { background: var(--ink); }
.print { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); mix-blend-mode: screen; }
.board__pic--paper .print { object-position: 50% 18%; }

/* ---------- 2. the paper mosaic ---------- */
.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(max(240px, 17vw), auto));
    margin-top: var(--sec);
}
.mosaic__pic { overflow: hidden; }
/* The 1911 scan has a white paper border: cropped away. */
.mosaic__pic:first-child .print { transform: scale(1.14); }
.mosaic__pic:first-child { grid-column: 1; grid-row: 1 / 3; }
.mosaic__pic:nth-child(3) { grid-column: 4; grid-row: 1 / 3; }
.mosaic__tile { padding: 32px; color: var(--bg); }
.mosaic__tile--ink { grid-column: 2 / 4; grid-row: 1; background: var(--ink); display: flex; align-items: flex-end; }
.mosaic__tile--muted { grid-column: 2 / 4; grid-row: 2; background: var(--tone-2); }
.mosaic__text { font-size: var(--step-lead); line-height: 1.3; max-width: 40ch; }

/* ---------- the column line at 42% ---------- */
.axis { margin-inline-start: var(--axis); padding-inline-end: var(--m); }
.products .axis { margin-inline-start: max(var(--axis), var(--m)); }
.products .axis .h-head { margin-inline-start: calc(var(--m) - max(var(--axis), var(--m))); }
.axis__text { margin-top: 28px; max-width: 40ch; }

/* ---------- 3. the products as a departure board ---------- */
.products { padding-top: var(--sec); }
.rows { margin-top: 64px; background: var(--ink-deep); padding: 4px var(--m); display: grid; gap: 4px; }
.row { background: var(--ink); color: var(--bg); }
.row__band {
    display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; column-gap: 16px;
    height: 72px; padding: 0 16px; list-style: none; cursor: pointer; transition: background .15s;
}
.row__band::-webkit-details-marker { display: none; }
.row__band:hover { background: var(--tone-2); }
.row__name { grid-column: 1 / 3; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.row__fact { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__fact:nth-of-type(2) { grid-column: 3 / 6; }
.row__fact:nth-of-type(3) { grid-column: 6 / 9; }
.row__fact:nth-of-type(4) { grid-column: 9 / 12; }
.row__status { grid-column: 12; justify-self: end; padding: 6px 12px; font-weight: 500; white-space: nowrap; }
.row__status--live { background: var(--bg); color: var(--ink); }
.row__status--order { background: var(--muted); color: var(--bg); }
.row[open] { background: var(--bg); color: var(--ink); }
.row[open] .row__band:hover { background: var(--surface); }
.row[open] .row__status--live { background: var(--ink); color: var(--bg); }
.row__open { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; padding: 8px 16px 24px; min-height: 340px; }
.row__detail { grid-column: 1 / 5; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 8px; }
.row__replaces { font-weight: 600; }
.row__screen { grid-column: 6 / 13; }

/* ---------- 4. the process bar ---------- */
.process { padding: var(--sec) var(--m) 0; }
.bar-chart { display: flex; gap: 6px; height: max(180px, 22vh); margin: 64px 0 150px; }
.stage { position: relative; flex: var(--grow) 1 0; min-width: 12%; padding: 20px; color: var(--bg); }
.stage--1 { background: var(--ink-deep); }
.stage--2 { background: var(--ink); }
.stage--3 { background: var(--tone-2); }
.stage--4 { background: var(--muted); }
.stage__time { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; }
.stage__text { position: absolute; top: calc(100% + 18px); inset-inline-start: 0; width: min(22ch, 100%); min-width: 18ch; color: var(--ink); }

/* ---------- 5. text pages (About, 404) ---------- */
.text-page { padding: var(--sec) var(--m) 0; }
main > .text-page:last-child { padding-bottom: var(--sec); }
.page-head { padding-top: calc(var(--sec) * .8); }
.page-body { max-width: 40ch; margin-top: 28px; }
.page-head + .text-page .page-body { margin-top: 0; }
.page-body > * + * { margin-top: 1em; }
.page-body h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 1.6em; }
.page-body .btn { margin-top: 1em; }
.about { position: relative; }
.about__lead { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }
/* The postcard hangs in the margin before the column line; on phones it heads the text. */
.about__pic { position: absolute; inset-inline-start: var(--m); top: var(--sec); width: min(calc(var(--axis) - var(--m) * 3), 420px); aspect-ratio: 600 / 383; overflow: hidden; }
.lang-list { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: var(--step-lead); }

/* ---------- 6. promises that fold into spines ---------- */
.spines { padding: var(--sec) var(--m) 0; }
.spines__deck { display: grid; gap: 12px; margin-top: 48px; }
.card { color: var(--bg); position: relative; }
.card--1 { background: var(--ink); }
.card--2 { background: var(--tone-2); }
.card--3 { background: var(--muted); }
.card__spine { display: none; }
.card__body { padding: 32px; display: grid; gap: 12px; min-height: 260px; align-content: start; }
.card__title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.card__fact { margin-top: auto; align-self: end; padding-top: 24px; }
.spines__count { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Pinned (set by the script on wide screens): a stage held for two screens, the cards sliding in from the side. */
.spines.is-pinned { height: 260svh; padding-top: 0; margin-top: var(--sec); }
.spines.is-pinned .spines__stage { position: sticky; top: 0; height: 100svh; padding-top: 120px; overflow: hidden; }
.spines.is-pinned .spines__deck { display: block; position: relative; height: 360px; }
.spines.is-pinned .card { position: absolute; top: 0; height: 360px; width: 620px; transition: inset-inline-start .55s var(--ease), width .55s var(--ease), transform .55s var(--ease); overflow: hidden; }
.spines.is-pinned .card[data-state="spine"] { width: 120px; }
.spines.is-pinned .card[data-state="spine"] .card__body { visibility: hidden; }
.spines.is-pinned .card[data-state="spine"] .card__spine {
    display: block; position: absolute; inset: 0; z-index: 1; background: transparent; border: 0; cursor: pointer;
    color: inherit; font: 600 var(--step-body)/1.1 var(--face); text-align: start; padding: 32px 0 0; padding-inline-start: 40px;
    writing-mode: vertical-rl; white-space: nowrap; overflow: hidden;
}
.spines.is-pinned .card[data-state="next"] { transform: translateX(110vw); }
[dir="rtl"] .spines.is-pinned .card[data-state="next"] { transform: translateX(-110vw); }
.spines.is-pinned .card__body { width: 620px; height: 100%; }

/* ---------- 7. the contact band ---------- */
.contact-band { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; align-items: start; padding: 160px var(--m) 120px; scroll-margin-top: 40px; }
.contact-band__say { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.contact-band__pic { grid-column: 7 / 10; aspect-ratio: 1; overflow: hidden; max-width: 220px; }
.contact-band__ways { grid-column: 10 / 13; display: grid; gap: 12px; justify-items: start; min-width: 0; overflow-wrap: anywhere; }
.contact-band__question { font-size: var(--step-body); font-weight: 500; margin-bottom: 8px; }
.contact-band__where { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }

/* ---------- the Contact page: the blue panel and the form, then the two offices ---------- */
.reach {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--gap);
    margin: var(--gap) var(--m) 0;
    min-height: calc(100svh - var(--bar-h) - var(--m) - var(--gap) - var(--m));
}
.reach__panel { display: flex; flex-direction: column; gap: 20px; padding: 24px; overflow: hidden; --pad: 24px; }
.reach__panel .blocks { min-height: 260px; }
.reach__title { font-size: clamp(2.5rem, 1.2rem + 3.6vw, 5rem); font-weight: 600; letter-spacing: var(--track); line-height: .95; }
:lang(ar) .reach__title { line-height: 1.2; }
.reach__sheet { padding: clamp(24px, 3vw, 48px); }
.reach__head { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 24px; }
.form { display: grid; gap: 22px; max-width: 720px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-weight: 500; padding: 0; }
.field__input {
    width: 100%; padding: 13px 16px; background: var(--bg); color: var(--ink);
    border: 2px solid transparent; border-radius: 0; font: inherit; line-height: 1.4;
    transition: border-color .15s, background .15s;
}
textarea.field__input { resize: vertical; min-height: 150px; }
.field__input:hover { background: #ebe2d1; }
.field__input:focus { outline: none; border-color: var(--ink); background: var(--sheet); }
.field__input[aria-invalid="true"] { border-color: var(--ink-deep); background: var(--sheet); }
.field__error { font-size: var(--step-small); font-weight: 600; color: var(--ink-deep); }
.field__error::before { content: "! "; }
.topics { display: flex; flex-wrap: wrap; gap: var(--gap); }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span { display: block; padding: 12px 16px; min-height: 48px; background: var(--bg); transition: background .15s, color .15s, transform .15s; }
.topic:hover span { background: #ebe2d1; }
.topic:active span { transform: translateY(1px); }
.topic input:checked + span { background: var(--ink); color: var(--bg); }
.topic input:focus-visible + span { outline: 3px solid var(--muted); outline-offset: 3px; }
.field--topics:has([aria-invalid="true"]) .topic span { background: var(--sheet); }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form__note { max-width: 40ch; line-height: 1.4; }
.form__done { background: var(--ink); color: var(--bg); padding: 16px 20px; font-weight: 500; }
.form__fail { background: var(--sheet); color: var(--ink-deep); border-inline-start: 4px solid var(--ink-deep); padding: 16px 20px; font-weight: 500; line-height: 1.4; }
.form__fail a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.form__trap { position: absolute; inset-inline-start: -10000px; width: 0; height: 0; overflow: hidden; }
.form .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

.places { display: grid; grid-template-columns: 5fr 3.5fr 3.5fr; grid-template-rows: repeat(2, clamp(200px, 18vw, 300px)); gap: var(--gap); margin: var(--gap) var(--m) var(--sec); }
.places__say { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px; }
.places__ways { display: grid; gap: 6px; justify-items: start; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.places__ways a { color: var(--bg); }
.places__pic { position: relative; overflow: hidden; background: var(--ink); }
.places__pic:nth-of-type(3) .print { object-position: 50% 30%; }
.places__time { position: absolute; inset-block-end: 0; inset-inline-start: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; font-weight: 500; }

/* ---------- footer: the name first, the places under it ---------- */
.foot { background: var(--ink); color: var(--bg); padding: 40px var(--m) var(--m); min-height: 80svh; display: flex; flex-direction: column; }
.foot__name { font-size: min(var(--step-display), 22vw); font-weight: 600; letter-spacing: -0.04em; line-height: .82; }
.foot__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; margin-top: 72px; }
.foot__places { grid-column: 1 / 6; display: grid; gap: 6px; justify-items: start; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; }
.foot__tag { font-size: var(--step-body); font-weight: 400; max-width: 40ch; margin-bottom: 10px; }
.foot__links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foot__col { display: grid; gap: 6px; align-content: start; justify-items: start; }
.foot__head { font-size: var(--step-body); font-weight: 600; margin-bottom: 4px; }
.foot__col a { text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
.foot__legal { margin-top: auto; padding-top: 96px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--step-small); }
.foot__credits { flex: 1 1 100%; order: 3; }

/* ---------- product screens (data-ui): the app style "Framed sheet" ---------- */
.ui { background: var(--frame); color: var(--ink); padding: 0 8px 8px; font-size: var(--step-small); line-height: 1.4; letter-spacing: 0; overflow: hidden; }
.ui__bar { height: 44px; display: flex; align-items: center; gap: 18px; padding: 0 10px; }
.ui__bar b { font-weight: 600; }
.ui__bar span { padding: 11px 0 9px; border-bottom: 2px solid var(--ink); color: var(--ink); }
.ui__sheet { background: var(--sheet); border: 1px solid var(--sheet-edge); /* taste-skill-ignore: the app style's sheet edge (data-ui) */ border-radius: 16px; padding: 20px 24px; height: calc(100% - 44px); overflow: hidden; }
.ui__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ui__head b { font-size: var(--step-body); font-weight: 600; }
.ui__pill { background: #e8edf9; color: var(--ink); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ui__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin-bottom: 18px; }
.ui__fields dt { color: var(--muted); }
.ui__fields dd { margin: 2px 0 0; font-weight: 500; }
.ui__total dd { font-weight: 600; }
.ui__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.ui__kpis span { display: block; color: var(--muted); }
.ui__kpis b { font-size: var(--step-lead); font-weight: 500; }
.ui__table { width: 100%; }
.ui__table td { padding-block: 10px; padding-inline: 0 8px; border-top: 1px solid #efeae0; white-space: nowrap; }
.ui__table td.num { text-align: end; }
.ui__table tr.is-on td { background: #eef2fc; }
.ui__note { margin-top: 12px; color: var(--muted); }

/* ---------- motion: entrances, the shutter, one drifting picture ---------- */
.js-motion [data-rise] { opacity: 0; transform: translateY(24px); }
.js-motion [data-rise].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js-motion .shutter .print { clip-path: inset(0 0 0 100%); transform: scale(1.12); }
[dir="rtl"].js-motion .shutter .print { clip-path: inset(0 100% 0 0); }
.js-motion .shutter.is-open .print { clip-path: inset(0); transform: scale(1); transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease); }
.motion-done [data-rise] { opacity: 1; transform: none; }
.drift { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(var(--from, 1)); } to { transform: scale(calc(var(--from, 1) + .08)) translate(-1.5%, -1%); } }
.mosaic__pic:first-child .drift { --from: 1.14; }

/* ---------- 1050px ---------- */
@media (max-width: 1050px) {
    :root { --axis: 30vw; }
    .bar__links { padding-inline-start: calc(var(--axis) - var(--m) - var(--bar-h) - var(--gap)); }
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto 56vw auto; }
    .mosaic__tile--ink { grid-column: 1 / 3; grid-row: 1; min-height: 32vw; }
    .mosaic__pic:first-child { grid-column: 1; grid-row: 2; }
    .mosaic__pic:nth-child(3) { grid-column: 2; grid-row: 2; }
    .mosaic__tile--muted { grid-column: 1 / 3; grid-row: 3; }
    .row__fact:nth-of-type(4) { display: none; }
    .row__fact:nth-of-type(2) { grid-column: 3 / 7; }
    .row__fact:nth-of-type(3) { grid-column: 7 / 12; }
    .row__screen { grid-column: 5 / 13; }
    .row__detail { grid-column: 1 / 5; }
    .about__pic { position: static; width: auto; max-width: 420px; margin-bottom: 40px; }
    .contact-band__pic { grid-column: 6 / 8; }
    .contact-band__ways { grid-column: 8 / 13; }
}

/* ---------- 900px: the top row folds into a menu ---------- */
@media (max-width: 900px) {
    .bar__links { display: none; }
    .bar__row { grid-template-columns: var(--bar-h) 1fr var(--bar-h); }
    .bar__menu { display: grid; }
    .bar__action { justify-content: center; }
    .reach { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .reach__panel .blocks { flex: none; height: 300px; }
    .places { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
    .places__say { grid-column: 1 / 3; grid-row: auto; }
    .places__pic { aspect-ratio: 4 / 3; }
}

/* ---------- 700px: one column ---------- */
@media (max-width: 700px) {
    :root { --axis: 0px; --gap: 6px; }
    .cta-long { display: none; }
    .cta-short { display: inline; }
    .board {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: 30svh auto auto auto auto;
        grid-template-areas: "name name" "paper paper" "say1 say1" "say2 say2" "screen screen";
        height: auto; min-height: 0;
    }
    .board__title { font-size: 22vw; }
    .board__pic--paper { aspect-ratio: 4 / 3; }
    .board__say { min-height: 160px; padding: 16px; overflow-wrap: break-word; }
    .board__say--b { min-height: 320px; --pad: 16px; }
    .board__pic--screen { height: 360px; padding: 20px 0 0; padding-inline-start: 20px; }
    .mosaic__tile--ink { min-height: 40vw; }
    .mosaic__tile { padding: 24px var(--m); }
    .h-head, .h-page { font-size: 11vw; }
    .rows { padding: 4px 8px; }
    .row__band { height: 64px; grid-template-columns: 1fr auto; }
    .row__name { grid-column: 1; font-size: 20px; }
    .row__fact { display: none; }
    .row__status { grid-column: 2; }
    .row__open { grid-template-columns: 1fr; row-gap: 20px; padding: 8px 12px 16px; }
    .row__detail, .row__screen { grid-column: 1; }
    .row__screen { height: 320px; }
    .bar-chart { flex-direction: column; height: auto; margin-bottom: 0; }
    .stage { flex: none; min-width: 0; min-height: calc(var(--grow) * 36px + 96px); display: grid; align-content: start; gap: 6px; }
    .stage__time { font-size: 22px; }
    .stage__text { position: static; width: auto; min-width: 0; color: var(--bg); }
    .card__title { font-size: 24px; }
    .contact-band { grid-template-columns: 96px 1fr; column-gap: 16px; row-gap: 28px; padding: 120px var(--m) 96px; }
    .contact-band__say { grid-column: 1 / 3; font-size: 24px; }
    .contact-band__pic { grid-column: 1; max-width: 96px; }
    .contact-band__ways { grid-column: 2; }
    .foot__row { grid-template-columns: 1fr; row-gap: 40px; }
    .foot__places, .foot__links { grid-column: 1; }
    .foot__links { grid-template-columns: 1fr 1fr; }
    .reach__panel, .places__say { padding: 16px; --pad: 16px; }
    .reach__panel .blocks { height: 240px; }
    .reach__title { font-size: 11vw; }
    .reach__sheet { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-body *, .site-body *::before, .site-body *::after { animation: none !important; transition: none !important; }
    .js-motion [data-rise] { opacity: 1 !important; transform: none !important; }
    .js-motion .shutter .print { clip-path: none !important; transform: none !important; }
}
