/* ==========================================================================
   Cekic Art — stylesheet
   Ivory & midnight, silver & champagne, a breath of lilac.
   Calm, restrained, aristocratic. Every hairline on purpose.
   ========================================================================== */

:root {
  /* Palette */
  --paper: #f6f2ea;
  --paper-2: #ede7db;
  --paper-3: #e3dccc;
  --ink: #0f1319;
  --ink-2: #161b24;
  --ink-3: #1f2531;
  --silver: #cfd2d8;
  --silver-2: #9ea4ad;
  --gold: #b3985f;
  --gold-soft: #d9c89f;
  --champagne: #ead9b8;
  --lilac: #d3d2e2;        /* Cekic Filigran brand ground */
  --lilac-deep: #8e8cb0;
  --lilac-ink: #5b5a7e;

  /* Theme (light by default) */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: var(--paper-3);
  --fg: #20242b;
  --fg-soft: #5b606a;
  --fg-faint: #9a9ea6;
  --line: rgba(20, 24, 31, 0.12);
  --line-strong: rgba(20, 24, 31, 0.3);
  --accent: var(--lilac-deep);
  --accent-2: var(--gold);
  --nav-bg: rgba(246, 242, 234, 0.78);
  --mat: #f0ebe0;
  --card-bg: #efeadf;
  --shadow: 0 30px 60px -30px rgba(20, 24, 31, 0.35);
  --shadow-lift: 0 46px 80px -34px rgba(20, 24, 31, 0.5);

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(5rem, 12vw, 10rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --nav-h: 5rem;
}

[data-theme="dark"],
.section--midnight,
.footer--midnight,
.room--night {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --bg-3: var(--ink-3);
  --fg: #e9e4da;
  --fg-soft: #aeb2b9;
  --fg-faint: #6c727c;
  --line: rgba(233, 228, 218, 0.12);
  --line-strong: rgba(233, 228, 218, 0.32);
  --accent: var(--lilac);
  --accent-2: var(--gold-soft);
  --nav-bg: rgba(15, 19, 25, 0.72);
  --mat: #1a1f29;
  --card-bg: #1a1f28;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --shadow-lift: 0 46px 80px -34px rgba(0, 0, 0, 0.9);
}
[data-theme="dark"] { color-scheme: dark; }

/* warm accent for the paintings side of the house */
[data-accent="warm"] { --accent: var(--gold); --accent-2: var(--lilac-deep); }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

/* page cross-fade: body fades in on load, out before leaving */
body { opacity: 0; animation: page-in 0.7s var(--ease) forwards; }
body.is-leaving { opacity: 0 !important; transition: opacity 0.28s var(--ease); animation: none; }
@keyframes page-in { to { opacity: 1; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s var(--ease) both fade-out; }
::view-transition-new(root) { animation: 0.45s var(--ease) both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* scroll progress hairline */
.progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--lilac-deep), var(--gold-soft));
  transform-origin: left; transform: scaleX(0);
  opacity: 0.9; pointer-events: none;
}

/* fine paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p { margin: 0 0 1.25em; text-wrap: pretty; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection { background: var(--lilac); color: var(--ink); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.narrow { max-width: 42rem; }

/* --------------------------------------------------------------------------
   Opening doors (first visit per session)
   Two midnight leaves stand closed while the seal draws itself, then part
   and let the hero step forward. The pointer is always the system's own:
   nothing follows it, so nothing can lag behind it.
   -------------------------------------------------------------------------- */

/* the landing page is dark from its very first painted frame */
html.home { background: var(--ink); }

.veil { display: none; }
html.has-veil .veil {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  color: var(--champagne);
}
html.veil-done .veil { pointer-events: none; }
.veil__leaf {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(180deg, #161b28 0%, var(--ink) 100%);
  transition: transform 1.15s var(--ease-io);
  will-change: transform;
}
.veil__leaf--l { left: 0; right: 50%; }
.veil__leaf--r { left: 50%; right: 0; }
/* the seam: a gold hairline on each inner edge, broken where the seal sits */
.veil__leaf::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%, var(--gold-soft) 16%, var(--gold-soft) 36%, transparent 40%,
    transparent 61%, var(--gold-soft) 65%, var(--gold-soft) 84%, transparent 100%);
  opacity: 0.6;
  transform: scaleY(0);
  animation: seam 0.85s var(--ease) 0.1s forwards;
}
.veil__leaf--l::after { right: 0; }
.veil__leaf--r::after { left: 0; }
@keyframes seam { to { transform: scaleY(1); } }
html.veil-done .veil__leaf--l { transform: translateX(-101%); }
html.veil-done .veil__leaf--r { transform: translateX(101%); }
.veil__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  animation: veil-in 0.7s var(--ease) both;
  transition: opacity 0.35s var(--ease), transform 0.7s var(--ease);
}
html.veil-done .veil__inner { opacity: 0; transform: scale(1.08); }
@keyframes veil-in { from { opacity: 0; transform: translateY(10px); } }
.veil__seal {
  width: clamp(8.5rem, 16vw, 11.75rem); height: auto;
  animation: stamp 0.75s var(--ease) 0.05s both;
}
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.42) rotate(-20deg); }
  62% { opacity: 1; transform: scale(0.965) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-7deg); }
}
.veil__name {
  font-family: var(--sans);
  font-size: 0.62rem; letter-spacing: 0.52em; text-transform: uppercase;
  padding-left: 0.52em; color: #b9b6b0;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.85;
}
.eyebrow__num {
  order: -1;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--accent);
  transform: translateY(-0.05em);
}

.display {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 300;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
}
.display em, .h2 em, .h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 300; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 300; font-variant-ligatures: common-ligatures discretionary-ligatures; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--fg);
}

.muted { color: var(--fg-soft); }
.small { font-size: 0.85rem; letter-spacing: 0.04em; }
.amp { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--accent-2); padding-inline: 0.06em; }

.link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2em;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-soft);
  transition: color 0.3s;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.42s var(--ease), opacity 0.3s;
}
.link:hover { color: var(--fg); }
.link:hover::after { opacity: 1; transform: scaleX(1); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  isolation: isolate;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease); }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn:hover::before { transform: scaleX(1); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { color: var(--ink); background: #f3efe7; border-color: #f3efe7; }
.btn--solid::before { background: var(--champagne); }
.btn--solid:hover { color: var(--ink); border-color: var(--champagne); }
.btn--light { color: #ece8df; border-color: rgba(233, 228, 218, 0.32); }
.btn--light::before { background: var(--lilac); }
.btn--light:hover { color: var(--ink); border-color: var(--lilac); }
.btn--ghost { border-color: transparent; padding-inline: 0; }
.btn--ghost::before { display: none; }
.btn--ghost:hover { color: var(--fg); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--fg);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.6s, transform 0.6s var(--ease);
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-dark { color: #ece8df; }
.nav.is-dark.is-scrolled { background: rgba(15, 19, 25, 0.62); box-shadow: 0 1px 0 rgba(233, 228, 218, 0.1); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.brand__seal {
  width: 2.9rem; height: 2.9rem;
  flex: none;
  transform: rotate(-8deg);
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand__seal { transform: rotate(4deg) scale(1.05); }
.brand__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  opacity: 0.7;
  margin-top: 0.1rem;
}

.nav__links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  position: relative;
  padding: 0.4rem 0;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.38s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__toggle {
  display: none;
  width: 2.6rem; height: 2.6rem;
  position: relative;
  z-index: 60;
}
.nav__toggle span {
  position: absolute;
  left: 0.6rem; right: 0.6rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease), opacity 0.3s, top 0.5s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 0.95rem; }
.nav__toggle span:nth-child(2) { top: 1.3rem; }
.nav__toggle span:nth-child(3) { top: 1.65rem; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 1.3rem; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 1.3rem; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    background:
      radial-gradient(70% 50% at 50% 100%, rgba(142, 140, 176, 0.18), transparent 70%),
      var(--ink);
    color: #e9e4da;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease);
    z-index: 55;
  }
  .nav__links li { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: 0s; }
  .nav__links a { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; text-transform: none; letter-spacing: 0.02em; opacity: 1; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav.is-open .nav__links li { opacity: 1; transform: none; transition-delay: calc(0.15s + var(--n, 0) * 70ms); }
  .nav.is-open { color: #e9e4da; background: transparent; box-shadow: none; }
  .brand__name small { display: none; }
}

/* --------------------------------------------------------------------------
   Hero (landing): the name on the left, the work itself on the right.
   Everything waits for html.is-open (set once texts, fonts and the first
   picture are ready), so the page opens in one movement instead of piece
   by piece.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(700px, 100svh, 1080px);
  display: flex;
  flex-direction: column;
  color: #ece8df;
  background:
    radial-gradient(62% 58% at 76% 44%, rgba(142, 140, 176, 0.17) 0%, rgba(142, 140, 176, 0) 64%),
    radial-gradient(60% 50% at 0% 0%, #1b2031 0%, rgba(27, 32, 49, 0) 70%),
    linear-gradient(180deg, #151a26 0%, var(--ink) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* slow aurora: two drifting pools of lilac and champagne light */
.hero__sky { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.hero__aurora {
  position: absolute;
  width: 64vmax; aspect-ratio: 1;
  border-radius: 50%;
  will-change: transform;
}
.hero__aurora--a {
  left: -26%; top: -38%;
  background: radial-gradient(circle, rgba(142, 140, 176, 0.26) 0%, rgba(142, 140, 176, 0.07) 40%, rgba(142, 140, 176, 0) 64%);
  animation: aurora-a 30s ease-in-out infinite alternate;
}
.hero__aurora--b {
  right: -24%; bottom: -44%;
  background: radial-gradient(circle, rgba(179, 152, 95, 0.2) 0%, rgba(179, 152, 95, 0.06) 40%, rgba(179, 152, 95, 0) 64%);
  animation: aurora-b 36s ease-in-out infinite alternate;
}
@keyframes aurora-a { to { transform: translate(14%, 12%) scale(1.16); } }
@keyframes aurora-b { to { transform: translate(-12%, -14%) scale(1.1); } }

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-top: calc(var(--nav-h) + 1.25rem);
  padding-bottom: 2.25rem;
}
.hero__copy { position: relative; min-width: 0; will-change: transform, opacity; }

.eyebrow--hero { color: #a5a3c4; margin-bottom: 1.5rem; gap: 0; }
.eyebrow--hero::before { display: none; }

.hero__title {
  font-size: clamp(3.6rem, 9.3vw, 9.4rem);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 0.95;
  white-space: nowrap;
  margin: 0 0 1.5rem -0.045em;
  color: #f3efe7;
}
html.js .hero__title:not(.is-split) { opacity: 0; }
.hero__title .w { display: inline-block; white-space: nowrap; }
.hero__title .w + .w { margin-left: 0.2em; }
.hero__title .w--em { font-style: italic; color: var(--champagne); }
/* each letter rises out of its own mask; the padding keeps italic overhangs and descenders whole */
.hero__title .l { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0.1em 0.17em; margin: -0.1em -0.1em -0.17em; }
.hero__title .l > i { display: inline-block; font-style: inherit; transform: translateY(115%); }
html.is-open .hero__title .l > i { animation: letter 1.05s var(--ease) forwards; animation-delay: calc(0.12s + var(--i, 0) * 0.05s); }
@keyframes letter { to { transform: none; } }

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.15vw, 1.95rem);
  line-height: 1.25;
  color: var(--lilac);
  margin-bottom: 1.5rem;
}
.hero__sub .amp { color: var(--gold-soft); }
.hero__lead {
  font-weight: 300;
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  line-height: 1.85;
  color: #b9b6b0;
  max-width: 33rem;
  margin: 0 0 2.1rem;
}
/* the two doors, right under the name */
.hero__doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 33rem;
  margin: 0 0 2rem;
}
.hero__door {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  align-items: center;
  padding: 1.15rem 1.3rem 1.2rem 1.4rem;
  border: 1px solid rgba(233, 228, 218, 0.22);
  background: rgba(233, 228, 218, 0.045);
  color: #ece8df;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__door::before {
  content: "";
  position: absolute; left: 0; top: 0.9rem; bottom: 0.9rem;
  width: 2px;
  background: linear-gradient(var(--gold-soft), var(--lilac-deep));
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.hero__door-name {
  grid-column: 1; grid-row: 1;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  font-weight: 400;
  line-height: 1.05;
  color: #f3efe7;
}
.hero__door-sub {
  grid-column: 1; grid-row: 2;
  margin-top: 0.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #a9acba;
}
.hero__door svg {
  grid-column: 2; grid-row: 1 / 3;
  width: 1.25rem; height: 1.25rem;
  color: var(--gold-soft);
  transition: transform 0.3s var(--ease);
}
.hero__door:hover, .hero__door:focus-visible {
  background: rgba(233, 228, 218, 0.09);
  border-color: rgba(233, 228, 218, 0.45);
  transform: translateY(-2px);
}
.hero__door:hover::before, .hero__door:focus-visible::before { transform: none; }
.hero__door:hover svg { transform: translateX(4px); }

/* staged entrance of the words */
.hero [data-stagger] { opacity: 0; transform: translateY(18px); }
html.is-open .hero [data-stagger] {
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(0.42s + var(--i, 0) * 0.09s);
}

/* ---- the showcase: an arched window for the silver, a gilt plate for the paint ---- */
.hero__show {
  position: relative;
  width: 100%;
  max-width: min(34rem, calc((100svh - 15.5rem) / 1.14));
  margin-left: auto;
  aspect-ratio: 1 / 1.14;
}
/* the rosette, now a nimbus behind the arch */
.hero__halo {
  position: absolute;
  left: 64%; top: 40%;
  width: 132%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.6s var(--ease) 0.25s;
  will-change: transform;
}
html.is-open .hero__halo { opacity: 0.3; }
.hero__spin { width: 100%; height: 100%; animation: spin 420s linear infinite; will-change: transform; }
.hero__medallion {
  width: 100%; height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--lilac);
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__medallion * { vector-effect: non-scaling-stroke; }
.hero__medallion .c2 { opacity: 0.55; }
.hero__medallion .c3 { opacity: 0.4; }
.hero__medallion .ts { opacity: 0.45; }
.hero__medallion .tl { opacity: 0.8; }
.hero__medallion .g { fill: var(--lilac); stroke: none; opacity: 0.85; }

.show { position: absolute; display: block; color: inherit; will-change: transform; }
.show--arch { right: 4%; top: 2%; width: 64%; aspect-ratio: 3 / 4.1; z-index: 1; --arch: 50% 50% 0 0 / 36.6% 36.6% 0 0; }
.show--plate { left: 3%; bottom: 9.5%; width: 37%; aspect-ratio: 4 / 5; z-index: 2; --arch: 0; }
/* the shadow lives outside the clipped window */
.show::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--arch);
  box-shadow: 0 44px 80px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(233, 228, 218, 0.05);
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.9s;
}
html.is-open .show::before { opacity: 1; }
.show__frame {
  position: absolute;
  inset: -0.85rem;
  border: 1px solid rgba(233, 228, 218, 0.26);
  border-radius: var(--arch);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s var(--ease) 0.8s, inset 0.6s var(--ease), border-color 0.4s;
}
.show--arch .show__frame::after {
  content: "";
  position: absolute; left: 50%; top: -3px;
  width: 5px; height: 5px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold-soft);
}
.show--plate .show__frame { inset: -0.5rem; border-color: rgba(217, 200, 159, 0.55); }
html.is-open .show__frame { opacity: 1; }
.show:hover .show__frame, .show:focus-visible .show__frame { inset: -1.2rem; border-color: var(--gold-soft); }
.show--plate:hover .show__frame, .show--plate:focus-visible .show__frame { inset: -0.8rem; }
.show__window {
  position: absolute; inset: 0;
  display: block;
  overflow: hidden;
  border-radius: var(--arch);
  background: #171c27;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.45s var(--ease-io) 0.2s;
}
.show--plate .show__window { transition-delay: 0.55s; }
html.is-open .show__window { clip-path: inset(0 0 0 0); }
.show__stack {
  position: absolute; inset: 0;
  display: block;
  transform: scale(1.18);
  transition: transform 2.4s var(--ease) 0.2s;
}
.show--plate .show__stack { transition-delay: 0.55s; }
html.is-open .show__stack { transform: none; }
.show__slide {
  position: absolute; inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
}
.show__slide.is-active { opacity: 1; }
.show__kb { position: absolute; inset: 0; display: block; }
.show__slide.is-active .show__kb { animation: kb 10s linear forwards; }
@keyframes kb { to { transform: scale(1.08); } }
.show__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--pos, 50% 50%);
}

/* the seal: pressed onto the shoulder of the arch */
.hero__seal {
  position: absolute;
  left: 8.5%; top: -5.5%;
  width: 25.5%; height: auto;
  z-index: 3;
  opacity: 0;
  transform: scale(1.4) rotate(-26deg);
  transition: opacity 0.5s var(--ease) 1.05s, transform 0.9s var(--ease) 1.05s;
}
html.is-open .hero__seal { opacity: 1; transform: rotate(-9deg); }

/* captions: what is in the window right now */
.show__caption {
  position: absolute;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s var(--ease) 1.25s, transform 1s var(--ease) 1.25s;
}
html.is-open .show__caption { opacity: 1; transform: none; }
.show__caption--arch {
  right: 4%; top: 85.5%;
  width: 53%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0.45rem;
}
.show__caption--plate { left: 3%; top: 93.5%; width: 37%; display: grid; row-gap: 0.25rem; }
.show__count { grid-column: 1; grid-row: 1; font-size: 0.6rem; letter-spacing: 0.22em; color: #a9acba; font-variant-numeric: tabular-nums; white-space: nowrap; }
.show__meter { grid-column: 2; grid-row: 1; position: relative; height: 1px; background: rgba(233, 228, 218, 0.24); overflow: hidden; }
.show__meter i { position: absolute; inset: 0; background: var(--gold-soft); transform: scaleX(0); transform-origin: left; }
.show__meter.is-running i { animation: meter var(--dur, 6s) linear forwards; }
.show__meter.is-paused i { animation-play-state: paused; }
@keyframes meter { to { transform: scaleX(1); } }
.show__name {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.2;
  color: #f3efe7;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  transition: opacity 0.35s var(--ease), color 0.3s;
}
.show__name:hover { color: var(--champagne); }
.show__kind {
  grid-column: 1 / -1;
  font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: #8f93a3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.35s var(--ease);
}
.show__caption--plate .show__name { font-size: 1rem; font-style: italic; -webkit-line-clamp: 1; }
.show__caption.is-changing .show__name, .show__caption.is-changing .show__kind { opacity: 0; }

/* a slow line of the house's words along the lower edge */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 1.05rem 0 1.1rem;
  border-top: 1px solid rgba(233, 228, 218, 0.1);
  opacity: 0;
  transition: opacity 1.4s var(--ease) 0.7s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 30%, var(--gold-soft) 70%, transparent);
  opacity: 0.5;
}
.ticker__track { display: flex; width: max-content; will-change: transform; animation: ticker var(--dur, 90s) linear infinite; }
.ticker__track span {
  display: inline-flex; align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.3;
  color: rgba(233, 228, 218, 0.58);
  white-space: nowrap;
}
.ticker__track span::after {
  content: "";
  width: 5px; height: 5px;
  margin-inline: 2.6rem;
  background: var(--gold-soft);
  transform: rotate(45deg);
  opacity: 0.75;
}
html.is-open .ticker { opacity: 1; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: calc(var(--nav-h) + 1rem);
    padding-bottom: 2.6rem;
  }
  /* on a phone the pictures come right after the name, before the long sentence */
  .hero__copy { display: contents; }
  .hero__copy > * { order: 5; }
  .hero__copy > .eyebrow--hero { order: 1; justify-self: start; }
  .hero__copy > .hero__title { order: 2; font-size: clamp(3.4rem, 17vw, 6.4rem); margin-bottom: 1.1rem; }
  .hero__copy > .hero__sub { order: 3; margin-bottom: 1.4rem; }
  .hero__copy > .hero__doors { order: 3; margin-bottom: 0; }
  .hero__show { order: 4; max-width: min(100%, 27rem); margin: 2.6rem auto 2.4rem; aspect-ratio: 1 / 1.2; }
  .show__caption--arch { top: 82%; }
  .show__caption--plate { top: 92%; }
  .show__name { font-size: 1.05rem; }
  .show__caption--plate .show__name { font-size: 0.92rem; }
  .hero__doors { max-width: none; }
}
@media (max-width: 420px) {
  .hero__doors { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section + .section { border-top: 1px solid var(--line); }
.section--flush { padding: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.4rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}
.section-head .h2 { max-width: 30ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .h2 { max-width: 24ch; }
.section-head__links { display: flex; gap: 2rem; flex-wrap: wrap; padding-bottom: 0.4rem; }

/* Motto */
.motto {
  text-align: center;
  padding-block: calc(var(--section) * 0.9) calc(var(--section) * 0.75);
}
.flourish {
  width: 9.5rem; height: auto;
  display: block;
  margin: 0 auto 2.4rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.flourish path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) 0.2s; }
.flourish__gem { fill: var(--accent-2); stroke: none; opacity: 0; transition: opacity 0.8s var(--ease) 1s; }
.is-visible .flourish path { stroke-dashoffset: 0; }
.is-visible .flourish__gem { opacity: 1; }
.motto blockquote {
  margin: 0 auto;
  max-width: 46rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.3;
  hanging-punctuation: first;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
}
.motto cite {
  display: inline-flex; align-items: center; gap: 1rem;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.motto cite::before, .motto cite::after { content: ""; width: 1.6rem; height: 1px; background: var(--line-strong); }

/* Story: the photograph of the two of them on the left, the words on the right */
.story__text { max-width: 46rem; margin-inline: auto; }
.story--photo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
}
.story--photo .story__text { max-width: none; margin: 0; }
.story__photo { position: sticky; top: calc(var(--nav-h) + 1.5rem); margin: 0; }
.story__print {
  position: relative;
  display: block;
  padding: clamp(0.6rem, 1.2vw, 0.95rem);
  background: var(--mat);
  box-shadow: var(--shadow);
}
.story__print::before {
  content: "";
  position: absolute; inset: 0.32rem;
  border: 1px solid var(--line);
  pointer-events: none;
}
.story__print img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.story__photo figcaption { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1.15rem; padding-left: 0.2rem; }
.story__photo figcaption b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.story__photo figcaption small { font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-faint); }
.story__pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 300;
  line-height: 1.25;
  margin: 1.6rem 0 0;
  color: var(--fg-soft);
  font-variant-ligatures: common-ligatures discretionary-ligatures;
}
.story__body { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.story__body p { max-width: 38rem; }
.story__body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.6em;
  line-height: 0.78;
  float: left;
  padding: 0.14em 0.16em 0 0;
  color: var(--accent);
  font-weight: 400;
}
@media (max-width: 860px) {
  .story--photo { grid-template-columns: 1fr; gap: 2.4rem; }
  .story__photo { position: static; max-width: 26rem; }
}

/* Two rooms: night for the silver, day for the colour */
.rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
}
.room {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 35rem;
  padding: clamp(1.9rem, 3.4vw, 3.3rem);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.room--night {
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(142, 140, 176, 0.22) 0%, rgba(142, 140, 176, 0) 70%),
    linear-gradient(180deg, #171c29 0%, var(--ink) 100%);
}
.room--day {
  --accent: var(--gold);
  --accent-2: var(--lilac-deep);
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(255, 250, 236, 0.9) 0%, rgba(255, 250, 236, 0) 70%),
    linear-gradient(180deg, #efe6d3 0%, #e4d9c2 100%);
}
/* the inner hairline every plate in this house carries */
.room::before {
  content: "";
  position: absolute; inset: 0.7rem;
  border: 1px solid var(--line);
  pointer-events: none;
  transition: border-color 0.45s var(--ease), inset 0.6s var(--ease);
}
.room:hover::before, .room:focus-visible::before { border-color: var(--accent); inset: 0.5rem; }
.room > span { position: relative; display: block; }
.room__top {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}
.room__count { white-space: nowrap; }
.room__count b {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-right: 0.15rem;
  font-variant-numeric: lining-nums;
}
.room__title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.8vw, 4.4rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.9rem;
  transition: color 0.4s;
}
.room:hover .room__title { color: var(--accent); }
.room__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--fg-soft);
  max-width: 25rem;
}
/* three small arched windows, the middle one a step higher */
.room__plates {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.7rem, 1.6vw, 1.4rem);
  flex: 1;
  margin: clamp(2.6rem, 4.6vw, 3.8rem) 0 clamp(1.8rem, 3vw, 2.6rem);
}
.room__plate {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  background: var(--bg-3);
  box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s var(--ease), clip-path 1.2s var(--ease-io);
}
.room__plate:nth-child(2) { transform: translateY(-1.5rem); transition-delay: 0.05s; }
.room__plate:nth-child(3) { transition-delay: 0.1s; }
.room__plate img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}
.room:hover .room__plate { transform: translateY(-0.5rem); }
.room:hover .room__plate:nth-child(2) { transform: translateY(-2rem); }
.room:hover .room__plate img { transform: scale(1.06); filter: none; }
.reveal .room__plate { clip-path: inset(100% 0 0 0); }
.reveal.is-visible .room__plate { clip-path: inset(0 0 0 0); }
.room__cta {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  gap: 0.8rem;
  margin-top: auto;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-soft);
  transition: color 0.35s, gap 0.4s var(--ease);
}
.room__cta svg { width: 1.1rem; height: 1.1rem; }
.room:hover .room__cta, .room:focus-visible .room__cta { color: var(--fg); gap: 1.15rem; }
@media (max-width: 820px) {
  .rooms { grid-template-columns: 1fr; }
  .room { min-height: 0; }
}

/* Artists */
.artists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.artist { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem; align-items: start; }
.artist__portal { position: relative; margin: 0.8rem 0.8rem 0.4rem; }
.artist__frame {
  position: absolute;
  inset: -0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px 999px 0 0;
  opacity: 0.8;
  pointer-events: none;
  transition: inset 1s var(--ease), border-color 0.8s;
}
.artist:hover .artist__frame { inset: -1rem; border-color: var(--accent); }
.artist__portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 999px 999px 0 0;
  position: relative;
  box-shadow: var(--shadow);
}
.artist__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) sepia(0.14);
  transition: transform 1.2s var(--ease), filter 0.7s var(--ease);
}
.artist:hover .artist__portrait img { transform: scale(1.04); filter: none; }
.reveal .artist__portrait { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease) calc(var(--d, 0) * 90ms + 0.1s); }
.reveal.is-visible .artist__portrait { clip-path: inset(0 0 0 0); }
.artist__body .eyebrow { margin-bottom: 0.9rem; }
.artist__name { font-size: clamp(1.8rem, 2.4vw, 2.3rem); font-weight: 300; margin-bottom: 0.35rem; }
.artist__craft { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--accent); margin-bottom: 1rem; }
.artist__bio { font-size: 0.98rem; color: var(--fg-soft); }
.artist__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  margin-top: 1.2rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--fg);
}
.artist__quote::before {
  content: "";
  position: absolute; left: 0; top: 0.2em; bottom: 0.2em;
  width: 1px;
  background: linear-gradient(var(--accent), var(--accent-2));
}
@media (max-width: 960px) { .artists { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .artist { grid-template-columns: 1fr; } .artist__portal { max-width: 15rem; } }

/* --------------------------------------------------------------------------
   Cards / gallery
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.masonry {
  columns: 3;
  column-gap: clamp(1.2rem, 3vw, 2.6rem);
}
.masonry > * { break-inside: avoid; margin-bottom: clamp(1.2rem, 3vw, 2.6rem); }
@media (max-width: 960px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

/* the rail: selected works hung in one line, to be walked along */
.section--rail { --rail-h: clamp(17rem, 29vw, 25rem); --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.rail__nav { display: flex; align-items: center; gap: 0.7rem; padding-bottom: 0.3rem; }
.rail__hint { font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-faint); margin-right: 0.9rem; }
.rail__btn {
  width: 3.1rem; height: 3.1rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
}
.rail__btn svg { width: 1.05rem; height: 1.05rem; }
.rail__btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rail__btn:disabled { opacity: 0.3; cursor: default; }
.rail {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.6rem var(--rail-pad) 2.8rem;
  scroll-padding-inline: var(--rail-pad);
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline-offset: -4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { scroll-snap-type: none; scroll-behavior: auto; user-select: none; -webkit-user-select: none; }
.rail.is-dragging .card { pointer-events: none; }
.rail .card { flex: none; width: min-content; scroll-snap-align: start; }
/* every work keeps its own proportions: the height is shared, the width follows the picture */
.rail .card__media {
  height: var(--rail-h);
  width: calc((var(--rail-h) - 1.5rem) * var(--ar, 0.8) + 1.5rem);
}
.rail .card__media img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.rail .card__title { font-size: 1.3rem; line-height: 1.2; }
.rail .card__num {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.2rem;
  font-variant-numeric: lining-nums;
}
.rail__foot { display: flex; justify-content: space-between; align-items: center; gap: 1.6rem 3rem; flex-wrap: wrap; }
.rail__bar { position: relative; flex: 1 1 12rem; max-width: 24rem; height: 1px; background: var(--line-strong); }
.rail__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 25%; background: var(--accent); transition: width 0.3s var(--ease); will-change: transform; }
@media (max-width: 760px) {
  .rail__nav { display: none; }
  .section--rail { --rail-h: clamp(15rem, 64vw, 20rem); }
  .rail .card__title { font-size: 1.15rem; }
}

.card {
  display: block;
  position: relative;
  color: inherit;
}
/* the mat: a hairline frame on an ivory (or midnight) passe-partout */
.card__media {
  position: relative;
  overflow: hidden;
  padding: 0.75rem;
  background: var(--mat);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card__media::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.35s;
}
.card__media img {
  width: 100%;
  transform: scale(1.001);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.92);
}
.reveal .card__media img { transform: scale(1.08); }
.reveal.is-visible .card__media img { transform: scale(1.001); }
.card:hover .card__media { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card:hover .card__media::before { border-color: var(--accent); }
.card:hover .card__media img { transform: scale(1.04); filter: saturate(1); }
.card__title { transition: color 0.3s; }
.card:hover .card__title { color: var(--accent); }
.card__badge {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  z-index: 3;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  background: rgba(15, 19, 25, 0.55);
  color: #e9e4da;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.card:hover .card__badge { opacity: 1; transform: none; }
.card__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0.2rem 0;
}
.card__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.card__meta { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-soft); white-space: nowrap; }
.card__type { display: block; font-size: 0.78rem; color: var(--fg-soft); letter-spacing: 0.05em; margin-top: 0.15rem; }

/* The house: three quiet rules */
.ethos__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.ethos__item { position: relative; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.ethos__item::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) calc(var(--d, 0) * 140ms + 0.2s);
}
.ethos__item.is-visible::before { transform: scaleX(1); }
.ethos__num { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1rem; line-height: 1; }
.ethos__title { font-family: var(--serif); font-size: 1.7rem; font-weight: 300; margin-bottom: 0.6rem; }
.ethos__text { font-size: 0.95rem; color: var(--fg-soft); margin: 0; max-width: 26rem; }
@media (max-width: 760px) { .ethos__list { grid-template-columns: 1fr; gap: 2rem; } }

/* Filters */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.chip {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}
.chip::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.2rem;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.chip:hover { color: var(--fg); }
.chip.is-active { color: var(--fg); }
.chip.is-active::after { transform: scaleX(1); }

.page-head { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.page-head .lead { max-width: 44rem; color: var(--fg-soft); margin-top: 1.4rem; }
.page-head__badge {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-top: 1.8rem;
  font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-soft);
  transition: color 0.3s;
}
.page-head__badge:hover { color: var(--fg); }
.page-head__badge img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); transition: transform 0.6s var(--ease); }
.page-head__badge:hover img { transform: scale(1.04); }

.empty {
  padding: 4rem 0;
  text-align: center;
  color: var(--fg-soft);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Work (detail) page
   -------------------------------------------------------------------------- */

.work { padding-top: calc(var(--nav-h) + 2rem); }
.work__crumbs {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 2rem;
  display: flex; gap: 0.8rem; align-items: center;
}
.work__crumbs span { opacity: 0.5; }
.work__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .work__layout { grid-template-columns: 1fr; } }

.stage-wrap { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
@media (max-width: 900px) { .stage-wrap { position: static; } }

.stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1rem, 3.4vw, 2.75rem);
  background: var(--mat);
  box-shadow: var(--shadow);
  cursor: pointer;
  touch-action: manipulation;
}
.stage::before {
  content: "";
  position: absolute; inset: 0.45rem;
  border: 1px solid var(--line);
  pointer-events: none;
}
/* never wider than its own pixels allow (--cap comes from the file's size), never taller than the screen */
.stage img {
  display: block;
  width: auto; height: auto;
  max-width: min(100%, var(--cap, 100%));
  max-height: min(78vh, 60rem);
  box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.65);
  transition: opacity 0.6s var(--ease), transform 1s var(--ease);
}
.stage img:not(.is-loaded) { opacity: 0; transform: scale(1.02); }
.stage.is-switching img { opacity: 0; }
.stage__hint {
  position: absolute;
  bottom: 0.9rem; right: 0.9rem;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  background: rgba(20, 24, 31, 0.5);
  color: #e9e4da;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.4s;
}

.thumbs {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.thumb {
  width: 4.6rem; height: 4.6rem;
  overflow: hidden;
  opacity: 0.55;
  border: 1px solid transparent;
  transition: opacity 0.4s, border-color 0.4s;
  background: var(--card-bg);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.is-active { opacity: 1; }
.thumb.is-active { border-color: var(--accent); }

.work__info { padding-top: 0.5rem; }
.work__kicker { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 1.2rem; font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-soft); flex-wrap: wrap; }
.work__kicker i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.work__title { margin-bottom: 0.6rem; }
.work__code {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--fg-soft);
  margin-bottom: 2rem;
}
.work__motive { margin-bottom: 2rem; }
.work__story h3 { font-size: 0.66rem; font-family: var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 1rem; }
.work__story p { color: var(--fg); font-family: var(--serif); font-size: 1.17rem; line-height: 1.62; max-width: 36rem; text-wrap: pretty; }
.work__story p:first-of-type::first-letter {
  font-size: 3.4em; line-height: 0.82; float: left;
  padding: 0.1em 0.14em 0 0; color: var(--accent); font-weight: 400;
}
.work__story::after {
  content: ""; display: block; width: 7px; height: 7px; margin: 1.6rem 0 0 0.1rem;
  background: var(--accent-2); transform: rotate(45deg); opacity: 0.8;
}

.specs {
  margin: 2.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.specs__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.specs__row dt { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-soft); padding-top: 0.25rem; }
.specs__row dd { margin: 0; }
.specs__row dd ul { list-style: none; margin: 0; padding: 0; }
.specs__row dd li + li { margin-top: 0.15rem; }

.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 0.6rem; vertical-align: middle; }

.work__enquire { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.work__enquire .small { color: var(--fg-soft); }

.work-nav {
  margin-top: var(--section);
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.work-nav a { display: flex; flex-direction: column; gap: 0.3rem; max-width: 45%; }
.work-nav a:last-child { text-align: right; align-items: flex-end; }
.work-nav .small { color: var(--fg-soft); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.62rem; }
.work-nav .h3 { transition: color 0.3s; }
.work-nav a:hover .h3 { color: var(--accent); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.96);
  color: #e9e4da;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lightbox__stage { transform: scale(0.96); transition: transform 0.6s var(--ease); }
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto; height: auto;
  transform-origin: 0 0;
  will-change: transform;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  -webkit-user-drag: none;
}
.lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  color: #e9e4da;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  border-radius: 50%;
  background: rgba(233, 228, 218, 0.06);
}
.lightbox__btn:hover { opacity: 1; transform: scale(1.06); }
.lightbox__btn svg { width: 1.2rem; height: 1.2rem; }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__caption {
  position: absolute;
  left: 50%; bottom: 1.3rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-2);
  white-space: nowrap;
  display: flex; gap: 1.2rem; align-items: center;
}
.lightbox__zoom { font-variant-numeric: tabular-nums; opacity: 0.7; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }

/* --------------------------------------------------------------------------
   Contact & footer
   -------------------------------------------------------------------------- */

.section--midnight {
  background:
    radial-gradient(70% 60% at 50% 0%, #1a2030 0%, rgba(26, 32, 48, 0) 70%),
    var(--ink);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
}
.section--midnight::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 30%, var(--gold-soft) 70%, transparent);
  opacity: 0.5;
}
.section__halo {
  position: absolute;
  left: 50%; top: 50%;
  width: min(120vw, 1100px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(211, 210, 226, 0.12) 0%, rgba(211, 210, 226, 0.04) 32%, rgba(211, 210, 226, 0) 62%);
  animation: breathe 10s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.8; } }

.contact {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact__note { max-width: 32rem; color: var(--fg-soft); }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { border-bottom: 1px solid var(--line); }
.contact__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  transition: padding-left 0.4s var(--ease), color 0.25s;
}
.contact__list a[href]:hover { padding-left: 0.7rem; color: var(--accent); }
.contact__list .small { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-soft); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3.2rem, 7vw, 5.5rem) 0 2.2rem;
  font-size: 0.78rem;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
  background: var(--bg);
}
.footer__claim {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3.4vw, 2.8rem);
  padding-bottom: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.footer__seal { width: clamp(5.5rem, 10vw, 8.5rem); height: auto; flex: none; transform: rotate(-8deg); }
.footer__line {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.55rem, 3.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--fg);
  text-wrap: balance;
}
.footer__rights {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--accent-2);
}
.footer__inner { display: flex; justify-content: space-between; gap: 1.4rem 3rem; flex-wrap: wrap; align-items: center; }
.footer__links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer__links a { font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; transition: color 0.3s; }
.footer__links a:hover { color: var(--fg); }
.footer__year { font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.1em; opacity: 0.8; }
@media (max-width: 560px) { .footer__claim { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Without JavaScript nothing may stay hidden */
html:not(.js) .reveal { opacity: 1; transform: none; }
html:not(.js) .reveal .room__plate, html:not(.js) .reveal .artist__portrait { clip-path: none; }
html:not(.js) .hero [data-stagger], html:not(.js) .hero__title .l > i, html:not(.js) .show__caption { opacity: 1; transform: none; }
html:not(.js) .hero__seal { opacity: 1; transform: rotate(-9deg); }
html:not(.js) .show__window { clip-path: none; }
html:not(.js) .show__stack { transform: none; }
html:not(.js) .hero__halo { opacity: 0.3; }
html:not(.js) .ticker { opacity: 1; }
html:not(.js) .show__frame, html:not(.js) .show::before { opacity: 1; }
html:not(.js) .flourish path { stroke-dashoffset: 0; }
html:not(.js) .flourish__gem { opacity: 1; }

/* Notice */
.notice {
  margin: 1rem 0 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  color: var(--fg-soft);
}

/* Skip link + focus */
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--bg); padding: 0.6rem 1rem; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .hero [data-stagger], body, .hero__title, .hero__title .l > i, .show__caption { opacity: 1; transform: none; }
  .hero__seal { opacity: 1; transform: rotate(-9deg); }
  .flourish path { stroke-dashoffset: 0; opacity: 1; }
  .flourish__gem { opacity: 0.85; }
  .reveal .room__plate, .reveal .artist__portrait, .show__window { clip-path: none; }
  .show__stack { transform: none; }
  .show__frame, .show::before { opacity: 1; }
  .hero__halo { opacity: 0.3; }
  .ticker { opacity: 1; }
  .hero__spin, .ticker__track, .hero__aurora, .show__slide.is-active .show__kb { animation: none; }
  .show__meter { visibility: hidden; }
  .veil { display: none !important; }
}

.story__pull em { font-style: normal; color: var(--accent); }

/* --------------------------------------------------------------------------
   Second edition: language switch, catalogue grid, honest zoom, related pieces
   -------------------------------------------------------------------------- */

/* language switch: a small mark at the end of the navigation */
.nav__lang { margin-left: 0.4rem; padding-left: 1.6rem; position: relative; }
.nav__lang::before { content: ""; position: absolute; left: 0; top: 50%; height: 1.1rem; width: 1px; transform: translateY(-50%); background: currentColor; opacity: 0.3; }
.nav__lang a { font-weight: 400; letter-spacing: 0.22em; opacity: 0.7; }
.nav__lang a:hover { opacity: 1; }
@media (max-width: 860px) {
  .nav__lang { margin: 0.6rem 0 0; padding-left: 0; }
  .nav__lang::before { display: none; }
  .nav__lang a { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.7; }
}
.footer__lang a { font-weight: 400; }

/* filters carry their counts */
.chip i { font-style: normal; font-size: 0.56rem; letter-spacing: 0.08em; margin-left: 0.5rem; opacity: 0.5; vertical-align: 0.12em; font-variant-numeric: tabular-nums; }
.chip.is-active i { opacity: 0.8; }

/* the catalogue: every piece on the same 4:5 mat, so the eye compares the work, not the photograph */
.grid--gallery { grid-template-columns: repeat(3, 1fr); row-gap: clamp(2.2rem, 4vw, 3.6rem); }
@media (max-width: 960px) { .grid--gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .grid--gallery { grid-template-columns: repeat(2, 1fr); gap: 1rem 0.9rem; }
  .grid--gallery .card__media { padding: 0.45rem; }
  .grid--gallery .card__media::before { inset: 0.25rem; }
  .grid--gallery .card__caption { padding: 0.7rem 0 0; gap: 0.5rem; flex-direction: column; align-items: flex-start; }
  .grid--gallery .card__title { font-size: 1.08rem; line-height: 1.2; }
  .grid--gallery .card__type { font-size: 0.68rem; }
  .grid--gallery .card__meta { display: none; }
}
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.2vw, 2rem); }
.grid--4 .card__title { font-size: 1.15rem; }
.grid--4 .card__meta { display: none; }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* stage: the hint is a quiet pill */
.stage__hint {
  left: 50%; right: auto; bottom: 1rem;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: calc(100% - 2rem);
  overflow: hidden; text-overflow: ellipsis;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.56rem; letter-spacing: 0.26em;
  background: rgba(15, 19, 25, 0.42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(233, 228, 218, 0.12);
}
.lightbox.is-flat .lightbox__zoom { display: none; }

/* related pieces on the detail page */
.related { margin-top: calc(var(--section) * 0.7); padding-top: calc(var(--section) * 0.55); border-top: 1px solid var(--line); }
.related .section-head { margin-bottom: clamp(1.8rem, 3vw, 2.8rem); }
.related .h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.work-nav { margin-top: calc(var(--section) * 0.6); }

/* the thumbs read as a small contact sheet */
.thumbs { gap: 0.6rem; }
.thumb { width: 4.2rem; height: 5.25rem; }

/* --------------------------------------------------------------------------
   Fourth edition: the wax seal, every work on a mat, the band that says
   each piece exists once
   -------------------------------------------------------------------------- */

/* cards: one 4:5 mat for every picture; a canvas of other proportions hangs inside it whole */
.card__mat { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; }
.card__mat img { width: 100%; height: 100%; object-fit: cover; }
.card--hung .card__mat { padding: 7%; overflow: visible; }
.card--hung .card__mat img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  min-width: 0; min-height: 0;
  object-fit: contain;
  box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.card--hung .card__media { overflow: hidden; }

/* galleries: what every visitor should know before looking */
.page-head__claim {
  display: flex; align-items: center; gap: 0.9rem;
  margin: 1.7rem 0 0;
  max-width: 44rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.35;
  color: var(--fg);
}
.page-head__claim img { width: 2.6rem; height: 2.6rem; flex: none; transform: rotate(-8deg); }

/* detail page: the same promise, next to the piece itself */
.work__unique { display: flex; align-items: center; gap: 0.95rem; margin: -0.6rem 0 2rem; }
.work__unique img { width: 2.9rem; height: 2.9rem; flex: none; transform: rotate(-8deg); }
.work__unique b { display: block; font-weight: 400; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg); margin-bottom: 0.15rem; }
.work__unique small { display: block; font-family: var(--serif); font-style: italic; font-size: 1.08rem; line-height: 1.3; color: var(--fg-soft); }

/* landing: every work exists once */
.unique { overflow: hidden; }
.unique__halo {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 62% at 14% 26%, rgba(134, 22, 42, 0.34) 0%, rgba(134, 22, 42, 0) 70%),
    radial-gradient(40% 50% at 92% 100%, rgba(179, 152, 95, 0.12) 0%, rgba(179, 152, 95, 0) 70%);
  pointer-events: none;
}
.unique__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4.8rem);
  margin-bottom: clamp(3rem, 6.5vw, 5.5rem);
}
.unique__seal { width: clamp(7.5rem, 17vw, 13.5rem); height: auto; transform: rotate(-9deg); }
.reveal .unique__seal { transform: scale(1.3) rotate(-24deg); opacity: 0; transition: transform 0.9s var(--ease) 0.25s, opacity 0.5s var(--ease) 0.25s; }
.reveal.is-visible .unique__seal { transform: rotate(-9deg); opacity: 1; }
.unique__title {
  font-size: clamp(2.5rem, 6.6vw, 5.8rem);
  font-weight: 300;
  line-height: 1.02;
  margin-bottom: 1.3rem;
  color: #f3efe7;
}
.unique__title em { font-style: italic; color: var(--champagne); }
.unique__lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 1.95rem);
  line-height: 1.3;
  color: #e9e4da;
  margin-bottom: 1.5rem;
}
.unique__triple {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 0;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-soft);
}
.unique__triple li { display: inline-flex; align-items: center; }
.unique__triple li + li::before {
  content: "";
  width: 5px; height: 5px;
  margin-inline: 1.3rem;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.8;
}
.unique .ethos__num { color: var(--gold-soft); }
.unique .ethos__item::before { background: linear-gradient(90deg, #b3344a, var(--gold-soft)); }
@media (max-width: 640px) {
  .unique__head { grid-template-columns: 1fr; }
  .unique__triple li + li::before { margin-inline: 0.8rem; }
  .unique__triple { letter-spacing: 0.22em; }
}

/* --------------------------------------------------------------------------
   Fifth edition: the stories come forward
   -------------------------------------------------------------------------- */

/* every card carries the first line of its story, shown when the pointer rests on it */
.card__motive {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 3rem 1.15rem 1.05rem;
  background: linear-gradient(180deg, rgba(15, 19, 25, 0) 0%, rgba(15, 19, 25, 0.62) 55%, rgba(15, 19, 25, 0.8) 100%);
  color: #f3efe7;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.card__motive i { font-style: inherit; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card__motive, .card:focus-visible .card__motive { opacity: 1; transform: none; }
@media (hover: none) { .card__motive { display: none; } }
.grid--4 .card__motive { font-size: 0.92rem; padding: 2.4rem 0.9rem 0.85rem; }

/* the rail: a line of the story under each title */
.card__line {
  margin: 0.55rem 0 0;
  max-width: 24rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--fg-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* the author, named where the work is named */
.work__by {
  margin: -0.1rem 0 0.9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--fg-soft);
}
.page-head__by {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--accent);
}
.page-head .lead { margin-top: 1.1rem; }
