/* Albini — landing demo
   Motifs: the Albini flourish emblem and the upholsterer's tools (pinked swatches, sample fans, folding screens), Bodoni + script accents. */

:root {
  --ivory: #F3EEE6;
  --paper: #E9E1D5;
  --ink: #1B1114;
  --plum: #22080F;
  --wine: #5A1027;
  --gold: #B48F58;
  --mute: #8A7C76;
  --serif: "Bodoni Moda", Didot, "Bodoni 72", serif;
  --sans: "Jost", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;
  --pad: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ivory);
  color: var(--ink);
  font: 300 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--wine); color: var(--ivory); }

em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.1em;
  line-height: 0;
}
.label {
  font: 400 11px/1.5 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.sec-head { display: flex; gap: 2.2em; margin-bottom: clamp(24px, 5vh, 56px); opacity: .6; }

/* hover underline */
.u {
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .55s var(--ease);
}
.u:hover { background-position: 0 100%; background-size: 100% 1px; }


/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
}

/* ---------- drawable emblem (opening + footer) ---------- */
.emblem-draw path { fill: var(--gold); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  opacity: 0;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s;
}
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: transparent; box-shadow: inset 0 0 0 1px var(--gold); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--wine); }
.cursor__label {
  font: 400 10px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0;
  transition: opacity .3s;
}
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px var(--pad);
  color: var(--ink);
  transition: transform .7s var(--ease), color .5s var(--ease);
}
.nav.is-light { color: var(--ivory); }
.nav.is-hidden { transform: translateY(-120%); }
.nav__links { display: flex; gap: 30px; }
.nav__links a, .nav__cta { font: 400 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.nav__logo svg { display: block; width: clamp(84px, 7.6vw, 116px); height: auto; fill: currentColor; }
.nav__cta { justify-self: end; }
@media (max-width: 760px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__links { display: none; }
}

/* ---------- hero: the opening ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero__title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 4vh, 48px);
  margin-top: 5vh;
  text-align: center;
  font: 400 clamp(36px, min(6.2vw, 10.5vh), 112px)/.98 var(--serif);
  letter-spacing: -.015em;
  text-transform: uppercase;
  pointer-events: none;
}
.line { display: block; overflow: hidden; padding: .14em 0 .16em; margin: -.15em 0; }
.line > span { display: block; }
.hero__title em { color: var(--wine); padding: 0 .06em; }
/* the script "of" overhangs its line box (tall ascender, long descender, slanted tail); pad the sliding span so
   the whole glyph stays inside what moves, and pull the margins back so the layout doesn't shift */
.hero__l1 { margin: -.5em -.3em -.55em; }
.hero__l1 > span { padding: .35em .3em .4em; }
.hero__emblem { display: block; height: clamp(140px, 30vh, 340px); width: auto; overflow: visible; }

/* the plum cover of the opening; JS slides it down off the piece, its hem arching like the finale's */
.hero__veil, .hero__word { display: none; }
body.is-loading .hero__veil, body.is-loading .hero__word { display: block; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--plum);
  box-shadow: 0 -3vh 8vh rgba(27, 17, 20, .3);
}
/* until the intro script takes over, show only the plum cover (no flash of title, nav or static emblem) */
body.is-loading .nav,
body.is-loading .hero__title .line > span,
body.is-loading .hero__emblem use,
body.is-loading .hero__meta { opacity: 0; }
body.is-loading .hero__word { clip-path: inset(0 100% 0 0); }
/* centred with auto margins, not `translate`: GSAP folds `translate` into its own x, so tweening x dropped the -50% and the word jumped right mid-flight */
.hero__word { position: absolute; z-index: 3; left: 0; right: 0; margin: 0 auto; top: calc(52% + 25vh); width: clamp(130px, 12vw, 200px); height: auto; color: var(--ivory); }

.hero__meta { position: absolute; left: var(--pad); bottom: var(--pad); z-index: 2; max-width: 16em; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 700px) {
  .hero__meta { display: none; }
  .hero__emblem { height: 28vh; }
}

/* ---------- manifesto ---------- */
.manifesto { position: relative; z-index: 2; background: var(--ivory); padding: clamp(110px, 18vh, 210px) var(--pad) clamp(90px, 14vh, 170px); }
.manifesto__text {
  max-width: 19em;
  font: 400 clamp(28px, 4vw, 68px)/1.13 var(--serif);
  letter-spacing: -.012em;
  text-indent: 3em;
}
.manifesto__text em { color: var(--wine); }
.manifesto__foot {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(20px, 4vw, 72px);
  align-items: start;
  margin-top: clamp(70px, 13vh, 150px);
}
[data-pfx] img { height: 116%; }

.manifesto__kicker { color: var(--gold); line-height: 2; }

.manifesto__aside p { max-width: 28em; margin-bottom: 1.2em; font-size: clamp(16px, 1.2vw, 19px); }
.link-line { display: inline-flex; gap: 14px; align-items: center; font: 400 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.link-line i { font-style: normal; transition: transform .5s var(--ease); }
.link-line:hover i { transform: translateX(8px); }
@media (max-width: 760px) {
  .manifesto__foot { grid-template-columns: 1fr; }
  .manifesto__kicker { margin-bottom: 0; }
}

/* ---------- collections ---------- */
.collections { position: relative; z-index: 2; background: var(--ivory); color: var(--ink); overflow: hidden; }
.track { display: flex; width: max-content; height: 100vh; }
.panel {
  position: relative;
  flex: none;
  height: 100%;
  width: 100vw;
  display: flex;
  align-items: center;
  gap: 5vw;
  padding: calc(var(--pad) + 60px) var(--pad) var(--pad);
}
.panel--intro { width: 64vw; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding-right: var(--pad); }
.panel__intro { font: 400 clamp(44px, 6.4vw, 112px)/.98 var(--serif); text-transform: uppercase; margin-bottom: .45em; }
.panel__intro em { color: var(--wine); }
.panel__copy { max-width: 27em; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.75; opacity: .82; }
.hint { display: flex; align-items: center; gap: 14px; margin-top: 2.6em; }
.hint i { display: block; width: 90px; height: 1px; background: currentColor; transform-origin: left; animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.panel__text { flex: none; width: 26vw; }
.panel__text .panel__copy { font-size: clamp(14px, 1vw, 16px); }
.panel__name { overflow: hidden; white-space: nowrap; margin-bottom: .04em; font: 400 clamp(48px, 5.6vw, 104px)/.9 var(--serif); letter-spacing: -.01em; text-transform: uppercase; }
.panel__name .ch { display: inline-block; }
.panel__tag { font-size: clamp(26px, 2.3vw, 40px); line-height: 1.2; margin-bottom: .9em; color: var(--gold); }

/* the pieces of a collection, read like a programme; the chosen one stands in the niche */
.pieces { list-style: none; margin-top: clamp(22px, 4vh, 40px); border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.pieces__btn {
  display: flex; align-items: baseline; gap: 1.1em; width: 100%; padding: .7em 0;
  background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  color: inherit; font: 400 clamp(17px, 1.35vw, 22px)/1.2 var(--serif); text-align: left; cursor: pointer;
  opacity: .5; transition: opacity .5s var(--ease);
}
.pieces__btn i { width: 1.6em; font: italic 400 .8em/1 var(--serif); color: var(--gold); }
.pieces__btn span { position: relative; }
.pieces__btn span::after { content: ""; position: absolute; left: calc(100% + .7em); top: 55%; width: 2.4em; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.pieces__btn[aria-pressed="true"], .pieces__btn:hover { opacity: 1; }
.pieces__btn[aria-pressed="true"] span::after { transform: scaleX(1); }
.pieces__btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* one ivory vitrine with a gilt moulding; pieces cross-fade through it */
.stage { position: relative; z-index: 1; flex: none; margin-left: auto; height: min(74vh, 780px); aspect-ratio: 5 / 7; display: block; }
.stage__niche { position: absolute; inset: 0; overflow: hidden; border-radius: 2px; background: var(--ivory); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .6); }
.stage__niche::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold); border-radius: inherit; opacity: .55; pointer-events: none; }
.stage__niche::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 14%; height: 5%; background: radial-gradient(closest-side, rgba(27, 17, 20, .22), transparent); }
.stage img {
  position: absolute; left: 8%; bottom: 16%; width: 84%; height: 60%;
  object-fit: contain; object-position: bottom; mix-blend-mode: multiply; z-index: 1;
  opacity: 0; filter: blur(10px); transform: translateY(5%) scale(.97);
  transition: opacity .8s var(--ease), filter .8s var(--ease), transform 1.1s var(--ease);
}
.stage img.is-on { opacity: 1; filter: blur(0); transform: none; }
.stage:hover img.is-on { transform: scale(1.03); }

/* the room itself, half behind the niche */
.room { flex: none; height: min(62vh, 660px); aspect-ratio: 3 / 4; margin: 0 4vw 0 -14vw; translate: 0 -8vh; overflow: hidden; }
.room img { scale: 1.15; }
@media (min-width: 900px) { .panel { background: none; color: inherit; } }
@media (max-width: 899px) {
  .track { flex-direction: column; width: auto; height: auto; }
  .panel, .panel--intro { width: auto; height: auto; min-height: 100vh; flex-direction: column; align-items: stretch; justify-content: center; gap: 40px; padding: 110px var(--pad) 80px; background: var(--bg); color: var(--fg); }
  .panel__text { width: auto; }
  .stage { height: auto; width: min(78vw, 420px); margin-left: 0; }
  .room { width: 52vw; height: auto; margin: -22vw 0 0 auto; translate: none; }
  .room img { scale: 1; }
}

/* ---------- anatomy ---------- */
.anatomy { position: relative; z-index: 2; height: 100vh; height: 100svh; background: var(--paper); overflow: hidden; }
.anatomy__head { position: absolute; top: calc(var(--pad) + 64px); left: var(--pad); z-index: 3; max-width: 26em; }
.anatomy__head h2 { font: 400 clamp(36px, 4.6vw, 82px)/1 var(--serif); text-transform: uppercase; margin-bottom: .5em; }
.anatomy__head h2 em { color: var(--wine); }
.anatomy__lede { max-width: 22em; font-size: 15px; opacity: .75; }
.anatomy__stage { position: absolute; inset: 0; }
.anatomy__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anatomy__lines line { stroke: var(--wine); stroke-width: 1; }
.anatomy__chair {
  position: absolute;
  top: 56%;
  left: 50%;
  width: min(36vw, 60vh);
  height: auto;
  translate: -50% -50%;
  mix-blend-mode: multiply;
  /* fade the studio backdrop's edges into the page */
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.spot { position: absolute; z-index: 2; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--wine); }
.spot::after { content: ""; position: absolute; inset: -9px; border: 1px solid var(--wine); border-radius: 50%; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.lens { position: absolute; top: var(--y); left: var(--x); z-index: 2; width: clamp(104px, 11.5vw, 210px); translate: -50% -50%; }
.lens__img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--wine), 0 0 0 8px var(--paper), 0 0 0 9px rgba(90, 16, 39, .35), 0 30px 60px -20px rgba(34, 8, 15, .5); }
.lens figcaption { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 22px; white-space: nowrap; }
.lens figcaption b { font: italic 400 22px/1 var(--serif); color: var(--wine); }
.anatomy__count { position: absolute; right: var(--pad); bottom: var(--pad); font: 400 clamp(18px, 1.6vw, 24px)/1 var(--serif); letter-spacing: .05em; }
.anatomy__count span { font-size: 2.6em; vertical-align: -.25em; }
@media (max-width: 760px) {
  .anatomy__chair { width: 70vw; top: 60%; }
  .lens figcaption .label { font-size: 9px; letter-spacing: .14em; }
}

/* ---------- atelier: four stages, one frame ---------- */
.atelier { position: relative; z-index: 2; background: var(--plum); color: var(--ivory); }
.atelier__pin { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px); align-items: center; min-height: 100vh; min-height: 100svh; padding: clamp(90px, 12vh, 130px) var(--pad) clamp(40px, 6vh, 70px); }
.atelier h2 { font: 400 clamp(40px, 5vw, 96px)/.92 var(--serif); text-transform: uppercase; margin-bottom: clamp(28px, 6vh, 64px); }
.atelier h2 em { color: var(--gold); }
.atelier__steps { list-style: none; display: grid; }
/* the steps share one place; only the current one shows */
.atelier__step { grid-area: 1 / 1; max-width: 26em; }
.atelier__step b { display: block; font: italic 400 clamp(56px, 6vw, 104px)/1 var(--serif); color: var(--gold); margin-bottom: .2em; }
.atelier__step h3 { font: 400 11px/1.5 var(--sans); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 1.2em; }
.atelier__step p { font-size: clamp(16px, 1.2vw, 19px); opacity: .7; }
.atelier__count { margin-top: clamp(28px, 6vh, 64px); opacity: .5; }
.atelier__count span { display: inline-block; min-width: 2.2em; color: var(--gold); opacity: 1; }
.atelier__frame { position: relative; height: min(78vh, 64vw); aspect-ratio: 1100 / 1366; justify-self: end; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.atelier__img { position: absolute; inset: 0; }
/* the warm edge of the light as it crosses */
.atelier__shaft { position: absolute; inset: 0 -40%; pointer-events: none; mix-blend-mode: soft-light; opacity: 0;
  background: linear-gradient(104deg, transparent 40%, rgba(255, 222, 165, .9) 50%, transparent 60%); }
@media (max-width: 860px) {
  .atelier__pin { grid-template-columns: 1fr; min-height: 0; }
  .atelier__steps { gap: 56px; }
  .atelier__step { grid-area: auto; }
  .atelier__frame { display: none; }
  .atelier__count { display: none; }
}
/* small screens: each stage carries its own photograph, the frame is not pinned */
.atelier__step img { display: none; }
@media (max-width: 860px) { .atelier__step img { display: block; aspect-ratio: 1100 / 1366; height: auto; margin-bottom: 22px; } }

/* ---------- enquire ---------- */
.enquire {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
  padding: clamp(100px, 16vh, 180px) var(--pad);
  background: var(--ivory);
}
/* one quiet room photograph beside the invitation */
.enquire__img { position: relative; aspect-ratio: 4 / 5.2; overflow: hidden; }
.enquire h2 { font: 400 clamp(40px, 5.6vw, 100px)/1 var(--serif); text-transform: uppercase; margin-bottom: .5em; }
.enquire h2 em { color: var(--wine); }
.enquire p { max-width: 30em; opacity: .8; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.6em; }
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 21px 34px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--ivory);
  font: 400 11px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: color .5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  border-radius: 50% 50% 0 0;
  transform: translateY(101%);
  transition: transform .7s var(--ease), border-radius .7s var(--ease);
}
.btn:hover::before { transform: none; border-radius: 0; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { color: var(--ivory); }
@media (max-width: 760px) { .enquire { grid-template-columns: 1fr; } .enquire__img { width: 86%; } }

/* ---------- footer ---------- */
/* the footer rises over the last section like a curtain with an arched hem */
.footer {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: calc(var(--pad) + 70px) var(--pad) 0;
  background: var(--plum);
  color: var(--ivory);
  border-top-left-radius: 50% 26vh;
  border-top-right-radius: 50% 26vh;
}
.enquire { transform-origin: 50% 100%; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; opacity: .65; }
.footer__line { text-align: center; font: italic 400 clamp(22px, 2.4vw, 40px)/1.2 var(--serif); margin-top: -2vh; }
.footer__line em { color: var(--gold); }
/* sized by whichever runs out first: screen width or ~50% of screen height (viewBox ratio 2053:635) */
.footer__word { display: block; width: min(100%, 50vh * 3.23); height: auto; margin: 0 auto 4vh; fill: var(--ivory); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   COLLECTION PAGE — "the inventory"
   ========================================================= */
.inv { padding: calc(var(--pad) + 110px) var(--pad) clamp(80px, 14vh, 160px); }
.inv__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(40px, 8vh, 90px); }
.inv__head .sec-head { grid-column: 1 / -1; }
.inv__title { font: 400 clamp(52px, min(9.4vw, 17vh), 170px)/.9 var(--serif); text-transform: uppercase; letter-spacing: -.015em; }
.inv__title em { color: var(--wine); }
.inv__count { font: italic 400 clamp(18px, 1.6vw, 26px)/1.3 var(--serif); text-align: right; padding-bottom: .6em; }
.inv__count b { font: 400 3.2em/1 var(--serif); font-style: normal; display: block; letter-spacing: -.02em; }
.inv__count i { font-style: normal; color: var(--gold); padding: 0 .2em; }

/* filter bar */
.inv__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 40px;
  margin: 0 calc(var(--pad) * -1) clamp(24px, 4vh, 44px);
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(27, 17, 20, .1);
  border-bottom: 1px solid rgba(27, 17, 20, .1);
}
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters > .label { opacity: .45; margin-right: 10px; }
/* filters read as buttons: outlined pills, the chosen one filled */
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(27, 17, 20, .22);
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 400 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip[style*="--dot"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.chip sup { font: 400 9px var(--sans); letter-spacing: .1em; opacity: .6; }
.chip:hover { border-color: var(--ink); background: rgba(27, 17, 20, .05); }
.chip:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip.is-on[style*="--dot"]::before { box-shadow: 0 0 0 1px var(--ivory); }
.chip:disabled { opacity: .3; cursor: default; background: none; border-color: rgba(27, 17, 20, .22); }

/* one simple, even grid: every piece in the same frame */
.inv__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(36px, 5vh, 56px) clamp(16px, 1.6vw, 28px); }
.inv__empty { padding: 10vh 0; text-align: center; font: italic 400 24px var(--serif); }

.tile { display: block; color: var(--ink); }
.tile__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EFE9DF;
  transition: background-color .6s var(--ease);
}
.tile:hover .tile__frame, .tile:focus-visible .tile__frame { background: #E7DFD2; }
.tile__frame img { width: 100%; height: 100%; object-fit: contain; padding: 9% 10%; mix-blend-mode: multiply; transition: transform 1s var(--ease); }
.tile:hover .tile__frame img { transform: scale(1.04); }
/* room photographs fill their frame; doors are tall, so they sit whole in it */
.tile--photo .tile__frame img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.tile[data-col="doors"] .tile__frame img { object-fit: contain; }
.tile__col { display: flex; align-items: center; gap: 7px; margin-top: 6px; font: 400 10px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .5; }
.tile__col::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--deep); }
.tile__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-bottom: 1px solid transparent; }
.tile__name { font: 400 clamp(15px, 1.1vw, 19px)/1.2 var(--serif); text-transform: uppercase; letter-spacing: .06em; }
.tile__type { font: italic 400 clamp(15px, 1.05vw, 18px)/1.2 var(--serif); opacity: .65; text-align: right; }
.tile__note { display: block; margin-top: 6px; font: 400 10px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .5; }

/* click: the tile's colour swells to fill the screen, then the product page takes over */
.wipe { position: fixed; z-index: 99; pointer-events: none; }

@media (max-width: 1200px) { .inv__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) {
  .inv__grid { grid-template-columns: repeat(2, 1fr); }
  .inv__head { grid-template-columns: 1fr; }
  .inv__count { text-align: left; }
  /* on a phone the bar stays pinned as two slim rows that scroll sideways */
  .inv__bar { gap: 6px; padding: 10px var(--pad); }
  .filters { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
}
@media (max-width: 520px) {
  .tile__cap { flex-direction: column; gap: 4px; }
  .tile__type { text-align: left; }
}

/* the index: one card per collection, three across then four */
.inv__grid--covers { grid-template-columns: repeat(12, 1fr); gap: clamp(44px, 6vh, 70px) clamp(16px, 1.6vw, 28px); }
.cover { grid-column: span 3; display: block; color: var(--ink); }
.cover:nth-child(-n+3) { grid-column: span 4; }
.cover__frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.cover__frame img { transition: transform 1.2s var(--ease); }
.cover:hover .cover__frame img { transform: scale(1.05); }
.cover--cut .cover__frame img { object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.cover__cap { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 14px; padding-top: 18px; }
.cover__n { opacity: .5; }
.cover__name { font: 400 clamp(22px, 2vw, 34px)/1 var(--serif); text-transform: uppercase; }
.cover__tag { grid-column: 2; font-size: clamp(20px, 1.5vw, 26px); line-height: 1.4; color: var(--gold); }
.cover__count { grid-column: 3; grid-row: 1; opacity: .6; white-space: nowrap; }
.cover__count i { display: inline-block; font-style: normal; transition: transform .4s var(--ease); }
.cover:hover .cover__count i { transform: translateX(5px); }
@media (max-width: 899px) {
  .inv__grid--covers { grid-template-columns: 1fr 1fr; }
  .cover, .cover:nth-child(-n+3) { grid-column: auto; }
  .cover:first-child { grid-column: 1 / -1; }
  .cover__cap { grid-template-columns: 1fr; row-gap: 6px; }
  .cover__tag, .cover__count { grid-column: 1; grid-row: auto; }
  .cover__n { display: none; }
}
@media (max-width: 560px) { .inv__grid--covers { grid-template-columns: 1fr; } }

/* simple footer for inner pages */
.footer--simple { min-height: 0; border-radius: 0; padding-top: clamp(60px, 10vh, 110px); }
.footer--simple .footer__row { padding-bottom: clamp(40px, 8vh, 90px); }
.footer--simple .footer__word { width: 100%; margin-bottom: -1.2%; }
.panel__more { margin-top: 2.2em; }

/* inner pages: solid nav once scrolled; sticky filter bar sits under it while it's showing */
.nav.is-solid:not(.is-light) { background: color-mix(in srgb, var(--ivory) 94%, transparent); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(27, 17, 20, .08); }
.inv__bar { transition: top .7s var(--ease); }
.nav-up .inv__bar { top: var(--navh, 0px); }

/* =========================================================
   PIECE PAGE — "the tearsheet": one piece, every side and detail
   ========================================================= */
.pc { --plate: #ECE5DA; --rule: color-mix(in srgb, currentColor 14%, transparent); }
.pc__nojs { padding: 30vh var(--pad); text-align: center; font: italic 400 24px var(--serif); }

/* opening: ivory page, the piece mounted on a paper plate with printer's corner marks */
.pc__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4.5vw, 90px);
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--pad) + 92px) var(--pad) clamp(36px, 6vh, 72px);
}
.pc__stage { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.pc__mount { position: relative; flex: 1; display: flex; min-height: min(64vh, 720px); }
.pc__plate { position: relative; flex: 1; overflow: hidden; background: var(--plate); perspective: 1400px; cursor: zoom-in; }
.pc__mount::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: 3;
  pointer-events: none;
  --m: linear-gradient(var(--gold), var(--gold));
  background:
    var(--m) 0 0 / 26px 1px, var(--m) 0 0 / 1px 26px,
    var(--m) 100% 0 / 26px 1px, var(--m) 100% 0 / 1px 26px,
    var(--m) 0 100% / 26px 1px, var(--m) 0 100% / 1px 26px,
    var(--m) 100% 100% / 26px 1px, var(--m) 100% 100% / 1px 26px;
  background-repeat: no-repeat;
}
.pc__img, .pc__slat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7% 8%; mix-blend-mode: multiply; }
.pc__plate.is-photo .pc__img, .pc__blind.is-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.pc[data-col="doors"] .pc__plate.is-photo .pc__img { object-fit: contain; padding: 4%; }
.pc__blind { position: absolute; inset: 0; z-index: 2; }
.pc__slat { position: absolute; left: 0; right: 0; top: calc(var(--i) * 100% / 7); height: calc(100% / 7 + 1px); overflow: hidden; background: var(--plate); transform-origin: 50% 0; backface-visibility: hidden; }
.pc__slat img { inset: auto 0 auto 0; top: calc(var(--i) * -100%); height: 700%; }

.pc__strip { display: flex; align-items: center; gap: 22px; min-width: 0; }
.pc__count { flex: none; opacity: .7; }
.pc__count b { font: 400 24px/1 var(--serif); letter-spacing: 0; }
.pc__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.pc__thumbs::-webkit-scrollbar { display: none; }
.pc__thumb, .lb__t { position: relative; flex: none; width: 62px; aspect-ratio: 1; padding: 0; border: 0; background: var(--plate); cursor: pointer; opacity: .5; transition: opacity .4s; }
.pc__thumb img, .lb__t img { width: 100%; height: 100%; object-fit: cover; }
.pc__thumb.is-cut img, .lb__t.is-cut img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.pc__thumb:hover, .pc__thumb.is-on, .lb__t:hover, .lb__t.is-on { opacity: 1; }
.pc__thumb.is-on::after, .lb__t.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--gold); }

.pc__info { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.pc__back { display: inline-flex; gap: 10px; align-self: flex-start; margin-bottom: auto; opacity: .75; }
.pc__back i { font-style: normal; transition: transform .5s var(--ease); }
.pc__back:hover i { transform: translateX(-6px); }
.pc__no { opacity: .5; margin: 4vh 0 1.2em; }
.pc__name { font: 400 clamp(54px, min(6.6vw, 13vh), 132px)/.92 var(--serif); text-transform: uppercase; letter-spacing: -.015em; overflow-wrap: anywhere; }
.pc__type { font-size: clamp(30px, 3.1vw, 56px); line-height: 1.2; color: var(--wine); margin: .05em 0 .6em; }
.pc__type em { line-height: 1.2; }
.pc__copy { max-width: 30em; opacity: .78; }
.pc__facts { margin-top: 2em; border-top: 1px solid var(--rule); }
.pc__facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pc__facts dt { opacity: .55; padding-top: 4px; }
.pc__facts dd { font: 400 17px/1.35 var(--serif); }
.pc__facts dd em { color: var(--wine); font-size: 1.15em; padding-left: .15em; }
.pc .btns { margin-top: 2.2em; }

/* sections */
.pc__sec { padding: clamp(90px, 15vh, 170px) var(--pad); }
.pc__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 40px; margin-bottom: clamp(36px, 6vh, 70px); }
.pc__head .sec-head { grid-column: 1 / -1; margin-bottom: 0; }
.pc__h { font: 400 clamp(46px, 6.2vw, 112px)/.95 var(--serif); text-transform: uppercase; letter-spacing: -.015em; }
.pc__h em { color: var(--wine); }
.pc__lede { max-width: 24em; opacity: .7; padding-bottom: .5em; }

/* every side: the views stand in a row, or (with motion) stack and turn with the scroll */
.pc__turn { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh; padding-bottom: clamp(24px, 5vh, 56px); background: var(--tint); }
.pc__turn .pc__head { margin-bottom: 2vh; }
.pc__deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pc__deck img { aspect-ratio: 4 / 3; height: auto; object-fit: contain; mix-blend-mode: multiply; cursor: zoom-in; }
.pc__deck.is-stack { position: relative; display: block; min-height: 46vh; }
.pc__deck.is-stack img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; padding: 0 12%; will-change: opacity, transform; }
.pc__dial { position: relative; height: 54px; overflow: hidden; margin-top: 2vh; display: none; }
.is-stack + .pc__dial { display: block; }
.pc__dial::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 0; width: 1px; height: 30px; background: var(--wine); }
.pc__ticks {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 26px;
  opacity: .4;
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 120px) 0 0 / 100% 26px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px) 0 12px / 100% 14px no-repeat;
}
.pc__deg { position: absolute; left: 50%; bottom: 0; translate: -50% 0; white-space: nowrap; }
.pc__deg b { font: 400 18px/1 var(--serif); letter-spacing: 0; }

/* up close: a masonry of close-ups, each with a loupe */
.pc__details { columns: 3 260px; column-gap: clamp(14px, 1.4vw, 24px); }
.pc__d { position: relative; break-inside: avoid; margin-bottom: clamp(14px, 1.4vw, 24px); overflow: hidden; cursor: zoom-in; }
.pc__d img { height: auto; }
.pc__d figcaption { position: absolute; left: 14px; bottom: 12px; color: var(--ivory); text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.loupe {
  position: absolute;
  z-index: 2;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 50%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px var(--gold), 0 24px 50px -12px rgba(0, 0, 0, .55);
  pointer-events: none;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .35s, transform .6s var(--ease);
}
.pc__d:hover .loupe { opacity: 1; transform: none; }

/* in the salon: one tall room beside a column of the others */
.pc__rooms { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(14px, 1.4vw, 24px); }
.pc__r { position: relative; overflow: hidden; aspect-ratio: 16 / 11; cursor: zoom-in; }
.pc__r:first-child { grid-row: span var(--n); aspect-ratio: auto; min-height: 60vh; }
.pc__r img { position: absolute; left: 0; top: -8%; height: 116%; }

/* the rest of the salon: previous / next, then its other pieces */
.pc__more { border-top: 1px solid rgba(27, 17, 20, .1); }
.pc__steps { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 clamp(48px, 8vh, 90px); border-top: 1px solid rgba(27, 17, 20, .12); border-bottom: 1px solid rgba(27, 17, 20, .12); }
.pc__step { display: flex; align-items: center; gap: 22px; padding: 22px 0; }
.pc__step + .pc__step { flex-direction: row-reverse; text-align: right; padding-left: 22px; border-left: 1px solid rgba(27, 17, 20, .12); }
.pc__step img { flex: none; width: 96px; height: 96px; object-fit: contain; padding: 8px; background: #EFE9DF; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.pc__step.is-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.pc__step:hover img { transform: scale(1.06); }
.pc__step .label { display: block; opacity: .5; margin-bottom: 8px; }
.pc__step b { display: block; font: 400 clamp(22px, 2.3vw, 38px)/1.05 var(--serif); text-transform: uppercase; }
.pc__step em { font-size: clamp(20px, 1.6vw, 26px); color: var(--wine); line-height: 1.4; }
.pc__all { margin-top: clamp(36px, 6vh, 60px); }

/* the viewer */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; padding: 20px var(--pad); background: #F1EBE1; color: var(--ink); }
.lb[hidden] { display: none; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.lb__bar i { font-style: normal; color: var(--gold); }
.lb__close { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.lb__close i { font: 300 26px/1 var(--sans); color: inherit; }
.lb__stage { position: relative; min-height: 0; touch-action: pan-y; user-select: none; }
.lb__stage img { width: 100%; height: 100%; object-fit: contain; }
.lb.is-cut .lb__stage img { padding: 2% 8%; mix-blend-mode: multiply; }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; width: 58px; height: 58px; border: 1px solid rgba(27, 17, 20, .25); border-radius: 50%; background: transparent; color: inherit; font: 300 20px/1 var(--sans); cursor: pointer; transition: background-color .4s, color .4s; }
.lb__nav:hover { background: var(--ink); color: var(--ivory); }
.lb__nav--prev { left: var(--pad); }
.lb__nav--next { right: var(--pad); }
.lb__thumbs { display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.lb__t { width: 54px; background: #E7DFD2; }
html.lb-open { overflow: hidden; }

@media (max-width: 899px) {
  .pc__top { grid-template-columns: 1fr; padding-top: calc(var(--pad) + 76px); }
  .pc__mount { flex: none; min-height: 0; aspect-ratio: 1 / .92; }
  .pc__back { margin-bottom: 0; }
  .pc__no { margin-top: 3vh; }
  .pc__facts div { grid-template-columns: 7.5em 1fr; }
  .pc__head { grid-template-columns: 1fr; }
  .pc__rooms { grid-template-columns: 1fr; }
  .pc__r:first-child { grid-row: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .pc__steps { grid-template-columns: 1fr; }
  .pc__step + .pc__step { border-left: 0; border-top: 1px solid rgba(27, 17, 20, .12); padding-left: 0; }
  .pc__sibs { grid-template-columns: repeat(2, 1fr); }
  .lb__nav { display: none; }
  .loupe { display: none; }
}

/* ---------- page transitions (cross-document View Transitions; vt.js marks the "back" ones) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition { background: var(--ink); }
::view-transition-old(root), ::view-transition-new(root) { animation: 1.15s var(--ease) both; mix-blend-mode: normal; }
/* forward: the page you leave sinks into shadow; the next one rises over it like a curtain, its hem arched */
::view-transition-old(root) { animation-name: vt-sink; }
::view-transition-new(root) { animation-name: vt-rise; }
/* back: the curtain drops away, arched at the top, and the page beneath comes up out of the shadow */
:active-view-transition-type(back)::view-transition-old(root) { animation-name: vt-fall; z-index: 2; }
:active-view-transition-type(back)::view-transition-new(root) { animation-name: vt-surface; }
@keyframes vt-sink { to { transform: translateY(-7vh) scale(.94); filter: brightness(.35); } }
@keyframes vt-rise {
  from { transform: translateY(12vh); clip-path: inset(100% 0 0 0 round 50% 50% 0 0 / 34vh 34vh 0 0); }
  to { transform: none; clip-path: inset(0 0 0 0 round 50% 50% 0 0 / 0 0 0 0); }
}
@keyframes vt-fall {
  from { transform: none; clip-path: inset(0 0 0 0 round 50% 50% 0 0 / 0 0 0 0); }
  to { transform: translateY(12vh); clip-path: inset(100% 0 0 0 round 50% 50% 0 0 / 34vh 34vh 0 0); }
}
@keyframes vt-surface { from { transform: translateY(-7vh) scale(.94); filter: brightness(.35); } }

/* =========================================================
   HOUSE PAGE — about Albini, the family and the founder
   ========================================================= */
.house { padding: calc(var(--pad) + 110px) var(--pad) clamp(60px, 10vh, 120px); }
.house__head { grid-template-columns: 1fr minmax(0, 26em); }
.house__lede { font: italic 400 clamp(18px, 1.6vw, 24px)/1.4 var(--serif); padding-bottom: .6em; }
.house h2 { font: 400 clamp(34px, 3.8vw, 64px)/1 var(--serif); text-transform: uppercase; letter-spacing: -.01em; }
.house h2 em { color: var(--wine); }

/* chapters: the heading holds its place at the left while the text scrolls past */
.chapter, .crafts { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 110px); padding: clamp(60px, 12vh, 140px) 0; border-top: 1px solid rgba(27, 17, 20, .12); }
.chapter__side { align-self: start; position: sticky; top: 120px; }
.chapter__side .label { display: block; margin-bottom: 1.6em; color: var(--gold); }
.chapter__body { max-width: 36em; font-size: 17px; }
.chapter__body p + p { margin-top: 1.1em; }
.chapter__body p:first-child { font: 400 clamp(20px, 1.7vw, 26px)/1.45 var(--serif); }

/* the founder's letter: set like a page, signed in script */
.letter { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 110px); margin: 0 calc(var(--pad) * -1); padding: clamp(80px, 14vh, 160px) var(--pad); background: var(--paper); }
.letter__head .label:first-child { display: block; color: var(--wine); margin-bottom: 1.6em; }
.letter__role { opacity: .6; }
.letter__body { max-width: 34em; font: 400 clamp(18px, 1.45vw, 22px)/1.6 var(--serif); }
.letter__body p + p { margin-top: 1em; }
.letter__body > p:first-child::first-letter { float: left; font-size: 4.1em; line-height: .82; padding: .06em .1em 0 0; color: var(--wine); }
.letter__sign { font: 400 clamp(40px, 4vw, 64px)/1 var(--script); color: var(--wine); margin-top: .8em !important; }

.crafts__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vh, 64px) clamp(24px, 4vw, 64px); }
.crafts__list li { padding-top: 18px; border-top: 1px solid var(--ink); }
.crafts__list b { display: block; font: 400 14px/1 var(--serif); color: var(--gold); margin-bottom: 18px; }
.crafts__list h3 { font: 400 clamp(22px, 1.9vw, 30px)/1.1 var(--serif); margin-bottom: .55em; }
.crafts__list p { opacity: .75; }

.house__work { grid-template-columns: 1fr; justify-items: center; text-align: center; background: var(--paper); }
.house__work .label { display: block; color: var(--gold); margin-bottom: 2em; }
.house__work p { margin: 0 auto; max-width: 38em; }
.house__work .btns { justify-content: center; }

@media (max-width: 860px) {
  .house__head, .chapter, .crafts, .letter { grid-template-columns: 1fr; }
  .chapter__side { position: static; }
  .crafts__list { grid-template-columns: 1fr; }
}

/* =========================================================
   PHONES — "the catalogue in the hand"
   The same house, re-set for one thumb: gestures replace scroll-jacking (the vitrine swipes, the atelier
   prints stack like a deck), hover-only flourishes stay on desktop, and every tap target is at least 44px.
   Everything below only applies under the breakpoints; the desktop layout above is untouched.
   ========================================================= */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* touch screens: the grain stays, but still (an animated full-screen layer costs battery on a phone) */
@media (hover: none) { body::after { animation: none; } }

/* ---------- nav + the curtain menu ---------- */
.nav__menu, .menu { display: none; }
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto auto; gap: 22px; padding: 16px var(--pad); }
  .nav__logo svg { width: 92px; }
  .nav__cta, .nav__menu { padding: 14px 0; margin: -14px 0; }
  .nav__menu { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; cursor: pointer; }
  /* two hairlines, not a hamburger */
  .nav__menu i { width: 22px; height: 7px; border-top: 1px solid; border-bottom: 1px solid; }

  .menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 16px var(--pad) calc(28px + env(safe-area-inset-bottom));
    background: var(--plum);
    color: var(--ivory);
    visibility: hidden;
    clip-path: inset(100% 0 0 0 round 50% 50% 0 0 / 30vh 30vh 0 0);
    transition: clip-path .9s var(--ease), visibility 0s .9s;
  }
  html.menu-open { overflow: hidden; }
  html.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0 round 50% 50% 0 0 / 0 0 0 0); transition: clip-path .9s var(--ease); }
  .menu__bar { display: flex; justify-content: space-between; align-items: center; }
  .menu__logo svg { display: block; width: 92px; height: auto; fill: currentColor; }
  .menu__close { display: flex; align-items: center; gap: 10px; padding: 14px 0; margin: -14px 0; border: 0; background: none; color: inherit; cursor: pointer; }
  .menu__close i { position: relative; width: 16px; height: 16px; }
  .menu__close i::before, .menu__close i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid; rotate: 45deg; }
  .menu__close i::after { rotate: -45deg; }
  .menu__links { align-self: center; display: flex; flex-direction: column; }
  .menu__links a {
    display: flex;
    align-items: baseline;
    gap: .5em;
    padding: .32em 0;
    border-bottom: 1px solid rgba(243, 238, 230, .14);
    font: 400 clamp(36px, 11vw, 56px)/1.05 var(--serif);
    text-transform: uppercase;
    letter-spacing: -.01em;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .5s, transform .9s var(--ease);
  }
  .menu__links a i { width: 1.9em; font: italic 400 .36em/1 var(--serif); text-transform: none; color: var(--gold); }
  .menu__links a[aria-current] { color: var(--gold); }
  html.menu-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(.3s + var(--i) * .07s); }
  .menu__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; opacity: .7; }
  .menu__tel { font: italic 400 20px/1.2 var(--serif); }
}

/* ---------- hero ---------- */
@media (max-width: 760px) {
  /* the emblem is the hero on a phone: larger, with the two lines tight around it */
  .hero__title { font-size: clamp(26px, 8.4vw, 44px); gap: 22px; margin-top: 2vh; }
  .hero__emblem { height: min(38svh, 70vw); }
}

/* ---------- manifesto ---------- */
@media (max-width: 760px) {
  .manifesto { padding: 104px var(--pad) 88px; }
  .manifesto__text { font-size: clamp(25px, 7.2vw, 36px); line-height: 1.18; text-indent: 1.6em; }
  .manifesto__foot { margin-top: 56px; gap: 18px; }
}

/* ---------- collections: walk into each room, then swipe the pieces through its vitrine ---------- */
.stage__swipe { display: none; }
@media (max-width: 899px) {
  .panel { gap: 0; min-height: 0; justify-content: flex-start; padding: 0 var(--pad) clamp(80px, 13vh, 120px); }
  .panel--intro { padding: 120px var(--pad) 84px; }
  .panel--intro .hint { display: none; }
  .panel__text { display: contents; }
  /* the room photograph opens the panel, full-bleed, and fades into the room's colour under its name */
  .room { order: -1; position: relative; width: auto; height: auto; aspect-ratio: 4 / 5; max-height: 80svh; margin: 0 calc(var(--pad) * -1); translate: none; }
  .room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 52%, var(--bg)); }
  .panel__name { position: relative; z-index: 1; margin-top: -.62em; font-size: clamp(56px, 17vw, 96px); }
  .panel__tag { margin-bottom: .55em; }
  /* the vitrine: the gilt moulding stays still, the pieces slide through it */
  .stage { order: 1; width: min(100%, 520px); height: auto; aspect-ratio: 1 / 1.08; margin: 34px auto 0; }
  .stage::before { content: ""; position: absolute; inset: 14px; z-index: 2; border: 1px solid var(--gold); opacity: .55; pointer-events: none; }
  .stage::after { content: ""; position: absolute; z-index: 2; left: 16%; right: 16%; bottom: 11%; height: 5%; background: radial-gradient(closest-side, rgba(27, 17, 20, .2), transparent); mix-blend-mode: multiply; pointer-events: none; }
  .stage__niche::before, .stage__niche::after { display: none; }
  .stage__niche { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .stage__niche::-webkit-scrollbar { display: none; }
  .stage img, .stage img.is-on, .stage:hover img.is-on {
    position: relative; left: auto; bottom: auto; flex: 0 0 100%; width: 100%; height: 100%;
    padding: 16% 9% 13.5%; object-position: 50% 100%; scroll-snap-align: center;
    opacity: 1; filter: none; transform: none; transition: none;
  }
  .stage__swipe { display: block; position: absolute; z-index: 2; left: 0; right: 0; top: 32px; text-align: center; color: var(--ink); opacity: .45; pointer-events: none; transition: opacity .6s; }
  .stage.is-swiped .stage__swipe { opacity: 0; }
  .pieces { order: 2; margin-top: 26px; }
  .pieces__btn { padding: .62em 0; font-size: 18px; }
  .panel__more { order: 3; margin-top: 30px; }
}

/* ---------- collections, the rotating sign (main.js builds it on phones with motion; the rooms above are the fallback)
   A trivision board: nine prism slats, each face a slice of one salon's photograph; under it the name on six
   lettered prisms. The slats turn about their upright, the letters roll about their horizontal. ---------- */
.tri { display: none; }
@media (max-width: 899px) {
  .collections.has-tri { overflow: visible; } /* sticky needs it */
  .has-tri .panel:not(.panel--intro) { display: none; }
  .tri { display: block; position: relative; height: 340svh; }
  .tri__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 72px 0 calc(16px + env(safe-area-inset-bottom)); overflow: hidden; }
  .tri__top { display: flex; justify-content: space-between; padding: 0 var(--pad); opacity: .6; }
  .tri__top b { font-weight: inherit; }

  .tri__board { position: relative; display: flex; flex: none; height: clamp(200px, 42svh, 520px); margin-top: 18px; perspective: 1400px; background: #0B0809; }
  /* gilt rails above and below, like the frame of a hoarding */
  .tri__board::before, .tri__board::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--gold); opacity: .55; }
  .tri__board::before { top: -7px; }
  .tri__board::after { bottom: -7px; }
  /* --z = apothem of the triangle (face width / 2√3); pushing the prism back by it keeps the front face at true size */
  .tri__slat, .tri__ch { position: relative; flex: 1; transform-style: preserve-3d; }
  .tri__slat { --z: calc(100vw / 9 * .2887); transform: translateZ(calc(var(--z) * -1)) rotateY(var(--r, 0deg)); }
  .tri__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .tri__slat .tri__face { overflow: hidden; transform: rotateY(calc(var(--k) * 120deg)) translateZ(var(--z)); box-shadow: inset 1px 0 rgba(0, 0, 0, .45); }
  .tri__slat .tri__face::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--d, 0); }
  /* every face holds the whole photograph, shifted so only its own slice shows */
  .tri__board img { position: absolute; top: 0; left: calc(var(--i) * -100%); width: 900%; max-width: none; height: 100%; object-fit: cover; }

  .tri__sign { display: flex; flex: none; height: 1em; margin: 26px var(--pad) 0; font: 400 clamp(46px, 14vw, 88px)/1 var(--serif); text-transform: uppercase; perspective: 500px; }
  .tri__ch { --z: .2887em; transform: translateZ(calc(var(--z) * -1)) rotateX(var(--r, 0deg)); }
  .tri__ch .tri__face { display: grid; place-items: center; font-weight: inherit; transform: rotateX(calc(var(--k) * 120deg)) translateZ(var(--z)); opacity: calc(1 - var(--d, 0) * .9); }

  .tri__info { display: grid; margin: 16px var(--pad) 0; }
  .tri__room { grid-area: 1 / 1; min-width: 0; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .8s var(--ease); }
  .tri__room.is-on { opacity: 1; transform: none; transition-delay: .12s; }
  .tri__tag { font-size: 24px; line-height: 1.2; color: var(--gold); }
  /* the programme of pieces runs off the edge and swipes */
  .tri__pieces { list-style: none; display: flex; gap: 22px; margin: 6px calc(var(--pad) * -1) 0 0; padding-right: var(--pad); overflow-x: auto; scrollbar-width: none; }
  .tri__pieces::-webkit-scrollbar { display: none; }
  .tri__pieces a { display: flex; align-items: baseline; gap: .45em; padding: 12px 0; font: 400 17px/1.2 var(--serif); white-space: nowrap; }
  .tri__pieces i { font: italic 400 .8em/1 var(--serif); color: var(--gold); }
  .tri__room .link-line { margin-top: 6px; }
  .tri .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* short phones: the board itself is the way into the collection */
@media (max-width: 899px) and (max-height: 640px) { .tri__room .link-line { display: none; } }

/* ---------- anatomy: the chair in the middle, its three details in a row beneath ---------- */
@media (max-width: 760px) {
  .anatomy__head { top: calc(var(--pad) + 62px); right: var(--pad); }
  .anatomy__head h2 { font-size: clamp(32px, 9.4vw, 44px); margin-bottom: .4em; }
  .anatomy__lede { font-size: 14px; line-height: 1.55; }
  .anatomy__chair { top: 51%; width: min(62vw, 36svh); }
  .anatomy__count { display: none; }
  .lens { --w: calc((100vw - 2 * var(--pad) - 28px) / 3); top: auto; bottom: calc(var(--pad) + 46px); width: var(--w); translate: -50% 0; }
  /* left to right in the order of their spots on the chair: arm, leg, tufting (keeps the leader lines apart) */
  .lens:nth-of-type(2) { left: calc(var(--pad) + var(--w) / 2); }
  .lens:nth-of-type(3) { left: 50%; }
  .lens:nth-of-type(1) { left: calc(100% - var(--pad) - var(--w) / 2); }
  .lens__img { box-shadow: 0 0 0 1px var(--wine), 0 0 0 5px var(--paper), 0 0 0 6px rgba(90, 16, 39, .35), 0 20px 40px -16px rgba(34, 8, 15, .5); }
  .lens figcaption { flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; white-space: normal; text-align: center; }
  .lens figcaption b { font-size: 17px; }
  .lens figcaption .label { font-size: 9px; letter-spacing: .14em; line-height: 1.4; }
}
@media (max-width: 760px) and (max-height: 700px) { .anatomy__lede { display: none; } }

/* ---------- atelier: the four prints stack like a deck as you scroll ---------- */
@media (max-width: 860px) {
  .atelier__pin { padding-bottom: 96px; }
  .atelier__steps { gap: 28px; }
  .atelier__step { position: sticky; top: 72px; max-width: none; padding-bottom: 6px; background: var(--plum); box-shadow: 0 -30px 40px -24px rgba(0, 0, 0, .7); }
  /* each card settles a little lower than the last, so the edges of the deck show */
  .atelier__step:nth-child(2) { top: 82px; }
  .atelier__step:nth-child(3) { top: 92px; }
  .atelier__step:nth-child(4) { top: 102px; }
  .atelier__step img { width: 100%; height: min(46svh, 118vw); aspect-ratio: auto; margin-bottom: 0; object-fit: cover; }
  /* the roman numeral sits on the photograph's bottom edge */
  .atelier__step b { position: relative; margin: -.5em 0 .1em 14px; font-size: 64px; }
  .atelier__step h3, .atelier__step p { max-width: 30em; }
}

/* ---------- enquire ---------- */
@media (max-width: 760px) {
  .enquire { gap: 44px; padding: 0 var(--pad) 110px; }
  .enquire__img { width: auto; aspect-ratio: 4 / 4.6; margin: 0 calc(var(--pad) * -1); }
  .enquire h2 { font-size: clamp(38px, 11.4vw, 56px); }
  .btns { flex-direction: column; }
  .btn { justify-content: center; padding: 22px 28px; }
}

/* ---------- footer ---------- */
@media (max-width: 760px) {
  .footer { min-height: 86svh; padding-top: 120px; border-top-left-radius: 50% 14vh; border-top-right-radius: 50% 14vh; }
  .footer--simple { min-height: 0; padding-top: 72px; }
  .footer__row { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .footer__line { margin-top: 0; padding: 0 1em; }
  .footer__word { margin-bottom: calc(3vh + env(safe-area-inset-bottom)); }
}
