/* refabs.eu — static multi-page site, editorial-luxury direction (v4, 2026-10-29).
   Motion is CSS first (view transitions, scroll-driven animation); motion.v4.js only adds
   the canvas drawing and the HTML-in-Canvas title (CSP script-src 'self', no inline JS).
   Asset names are not content-hashed and Caddy serves /assets immutable for a
   year: change a file -> give it a new name (site.v4.css …). */
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(cormorant-latin.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; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(cormorant-latin-ext.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; }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(cormorant-italic-latin.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; }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(cormorant-italic-latin-ext.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; }
@font-face { font-family: 'Italiana'; font-style: normal; font-weight: 400; font-display: swap; src: url(italiana-latin.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(instrument-sans-latin.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; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(instrument-sans-latin-ext.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; }

:root {
  --ink: #15120f;
  --ink-2: #221d18;
  --paper: #f5f0e7;
  --bone: #ebe4d7;
  --stone: #6f665c;        /* body text on paper: 5.6:1 */
  --stone-light: #b9ae9f;  /* secondary text on ink: 7.9:1 */
  --brass: #9a7a45;
  --brass-light: #cdb07c;
  --hair: rgba(21, 18, 15, 0.14);
  --hair-light: rgba(245, 240, 231, 0.18);
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Italiana', 'Cormorant', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 82rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-heavy: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Film grain: one fixed, non-interactive layer, never on a scrolling element. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: url(grain.png); opacity: 0.5; mix-blend-mode: multiply;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; background: var(--ink); color: var(--paper); border-radius: 999px; text-decoration: none; transition: top 0.4s var(--ease); }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Header -------------------------------------------------------- */
.bar { position: relative; z-index: 4; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.home .bar { position: absolute; inset: 0 0 auto; color: var(--paper); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark { font: 400 1.65rem/1 var(--display); letter-spacing: 0.32em; margin-right: -0.32em; }
.tagline { margin-top: 0.55rem; font: 500 0.6rem/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.72; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); }
.nav-links { display: flex; gap: clamp(1rem, 2.6vw, 2.2rem); margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; font: 500 0.68rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none; opacity: 0.85; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.45rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-heavy); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 980px) { .nav-links, .nav > .btn { display: none; } }

/* ---- Buttons: pill, nested arrow island -------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --island: rgba(245, 240, 231, 0.12);
  display: inline-flex; align-items: center; gap: 0.9rem; min-height: 3rem;
  padding: 0.35rem 0.4rem 0.35rem 1.5rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 500 0.72rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  transition: transform 0.5s var(--ease-heavy), background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .island { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--island); transition: transform 0.6s var(--ease-heavy); }
.btn .island svg { width: 0.95rem; height: 0.95rem; }
.btn:hover .island { transform: translate(3px, -1px) scale(1.06); }
.btn-light { --bg: var(--paper); --fg: var(--ink); --island: rgba(21, 18, 15, 0.08); }
.btn-light:hover { --bg: #fffdf8; box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.55); }
.btn:not(.btn-light):not(.btn-line):hover { --bg: #000; }
.btn-line { --bg: transparent; --fg: currentColor; padding: 0 1.5rem; box-shadow: inset 0 0 0 1px var(--hair-light); }
.btn-line:hover { box-shadow: inset 0 0 0 1px currentColor; }
.on-paper .btn-line { box-shadow: inset 0 0 0 1px var(--hair); }
.on-paper .btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { min-height: 2.6rem; padding: 0 1.25rem; font-size: 0.66rem; }

/* ---- Hero ---------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 62% 50%; animation: settle 2.6s var(--ease) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(15, 12, 10, 0.55) 0%, rgba(15, 12, 10, 0) 22%),
  linear-gradient(0deg, rgba(15, 12, 10, 0.9) 0%, rgba(15, 12, 10, 0.55) 34%, rgba(15, 12, 10, 0) 62%),
  linear-gradient(90deg, rgba(15, 12, 10, 0.55) 0%, rgba(15, 12, 10, 0) 55%); }
.hero-inner { position: relative; z-index: 2; padding-top: 9rem; padding-bottom: clamp(3rem, 9vh, 6.5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.9rem; margin: 0 0 1.8rem; font: 500 0.66rem/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 2.6rem; height: 1px; background: currentColor; opacity: 0.6; }
.hero h1 { margin: 0; max-width: 15ch; font: 300 clamp(2.9rem, 8.4vw, 7.6rem)/0.98 var(--serif); letter-spacing: -0.015em; }
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero-lede { max-width: 34rem; margin: 2rem 0 0; color: rgba(245, 240, 231, 0.84); font-size: 1.02rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 2.6rem; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(3rem, 9vh, 6.5rem); z-index: 2; writing-mode: vertical-rl; font: 500 0.6rem/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.7; }
@media (max-width: 760px) { .scroll-cue { display: none; } }
.hero .reveal-1 { animation: rise 1.4s var(--ease) 0.25s both; }
.hero .reveal-2 { animation: rise 1.4s var(--ease) 0.45s both; }
.hero .reveal-3 { animation: rise 1.4s var(--ease) 0.65s both; }
.hero .reveal-4 { animation: rise 1.4s var(--ease) 0.85s both; }

/* ---- Sections ------------------------------------------------------ */
.section { padding: clamp(6rem, 14vw, 11rem) 0; }
.label { display: flex; align-items: baseline; gap: 1.1rem; margin: 0 0 3rem; font: 500 0.66rem/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--stone); }
.label .num { font: 400 1rem/1 var(--display); letter-spacing: 0.1em; color: var(--brass); }
.statement { margin: 0; max-width: 22ch; font: 300 clamp(2.3rem, 5.4vw, 4.6rem)/1.08 var(--serif); letter-spacing: -0.01em; }
.statement em { font-style: italic; color: var(--brass); }
.columns { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; margin-top: clamp(3.5rem, 7vw, 6rem); }
.columns p { margin: 0; color: var(--stone); font-size: 1.04rem; }
.columns p:first-child { grid-column: 5 / span 4; }
.columns p:last-child { grid-column: 9 / span 4; }
@media (max-width: 900px) { .columns { grid-template-columns: 1fr; gap: 1.4rem; } .columns p:first-child, .columns p:last-child { grid-column: auto; } }

/* Full-bleed plate with a caption set in the image. */
.plate { position: relative; margin: 0; min-height: 92svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; background: var(--ink); }
.plate picture, .plate img { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate img { object-fit: cover; }
.plate::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(15, 12, 10, 0.78) 0%, rgba(15, 12, 10, 0) 48%); }
.plate figcaption { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 8vw, 6rem); }
.plate blockquote { margin: 0; max-width: 20ch; font: 300 italic clamp(2.2rem, 5.2vw, 4.4rem)/1.05 var(--serif); }
.plate .credit { margin: 1.4rem 0 0; font: 500 0.62rem/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.75; }

/* The commission: four movements. */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.steps li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.4rem; padding: clamp(2.2rem, 4vw, 3.4rem) clamp(0rem, 3vw, 3rem) clamp(2.2rem, 4vw, 3.4rem) 0; border-bottom: 1px solid var(--hair); }
.steps li:nth-child(odd) { border-right: 1px solid var(--hair); }
.steps li:nth-child(even) { padding-left: clamp(1.5rem, 4vw, 3.5rem); }
.steps .roman { font: 400 2.6rem/0.9 var(--display); color: var(--brass); }
.steps h3 { margin: 0 0 0.7rem; font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--serif); }
.steps h3 em { font-style: italic; }
.steps p { margin: 0; max-width: 30rem; color: var(--stone); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps li:nth-child(odd) { border-right: 0; } .steps li:nth-child(even) { padding-left: 0; } .steps li { grid-template-columns: 3.4rem 1fr; } }

/* The atelier: editorial split with machined frames. */
.atelier { background: var(--bone); }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center; }
.split-text { grid-column: 1 / span 5; }
.split-text h2 { margin: 0 0 1.8rem; font: 300 clamp(2.4rem, 4.6vw, 4rem)/1.04 var(--serif); }
.split-text h2 em { font-style: italic; color: var(--brass); }
.split-text p { margin: 0 0 1.2rem; color: var(--stone); max-width: 30rem; }
.frames { grid-column: 7 / span 6; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.frame { align-self: start; padding: 0.45rem; border-radius: 1.6rem; background: rgba(21, 18, 15, 0.05); box-shadow: inset 0 0 0 1px rgba(21, 18, 15, 0.07); }
.frame img { width: 100%; border-radius: calc(1.6rem - 0.45rem); aspect-ratio: 4 / 5; object-fit: cover; }
.frame-a { grid-column: 1 / span 4; grid-row: 1; margin-right: 18%; }
.frame-b { grid-column: 4 / span 3; grid-row: 1; margin-top: 58%; position: relative; }
.frame-b img { aspect-ratio: 1 / 1; }
@media (max-width: 900px) { .split-text, .frames { grid-column: 1 / -1; } .frames { margin-top: 2.5rem; } }

/* Principles. */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); margin: 0; padding: 0; list-style: none; }
.principles h3 { margin: 0 0 0.8rem; font: 400 italic clamp(1.9rem, 3vw, 2.6rem)/1 var(--serif); }
.principles h3::before { content: ""; display: block; width: 2.2rem; height: 1px; margin-bottom: 1.6rem; background: var(--brass); }
.principles p { margin: 0; color: var(--stone); }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

/* Closing invitation. */
.coda { background: var(--ink); color: var(--paper); text-align: center; }
.coda .label { justify-content: center; color: var(--stone-light); }
.coda h2 { margin: 0 auto; max-width: 16ch; font: 300 clamp(2.6rem, 6.4vw, 5.6rem)/1.02 var(--serif); }
.coda h2 em { font-style: italic; color: var(--brass-light); }
.coda p { max-width: 30rem; margin: 2rem auto 0; color: var(--stone-light); }
.coda .actions { justify-content: center; }

/* ---- Footer -------------------------------------------------------- */
.foot { background: var(--ink); color: var(--stone-light); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2.6rem; border-top: 1px solid var(--hair-light); }
.foot .wordmark { color: var(--paper); font-size: clamp(2.6rem, 9vw, 6rem); letter-spacing: 0.24em; margin-right: -0.24em; }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.2rem; font-size: 0.78rem; letter-spacing: 0.08em; }
.foot ul { display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.foot a { text-decoration: none; color: var(--paper); opacity: 0.85; }
.foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; }

/* ---- Legal / 404 pages -------------------------------------------- */
.page .bar { border-bottom: 1px solid var(--hair); }
.doc { max-width: 46rem; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.doc h1 { margin: 0 0 0.6rem; font: 300 clamp(2.6rem, 6vw, 4.2rem)/1.04 var(--serif); }
.doc h2 { margin: 3rem 0 0.8rem; font: 400 1.7rem/1.2 var(--serif); }
.doc p, .doc li, .doc dd { color: #3b352f; }
.doc a { color: var(--ink); text-underline-offset: 0.25em; text-decoration-color: var(--brass); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.4rem 0; }
.doc code { font-size: 0.88em; }
.doc dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.6rem 1.8rem; margin: 1.6rem 0; }
.doc dt { color: var(--stone); }
.doc dd { margin: 0; }
@media (max-width: 480px) { .doc dl { grid-template-columns: 1fr; gap: 0.15rem; } .doc dd { margin-bottom: 0.8rem; } }
.meta { font: 500 0.66rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); }
.back { margin-top: 2.5rem; }

/* ---- Motion -------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(2.2rem); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .plate img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.02) translateY(3%); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.statement-gap { margin-bottom: clamp(3rem, 6vw, 5rem); }
h2.label { font-weight: 500; }
@media (max-width: 760px) { .hero picture img { object-position: 47% 50%; } }

/* =====================================================================
   v4 — multi-page site
   ===================================================================== */

/* ---- Navigation: current page, mobile menu (native popover, no JS) -- */
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0 0.3rem 0 1.1rem; border: 0; border-radius: 999px; background: transparent; color: inherit; box-shadow: inset 0 0 0 1px var(--hair-light); font: 500 0.66rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; }
.on-paper .menu-btn { box-shadow: inset 0 0 0 1px var(--hair); }
.menu-btn .bars { display: grid; gap: 5px; place-content: center; width: 2.1rem; height: 2.1rem; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; width: 1rem; height: 1px; background: currentColor; }
@media (max-width: 980px) { .menu-btn { display: inline-flex; } }
.menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--paper); overflow: auto;
  opacity: 0; transform: translateY(-2%); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-heavy), overlay 0.6s allow-discrete, display 0.6s allow-discrete; }
.menu:popover-open { opacity: 1; transform: none; }
@starting-style { .menu:popover-open { opacity: 0; transform: translateY(-2%); } }
.menu::backdrop { background: transparent; }
.menu-inner { display: flex; flex-direction: column; min-height: 100%; padding: 1.6rem var(--gutter) 2.4rem; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-close { min-height: 2.6rem; padding: 0 1.2rem; border: 0; border-radius: 999px; background: transparent; color: inherit; box-shadow: inset 0 0 0 1px var(--hair-light); font: 500 0.66rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; }
.menu ol { margin: auto 0; padding: 3rem 0; list-style: none; counter-reset: m; }
.menu li { counter-increment: m; border-top: 1px solid var(--hair-light); }
.menu li:last-child { border-bottom: 1px solid var(--hair-light); }
.menu li a { display: flex; align-items: baseline; gap: 1.2rem; padding: 1rem 0; text-decoration: none; font: 300 clamp(2.2rem, 9vw, 3.4rem)/1.05 var(--serif); }
.menu li a::before { content: counter(m, upper-roman); min-width: 2.4rem; font: 400 0.9rem/1 var(--display); color: var(--brass-light); }
.menu li a[aria-current="page"] { font-style: italic; color: var(--brass-light); }
.menu:popover-open li { animation: rise 0.9s var(--ease) both; }
.menu:popover-open li:nth-child(2) { animation-delay: 0.05s; } .menu:popover-open li:nth-child(3) { animation-delay: 0.1s; }
.menu:popover-open li:nth-child(4) { animation-delay: 0.15s; } .menu:popover-open li:nth-child(5) { animation-delay: 0.2s; }
.menu .actions { margin-top: 0; }

/* Inner pages open on a dark band, like the home hero. */
.inner .bar { position: absolute; inset: 0 0 auto; color: var(--paper); }

/* ---- Lead: the opening band of an inner page ---------------------- */
.lead { position: relative; display: flex; align-items: flex-end; min-height: 82svh; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate; }
.lead-inner { position: relative; z-index: 2; width: 100%; padding-top: 10rem; padding-bottom: clamp(3.5rem, 9vh, 6.5rem); }
.lead h1 { margin: 0; max-width: 14ch; font: 300 clamp(3rem, 8vw, 7.2rem)/0.98 var(--serif); letter-spacing: -0.015em; }
.lead h1 em { font-style: italic; color: var(--brass-light); }
.lead .lede { max-width: 36rem; margin: 2.2rem 0 0; color: rgba(245, 240, 231, 0.8); font-size: 1.04rem; }
.lead .eyebrow { animation: rise 1.4s var(--ease) 0.15s both; }
.lead h1 { animation: rise 1.4s var(--ease) 0.3s both; }
.lead .lede { animation: rise 1.4s var(--ease) 0.5s both; }
.lead.has-image picture, .lead.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lead.has-image img { object-fit: cover; animation: settle 2.6s var(--ease) both; }
.lead.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(15, 12, 10, 0.92) 0%, rgba(15, 12, 10, 0.5) 40%, rgba(15, 12, 10, 0.25) 100%); }
.lead[data-index]::after { content: attr(data-index); position: absolute; right: var(--gutter); bottom: clamp(3.5rem, 9vh, 6.5rem); z-index: 2; font: 400 clamp(4rem, 12vw, 10rem)/0.8 var(--display); color: rgba(205, 176, 124, 0.24); animation: rise 1.6s var(--ease) 0.6s both; }
@media (max-width: 760px) { .lead[data-index]::after { display: none; } }

/* HTML-in-Canvas title: the canvas sits over the real heading, which stays in the
   accessibility tree and is made transparent only once the canvas has painted. */
.hic-wrap { position: relative; }
.hic { position: absolute; pointer-events: none; }

/* ---- The composition: a drawing that builds as you scroll -------- */
.composition { position: relative; background: var(--ink); color: var(--paper); }
.composition.is-live { height: 240svh; }
.composition-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.composition canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.composition-copy { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 8vh, 5.5rem); z-index: 2; }
.composition-copy h2 { margin: 0; max-width: 17ch; font: 300 clamp(2.2rem, 4.8vw, 4.2rem)/1.05 var(--serif); }
.composition-copy h2 em { font-style: italic; color: var(--brass-light); }
.composition-copy p { max-width: 28rem; margin: 1.4rem 0 0; color: var(--stone-light); }
.composition .label { color: var(--stone-light); margin-bottom: 2rem; }
.composition-copy::before { content: ""; position: absolute; inset: -40% 0 -20%; z-index: -1; background: linear-gradient(0deg, rgba(21, 18, 15, 0.9), rgba(21, 18, 15, 0)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .composition.is-live { height: 100svh; } }

/* ---- Text link with a drawn rule ---------------------------------- */
.more { display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 2.6rem; font: 500 0.7rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none; }
.more::after { content: ""; width: 3rem; height: 1px; background: currentColor; transition: width 0.7s var(--ease-heavy); }
.more:hover::after { width: 5rem; }

/* ---- Teaser row of studies (home) ---------------------------------- */
.studies-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.studies-head .statement { max-width: 16ch; }
.studies-head .more { margin-top: 0; }
.studies-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin: 0; padding: 0; list-style: none; }
.studies-row li:nth-child(2) { margin-top: clamp(2rem, 6vw, 5rem); }
.studies-row li:nth-child(3) { margin-top: clamp(1rem, 3vw, 2.5rem); }
.studies-row a { display: block; text-decoration: none; }
.studies-row .frame { overflow: hidden; }
.studies-row .frame img { aspect-ratio: 3 / 4; transition: transform 1.2s var(--ease-heavy); }
.studies-row a:hover .frame img { transform: scale(1.04); }
.studies-row .cap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0.4rem 0; }
.studies-row .cap span:first-child { font: 400 italic 1.5rem/1.1 var(--serif); }
.studies-row .cap span:last-child { font: 400 0.95rem/1 var(--display); color: var(--brass); letter-spacing: 0.1em; }
@media (max-width: 820px) { .studies-row { grid-template-columns: 1fr; } .studies-row li:nth-child(n) { margin-top: 0; } }

/* ---- Studies (houses page): stacked full-bleed plates -------------- */
.study { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--paper); }
.study picture, .study img { position: absolute; inset: 0; width: 100%; height: 100%; }
.study img { object-fit: cover; }
.study::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(15, 12, 10, 0.88) 0%, rgba(15, 12, 10, 0.25) 46%, rgba(15, 12, 10, 0) 70%); }
.study-copy { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 9vh, 6rem); display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem 2rem; align-items: end; }
.study-copy .roman { grid-column: 1 / span 2; font: 400 clamp(3.5rem, 8vw, 7rem)/0.8 var(--display); color: var(--brass-light); }
.study-copy h2 { grid-column: 3 / span 5; margin: 0; font: 300 clamp(2.4rem, 5vw, 4.6rem)/1 var(--serif); }
.study-copy h2 em { font-style: italic; }
.study-copy p { grid-column: 9 / span 4; margin: 0; color: rgba(245, 240, 231, 0.84); }
@media (max-width: 900px) { .study-copy { grid-template-columns: 1fr; } .study-copy .roman, .study-copy h2, .study-copy p { grid-column: auto; } }
@supports (animation-timeline: view()) {
  .study img { animation: study-in linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes study-in { 0% { transform: scale(1.18); } 50% { transform: scale(1.03); } 100% { transform: scale(1); filter: brightness(0.5); } }
}
.studies-note p { max-width: 34rem; margin: 0; color: var(--stone); }

/* ---- Long-form chapters (vision, atelier) -------------------------- */
.chapter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem 2rem; padding: clamp(4rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--hair); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter .label { grid-column: 1 / span 3; margin: 0.6rem 0 0; }
.chapter h2 { grid-column: 4 / span 8; margin: 0; max-width: 18ch; font: 300 clamp(2.1rem, 4.4vw, 3.8rem)/1.06 var(--serif); }
.chapter h2 em { font-style: italic; color: var(--brass); }
.chapter .body { grid-column: 6 / span 6; display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.chapter .body p { margin: 0; color: var(--stone); font-size: 1.04rem; }
@media (max-width: 900px) { .chapter .label, .chapter h2, .chapter .body { grid-column: 1 / -1; } }

/* Beliefs: three numbered statements on bone. */
.beliefs-band { background: var(--bone); }
.beliefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); margin: 0; padding: 0; list-style: none; counter-reset: b; }
.beliefs li { counter-increment: b; }
.beliefs li::before { content: counter(b, upper-roman); display: block; margin-bottom: 1.4rem; font: 400 1.6rem/1 var(--display); color: var(--brass); }
.beliefs h3 { margin: 0 0 0.8rem; font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--serif); }
.beliefs h3 em { font-style: italic; }
.beliefs p { margin: 0; color: var(--stone); }
@media (max-width: 820px) { .beliefs { grid-template-columns: 1fr; } }

/* Pull quote. */
.pull { text-align: center; }
.pull blockquote { margin: 0 auto; max-width: 18ch; font: 300 italic clamp(2.4rem, 6vw, 5rem)/1.06 var(--serif); }
.pull p { margin: 2rem 0 0; font: 500 0.64rem/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--stone); }

/* ---- Commission page: movements with "you / we" ------------------- */
.movement { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem 2rem; padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--hair); }
.movement:first-child { border-top: 0; padding-top: 0; }
.movement .roman { grid-column: 1 / span 2; font: 400 clamp(3rem, 6vw, 5rem)/0.85 var(--display); color: var(--brass); }
.movement h2 { grid-column: 3 / span 4; margin: 0; font: 300 clamp(2rem, 3.6vw, 3.2rem)/1.06 var(--serif); }
.movement h2 em { font-style: italic; }
.movement .body { grid-column: 7 / span 6; }
.movement .body > p { margin: 0 0 2rem; color: var(--stone); font-size: 1.04rem; }
.movement dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin: 0; }
.movement dt { margin-bottom: 0.6rem; font: 500 0.62rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); }
.movement dd { margin: 0; color: var(--stone); font-size: 0.95rem; }
@media (max-width: 900px) { .movement .roman, .movement h2, .movement .body { grid-column: 1 / -1; } }
@media (max-width: 520px) { .movement dl { grid-template-columns: 1fr; } }

/* Questions: native <details>; the height animates where the browser allows it. */
.faq { max-width: 52rem; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); interpolate-size: allow-keywords; }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding: 1.8rem 0; cursor: pointer; list-style: none; font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.8rem/1 var(--serif); color: var(--brass); transition: transform 0.6s var(--ease-heavy); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.7s var(--ease-heavy), content-visibility 0.7s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { max-width: 40rem; margin: 0 0 2rem; color: var(--stone); }

/* ---- Atelier: materials as a typographic index -------------------- */
.materials { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.materials li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--hair); transition: padding 0.7s var(--ease-heavy), background-color 0.7s var(--ease); }
.materials li:hover { padding-left: 1rem; background: rgba(154, 122, 69, 0.06); }
.materials .roman { font: 400 1.1rem/1 var(--display); color: var(--brass); }
.materials h3 { margin: 0; font: 300 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--serif); }
.materials p { margin: 0; color: var(--stone); }
@media (max-width: 720px) { .materials li { grid-template-columns: 2.6rem 1fr; } .materials p { grid-column: 2; } }

/* ---- Begin page --------------------------------------------------- */
.prepare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); margin: 0; padding: 0; list-style: none; }
.prepare li { padding-top: 1.6rem; border-top: 1px solid var(--ink); }
.prepare h3 { margin: 0 0 0.8rem; font: 400 italic clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--serif); }
.prepare p { margin: 0; color: var(--stone); }
@media (max-width: 820px) { .prepare { grid-template-columns: 1fr; } }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.door { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 22rem; padding: clamp(2rem, 4vw, 3.2rem); border-radius: 1.6rem; background: var(--ink-2); color: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-light); overflow: hidden; isolation: isolate; }
.door::before { content: ""; position: absolute; z-index: -1; right: -20%; bottom: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(205, 176, 124, 0.24), transparent); transition: transform 1.4s var(--ease-heavy); }
.door:hover::before { transform: translate(-12%, -12%) scale(1.2); }
.door h3 { margin: 0; max-width: 14ch; font: 300 clamp(2rem, 3.6vw, 3rem)/1.06 var(--serif); }
.door h3 em { font-style: italic; color: var(--brass-light); }
.door p { max-width: 26rem; margin: 1rem 0 2rem; color: var(--stone-light); }
.door .btn { align-self: flex-start; }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } }
.letter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem 2rem; }
.letter h2 { grid-column: 1 / span 6; margin: 0; font: 300 clamp(2.1rem, 4.4vw, 3.6rem)/1.06 var(--serif); }
.letter h2 em { font-style: italic; color: var(--brass); }
.letter .body { grid-column: 8 / span 5; }
.letter .body p { margin: 0 0 1rem; color: var(--stone); }
.letter .mail { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.2 var(--serif); color: var(--ink); text-underline-offset: 0.3em; text-decoration-thickness: 1px; text-decoration-color: var(--brass); }
@media (max-width: 900px) { .letter h2, .letter .body { grid-column: 1 / -1; } }
.section-tight { padding-top: clamp(4rem, 8vw, 6rem); }

/* ---- Image unveil on scroll --------------------------------------- */
@supports (animation-timeline: view()) {
  .unveil img { animation: unveil linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes unveil { from { clip-path: inset(14% 10% 14% 10% round 1.2rem); transform: scale(1.16); } to { clip-path: inset(0 round 0); transform: scale(1); } }
}

/* ---- Footer: site index ------------------------------------------- */
.foot-index { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin: 0; padding: 0; list-style: none; }
.foot .foot-index a { font: 300 1.35rem/1.2 var(--serif); }

/* ---- Cross-document view transitions ------------------------------ */
@view-transition { navigation: auto; }
.bar .brand { view-transition-name: brand; }
::view-transition-group(brand) { animation-duration: 0.9s; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
::view-transition-old(root) { animation: vt-out 0.6s cubic-bezier(0.32, 0.72, 0, 1) both; }
::view-transition-new(root) { animation: vt-in 1.1s cubic-bezier(0.32, 0.72, 0, 1) both; }
@keyframes vt-out { to { opacity: 0.35; transform: scale(0.97); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); transform: translateY(5%); } to { clip-path: inset(0); transform: none; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
