/* RR Interiors Monaco · variant v2 "Evolved" (see DESIGN-v2.md).
   Same world as v1 (cream, Caslon, DM Sans, photography first); bigger editorial type, one motion language.
   Options live on <html data-*>: type, palette, grain, motion, titles, smooth, transition, hero, gallery,
   plus the reader's own data-theme="dark". */

/* ---------- Fonts (self-hosted copies of the Google Fonts files, rules verbatim) and lenis.css (lenis@1.3.26) ---------- */
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(/assets/fonts/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(/assets/fonts/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(/assets/fonts/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(/assets/fonts/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Caslon Display';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/TuGOUUFxWphYQ6YI6q9Xp61FQzxDRKmzr1lYfxlPCz4c3AU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Caslon Display';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/TuGOUUFxWphYQ6YI6q9Xp61FQzxDRKmzr1lWfxlPCz4c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/DdT678IGsGw1aF1JU10PUbTvNNaDMfq95-5DGjG2u9vUKg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/DdT678IGsGw1aF1JU10PUbTvNNaDMfq95-BDGjG2u9s.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/DdT878IGsGw1aF1JU10PUbTvNNaDMfq21-JJHRO0i9o.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/DdT878IGsGw1aF1JU10PUbTvNNaDMfq41-JJHRO0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(/assets/fonts/DdT578IGsGw1aF1JU10PUbTvNNaDMfID8vdqPx6esdPsE-Y.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(/assets/fonts/DdT578IGsGw1aF1JU10PUbTvNNaDMfID8vdkPx6esdPs.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* Images sit in <picture> for their WebP copies; neither the picture nor its <source> adds a box (no extra flex or grid
   item, no gap), so every rule below sizes the img itself. Source selection reads attributes, not layout. */
picture { display: contents; }
picture > source { display: none; }

:root {
  /* a darker, greyer beige than v1's #f5f1e5 (client, 2026-11-20); muted text darkened with it to keep 5:1 */
  --bg: #e8e1d3;
  --bg-alt: #d6cec0;
  --text: #383839;
  --muted: #5e5a52;
  --line: rgb(56 56 57 / .16);
  --on-image: #f6f0de;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Caslon Text", "Adobe Caslon Pro", Georgia, serif;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-ui: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(20px, 4vw, 64px);
  /* the side margin of the split pages, and on Who we are of everything below the split: one left edge for the whole
     page and the same margin on the right (client, 2026-11-18). The gutter on phones. */
  --edge: clamp(32px, 6vw, 108px);
  --hh: 84px;
  --row: min(calc(100% - 2 * var(--gutter)), 1296px);
  --row-wide: min(calc(100% - 2 * var(--gutter)), 1440px);
  --section: clamp(88px, 10vw, 150px);

  /* Editorial type scale (default). Tracking tightens as size grows. */
  --f-display: var(--display);
  --t-d1: clamp(2.1rem, 1rem + 4.6vw, 6rem);      --tr-d1: .04em;
  --t-d2: clamp(1.8rem, 1rem + 2.9vw, 4.25rem);   --tr-d2: .06em;
  --t-d3: clamp(1.35rem, 1rem + 1.6vw, 2.6rem);   --tr-d3: .05em;
  --t-credo: clamp(1.5rem, 1rem + 2.1vw, 3rem);
  --t-quote: clamp(1.3rem, 1rem + 1.2vw, 2.1rem);
  --t-lead: clamp(1.15rem, 1rem + .75vw, 1.6rem);
  --t-card: 15px;  --tr-card: 4px;
}
/* "Leise": the v1 scale, small widely tracked caps everywhere. */
[data-type="quiet"] {
  --f-display: var(--serif);
  --t-d1: 30px;    --tr-d1: 15px;
  --t-d2: 13px;    --tr-d2: 8px;
  --t-d3: 14px;    --tr-d3: 5px;
  --t-credo: 22px;
  --t-quote: 22px;
  --t-lead: 17px;
  --t-card: 13px;  --tr-card: 5px;
}
[data-palette="creme-v1"] { --bg: #f5f1e5; --bg-alt: #e1dbd0; --muted: #66625a; }
[data-palette="pierre"] { --bg: #ecebe6; --bg-alt: #dbdad3; --text: #2e3032; --muted: #5d605e; --line: rgb(46 48 50 / .16); }
/* Dark mode ("Nuit"), the reader's switch in the header; it wins over the light palettes. */
[data-theme="dark"] { --bg: #1c1b19; --bg-alt: #272522; --text: #ece6d8; --muted: #a49e92; --line: rgb(236 230 216 / .16); color-scheme: dark; }

/* ---------- Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: color-mix(in srgb, var(--text) 35%, transparent) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 11px/1.7 var(--sans);
  letter-spacing: .5px;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--text);
}
::selection { background: var(--text); color: var(--bg); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--bg); padding: 8px 12px; }
.skip:focus { top: 16px; }
.arrow { width: .8em; height: .8em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .5s var(--ease-out); }
.arrow-long { display: block; height: auto; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .6s var(--ease-out); }
/* The monogram in the logo's own drawing (rr.svg, 2461 x 1230): the two R's joined back to back (client, 2026-11-23).
   As tall as the text's capitals, standing on the baseline; one box, so a justified line cannot pull it apart. An
   inherited indent (the tab titles' hanging one) would land inside the box. */
.rr { position: relative; display: inline-block; height: .66em; aspect-ratio: 2461 / 1230; vertical-align: baseline; text-indent: 0; }
.rr::before { content: ""; position: absolute; inset: 0; background: currentColor; mask: url(rr.svg) center / contain no-repeat; }
.footer .rr { height: .7em; }
/* "interiors monaco" in the logo's own glyphs (interiors-monaco.svg, 2480 x 216), always lower case (client,
   2026-11-20). In running text its x-height (72% of the box) matches the serif's, and it stands on the baseline. */
.im { position: relative; display: inline-block; height: .64em; aspect-ratio: 2480 / 216; vertical-align: baseline; text-indent: 0; }
.im::before { content: ""; position: absolute; inset: 0; background: currentColor; mask: url(interiors-monaco.svg) center / contain no-repeat; }
/* DM Sans has a taller x-height than the serif: a little larger in the footer's sans lines. */
.footer .im { height: .74em; }
/* In the about page's section name as in the logo: the words as wide as the monogram beside them, but never narrower
   than 180px, where their x-height would drop under 12px and stop reading. */
.tabs__name .im { height: auto; width: max(1.3em, 180px); }
/* The footer's name: the words three quarters as tall as the monogram (its capitals are .7em), in a light weight of
   the logo's lettering (client, 2026-11-20). */
.footer__mark .im { height: .525em; }
.footer__mark .im::before { mask-image: url(interiors-monaco-light.svg); }

/* ---------- Type primitives ---------- */
.page-title, .section-title, .p-title, .peak__title, .zoom__title, .p-next__title, .plist__title, .footer__cta {
  font-family: var(--f-display);
  font-weight: 400;
  /* a touch heavier than the Display cut's hairlines (client, 2026-11-23); the face has no second weight */
  -webkit-text-stroke: .012em currentColor;
  text-transform: uppercase;
}
/* Titles are split into letters for their entrance (v2.js), and a split loses kerning. Setting them unkerned from the
   start keeps the split and the finished title the same width, so nothing re-wraps or jumps when the split ends. */
[data-chars] { font-kerning: none; }
.page-title { font-size: var(--t-d1); line-height: 1; letter-spacing: var(--tr-d1); text-wrap: balance; }
.section-title { font-size: var(--t-d2); line-height: 1.02; letter-spacing: var(--tr-d2); }
.section-title a { display: inline-block; }
.count { font: 500 11px/1 var(--sans); letter-spacing: 1px; color: var(--muted); vertical-align: top; margin-left: .7em; position: relative; top: .35em; }
.meta { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.meta a { transition: color .2s; }
.meta a:hover { color: var(--text); }
.meta .sep, .footer__copy .sep { margin: 0 10px; }
.label { font: 600 11px/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; }
.prose { max-width: 62ch; }
.prose p { font: 16.5px/28px var(--serif); letter-spacing: .2px; text-align: justify; hyphens: auto; }
.prose p + p { margin-top: 24px; } /* the gap alone marks a paragraph; no first-line indent (client, 2026-11-18) */
.prose--lead p { font-size: var(--t-lead); line-height: 1.5; text-align: left; hyphens: manual; }
.link-more { display: inline-flex; align-items: center; gap: 12px; font: 500 11px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid currentColor; }
.link-more:hover .arrow, .footer__cta:hover .arrow, .pan__more:hover .arrow { transform: translateX(5px); }
.address { font: 15px/1.7 var(--serif); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--hh); padding: 0 var(--gutter);
  color: var(--text); background: var(--bg); box-shadow: 0 1px 0 var(--line);
  view-transition-name: header;
  transition: transform .6s var(--ease-io);
}
/* Light glass (client, 2026-11-18): the page colour at 75 % over a blurred backdrop, so the home hero shows through.
   75 % (and the languages at .9) keeps every label at 4.5:1 even over pure black or white. Opaque without blur, for less
   transparency, and under the open menu. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (color: color-mix(in srgb, red, red)) {
  .header { background: color-mix(in srgb, var(--bg) 75%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
}
@media (prefers-reduced-transparency: reduce) { .header { background: var(--bg); } }
.header.is-hidden { transform: translateY(-101%); }
.menu-open .header { transform: none; background: var(--bg); }
.logo { justify-self: start; display: block; height: 50px; aspect-ratio: 2480 / 1594; }
/* the client's logo (traced SVG) as a mask, so it takes the header's colour in every state; on ::before so the focus ring isn't masked */
.logo::before { content: ''; display: block; height: 100%; background: currentColor; mask: url(logo.svg) center / contain no-repeat; }

.nav__list { display: flex; gap: clamp(16px, 2vw, 30px); }
.nav__link { position: relative; display: flex; align-items: center; height: var(--hh); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(50% - 13px); height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-ui);
}
.nav__item:hover > .nav__link::after, .nav__item:focus-within > .nav__link::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); transform-origin: left; }

/* Mega panel: the sub-links on the left, the hovered project's cover on the right. */
.nav__item.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); color: var(--text);
  box-shadow: 0 1px 0 var(--line), 0 40px 60px -40px rgb(40 32 24 / .25);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .35s var(--ease-io), visibility 0s .35s;
}
.has-mega:hover > .mega, .has-mega:focus-within > .mega {
  clip-path: inset(0 0 -60px 0); visibility: visible;
  transition: clip-path .55s var(--ease-io) .06s, visibility 0s .06s;
}
.mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) min(36vw, 520px); gap: var(--gutter); padding: 40px var(--gutter) 48px; }
.mega__list { columns: 2 260px; column-gap: 40px; align-self: start; }
.mega__list a {
  display: block; padding: 7px 0; break-inside: avoid;
  font: 400 clamp(17px, 1.4vw, 21px)/1.3 var(--serif); letter-spacing: .2px; text-transform: none;
  transition: color .2s, transform .45s var(--ease-out);
}
.mega__list:has(a:hover) a:not(:hover) { color: var(--muted); }
.mega__list a:hover { transform: translateX(6px); }
.mega__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.mega__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform 1.2s var(--ease-out); }
.mega__media img.is-on { opacity: 1; transform: none; }

.tools { justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang { display: flex; align-items: center; font-size: 11px; letter-spacing: 2px; }
.lang .sep { margin: 0 6px; opacity: .5; }
.lang a { opacity: .9; transition: opacity .2s; }
.lang a:hover, .lang a:focus-visible { opacity: 1; }
.lang [aria-current] { font-weight: 600; }
.icon-btn { display: grid; place-items: center; width: 28px; height: 28px; transition: transform .16s var(--ease-ui); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.3; }
/* Light/dark switch: a half-filled circle that turns over when dark mode is on. */
[data-theme-toggle] svg { transition: transform .7s var(--ease-io); }
[data-theme-toggle] svg .fill { fill: currentColor; stroke: none; }
[data-theme="dark"] [data-theme-toggle] svg { transform: rotate(180deg); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.3; }
/* The burger with its name beside it: the two lines alone did not read as a menu (client, 2026-11-23). */
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.menu-btn__icon { position: relative; width: 28px; height: 28px; }
.menu-btn__icon span { position: absolute; left: 4px; right: 4px; height: 1.2px; background: currentColor; transition: transform .5s var(--ease-io); }
.menu-btn__icon span:first-child { top: 10px; }
.menu-btn__icon span:last-child { top: 17px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: var(--bg); padding: calc(var(--hh) + 20px) var(--gutter) 28px;
}
.mnav[hidden] { display: none; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__item > a, .mnav__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0;
  font: 400 clamp(1.5rem, 6.6vw, 2.2rem)/1.15 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  list-style: none; cursor: pointer;
}
[data-type="quiet"] .mnav__item > a, [data-type="quiet"] .mnav__item summary { font-size: 15px; letter-spacing: 3px; }
.mnav__item summary::-webkit-details-marker { display: none; }
.mnav__line { display: block; overflow: hidden; padding-bottom: .06em; }
.mnav__line > span { display: block; }
.plus { position: relative; width: 14px; height: 14px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .4s var(--ease-io); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
.mnav__sub { padding: 0 0 18px; }
.mnav__sub a { display: block; padding: 9px 0; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.mnav__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.mnav__tools { display: flex; align-items: center; gap: 28px; }
.mnav__foot .address { font-size: 13px; text-align: right; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 97%, transparent); }
.search-overlay[hidden] { display: none; }
.search-form { display: flex; align-items: center; gap: 24px; width: min(760px, 86vw); border-bottom: 1px solid var(--text); }
.search-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); padding: 14px 0;
  font: clamp(22px, 3vw, 34px) var(--f-display); letter-spacing: .08em; text-transform: uppercase; outline: none;
}
.search-form input::placeholder { color: var(--muted); }
.search-close { position: absolute; top: 30px; right: var(--gutter); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 8px 0; }

/* ---------- Home: hero slider ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; color: var(--on-image); }
/* The photo runs up under the glass header; the caption and the scrim centre in the part below it, as when the photo
   started there. */
.hero__frame { position: absolute; inset: 0; overflow: hidden; background: #2b2723; clip-path: inset(0); }
.slide { position: absolute; inset: 0; display: block; visibility: hidden; }
.slide.is-active { visibility: visible; z-index: 1; }
.slide.is-front { z-index: 2; }
.slide__media, .slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The courtyard with the pool (4:3). x: on portrait screens the left garden door and the pool's axis stay under the
   logo. y: wide screens lose the upper windows rather than the pool and the loungers. */
.slide__media img { object-position: 50% 55%; }
/* 4:3 and narrower: the photo is 12% taller than the frame and hangs from its bottom edge, so the pool is wider than the
   quote and its pale stone rim clears the first line (measured, 2026-11-18). */
@media (max-aspect-ratio: 4/3) { .slide__media img { inset: auto 0 0; height: 112%; } }
.slide__shade, .p-hero__shade, .peak__shade, .zoom__shade {
  position: absolute; inset: 0; pointer-events: none;
  /* top band keeps the light header legible; the bottom-left band sits only under the caption */
  background: linear-gradient(to bottom, rgb(0 0 0 / .32), rgb(0 0 0 / 0) 22%), linear-gradient(to top right, rgb(0 0 0 / .55), rgb(0 0 0 / 0) 58%);
}
/* The courtyard is sunlit stone right where the logo sits: a calm scrim behind the caption, lighter towards the edges. */
.slide__shade { inset: var(--hh) 0 0; background: radial-gradient(ellipse 50% 48% at 50% 76%, rgb(0 0 0 / .48) 25%, rgb(0 0 0 / .1)); } /* below the glass header, as before */
/* Phones: 260px to each side, so the scrim still covers both ends of the quote. A media query, because Chrome drops a
   gradient whose radius is max(50%, 260px). */
@media (max-width: 520px) { .slide__shade { background: radial-gradient(ellipse 260px 48% at 50% 76%, rgb(0 0 0 / .48) 25%, rgb(0 0 0 / .1)); } }
/* Low in the photo, the logo over the pool (client, 2026-11-20), so the house stays clear, and the quote's last line on
   the water: wider than 4:3 the photo spans the width (height .75W, offset by object-position 55%), so the pool's rim
   (91.2% down the photo) lies .45H - .2715W above the frame's foot; 28px clear of it. Placed by margins, not a
   translate: GSAP owns the caption's transform in the scroll scene (v2.js). */
.slide__caption { position: absolute; z-index: 2; inset: var(--hh) 0 0; margin: auto auto max(clamp(20px, 3vh, 40px), calc(45svh - 27.15vw + 28px)); width: fit-content; height: fit-content; max-width: calc(100% - 2 * var(--gutter)); display: grid; justify-items: center; text-align: center; }
/* 4:3 and narrower the photo hangs from its bottom edge and the pool's pale rim is the last ~10% of the frame: lift the
   quote clear of it, onto the water. */
@media (max-aspect-ratio: 4/3) { .slide__caption { margin-bottom: 14vh; } }
/* The client's logo, masked like the header's so it takes the hero's colour. */
.slide__logo { width: clamp(133px, 13.3vw, 224px); aspect-ratio: 2480 / 1594; background: currentColor; mask: url(logo.svg) center / contain no-repeat; }
.slide__text { display: block; margin-top: clamp(17px, 1.8vw, 25px); font: 400 clamp(13px, .63rem + .25vw, 14px)/1.5 var(--serif); text-wrap: balance; text-transform: lowercase; } /* lower case: client, 2026-11-20 */
/* Logo and quote 30% smaller than before, the quote on one line and low on the water (client, 2026-11-23). Phones
   may wrap it. */
@media (min-width: 600px) { .slide__text { white-space: nowrap; } }
.hero__ticks { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(76px, 13vh, 130px); display: flex; gap: 8px; }
.tick { display: grid; align-items: center; width: 46px; height: 28px; }
.tick span { position: relative; display: block; height: 1px; background: rgb(255 255 255 / .35); overflow: hidden; }
.tick span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; }
.tick:hover span { background: rgb(255 255 255 / .7); }
.no-motion .tick.is-active span::after { --p: 1; }

[data-type="quiet"] .hero__ticks { right: 50%; transform: translateX(50%); bottom: 30px; }

/* ---------- Home: credo ---------- */
.credo { padding: clamp(110px, 16vw, 230px) var(--gutter) clamp(70px, 10vw, 150px); }
.credo__text { max-width: 24em; margin: 0 auto; text-align: center; font: 400 var(--t-credo)/1.3 var(--serif); letter-spacing: -.005em; text-wrap: balance; }

/* ---------- Card sections ---------- */
.cards-section, .pan, .index-section { position: relative; padding: var(--section) 0 calc(var(--section) * .7); }
.section-head { width: var(--row); margin: 0 auto clamp(40px, 5.5vw, 80px); }
[data-type="quiet"] .section-head { text-align: center; }
.side-rail { position: absolute; top: 0; bottom: 0; width: 12px; pointer-events: none; }
.side-rail--l { left: 30px; }
.side-rail--r { right: 30px; }
.side { position: sticky; top: calc(50vh - 50px); display: flex; flex-direction: column; align-items: center; font: 11px/18.7px var(--serif); text-transform: uppercase; color: var(--muted); }
.cat .side-rail { top: 50vh; }

.grid { width: var(--row); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(56px, 6vw, 84px) 20px; }
.card { grid-column: span 1; min-width: 0; }
.card--2 { grid-column: span 2; }
.card__media { position: relative; display: block; aspect-ratio: 307 / 428; overflow: hidden; background: var(--bg-alt); }
.card--2 .card__media { aspect-ratio: 632 / 428; }
/* Home rail: each row is a flex line, so the hovered card can take the wide slot. The 20px basis is the gap a span-2 card covers. */
.grid__row { grid-column: 1 / -1; display: flex; gap: 20px; container-type: inline-size; }
.grid__row > .card { flex: 1 1 0; }
.grid__row > .card--2 { flex: 2 1 20px; }
.grid__row .card__media { aspect-ratio: auto; height: calc((100cqw - 60px) * 107 / 307); } /* narrow width × 428 / 307, fixed while widths animate */
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { font: 400 var(--t-card)/1.4 var(--serif); letter-spacing: var(--tr-card); text-transform: uppercase; padding-top: 26px; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-ui); }
.card__text { margin-top: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 60ch; }
.card .meta, .pan__item .meta { margin-top: 16px; }
@media (hover: hover) and (pointer: fine) {
  .card__media img, .pan__media img { transition: transform 1.2s var(--ease-out); }
  .card:hover .card__media img, .pan__item:hover .pan__media img { transform: scale(1.045); }
  .card:hover .card__title a, .pan__item:hover .card__title a { background-size: 100% 1px; }
  .card, .pan__item { transition: opacity .5s ease, filter .5s ease; }
  .grid:has(.card:hover) .card.is-in:not(:hover), .pan__track:has(.pan__item:hover) .pan__item.is-in:not(:hover) { opacity: .45; filter: saturate(.6); }
  /* rows that mix wide and narrow: the hovered card takes the wide slot, the rest narrow; all-wide rows stay put */
  .grid__row > .card { transition: opacity .5s ease, filter .5s ease, flex .9s var(--ease-out); }
  .grid__row:has(> .card:not(.card--2)):has(> .card:hover) > .card { flex: 1 1 0; }
  .grid__row:has(> .card:not(.card--2)):has(> .card:hover) > .card:hover { flex: 2 1 20px; }
}

/* ---------- Home: the peak (a small window opens into a whole room) ---------- */
.peak { position: relative; height: 100svh; min-height: 560px; }
.peak__stage { position: relative; height: 100%; overflow: hidden; }
.peak.is-held .peak__stage { position: sticky; top: 0; height: 100svh; } /* phones: v2.js makes the section taller */
.peak__frame { position: absolute; inset: 0; display: block; overflow: hidden; }
.peak__frame img { width: 100%; height: 100%; object-fit: cover; }
.peak__caption { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(56px, 10vh, 110px); width: min(720px, calc(100% - 2 * var(--gutter))); color: var(--on-image); }
.peak__title, .zoom__title { font-size: var(--t-d1); line-height: 1; letter-spacing: var(--tr-d1); }
.peak__text { margin-top: 18px; max-width: 46ch; font-size: 14px; line-height: 1.6; color: #fff; }
.feature__more { display: inline-block; margin-top: 26px; padding: 6px 0; color: var(--on-image); }
.feature__more .arrow-long { width: 60px; }
:is(.peak__caption, .zoom__caption):has(a:hover, a:focus-visible) .arrow-long { transform: translateX(12px); }

/* ---------- Home: horizontal pan through the villas (pinned on desktop, a swipe rail elsewhere) ---------- */
.pan__track {
  display: flex; align-items: flex-end; gap: clamp(20px, 2.4vw, 40px);
  padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: var(--gutter); scrollbar-width: none;
}
.pan__track::-webkit-scrollbar { display: none; }
.pan__item { flex: none; width: clamp(260px, 32vw, 520px); scroll-snap-align: start; }
.pan__item:nth-child(even) { width: clamp(300px, 46vw, 760px); }
.pan__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.pan__item:nth-child(even) .pan__media { aspect-ratio: 5 / 4; }
.pan__media img { width: 100%; height: 100%; object-fit: cover; }
/* End of the rail: no box, the words in display type and an arrow that draws itself in (v2.js). */
.pan__more {
  flex: none; align-self: stretch; width: clamp(220px, 22vw, 340px); scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 0 0 6px clamp(20px, 2vw, 32px);
}
.pan__more-label { font: 400 var(--t-d2)/1 var(--f-display); letter-spacing: var(--tr-d2); text-transform: uppercase; transition: transform .7s var(--ease-out); }
.pan__more-cat { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pan__more-cat .count { margin-left: .5em; top: -.2em; }
.pan__more-line { display: block; margin-top: 16px; clip-path: inset(-6px calc((1 - var(--draw, 1)) * 112% - 14px) -6px -6px); }
.pan__more-line .arrow-long { width: 96px; }
.pan__more:hover .pan__more-label { transform: translateX(8px); }
.pan__more:hover .arrow-long { transform: translateX(12px); }
/* Tweak "viewall": the words turned to read upwards, or stacked letter over letter like the side rails. */
[data-viewall="turned"] .pan__more-label { align-self: flex-start; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
[data-viewall="turned"] .pan__more:hover .pan__more-label { transform: rotate(180deg) translateY(8px); }
[data-viewall="stacked"] .pan__more-label { align-self: flex-start; writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; line-height: 1; font-size: var(--t-d3); }
[data-viewall="stacked"] .pan__more:hover .pan__more-label { transform: translateY(-8px); }
.pan.is-pan { padding: 0; }
.pan.is-pan .pan__inner { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.pan.is-pan .pan__track { overflow: visible; width: max-content; scroll-snap-type: none; }

/* ---------- Home: sport zoom ---------- */
.zoom { position: relative; height: 105svh; min-height: 560px; overflow: hidden; color: var(--on-image); }
.zoom__media, .zoom__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom__caption { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(56px, 10vh, 110px); width: min(760px, calc(100% - 2 * var(--gutter))); }
.zoom__text { margin-top: 18px; font: 400 clamp(1.1rem, 1rem + .6vw, 1.5rem)/1.45 var(--serif); color: #fff; max-width: 32ch; }
/* Sport as a model (tweak "sport"): the cut-out plan stands on the page in three slices lifted apart in 3D; v2.js
   tilts it with the scroll (--rx, --rz) and the pointer (--px, --py), or flies it on a scroll-driven orbit that also
   swings (--py), dollies (--tz) and rises (--ty) (tweak "sportmove"). The caption sits in the empty corner the
   plan's sloping edge leaves, top right. Nothing between .zoom__model and the slices may carry a filter, overflow
   or clip-path, which would flatten the 3D.
   Sport cut out ("cutout"): the scan's frame and zoom, with the plan cut out of its white paper so it lies flat on
   the page; no shade, and the caption takes the same empty corner. "turned" turns it round (180°), which moves that
   corner to the bottom left, under the caption's usual place. The model turns the same way with tweak "sportturn"
   (--turn, innermost, so the plan turns in its own plane and the motion stays as it is). */
.zoom__model, .zoom__cut { display: none; }
:is([data-sport="cutout"], [data-sport="turned"]) .zoom--relief .zoom__media img:not(.zoom__cut) { display: none; }
:is([data-sport="cutout"], [data-sport="turned"]) .zoom--relief .zoom__cut { display: block; }
/* The frame stops short of the caption's side, so the plan's sloping edge clears it even on short, wide screens. */
[data-sport="cutout"] .zoom--relief .zoom__media { inset: max(16vh, 150px) 0 0; height: auto; }
[data-sport="turned"] .zoom--relief .zoom__media { inset: 0 0 max(16vh, 225px); height: auto; transform: rotate(180deg); } /* the caption here is the full-width one, so it needs more room */
:is([data-sport="model"], [data-sport="cutout"], [data-sport="turned"]) .zoom--relief { --on-image: var(--text); }
:is([data-sport="model"], [data-sport="cutout"], [data-sport="turned"]) .zoom--relief .zoom__shade, [data-sport="model"] .zoom--relief .zoom__media { display: none; }
[data-sport="model"] .zoom--relief .zoom__model { display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; padding-top: 12vh; perspective: 1600px; perspective-origin: 50% 0%; }
:is([data-sport="model"], [data-sport="cutout"], [data-sport="turned"]) .zoom--relief .zoom__text { color: var(--text); }
/* :where keeps the specificity of the phone rules below, which must still win. */
:is([data-sport="model"]:not(:where([data-sportturn="turned"])), [data-sport="cutout"]) .zoom--relief .zoom__caption { top: clamp(110px, 15vh, 170px); bottom: auto; left: auto; right: var(--gutter); width: min(480px, 36vw); }
[data-sportturn="turned"] .zoom--relief .zoom__model { padding: 0 0 max(16vh, 225px); }
.relief {
  --lift: min(36px, 2.4vw); /* height of the tallest slice, about 2.5% of the plan's width */
  position: relative; flex: none; width: min(1480px, 94vw); aspect-ratio: 2560 / 1146; transform-style: preserve-3d;
  transform: translateY(var(--ty, 0px)) translateZ(var(--tz, 0px)) rotateX(calc(var(--rx, 32deg) + var(--px, 0deg))) rotateY(var(--py, 0deg)) rotateZ(var(--rz, 0deg)) rotateZ(var(--turn, 0deg));
}
[data-sportturn="turned"] .relief { --turn: 180deg; }
.relief__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The drawing is lit from the top right (its buildings cast their shadows down and left), so the lifted slices do too. */
.relief__layer:nth-child(2) { transform: translateZ(calc(var(--lift) * .45)); filter: drop-shadow(-.2vw .25vw .25vw rgb(30 34 16 / .3)); }
.relief__layer:nth-child(3) { transform: translateZ(var(--lift)); filter: drop-shadow(-.35vw .45vw .4vw rgb(30 34 16 / .35)); }
/* The board's edge: a darker copy just below the ground slice shows as thickness along the near side. */
.relief::after { content: ""; position: absolute; inset: 0; background: var(--plan) center / 100% 100% no-repeat; filter: brightness(.5) saturate(.6); transform: translateZ(calc(var(--lift) * -.2)); }

/* ---------- Project index list ---------- */
.index-section { width: var(--row); margin: 0 auto; }
.index-section .section-head { width: auto; }
.index-section .link-more { margin-top: 40px; }
.plist { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.plist__row { border-bottom: 1px solid var(--line); }
.plist__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 24px; padding: clamp(16px, 2.2vw, 28px) 0; }
.plist__thumb { display: none; }
/* Desktop: a hovered or focused row opens downwards and shows its cover uncropped. Every row opens by the same
   height, so the list stays put while the pointer moves from row to row. */
.plist__open { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-io); }
.plist__frame { min-height: 0; overflow: hidden; display: flex; gap: 12px; padding-left: 16px; }
/* vertical space as margins: padding would still count while the row is closed */
.plist__frame img { flex: none; height: clamp(150px, 15vw, 240px); width: auto; max-width: 100%; margin: 22px 0 6px; opacity: 0; transform: translateY(-18px); transition: opacity .45s ease, transform .9s var(--ease-out); }
.plist__frame > :nth-child(2) img { transition-delay: 0s, .07s; }
.plist__frame > :nth-child(3) img { transition-delay: 0s, .14s; }
.plist__title { font-size: var(--t-d3); line-height: 1.08; letter-spacing: var(--tr-d3); transition: transform .7s var(--ease-out), color .3s ease; }
.plist__meta { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .plist:has(.plist__link:hover) .plist__link:not(:hover) .plist__title { color: color-mix(in srgb, var(--text) 40%, var(--bg)); }
  .plist__link:hover .plist__title { transform: translateX(16px); }
}
.plist__link:is(:hover, :focus-visible) .plist__open { grid-template-rows: 1fr; }
.plist__link:is(:hover, :focus-visible) .plist__frame img { opacity: 1; transform: none; transition-delay: .12s; }
.plist__link:is(:hover, :focus-visible) .plist__frame > :nth-child(2) img { transition-delay: .2s; }
.plist__link:is(:hover, :focus-visible) .plist__frame > :nth-child(3) img { transition-delay: .28s; }

/* ---------- Category pages ---------- */
.cat, .refs, .legal, .search-page { position: relative; padding: calc(var(--hh) + clamp(48px, 7vw, 110px)) 0 clamp(40px, 6vw, 90px); }
.page-head { width: var(--row); margin: 0 auto clamp(48px, 6vw, 96px); }
[data-type="quiet"] .page-head, [data-type="quiet"] .split .page-title { text-align: center; }
.cat-intro { width: var(--row); margin: 0 auto clamp(64px, 9vw, 140px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.cat-intro .prose { padding-top: clamp(0px, 6vw, 96px); }
/* No quote (Offices, Development, Projects): the first paragraph leads on the left as wide as a quote, and both columns
   start level, since the offset above only clears a quote's opening mark. */
.cat-intro > .prose--lead { max-width: none; }
.cat-intro:has(> .prose--lead) .prose { padding-top: 0; }
.cat-intro .list, .legal .list { max-width: 62ch; } /* the measure of the prose above it (both in the inherited font) */
.quote blockquote::before { content: "\201C"; display: block; font: 64px/1 var(--display); margin-bottom: 6px; transition: opacity .9s ease, transform 1.1s var(--ease-out); }
/* the mark arrives with the quote's first line (v2.js adds is-quoted) */
.js:not(.motion-failed) .quote:not(.is-quoted) blockquote::before { opacity: 0; transform: translateY(.25em); }
.quote p { font: 400 var(--t-quote)/1.32 var(--serif); text-wrap: balance; }
.quote p + p { margin-top: .5em; }
.quote figcaption { margin-top: 24px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
[data-type="quiet"] .cat-intro { grid-template-columns: 1fr; width: min(620px, 88%); text-align: center; }
[data-type="quiet"] .cat-intro .prose { padding-top: 0; text-align: left; }

.view-switch { width: var(--row); margin: 0 auto 36px; display: flex; justify-content: flex-end; gap: 24px; }
.view-switch button { font: 500 11px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding: 8px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.view-switch button[aria-pressed="true"] { color: var(--text); border-color: currentColor; }
.cat-view--index { width: var(--row); margin: 0 auto; }

/* ---------- Project page ---------- */
.p-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--on-image); }
.p-hero__media, .p-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero__head { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 9vh, 100px); }
.p-title { font-size: var(--t-d1); line-height: 1; letter-spacing: var(--tr-d1); max-width: 15ch; text-wrap: balance; }
.p-hero .meta { color: var(--on-image); margin-top: 22px; }
.p-head { padding: calc(var(--hh) + clamp(48px, 7vw, 110px)) var(--gutter) 0; }
.p-head .p-title, .p-head .meta { width: var(--row); margin-left: auto; margin-right: auto; max-width: none; }
.p-head .meta { margin-top: 22px; }
.p-cover { margin: clamp(48px, 6vw, 90px) auto 0; width: min(100%, 1440px); }
/* through the viewer button, which would otherwise stretch it to full width while max-height squeezes it */
.p-cover .g-open img { width: auto; max-width: 100%; max-height: 86vh; margin: 0 auto; }
[data-type="quiet"] .p-hero__head { top: 54%; bottom: auto; transform: translateY(-50%); text-align: center; }
[data-type="quiet"] .p-title { max-width: none; margin-right: -15px; }
[data-type="quiet"] .p-head { text-align: center; }

.p-facts { width: var(--row); margin: 0 auto; padding-top: clamp(48px, 6vw, 84px); }
.facts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 22px; }
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(var(--draw, 1)); transform-origin: left; }
.facts dt { font: 600 10px/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 8px; font: 17px/1.4 var(--serif); }

.p-lead { width: var(--row); margin: 0 auto; padding: clamp(64px, 9vw, 140px) 0 clamp(24px, 4vw, 56px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.p-lead .prose { grid-column: 2 / span 7; max-width: none; }
.p-lead__aside { grid-column: 10 / span 3; }
.p-lead .prose:only-child { grid-column: 2 / span 9; }

.g-open { display: block; width: 100%; cursor: zoom-in; }
.g-open img { width: 100%; height: auto; }

.chapters { width: var(--row); margin: 0 auto; padding: clamp(48px, 7vw, 110px) 0 0; }
.chapter { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 1fr) minmax(0, 5fr); min-height: 120vh; align-items: start; }
.chapter__media { grid-column: 1; position: sticky; top: calc(var(--hh) + 6vh); }
.chapter__media img { max-height: 78vh; width: auto; max-width: 100%; }
.chapter__text { grid-column: 3; padding: 34vh 0 30vh; }
.chapter__text .prose p { font-size: var(--t-lead); line-height: 1.5; text-align: left; hyphens: manual; }

/* Editorial gallery: row types come from build-v2.mjs (image proportions); figures keep their own aspect ratio. */
.gallery { width: var(--row-wide); margin: 0 auto; padding: clamp(56px, 8vw, 120px) 0; }
.gallery__track { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 104px); }
.g-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.g-item { min-width: 0; }
.g-item img { width: 100%; height: auto; }
.g-row--full .g-item { grid-column: 1 / -1; }
.g-row--pair-l .g-item:first-child { grid-column: 1 / 8; }
.g-row--pair-l .g-item:last-child { grid-column: 8 / 13; align-self: end; }
.g-row--pair-l.g-row--flip .g-item:first-child { grid-column: 1 / 6; align-self: end; }
.g-row--pair-l.g-row--flip .g-item:last-child { grid-column: 6 / 13; align-self: start; }
.g-row--pair-p .g-item:first-child { grid-column: 1 / 6; }
.g-row--pair-p .g-item:last-child { grid-column: 7 / 12; margin-top: 14vh; }
.g-row--pair-p.g-row--flip .g-item:first-child { grid-column: 2 / 7; margin-top: 14vh; }
.g-row--pair-p.g-row--flip .g-item:last-child { grid-column: 8 / 13; margin-top: 0; }
.g-row--mix .g-item--l:first-child { grid-column: 1 / 8; }
.g-row--mix .g-item--p:last-child { grid-column: 9 / 13; align-self: end; }
.g-row--mix .g-item--p:first-child { grid-column: 1 / 5; }
.g-row--mix .g-item--l:last-child { grid-column: 6 / 13; align-self: end; }
.g-row--solo-l .g-item { grid-column: 1 / 10; }
.g-row--solo-l.g-row--flip .g-item { grid-column: 4 / 13; }
.g-row--solo-p .g-item { grid-column: 3 / 8; }
.g-row--solo-p.g-row--flip .g-item { grid-column: 7 / 12; }

/* Sport site plan (tweak "plan"): the scan, the plan cut out along its edges, or the cut-out as a model that lies
   on the page, rises as it arrives and leans towards the pointer (v2.js tweens --rx/--px/--py). A soft shadow in
   the plan's own outline stays on the "table" underneath. */
.g-plan { display: none; position: relative; }
:is([data-plan="cutout"], [data-plan="model"]) .g-item--plan .g-plan__orig { display: none; }
:is([data-plan="cutout"], [data-plan="model"]) .g-plan { display: block; }
.g-plan__cut { position: relative; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgb(30 24 16 / .2)) drop-shadow(0 18px 26px rgb(30 24 16 / .2)); }
[data-theme="dark"] .g-plan__cut { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .5)) drop-shadow(0 22px 32px rgb(0 0 0 / .55)); }
[data-plan="model"] .g-plan { perspective: 1800px; }
[data-plan="model"] .g-plan::before, .relief::before { content: ""; position: absolute; inset: 0; background: var(--plan) center / contain no-repeat; filter: brightness(0) blur(22px); opacity: .26; transform: translateY(6%) scale(.97); }
[data-theme="dark"][data-plan="model"] .g-plan::before, [data-theme="dark"] .relief::before { opacity: .6; }
.relief::before { transform: translateZ(calc(var(--lift) * -.25)) translateY(5%) scale(.97); } /* under the board's edge */
[data-plan="model"] .g-plan__cut { transform: rotateX(calc(var(--rx, 0deg) + var(--px, 0deg))) rotateY(var(--py, 0deg)); transform-origin: 50% 60%; will-change: transform; }

/* Tweak "Raster": the v1 two-column gallery. */
[data-gallery="grid"] .gallery__track { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
[data-gallery="grid"] .g-row { display: contents; }
[data-gallery="grid"] .g-item { grid-column: auto !important; margin: 0 !important; align-self: start !important; }
[data-gallery="grid"] .g-item--w { grid-column: 1 / -1 !important; }
/* Tweak "Filmstreifen": one horizontal strip, pinned and panned on desktop (v2.js), swiped elsewhere. */
[data-gallery="strip"] .gallery { width: auto; overflow-x: auto; scrollbar-width: none; }
[data-gallery="strip"] .gallery__track { flex-direction: row; align-items: center; gap: clamp(16px, 2vw, 32px); width: max-content; padding: 0 var(--gutter); }
[data-gallery="strip"] .g-row { display: contents; }
[data-gallery="strip"] .g-item { margin: 0 !important; }
[data-gallery="strip"] .g-item img { height: min(72vh, 760px); width: auto; max-width: none; }
.gallery.is-pinned { overflow: hidden; height: 100vh; display: flex; align-items: center; padding: 0; }

/* Carousel: one uncropped photo at a time in a sideways scroller, so touch swipes work by themselves (v2.js adds buttons, rail, keys and wheel strokes). */
.carousel { width: var(--row-wide); margin: 0 auto; }
.p-facts ~ .carousel { margin-top: clamp(56px, 8vw, 120px); }
.carousel__frame { position: relative; }
.carousel__stage { display: flex; height: min(76vh, 760px); overflow: auto hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel__slide .g-open { display: flex; align-items: center; justify-content: center; height: 100%; } /* flex, not grid: a grid row would size to the photo and max-height would have nothing to resolve against */
.carousel__slide .g-open img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.carousel__btn { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--text); font-size: 16px; transition: opacity .3s var(--ease-ui); }
.carousel__btn[hidden] { display: none; }
.carousel__btn--prev { left: 16px; }
.carousel__btn--prev .arrow { transform: scaleX(-1); }
.carousel__btn--next { right: 16px; }
.carousel__bar { margin-top: 14px; text-align: center; }
.carousel .thumbs { position: relative; padding: 0 0 5px; scroll-snap-type: none; scrollbar-width: none; }
.carousel .thumbs::before, .carousel .thumbs::after { content: ""; flex: 0 0 50%; } /* room for the first and last thumbnail to reach the middle */
.carousel .thumb { position: relative; }
.carousel .thumb img { height: 64px; opacity: .45; }
.carousel .thumb:hover img { opacity: .8; }
.carousel .thumb[aria-current] img { opacity: 1; }
.carousel .thumb[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; }
.carousel__count { margin-top: 10px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .carousel__btn { opacity: 0; }
  .carousel__frame:hover .carousel__btn, .carousel__btn:focus-visible { opacity: 1; }
}
@media (hover: none) { .carousel__btn { display: none; } }
/* Without a touch screen stage and rail take no wheel input themselves: v2.js turns sideways strokes into steps, while a scroller, or overscroll containment, would swallow a vertical scroll that drifts slightly sideways. */
@media not (any-pointer: coarse) { .carousel__stage, .carousel .thumbs { overflow: hidden; overscroll-behavior: auto; } }

.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.thumbs li { flex: none; scroll-snap-align: start; }
.thumb { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.thumb img { height: 150px; width: auto; max-width: none; transition: opacity .3s; }
.thumb:hover img { opacity: .7; }

.p-next { padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(28px, 4vw, 48px); }
.p-next__link { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 72px); align-items: end; }
.p-next__label { grid-column: 1; grid-row: 1; align-self: start; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.p-next__title { grid-column: 1; grid-row: 2; font-size: var(--t-d2); line-height: 1.02; letter-spacing: var(--tr-d2); text-wrap: balance; }
.p-next__media { grid-column: 2; grid-row: 1 / span 2; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); clip-path: inset(7% 7% 7% 7%); transition: clip-path 1.1s var(--ease-out); }
.p-next__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.p-next__link:hover .p-next__media, .p-next__link:focus-visible .p-next__media { clip-path: inset(0); }
.p-next__link:hover .p-next__media img, .p-next__link:focus-visible .p-next__media img { transform: none; }
.p-prev { display: inline-block; margin-top: 36px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.p-prev:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: rgb(24 23 21); color: #fff; touch-action: pan-y; }
.lb-bar { display: contents; }
.lightbox[hidden] { display: none; }
.lightbox img { grid-area: 1 / 1; max-width: 88vw; max-height: 86vh; object-fit: contain; } /* one cell: two photos pass through it during a step */
.lb-btn { position: absolute; display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 14px; }
.lb-prev .arrow { transform: scaleX(-1); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); letter-spacing: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Split pages (About, New Business Developer, Contact) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.split__text { padding: calc(var(--hh) + clamp(40px, 6vw, 96px)) var(--edge) clamp(64px, 8vw, 120px); }
.split .page-title { margin-bottom: clamp(32px, 4vw, 60px); }
.split__media { position: sticky; top: 0; height: 100vh; overflow: hidden; margin: 0; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.list { margin-top: 36px; }
.list li { padding: 14px 0 14px 26px; border-top: 1px solid var(--line); font: 17px/1.5 var(--serif); position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 27px; width: 12px; height: 1px; background: currentColor; }
.contact-form-wrap .label { margin-bottom: 18px; font-size: 11px; color: var(--muted); }
/* The skyline's harbour and towers sit left of centre; a tall slice keeps them. */
.split--contact .split__media img { object-position: 40% 50%; }
/* Portrait left; name, e-mail and address right, each under a small label in the form labels' type and all three
   values in one size. The circle is the site's only rounded shape (client). */
.contact-block { display: flex; align-items: flex-start; gap: clamp(20px, 2.4vw, 36px); }
/* A rounded rectangle exactly as tall as the details beside it, name to address (client, 2026-11-20). The hairline
   closes the edge where the photo is as light as the page; isolate keeps Safari's clip round over the zoomed img. */
.contact-block__portrait { position: relative; flex: none; align-self: stretch; width: 200px; border-radius: 10px; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px var(--line); }
/* Renato stands small in a landscape photo: zoomed so he fills the frame from head to waist. */
.contact-block__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; transform: scale(1.6); transform-origin: 46% 42%; }
.contact-block address { flex: 1; min-width: 0; }
.contact-block dl { display: grid; gap: 18px; }
.contact-block dt { font: 600 11px/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.contact-block dd { margin: 4px 0 0; font: 17px/1.5 var(--serif); }
.contact-block a, .contact-form__note a, .footer__copy a, .legal a { border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease-ui); }
:is(.contact-block, .contact-form__note, .footer__copy, .legal) a:hover { border-color: currentColor; }
.contact-form-wrap { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-form { margin-top: 24px; display: grid; gap: 24px; }
.contact-form span { display: block; font: 600 11px/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; }
.contact-form small { font: inherit; color: var(--muted); }
/* Fields are filled a shade darker than the page, so they read as places to type (client, 2026-11-18). The line beneath
   is a real border in --muted (over 3:1 on the fill): Chrome drops background images from autofilled fields. On focus
   it takes the text colour and a second line draws in above it. */
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--muted); border-radius: 0; outline: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat var(--bg-alt);
  color: var(--text); font: 17px/1.5 var(--serif); resize: vertical; transition: background-size .6s var(--ease-out), border-color .3s var(--ease-ui);
}
.contact-form input:focus, .contact-form textarea:focus { background-size: 100% 1px; border-color: currentColor; }
/* Chrome paints autofilled fields pale blue: keep the field's own fill and text colour. */
.contact-form :is(input, textarea):-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--bg-alt) inset; }
.contact-form__note { max-width: 62ch; color: var(--muted); }
.contact-form-wrap > p, .contact-form__note { font-size: 13px; } /* whole sentences, one of them the privacy notice: not label size */
/* The send button stands right-aligned under the fields without a rule beneath it (client, 2026-11-18); 44px tall for
   touch. Its status message appears right below it. */
.contact-form button { justify-self: end; min-height: 44px; padding: 0; border-bottom: 0; }
.contact-form button:disabled { opacity: .45; cursor: progress; }
.contact-form__status { justify-self: end; text-align: right; font: 15px/1.6 var(--serif); }

/* ---------- References ---------- */
.refs { width: var(--row); margin: 0 auto; }
.refs .page-head { width: auto; margin-bottom: clamp(36px, 4vw, 56px); }
.stats { display: flex; gap: clamp(48px, 9vw, 140px); margin-bottom: clamp(48px, 6vw, 84px); }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; }
.stat dd { font: 400 clamp(3rem, 1.8rem + 4.4vw, 6rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.stat dt { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; margin-bottom: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line); }
.filters button { font: 500 11px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding: 9px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { color: var(--text); border-color: currentColor; }
.filters sup { font-size: 9px; margin-left: 4px; letter-spacing: .5px; }
.refs__groups { columns: 3 300px; column-gap: clamp(32px, 5vw, 80px); }
.refs__group { break-inside: avoid; padding-bottom: 56px; }
.refs__group .label { color: var(--muted); margin-bottom: 14px; }
.ref { padding: 4px 0; font: 400 clamp(1.1rem, 1rem + .45vw, 1.4rem)/1.35 var(--serif); transition: opacity .35s ease; }
.ref__country { margin-left: 4px; font: 500 11px/1 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .refs__groups:has(.ref:hover) .ref:not(:hover) { opacity: .38; } }

/* ---------- Who we are: the opening split, then two indexes of tabs, the closing quote and References ---------- */
.about-id { margin-bottom: clamp(40px, 5vw, 72px); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-id__name { font: 400 var(--t-quote)/1.2 var(--serif); letter-spacing: .04em; }
.about-id__role, .about-id__tag { margin-top: 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.about-id__tag { margin-top: 4px; color: var(--muted); }
.split .essay__title { margin-bottom: 28px; }
.about { padding-bottom: clamp(40px, 6vw, 90px); }

/* Tabs (one markup, build-v2.mjs tabs()): the group name across the page over one hairline, below it the numbered
   titles on the left and the open panel on the right, its first line level with the first title (client,
   2026-11-18); the last row is 1fr, so a long panel never spreads the titles apart. v2.js only flips aria-expanded.
   Panels close only while v2.js runs or is about to (.js until motion-failed, then .tabs-on); otherwise every title
   stands beside its own text. The panel is 8 of 12 columns from 1440px, where its text runs in two columns (below), up
   to 1200px (two of 72 characters); narrower, it keeps one column of at most 600px (75 characters). The titles take
   the rest. */
.tabs { margin: 0 var(--edge); padding-top: clamp(72px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 1fr) min(600px, (100% - var(--gutter)) * 7 / 12); grid-template-rows: repeat(var(--n), auto) 1fr; column-gap: var(--gutter); align-items: start; }
@media (min-width: 1440px) { .tabs { grid-template-columns: minmax(0, 1fr) min(1200px, (100% - var(--gutter)) * 2 / 3); } }
.tabs__name { grid-column: 1 / -1; padding-bottom: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); font: 400 max(1.75rem, var(--t-d3))/1.05 var(--f-display); letter-spacing: var(--tr-d3); text-transform: uppercase; text-wrap: balance; }
[data-type="quiet"] .tabs__name { font-size: var(--t-d3); } /* the floor above is for the editorial scale only */
.tabs__head { grid-column: 1; border-top: 1px solid var(--line); }
.tabs__name + .tabs__head { border-top: 0; } /* the name's hairline rules the first title and the panel */
.tabs__head:last-of-type { border-bottom: 1px solid var(--line); }
/* a hanging indent instead of a grid, so the title stays inline and its underline follows every line */
.tabs__head button { display: block; width: 100%; padding: 18px 0 19px 44px; text-indent: -44px; text-align: left; font: 400 clamp(1.35rem, 1rem + .55vw, 1.5rem)/1.35 var(--serif); letter-spacing: .2px; transition: color .3s var(--ease-ui); }
.tabs__num { display: inline-block; width: 44px; text-indent: 0; font: 500 11px/1 var(--sans); letter-spacing: 1.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* the nav's underline: drawn from the left, retracting to the right */
.tabs__title { padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-ui); }
.tabs__head button { cursor: default; } /* inert without JS */
:is(.js:not(.motion-failed), .tabs-on) .tabs__head button { cursor: pointer; }
@media (hover: hover) { :is(.js:not(.motion-failed), .tabs-on) .tabs__head button:hover .tabs__title { background-size: 100% 1px; background-position: 0 100%; } }
/* padding-top as the title's own, so the panel's first line stands level with the first title's */
.tabs__panel { grid-column: 2; padding: 18px 0 clamp(48px, 5vw, 72px); container-type: inline-size; animation: tab-in .5s var(--ease-out); }
@keyframes tab-in { from { opacity: 0; } }
:is(.js:not(.motion-failed), .tabs-on) .tabs__panel { grid-row: 2 / -1; padding-bottom: 0; }
:is(.js:not(.motion-failed), .tabs-on) .tabs__head:has([aria-expanded="false"]) + .tabs__panel { display: none; }
:is(.js:not(.motion-failed), .tabs-on) .tabs__head [aria-expanded="false"]:not(:hover, :focus-visible) { color: var(--muted); }
:is(.js:not(.motion-failed), .tabs-on) .tabs__head [aria-expanded="true"] :is(.tabs__num, .tabs__title) { color: var(--text); }
:is(.js:not(.motion-failed), .tabs-on) .tabs__head [aria-expanded="true"] .tabs__title { background-size: 100% 1px; background-position: 0 100%; }
.tabs__panel > * + * { margin-top: 56px; }
.tabs__panel > .about-figure + * { margin-top: 40px; }
.tabs__panel .about-figure { margin: 0; }

/* A block of text in a panel: three sizes only (the block title, the 16.5px body for everything else, the label for
   the signature) on a 28px line; in two columns every gap inside a block is a whole line, so their lines stay level. */
.essay { max-width: 600px; } /* one column: at most 75 characters; the illustrations span the panel */
.essay > * + * { margin-top: 28px; }
.essay > .essay__lead { margin-top: 8px; }
.essay .prose { max-width: none; }
.essay__eyebrow { color: var(--muted); margin-bottom: 18px; }
.essay__title { font: 400 var(--t-quote)/1.25 var(--serif); text-wrap: balance; }
/* at least 1.25× the body; the tab titles stay a size above and differ in role (numbered, ruled, marked) */
.essay :is(.essay__title, .essay__motto) { font: 400 clamp(1.3rem, 1.1rem + .3vw, 1.4rem)/1.3 var(--serif); text-wrap: balance; }
.essay :is(.essay__lead, li, dt, dd) { font: 16.5px/28px var(--serif); letter-spacing: .2px; hyphens: auto; }
.essay :is(.essay__lead, dd) { color: var(--muted); }
.essay .essay__lead { font-style: italic; }
.essay__sign { font: 600 11px/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; }
/* a hairline and 14px of air above, 13px below: each item a whole number of lines */
.essay :is(li, .defs > div) { padding: 14px 0 13px 26px; break-inside: avoid; }
.essay .list { break-inside: avoid; } /* a list of points or steps never runs on into the next column (client, 2026-11-18) */
.essay .list li::before { top: 28px; }
.list--steps { counter-reset: step; }
.essay .list--steps li { padding-left: 44px; counter-increment: step; }
.essay .list--steps li::before { content: counter(step, decimal-leading-zero); width: auto; height: auto; background: none; top: 21px; font: 500 11px/1.4 var(--sans); letter-spacing: 1.5px; color: var(--muted); }
.essay .defs > div { padding-left: 0; border-top: 1px solid var(--line); }
/* Two columns from a panel of 768px (two of 45 characters or more), balanced; the title and the italic line run across
   both. Justified only where a line holds 52 characters or more, left-aligned below that, as on phones. */
@container (width >= 768px) {
  .essay { max-width: none; columns: 2; column-gap: 48px; }
  .essay .prose p + p { margin-top: 28px; } /* a whole line, so the lines of the two columns stay level */
  .essay > :is(.essay__title, .essay__lead) { column-span: all; }
  /* the gap below the spanning lines goes on them; on the first text it would lower the left column only */
  .essay > :is(.essay__title, .essay__lead):not(:has(+ .essay__lead)) { margin-bottom: 28px; }
  .essay > :is(.essay__title, .essay__lead) + :not(.essay__lead) { margin-top: 0; }
  /* Short paragraphs (build-v2.mjs essay()) stay whole where a block is nothing else, and in the widest panels where
     they are three lines: Chrome's balancing would rather leave one line alone. */
  .essay > .prose:last-child > .whole:only-child { break-inside: avoid; }
  .tabs__panel .about-figure img { aspect-ratio: 21 / 9; object-fit: cover; }
}
@container (width >= 1100px) { .essay .whole--3 { break-inside: avoid; } }
.essay .prose p { text-align: left; }
/* Chrome never hyphenates a paragraph's last word, which leaves the line above it with wide gaps; an empty box after
   it makes it an ordinary word (widest gap at 1720: 27.6 to 18 px, at 1024 in German 32 to 18 px) */
.essay .prose p::after { content: ""; display: inline-block; }
@container (416px <= width < 768px) or (width >= 880px) { .essay .prose p { text-align: justify; } }
/* the illustrations as bands: the samples sit low in their frame */
.about-figure img[src*="about-ai-materials"] { object-position: 50% 80%; }
.essay--quote { margin: 0 var(--edge); padding-top: clamp(72px, 10vw, 150px); text-align: center; }
.essay--quote .quote p { max-width: 30ch; margin-left: auto; margin-right: auto; }
.about-figure { margin: clamp(80px, 11vw, 170px) var(--edge) 0; }
.about-figure img { width: 100%; height: auto; }
.about .refs { width: auto; margin: 0 var(--edge); padding-top: clamp(96px, 12vw, 180px); padding-bottom: 0; }

/* ---------- Search, 404 ---------- */
.search-page { width: var(--row); margin: 0 auto; }
.search-page .page-head { width: auto; }
.search-page .search-form { margin: 0 0 60px; }
.search-empty { margin-bottom: 56px; }
.grid--search { width: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card[hidden] { display: none; }
.notfound { min-height: 80vh; display: grid; place-content: center; text-align: center; gap: 20px; padding: var(--hh) var(--gutter) 60px; }
.notfound a { border-bottom: 1px solid currentColor; }

/* ---------- Legal pages: one column at the row's left edge, in the prose measure ---------- */
.legal { width: var(--row); margin: 0 auto; }
.legal .page-head { width: auto; margin-bottom: 20px; }
.legal .page-title { hyphens: auto; } /* not split into letters (build-v2.mjs), so a long word can break */
.legal__updated { color: var(--muted); margin-bottom: clamp(48px, 6vw, 96px); }
.legal section + section { margin-top: clamp(56px, 7vw, 104px); }
.legal .essay__title { max-width: 62ch; margin-bottom: 24px; }
.legal .prose p { text-align: left; } /* addresses, e-mails and statute names would leave gaps in justified lines */
.legal a { hyphens: none; } /* a hyphen would read as part of the address; it breaks after the @ (<wbr>) instead */

/* ---------- Footer: one action, then the studio's name across the full width ---------- */
.footer { padding: var(--section) var(--gutter) 20px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.footer__cta { display: inline-flex; align-items: center; gap: .3em; justify-self: start; font-size: var(--t-d2); line-height: 1; letter-spacing: var(--tr-d2); transition: letter-spacing .8s var(--ease-out), gap .8s var(--ease-out); }
/* The line answers the pointer by drawing itself out to the right (left edge fixed); on phones it does so while it
   passes the middle of the screen (v2.js adds is-open). */
.footer__cta:is(:hover, :focus-visible, .is-open) { letter-spacing: calc(var(--tr-d2) + .08em); gap: .6em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 40px; }
.footer h2 { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer li { color: var(--muted); line-height: 24px; }
.footer li a { transition: color .2s; }
.footer li a:hover { color: var(--text); }
.footer__mark { display: flex; align-items: last baseline; margin-top: clamp(64px, 9vw, 140px); font: 400 min(15rem, calc((100vw - 2 * var(--gutter)) / 7.6))/.8 var(--display); letter-spacing: 0; } /* sized to fit: monogram 1.23em + gap + words 6.03em */
.footer__mark .ch { display: block; overflow: hidden; padding: .06em 0; }
.footer__mark .ch > span { display: block; }
.footer__mark .gap { width: .12em; }
.footer__copy { margin-top: 18px; color: var(--muted); }

/* ---------- Motion: hidden start states exist only while v2.js can reveal them ---------- */
.js:not(.motion-failed) :is([data-chars], [data-lines], [data-reveal], [data-reveal-img], .card, .pan__item, .facts > div, .slide__caption, .hero__ticks, .p-hero .meta, .p-head .meta, .split__media, .plist__row, .stat, .filters, .view-switch, .refs__group, .side):not(.is-in) { opacity: 0; }

/* Body text washes in from the top under a soft edge (v2.js tweens --flow). */
.is-flowing { -webkit-mask-image: linear-gradient(#000 calc(var(--flow) - 35%), transparent var(--flow)); mask-image: linear-gradient(#000 calc(var(--flow) - 35%), transparent var(--flow)); }

/* Page transitions: the header stays, pages cross-fade, and the clicked image becomes the next hero (v2.js). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s var(--ease-ui) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
::view-transition-group(hero) { animation-duration: .9s; animation-timing-function: cubic-bezier(.77, 0, .175, 1); }
/* The new hero is opaque from the first frame and the old card fades off it, so the morph never washes out. */
::view-transition-old(hero), ::view-transition-new(hero) { height: 100%; object-fit: cover; mix-blend-mode: normal; }
::view-transition-new(hero) { animation: none; }
::view-transition-old(hero) { animation: vt-out .45s var(--ease-ui) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
[data-transition="morph"] [data-vt-hero] { view-transition-name: hero; }
/* Switching light/dark: the new scheme opens as a circle from the switch (v2.js sets --vt-x/--vt-y). */
.is-theming::view-transition-old(root) { animation: none; }
.is-theming::view-transition-new(root) { animation: theme-in .8s var(--ease-io) both; }
.is-theming :is(.header, [data-vt-hero]) { view-transition-name: none !important; }
@keyframes theme-in { from { clip-path: circle(0 at var(--vt-x) var(--vt-y)); } to { clip-path: circle(150vmax at var(--vt-x) var(--vt-y)); } }

[data-grain="on"] body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="dark"][data-grain="on"] body::after { mix-blend-mode: screen; opacity: .05; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .header, .mega, .nav__link::after, .card__media img, .grid__row > .card, .plist__title, .p-next__media, .p-next__media img, .footer__cta, .arrow, .contact-form :is(input, textarea), .tabs__title, .tabs__head button::after { transition-duration: .01s !important; }
  .tabs__panel { animation: none; }
}

/* Touch: a press answers at once. */
@media (hover: none) {
  .card__media, .pan__media, .plist__link, .p-next__media { transition: transform .25s var(--ease-ui); }
  .card:active .card__media, .pan__item:active .pan__media, .plist__link:active, .p-next__link:active .p-next__media { transform: scale(.98); }
}

/* ---------- Responsive ---------- */
/* The nav is centred, so the wider tools column sets the room it has. Thresholds measured for a 24px clearance in all
   four languages (French is the widest), with some slack for 15px classic scrollbars: compact up to 1419px... */
@media (max-width: 1419px) {
  .nav__list { gap: 16px; }
  .nav__link { letter-spacing: 1.4px; }
}
@media (max-width: 1180px) {
  [data-sport="cutout"] .zoom--relief .zoom__media { inset: max(22vh, 170px) 0 0; } /* the caption runs to more lines */
}

/* Too narrow to centre the row (it needs 1280px in French): from 1100px the links sit between logo and tools, closer
   together, so a window on a Windows laptop at 125-150% scaling still shows them (client, 2026-11-23)... */
@media (max-width: 1279px) {
  .header { grid-template-columns: auto 1fr auto; gap: 20px; }
  .nav { justify-self: center; }
  .nav__list { gap: 12px; }
  .nav__link { letter-spacing: 1px; }
  .tools { gap: 16px; }
}
/* ...and the burger up to 1099px (v2.js closes the drawer above it). */
@media (max-width: 1099px) {
  .header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: flex; }
}

@media (max-width: 980px) {
  :root { --hh: 64px; --edge: var(--gutter); }
  .theme-btn { display: none; }
  .logo { height: 38px; }
  .tools { gap: 14px; }
  .side-rail { display: none; }

  .peak__caption, .zoom__caption { bottom: 84px; }
  /* Sport model and cut-out: caption first, then the plan wider than the screen, centred on the stadium; the section clips it. */
  /* Turned, the caption follows the plan instead, under its empty corner. */
  :is([data-sport="model"], [data-sport="cutout"], [data-sport="turned"]) .zoom--relief { display: flex; flex-direction: column; height: auto; min-height: 0; padding: 88px 0 64px; }
  :is([data-sport="model"], [data-sport="cutout"], [data-sport="turned"]) .zoom--relief .zoom__caption { order: -1; position: relative; inset: auto; width: auto; margin: 0 var(--gutter); }
  :is([data-sport="turned"], [data-sport="model"][data-sportturn="turned"]) .zoom--relief .zoom__caption { order: 0; }
  [data-sport="model"] .zoom--relief .zoom__model { position: relative; inset: auto; height: 80vw; padding: 0; }
  :is([data-sport="cutout"], [data-sport="turned"]) .zoom--relief .zoom__media { position: relative; inset: auto; height: 100vw; }
  .relief { width: 170vw; --lift: 4.2vw; }
  .hero__ticks { left: var(--gutter); right: auto; bottom: 30px; }
  [data-type="quiet"] .hero__ticks { left: 50%; transform: translateX(-50%); right: auto; }

  .grid { width: auto; margin: 0 var(--gutter); grid-template-columns: 1fr; gap: 56px; }
  .card, .card--2 { grid-column: auto; }
  .grid__row { display: contents; } /* the swipe rail keeps the cards as its own items */
  .card__media, .card--2 .card__media, .grid__row .card__media { aspect-ratio: 4 / 5; height: auto; }
  .grid--rail {
    margin: 0; padding: 0 var(--gutter); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: var(--gutter); scrollbar-width: none;
  }
  .grid--rail::-webkit-scrollbar { display: none; }
  .grid--rail .card { scroll-snap-align: start; }
  .grid:not(.grid--rail) .card__media img { scale: 1.12; } /* headroom for the scroll drift (v2.js) */
  .rail-bar { margin: 24px var(--gutter) 0; height: 1px; background: var(--line); }
  .rail-bar span { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
  .grid--search { grid-template-columns: 1fr; margin: 0; }

  .pan__item, .pan__item:nth-child(even) { width: 78vw; }
  .pan__item:nth-child(even) .pan__media { aspect-ratio: 4 / 5; }
  .pan__more { width: 62vw; }

  .plist__link { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 6px; align-items: center; }
  .plist__thumb { display: block; grid-row: 1 / span 2; width: 72px; aspect-ratio: 1; overflow: hidden; background: var(--bg-alt); }
  .plist__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .plist__meta { text-align: left; }
  .plist__open { display: none; }
  /* the row in the middle of the screen is the active one (v2.js) */
  .plist__thumb, .plist__title { transition: transform .6s var(--ease-out), color .4s ease; }
  .plist:has(.is-focus) .plist__row:not(.is-focus) .plist__title { color: color-mix(in srgb, var(--text) 45%, var(--bg)); }
  .plist:has(.is-focus) .plist__row:not(.is-focus) .plist__thumb { transform: scale(.8); }
  .plist__row.is-focus .plist__title { transform: translateX(6px); }

  .cat-intro { grid-template-columns: 1fr; gap: 40px; }
  .cat-intro .prose { padding-top: 0; }
  .prose p { text-align: left; }
  .view-switch { justify-content: flex-start; }

  .p-title { max-width: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .p-lead { display: block; }
  .p-lead__aside { margin-top: 40px; width: 70%; }
  .chapter { display: block; min-height: 0; padding-bottom: 64px; }
  .chapter__media { position: static; }
  .chapter__media img { max-height: none; width: 100%; }
  .chapter__text { padding: 28px 0 0; }

  .gallery__track { gap: 16px; }
  .g-row { display: block; }
  .g-item { margin-top: 0 !important; }
  .g-row .g-item + .g-item { margin-top: 16px !important; }
  /* Rhythm on phones: wide images run edge to edge, portraits alternate sides, pairs step aside. */
  [data-gallery="rhythm"] .gallery__track { gap: 28px; }
  .gallery { overflow-x: clip; } /* the tilted site plan is a few px wider than the screen while it rises */
  [data-gallery="rhythm"] .g-row--full .g-item { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  [data-gallery="rhythm"] .g-item--p { width: 72%; }
  [data-gallery="rhythm"] :is(.g-row--flip .g-item--p:first-child, .g-item + .g-item--p, .g-row--pair-l .g-item:last-child) { margin-left: auto; }
  [data-gallery="rhythm"] .g-row--pair-l .g-item:last-child { width: 82%; }
  [data-gallery="rhythm"] .g-row--solo-l .g-item { width: 90%; }
  [data-gallery="rhythm"] .g-row--solo-l.g-row--flip .g-item { margin-left: auto; }
  [data-gallery="grid"] .gallery__track { grid-template-columns: 1fr; }
  [data-gallery="strip"] .g-item { width: auto; }
  [data-gallery="strip"] .g-item img { height: 62vh; }
  .carousel__stage { height: auto; aspect-ratio: 1; max-height: 80svh; }
  .carousel .thumb img { height: 48px; }

  .p-next__link { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .p-next__title { order: 2; }
  .p-next__media { width: 100%; clip-path: none; } /* v2.js opens it with the scroll instead of on hover */
  .p-next__media img { transform: none; }

  .split { grid-template-columns: 1fr; padding-top: var(--hh); }
  .split__media { position: relative; height: 62svh; order: -1; }
  .split__text { padding: 48px var(--edge) 64px; }

  /* The tabs become an accordion: each panel under its own title, a hairline plus that loses its upright when open. */
  .tabs { display: block; border-bottom: 1px solid var(--line); }
  .tabs__head:last-of-type { border-bottom: 0; }
  .tabs__head button { position: relative; padding-right: 36px; }
  :is(.js:not(.motion-failed), .tabs-on) .tabs__head button::after {
    content: ""; position: absolute; right: 0; top: calc(18px + .675em - 6px); width: 12px; height: 12px;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
    transition: background-size .45s var(--ease-ui);
  }
  :is(.js:not(.motion-failed), .tabs-on) .tabs__head [aria-expanded="true"]::after { background-size: 100% 1px, 1px 0; }
  .tabs__panel, :is(.js:not(.motion-failed), .tabs-on) .tabs__panel { padding: 4px 0 48px; }

  .stats { gap: 48px; }
  .refs__groups { columns: 1; }

  .lightbox img { max-width: 100vw; max-height: calc(100svh - 170px); }
  .lb-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / .16); }
  .lb-bar :is(.lb-btn, .lb-count) { position: static; transform: none; }
  .lb-bar .lb-btn { min-height: 48px; }

  .footer__top { grid-template-columns: 1fr; gap: 56px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .mnav__foot { flex-direction: column; align-items: flex-start; }
  .mnav__foot .address { text-align: left; }
  .lang { font-size: 11px; letter-spacing: 1.5px; }
  /* beside the circle the e-mail would break and the street line touch the edge; below it all five lines fit */
  .contact-block { flex-direction: column; align-items: flex-start; }
  .contact-block__portrait { align-self: flex-start; width: 150px; height: 200px; }
}
