:root {
  --bg: #080907;
  --bg-2: #0b0d09;
  --gold: #c9a66b;
  --gold-hi: #e8c98a;
  --gold-deep: #8a6a3d;
  --moss: #6e7f52;
  --sage: #9aa882;
  --ink: #e4dcc8;
  --ink-soft: rgba(228, 220, 200, 0.72);
  --ink-mute: rgba(228, 220, 200, 0.42);
  --line: rgba(201, 166, 107, 0.16);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --frame-src: url("./img/frame-gilded.webp");
  --frame-slice: 144 137 141 138;
  --topbar-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Curtain ---------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  background: var(--bg);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

body:not(.is-loading) .curtain {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curtain__moon {
  width: 44px;
  height: 44px;
  animation: moon-pulse 1.8s ease-in-out infinite;
}

.curtain__mark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  padding-left: 0.5em;
}

.moon__disc {
  fill: #1a1c15;
  stroke: rgba(201, 166, 107, 0.35);
  stroke-width: 0.8;
}

.moon__lit {
  fill: #e2cf9f;
}

/* ---------- Wall ---------- */

.wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 32%, rgba(92, 72, 42, 0.2), transparent 70%),
    radial-gradient(ellipse 45% 35% at 78% 12%, rgba(70, 90, 55, 0.1), transparent 65%),
    linear-gradient(180deg, #0d0e0a 0%, #090a07 55%, #060705 100%);
}

.wall__texture {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.72 0 0 0 0 0.55 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.4 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

.wall__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    transparent 30%,
    rgba(0, 0, 0, 0.45) 80%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

/* ---------- Topbar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 3.5vw, 2.6rem);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.topbar.is-solid {
  background: rgba(8, 9, 7, 0.78);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.topbar__brand {
  justify-self: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.topbar__mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(105deg, #e8c98a 0%, #c4a05a 45%, #8f9f68 80%, #b8924e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topbar__sub {
  margin-top: 0.3rem;
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.8;
}

.topbar__nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}

.topbar__nav a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: left 0.3s var(--ease), right 0.3s var(--ease);
}

.topbar__nav a:hover,
.topbar__nav a.is-active {
  color: var(--gold-hi);
}

.topbar__nav a:hover::after,
.topbar__nav a.is-active::after {
  left: 0;
  right: 0;
}

.topbar__cta {
  justify-self: end;
}

.topbar__burger {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.topbar__burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.topbar__burger span:first-child {
  top: 18px;
}

.topbar__burger span:last-child {
  top: 25px;
}

.topbar__burger[aria-expanded="true"] span:first-child {
  top: 21.5px;
  transform: rotate(45deg);
}

.topbar__burger[aria-expanded="true"] span:last-child {
  top: 21.5px;
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border: 1px solid rgba(201, 166, 107, 0.45);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn--ghost {
  padding: 0.7rem 1.3rem;
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 166, 107, 0.08);
  color: var(--gold-hi);
}

.btn--gold {
  border-color: transparent;
  background: linear-gradient(120deg, #b8924e, #e2c285 45%, #a88443);
  background-size: 200% 100%;
  background-position: 0% 0;
  color: #17140d;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(201, 166, 107, 0.16);
  transition: background-position 0.6s var(--ease), box-shadow 0.3s ease;
}

.btn--gold:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 36px rgba(201, 166, 107, 0.28);
}

/* ---------- Hall ---------- */

.hall {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  padding: calc(var(--topbar-h) + clamp(1.6rem, 5vh, 3rem)) 1.25rem clamp(1.4rem, 3vh, 2.2rem);
  overflow: hidden;
}

.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 34vmax at var(--mx, 50%) var(--my, 42%), rgba(201, 166, 107, 0.09), transparent 62%),
    radial-gradient(ellipse 30% 42% at 50% 44%, rgba(201, 166, 107, 0.14), rgba(110, 127, 82, 0.04) 45%, transparent 72%);
  transition: background-position 0.2s linear;
}

.stage {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.hung {
  grid-column: 2;
  position: relative;
  margin: 0;
  display: flex;
  justify-content: center;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.5s ease;
}

.hung.is-leaving {
  opacity: 0;
  transform: translateX(calc(var(--dir, 1) * -24px));
  filter: brightness(0.6);
}

.hung.is-entering {
  opacity: 0;
  transform: translateX(calc(var(--dir, 1) * 24px));
  filter: brightness(0.6);
  transition: none;
}

.picture-light {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 3;
  width: clamp(90px, 34%, 200px);
  height: 9px;
  transform: translateX(-50%);
  border-radius: 5px 5px 8px 8px;
  background: linear-gradient(180deg, #e7cf98 0%, #9c7b45 55%, #4c3a20 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 240, 200, 0.6);
  pointer-events: none;
}

.picture-light::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 3px;
  height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #5b4526, #b8965a, #5b4526);
}

.picture-light::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -70%;
  width: 240%;
  height: clamp(180px, 40vh, 380px);
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(255, 228, 176, 0.2), rgba(255, 228, 176, 0.05) 50%, transparent 75%);
  mix-blend-mode: screen;
}

.frame {
  --rx: 0deg;
  --ry: 0deg;
  --fw: clamp(24px, 3.4vw, 46px);
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  background: #050505 padding-box;
  border: var(--fw) solid transparent;
  border-image: var(--frame-src) var(--frame-slice) stretch;
  cursor: zoom-in;
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), filter 0.4s ease;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.65)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.frame:hover {
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)) brightness(1.04);
}

.frame.is-native {
  --fw: 5px;
  border-image: linear-gradient(145deg, #c9b07e, #5a4a30 50%, #c4ae78) 1;
}

.frame.is-native::before {
  box-shadow: none;
}

.frame__image {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: min(68vw, 600px);
  max-height: min(56dvh, 580px);
  user-select: none;
}

.frame__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    var(--ga, 115deg),
    transparent 30%,
    rgba(255, 240, 210, 0.07) 48%,
    transparent 62%
  );
  mix-blend-mode: screen;
}

/* Museum label */

.label-plate {
  grid-column: 3;
  justify-self: start;
  width: min(250px, 100%);
  padding: 1.1rem 1.2rem 1rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(160deg, rgba(34, 30, 22, 0.86), rgba(16, 15, 11, 0.9));
  border: 1px solid rgba(201, 166, 107, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 240, 200, 0.06);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.label-plate.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}

.label-plate__index {
  margin: 0 0 0.55rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.75;
}

.label-plate__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: var(--gold-hi);
}

.label-plate__meta {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.label-plate__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.label-plate__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-color, var(--gold));
  box-shadow: 0 0 8px var(--status-color, var(--gold));
}

.label-plate__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
}

.label-plate__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.label-plate__more:hover svg {
  transform: translateX(4px);
}

/* Arrows */

.nav-arrow {
  position: absolute;
  top: 46%;
  z-index: 6;
  width: 54px;
  height: 84px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(201, 166, 107, 0.34);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.3s ease, transform 0.3s var(--ease);
}

.nav-arrow svg {
  width: 100%;
  height: 100%;
}

.nav-arrow--prev {
  left: clamp(0.3rem, 2vw, 1.6rem);
}

.nav-arrow--next {
  right: clamp(0.3rem, 2vw, 1.6rem);
}

.nav-arrow--prev:hover {
  color: var(--gold);
  transform: translateY(-50%) translateX(-3px);
}

.nav-arrow--next:hover {
  color: var(--gold);
  transform: translateY(-50%) translateX(3px);
}

/* Lunar navigation */

.lunar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
}

.lunar__phases {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.4vw, 0.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lunar__phases::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

.phase {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.phase svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  opacity: 0.55;
  transition: transform 0.45s var(--ease), opacity 0.3s ease, filter 0.45s ease;
}

.phase:hover svg {
  opacity: 0.9;
  transform: scale(1.12);
}

.phase.is-active svg {
  opacity: 1;
  transform: scale(1.38);
  filter: drop-shadow(0 0 6px rgba(232, 201, 138, 0.55));
}

.phase::after {
  content: attr(data-title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold-hi);
  background: rgba(12, 13, 10, 0.92);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.phase:hover::after,
.phase:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lunar__hint {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: opacity 0.8s ease;
}

.lunar__hint.is-hidden {
  opacity: 0;
}

/* ---------- Sections ---------- */

main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 5vw, 3rem);
}

.section__head {
  width: min(760px, 100%);
  margin: 0 auto clamp(2.5rem, 6vh, 4rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sage);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--gold-hi);
}

.section__lead {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Works ---------- */

.works {
  background: linear-gradient(180deg, transparent, rgba(11, 13, 9, 0.85) 12%, var(--bg-2));
  border-top: 1px solid var(--line);
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -1.5rem auto 2.5rem;
}

.filters button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.filters button[aria-selected="true"],
.filters button:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
  background: rgba(201, 166, 107, 0.06);
}

.works__grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  columns: 3 230px;
  column-gap: clamp(1.4rem, 3vw, 2.4rem);
}

.card {
  break-inside: avoid;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.card.is-filtered {
  display: none;
}

.card__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.card__media {
  position: relative;
  display: block;
  padding: 10px;
  background: linear-gradient(145deg, #3a3122, #17140e 50%, #2f2819);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(201, 166, 107, 0.3);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 14px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.card__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease), filter 0.6s ease;
  filter: brightness(0.92);
}

.card__button:hover .card__media {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55), 0 0 60px rgba(201, 166, 107, 0.1), inset 0 0 0 1px rgba(201, 166, 107, 0.5);
}

.card__button:hover .card__media img {
  transform: scale(1.035);
  filter: brightness(1.04);
}

.card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(8, 9, 7, 0.78);
  border: 1px solid var(--status-color, var(--line));
}

.card__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-hi);
}

.card__num {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--sage);
  opacity: 0.7;
}

.card__meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

/* ---------- Artist ---------- */

.artist {
  background: var(--bg-2);
}

.artist__layout {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.arch {
  position: relative;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(201, 166, 107, 0.16), transparent 70%),
    linear-gradient(180deg, #14160f, #0b0c09);
  border: 1px solid rgba(201, 166, 107, 0.3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 8px rgba(8, 9, 7, 0.9), inset 0 0 0 9px rgba(201, 166, 107, 0.22);
}

.arch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch__moon {
  width: 62%;
  filter: drop-shadow(0 0 40px rgba(232, 214, 168, 0.25));
  animation: moon-float 9s ease-in-out infinite;
}

.arch__caption {
  position: absolute;
  bottom: 9%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.8;
}

.artist__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(110deg, #e8c98a, #c4a05a 45%, #7f9260 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.artist__role {
  margin: 0.8rem 0 0;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.artist__bio {
  margin-top: 2rem;
}

.artist__bio p {
  margin: 0 0 1.1rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  color: rgba(228, 220, 200, 0.84);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin: 0 0 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.8;
}

.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--gold);
}

/* ---------- Order ---------- */

.order {
  background: linear-gradient(180deg, var(--bg-2), #0a0b08);
  border-top: 1px solid var(--line);
}

.steps {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
}

.step {
  position: relative;
  text-align: center;
  counter-increment: step;
}

.step__phase {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: var(--bg-2);
  box-shadow: 0 0 0 8px var(--bg-2);
}

.step__phase svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(232, 201, 138, 0.3));
}

.step__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold-hi);
}

.step__title::before {
  content: "0" counter(step) " · ";
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--sage);
  vertical-align: middle;
}

.step p {
  margin: 0 auto;
  max-width: 16rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.formats {
  width: min(1100px, 100%);
  margin: clamp(3.5rem, 8vh, 5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.format {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: #0c0d0a;
  transition: background 0.4s ease;
}

.format:hover {
  background: #11130e;
}

.format__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold-hi);
}

.format__size {
  margin: 0.35rem 0 1.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

.format__desc {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.format__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.format__row b {
  font-weight: 400;
  color: var(--ink);
}

.order__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
}

.order__note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-mute);
}

/* ---------- Reviews ---------- */

.reviews {
  background: #0a0b08;
  border-top: 1px solid var(--line);
}

.reviews__list {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}

.review {
  position: relative;
  padding: 2rem 1.8rem 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(24, 24, 18, 0.9), rgba(12, 13, 10, 0.9));
}

.review::before {
  content: "\201C";
  position: absolute;
  top: -0.2rem;
  left: 1.2rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}

.review__text {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.review__author {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.review__work {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.sample-tag {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e7a98f;
  border: 1px dashed rgba(231, 169, 143, 0.6);
}

/* ---------- Contact ---------- */

.contact {
  padding-bottom: 2rem;
  background:
    radial-gradient(ellipse 50% 60% at 50% 30%, rgba(201, 166, 107, 0.1), transparent 70%),
    #080907;
  border-top: 1px solid var(--line);
}

.contact__inner {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact__moon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 0 22px rgba(232, 214, 168, 0.45));
}

.contact__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold-hi);
}

.contact__lead {
  margin: 1.2rem auto 2.2rem;
  max-width: 30rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer {
  width: min(1100px, 100%);
  margin: clamp(5rem, 12vh, 7rem) auto 0;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(159, 175, 130, 0.55);
}

.footer a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: var(--gold);
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  background: rgba(4, 5, 3, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}

.modal[hidden],
.tryon[hidden] {
  display: none;
}

.modal.is-open {
  opacity: 1;
}

.modal__panel {
  position: relative;
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: linear-gradient(160deg, #13150f 0%, #0a0b08 100%);
  border: 1px solid rgba(201, 166, 107, 0.25);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.99);
  transition: transform 0.5s var(--ease);
}

.modal.is-open .modal__panel {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--sage);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.3s var(--ease);
}

.modal__close:hover {
  color: var(--gold-hi);
  transform: rotate(90deg);
}

.modal__close svg {
  width: 100%;
  height: 100%;
}

.modal__media {
  display: grid;
  place-items: center;
  min-width: 0;
}

.frame--static {
  --fw: clamp(18px, 2.6vw, 34px);
  cursor: default;
  transform: none;
}

.frame--static:hover {
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.65)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.frame--static .frame__image {
  max-width: min(100%, 560px);
  max-height: min(70dvh, 620px);
}

.modal__body {
  min-width: 0;
}

.modal__index {
  margin: 0 0 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
}

.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  color: var(--gold-hi);
}

.passport {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1.2rem;
  margin: 1.3rem 0 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.passport dt {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  align-self: center;
}

.passport dd {
  margin: 0;
  color: var(--ink);
}

.is-missing {
  color: var(--ink-mute) !important;
}

.is-staging .is-missing {
  outline: 1px dashed rgba(231, 169, 143, 0.55);
  outline-offset: 2px;
}

.modal__text {
  max-height: 28vh;
  overflow-y: auto;
  padding-right: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(228, 220, 200, 0.86);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}

.modal__text p {
  margin: 0 0 0.9rem;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.modal__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.modal__nav button {
  padding: 0.3rem 0;
  border: 0;
  background: none;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color 0.25s ease;
}

.modal__nav button:hover {
  color: var(--gold);
}

/* ---------- Try-on ---------- */

.tryon {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  background: #050604;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tryon.is-open {
  opacity: 1;
}

.tryon__room {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, calc(100dvh * 4 / 3));
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.tryon__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tryon__art {
  position: absolute;
  left: calc(var(--cx, 0.5) * 100%);
  top: calc(var(--cy, 0.36) * 100%);
  width: calc(var(--w, 0.25) * 100%);
  transform: translate(-50%, -50%);
  padding: calc(var(--w, 0.25) * 2.2%);
  background: linear-gradient(145deg, #c9ad72, #7a6035 45%, #b89a5c);
  box-shadow:
    0 1px 0 rgba(255, 240, 200, 0.3) inset,
    6px 14px 22px rgba(0, 0, 0, 0.45),
    2px 4px 6px rgba(0, 0, 0, 0.35);
  transition: width 0.35s var(--ease), padding 0.35s var(--ease), left 0.5s var(--ease), top 0.5s var(--ease);
}

.tryon__art img {
  display: block;
  width: 100%;
  height: auto;
}

.tryon__controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem 1.8rem;
  background: linear-gradient(180deg, #11130e, #0a0b08);
  border-left: 1px solid var(--line);
}

.tryon__rooms {
  display: flex;
  gap: 0.6rem;
}

.tryon__rooms button {
  flex: 1;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.tryon__rooms button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.tryon__rooms button span {
  display: block;
  padding: 0.45rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tryon__rooms button[aria-checked="true"] {
  border-color: var(--gold);
}

.tryon__rooms button[aria-checked="true"] img,
.tryon__rooms button:hover img {
  opacity: 1;
}

.tryon__size {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.tryon__size b {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-hi);
}

.tryon__size input {
  width: 100%;
  accent-color: var(--gold);
}

.tryon__note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.tryon__close {
  top: 1rem;
  right: calc(340px + 1rem);
  color: #efe6d0;
  background: rgba(8, 9, 7, 0.55);
  border-radius: 50%;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 90;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.3rem;
  font-size: 0.82rem;
  color: var(--ink);
  background: rgba(20, 21, 16, 0.96);
  border: 1px solid rgba(201, 166, 107, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Keyframes ---------- */

@keyframes moon-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes moon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.4rem;
  }

  .hung,
  .label-plate {
    grid-column: 1;
  }

  .label-plate {
    justify-self: center;
    width: auto;
    max-width: min(560px, 100%);
    margin: 0;
    padding: 0;
    text-align: center;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .label-plate__index {
    margin-bottom: 0.35rem;
  }

  .label-plate__meta {
    margin-top: 0.35rem;
  }

  .label-plate__status {
    justify-content: center;
    margin-top: 0.45rem;
    padding-top: 0;
    border-top: 0;
  }

  .label-plate__more {
    display: none;
  }

  .frame__image {
    max-height: max(240px, min(calc(100dvh - 420px), 560px));
  }
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar__cta {
    display: none;
  }

  .topbar__burger {
    display: block;
  }

  .topbar__nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0 1.6rem;
    background: rgba(8, 9, 7, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
  }

  .topbar__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .topbar__nav a {
    padding: 0.9rem 0;
    font-size: 0.78rem;
  }

  .artist__layout {
    grid-template-columns: 1fr;
  }

  .artist__portrait {
    width: min(340px, 80%);
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.8rem;
  }

  .steps::before {
    display: none;
  }

  .formats {
    grid-template-columns: 1fr;
  }

  .modal__panel {
    grid-template-columns: 1fr;
    width: min(600px, 100%);
  }

  .modal__text {
    max-height: none;
  }

  .frame--static .frame__image {
    max-height: 52dvh;
  }

  .tryon {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
  }

  .tryon__room {
    width: 100%;
  }

  .tryon__controls {
    justify-content: flex-start;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.4rem 1.25rem 2rem;
    gap: 1.2rem;
  }

  .tryon__close {
    right: 0.8rem;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-h: 60px;
  }

  .hall {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .frame {
    --fw: 20px;
  }

  .frame__image {
    max-width: 78vw;
    max-height: max(220px, calc(100dvh - 400px));
  }

  .picture-light::after {
    height: 160px;
  }

  .nav-arrow {
    top: auto;
    bottom: 1.6rem;
    width: 40px;
    height: 56px;
    transform: none;
  }

  .nav-arrow--prev:hover,
  .nav-arrow--next:hover {
    transform: none;
  }

  .lunar {
    margin-top: 1.1rem;
  }

  .lunar__phases {
    gap: 0.1rem;
  }

  .phase {
    width: 26px;
  }

  .phase svg {
    width: 15px;
    height: 15px;
  }

  .phase::after {
    display: none;
  }

  .lunar__hint {
    max-width: 16rem;
    text-align: center;
    line-height: 1.6;
  }

  .label-plate__title {
    font-size: 1.25rem;
  }

  .works__grid {
    columns: 2;
    column-gap: 0.9rem;
  }

  .card {
    margin-bottom: 1.4rem;
  }

  .card__media {
    padding: 6px;
  }

  .card__media::after {
    inset: 6px;
  }

  .card__badge {
    top: 10px;
    left: 10px;
  }

  .card__info {
    margin-top: 0.6rem;
  }

  .card__title {
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .card__num {
    display: none;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 0;
    place-items: start center;
  }

  .modal__panel {
    min-height: 100dvh;
    border: 0;
    padding-top: 3.2rem;
  }

  .modal__actions .btn {
    flex: 1 1 100%;
  }
}

@media (hover: none) {
  .frame {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }

  .frame {
    transform: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
