/* Fuentes auto-hosteadas (antes Google Fonts; latin+cyrillic para RU/EN/ES,
   saca el CSS render-blocking que marcaba PageSpeed) */
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/forum-normal-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/forum-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-normal-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-normal-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/spectral-italic-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/spectral-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/spectral-normal-300-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/spectral-normal-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/spectral-normal-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/spectral-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/spectral-normal-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/spectral-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   MICHAEL FATE — "THE RELIQUARY"
   A dark cabinet of one-of-a-kind ritual artifacts.
   Palette derived from the pieces' real materials:
   blackened bronze · verdigris patina · gold leaf · gypsum/bone · oxblood
   ============================================================ */

:root {
  /* materials */
  --void:        #0b0f0d;   /* blackened bronze-green (base, not pure black) */
  --void-2:      #111814;   /* raised panel */
  --void-3:      #0e1411;
  --patina:      #3c5b4e;   /* oxidized verdigris (rules) */
  --patina-lite: #7fa993;   /* verdigris highlight */
  --gold:        #c6a24c;   /* antique brass */
  --gold-bright: #ecd28a;   /* gold-leaf sheen */
  --bone:        #e9e3d2;   /* alabaster / gypsum (primary text) */
  --bone-dim:    #a7a28e;   /* muted captions */
  --oxblood:     #8a2a22;   /* single emphasis — the seal */

  --font-display: "Forum", "Times New Roman", serif;
  --font-body:    "Spectral", Georgia, serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --hairline: 1px solid color-mix(in srgb, var(--patina) 60%, transparent);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--patina) 16%, transparent), transparent 60%),
    var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

::selection { background: var(--gold); color: var(--void); }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---- film grain ---- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================ TOPBAR */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--hairline);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.topbar.is-scrolled { background: color-mix(in srgb, var(--void) 96%, transparent); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; height: 66px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: 0.14em; color: var(--bone);
  text-transform: uppercase; white-space: nowrap;
}
.wordmark:hover { color: var(--gold-bright); }

.nav { display: flex; gap: clamp(16px, 2.6vw, 38px); }
.nav a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--bone-dim);
  padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--bone); }
.nav a:hover::after, .nav a.is-current::after { width: 100%; }

.topbar__end { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 18px); }
.topbar__order {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  color: var(--void); background: var(--gold); border: 1px solid var(--gold); padding: 8px 18px;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.topbar__order:hover { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 50%, transparent); }
.langs { position: relative; }
.langs__toggle {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-bright); background: none; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 7px; transition: border-color 0.25s var(--ease);
}
.langs__toggle:hover { border-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.langs__caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.8; transition: transform 0.25s var(--ease); }
.langs.is-open .langs__caret { transform: rotate(180deg); }
.langs__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 100%;
  display: flex; flex-direction: column; gap: 2px; padding: 4px;
  background: color-mix(in srgb, var(--void) 97%, transparent); border: 1px solid color-mix(in srgb, var(--patina) 55%, transparent);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.9);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.langs.is-open .langs__menu { opacity: 1; visibility: visible; transform: none; }
.langs__menu .lang { width: 100%; text-align: center; color: var(--bone); border-color: transparent; }
.langs__menu .lang:hover { color: var(--gold-bright); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.langs__menu .lang.is-active { display: none; }
.lang {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  background: none; border: 1px solid transparent; color: var(--bone-dim);
  padding: 5px 9px; cursor: pointer; border-radius: 1px; transition: all 0.25s var(--ease);
}
.lang:hover { color: var(--bone); }
.lang.is-active { color: var(--gold-bright); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

/* ============================================================ FRONTISPIECE */
.frontispiece {
  position: relative; z-index: 2;
  min-height: 100svh; display: grid; place-items: center;
  padding: clamp(90px, 12vh, 150px) var(--gutter) clamp(60px, 9vh, 110px);
}
.frontispiece__frame {
  position: relative; width: min(100%, 980px); padding: clamp(34px, 6vw, 84px);
}
/* double-rule frame that "draws in" on load */
.frontispiece__frame::before,
.frontispiece__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.frontispiece__frame::before {
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  clip-path: inset(0 0 0 0);
  animation: drawFrame 1.4s var(--ease) both;
}
.frontispiece__frame::after {
  inset: 7px; border: 1px solid color-mix(in srgb, var(--patina) 70%, transparent);
  animation: fade 1.6s 0.5s var(--ease) both;
}
@keyframes drawFrame { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.frontispiece__inner { position: relative; text-align: center; display: grid; gap: clamp(20px, 3.4vh, 38px); justify-items: center; }

.eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold);
  animation: rise 1s 0.6s var(--ease) both;
}
.eyebrow__rule { width: clamp(20px, 6vw, 54px); height: 1px; background: color-mix(in srgb, var(--gold) 55%, transparent); }

.frontispiece__title {
  font-family: var(--font-display);
  display: grid; gap: 0.02em; line-height: 0.9;
  font-size: clamp(58px, 15vw, 168px);
  letter-spacing: 0.04em; color: var(--bone);
  text-transform: uppercase;
}
.frontispiece__title span { animation: rise 1.1s var(--ease) both; }
.frontispiece__title span:nth-child(1) { animation-delay: 0.25s; }
.frontispiece__title span:nth-child(2) { animation-delay: 0.4s; color: color-mix(in srgb, var(--bone) 78%, var(--gold)); }

.frontispiece__sigil {
  width: clamp(96px, 16vw, 168px); color: var(--patina-lite); opacity: 0.62;
  animation: fade 2s 0.9s var(--ease) both;
}
.sigil { width: 100%; height: auto; }
.frontispiece__sigil .sigil { animation: spin 90s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero brand logo (replaces the rotating sigil) — no spin, slight grow on hover */
.frontispiece__sigil--logo { width: clamp(210px, 30vw, 360px); }
.frontispiece__sigil--logo .sigil--logo {
  animation: none; filter: drop-shadow(0 6px 22px rgba(0,0,0,0.55));
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease); cursor: pointer;
}
.frontispiece__sigil--logo:hover .sigil--logo {
  transform: scale(1.07);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}

.frontispiece__manifesto {
  max-width: 60ch; display: grid; gap: 0.9em;
  font-size: clamp(15px, 1.5vw, 18px); color: color-mix(in srgb, var(--bone) 86%, transparent);
  font-style: italic; font-weight: 300;
  animation: rise 1.1s 0.7s var(--ease) both;
}
.frontispiece__manifesto p { margin: 0; }

.frontispiece__enter {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; gap: 10px; align-items: center; padding-top: 4px;
  animation: rise 1s 0.95s var(--ease) both;
}
.frontispiece__enter .arrow { transition: transform 0.4s var(--ease); }
.frontispiece__enter:hover { color: var(--gold-bright); }
.frontispiece__enter:hover .arrow { transform: translateY(4px); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ============================================================ MOVEMENT HEADERS */
.movement {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 20px;
  padding-block: clamp(54px, 8vw, 96px) clamp(28px, 4vw, 48px);
  border-bottom: var(--hairline);
}
.movement__num {
  font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px);
  color: var(--gold); letter-spacing: 0.1em;
}
.movement__title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(30px, 6vw, 62px); letter-spacing: 0.06em; color: var(--bone); line-height: 1;
}
.movement__lat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--bone-dim); white-space: nowrap; justify-self: end;
}

/* ============================================================ CATALOGUE / RELICS */
.catalogue { position: relative; z-index: 2; padding-bottom: clamp(40px, 8vw, 90px); }

.relic {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 8vw, 104px);
  border-bottom: var(--hairline);
}
.relic--right { grid-template-columns: 0.95fr 1.05fr; }
.relic--right .relic__media { order: 2; }
.relic--right .relic__meta  { order: 1; }

/* media */
.relic__media { display: grid; gap: 14px; }
.relic__frame {
  position: relative; margin: 0; overflow: hidden; cursor: zoom-in;
  background: var(--void-2);
  border: 1px solid color-mix(in srgb, var(--patina) 55%, transparent);
  box-shadow: 0 24px 60px -32px rgba(0,0,0,0.9);
}
.relic__frame::after { /* inner gold hairline */
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.relic__frame img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.relic__frame:hover img { transform: scale(1.04); filter: saturate(1.05) contrast(1.05); }

/* gold-leaf sheen sweep (signature motion) */
.relic__sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%,
    color-mix(in srgb, var(--gold-bright) 60%, transparent) 48%,
    color-mix(in srgb, var(--gold-bright) 18%, transparent) 52%, transparent 66%);
  transform: translateX(-120%);
}
.relic__frame:hover .relic__sheen { animation: sheen 1.1s var(--ease); }
@keyframes sheen { 0% { opacity: 0; transform: translateX(-120%); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(120%); } }

.relic__strip { display: flex; gap: 10px; }
.relic__thumb {
  flex: 1; padding: 0; border: 1px solid color-mix(in srgb, var(--patina) 45%, transparent);
  background: var(--void-2); cursor: zoom-in; overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.relic__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(0.85) brightness(0.9); transition: filter 0.4s var(--ease), transform 0.6s var(--ease); }
.relic__thumb:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.relic__thumb:hover img { filter: saturate(1) brightness(1.05); transform: scale(1.06); }

/* collapsible item: show one image, reveal the rest on click */
.relic--collapsible .relic__frame { cursor: pointer; }
.relic--collapsible .relic__strip {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.55s var(--ease), opacity 0.4s var(--ease);
}
.relic--collapsible.is-open .relic__strip { max-height: 480px; opacity: 1; }
.relic__more {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--bone);
  background: color-mix(in srgb, var(--void) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding: 5px 11px; backdrop-filter: blur(4px);
  transition: opacity 0.35s var(--ease), color 0.35s var(--ease), background 0.35s var(--ease);
}
.relic__frame:hover .relic__more { color: var(--gold-bright); background: color-mix(in srgb, var(--void) 55%, transparent); }
.relic--collapsible.is-open .relic__more { opacity: 0; pointer-events: none; }
.relic__more-ico {
  width: 12px; height: 10px; flex: none; border: 1px solid currentColor;
  box-shadow: 2px -2px 0 -1px var(--void-2), 2px -2px 0 0 currentColor;
}

/* meta */
.relic__meta { display: grid; gap: clamp(14px, 1.8vw, 22px); align-content: center; }
.relic__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding-bottom: 6px;
}
.relic__code { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.22em; color: var(--gold); }
.relic__lat {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone-dim); position: relative; padding-left: 14px;
}
.relic__lat::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 1px; background: var(--patina); }

/* UNICUM seal — signature element */
.seal { width: 58px; height: 58px; color: var(--gold); justify-self: end; }
.seal svg { width: 100%; height: 100%; overflow: visible; transition: transform 0.8s var(--ease); }
.seal:hover svg { transform: rotate(18deg); }
.seal text {
  font-family: var(--font-display); font-size: 9px; letter-spacing: 0.18em;
  fill: var(--gold-bright); text-transform: uppercase;
}
.seal .seal__num { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.1em; fill: var(--oxblood); }

.relic__title {
  font-family: var(--font-display); color: var(--bone);
  font-size: clamp(24px, 3vw, 38px); line-height: 1.12; letter-spacing: 0.01em;
}
.relic__desc { display: grid; gap: 0.8em; color: color-mix(in srgb, var(--bone) 82%, transparent); }
.relic__desc p { margin: 0; font-weight: 300; }

.relic__specs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.relic__specs li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--bone-dim);
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline;
}
.relic__specs li::before {
  content: "—"; color: var(--gold); /* leader mark */
}

/* ============================================================ GALLERY (paintings / murals / exhibitions / events) */
.gallery-section { position: relative; z-index: 2; }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px);
  align-items: start;
  margin-block: clamp(28px, 4vw, 52px) clamp(44px, 7vw, 84px);
}
.plate {
  margin: 0; display: grid; gap: 11px; cursor: zoom-in; align-content: start;
}
.plate__frame {
  position: relative; overflow: hidden; background: var(--void-2); aspect-ratio: 4 / 5;
  border: 1px solid color-mix(in srgb, var(--patina) 55%, transparent);
  box-shadow: 0 24px 60px -32px rgba(0,0,0,0.9);
}
.plate__frame::after { /* inner gold hairline */
  content: ""; position: absolute; inset: 6px; pointer-events: none; z-index: 1;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.plate__frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.plate:hover .plate__frame img { transform: scale(1.04); filter: saturate(1.05) contrast(1.05); }
.plate:hover .relic__sheen { animation: sheen 1.1s var(--ease); }

.plate__cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 0 2px;
}
.plate__title {
  font-family: var(--font-display); color: var(--bone);
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.18; letter-spacing: 0.01em;
}
.plate:hover .plate__title { color: var(--gold-bright); }
.plate__year {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--gold); flex: none;
}

/* mural groups — one tile per project, opens a detail modal */
.plate--group { cursor: pointer; }
.plate__count {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--void) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding: 3px 9px; backdrop-filter: blur(4px);
}
.plate__count::before {
  content: ""; width: 11px; height: 9px; flex: none;
  border: 1px solid currentColor; box-shadow: 2px -2px 0 -1px var(--void-2), 2px -2px 0 0 currentColor;
}

/* ============================================================ GROUP VIEWER (mural projects) */
.groupbox {
  position: fixed; inset: 0; z-index: 95; overflow-y: auto;
  background: color-mix(in srgb, var(--void) 95%, black);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.groupbox.is-open { opacity: 1; visibility: visible; }
.groupbox .lightbox__close { position: fixed; z-index: 96; }
.groupbox__inner {
  width: min(100% - 2 * var(--gutter), 1000px); margin-inline: auto;
  padding: clamp(64px, 10vh, 120px) 0 clamp(48px, 8vh, 90px);
}
.groupbox__head {
  display: grid; gap: 10px;
  padding-bottom: clamp(20px, 3vw, 30px); margin-bottom: clamp(22px, 3vw, 34px);
  border-bottom: var(--hairline);
}
.groupbox__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--gold); }
.groupbox__title {
  font-family: var(--font-display); color: var(--bone);
  font-size: clamp(28px, 5vw, 52px); letter-spacing: 0.04em; line-height: 1.05;
}
.groupbox__desc {
  max-width: 64ch; margin: 0; font-weight: 300; font-style: italic;
  color: color-mix(in srgb, var(--bone) 82%, transparent);
}
.groupbox__desc p { margin: 0 0 0.7em; }
.groupbox__desc p:last-child { margin-bottom: 0; }
.groupbox__specs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-style: normal; }
.groupbox__specs li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--bone-dim);
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline;
}
.groupbox__specs li::before { content: "—"; color: var(--gold); }
.groupbox__grid { columns: 2; column-gap: clamp(12px, 2vw, 20px); }
.gplate {
  display: block; width: 100%; margin: 0 0 clamp(12px, 2vw, 20px); padding: 0;
  background: var(--void-2); cursor: zoom-in; overflow: hidden; break-inside: avoid;
  border: 1px solid color-mix(in srgb, var(--patina) 50%, transparent);
}
.gplate img {
  width: 100%; height: auto; filter: saturate(0.92) contrast(1.02);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.gplate:hover img { transform: scale(1.04); filter: saturate(1.05) contrast(1.05); }

/* ============================================================ FILM (youtube facade) */
.filmreel { position: relative; z-index: 2; padding-bottom: clamp(20px, 5vw, 64px); }
.movement__num--play { color: var(--gold-bright); font-size: clamp(16px, 2.4vw, 24px); }

.ytfacade {
  position: relative; margin: clamp(22px, 3.5vw, 40px) 0 0; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  background: var(--void-2); border: 1px solid color-mix(in srgb, var(--patina) 55%, transparent);
  box-shadow: 0 24px 60px -32px rgba(0,0,0,0.9);
}
.ytfacade::after { content: ""; position: absolute; inset: 6px; pointer-events: none; z-index: 2; border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
.ytfacade img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.74); transition: filter 0.6s var(--ease), transform 0.9s var(--ease); }
.ytfacade:hover img { filter: saturate(1.03) brightness(0.9); transform: scale(1.03); }
.ytfacade__play {
  position: absolute; inset: 0; margin: auto; width: clamp(64px, 8vw, 88px); aspect-ratio: 1; border-radius: 50%; z-index: 3; cursor: pointer;
  background: color-mix(in srgb, var(--void) 48%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  backdrop-filter: blur(3px); transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ytfacade__play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent var(--gold-bright); }
.ytfacade:hover .ytfacade__play { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold-bright); transform: scale(1.06); }
.ytfacade__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: clamp(16px, 2.2vw, 26px);
  display: grid; gap: 4px; background: linear-gradient(to top, color-mix(in srgb, var(--void) 92%, transparent), transparent);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.ytfacade__cap b { font-family: var(--font-display); font-weight: 400; font-size: clamp(16px, 1.8vw, 22px); color: var(--bone); letter-spacing: 0.01em; text-transform: none; }
.ytfacade.is-playing { cursor: default; }
.ytfacade.is-playing::after { display: none; }
.ytfacade__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }

/* ============================================================ ART VIDEOS (gallery tiles + player) */
.plate--video { cursor: pointer; }
.plate--video .plate__frame { aspect-ratio: 9 / 16; }
.vid-play {
  position: absolute; inset: 0; margin: auto; width: clamp(54px, 7vw, 72px); aspect-ratio: 1; border-radius: 50%; z-index: 3;
  background: color-mix(in srgb, var(--void) 50%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  backdrop-filter: blur(3px); transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.vid-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--gold-bright); }
.plate--video:hover .vid-play, .plate--video:focus-visible .vid-play { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold-bright); transform: scale(1.07); }

.videobox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: color-mix(in srgb, var(--void) 92%, black); padding: clamp(16px, 4vw, 48px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.videobox.is-open { opacity: 1; visibility: visible; }
.videobox video {
  max-width: 100%; max-height: 86vh; display: block; background: #000;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); box-shadow: 0 40px 120px -40px rgba(0,0,0,1);
}
.videobox__close {
  position: absolute; top: clamp(12px, 3vw, 28px); right: clamp(14px, 3vw, 32px);
  background: none; border: none; color: var(--bone); font-size: 38px; line-height: 1; cursor: pointer; transition: color 0.25s var(--ease);
}
.videobox__close:hover { color: var(--gold-bright); }

/* ============================================================ SHOW MORE (collapse sections) */
.plate.is-collapsed, .relic.is-collapsed { display: none; }
.more-wrap { display: flex; justify-content: center; padding-block: clamp(20px, 3vw, 42px); }
.more-btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); background: none; cursor: pointer; padding: 13px 32px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.more-btn:hover { color: var(--void); background: var(--gold-bright); border-color: var(--gold-bright); }

/* ============================================================ ORDER (commission form) */
.order { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vw, 100px); }
.order__intro {
  margin: clamp(20px, 3vw, 30px) 0 clamp(26px, 4vw, 38px);
  font-family: var(--font-body); font-style: italic; font-size: clamp(16px, 1.6vw, 19px);
  color: color-mix(in srgb, var(--bone) 82%, transparent); max-width: 56ch;
}
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 24px); max-width: 760px; }
.order-field { display: grid; gap: 8px; }
.order-field--full { grid-column: 1 / -1; }
.order-field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.order-field input, .order-field select, .order-field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--bone); width: 100%;
  background: var(--void-2); border: 1px solid color-mix(in srgb, var(--patina) 55%, transparent);
  padding: 13px 15px; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.order-field input:focus, .order-field select:focus, .order-field textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--gold) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent);
}
.order-field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.order-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c6a24c' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.order-field option { background: var(--void-2); color: var(--bone); }
.btn-order {
  grid-column: 1 / -1; justify-self: start; cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--void); background: var(--gold); border: 1px solid var(--gold); padding: 15px 38px;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-order:hover { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 28px color-mix(in srgb, var(--gold) 50%, transparent); transform: translateY(-2px); }
.order__status {
  grid-column: 1 / -1; margin: 4px 0 0; min-height: 1em;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--gold-bright); opacity: 0; transition: opacity 0.3s var(--ease);
}
.order__status.is-shown { opacity: 1; }
@media (max-width: 640px) { .order-form { grid-template-columns: 1fr; } }

/* ============================================================ LEDGER (connect / store) */
.ledger { position: relative; z-index: 2; }
.ledger--alt { background:
  linear-gradient(180deg, transparent, color-mix(in srgb, var(--void-3) 70%, transparent) 30%, color-mix(in srgb, var(--void-3) 70%, transparent) 70%, transparent); }

.portals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px;
  background: color-mix(in srgb, var(--patina) 40%, transparent);
  border: var(--hairline); margin-block: clamp(28px, 4vw, 48px) clamp(54px, 8vw, 96px);
}
.portal {
  position: relative; background: var(--void); display: flex; align-items: center; gap: 16px;
  padding: clamp(20px, 2.5vw, 30px) clamp(20px, 2.5vw, 28px);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.portal:hover { background: var(--void-2); }
.portal__icon { width: 26px; height: 26px; color: var(--patina-lite); flex: none; transition: color 0.35s var(--ease), transform 0.5s var(--ease); }
.portal:hover .portal__icon { color: var(--gold-bright); transform: translateY(-2px); }
.portal__label {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-dim); transition: color 0.35s var(--ease);
}
.portal:hover .portal__label { color: var(--bone); }
.portal__rule { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width 0.4s var(--ease); }
.portal:hover .portal__rule { width: 100%; }

/* ============================================================ COLOPHON */
.colophon { position: relative; z-index: 2; border-top: var(--hairline); }
.colophon__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  padding-block: 46px; text-align: center;
}
.colophon__mark { font-size: 22px; filter: grayscale(0.4) sepia(0.3); opacity: 0.8; }
.colophon p { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--bone-dim); }
.colophon .build { color: color-mix(in srgb, var(--bone-dim) 60%, transparent); font-size: 11px; letter-spacing: 0.14em; }
.colophon__inner > p:not(.build) { flex-basis: 100%; }

/* ============================================================ LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: color-mix(in srgb, var(--void) 92%, black);
  padding: clamp(20px, 5vw, 64px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 86vh; object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,1);
  transform: scale(0.97); transition: transform 0.4s var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: clamp(14px, 3vw, 30px); right: clamp(16px, 3vw, 34px);
  background: none; border: none; color: var(--bone); font-size: 38px; line-height: 1;
  cursor: pointer; transition: color 0.25s var(--ease);
}
.lightbox__close:hover { color: var(--gold-bright); }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 860px) {
  .nav { display: none; }
  .relic, .relic--right { grid-template-columns: 1fr; gap: 26px; }
  .relic--right .relic__media, .relic--right .relic__meta { order: initial; }
  .movement { grid-template-columns: auto 1fr; }
  .movement__lat { grid-column: 1 / -1; justify-self: start; padding-top: 4px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .groupbox__grid { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar__inner { height: 58px; }
  .relic__head { grid-template-columns: auto auto; row-gap: 6px; }
  .seal { grid-row: 1 / 3; grid-column: 2; justify-self: end; }
  .relic__lat { grid-column: 1 / 2; }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .frontispiece__frame::before { clip-path: inset(0 0 0 0); }
  .frontispiece__sigil .sigil { animation: none; }
}
