/* OLEA SOL - oleasol.ae, direction A "The Same Room" (MMW 21 Oct 2026: "we are on the right track. keep pushing.
   bit by bit better"). From the workflow's prototype (C:\olea-build\website-sota\a-same-room), built into the site.
   Colours are style.json's tokens (90-system/style/style.json): ink #1B1D1A, char #2C2E2A, paper #FFFFFF, muted #63685F,
   hair #DDDFDA, amber #D9A62B, olive #5C6B3C. On the dark char ground the secondary text is hair #DDDFDA (11:1); every
   pair meets WCAG 2.2 AA (1.4.3, 1.4.11). Amber is a bar with ink on it; olive is a small square beside its word
   (WCAG 1.4.1). Logical properties throughout, so the Arabic pages mirror with dir="rtl".
   The display size (up to 152 px) is a marketing scale outside the HQ screen standard: Olea Look rules on it. */

@font-face { font-family: "IBM Plex Sans"; src: url(fonts/ibm-plex-sans-var.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(fonts/ibm-plex-sans-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(fonts/ibm-plex-sans-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --ground: #EDEEEA;
  --ink: #1B1D1A;
  --char: #2C2E2A;
  --muted: #63685F;
  --amber: #D9A62B;
  --olive: #5C6B3C;
  --on-dark: #FFFFFF;
  --sub: var(--muted);
  --line: rgba(27, 29, 26, .22);
  --nav: 64px;
  --g: 16px;
  --display: clamp(56px, 9vw, 152px);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --g: 24px; } }
@media (min-width: 1200px) { :root { --g: 40px; } }
html[lang=ar] { --sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; --mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace; }
html[lang=ar] * { letter-spacing: 0 !important; }

.threshold, .scrub, .jobs, .making, .ask, .bar, .plate, .detail, .cs-hero, .cs-plate, .next {
  --sub: #DDDFDA;
  --line: rgba(255, 255, 255, .26);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-end: var(--nav); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/28px var(--sans); padding-block-end: var(--nav); overflow-x: clip; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; filter: saturate(.92) contrast(1.03); }
.mono, .f { font-family: var(--mono); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; inset-block-start: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { inset-block-start: 8px; }
.wrap { padding-inline: var(--g); max-width: 1520px; margin-inline: auto; }
.measure { max-width: 34em; }

.display { font-weight: 400; font-size: var(--display); line-height: .95; letter-spacing: -.035em; }
.display > span { display: block; }
.chapter { font-weight: 400; font-size: 40px; line-height: 44px; letter-spacing: -.02em; }
html[lang=ar] .display, html[lang=ar] .chapter { line-height: 1.25; }
.label, .tag, .sq-link, .bar-links a {
  font: 600 14px/20px var(--sans); text-transform: uppercase; letter-spacing: .12em;
}
.label .mono { font: 400 14px/20px var(--mono); letter-spacing: .02em; text-transform: none; color: var(--sub); margin-inline-start: 12px; }
.small { font-size: 14px; line-height: 22px; color: var(--sub); }
.tag { display: inline-flex; align-items: center; }
.sq { display: inline-block; width: 9px; height: 9px; background: var(--olive); margin-inline-end: 8px; flex: none; }
.threshold .sq, .scrub .sq { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }

/* One photographic grade: the filter on every img, and a 3% warm wash. */
.ph { position: relative; overflow: hidden; background: #3A3C37; }
.ph::after { content: ""; position: absolute; inset: 0; background: #C98C3C; opacity: .03; pointer-events: none; }
.js img.fade { opacity: 0; transition: opacity .4s ease; }
.js img.fade.is-in { opacity: 1; }

/* ---------------------------------------------------------------- the bar (bottom, every screen) */
.bar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 50;
  height: calc(var(--nav) + env(safe-area-inset-bottom)); padding-block-end: env(safe-area-inset-bottom);
  display: flex; align-items: center; gap: 20px; padding-inline-start: var(--g);
  background: var(--char); color: var(--on-dark); border-block-start: 1px solid var(--line); transition: height .25s ease;
}
.bar.is-small { height: calc(48px + env(safe-area-inset-bottom)); }
.bar-mark { display: flex; align-items: center; min-height: 44px; color: var(--on-dark); }
.bar-mark svg { display: block; height: 24px; width: auto; }
.bar-links { display: flex; gap: 16px; list-style: none; padding: 0; margin-inline-start: auto; }
.bar-links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.bar-links a:hover, .bar-links a[aria-current="page"] { text-decoration: underline; }
.bar-links .opt { display: none; }
.bar-links .lang a { font-weight: 400; text-transform: none; letter-spacing: 0; }
/* MMW, 21 Oct: the estimate one tap away on every page; an outlined button, 44 px target */
.bar-est { display: flex; align-items: center; min-height: 44px; padding-inline: 14px; margin-inline: 16px; border: 1px solid var(--on-dark);
  color: var(--on-dark); font: 600 14px/20px var(--sans); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; white-space: nowrap; }
.bar-est:hover, .bar-est[aria-current="page"] { background: var(--on-dark); color: var(--ink); }
@media (max-width: 400px) { .bar { gap: 12px; } .bar-est { margin-inline: 8px; padding-inline: 10px; } }
.bar-wa { align-self: stretch; aspect-ratio: 1; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.bar-wa:hover { background: var(--ground); }
@media (min-width: 640px) { .bar-links .opt { display: flex; } .bar-links { gap: 32px; } }

/* ---------------------------------------------------------------- 1 threshold */
.threshold { position: relative; background: var(--char); color: var(--on-dark); min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.t-line { position: absolute; z-index: 2; inset-block-start: 0; inset-inline-end: 0; background: var(--char); padding: 10px var(--g); font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: .04em; }
.t-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-height: 46svh; }
.t-fig { position: relative; }
.t-fig .ph { position: absolute; inset: 0; }
.t-fig img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 58%); }
.t-tag { position: absolute; inset-block-end: 0; inset-inline-start: 0; display: flex; gap: 10px; align-items: center; white-space: nowrap; background: var(--char); padding: 8px 10px; }
@media (min-width: 640px) { .t-tag { gap: 14px; padding: 10px var(--g); } }
.t-tag .mono { font-size: 14px; color: var(--sub); }
.t-band { padding: 28px var(--g) calc(var(--nav) + 28px); }
.t-lede { margin-block-start: 20px; max-width: 34em; }
@media (min-width: 900px) {
  .t-band { padding-inline: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2px; }
  .t-head { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2px; }
  .t-head > span, .t-lede { padding-inline: var(--g); }
}

/* ---------------------------------------------------------------- 2 the scrubber: scroll is time */
.scrub { --p: 0; --w: 0; position: relative; background: var(--char); color: var(--on-dark); }
.scrub-info { display: flex; flex-direction: column; gap: 16px; }
.scrub-decision { color: var(--sub); max-width: 30em; }
.counter { display: flex; align-items: baseline; gap: 16px; }
.counter .num { font-size: clamp(56px, min(9vw, 15svh), 152px); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
/* the stage named, not counted (MMW, 21 Oct: no durations); 40 / 88 are steps of the site scale (Olea Look) */
.counter .num--word { font-family: var(--sans); font-size: clamp(40px, min(6vw, 11svh), 88px); line-height: 1; letter-spacing: -.03em; }
.scrub-caps { list-style: none; padding: 0; }
.scrub-caps li { display: none; }
.scrub-caps li.is-on { display: block; }
.scrub-caps .mono { font-size: 14px; color: var(--sub); margin-inline-start: 10px; }
.cap-line { display: block; margin-block-start: 4px; }
.scrub-bar { padding-block: 20px 4px; }
.track { position: relative; height: 2px; background: var(--line); touch-action: none; cursor: pointer; }
.track::before { content: ""; position: absolute; inset: -20px 0; }
.fill { position: absolute; inset: 0; background: var(--amber); transform: scaleX(var(--w)); transform-origin: left center; }
[dir="rtl"] .fill { transform-origin: right center; }
.tick { position: absolute; inset-block-start: -6px; inset-inline-start: calc(var(--at) * 100%); width: 1px; height: 14px; background: var(--sub); }
.tick span { position: absolute; inset-block-start: 22px; inset-inline-start: 0; transform: translateX(-50%); font-size: 14px; line-height: 20px; color: var(--sub); }
[dir="rtl"] .tick span { transform: translateX(50%); }
.handle {
  position: absolute; inset-block-start: 50%; inset-inline-start: calc(var(--w) * 100%); transform: translate(calc(var(--w) * -100%), -50%);
  min-width: 48px; height: 30px; padding-inline: 8px; display: grid; place-items: center;
  background: var(--amber); color: var(--ink); font-size: 14px; cursor: grab; z-index: 1;
}
[dir="rtl"] .handle { transform: translate(calc(var(--w) * 100%), -50%); }
.handle:active { cursor: grabbing; }
.handle:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.scrub-hint { margin-block-start: 40px; font-size: 14px; line-height: 20px; color: var(--sub); }
.scrub-pane { position: relative; }
.stage { margin: 0; }
.stamp { font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); }

/* Without JavaScript, or with reduced motion: the stages side by side, each labelled. */
.scrub:not(.live) .scrub-frame { padding: 96px var(--g); display: grid; gap: 40px; max-width: 1520px; margin-inline: auto; }
.scrub:not(.live) .counter, .scrub:not(.live) .handle, .scrub:not(.live) .scrub-hint { display: none; }
.scrub:not(.live) .scrub-caps { display: grid; gap: 12px; }
.scrub:not(.live) .scrub-caps li { display: block; }
.scrub:not(.live) .fill { transform: none; }
.scrub:not(.live) .scrub-bar { padding-block-end: 28px; }
.scrub:not(.live) .scrub-pane { display: grid; gap: 16px; align-items: end; }
.scrub:not(.live) .stage .ph { aspect-ratio: 3 / 4; }
.scrub:not(.live) .stage img { width: 100%; height: 100%; object-fit: cover; }
.scrub:not(.live) .stage.print .ph { border: 1px solid var(--line); padding: 10px; background: transparent; }
.scrub:not(.live) .stage.print .ph::after { inset: 10px; }
.scrub:not(.live) .stamp { margin-block-start: 10px; }
@media (min-width: 900px) { .scrub:not(.live) .scrub-pane { grid-template-columns: repeat(var(--n, 3), 1fr); } .scrub[data-n="2"] { --n: 2; } }

/* Live: the room is pinned and the scroll is time. */
.scrub.live { height: 340vh; }
.scrub.live[data-n="2"] { height: 240vh; }
.scrub.live .scrub-frame { position: sticky; inset-block-start: 0; height: 100svh; overflow: hidden; display: grid; grid-template-areas: "pane" "info"; grid-template-rows: 1fr auto; }
.scrub.live .scrub-info { grid-area: info; padding: 18px var(--g) calc(var(--nav) + 34px); gap: 10px; }
.scrub.live .scrub-pane { grid-area: pane; }
.scrub.live .stage { position: absolute; inset: 0; }
.scrub.live .stage.cover .ph { position: absolute; inset: 0; }
.scrub.live .stage.cover img { width: 100%; height: 100%; object-fit: cover; }
.scrub.live .stage.print { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--char); padding: 24px var(--g); }
.scrub.live .stage.print .ph { padding: 10px; border: 1px solid rgba(255, 255, 255, .55); background: transparent; }
.scrub.live .stage.print .ph::after { inset: 10px; }
.scrub.live .stage.print img { width: auto; height: auto; max-width: min(84vw, 100%); max-height: calc(100svh - 360px); }
.scrub.live .stage.print .stamp { margin-block-start: 12px; }
.scrub.live .s2 { opacity: clamp(0, calc((var(--p) - .25) / .15), 1); }
.scrub.live .s3 { opacity: clamp(0, calc((var(--p) - .6) / .15), 1); }
.scrub.live[data-n="2"] .s2 { opacity: clamp(0, calc((var(--p) - .4) / .2), 1); }
.scrub.live .stage .stamp { display: none; }
.pane-stamp { position: absolute; z-index: 2; inset-block-start: 0; inset-inline-start: 0; margin: 0; background: var(--char); color: var(--on-dark); padding: 8px 12px; font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: .04em; }
.scrub.live .scrub-decision, .scrub.live .scrub-hint, .scrub.live .scrub-info > .small { display: none; }
.scrub.live .chapter { font-size: 18px; line-height: 28px; letter-spacing: 0; }
.scrub.live .counter .label { color: var(--sub); }
@supports (animation-timeline: view()) {
  .scrub.live { view-timeline: --scrub block; }
  .scrub.live .s2 { animation: sr-in linear both; animation-timeline: --scrub; animation-range: contain 25% contain 40%; }
  .scrub.live .s3 { animation: sr-in linear both; animation-timeline: --scrub; animation-range: contain 60% contain 75%; }
  .scrub.live[data-n="2"] .s2 { animation-range: contain 40% contain 60%; }
}
@keyframes sr-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .scrub.live .scrub-frame { grid-template-areas: "info pane"; grid-template-rows: 1fr; grid-template-columns: 1fr min(75svh, 54vw); }
  .scrub.live .scrub-info { padding: 40px var(--g) calc(var(--nav) + 28px); gap: 20px; justify-content: flex-end; }
  .scrub.live .scrub-decision, .scrub.live .scrub-hint, .scrub.live .scrub-info > .small { display: block; }
  .scrub.live .chapter { font-size: 40px; line-height: 44px; letter-spacing: -.02em; }
  .scrub.live .scrub-info > .label { margin-block-end: auto; }
  /* Jury, 21 Oct: the low-resolution site print in the middle stage needs more presence on the laptop. It now takes
     the pane's full width (a framed print, not a thumbnail), held to the screen's height. */
  .scrub.live .stage.print { padding: 32px 24px calc(var(--nav) + 32px); }
  .scrub.live .stage.print .ph { width: 100%; }
  .scrub.live .stage.print img { width: 100%; max-width: none; max-height: calc(100svh - var(--nav) - 140px); object-fit: contain; }
  .scrub-hint { margin-block-start: 44px; }
}
@media (min-width: 900px) and (max-height: 760px) and (min-aspect-ratio: 1 / 1) { .scrub.live .scrub-decision { display: none; } }

/* ---------------------------------------------------------------- 3 the works, one per screen */
.jobs { position: relative; background: var(--char); }
.job { position: sticky; inset-block-start: 0; height: 100svh; overflow: hidden; }
.job-ph { position: absolute; inset: 0; }
.job-ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.plate { position: absolute; inset-inline-start: 0; inset-block-end: var(--nav); display: grid; gap: 10px; max-width: min(640px, 100%); background: var(--char); color: var(--on-dark); padding: 24px var(--g) 28px; }
.plate-meta { font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); }
.sq-link { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding-inline: 20px; margin-block-start: 8px; border: 1px solid currentColor; text-decoration: none; }
.sq-link:hover { background: var(--on-dark); color: var(--ink); }
.dimband .sq-link:hover { background: var(--ink); color: var(--paper); }
.making .sq-link { margin-block-start: 12px; }

/* ---------------------------------------------------------------- in the making (site only) */
.making { background: var(--char); color: var(--on-dark); padding-block: 120px 96px; border-block-start: 1px solid var(--line); }
.making-head { display: grid; gap: 20px; }
.making-head .measure { color: var(--sub); }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 48px var(--g) 16px; scrollbar-color: #63685F transparent; }
.strip-fig { flex: none; scroll-snap-align: start; }
.strip-fig img { height: min(56svh, 620px); width: auto; max-width: none; }
.strip-fig .stamp { margin-block-start: 10px; }
@media (min-width: 900px) { .strip-fig img { height: min(66svh, 680px); } }

/* ---------------------------------------------------------------- the measured detail: a dimension chain on a
   finished photograph (from direction C). Real figures from the job's papers only; a diagram, not a drawing. */
.dimband { padding-block: 112px; border-block-start: 1px solid var(--line); }
.dim-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .dim-grid { grid-template-columns: 6fr 5fr; gap: 64px; } }
.dimfig { position: relative; margin: 0; }
.dimfig .ph { aspect-ratio: var(--ar, 3 / 4); background: var(--ground); }
.dimfig .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dimfig svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.dimfig figcaption { margin-block-start: 10px; font-size: 14px; line-height: 20px; color: var(--muted); }
svg.pen { --u: 3; }
.pen .dl, .pen .ex { fill: none; stroke: var(--ink); stroke-linecap: square; stroke-width: calc(var(--u) * 1px); }
.pen .ex { stroke-width: calc(var(--u) * .6px); }
.pen .dot { fill: var(--ink); }
.pen .fig { font: 400 calc(var(--u) * 15px)/1 var(--mono); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: calc(var(--u) * 5px); stroke-linejoin: round; }
.pen .kn .ld { stroke: var(--ink); stroke-width: calc(var(--u) * 1px); fill: none; }
.pen .kn .kd { fill: var(--ink); }
.pen .kn .kb { fill: var(--ink); stroke: var(--paper); stroke-width: calc(var(--u) * 1.5px); }
.pen .kn text { fill: var(--paper); font: 600 calc(var(--u) * 12px)/1 var(--mono); text-anchor: middle; dominant-baseline: central; }
/* same-room.js sets each line's dash to its measured length; .on draws it */
.js .dimband.on .dl, .js .dimband.on .ex { stroke-dashoffset: 0 !important; transition: stroke-dashoffset .8s linear; }
.js .dimband .fig, .js .dimband .dot, .js .dimband .kn { opacity: 0; transition: opacity .45s; }
.js .dimband.on .dot { opacity: 1; transition-delay: .8s; }
.js .dimband.on .fig { opacity: 1; transition-delay: .9s; }
.js .dimband.on .kn { opacity: 1; transition-delay: 1.1s; }
.big { font: 400 clamp(64px, 8.5vw, 148px)/.9 var(--mono); letter-spacing: -.05em; }
.big--wide { font-size: clamp(40px, 5.4vw, 88px); white-space: nowrap; }   /* Olea Look, 21 Oct: a figure size on the site scale (40, 88) */
.big .u { font-size: .28em; letter-spacing: 0; margin-inline-start: .25em; vertical-align: .2em; }
.dim-text { display: grid; gap: 22px; }
.keys { list-style: none; padding: 0; display: grid; gap: 10px; border-block-start: 1px solid var(--ink); padding-block-start: 16px; }
.keys li { display: flex; gap: 14px; align-items: baseline; }
.keys b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--mono); flex: none; }
.note { font-size: 14px; line-height: 22px; color: var(--muted); max-width: 44em; }

/* ---------------------------------------------------------------- how we work, and what you receive */
.how { padding-block: 128px 112px; }
.how .chapter { margin-block-start: 16px; max-width: 18em; }
.steps { list-style: none; padding: 0; margin-block-start: 56px; display: grid; }
.step { position: relative; border-inline-start: 1px solid var(--ink); padding-inline-start: 24px; padding-block-end: 28px; }
.step::before { content: ""; position: absolute; inset-inline-start: -5px; inset-block-start: 6px; width: 9px; height: 9px; background: var(--ink); }
.step summary { list-style: none; cursor: pointer; display: grid; gap: 4px; min-height: 44px; }
.step summary::-webkit-details-marker { display: none; }
.step-n { font-size: 14px; color: var(--muted); }
.step-name { font-weight: 600; }
.step-more { font: 600 14px/20px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.step details[open] .step-more .o, .step details:not([open]) .step-more .c { display: none; }
.step details p { margin-block-start: 12px; max-width: 30em; }
.step summary:hover .step-name { text-decoration: underline; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); border-block-start: 1px solid var(--ink); }
  .step { border-inline-start: 0; padding-block: 28px 0; padding-inline: 0 28px; }
  .step::before { inset-inline-start: 0; inset-block-start: -5px; }
}
.receive { margin-block-start: 80px; }
.sched { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.sched caption { text-align: start; padding-block-end: 14px; }
.sched th { font: 600 14px/20px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-align: start; padding: 0 16px 10px 0; border-block-end: 1px solid var(--ink); }
.sched td { padding: 14px 16px 14px 0; border-block-end: 1px solid var(--line); vertical-align: top; }
.sched .no { font-family: var(--mono); width: 4ch; color: var(--muted); }
.sched .q { text-align: end; white-space: nowrap; }
.sched .what { color: var(--muted); }
@media (max-width: 640px) { .sched .what { display: none; } .sched { font-size: 14px; } }

/* ---------------------------------------------------------------- told straight */
.straight { padding-block: 0 128px; }
.straight-lines { list-style: none; padding: 0; margin-block-start: 24px; border-block-start: 1px solid var(--line); }
.straight-lines li { font-size: 40px; line-height: 46px; letter-spacing: -.02em; padding-block: 22px; border-block-end: 1px solid var(--line); max-width: 24em; }
@media (max-width: 640px) { .straight-lines li { font-size: 28px; line-height: 36px; } }

/* ---------------------------------------------------------------- team */
.team { padding-block: 112px; border-block-start: 1px solid var(--line); }
.team-grid { display: grid; gap: 32px; align-items: end; }
.team-ph { width: 240px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ground); }
.team-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); }
.team .chapter { margin-block: 16px 20px; max-width: 18em; }
@media (min-width: 900px) { .team-grid { grid-template-columns: 4fr 8fr; } .team-ph { justify-self: end; } }

/* ---------------------------------------------------------------- ask */
.ask { background: var(--char); color: var(--on-dark); padding-block: 128px; }
.ask .display { margin-block-start: 20px; }
.ask-acts { display: grid; gap: 16px; margin-block-start: 56px; }
.sq-btn { display: grid; align-content: space-between; gap: 28px; min-height: 220px; padding: 28px; text-decoration: none; color: var(--on-dark); border: 1px solid var(--on-dark); }
.sq-btn > span:first-of-type { font-size: 40px; line-height: 44px; letter-spacing: -.02em; }
.sq-btn .sq-sub { color: var(--sub); max-width: 30em; }
.sq-btn svg { width: 28px; height: 28px; }
.sq-btn:hover > span:first-of-type { text-decoration: underline; text-decoration-thickness: 2px; }
.sq-btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sq-btn--paper .sq-sub { color: var(--muted); }
.ask-promise { margin-block-start: 28px; }
.ask-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-block-start: 16px; color: var(--sub); }
.ask-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) { .ask-acts { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- footer */
.foot { padding-block: 72px 40px; font-size: 14px; line-height: 22px; }
.foot-grid { display: grid; gap: 32px; }
.foot-grid p + p { margin-block-start: 6px; }
.foot .label { margin-block-end: 10px; }
.plain { list-style: none; padding: 0; display: grid; gap: 2px; }
.plain a { display: inline-flex; align-items: center; min-height: 32px; }
.foot-small { margin-block-start: 48px; padding-block-start: 20px; border-block-start: 1px solid var(--line); display: grid; gap: 12px; color: var(--muted); }
.foot-small p:first-child { max-width: 60em; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 4fr 4fr 2fr 2fr; } }
@media (min-width: 640px) and (max-width: 899px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
[dir=rtl] .fig[dir=ltr], [dir=rtl] a[href^="tel:"] { unicode-bidi: isolate; }

/* ---------------------------------------------------------------- case study */
.cs-hero { position: relative; height: 100svh; background: var(--char); color: var(--on-dark); }
.cs-hero-ph { position: absolute; inset: 0; }
.cs-hero-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cs-plate { position: absolute; inset-inline-start: 0; inset-block-end: var(--nav); background: var(--char); color: var(--on-dark); padding: 24px var(--g) 28px; display: grid; gap: 14px; max-width: 100%; }
.cs-plate .label a { text-decoration: none; }
.cs-plate .label a:hover { text-decoration: underline; }
@media (min-width: 900px) { .cs-plate { padding: 32px var(--g) 36px; padding-inline-end: 64px; } }

.meta { padding-block: 56px 0; }
.meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; border-block: 1px solid var(--ink); padding-block: 20px; }
.meta-row dt { font: 600 14px/20px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.meta-row dd { margin-block-start: 6px; }
@media (min-width: 900px) { .meta-row { grid-template-columns: repeat(6, 1fr); } }

.brief { padding-block: 112px 128px; }
.brief-grid { display: grid; gap: 24px; }
.brief .measure p + p { margin-block-start: 16px; }
.credit { font-size: 14px; line-height: 22px; color: var(--muted); }
@media (min-width: 900px) { .brief-grid { grid-template-columns: 4fr 8fr; } .brief .measure { font-size: 22px; line-height: 34px; } .brief .credit { font-size: 14px; line-height: 22px; } }

/* The diary reads across, like a page of a site diary: the stage, the photograph, what happened (jury, 21 Oct: use the
   empty right column). On a phone the three stack. */
.diary { padding-block: 128px 96px; }
.diary .chapter { margin-block-start: 16px; }
.entries { list-style: none; padding: 0; margin-block-start: 56px; }
.entry { display: grid; gap: 16px; padding-block: 40px; border-block-start: 1px solid var(--line); }
.entry-head { display: grid; gap: 6px; align-content: start; }
.entry-stage { font-size: 28px; line-height: 36px; letter-spacing: -.01em; }
.entry-n { font-size: 14px; line-height: 20px; color: var(--muted); }
html[lang=ar] .entry-stage { line-height: 40px; }
.entry-ph .ph { background: var(--ground); }
.entry--print .entry-ph .ph { display: inline-block; padding: 10px; border: 1px solid var(--line); background: transparent; }
.entry--print .entry-ph .ph::after { inset: 10px; }
.entry--print img { max-height: 560px; width: auto; }
.entry-rec { display: grid; gap: 12px; align-content: start; max-width: 30em; }
.entry-line { font-size: 22px; line-height: 32px; letter-spacing: -.01em; }
.serial { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-block-start: 8px; padding-block-start: 14px; border-block-start: 1px solid var(--ink); font-size: 14px; line-height: 22px; }
.serial div { display: contents; }
.serial dt { font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.js .diary.ff .entry-ph { opacity: .35; transition: opacity .5s ease; }
.js .diary.ff .entry.is-on .entry-ph { opacity: 1; }
.js .diary.ff .entry-stage { color: var(--muted); transition: color .5s ease; }
.js .diary.ff .entry.is-on .entry-stage { color: var(--ink); }
@media (min-width: 900px) {
  .entry { grid-template-columns: 2fr 6fr 4fr; gap: 32px; align-items: start; }
  .entry-rec { position: sticky; inset-block-start: 40px; padding-block-start: 8px; }
  .entry--print img { max-width: 100%; max-height: 520px; }
}

.detail { background: var(--char); color: var(--on-dark); }
.detail-grid { display: grid; }
.detail-a { min-height: 60svh; }
.detail-a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-text { padding: 80px var(--g) 96px; display: grid; gap: 20px; align-content: start; }
.detail-b { width: min(60%, 320px); margin-block-start: 24px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 1fr; } .detail-a { min-height: 100svh; } .detail-text { padding-block: 128px; padding-inline: 56px var(--g); } }

.measured { padding-block: 112px; }
.measured .chapter { margin-block-start: 16px; }
.figs { display: grid; grid-template-columns: 1fr; gap: 40px 24px; margin-block: 40px 64px; border-block-start: 1px solid var(--ink); padding-block-start: 32px; }
.figs div { display: flex; flex-direction: column-reverse; gap: 8px; }
.figs dd { font-size: 56px; line-height: 56px; letter-spacing: -.03em; white-space: nowrap; }
.figs dt { color: var(--muted); }
@media (min-width: 480px) { .figs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .figs { grid-template-columns: repeat(4, 1fr); } .figs dd { font-size: 88px; line-height: 88px; } }
.ledger { margin-block-end: 16px; }
.ledger .src { color: var(--muted); }
@media (max-width: 640px) { .ledger .src { display: none; } .ledger .q { white-space: normal; width: 38%; } }

.film { padding-block: 0 112px; }
.film-list { list-style: none; padding: 0; margin-block-start: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.film-list a { display: grid; gap: 6px; text-decoration: none; font-size: 14px; line-height: 18px; color: var(--muted); }
.film-list img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.film-list a:hover .film-cap { color: var(--ink); text-decoration: underline; }

.next { position: relative; display: block; height: 80svh; background: var(--char); color: var(--on-dark); text-decoration: none; }
.next-ph { position: absolute; inset: 0; }
.next-ph img { width: 100%; height: 100%; object-fit: cover; }
.next-plate { position: absolute; inset-inline-start: 0; inset-block-end: 0; background: var(--char); color: var(--on-dark); padding: 24px var(--g) 28px; display: grid; gap: 10px; }
.next:hover .chapter { text-decoration: underline; text-decoration-thickness: 2px; }

.scope { margin-block-start: 24px; padding-inline-start: 1.1em; font-size: 16px; line-height: 26px; color: var(--muted); }
.scope li + li { margin-block-start: 4px; }
@media (min-width: 900px) { .meta-row { grid-template-columns: repeat(var(--n, 6), 1fr); } }

/* the finished rooms: the first full width, then two by two */
.rooms-sec { padding-block: 112px 64px; }
.rooms { display: grid; gap: 40px 16px; margin-block-start: 40px; }
.room .ph { background: var(--ground); }
.room img { width: 100%; }
.room figcaption { margin-block-start: 10px; font-size: 14px; line-height: 20px; color: var(--muted); }
.room figcaption .mono { margin-inline-end: 8px; }
@media (min-width: 900px) { .rooms { grid-template-columns: 1fr 1fr; align-items: start; } .room:first-child { grid-column: 1 / -1; } }

/* the wardrobe elevation: the photograph inside a margin that carries the two chains (direction C) */
.dimfig--margin .dim-stage { position: relative; aspect-ratio: 2110 / 2720; max-width: 640px; }
.dim-ph { position: absolute; inset-inline-start: 12.322%; inset-block-start: 9.559%; width: 75.45%; height: 88.235%; }
[dir=rtl] .dim-ph { inset-inline-start: auto; left: 12.322%; }
.dim-ph img { width: 100%; height: 100%; object-fit: cover; }
.dimfig--margin svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the estimate panel on every project page */
.est-band { padding-block: 80px; border-block-start: 1px solid var(--line); background: var(--ground); }
.est-grid { display: grid; gap: 20px; align-items: end; }
.est-grid .chapter { margin-block-start: 16px; }
.est-grid p { max-width: 32em; }
@media (min-width: 900px) { .est-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* ---------------------------------------------------------------- plain pages */
.page-head { padding-block: 96px 64px; }
.page-head--tall { min-height: calc(100svh - var(--nav)); display: grid; align-content: end; padding-block-end: 96px; }
.page-head .display { margin-block-start: 20px; }
.display--m { font-size: clamp(44px, 6.4vw, 104px); line-height: 1; }
.page-head .t-lede { margin-block-start: 28px; max-width: 34em; }
@media (min-width: 900px) { .page-head .t-lede { font-size: 22px; line-height: 34px; } }
.sec { padding-block: 80px; border-block-start: 1px solid var(--line); }
.sec > .wrap > .label + * { margin-block-start: 24px; }
.rows { display: grid; border-block-start: 1px solid var(--ink); }
.rows > div { display: grid; gap: 4px; padding-block: 16px; border-block-end: 1px solid var(--line); }
.rows dt { font: 600 14px/20px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
@media (min-width: 900px) { .rows:not(.rows--side) > div { grid-template-columns: 4fr 8fr; gap: 24px; } }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }

.wlist-sec { padding-block: 0 96px; }
.wlist { list-style: none; padding: 0; display: grid; gap: 64px; }
.witem a { display: grid; gap: 16px; text-decoration: none; }
.witem .ph { aspect-ratio: 3 / 2; background: var(--ground); }
.witem .ph img { width: 100%; height: 100%; object-fit: cover; }
.witem-t { display: grid; gap: 8px; }
.witem a:hover .chapter { text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 900px) { .wlist { grid-template-columns: 1fr 1fr; gap: 96px 40px; } .witem:first-child { grid-column: 1 / -1; } .witem:first-child .ph { aspect-ratio: 16 / 9; } }
.reg a { text-decoration: none; } .reg a:hover { text-decoration: underline; }

.person { display: grid; gap: 32px; align-items: end; }
.person-ph { width: min(320px, 70%); aspect-ratio: 4 / 5; overflow: hidden; background: var(--ground); }
.person-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); }
.person-t { display: grid; gap: 14px; max-width: 34em; }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .person { grid-template-columns: 4fr 8fr; } .person-ph { width: 100%; } }
.faq { border-block-start: 1px solid var(--ink); }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; min-height: 44px; align-items: center; padding-block: 16px; font-size: 20px; line-height: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-block-end: 20px; max-width: 40em; color: var(--muted); }
.essay { max-width: 38em; font-size: 20px; line-height: 34px; }
.essay p + p { margin-block-start: 22px; }

.ct-grid { display: grid; gap: 56px; }
.ct-grid > div > .label { margin-block-end: 24px; }
.ct-side { display: grid; gap: 16px; align-content: start; }
.ct-big { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; }
.ct-big a { text-decoration: none; }
.ct-big a:hover { text-decoration: underline; }
.rows--side { margin-block-start: 24px; }
@media (min-width: 900px) { .ct-grid { grid-template-columns: 7fr 5fr; gap: 80px; } }

/* ---------------------------------------------------------------- the forms (build.py's markup, unchanged): labels always
   visible, one column, 48 px targets, 2 px focus, never a -9999px offset (it scrolls a right-to-left page) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 600 14px/20px var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--char); }
.btn.o { background: transparent; color: var(--ink); }
.btn.o:hover { background: var(--ground); }
html[lang=ar] .btn { letter-spacing: 0; }
form.enq { display: grid; gap: 24px; max-width: 600px; }
.fld label { display: block; font: 600 14px/20px var(--sans); letter-spacing: .07em; text-transform: uppercase; margin-block-end: 8px; }
.fld .hint { display: block; font-size: 14px; line-height: 20px; color: var(--muted); margin-block-end: 8px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--muted); border-radius: 0; background: var(--paper);
  font: 400 18px/24px var(--sans); color: var(--ink); }
.fld textarea { min-height: 144px; resize: vertical; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir=rtl] .fld select { background-position: 20px 21px, 15px 21px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.req { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 22px; }
.chk input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--ink); }
form.est fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
form.est legend { font-size: 28px; line-height: 36px; letter-spacing: -.01em; margin: 0 0 8px; padding: 0; }
form.est .sub { font-weight: 600; margin-block-start: 12px; }
label.opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 1px solid var(--muted); cursor: pointer; }
label.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
label.opt:has(input:checked) { border: 2px solid var(--ink); padding: 0 11px; }
.stepnav { display: flex; gap: 16px; margin-block-start: 12px; }
.err { min-height: 20px; font-weight: 600; }
.count { color: var(--muted); }
.js-only { display: none; }
html.js .js-only { display: inline-flex; }
html.js form.est .step[hidden], form.est .size-home[hidden], form.est .size-rooms[hidden] { display: none; }
html[lang=ar] .fld label { letter-spacing: 0; }

/* ---------------------------------------------------------------- the home after MMW's "yes, rebuild" (21 Oct 2026) */
.open { position: relative; height: 100svh; background: var(--char); color: var(--on-dark); overflow: hidden; --sub: #DDDFDA; }
.open-ph { position: absolute; inset: 0; }
.open-ph img { width: 100%; height: 100%; object-fit: cover; }
.open-plate { position: absolute; inset-inline-start: 0; inset-block-end: var(--nav); background: var(--char); padding: 28px var(--g) 32px;
  display: grid; gap: 14px; max-width: min(760px, 100%); }
.open-h { font-size: clamp(56px, 7vw, 120px); }
.t-line-in { font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); }
.open-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 8px; }
.btn-l, .btn-lo { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font: 600 14px/20px var(--sans);
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.btn-l { background: var(--paper); color: var(--ink); }
.btn-l:hover { background: var(--ground); }
.btn-lo { border: 1px solid var(--on-dark); color: var(--on-dark); }
.btn-lo:hover { background: var(--on-dark); color: var(--ink); }
.inset { position: absolute; inset-inline-end: var(--g); inset-block-end: calc(var(--nav) + 28px); width: clamp(120px, 15vw, 220px);
  background: var(--char); padding: 8px 8px 10px; display: grid; gap: 8px; margin: 0; }
.inset .ph { aspect-ratio: 3 / 4; }
.inset img { width: 100%; height: 100%; object-fit: cover; }
.inset figcaption { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); }
@media (max-width: 640px) { .inset { inset-block-end: auto; inset-block-start: 16px; width: 104px; } }

.three { padding-block: 64px 80px; }
.three .chapter { margin-block-start: 12px; }
.cards { list-style: none; padding: 0; display: grid; gap: 32px 20px; margin-block-start: 32px; }
.cards > li { display: flex; }
.card { display: grid; grid-template-rows: auto 1fr; gap: 14px; text-decoration: none; width: 100%; }
.card .ph { aspect-ratio: 4 / 5; background: var(--ground); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-t { display: flex; flex-direction: column; gap: 6px; }
.card-n { font-size: 14px; line-height: 20px; color: var(--muted); }
.card-h { font-size: 28px; line-height: 34px; font-weight: 400; letter-spacing: -.01em; }
.card-go { font: 600 14px/20px var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; margin-block-start: auto; padding-block-start: 6px; }
.card:hover .card-h { text-decoration: underline; text-decoration-thickness: 2px; }
.three-more { margin-block-start: 32px; }
.three-more a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } .card .ph { aspect-ratio: auto; height: min(56svh, 620px); } }

.runjob { padding-block: 96px; border-block-start: 1px solid var(--line); }
.runjob-grid { display: grid; gap: 40px; align-items: center; }
.runjob .chapter { margin-block-start: 12px; }
.run { list-style: none; padding: 0; margin-block-start: 24px; border-block-start: 1px solid var(--ink); }
.run li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.run li .mono { font-size: 14px; line-height: 28px; color: var(--muted); }
.sheet { margin: 0; border: 1px solid var(--line); background: var(--paper); }
.sheet img { width: 100%; }
.sheet figcaption { font-size: 14px; line-height: 20px; color: var(--muted); padding: 10px; }
@media (min-width: 900px) { .runjob-grid { grid-template-columns: 7fr 5fr; } .runjob:not(.runjob--sheet) .runjob-grid { grid-template-columns: 1fr; } }

/* the Olea sample drawings in "How we run a job" (22 Oct 2026) */
.sheet { position: relative; }
.sheet img { width: 100%; height: auto; }
.sheets { margin-block-start: 72px; }
.sheets .chapter { margin-block-start: 12px; }
.sheet-list { list-style: none; padding: 0; display: grid; gap: 32px 20px; margin-block-start: 28px; }
.sheet-list figure { margin: 0; display: grid; gap: 12px; }
.sheet-list .crop { display: block; border: 1px solid var(--line); background: var(--paper); overflow: hidden; aspect-ratio: 4 / 3; }
.sheet-list .crop img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.sheet-list figcaption { display: grid; gap: 4px; }
.sheet-list figcaption b { font-weight: 600; }
.sheet-list figcaption span { color: var(--muted); font-size: 16px; line-height: 24px; }
.sheet-go { display: flex; gap: 20px; }
.sheet-go a { display: inline-flex; align-items: center; min-height: 44px; font: 600 14px/20px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.sheets .note { margin-block-start: 20px; }
@media (min-width: 900px) { .sheet-list { grid-template-columns: repeat(3, 1fr); } }

/* the Drawings Lab's step-by-step of the sample flat (22 Oct 2026): a swipe on the phone, eight in a grid on a laptop */
.fourd { margin-block-start: 72px; }
.fourd .chapter { margin-block-start: 12px; }
.fourd-list { list-style: none; padding: 0; margin-block-start: 28px; display: grid; grid-auto-flow: column; grid-auto-columns: 82vw;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-block-end: 12px; }
.fourd-list li { scroll-snap-align: start; }
.fourd-list figure { margin: 0; display: grid; gap: 12px; }
.fourd-ph { display: block; border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; overflow: hidden; }
.fourd-ph img { width: 100%; height: 100%; object-fit: cover; }
.fourd-list figcaption { display: grid; gap: 4px; }
.fourd-list figcaption .mono { font-size: 14px; color: var(--muted); }
.fourd-list figcaption b { font-weight: 600; }
.fourd-list figcaption span:last-child { color: var(--muted); font-size: 16px; line-height: 24px; }
.fourd .note { margin-block-start: 20px; }
@media (min-width: 700px) { .fourd-list { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; gap: 32px 20px; } }
@media (min-width: 1100px) { .fourd-list { grid-template-columns: repeat(4, 1fr); } }

/* one scrubber per case page, the rooms behind tabs (uplift port, 22 Oct 2026; WAI-ARIA Tabs pattern) */
.scrub-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.scrub-tabs [role="tab"] { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--on-dark);
  font: 600 14px/20px var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.scrub-tabs [role="tab"]:hover { border-color: var(--on-dark); }
.scrub-tabs [role="tab"][aria-selected="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.scrub-tabs [role="tab"]:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.scrub-room { font-weight: 600; }
.scrub:not(.live) .scrub-tabs { display: none; }
.scrub.live .set { position: absolute; inset: 0; }
.scrub.live .set:not(.is-on), .scrub.live .set-text:not(.is-on) { display: none; }
.scrub.live .set-cap, .scrub.live .set-dec, .scrub.live .stage-line, .scrub.live .scrub-room, .scrub.live .set-text .small { display: none; }
/* Olea Look, 22 Oct: live, the big counter says the stage, so the caption leads with its swatch only */
.scrub.live .cap-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scrub.live .scrub-caps li.is-on { display: flex; align-items: baseline; gap: 12px; }
.scrub.live .scrub-caps .sq { margin-inline-end: 0; }   /* 12 px from swatch to line: the line's own marker (Olea Look) */
.scrub.live .scrub-caps .cap-line { margin-block-start: 0; }
/* not live, the track does nothing, so it is not shown; the rows carry the order. One framing: bare. */
.scrub:not(.live) .scrub-bar { display: none; }
.scrub:not(.live) .stage.print .ph { border: 0; padding: 0; }
.scrub:not(.live) .stage.print .ph::after { inset: 0; }
.set-text .small { margin-block-start: 8px; }
/* not live (no script, or reduced motion): each room as its own row, its words beside its photographs */
.scrub--rooms:not(.live) .set-text, .scrub--rooms:not(.live) .scrub-caps { display: none; }
.set-dec { color: var(--sub); max-width: 34em; }
.stage-line { margin: 6px 0 0; }
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .scrub.live .scrub-room, .scrub.live .set-text .small { display: block; }
}
.scrub--rooms:not(.live) .scrub-pane { display: grid; gap: 40px; }
.scrub--rooms:not(.live) .set { display: grid; gap: 16px; align-items: end; }
.scrub--rooms:not(.live) .set-text { margin-block-end: 12px; }
@media (min-width: 900px) {
  .scrub--rooms:not(.live) .scrub-pane { grid-template-columns: none; }
  .scrub--rooms:not(.live) .set { grid-template-columns: repeat(var(--n, 3), 1fr); }
  .scrub--rooms:not(.live) .set-cap, .scrub--rooms:not(.live) .set-dec { grid-column: 1 / -1; }
}
/* the filmstrip on a phone: four across, the captions kept for screen readers (the thumbnails' alt is empty) */
@media (max-width: 640px) {
  .film-list { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .film-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .job { position: relative; }
  .js .dimband .fig, .js .dimband .dot, .js .dimband .kn { opacity: 1; }
}
