/* YX Architects — "The slot of light"
   One vertical axis runs through every page, like the recessed light line in a YX ceiling.
   Each project opens from that line. Colour fields come from each house's material:
   moss for the Japandi garden, slate for concrete and glass, umber for timber, ink for limestone.
   Calm, symmetrical, one focal point per screen. */
:root {
  --noir: #0F0E0C;
  --ivory: #F4F0E8;
  --paper: #FBF9F4;
  --olive: #4E4210;
  --sage: #ADA06A;
  --stone: #6B645A;
  --mist: #DCD4C6;
  --line-dark: rgba(244, 240, 232, 0.22);
  --line-light: rgba(15, 14, 12, 0.14);

  --moss: #2A2E26;
  --slate: #23282B;
  --umber: #2E241C;
  --taupe: #2B2824;
  --oxblood: #2D211F;
  --ink: #1F232B;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tint: var(--noir);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--tint); }
.tint { position: fixed; inset: 0; z-index: -1; background: var(--tint); transition: background-color 1.4s var(--ease); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
:where(a, button):focus-visible { outline: 1px solid var(--sage); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.band {
  padding-left: max(16px, var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(16px, var(--gutter), env(safe-area-inset-right, 0px));
}
[data-ink="light"] { color: var(--ivory); }
[data-ink="dark"] { color: var(--noir); }

/* type scale: 12 sans label · 19 body · 22 italic · 48 · 72 · 112 */
.label { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; }
.italic { font-style: italic; font-size: 22px; }
.d-48 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; }
.d-72 { font-size: clamp(44px, 6vw, 72px); line-height: 1.05; }
.d-112 { font-size: clamp(56px, 9vw, 112px); line-height: 0.98; font-style: italic; }
.muted { opacity: 0.72; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: 16px;
  color: var(--hdr, var(--ivory));
  transition: color 0.8s var(--ease);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; opacity: 0.85; }
.site-header nav a:hover { opacity: 1; }
.site-header .right { justify-self: end; }
.logo { position: relative; display: block; width: 168px; height: 25px; }
.logo img { position: absolute; inset: 0; width: 100%; height: auto; transition: opacity 0.8s var(--ease); }
.logo .on-light { opacity: 0; }
body[data-ink="dark"] .logo .on-light { opacity: 1; }
body[data-ink="dark"] .logo .on-dark { opacity: 0; }
@media (max-width: 860px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header .left { display: none; }
  .site-header .right { gap: 20px; }
  .logo { width: 132px; height: 20px; }
}

/* ---------- the slot: an image opening from one vertical line ---------- */
.chapter { position: relative; height: var(--h, 150vh); --e: 1; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.slot { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--e)) * (50% - 1px)) 0 calc((1 - var(--e)) * (50% - 1px))); }
.slot img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.1 - 0.1 * var(--e))); }
.slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,14,12,0.35), rgba(15,14,12,0) 26%, rgba(15,14,12,0) 58%, rgba(15,14,12,0.6)); }
.stage::before {
  content: "";
  position: absolute;
  left: 50%; top: 12%; bottom: 12%;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--ivory) 14%, var(--ivory) 30%, transparent 38%, transparent 66%, var(--ivory) 74%, var(--ivory) 88%, transparent 100%);
  opacity: calc(1 - var(--e) * 1.6);
  z-index: 1;
}
.caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  bottom: max(48px, calc(env(safe-area-inset-bottom, 0px) + 32px));
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ivory);
  opacity: clamp(0, calc((var(--e) - 0.72) * 4), 1);
  text-shadow: 0 1px 24px rgba(15, 14, 12, 0.5);
}
.caption .d-112 { max-width: 14ch; }
.caption a.label { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid currentColor; }
.opening .mark {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  text-align: center;
  color: var(--ivory);
  opacity: clamp(0, calc(1 - (var(--t) - 0.12) * 3.2), 1);
}
.opening .mark img { width: min(380px, 64vw); height: auto; }
.opening .cue { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom, 0px)); text-align: center; opacity: clamp(0, calc(1 - var(--e) * 4), 1); }

/* ---------- quiet text screens ---------- */
.still { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 28px; padding-block: 18vh; text-align: center; }
.still p.lede { max-width: 34ch; font-style: italic; font-size: 22px; opacity: 0.8; }
.axis { width: 1px; height: 96px; background: currentColor; opacity: 0.35; }

/* ---------- site to home: a real timeline, read left to right ---------- */
.track { position: relative; height: var(--h, 320vh); --e: 0; }
.track .stage { place-items: center start; align-content: center; gap: 40px; display: grid; }
.track-head { display: grid; justify-items: center; gap: 12px; text-align: center; width: 100vw; }
.rail { display: flex; gap: 32px; padding-inline: calc(50vw - min(170px, 32vw)); transform: translateX(calc(var(--e) * -1 * var(--dist, 0px))); will-change: transform; }
.rail figure { flex: none; width: min(340px, 64vw); display: grid; gap: 14px; text-align: center; }
.rail img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rail figcaption b { display: block; font-weight: 400; font-size: 26px; font-style: normal; }
.rail figcaption span { font-style: italic; opacity: 0.75; }
.progress { position: relative; justify-self: center; width: min(560px, 80vw); height: 1px; background: var(--line-dark); }
.progress::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--e) * 100%); background: var(--ivory); }
@media (prefers-reduced-motion: reduce) {
  .track { height: auto; }
  .track .stage { position: static; height: auto; padding-block: 15vh; }
  .rail { transform: none; overflow-x: auto; padding-inline: 16px; }
}

/* ---------- plan as line art ---------- */
.plan-art { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 28px; padding-block: 14vh; text-align: center; --e: 1; }
.plan-art img { width: min(1100px, 100%); height: auto; clip-path: inset(0 calc((1 - var(--e)) * 100%) 0 0); }
.plan-art .note { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; opacity: 0.6; }

/* ---------- arches: three details, one row, one baseline ---------- */
.arches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); width: min(1200px, 100%); margin-inline: auto; }
.arches figure { display: grid; gap: 16px; text-align: center; min-width: 0; }
.arch { aspect-ratio: 3 / 4.4; max-width: 100%; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease); }
.arches figure:hover img { transform: scale(1.05); }
.arches figcaption { font-style: italic; opacity: 0.8; }
@media (max-width: 720px) { .arches { grid-template-columns: minmax(0, 1fr); max-width: 380px; } }


/* ---------- the materials: six tall panels, like six slots of light ---------- */
.materials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); width: min(1280px, 100%); margin-inline: auto; }
.mat { display: grid; gap: 16px; text-align: center; min-width: 0; }
.disc { position: relative; width: 100%; aspect-ratio: 2 / 3.6; max-width: 100%; overflow: hidden; }
.disc img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2.4s var(--ease); }
.disc::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(to bottom, transparent, rgba(244, 240, 232, 0.6), transparent); opacity: 0; transition: opacity 1s var(--ease); }
.mat:hover .disc img { transform: scale(1.1); }
.mat:hover .disc::after { opacity: 1; }
.mat h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; font-style: italic; }
.mat p { font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }
.also { max-width: 60ch; font-style: italic; opacity: 0.75; text-align: center; }
@media (max-width: 960px) { .materials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- styles as colour fields ---------- */
.fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
.field { position: relative; height: 72vh; min-height: 420px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; padding: 28px 12px; text-align: center; background: var(--c); color: var(--ivory); }
.field img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease), transform 2s var(--ease); transform: scale(1.06); }
.field:hover img, .field:focus-visible img { opacity: 0.55; transform: scale(1); }
.field > *:not(img) { position: relative; }
.field .name { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; }
.field.light { color: var(--noir); }
@media (max-width: 860px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .field { height: 26vh; min-height: 170px; }
  .field img { opacity: 0.35; }
}

/* ---------- project pages ---------- */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 72px; padding-block: 12vh 4vh; text-align: center; }
.facts dt { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }
.facts dd { margin: 6px 0 0; font-size: 24px; }
.plates { display: grid; gap: 16vh; padding-block: 12vh 18vh; justify-items: center; }
.plate { display: grid; gap: 18px; width: min(1320px, 100%); justify-items: center; text-align: center; }
.plate .frame { width: 100%; height: min(84vh, 62vw); min-height: 300px; overflow: hidden; }
.plate .frame img { width: 100%; height: 100%; object-fit: cover; }
.plate.portrait { width: min(620px, 100%); }
.plate.portrait .frame { height: min(86vh, 130vw); }
.plate figcaption { font-style: italic; opacity: 0.8; }
.stone { list-style: none; margin: 0; padding: 0; width: min(720px, 100%); }
.stone li { display: flex; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid var(--line-dark); }
.stone li:last-child { border-bottom: 1px solid var(--line-dark); }
.stone strong { font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); }
.stone span { font-style: italic; opacity: 0.7; }

/* designed → built: the same house, drawn and finished */
.compare { position: relative; height: var(--h, 260vh); --e: 0; }
.compare .layer { position: absolute; inset: 0; }
.compare .layer img { width: 100%; height: 100%; object-fit: cover; }
.compare .built { opacity: var(--e); }
.compare .tags { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(44px, calc(env(safe-area-inset-bottom, 0px) + 28px)); display: flex; justify-content: center; gap: 40px; color: var(--ivory); }
.compare .tags span { padding-bottom: 6px; border-bottom: 1px solid transparent; opacity: 0.55; transition: opacity 0.4s, border-color 0.4s; }
.compare[data-side="a"] .tags .a, .compare[data-side="b"] .tags .b { opacity: 1; border-bottom-color: currentColor; }
.compare .stage::before { display: none; }
@media (prefers-reduced-motion: reduce) { .compare .built { opacity: 1; } }

.next { display: grid; justify-items: center; gap: 14px; padding-block: 18vh; text-align: center; }
.next a.d-72 { font-style: italic; }
.next a.d-72:hover { opacity: 0.75; }

/* ---------- closing + footer ---------- */
.closing { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 30px; padding-block: 16vh; text-align: center; position: relative; }
.closing .glow { width: 1px; height: 140px; background: linear-gradient(to bottom, transparent, var(--ivory), transparent); box-shadow: 0 0 24px 2px rgba(244, 240, 232, 0.35); }
.closing h2 { max-width: 16ch; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; font-size: 21px; user-select: text; }
.contact a { border-bottom: 1px solid var(--line-dark); }
.closing .label a { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 1px solid currentColor; }
.site-footer { display: grid; justify-items: center; gap: 14px; padding-block: 56px max(40px, env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--mist); }
.site-footer img { width: 150px; height: auto; opacity: 0.85; }
.site-footer p { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapter { height: auto; }
  .chapter .stage { position: relative; }
  .tint, .logo img, .arch img, .field img { transition: none; }
}

/* =====================================================================
   v12 — the art layer. Same axis, same slot, taken further.
   ===================================================================== */

/* film grain over everything, like a silver print */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 45;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* the image arrives in silver, then colour floods in as the slot opens */
.chapter .slot img { filter: grayscale(calc(1 - var(--e))) contrast(calc(1.18 - 0.18 * var(--e))) brightness(calc(0.82 + 0.18 * var(--e))); }

/* two edges of light push the walls apart */
.edge {
  position: absolute;
  z-index: 2;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #FFF8EA 18%, #FFF8EA 82%, transparent);
  box-shadow: 0 0 22px 5px rgba(255, 244, 222, 0.55), 0 0 90px 24px rgba(255, 236, 200, 0.18);
  opacity: calc(clamp(0, var(--e) * 8, 1) * (1 - clamp(0, (var(--e) - 0.7) * 3.4, 1)));
  pointer-events: none;
}
.edge.l { left: calc((1 - var(--e)) * (50% - 1px)); }
.edge.r { right: calc((1 - var(--e)) * (50% - 1px)); }

/* the name rises up the centre line in outline, then dissolves */
.ghost {
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  writing-mode: vertical-rl;
  transform: translate(-50%, calc(-50% + (0.5 - var(--t)) * 22vh));
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(90px, 24vh, 280px);
  line-height: 1;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 240, 232, 0.7);
  opacity: calc(clamp(0, (var(--t) - 0.01) * 10, 1) * (1 - 0.84 * clamp(0, (var(--t) - 0.55) * 2.6, 1)));
  pointer-events: none;
  white-space: nowrap;
}

/* light studies between houses: one beam crosses a field of colour */
.sweep { position: relative; height: 170vh; --e: 0.5; }
.sweep .stage { display: grid; place-items: center; }
.beam {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(4% + var(--e) * 92%);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--ivory) 30%, var(--ivory) 70%, transparent);
  box-shadow: 0 0 30px 6px rgba(244, 240, 232, 0.35);
}
.beam::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 40vw;
  background: linear-gradient(to left, rgba(244, 240, 232, 0.09), transparent);
}
.sweep-word { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; text-align: center; }
.sweep-word .d-112 { letter-spacing: calc(0.02em + var(--e) * 0.4em); margin-right: calc(-1 * (0.02em + var(--e) * 0.4em)); opacity: calc(0.35 + 0.65 * (1 - 2 * (var(--e) - 0.5) * (2 * (var(--e) - 0.5)))); }
.sweep-word .italic { opacity: 0.75; max-width: 30ch; }

/* a soft torch follows the cursor on dark screens */
.spot { isolation: isolate; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 240, 232, 0.07), transparent 70%);
}
.closing > * { position: relative; z-index: 1; }

/* the plan is drawn by a scan line of light */
.plan-wrap { position: relative; width: min(1100px, 100%); }
.plan-wrap img { width: 100%; }
.plan-wrap::after {
  content: "";
  position: absolute;
  top: -4%; bottom: -4%;
  left: calc(var(--e) * 100%);
  width: 2px;
  background: #FFF8EA;
  box-shadow: 0 0 24px 5px rgba(255, 244, 222, 0.5);
  opacity: calc(clamp(0, var(--e) * 10, 1) * (1 - clamp(0, (var(--e) - 0.92) * 12, 1)));
}

/* site to home: each month opens through its own slot as it reaches the centre */
.rail img { clip-path: inset(0 calc((1 - var(--v, 1)) * 42%)); filter: grayscale(calc(1 - var(--v, 1))); transition: clip-path 0.2s linear; }

/* material panels drift at their own depth */
.disc img { transform: translateY(calc(var(--py, 0) * 1px)) scale(1.18); }
.mat:hover .disc img { transform: translateY(calc(var(--py, 0) * 1px)) scale(1.26); }

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .ghost, .edge, .beam, .plan-wrap::after { display: none; }
  .sweep { height: auto; }
  .sweep .stage { position: relative; height: 70vh; }
  .chapter .slot img { filter: none; }
}

/* plans stay folded away until asked for */
.plan-hide { display: grid; justify-items: center; padding-block: 10vh; text-align: center; }
.plan-hide details { display: grid; justify-items: center; gap: 28px; width: min(1100px, 100%); }
.plan-hide summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid currentColor; opacity: 0.75; }
.plan-hide summary::-webkit-details-marker { display: none; }
.plan-hide summary:hover { opacity: 1; }
.plan-hide details[open] summary { margin-bottom: 28px; }
.plan-hide img { width: 100%; height: auto; }
.plan-hide .note { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; opacity: 0.55; margin-top: 16px; }


/* =====================================================================
   v15 — one scroll plays each scene to the end; essences reveal what they mean.
   ===================================================================== */
.chapter, .track, .ess, .compare { --f: 0; --t: 0; }
.opening { --h: 165vh; }

/* ---------- towards completion: two rails, playing against each other ---------- */
.track { height: 340vh; }
.track .stage { display: grid; grid-template-columns: 100vw; grid-template-rows: auto auto auto auto; align-content: center; justify-items: start; gap: 3.4vh; place-items: initial; }
.track .track-head, .track .progress { justify-self: center; }
.track .track-head { width: 100%; }
.track .rail { display: flex; width: max-content; align-items: flex-end; will-change: transform; }
.track .rail.a { gap: 28px; padding-inline: calc(50vw - 24vh); transform: translateX(calc(var(--e) * -1 * var(--dist, 0px))); }
.track .rail.b { gap: 72px; align-items: flex-start; padding-inline: calc(50vw - 11vh); transform: translateX(calc((var(--f) - 1) * var(--dist, 0px))); }
.track .rail figure { flex: none; width: auto; display: grid; gap: 10px; text-align: center; }
.track .rail.a img { height: 36vh; width: 48vh; aspect-ratio: auto; object-fit: cover; }
.track .rail.b img { height: 22vh; width: 22vh; aspect-ratio: auto; object-fit: cover; }
.track .rail.b figure:nth-child(3n+2) img { width: 30vh; }
.track .rail figcaption { font-family: var(--sans); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; opacity: calc(0.5 + 0.45 * var(--v, 1)); }
.track .progress { width: min(560px, 80vw); justify-self: center; }
.track .progress::after { width: calc(var(--e) * 100%); }
@media (max-width: 720px) {
  .track .rail.a img { height: 30vh; width: 40vh; }
  .track .rail.a { padding-inline: calc(50vw - 20vh); }
  .track .rail.b img { height: 17vh; width: 17vh; }
  .track .rail.b figure:nth-child(3n+2) img { width: 23vh; }
}

/* ---------- essences: the beam passes and the idea becomes things ---------- */
.ess { position: relative; height: 190vh; --e: 1; }
.ess .stage { display: grid; align-content: center; justify-items: center; gap: 5.5vh; place-items: initial; }
.ess .beam { opacity: calc(clamp(0, var(--e) * 12, 1) * (1 - clamp(0, (var(--e) - 0.9) * 10, 1))); z-index: 3; pointer-events: none; }
.ess[data-ink="dark"] .beam { background: linear-gradient(to bottom, transparent, var(--noir) 30%, var(--noir) 70%, transparent); box-shadow: 0 0 26px 4px rgba(15, 14, 12, 0.18); }
.ess[data-ink="dark"] .beam::after { background: linear-gradient(to left, rgba(15, 14, 12, 0.05), transparent); }
.ess-word { position: relative; z-index: 2; justify-self: center; text-align: center; letter-spacing: calc(0.02em + var(--e) * 0.14em); margin-right: calc(-1 * (0.02em + var(--e) * 0.14em)); }
.ess-row { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px); width: min(1320px, calc(100vw - 2 * max(16px, var(--gutter)))); justify-self: center; }
.ess-i { --r: clamp(0, calc((0.12 + 0.92 * var(--e) - var(--p)) * 6), 1); display: grid; gap: 10px; align-content: start; text-align: center; min-width: 0; }
.ess-m { position: relative; height: 40vh; overflow: hidden; border-radius: 3px; clip-path: inset(0 calc((1 - var(--r)) * 50%) round 3px); }
.ess-m img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(calc(1 - var(--r))); transform: scale(calc(1.14 - 0.14 * var(--r))); }
.ess-i .kick { font-size: 10px; letter-spacing: 0.26em; opacity: calc(var(--r) * 0.55); }
.ess-i .ess-n { font-style: italic; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.2; opacity: var(--r); transform: translateY(calc((1 - var(--r)) * 10px)); }
.ess-i .ess-n b { display: block; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 4px; }
/* product swatches, drawn rather than photographed */
.sw { background: var(--sw); }
.sw.edge-in { box-shadow: inset 0 0 0 1px rgba(15, 14, 12, 0.12); }
.sw.glow::after { content: ""; position: absolute; left: 50%; top: 14%; bottom: 14%; width: 2px; background: #FFF8EA; box-shadow: 0 0 18px 4px rgba(255, 240, 214, 0.55), 0 0 70px 20px rgba(255, 232, 196, 0.16); }
.sw.panels { background: repeating-linear-gradient(90deg, var(--sw) 0 calc(33.33% - 1px), rgba(15, 14, 12, 0.35) calc(33.33% - 1px) 33.33%); }
.sw.plaster { background: radial-gradient(60% 40% at 30% 30%, rgba(255, 255, 255, 0.35), transparent 70%), radial-gradient(50% 50% at 75% 65%, rgba(120, 100, 80, 0.22), transparent 70%), radial-gradient(40% 30% at 50% 90%, rgba(255, 255, 255, 0.2), transparent 70%), var(--sw); }
.sw.sheen { background: linear-gradient(135deg, rgba(255, 255, 255, 0.0) 30%, rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0) 60%), var(--sw); }
@media (max-width: 720px) {
  .ess { height: 160vh; }
  .ess .stage { gap: 3vh; }
  .ess-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .ess-m { height: 19vh; }
  .ess-i .ess-n { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ess { height: auto; }
  .ess .stage { position: relative; height: auto; min-height: 100vh; padding-block: 14vh; }
  .track { height: auto; }
  .track .stage { position: relative; height: auto; padding-block: 14vh; }
  .track .rail { transform: none !important; overflow-x: auto; padding-inline: 16px; width: auto; max-width: 100vw; }
  .track .stage { overflow: visible; }
}

/* ---------- detail: rounded, with a fine offset line ---------- */
.arch { border-radius: 10px; outline: 1px solid rgba(15, 14, 12, 0.28); outline-offset: 9px; }
.arches { padding: 12px; }

/* ---------- typologies: colour bars that open to show what they hold ---------- */
.typs-wrap { position: relative; }
.typs-head { position: absolute; z-index: 3; top: 28px; left: 0; right: 0; text-align: center; color: var(--ivory); opacity: 0.8; pointer-events: none; mix-blend-mode: difference; }
.typs { display: flex; width: 100%; height: 78vh; min-height: 460px; }
.typ { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 14px; padding: 32px 14px; text-align: center; background: var(--c); color: var(--ivory); cursor: pointer; transition: flex-grow 1.1s var(--ease); }
.typ img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 2.2s var(--ease); }
.typ::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--c) 8%, transparent 70%); opacity: 0; transition: opacity 1.1s var(--ease); }
.typ > *:not(img) { position: relative; z-index: 2; }
.typ .name { font-size: clamp(22px, 2vw, 32px); line-height: 1.1; white-space: nowrap; }
.typ .types { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; max-height: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease) 0.25s, transform 0.8s var(--ease) 0.25s, max-height 0.9s var(--ease); }
@media (hover: hover) {
  .typ:hover { flex-grow: 2.6; }
  .typ:hover img { opacity: 0.62; transform: scale(1); }
  .typ:hover::before { opacity: 0.9; }
  .typ:hover .types { max-height: 240px; opacity: 1; transform: none; }
}
.typ:focus-visible, .typ.open { flex-grow: 2.6; }
.typ:focus-visible img, .typ.open img { opacity: 0.62; transform: scale(1); }
.typ:focus-visible::before, .typ.open::before { opacity: 0.9; }
.typ:focus-visible .types, .typ.open .types { max-height: 240px; opacity: 1; transform: none; }
@media (max-width: 1100px) { .typ .name { white-space: normal; } }
.typ.light { color: var(--noir); }
@media (max-width: 860px) {
  .typs { flex-direction: column; height: auto; min-height: 0; }
  .typ { flex: none; height: 15vh; min-height: 104px; transition: height 0.9s var(--ease); }
  .typ.open { height: 52vh; }
  .typs-head { top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .typ, .typ img, .typ .types { transition: none; } }

/* =====================================================================
   v16 — one screen per section; a Y opens the page, an X closes it.
   ===================================================================== */
html { scroll-behavior: auto; }
.chapter, .ess, .track, .compare, .xclose { height: 100vh; height: 100svh; }
main > .still, #work ~ .still { min-height: 100vh; min-height: 100svh; }

/* the Y: three doors part along the YX break line */
.opening .slot { clip-path: none; }
.opening .stage::before { display: none; }
.yd { position: absolute; inset: 0; z-index: 2; pointer-events: none; will-change: transform;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.16)), var(--tint); }
.yd.l { clip-path: polygon(0 0, 22% 0, 50% 46%, 50% 100%, 0 100%); transform: translateX(calc(var(--e) * -53%)); }
.yd.r { clip-path: polygon(78% 0, 100% 0, 100% 100%, 50% 100%, 50% 46%); transform: translateX(calc(var(--e) * 53%)); }
.yd.t { clip-path: polygon(22% 0, 78% 0, 50% 46%); transform: translateY(calc(var(--e) * -49%)); }
.ycrack, .xseam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.ycrack path, .xseam path { fill: none; stroke: #FFF8EA; stroke-width: 1.3; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(255, 240, 214, 0.95)) drop-shadow(0 0 22px rgba(255, 232, 196, 0.5)); }
.ycrack { opacity: calc((0.5 + 0.5 * clamp(0, var(--e) * 8, 1)) * (1 - clamp(0, (var(--e) - 0.22) * 2.6, 1))); }
.opening .mark, .opening .cue { z-index: 4; }
.opening .ghost { z-index: 3; }
.opening .caption { z-index: 4; }

/* the X: four panels close in from the four sides, seams running corner to corner */
.xclose { padding: 0; display: block; min-height: 0; justify-items: normal; place-content: normal; }
.xclose .stage { width: 100%; }
.xclose .stage { display: grid; place-items: center; }
.xbg { position: absolute; inset: 0; margin: 0; }
.xbg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(var(--e)) brightness(calc(1 - 0.35 * var(--e))); transform: scale(calc(1 + 0.06 * var(--e))); }
.xd { position: absolute; inset: 0; z-index: 2; pointer-events: none; will-change: transform;
  background: radial-gradient(120% 80% at 50% 50%, #17150F, #0B0A08); }
.xd.t { clip-path: polygon(0 0, 100% 0, 50% 50%); transform: translateY(calc((1 - var(--e)) * -53%)); }
.xd.b { clip-path: polygon(0 100%, 100% 100%, 50% 50%); transform: translateY(calc((1 - var(--e)) * 53%)); }
.xd.l { clip-path: polygon(0 0, 50% 50%, 0 100%); transform: translateX(calc((1 - var(--e)) * -53%)); }
.xd.r { clip-path: polygon(100% 0, 100% 100%, 50% 50%); transform: translateX(calc((1 - var(--e)) * 53%)); }
.xseam { opacity: calc(clamp(0, (var(--e) - 0.72) * 5, 1) * (1 - 0.72 * clamp(0, (var(--t) - 0.46) * 3, 1))); }
.xcontent { position: relative; z-index: 4; display: grid; justify-items: center; gap: 30px; text-align: center; padding-inline: max(16px, var(--gutter));
  opacity: clamp(0, calc((var(--t) - 0.42) * 4), 1); transform: translateY(calc((1 - clamp(0, (var(--t) - 0.42) * 4, 1)) * 14px)); }
.xcontent h2 { max-width: 16ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.xcontent .label a { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 1px solid currentColor; }

/* typologies fill exactly one screen */
.typs-wrap { height: 100vh; height: 100svh; }
.typs { height: 100%; min-height: 0; }
@media (max-width: 860px) {
  .typ { flex: 1 1 0; height: auto; min-height: 0; transition: flex-grow 0.9s var(--ease); }
  .typ.open { height: auto; flex-grow: 3.4; }
}
@media (prefers-reduced-motion: reduce) {
  .yd, .ycrack { display: none; }
  .soft-y .yd, .soft-y .ycrack { display: block; transform: none !important; transition: opacity 2.2s ease; }
  .soft-y .yd { opacity: calc(1 - var(--e)); }
  .soft-y .ycrack { opacity: calc(1 - var(--e)); transition-duration: 1.2s; }
  .soft-y .mark, .soft-y .cue { transition: opacity 1.4s ease; }
  .soft-y .caption { transition: opacity 2.4s ease 0.6s; }
}
/* detail stays one screen on phones: a triptych, not a stack */
@media (max-width: 720px) {
  .arches { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 14px; padding: 8px; }
  .arch { aspect-ratio: 3 / 6.4; border-radius: 7px; outline-offset: 5px; }
}

/* =====================================================================
   v17 — luxury pace. Y from the corners, strips fade in, rails drift right.
   ===================================================================== */
.yd.l { clip-path: polygon(0 0, 50% 46%, 50% 100%, 0 100%); }
.yd.r { clip-path: polygon(100% 0, 100% 100%, 50% 100%, 50% 46%); }
.yd.t { clip-path: polygon(0 0, 100% 0, 50% 46%); }
.ycrack { opacity: calc((0.5 + 0.5 * clamp(0, var(--e) * 6, 1)) * (1 - clamp(0, (var(--e) - 0.28) * 2, 1))); }

/* essence strips: no flip, they fade up as the light passes */
.ess-i { --r: clamp(0, calc((0.22 + 0.9 * var(--e) - var(--p)) * 3.2), 1); }
.ess-m { clip-path: none; opacity: var(--r); }
.ess-m img { filter: grayscale(calc(1 - var(--r))) blur(calc((1 - var(--r)) * 6px)); transform: scale(calc(1.05 - 0.05 * var(--r))); }
.ess-i .ess-n { transform: translateY(calc((1 - var(--r)) * 6px)); }

/* towards completion: both rails drift right, the lower one slower */
.track .rail.a { transform: translateX(calc((var(--e) - 1) * var(--dist, 0px))); }
.track .rail.b { transform: translateX(calc((var(--f) - 1) * var(--dist, 0px))); }
.track .rail img { transition: clip-path 0.6s var(--ease), filter 0.6s var(--ease); }

/* mood boards: a photograph over its own colour card */
.ess-m.board { display: grid; grid-template-rows: 1fr auto; background: #FBF9F4; box-shadow: 0 0 0 1px rgba(15, 14, 12, 0.1); }
.ess-m.board img { height: 100%; min-height: 0; }
.board .chips { display: grid; grid-template-rows: repeat(4, 1fr); height: 38%; min-height: 64px; }
.ess-m.board { grid-template-rows: 62% 38%; }
.board .chips { height: 100%; }
.board .chips i { display: block; background: var(--c); }
@media (max-width: 720px) {
  .ess-word { font-size: clamp(38px, 11vw, 52px); letter-spacing: calc(0.02em + var(--e) * 0.05em); margin-right: calc(-1 * (0.02em + var(--e) * 0.05em)); max-width: 100vw; }
}

/* =====================================================================
   v19 — mood boards: real textures laid out like a sample table
   ===================================================================== */
.moods { position: relative; height: 100vh; height: 100svh; --e: 1; }
.moods .stage { display: grid; align-content: center; justify-items: center; gap: 4.5vh; place-items: initial; }
.moods .ess-word { justify-self: center; }
.boards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 56px); width: min(1240px, calc(100vw - 2 * max(16px, var(--gutter)))); justify-self: center; }
.mb { display: grid; gap: 14px; text-align: center; min-width: 0; }
.mb-box { position: relative; height: min(58vh, calc((min(1240px, 100vw) - 160px) / 3 * 1.25)); aspect-ratio: 4 / 5; justify-self: center; max-width: 100%;
  background: linear-gradient(160deg, #F3EEE6, #E4DCD0); box-shadow: inset 0 0 0 1px rgba(15, 14, 12, 0.06); }
/* a soft gobo of leaf shadow across the table */
.mb-box::after { content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none; mix-blend-mode: multiply; opacity: 0.55;
  background:
    radial-gradient(ellipse 18% 7% at 16% 14%, rgba(60, 46, 32, 0.22), transparent 70%),
    radial-gradient(ellipse 12% 5% at 30% 8%, rgba(60, 46, 32, 0.18), transparent 70%),
    radial-gradient(ellipse 22% 8% at 78% 22%, rgba(60, 46, 32, 0.16), transparent 70%),
    radial-gradient(ellipse 10% 4% at 88% 12%, rgba(60, 46, 32, 0.2), transparent 70%),
    linear-gradient(115deg, rgba(255, 250, 240, 0.18), transparent 40%, rgba(40, 30, 20, 0.08)); }
.tx { --r: clamp(0, calc((0.15 + 1.1 * var(--e) - var(--p)) * 3), 1);
  position: absolute; padding: 0; margin: 0; border: 0; cursor: pointer; overflow: hidden; container-type: size; font: inherit; color: var(--ivory);
  background: #DDD5C8; box-shadow: 0 10px 24px -10px rgba(30, 22, 14, 0.45), 0 2px 4px rgba(30, 22, 14, 0.12);
  opacity: var(--r); transform: translateY(calc((1 - var(--r)) * 12px)) scale(1);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.tx img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx.round { border-radius: 50%; }
.tx.chip { box-shadow: 0 8px 20px -10px rgba(30, 22, 14, 0.4), inset 0 0 0 1px rgba(15, 14, 12, 0.05); color: var(--noir); }
.tx.chip.dark { color: var(--ivory); }
.tx-info { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 6px; text-align: center;
  background: rgba(15, 14, 12, 0.46); opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.tx.chip .tx-info { background: transparent; opacity: 0.9; }
.tx-info b { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.4; }
.tx-info em { font-size: 13px; line-height: 1.25; opacity: 0.9; }
@container (max-height: 70px) { .tx-info em { display: none; } }
@container (max-width: 90px) { .tx-info em { display: none; } .tx-info b { font-size: 8.5px; letter-spacing: 0.16em; } }
.tx:hover, .tx:focus-visible, .tx.on { transform: translateY(0) scale(1.05); z-index: 30 !important; box-shadow: 0 22px 44px -14px rgba(30, 22, 14, 0.55), 0 4px 8px rgba(30, 22, 14, 0.15); }
.tx:hover .tx-info, .tx:focus-visible .tx-info, .tx.on .tx-info { opacity: 1; }
.tx.chip:hover .tx-info, .tx.chip.on .tx-info { background: rgba(15, 14, 12, 0.06); }
.tx:focus-visible { outline: 1px solid var(--noir); outline-offset: 3px; }
@media (max-width: 720px) {
  .moods { height: auto; }
  .moods .stage { position: relative; height: auto; padding-block: 12vh 10vh; }
  .boards { grid-template-columns: minmax(0, 1fr); gap: 8vh; }
  .mb-box { height: auto; width: min(82vw, 420px); }
}
@media (prefers-reduced-motion: reduce) { .tx { transition: none; } }

/* =====================================================================
   v21 — appointment, in the house style
   ===================================================================== */
.appt2 { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 100vh; min-height: 100svh; }
.appt-img { position: sticky; top: 0; height: 100vh; height: 100svh; margin: 0; overflow: hidden; }
.appt-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.78); animation: apptin 3.2s var(--ease) both; }
.appt-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 14, 12, 0) 55%, var(--noir)); }
.appt-line { position: absolute; z-index: 2; top: 0; bottom: 0; right: 0; width: 1px; background: linear-gradient(to bottom, transparent, #FFF8EA 30%, #FFF8EA 70%, transparent); box-shadow: 0 0 20px 3px rgba(255, 240, 214, 0.35); }
@keyframes apptin { from { clip-path: inset(0 50% 0 50%); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
.appt-body { display: grid; align-content: center; gap: 22px; padding-block: calc(84px + env(safe-area-inset-top, 0px)) 48px; max-width: 760px; }
.appt-body h1 { font-style: italic; }
.aform { display: grid; gap: 24px; }
.arow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; align-items: end; }
.afield { display: grid; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.afield > label, .afield > legend { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; padding: 0; margin-bottom: 8px; }
.afield input, .afield select, .afield textarea { width: 100%; font: inherit; font-size: 21px; color: var(--ivory); background: transparent; border: 0; border-bottom: 1px solid rgba(244, 240, 232, 0.28); border-radius: 0; padding: 8px 0 10px; min-height: 44px; transition: border-color 0.5s var(--ease); }
.afield select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.afield select option { color: var(--noir); }
.afield textarea { resize: vertical; }
.afield input:focus, .afield select:focus, .afield textarea:focus { outline: none; border-bottom-color: var(--ivory); }
.afield .error { font-family: var(--sans); font-size: 12px; color: #E7B9A8; }
.achips { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.achips label { cursor: pointer; position: relative; }
.achips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.achips span { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-style: italic; opacity: 0.5; border-bottom: 1px solid transparent; transition: opacity 0.4s, border-color 0.4s; }
.achips input:checked + span { opacity: 1; border-bottom-color: currentColor; }
.achips input:focus-visible + span { outline: 1px solid var(--sage); outline-offset: 4px; }
.acheck { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 19px; }
.acheck input { width: 18px; height: 18px; accent-color: var(--ivory); }
.asubmit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.asubmit .italic { font-size: 17px; opacity: 0.6; }
.abtn { font-family: var(--sans); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ivory); background: transparent; border: 1px solid rgba(244, 240, 232, 0.7); padding: 18px 34px; min-height: 52px; cursor: pointer; transition: background-color 0.6s var(--ease), color 0.6s var(--ease); }
.abtn:hover, .abtn:focus-visible { background: var(--ivory); color: var(--noir); }
.athanks { display: grid; gap: 22px; }
.athanks .note { font-family: var(--sans); font-size: 12px; opacity: 0.55; }
.athanks .label a { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 1px solid currentColor; }
.appt-body .contact { justify-content: flex-start; font-size: 18px; opacity: 0.75; margin-top: 12px; }
@media (max-width: 860px) {
  .appt2 { grid-template-columns: minmax(0, 1fr); }
  .appt-img { position: relative; height: 38vh; }
  .appt-img::after { background: linear-gradient(180deg, rgba(15, 14, 12, 0) 50%, var(--noir)); }
  .appt-line { display: none; }
  .appt-body { padding-block: 24px 56px; }
  .arow { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .appt-img img { animation: none; } }

[hidden] { display: none !important; }

/* =====================================================================
   v23 — eight trend boards, slower rails, typology lift
   ===================================================================== */
.moods .stage { gap: 3.2vh; }
.moods .ess-word { font-size: clamp(44px, 6vw, 84px); }
.boards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3vh clamp(16px, 2.4vw, 40px); width: min(1180px, calc(100vw - 2 * max(16px, var(--gutter)))); }
.mb { gap: 10px; }
.mb-box { height: min(30vh, calc((min(1180px, 100vw) - 200px) / 4 * 1.25)); }
.mb .ess-n { font-size: clamp(16px, 1.3vw, 20px); font-style: italic; }
.tx-info b { font-size: 9px; letter-spacing: 0.2em; }
.tx-info em { font-size: 11.5px; }
.tx.chip .tx-info em { display: none; }
@media (max-width: 960px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mb-box { height: auto; width: 100%; } }
@media (max-width: 720px) {
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5vh 14px; }
  .mb-box { width: 100%; }
}

/* typology: on hover the words rise to a sixth of the bar */
@media (hover: hover) and (min-width: 861px) {
  .typ { transition: flex-grow 1.1s var(--ease), padding-bottom 1.1s var(--ease); }
  .typ:hover, .typ:focus-visible { padding-bottom: calc(100vh / 6); padding-bottom: calc(100svh / 6); }
}

/* =====================================================================
   v24 — mood boards live inside Materiality, opened by style name
   ===================================================================== */
.ess .stage > .ess-word { grid-row: 1; }
.ess .stage > .ess-row { grid-row: 2; grid-column: 1; transition: opacity 0.8s var(--ease); }
.ess .stage > .board-layer { grid-row: 2; grid-column: 1; }
.ess .stage > .styles-nav { grid-row: 3; }
.styles-nav { position: relative; z-index: 2; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 22px; max-width: min(1100px, 92vw); opacity: clamp(0, calc((var(--e) - 0.6) * 3), 1); }
.styles-nav .label { opacity: 0.55; margin-right: 6px; }
.style-btn { font: inherit; font-style: italic; font-size: clamp(16px, 1.3vw, 20px); color: inherit; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; opacity: 0.6; border-bottom: 1px solid transparent; transition: opacity 0.4s, border-color 0.4s; }
.style-btn:hover, .style-btn[aria-expanded="true"] { opacity: 1; border-bottom-color: currentColor; }
.board-layer { position: relative; z-index: 3; justify-self: center; align-self: center; display: grid; justify-items: center; gap: 12px; }
.board-layer .mb { display: grid; }
.board-layer .mb[hidden] { display: none; }
.board-layer .mb-box { height: min(48vh, 520px); width: auto; animation: boardin 0.9s var(--ease) both; }
@keyframes boardin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.board-close { position: absolute; top: -34px; right: 0; color: inherit; background: none; border: 0; cursor: pointer; min-height: 32px; opacity: 0.7; }
.board-close:hover { opacity: 1; }
.ess.has-board .ess-row { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .board-layer .mb-box { height: min(48vh, 440px); }
  .styles-nav { gap: 0 16px; }
  .style-btn { font-size: 15px; min-height: 36px; }
}

/* materiality: ten distinct families, one slim strip each */
.ess[aria-label="Materiality"] .ess-row { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.ess[aria-label="Materiality"] .ess-m { height: 38vh; }
.ess[aria-label="Materiality"] .ess-n { font-size: clamp(14px, 1.15vw, 19px); }
@media (max-width: 720px) {
  .ess[aria-label="Materiality"] .ess-row { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 14px; }
  .ess[aria-label="Materiality"] .ess-m { height: 15vh; }
  .ess[aria-label="Materiality"] .ess-n { font-size: 12px; }
}
/* every strip finishes fully revealed (the last ones used to stay soft) */
.ess-i { --r: clamp(0, calc((0.15 + 1.1 * var(--e) - var(--p)) * 3.2), 1); }

/* v30 — Start button on the home opening */
.opening .cue.start { left: 50%; right: auto; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; padding: 14px 22px; color: var(--ivory); cursor: pointer; -webkit-tap-highlight-color: transparent; bottom: max(36px, calc(env(safe-area-inset-bottom, 0px) + 20px)); }
.opening .cue.start span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(244, 240, 232, 0.55); border-radius: 50%; background: #2A2C27; font-size: 20px; line-height: 1; letter-spacing: 0; animation: yxStart 2.8s ease-in-out infinite; }
.opening .cue.start:hover span, .opening .cue.start:focus-visible span { background: #3A3C36; }
@keyframes yxStart { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (hover: none) { .opening .cue.start span { width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .opening .cue.start span { animation: none; } }

/* v31 — materiality: fourteen families, two rows of seven */
.ess[aria-label="Materiality"] .ess-row { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(14px, 2.2vh, 24px) clamp(8px, 1vw, 16px); }
.ess[aria-label="Materiality"] .ess-m { height: 22vh; }
@media (max-width: 720px) {
  .ess[aria-label="Materiality"] .ess-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .ess[aria-label="Materiality"] .ess-m { height: 10.5vh; }
}

/* v33 — project pages: frosted, translucent Y and X in the project's own colour */
[data-glass] .yd, [data-glass] .xd {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(15, 14, 12, 0.12)), color-mix(in srgb, var(--glass) 26%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15);
}
[data-glass].opening .slot img { filter: none; }
[data-glass].opening .ghost { display: none; }
[data-glass].opening .mark { opacity: clamp(0, calc(1 - var(--e) * 3.2), 1); }
[data-glass].opening .mark .d-112, [data-glass].opening .mark .label, [data-glass].opening .mark .italic { text-shadow: 0 1px 2px rgba(15, 14, 12, 0.35), 0 2px 28px rgba(15, 14, 12, 0.55); }
[data-glass].opening .stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(15, 14, 12, 0.62)); opacity: var(--e); }
[data-glass].opening .caption { text-shadow: 0 1px 2px rgba(15, 14, 12, 0.4), 0 2px 26px rgba(15, 14, 12, 0.6); }
[data-glass].xclose .xbg img { filter: brightness(calc(1 - 0.12 * var(--e))); }
[data-glass].xclose .xcontent { padding: clamp(48px, 9vh, 110px) clamp(48px, 8vw, 140px);
  background: radial-gradient(closest-side, rgba(15, 14, 12, 0.5), rgba(15, 14, 12, 0.22) 62%, transparent); }
[data-glass].xclose .xcontent h2, [data-glass].xclose .xcontent .contact, [data-glass].xclose .xcontent .label { text-shadow: 0 1px 2px rgba(15, 14, 12, 0.4), 0 2px 26px rgba(15, 14, 12, 0.55); }

/* v35 — panel fixes */
/* ghost name moves to the edge, clear of titles and the menu */
.ghost { left: max(18px, calc(var(--gutter, 48px) * 0.6)); top: 50%; transform: translate(0, calc(-50% + (0.5 - var(--t)) * 16vh)); font-size: clamp(64px, 15vh, 170px); -webkit-text-stroke: 1px rgba(244, 240, 232, 0.42); }
/* header stays readable over light bars */
.site-header a, .site-header .logo { text-shadow: 0 0 14px rgba(15, 14, 12, 0.35); }
.site-header .logo img { filter: drop-shadow(0 0 10px rgba(15, 14, 12, 0.28)); }
.contact a[href^="tel:"] { color: inherit; text-decoration: none; }
/* phone: no caption under 12 px */
@media (max-width: 720px) {
  .label, .kick, .ess-n, .typ .types li, .facts dt, .site-footer p, .tags, .track .label { font-size: max(12px, 1em) !important; }
  .label { font-size: 12px !important; }
  .ess-n { font-size: 13px !important; }
}
/* dot index */
.dots { position: fixed; z-index: 60; right: max(14px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; gap: 4px; }
.dot { position: relative; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--hdr, #F4F0E8); opacity: 0.38; transition: opacity 0.4s, transform 0.4s; }
.dot.on::before { opacity: 1; transform: scale(1.5); }
.dot span { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--hdr, #F4F0E8); opacity: 0; pointer-events: none; transition: opacity 0.35s; text-shadow: 0 0 12px rgba(15, 14, 12, 0.45); }
.dot:hover span, .dot:focus-visible span { opacity: 0.9; }
.dot:focus-visible { outline: 1px solid var(--hdr, #F4F0E8); outline-offset: 2px; border-radius: 50%; }
@media (max-width: 720px) { .dots { right: 6px; gap: 0; } .dot { width: 24px; height: 26px; } .dot span { display: none; } }
/* share */
.share-row { margin: 0; display: flex; justify-content: center; padding-bottom: 6vh; }
.share-btn { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: inherit; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 10px 0; min-height: 44px; cursor: pointer; opacity: 0.85; }
.share-btn:hover { opacity: 1; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: max(28px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; padding: 12px 20px; background: rgba(15, 14, 12, 0.88); color: #F4F0E8; border-radius: 2px; transition: opacity 0.7s; max-width: calc(100vw - 32px); overflow-wrap: anywhere; }
.toast.out { opacity: 0; }
/* footer links */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin: 6px 0 2px; }
.foot-links a, .foot-links .share-btn { display: inline-flex; align-items: center; min-height: 44px; opacity: 0.7; font-size: 11px; border: 0; padding: 0; }
.foot-links a:hover, .foot-links .share-btn:hover { opacity: 1; }
/* site reviews */
.reviews .rev-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; font-style: italic; font-size: clamp(18px, 1.5vw, 22px); opacity: 0.85; }
.reviews .rev-fine { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; opacity: 0.5; margin: 0; }
.reviews .share-row { justify-content: flex-start; padding: 0; }

/* v36 — hover reveals where the material or detail lives */
.ess-link { display: block; color: inherit; text-decoration: none; outline: none; }
.ess-m .hov, .arch .hov { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 1.6s var(--ease); filter: none; }
.arch { position: relative; }
.ess-m .place { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 10px 10px; text-align: center; font-size: 10px; line-height: 1.5; letter-spacing: 0.16em; color: #F4F0E8;
  background: linear-gradient(180deg, transparent, rgba(15, 14, 12, 0.72)); opacity: 0; transform: translateY(6px); transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s; }
.ess-link:hover .hov, .ess-link:focus-visible .hov, .ess-link.on .hov, .arch-link:hover .hov, .arch-link:focus-visible .hov, .arch-link.on .hov { opacity: 1; transform: scale(1); }
.ess-link:hover .place, .ess-link:focus-visible .place, .ess-link.on .place { opacity: 1; transform: none; }
.ess-link:focus-visible .ess-m, .arch-link:focus-visible .arch { outline: 1px solid #F4F0E8; outline-offset: 3px; }
a.ess-link:hover ~ .ess-n, .ess-i:has(.ess-link:hover) .ess-n { opacity: 1; }
.arch-link { display: block; color: inherit; text-decoration: none; }
.arches figcaption { margin-top: 18px; opacity: 0.6; transition: opacity 0.5s; }
.arch-link:hover figcaption, .arch-link.on figcaption { opacity: 1; }
@media (max-width: 720px) { .ess-m .place { font-size: 9px !important; padding: 18px 4px 6px; letter-spacing: 0.08em; } .arches figcaption { font-size: 10px !important; letter-spacing: 0.1em; } }

/* v37 — back to the work, landing on this project's own section */
.back-row { margin: 8px 0 0; }
.back-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 26px; border: 1px solid rgba(244, 240, 232, 0.6); color: #F4F0E8; text-decoration: none; letter-spacing: 0.24em; transition: background-color 0.6s var(--ease), color 0.6s var(--ease); }
.back-btn:hover, .back-btn:focus-visible { background: #F4F0E8; color: #0F0E0C; text-shadow: none; }
.back-btn span { font-size: 15px; letter-spacing: 0; }

/* v40: form honeypot (spam trap) never shown */
.aform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* site reviews showcase */
.rev-show { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); max-width: 1320px; margin: 0 auto; }
.rev-show .d-72 { margin: 10px 0 14px; font-style: italic; }
.rev-show .show-lead { opacity: 0.8; margin: 0 0 40px; max-width: 46ch; }
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.show-card { display: grid; gap: 10px; align-content: start; padding: 28px 26px; border: 1px solid rgba(244, 240, 232, 0.16); color: inherit; text-decoration: none; transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease); }
.show-card:hover { border-color: rgba(244, 240, 232, 0.6); background: rgba(244, 240, 232, 0.03); }
.show-meta { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; }
.show-sub { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; font-style: italic; }
.show-sum { font-family: var(--sans); font-size: 13px; line-height: 1.6; opacity: 0.75; }
.show-go { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 8px; }
.rev-show .show-all { margin-top: 28px; opacity: 0.7; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.rev-show .show-all a { color: inherit; text-underline-offset: 3px; }

.show-card.es { border-color: rgba(159, 184, 173, 0.35); }
.show-card.es .show-meta, .show-card.es .show-go { color: #9fb8ad; opacity: 1; }
.show-card.so { border-color: rgba(201, 165, 107, 0.45); background: rgba(201, 165, 107, 0.04); }
.show-card.so .show-meta, .show-card.so .show-go { color: #c9a56b; opacity: 1; }

/* service pages */
.svc { max-width: 980px; margin: 0 auto; padding-top: clamp(120px, 14vw, 180px); padding-bottom: clamp(72px, 10vw, 140px); }
.svc .svc-lead { opacity: 0.85; margin: 14px 0 46px; max-width: 46ch; }
.svc .svc-h { margin: 46px 0 16px; opacity: 0.7; }
.svc-list { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(244, 240, 232, 0.14); }
.svc-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(244, 240, 232, 0.14); }
.svc-row dt { font-style: italic; font-size: clamp(20px, 2vw, 26px); }
.svc-row dd { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.7; opacity: 0.78; }
.svc-note { font-family: var(--sans); font-size: 13px; line-height: 1.7; opacity: 0.65; margin: 18px 0 0; max-width: 70ch; }
.svc-sample { max-width: 460px; }
.svc-cta { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin: 46px 0 18px; }
.svc-cta .abtn { text-decoration: none; display: inline-flex; align-items: center; }
.svc-other { color: inherit; opacity: 0.8; }
.svc .rev-fine-s { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; opacity: 0.5; margin: 0; }
.svc-es .svc-k { color: #9fb8ad; } .svc-so .svc-k { color: #c9a56b; }
@media (max-width: 640px) { .svc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Siteqick alternative */
.sq-alt { margin: 28px 0 22px; padding: 22px 24px; border: 1px solid rgba(201, 165, 107, 0.55); background: rgba(201, 165, 107, 0.05); max-width: 620px; }
.sq-k { color: #c9a56b; }
.sq-alt .sq-t { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; margin: 8px 0 16px; }
.sq-alt .sq-t b { font-weight: 500; color: #f0dcb4; }
.sq-btns { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin: 0; }
.sq-btns .abtn, .sq-cta .abtn { text-decoration: none; display: inline-flex; align-items: center; border-color: #c9a56b; color: #f0dcb4; }
.sq-btns .abtn:hover, .sq-cta .abtn:hover { background: #c9a56b; color: #0f0e0c; }
.sq-open { color: #c9a56b; }
.sq-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin: 0 0 40px; }
.sq-kind { display: grid; gap: 10px; padding: 24px 26px; border: 1px solid rgba(244, 240, 232, 0.16); color: inherit; text-decoration: none; }
.sq-kind.es { border-color: rgba(159, 184, 173, 0.4); } .sq-kind.es .show-meta, .sq-kind.es .show-go { color: #9fb8ad; opacity: 1; }
.sq-kind.so { border-color: rgba(201, 165, 107, 0.5); } .sq-kind.so .show-meta, .sq-kind.so .show-go { color: #c9a56b; opacity: 1; }
.sq-kd { font-size: clamp(19px, 1.6vw, 23px); font-style: italic; line-height: 1.35; }
.sq-samples { opacity: 0.7; margin: 0 0 16px; }
.sq-cta { margin: 36px 0 14px; }
.rev-show .rev-fine-s { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; opacity: 0.55; margin: 0; }
.rev-show .rev-fine-s a { color: inherit; }

.sq-page { padding-top: clamp(120px, 14vw, 180px); }
.sq-page .d-112 { margin: 10px 0 18px; }

.reviews .sq-line { font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; margin: 34px 0 0; opacity: 0.85; }
.reviews .sq-line a { color: #c9a56b; text-underline-offset: 4px; }

/* Siteqick card on Site reviews (Renzo 2026-11-19: make it obvious) */
.reviews .sq-card{display:grid;gap:8px;margin:48px 0 0;padding:28px 30px;border:1px solid #c9a56b;border-radius:6px;background:rgba(201,165,107,.08);text-decoration:none;color:inherit;max-width:560px;transition:background .2s}
.reviews .sq-card:hover,.reviews .sq-card:focus-visible{background:rgba(201,165,107,.16)}
.reviews .sq-k{font-family:var(--sans);font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#c9a56b}
.reviews .sq-h{font-family:var(--serif,Georgia,serif);font-size:clamp(30px,3.2vw,42px);line-height:1.1}
.reviews .sq-p{font-family:var(--sans);font-size:15px;opacity:.85}
.reviews .sq-b{justify-self:start;margin-top:10px;font-family:var(--sans);font-size:15px;font-weight:600;letter-spacing:.02em;padding:14px 22px;background:#c9a56b;color:#0f0e0c;border-radius:4px}
