/* BUDKO RUGS v4. Identity inherited from v1 (Syne, DM Sans, paper, ink, lime); see DESIGN.md. */
@font-face { font-family: "Syne"; src: url("/fonts/syne.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
:root {
  --paper: #F1F1E9; --ink: #22251E; --lime: #D8EE78; --rule: #BFC1B5; --muted: #5A6053; --surface: #E6E7DD;
  --gut: clamp(18px, 3.1vw, 56px); --max: 1640px; --pad: max(var(--gut), calc((100vw - var(--max)) / 2));
  /* ink of the wordmark is 10.823em wide and starts .07em in (measured) */
  --head: calc(clamp(14px, 1.6vw, 26px) + (100vw - 2 * var(--pad)) / 10.823 * .86);
  --bar: 58px; --y: clamp(72px, 9vw, 150px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light; scrollbar-color: var(--ink) var(--paper); accent-color: var(--ink); caret-color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.5 "DM Sans", system-ui, sans-serif; font-optical-sizing: auto; }
::selection { background: var(--lime); color: var(--ink); }
img, video, canvas, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--lime); }
.skip { position: absolute; left: var(--gut); top: -90px; z-index: 40; background: var(--lime); padding: 12px 18px; }
.skip:focus { top: 10px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Head and bar ---------- */
.head { padding: clamp(14px, 1.6vw, 26px) var(--pad) 0; }
.wordmark { display: block; container-type: inline-size; text-decoration: none; }
.wordmark span { display: block; font: 800 calc(100cqi / 10.823)/.86 "Syne", sans-serif; letter-spacing: -.05em; white-space: nowrap; margin-left: -.07em; }
.bar { position: fixed; inset: 0 0 auto; z-index: 20; max-width: 100vw; overflow: clip; height: var(--bar); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); background: var(--paper); border-bottom: 1px solid var(--rule); transform: translateY(-101%); visibility: hidden; }
/* no transition before the first scroll: Safari would play it while the page loads */
.is-ready .bar { transition: transform .35s var(--ease), visibility .35s; }
.is-scrolled .bar { transform: none; visibility: visible; }
.bar-brand { font: 800 19px/1 "Syne", sans-serif; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; padding: 16px 0; }
.bar ul { display: flex; gap: clamp(16px, 2vw, 32px); }
.bar nav a { text-decoration: none; font-size: 17px; padding: 10px 0; white-space: nowrap; }
.bar nav a:hover, .bar nav a[aria-current] { text-decoration: underline 2px; }
.bar-cta { margin-left: auto; background: var(--lime); text-decoration: none; padding: 12px 18px 13px; font-size: 17px; font-weight: 500; line-height: 1; white-space: nowrap; }
.bar-cta:hover { background: var(--ink); color: var(--lime); }

/* ---------- Type ---------- */
.sec { padding: var(--y) var(--pad); }
/* a link lands with the heading 40px under the bar, whatever the section's own padding is */
.sec[id], .contact[id] { scroll-margin-top: calc(40px - var(--y)); }
h1, h2 { font-family: "Syne", sans-serif; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(36px, 4.5vw, 74px); line-height: 1.03; }
h3 { font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: -.015em; }
.lead { font-size: clamp(21px, 1.75vw, 27px); line-height: 1.38; letter-spacing: -.012em; max-width: 30em; text-wrap: pretty; }
.prose { max-width: 34em; }
.prose p, .steps p, .qa p, figcaption, .gal-note { text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 17px 26px 18px; font-weight: 500; line-height: 1; }
.btn:hover { background: var(--lime); color: var(--ink); }
.btn:active, .bar-cta:active, .gal-nav button:active, .film-toggle:active { transform: translateY(1px); }
.btn-quiet { background: none; color: inherit; box-shadow: inset 0 0 0 1px var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Pictures ---------- */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.zoom img { width: 100%; }
.zoom { position: relative; }
.zoom:focus-visible { outline: none; }
.zoom:focus-visible::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 0 3px var(--lime), inset 0 0 0 6px var(--ink); }
figcaption { font-size: 16px; line-height: 1.4; margin-top: 12px; max-width: 52em; }
.tag { font-weight: 600; }
.dark .tag { white-space: nowrap; margin-right: .35em; }
.tag::before { content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .45em; border: 1.5px solid currentColor; }
.tag-made::before { background: currentColor; }

/* ---------- Hero: one picture, same verticals as the galleries ---------- */
.hero { --hh: calc(100svh - var(--head)); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(28px, 3.6vw, 64px); min-height: var(--hh); padding: clamp(18px, calc(var(--hh) * .04), 40px) var(--pad) clamp(20px, calc(var(--hh) * .03), 28px); }
.hero-words { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; }
.hero h1 { --col: calc((100vw - 2 * var(--pad) - clamp(28px, 3.6vw, 64px)) / 3); font-size: min(calc(var(--col) / 4.72), calc(var(--hh) * .135)); line-height: .96; letter-spacing: -.04em; text-wrap: nowrap; margin-top: -.08em; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(1) { margin-left: -.08em; } .hero h1 span:nth-child(2) { margin-left: -.037em; } .hero h1 span:nth-child(3) { margin-left: -.03em; }
.hero .actions { margin-top: clamp(16px, calc(var(--hh) * .035), 30px); align-items: center; gap: 12px 26px; }
.hero .lead { font-size: max(18px, min(clamp(21px, 1.75vw, 27px), calc(var(--hh) * .036))); }
.hero .btn { background: var(--lime); color: var(--ink); }
.hero .btn:hover { background: var(--ink); color: var(--lime); }
.hero-more { font-weight: 500; padding: 8px 0; }
.hero-pics { display: grid; min-height: 0; }
.hero-pics figure { position: relative; min-height: 0; overflow: hidden; }
.hero-pics .zoom { position: absolute; inset: 0; height: 100%; }
/* out of flow: inside a button Safari gives height: 100% of a picture nothing to measure against, and the photo came out 0px tall */
.hero-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-room img { object-position: 57% 50%; }
.hero-pics figcaption { position: absolute; left: 0; bottom: 0; margin: 0; background: var(--paper); padding: 8px 14px 9px 12px; pointer-events: none; }

/* ---------- Scenes: one screen each ---------- */
.scene { display: grid; grid-template: "copy gal" auto "side gal" 1fr / minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 2.6vw, 40px) clamp(28px, 3.6vw, 64px); --pt: clamp(56px, 6vw, 104px); padding: var(--pt) var(--pad) clamp(56px, 6vw, 104px); scroll-margin-top: calc(min(32px, var(--pt)) - var(--pt)); align-items: start; }
.scene.is-flip { grid-template: "gal copy" auto "gal side" 1fr / minmax(0, 8fr) minmax(0, 4fr); }
.scene:not(.dark) + .scene:not(.dark) { --pt: clamp(20px, 2vw, 36px); }
.scene-copy { grid-area: copy; }
.scene-copy h2 { font-size: clamp(34px, 3.5vw, 60px); }
.scene-copy .prose { margin-top: clamp(14px, 1.6vw, 26px); }
.concept-note { --pt: clamp(48px, 4.6vw, 80px); padding: var(--pt) var(--pad) 0; scroll-margin-top: calc(min(28px, var(--pt)) - var(--pt)); display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 2.4vw, 44px); }
/* a legend for the tags under every picture: the same squares, then a quieter line */
.concept-note { flex-direction: column; gap: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px clamp(24px, 2.6vw, 44px); }
.legend .tag { white-space: nowrap; }
.legend-more { font-size: 16px; line-height: 1.45; color: var(--muted); max-width: 40em; text-wrap: pretty; }
.concept-note + .scene { --pt: clamp(36px, 3.4vw, 56px); }
.gal-box { position: relative; }
.gal-note { margin-top: 10px; font-size: 16px; line-height: 1.45; max-width: 40em; padding-left: 2px; }
.gal:has(.gal-note) .gal-slide img { max-height: calc(100svh - var(--bar) - 150px); }
.gal { grid-area: gal; min-width: 0; position: relative; }
.scene-side { grid-area: side; align-self: end; min-width: 0; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gal-slide img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; max-height: calc(100svh - var(--bar) - 110px); }
.gal-slide figcaption { padding: 0 190px 0 2px; height: 46px; display: flex; align-items: center; }
.gal-nav { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; }
.gal-count { min-width: 3.6em; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.gal-nav button { width: 46px; height: 46px; padding: 0; border: 0; background: none; box-shadow: inset 0 0 0 1px currentColor; cursor: pointer; display: grid; place-items: center; }
.gal-nav button:hover { background: var(--lime); color: var(--ink); }
.gal-nav svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumbs button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; opacity: .8; transition: opacity .2s; }
.thumbs button:hover, .thumbs button[aria-current] { opacity: 1; }
.thumbs button[aria-current] { box-shadow: 0 5px 0 var(--lime); }
.scene:not(.dark) .thumbs button[aria-current] { box-shadow: 0 4px 0 var(--ink); }
.thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Film ---------- */
.film-frame { position: relative; background: #15170f; }
.film video { width: 100%; }
.film-toggle { position: absolute; left: 12px; bottom: 12px; border: 0; background: var(--paper); padding: 14px 16px; line-height: 1; font-size: 16px; font-weight: 500; cursor: pointer; color: var(--ink); }
.film-toggle:hover { background: var(--lime); }

.dark { background: var(--ink); color: var(--paper); }

/* ---------- The machine ---------- */
/* one thought and one film: the whole film fits the window */
.machine .sec { padding-block: clamp(40px, 4vw, 64px); }
.machine-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 110px); align-items: center; }
.machine-copy .lead { margin-top: clamp(18px, 2vw, 32px); }
.machine .film { min-width: 0; }
.machine .film-frame { height: clamp(420px, calc(100svh - var(--bar) - 2 * clamp(40px, 4vw, 64px)), 860px); aspect-ratio: 4 / 5; max-width: 100%; margin-left: auto; }
.machine .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 110px); align-items: stretch; background: var(--surface); }
.process-head { display: flex; flex-direction: column; }
.process-head .pic { margin-top: clamp(28px, 3vw, 48px); flex: 1; display: flex; flex-direction: column; min-height: 320px; }
.process-head .zoom { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.process-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 78%; }
.steps li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 0 clamp(16px, 2vw, 34px); border-top: 1px solid var(--ink); padding: clamp(20px, 2.2vw, 36px) 0; align-items: start; }
.step-n { font: 400 clamp(38px, 3.4vw, 56px)/1 "DM Sans", sans-serif; letter-spacing: -.04em; }
.steps { font-size: inherit; } .steps p { margin-top: 8px; max-width: 34em; }

/* ---------- Questions ---------- */
.questions { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 90px); align-items: start; }
.questions h2 { position: sticky; top: calc(var(--bar) + 24px); }
.qa details { border-top: 1px solid var(--rule); }
.qa details:last-child { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 26px; gap: 20px; align-items: center; padding: 20px 0; font-size: clamp(21px, 1.75vw, 27px); letter-spacing: -.015em; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 18px; height: 18px; justify-self: end; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.qa details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.qa summary:hover { text-decoration: underline 1px; text-underline-offset: .2em; }
.qa p { max-width: 38em; padding: 0 46px 26px 0; }

/* ---------- Name ---------- */
/* the whole block is the wall: --wall is its colour, --on the text that stays readable on it (site.js) */
.samples { --wall: var(--ink); --on: var(--paper); background: var(--wall); color: var(--on); transition: background-color .45s, color .45s; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 110px); align-items: stretch; }
.paws-wall { align-self: center; position: relative; }
.samples :focus-visible { outline-color: currentColor; }
.paws { position: relative; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .22)); }
.paws img, .paws svg { display: block; width: 100%; height: auto; }
.paws-grey, .paws-lit { position: absolute; inset: 0; }
.paws .paws-grey { opacity: 0; transition: opacity .35s; }
.paws-lit g { opacity: 0; transition: opacity .35s; }
.is-picked .paws-grey { opacity: 1; }
.is-picked .paws-lit g.is-lit { opacity: 1; }
.samples-side { display: flex; flex-direction: column; align-items: flex-start; }
.samples-side h2 + p { margin-top: clamp(16px, 1.6vw, 26px); max-width: 34em; }
.wall-form { width: 100%; margin-top: clamp(22px, 2.4vw, 38px); }
.wall-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wall-form fieldset + fieldset { margin-top: 22px; }
.wall-form legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.wall-pick, .wall-own { position: relative; display: block; cursor: pointer; }
.wall-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wall-pick span { display: block; width: 54px; height: 54px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on) 55%, transparent); }
.wall-pick b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wall-pick input:checked + span { box-shadow: 0 0 0 3px var(--wall), 0 0 0 6px currentColor; }
.wall-pick input:focus-visible + span { outline: 3px solid currentColor; outline-offset: 8px; }
.wall-own { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px 0 8px; box-shadow: inset 0 0 0 1px currentColor; font-weight: 500; }
.wall-own input { width: 38px; height: 38px; padding: 0; border: 0; background: none; cursor: pointer; }
.wall-own.is-on { box-shadow: inset 0 0 0 3px currentColor; }
.wall-modes label { position: relative; cursor: pointer; }
.wall-modes input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wall-modes span { display: block; padding: 14px 20px 15px; line-height: 1; font-weight: 500; box-shadow: inset 0 0 0 1px currentColor; }
.wall-modes input:checked + span { background: var(--on); color: var(--wall); }
.wall-modes input:focus-visible + span { outline: 3px solid currentColor; outline-offset: 3px; }
.wall-out span { white-space: nowrap; }
.wall-reset { position: absolute; left: 0; top: 0; visibility: hidden; border: 0; background: none; color: inherit; padding: 12px 12px 12px 0; font: inherit; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.wall-reset:hover { text-decoration-thickness: 2px; }
.samples-ask { background: var(--on); color: var(--wall); }
.is-picked .wall-reset { visibility: visible; }
.wall-out { min-height: 2.6em; margin-top: 24px; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.3; letter-spacing: -.012em; }
.samples-note { margin-top: 8px; max-width: 34em; }
.wall-hint { margin-top: 12px; max-width: 30em; }
.samples .actions { margin-top: 24px; }
/* the words under the heading, like in the scenarios; the stitch beside them, the rest in one row below */
.made { --gap: clamp(18px, 2vw, 32px); display: grid; grid-template: "copy big" 1fr "side big" auto "row row" auto / minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 2.6vw, 40px) clamp(28px, 3.6vw, 64px); }
.made-head { grid-area: copy; }
.made-head h2 { font-size: clamp(34px, 3.5vw, 60px); }
.made-head .prose { margin-top: clamp(14px, 1.6vw, 26px); }
.made-wall { display: contents; }
.made-1 { --a: .75; } .made-2 { --a: 1.338; } .made-3 { --a: .77; } .made-4 { --a: 1.712; } .made-5 { --a: 1.5; } .made-6 { --a: .537; }
.made-wall img { width: 100%; aspect-ratio: var(--a); object-fit: cover; }
.made-2 { grid-area: big; display: flex; flex-direction: column; }
.made-2 .zoom { flex: 1; position: relative; min-height: 0; aspect-ratio: var(--a); }
.made-2 img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.made-4 { grid-area: side; }
.made-row { grid-area: row; display: flex; gap: var(--gap); }
.made-row figure { flex: var(--a) 1 0; min-width: 0; }
.made-4 img { mix-blend-mode: multiply; }
.name { display: grid; grid-template: "pic words" auto "pic record" 1fr "rooms rooms" auto / minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 3.6vw, 56px) clamp(32px, 6vw, 110px); align-items: start; }
.name-pic { grid-area: pic; }
.name-pic img { width: 100%; }
.name-cap { display: block; margin-top: 4px; }
.name-words { grid-area: words; }
.name-words .prose { margin-top: 26px; }
.name-record { grid-area: record; align-self: end; }
.name-rooms { grid-area: rooms; display: flex; gap: clamp(18px, 2vw, 32px); align-items: start; }
.name-rooms figure { flex: var(--a) 1 0; min-width: 0; }
.more { font-weight: 500; display: inline-block; padding: 10px 0; }
.record li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); border-top: 1px solid var(--rule); padding: 12px 0; font-variant-numeric: tabular-nums; }
.record-note { color: var(--muted); font-size: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }

/* ---------- Contact and foot ---------- */
.contact { background: var(--lime); padding: var(--y) var(--pad) clamp(56px, 6vw, 100px); }
.contact h2 { font-size: clamp(40px, 6.4vw, 96px); line-height: 1; max-width: 12em; }
.contact .lead { margin-top: 28px; }
.contact-people { margin-top: clamp(20px, 2vw, 32px); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px clamp(32px, 6vw, 96px); margin-top: clamp(36px, 4.4vw, 72px); font-size: clamp(25px, 3vw, 46px); letter-spacing: -.03em; line-height: 1.25; }
.foot { background: var(--lime); border-top: 1px solid var(--ink); margin: 0; padding: 22px var(--pad) 30px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; font-size: 16px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot a { display: inline-block; padding: 10px 0; }
.contact-links a { display: inline-block; padding: 8px 0; }

/* ---------- Story ---------- */
.story-hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 36px clamp(32px, 6vw, 110px); align-items: start; padding-top: clamp(36px, 4.4vw, 76px); }
.story-hero h1 { font-size: clamp(54px, 8.4vw, 132px); line-height: .94; }
.story-hero .lead { margin: 30px 0 18px; }
.story-ig { margin-top: 18px; }
.story-portrait { max-width: 320px; justify-self: end; width: 100%; }
.years { padding: 0 var(--pad); }
.year { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 18px clamp(24px, 4vw, 72px); align-items: start; border-top: 1px solid var(--rule); padding: clamp(32px, 4vw, 64px) 0; }
.year-n { font: 400 clamp(44px, 5.2vw, 88px)/.9 "Syne", sans-serif; letter-spacing: -.05em; }
.year-copy h2 { font-size: clamp(28px, 2.6vw, 44px); line-height: 1.08; margin-bottom: 16px; }
.year-copy p { max-width: 32em; }
.src { display: flex; flex-wrap: wrap; gap: 2px 24px; margin-top: 14px; font-size: 17px; }
.src a { padding: 5px 0; }
.press-list { margin-top: 36px; border-bottom: 1px solid var(--rule); }
.press-list li { display: grid; grid-template-columns: 4em minmax(0, 4fr) minmax(0, 7fr); gap: 4px 28px; border-top: 1px solid var(--rule); padding: 18px 0; align-items: baseline; }
.press-list b { font-weight: 500; }
.linklike { text-decoration: underline 1px; text-underline-offset: .18em; width: auto; }

/* ---------- Legal ---------- */
.legal-hero { padding-block: clamp(36px, 4.4vw, 72px); }
.legal-hero h1 { font-size: clamp(34px, 5.4vw, 88px); line-height: 1; margin-bottom: 20px; overflow-wrap: anywhere; }
.legal-lang { display: flex; gap: 22px; margin-top: 20px; }
.legal-lang [aria-current] { text-decoration-thickness: 3px; }
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 40px clamp(32px, 5vw, 90px); padding-top: 0; }
.legal-toc { position: sticky; top: calc(var(--bar) + 24px); align-self: start; font-size: 17px; }
.legal-toc ol { list-style: decimal; padding-left: 1.4em; }
.legal-toc a { display: inline-block; padding: 4px 0; }
.legal-text { max-width: 36em; }
.legal-text section { scroll-margin-top: 16px; }
.legal-text section + section { margin-top: 48px; }
.legal-text h2 { font-size: clamp(24px, 2.1vw, 34px); margin-bottom: 14px; }
.legal-text p + p { margin-top: 12px; }
.legal-text dl div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.legal-text dt { font-weight: 600; }
.legal-text address { font-style: normal; }

/* ---------- Viewer: the photo in full resolution; what does not fit is dragged, the map shows where you are ---------- */
html:has(.viewer[open]) { overflow: hidden; }
.viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--ink); color: var(--paper); touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; }
.viewer::backdrop { background: var(--ink); }
.viewer-bar { --vb: 66px; position: absolute; inset: 0 0 auto; z-index: 2; height: var(--vb); display: flex; align-items: center; gap: 10px; padding: 0 clamp(10px, 2vw, 28px); }
.viewer-bar button { width: 46px; height: 46px; padding: 0; border: 0; background: none; box-shadow: inset 0 0 0 1px currentColor; color: inherit; cursor: pointer; display: grid; place-items: center; }
.viewer-bar button:hover { background: var(--lime); color: var(--ink); }
.viewer-bar button:disabled { opacity: .35; pointer-events: none; }
.viewer-bar svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viewer-nav, .viewer-zoom { display: flex; align-items: center; gap: 6px; }
.viewer-nav[hidden] { display: none; }
.viewer-count { min-width: 3.4em; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.viewer-zoom { margin-left: auto; }
.viewer-bar .viewer-close { background: var(--lime); color: var(--ink); box-shadow: none; }
.viewer-stage { position: absolute; inset: 66px 0 0; overflow: hidden; touch-action: none; cursor: zoom-in; }
.viewer.is-zoomed .viewer-stage { cursor: grab; }
.viewer.is-drag .viewer-stage { cursor: grabbing; }
.viewer-stage img { position: absolute; left: 0; top: 0; max-width: none; max-height: none; transform-origin: 0 0; -webkit-user-drag: none; -webkit-touch-callout: none; }
.viewer.is-easing .viewer-stage img { transition: transform .28s var(--ease), width .28s var(--ease), height .28s var(--ease); }
.viewer.is-loading .viewer-stage::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 30%; background: var(--lime); animation: viewer-load 1.1s linear infinite; }
@keyframes viewer-load { from { transform: translateX(-100%); } to { transform: translateX(433%); } }
.viewer-cap { position: absolute; z-index: 2; left: 0; bottom: 0; margin: 0; max-width: calc(100% - 150px); padding: 10px 16px 11px clamp(14px, 2vw, 28px); background: var(--ink); font-size: 16px; line-height: 1.35; }
.viewer-cap:empty { display: none; }
.viewer-map { position: absolute; z-index: 2; right: clamp(10px, 2vw, 28px); bottom: 14px; width: 112px; background: var(--ink); box-shadow: 0 0 0 1px var(--paper), 0 0 0 3px var(--ink); cursor: pointer; touch-action: none; overflow: hidden; }
.viewer-map[hidden] { display: none; }
.viewer-map.is-tall { width: 64px; }
.viewer-map img { width: 100%; opacity: .62; }
.viewer-map i { position: absolute; box-shadow: 0 0 0 2px var(--lime), 0 0 0 200px rgba(34, 37, 30, .45); }
.viewer :focus-visible { outline-color: var(--lime); }
@media (max-width: 380px) { .viewer-bar { gap: 6px; } .viewer-nav, .viewer-zoom { gap: 4px; } .viewer-count { min-width: 2.6em; font-size: 15px; } .viewer-bar button { width: 44px; height: 44px; } }

/* ---------- Hero, stacked: phones and upright tablets ---------- */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .hero { display: flex; flex-direction: column; gap: clamp(18px, 4vw, 30px); padding: clamp(14px, 3vw, 26px) 0 0; min-height: calc(100lvh - var(--head)); }
  .hero-words { padding-inline: var(--pad); gap: clamp(12px, 3vw, 22px); }
  .hero h1 { font-size: min(calc((100vw - 2 * var(--gut)) / 7.75), 84px, 13svh); line-height: .98; }
  .hero h1 span:nth-child(1), .hero h1 span:nth-child(2) { display: inline; }
  .hero h1 span:nth-child(2) { margin-left: 0; }
  .hero .lead { font-size: clamp(18px, 4.9vw, 25px); line-height: 1.34; }
  .hero .actions { margin-top: 16px; gap: 6px 22px; }
  .hero .actions .btn { flex: 0 0 auto; padding: 16px 22px 17px; }
  .hero-pics { flex: 1; min-height: 70vw; }
  .hero-pics figcaption { padding-left: var(--pad); top: 0; bottom: auto; padding: 7px 14px 8px var(--pad); }
}

/* ---------- Narrow ---------- */
@media (min-width: 861px) and (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero h1 { --col: calc((100vw - 2 * var(--pad) - clamp(28px, 3.6vw, 64px)) * 5 / 12); }
  .scene, .made { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .scene.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .samples { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
}
@media (min-width: 861px) {
  .questions + .name { padding-top: 0; }
  .scene + .made { padding-top: clamp(20px, 2vw, 36px); }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  /* the words first, then the picture (owner, 30.11.2026); the note about the tags stands above the first scenario */
  .scene, .scene.is-flip { --pt: 56px; display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding-bottom: 56px; }
  .scene:not(.dark) + .scene:not(.dark) { --pt: 8px; scroll-margin-top: 24px; }
  .scene-copy { display: contents; }
  .scene-copy .prose { margin-top: -6px; }
  .gal { order: 1; }
  .concept-note { --pt: 44px; gap: 10px; }
  .legend { flex-direction: column; gap: 4px; }
  .concept-note + .scene { --pt: 52px; }
  .gal-note { padding-inline: var(--pad); margin-top: 8px; }
  .scene-side { align-self: stretch; order: 3; }
  .gal { margin-inline: calc(-1 * var(--pad)); padding-bottom: 4px; }
  .gal-slide figcaption { padding: 0 180px 0 var(--pad); }
  .gal-nav { right: var(--pad); }
  .thumbs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 8px; }
  .thumbs li { flex: 0 0 calc((100% - 16px) / 3); }
}
@media (max-width: 860px) {
  :root { --y: 56px; }
  body { font-size: 18px; }
  /* the words, the rug, the awards */
  .name { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .name-words { order: -1; }
  .name-record { align-self: stretch; order: 1; }
  .name-rooms { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 26px clamp(14px, 2.4vw, 24px); }
  .name-rooms img { aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--op, 50% 50%); }
  .questions, .story-hero, .year, .legal { grid-template-columns: minmax(0, 1fr); }
  .questions h2, .legal-toc { position: static; }
  .process, .machine-top { grid-template-columns: minmax(0, 1fr); }
  .machine .film-frame { height: auto; width: min(100%, calc((100svh - var(--bar) - 40px) * .75)); aspect-ratio: 3 / 4; margin: 0; }
  .process-head .zoom { aspect-ratio: 4 / 3; flex: none; }
  .process-head .pic { min-height: 0; }
  .story-portrait { justify-self: start; max-width: 280px; }
  .year-pic { max-width: 440px; }
  .press-list li { grid-template-columns: 3.4em minmax(0, 1fr); }
  .press-list li > :last-child { grid-column: 2; }
}
@media (max-width: 860px) and (max-aspect-ratio: 3/4) {
  .machine .film-frame { width: 100%; }
}
@media (max-width: 620px) {
  :root { --y: 40px; }
  .bar nav { display: none; }
  .bar { gap: 12px; }
  .bar-brand { font-size: min(17px, 4.1vw); }
  .bar-cta { padding: 13px clamp(10px, 4vw, 16px) 14px; font-size: min(17px, 4.6vw); flex: none; }
  .bar-brand { flex: none; }
  .scene-copy h2, .made-head h2 { font-size: 30px; }
  .hero { padding-top: 24px; }
  /* the scene keeps its proportions: the heading stays at the top, the words and the button come down to the picture */
  .hero-words { flex: 1; justify-content: space-between; gap: 18px; }
  .hero-pics { flex: 0 0 auto; min-height: 0; }
  .hero-room { aspect-ratio: 2433 / 2048; }
  .scene, .scene.is-flip { --pt: 40px; padding-bottom: 40px; }
  .scene:not(.dark) + .scene:not(.dark) { --pt: 8px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .hero .actions { gap: 4px 15px; }
  .hero .actions .btn { padding: 15px 17px 16px; }
  .hero-more { font-size: 17px; letter-spacing: -.01em; }
  .qa p { padding-right: 0; }
  .legal-text dl div { grid-template-columns: minmax(0, 1fr); }
}
/* iPhone Safari: 100lvh stops about 60px above the bottom edge, where the floating toolbar lies over the page.
   The picture runs on underneath: more felt shows, the flower keeps its size. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 620px) and (orientation: portrait) { .hero { min-height: calc(100lvh - var(--head) + 64px); } }
}
/* tall phones: three lines as on a desktop, and the same air above and below every block (owner, 30.11.2026) */
@media (min-width: 360px) and (max-width: 620px) and (max-aspect-ratio: 62/100) {
  .hero { padding-top: 30px; gap: 28px; }
  .hero-words { gap: 22px; justify-content: space-between; }
  .hero-copy { display: contents; }
  .hero .actions { margin-top: 0; }
  .hero h1 { font-size: calc((100vw - 2 * var(--gut)) / 5.85); line-height: 1; margin-top: 0; }
  .hero h1 span:nth-child(1), .hero h1 span:nth-child(2) { display: block; }
  .hero h1 span:nth-child(2) { margin-left: -.037em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

@media (max-width: 860px) {
  .made { display: block; }
  .made-head { margin-bottom: 28px; }
  .made-row { display: contents; }
  .made-wall figure { grid-area: auto; }
  .made-2 { display: block; }
  .made-2 .zoom { aspect-ratio: auto; }
  .made-2 img { position: static; height: auto; aspect-ratio: var(--a); }
  .made-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .made-wall .made-2 { grid-column: 1 / -1; }
  .made-wall .made-1 { order: -2; } .made-wall .made-3 { order: -1; }
  .made-1, .made-3 { --a: .76; } .made-4, .made-5 { --a: 1.6; }
  .made-wall .made-6 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; align-items: end; }
  .made-6 figcaption { margin: 0; }
}
@media (max-width: 620px) {
  .made-wall .made-4, .made-wall .made-5 { grid-column: 1 / -1; }
  .made-4 { --a: 1.712; } .made-5 { --a: 1.5; }
}

@media (max-width: 860px) {
  .samples { display: flex; flex-direction: column; gap: 0; }
  .samples-side, .wall-form:not([hidden]) { display: contents; }
  .samples h2, .samples-side h2 + p { order: -2; }
  .paws-wall { order: -1; align-self: center; width: min(100vw, 560px); margin: 22px calc(-1 * var(--pad)) 0; padding: 34px 6px 0; }
  .wall-out { min-height: 2.7em; margin: 14px 0 14px; }
  .wall-reset { left: var(--pad); top: -8px; }
  .wall-form legend { margin-bottom: 8px; }
  .wall-form fieldset + fieldset { margin: 18px 0 0; }
  .samples-note { margin-top: 22px; }
  .wall-out { order: 0; } .wall-picks { order: 1; } .wall-modes { order: 2; } .wall-hint { order: 2; } .samples-note { order: 3; } .samples .actions { order: 4; }
}
@media (max-width: 620px) {
  .wall-form .wall-picks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .wall-picks legend { grid-column: 1 / -1; }
  .wall-pick span { width: 100%; height: 48px; }
  .wall-own { grid-column: span 2; min-height: 48px; padding: 0 10px 0 6px; gap: 8px; justify-content: center; font-size: 16px; white-space: nowrap; }
  .wall-own input { width: 30px; height: 30px; }
  .wall-modes label { flex: 1; text-align: center; }
}
