/* =====================================================================
   Vivenndell — cinematic gallery palette
   ===================================================================== */

:root {
  --ink-000: #07080a;
  --ink-100: #0c0d10;
  --ink-200: #121317;
  --ink-300: #1a1c21;
  --ink-400: #24262d;

  --bone: #efe7d8;
  --ivory: #f5efe2;
  --champagne: #d8c39a;
  --champagne-soft: #b9a17a;
  --sand: #8a7a60;

  --teal: #4f8a82;
  --sage: #a9b5a0;
  --forest: #2e3e36;
  --gold: #b8945b;
  --gold-hi: #d6b88a;

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink-000);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `overflow-x: clip` clips without creating a scroll container,
     so .room-sticky's position: sticky still works. */
  overflow-x: clip;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, #1b1814 0%, transparent 55%),
    radial-gradient(ellipse at 80% 110%, #181a1c 0%, transparent 60%),
    var(--ink-000);
}

/* film grain pinned over everything */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* cursor follow light */
.cursor-light {
  position: fixed; top: 0; left: 0; width: 60vmin; height: 60vmin;
  margin: -30vmin 0 0 -30vmin;
  pointer-events: none; z-index: 80;
  background: radial-gradient(circle, rgba(216,195,154,0.10) 0%, rgba(216,195,154,0.04) 25%, transparent 60%);
  mix-blend-mode: screen;
  transition: opacity 600ms ease;
  will-change: transform;
}
@media (hover: none) { .cursor-light { display: none; } }

/* =====================================================================
   Announcement bar
   ===================================================================== */
.announcement-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 30px;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  background: rgba(4,4,6,0.97);
  border-bottom: 1px solid rgba(184,148,91,0.18);
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(239,231,216,0.65);
}
.ann-sep { color: var(--gold); opacity: 0.55; }

/* =====================================================================
   Top nav
   ===================================================================== */
.nav {
  position: fixed; top: 30px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 36px;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(239,231,216,0.78);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: linear-gradient(to bottom, rgba(7,8,10,0.55), rgba(7,8,10,0.0));
  border-bottom: 1px solid rgba(216,195,154,0.06);
}
.nav .mark {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 22px; letter-spacing: 0.04em; text-transform: none;
  color: var(--ivory);
}
.nav .mark::first-letter { color: var(--champagne); }
.nav ul { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.nav a { color: inherit; text-decoration: none; transition: color 200ms; }
.nav a:hover { color: var(--champagne); }
.nav .cart {
  border: 1px solid rgba(216,195,154,0.25);
  padding: 9px 16px; border-radius: 999px;
  display: inline-flex; gap: 10px; align-items: center;
}
.nav .cart .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--champagne); box-shadow: 0 0 8px var(--champagne); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  height: 100vh; min-height: 720px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0a0908 0%, #07080a 100%);
}
.hero-detail {
  position: absolute; inset: 0;
  overflow: hidden;
  transform: scale(1.4);
  filter: blur(6px) saturate(1.05);
  opacity: 0.6;
  will-change: transform, opacity;
}
.hero-detail img {
  /* extreme close-crop of the gold wave artwork */
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(2.0);
  transform-origin: center;
  width: 100%; height: auto;
  min-height: 100%;
  object-fit: cover;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 25%, rgba(7,8,10,0.85) 80%),
    linear-gradient(180deg, rgba(7,8,10,0.5) 0%, transparent 30%, transparent 70%, rgba(7,8,10,0.7) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 940px; padding: 0 32px;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(216,195,154,0.78);
  margin-bottom: 28px;
  display: inline-flex; gap: 16px; align-items: center;
}
.hero-eyebrow .line { width: 32px; height: 1px; background: rgba(216,195,154,0.5); }
.hero-mark {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 400; line-height: 0.95;
  color: var(--ivory);
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  text-shadow: 0 4px 50px rgba(0,0,0,0.6);
}
.hero-mark .accent { color: var(--champagne); }
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: rgba(245,239,226,0.86);
  font-weight: 300;
  max-width: 640px; margin: 0 auto;
  font-style: italic;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.hero-meta {
  margin-top: 56px;
  display: flex; gap: 64px; justify-content: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(239,231,216,0.6);
}
.hero-meta span b {
  display: block; color: var(--champagne); font-weight: 500;
  font-size: 13px; letter-spacing: 0.18em; margin-bottom: 6px;
}

.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.42em;
  text-transform: uppercase; color: rgba(216,195,154,0.7);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.scroll-cue .bar {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--champagne));
  position: relative; overflow: hidden;
}
.scroll-cue .bar::after {
  content: ""; position: absolute; top: -28px; left: 0; width: 1px; height: 28px;
  background: var(--ivory);
  animation: scrollDrop 2.6s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(84px); opacity: 0; }
}

/* =====================================================================
   Room sections — real photo backdrops + composited artwork
   ===================================================================== */
.room {
  position: relative;
  min-height: 220vh;
}
.room-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.room-stage {
  position: absolute; inset: 0;
  overflow: hidden;
}

.room-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  will-change: transform;
  /* slight base scale so we always have headroom for parallax */
  transform: scale(1.06);
}

/* a faint cinematic vignette + cool darken to make the artwork pop */
.room-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 55% 45%, transparent 35%, rgba(7,8,10,0.45) 80%),
    linear-gradient(180deg, rgba(7,8,10,0.25) 0%, transparent 20%, transparent 80%, rgba(7,8,10,0.45) 100%);
}

/* chapter mark + location credit overlaid on the room */
.chapter {
  position: absolute; top: 110px; left: 4vw;
  z-index: 4;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.42em;
  text-transform: uppercase; color: rgba(239,231,216,0.7);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.chapter b {
  color: var(--champagne); font-weight: 500; margin-right: 14px;
  font-size: 16px; font-family: var(--serif); font-style: italic;
}
.chapter .room-name { color: rgba(239,231,216,0.9); margin-left: 14px; }

.location {
  position: absolute; bottom: 36px; left: 4vw;
  z-index: 4;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.4em;
  text-transform: uppercase; color: rgba(239,231,216,0.55);
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.location b { color: var(--champagne); font-weight: 500; }

/* =====================================================================
   Artwork on the wall
   ===================================================================== */
.artwork-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}
/* GSAP animates .artwork-anim (scale/y/opacity/blur) — never .artwork-wrap,
   so CSS centering is never overridden by GSAP. */
.artwork-anim {
  width: 100%;
  height: 100%;
  will-change: transform, opacity, filter;
}
.artwork-frame {
  position: relative;
  width: 100%;
  height: 100%;
  /* the canvas + a slim deep frame */
  padding: 0;
  /* re-enable pointer events so the artwork itself is clickable (parent .artwork-wrap has none) */
  pointer-events: auto;
  cursor: pointer;
  /* multi-layered shadow: ambient + contact + depth */
  filter:
    drop-shadow(0 18px 24px rgba(0,0,0,0.45))
    drop-shadow(0 36px 60px rgba(0,0,0,0.5));
  transition: filter 0.35s ease;
}
.artwork-frame:hover {
  filter:
    drop-shadow(0 20px 30px rgba(0,0,0,0.55))
    drop-shadow(0 40px 70px rgba(0,0,0,0.55))
    brightness(1.07);
}
.artwork-frame::before {
  /* warm halo behind the piece (like wall picture-light spill) */
  content: ""; position: absolute; inset: -8% -6%;
  background: radial-gradient(ellipse at center, rgba(216,195,154,0.18) 0%, transparent 65%);
  z-index: -1; filter: blur(20px);
  pointer-events: none;
}
.artwork-canvas {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: #100d09;
  /* gallery-wrap edge — slim dark sliver simulating the canvas edge */
  box-shadow:
    inset 0 0 0 1px rgba(7,7,5,0.9),
    inset 0 0 60px rgba(0,0,0,0.35),
    0 0 0 1px rgba(216,195,154,0.10);
}
.artwork-canvas img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* picture-light highlight sliding across top edge */
.picture-light {
  position: absolute;
  top: -2%; left: 8%; right: 8%; height: 18%;
  background: linear-gradient(to bottom, rgba(255,235,200,0.15) 0%, transparent 100%);
  filter: blur(8px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.plaque {
  position: absolute;
  left: 50%; bottom: -38px;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.36em;
  text-transform: uppercase; color: rgba(216,195,154,0.7);
  white-space: nowrap;
  display: flex; gap: 14px; align-items: center;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.plaque .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--champagne); }

/* =====================================================================
   Copy card — floats over the room on the right
   ===================================================================== */
.room-panel {
  position: absolute;
  right: 4vw;
  bottom: 8vh;
  z-index: 5;
  max-width: 460px;
  width: min(38vw, 460px);
}
.copy-card {
  position: relative;
  padding: 32px 32px 28px;
  background: linear-gradient(155deg, rgba(20,17,14,0.62) 0%, rgba(7,8,10,0.66) 100%);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid rgba(216,195,154,0.12);
  border-top: 1px solid rgba(216,195,154,0.22);
  border-radius: 4px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  will-change: transform, opacity;
}
.copy-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 40px; height: 1px; background: var(--champagne);
}
.copy-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase;
  color: rgba(216,195,154,0.8); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.copy-eyebrow .num {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--champagne); letter-spacing: 0;
}
.copy-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 1.0;
  color: var(--ivory); margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.copy-body {
  font-family: var(--sans); font-weight: 300;
  font-size: 14.5px; line-height: 1.65;
  color: rgba(239,231,216,0.82);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px;
  padding: 16px 0; margin: 0 0 22px;
  border-top: 1px solid rgba(216,195,154,0.12);
  border-bottom: 1px solid rgba(216,195,154,0.12);
}
.spec-grid > div { display: flex; flex-direction: column; gap: 6px; }
.spec-grid b {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(216,195,154,0.6); font-weight: 500;
}
.spec-grid span {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--ivory); line-height: 1.25;
}

.price-row {
  display: flex; justify-content: space-between; align-items: end;
  gap: 20px;
}
.price-row .price-cell { display: flex; flex-direction: column; min-width: 0; }
.price-row .price-cell b {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(216,195,154,0.6); font-weight: 500;
  margin-bottom: 4px;
}
.price-row .price {
  font-family: var(--serif); font-style: italic; font-size: 26px;
  color: var(--ivory); letter-spacing: -0.01em;
  white-space: nowrap;
}
.cta-row { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.32em;
  text-transform: uppercase;
  background: transparent; color: var(--ivory);
  border: 1px solid rgba(216,195,154,0.35);
  border-radius: 999px;
  cursor: pointer;
  /* Only animate safe non-layout properties — prevents modal glitch */
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover {
  background: rgba(216,195,154,0.10);
  border-color: var(--champagne);
  color: var(--champagne);
}
.btn .arrow {
  /* Fixed width — use translateX instead of width to animate, no layout reflow */
  width: 22px; height: 1px; background: currentColor;
  position: relative; flex-shrink: 0;
  overflow: visible;
}
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 240ms ease;
}
.btn:hover .arrow::after { transform: rotate(45deg) translate(3px, -3px); }
.btn.primary {
  background: linear-gradient(135deg, var(--champagne) 0%, var(--gold-hi) 100%);
  color: var(--ink-100); border-color: transparent;
}
.btn.primary:hover {
  background: linear-gradient(135deg, var(--ivory) 0%, var(--champagne) 100%);
  color: var(--ink-000);
}
.btn.ghost { border-color: rgba(239,231,216,0.18); color: rgba(239,231,216,0.85); }
.text-link {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(216,195,154,0.7);
  text-decoration: none; padding: 12px 6px; white-space: nowrap;
}
.text-link:hover { color: var(--champagne); }
.text-link.custom-size {
  display: block;
  margin-top: 14px;
  padding: 0;
  color: rgba(216,195,154,0.55);
  font-size: 9.5px;
}

/* =====================================================================
   Side index
   ===================================================================== */
.side-index {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
  z-index: 70;
  display: flex; flex-direction: column; gap: 18px; align-items: flex-end;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em;
  text-transform: uppercase;
}
.side-index a {
  display: flex; align-items: center; gap: 12px;
  color: rgba(239,231,216,0.4);
  text-decoration: none;
  transition: color 240ms;
}
.side-index a .tick {
  width: 18px; height: 1px; background: currentColor;
  transition: width 240ms, background 240ms;
}
.side-index a:hover, .side-index a.active { color: var(--champagne); }
.side-index a.active .tick { width: 36px; background: var(--champagne); }

/* =====================================================================
   Transit beat
   ===================================================================== */
.transit {
  position: relative; height: 28vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent, #07080a 40%, #07080a 60%, transparent);
}
.transit .mark {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.5em;
  text-transform: uppercase; color: rgba(216,195,154,0.5);
  display: flex; align-items: center; gap: 18px;
}
.transit .mark .line {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,195,154,0.5), transparent);
}

/* =====================================================================
   Final
   ===================================================================== */
.final {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}
.final-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(216,195,154,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(79,138,130,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(184,148,91,0.12) 0%, transparent 55%),
    linear-gradient(180deg, #0a0908 0%, #0e0c0a 60%, #07080a 100%);
}
.final-vortex {
  position: absolute; inset: -10%;
  background:
    conic-gradient(from 0deg at 50% 50%,
      transparent 0deg, rgba(216,195,154,0.12) 60deg,
      transparent 110deg, rgba(79,138,130,0.08) 220deg,
      transparent 280deg, rgba(184,148,91,0.12) 340deg, transparent 360deg);
  filter: blur(40px);
  animation: rotate 60s linear infinite;
  opacity: 0.6;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.final-content { position: relative; z-index: 2; text-align: center; max-width: 920px; }
.final-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(216,195,154,0.6); margin-bottom: 28px;
}
.final h2 {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 400; line-height: 0.96; color: var(--ivory);
  margin: 0 0 28px; letter-spacing: -0.015em;
}
.final h2 .gold { color: var(--champagne); }
.final p {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6;
  color: rgba(239,231,216,0.75);
  max-width: 600px; margin: 0 auto 44px;
}
.final-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.assurance {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: 900px; margin-left: auto; margin-right: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(216,195,154,0.10);
}
.assurance > div { text-align: left; }
.assurance b {
  display: block;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(216,195,154,0.55); font-weight: 500;
  margin-bottom: 8px;
}
.assurance span {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--ivory); line-height: 1.3; display: block;
}

/* footer */
.footer {
  position: relative;
  padding: 60px 36px 36px;
  border-top: 1px solid rgba(216,195,154,0.08);
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(239,231,216,0.45);
  background: var(--ink-000);
}
.footer .mark {
  font-family: var(--serif); font-style: italic;
  font-size: 28px; letter-spacing: 0.02em; color: var(--ivory); text-transform: none;
}
.footer .mark::first-letter { color: var(--champagne); }
.footer ul { list-style: none; display: flex; gap: 24px; padding: 0; margin: 0; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--champagne); }

/* =====================================================================
   Piece Modal
   ===================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink-000);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

/* Full-screen — fills the entire viewport like a page */
.modal-box {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  background: var(--ink-100);
  overflow: hidden;
}

/* ── Close ── */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(7, 8, 10, 0.6);
  border: 1px solid rgba(184, 148, 91, 0.25);
  color: var(--champagne);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.modal-close:hover {
  background: rgba(184, 148, 91, 0.15);
  border-color: var(--gold);
}

/* ── Left: image panel — fills almost all space up to the room's natural aspect ratio, then stops ── */
/* flex-grow:999 vs info-panel's flex-grow:1 means img-panel eats 999/1000 of the free space
   before it caps, keeping the info panel near its minimum. Once the room hits max-width,
   all remaining space flows to the info panel instead (no dark void). */
.modal-img-panel {
  flex: 999 1 0;
  /* Stop growing once the panel would be wider than the room's ~16:9 natural ratio.
     Beyond this point the room image would start zooming in (object-fit:cover).
     44px accounts for the toggle bar height. */
  max-width: calc((100vh - 44px) * 1.78);
  display: flex;
  flex-direction: column;
  background: var(--ink-000);
  overflow: hidden;
}

/* Scroll wrapper — hides overflow and centres the view area so the room
   and artwork never scale with the window. */
.modal-scroll-wrap {
  flex: 1;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Base view area styles shared by both tabs */
.modal-view-area {
  height: 100%;
  position: relative;
  overflow: hidden;
}
/* Artwork tab — fills the visible panel so object-fit:contain shows the
   full piece at whatever size the window is. No clipping. */
.modal-view-area.artwork-mode {
  flex: 1 1 0;
}
/* In Room tab — fixed to the same vh-based formula as the img-panel max-width.
   Horizontal window resizing never changes the view area; vertical resizing
   scales room + artwork together. Scroll-wrap clips and centres when narrower. */
.modal-view-area.room-mode {
  flex: 0 0 calc((100vh - 44px) * 1.78);
}

/* Clean artwork view */
.modal-artwork {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
  will-change: transform;
  /* transition handled via inline style for zoom-pan */
}

/* Zoom hint overlay */
.modal-zoom-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(184, 148, 91, 0.5);
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-view-area:hover .modal-zoom-hint { opacity: 0; }

.modal-view-area.is-zoomed { cursor: zoom-out; overflow: hidden; }
/* Cancel variantReveal / signedLift fill-forward when zoomed — their
   animation-fill-mode:both locks transform:scale(1) and overrides the
   inline transform:scale(2.5) used for zoom. Clearing the animation
   lets the inline style (and its transition) take over cleanly. */
.modal-view-area.is-zoomed .modal-artwork { animation: none !important; }

/* In-room view */
.modal-room-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor to upper wall area — keeps painting prominent at any window height */
  object-position: center 18%;
}
.modal-room-art {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  /* Width and height are always the same fraction of the vh-based view area width,
     so they stay fixed on horizontal window resize and scale with vertical. */
  width:  calc(var(--art-pct) / 100 * (100vh - 44px) * 1.78);
  height: calc(var(--art-pct) / 100 * (100vh - 44px) * 1.78 / var(--art-aspect));
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.07);
}
.modal-room-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-art-light {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255, 210, 120, 0.2) 0%,
    transparent 65%);
  pointer-events: none;
}
.modal-room-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 35%,
    rgba(7, 8, 10, 0.45) 100%);
  pointer-events: none;
}

/* Artwork / In Room toggle */
.modal-toggle {
  display: flex;
  flex-shrink: 0;
  border-top: 1px solid rgba(184, 148, 91, 0.12);
}
.modal-toggle button {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(184, 148, 91, 0.12);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.35);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.modal-toggle button:last-child { border-right: none; }
.modal-toggle button:hover { color: var(--champagne); }
.modal-toggle button.active {
  color: var(--gold);
  background: rgba(184, 148, 91, 0.07);
}

/* ── Right: info panel — 364px minimum (enough to show all content), grows freely once img-panel caps ── */
/* flex-grow:1 with img-panel's flex-grow:999 means info stays near 364px while the room
   still has room to grow. Once the room hits its max-width, this panel absorbs everything. */
.modal-info {
  flex: 1 0 420px;   /* grow:1 so it absorbs all extra width once img-panel is capped */
  padding: 3.5rem 3rem 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-left: 1px solid rgba(184, 148, 91, 0.12);
  /* Warm amber gradient — matches main site's tone */
  background:
    radial-gradient(ellipse at 80% 0%, rgba(184, 148, 91, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(120, 80, 30, 0.05) 0%, transparent 50%),
    var(--ink-100);
}

.modal-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.modal-num { color: var(--gold); }
.modal-sep { color: rgba(184, 148, 91, 0.4); }
.modal-series { color: rgba(239, 231, 216, 0.4); }

.modal-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.01em;
}

.modal-desc {
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(239, 231, 216, 0.55);
  margin: 0;
}

.modal-rule {
  height: 1px;
  background: rgba(184, 148, 91, 0.12);
  flex-shrink: 0;
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.modal-specs > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.modal-specs b {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.35);
  font-weight: 500;
}
.modal-specs span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ivory);
}

/* ── Size variant selector ── */
.modal-size-selector {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.modal-size-heading {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.4);
}
.modal-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.modal-size-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(239, 231, 216, 0.6);
  background: transparent;
  border: 1px solid rgba(184, 148, 91, 0.25);
  border-radius: 3px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.1s;
}
.modal-size-pill:hover {
  color: rgba(239, 231, 216, 0.9);
  border-color: rgba(184, 148, 91, 0.55);
}
.modal-size-pill:active {
  transform: scale(0.94);
}
.modal-size-pill.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(184, 148, 91, 0.08);
  box-shadow: 0 0 14px rgba(184, 148, 91, 0.18), inset 0 0 0 0.5px rgba(184, 148, 91, 0.15);
}

/* Aspect-ratio silhouette — a tiny rectangle showing the shape of the size */
.modal-size-pill-shape {
  display: inline-block;
  height: 13px;           /* fixed — represents 42 in height for all sizes */
  border: 1.5px solid currentColor;
  border-radius: 1px;
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 0.18s;
}
.modal-size-pill:hover .modal-size-pill-shape,
.modal-size-pill.active .modal-size-pill-shape {
  opacity: 1;
}

/* ── Signed edition toggle ── */
.modal-signed-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  width: 100%;
}
.modal-signed-toggle input[type="checkbox"] {
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.modal-signed-text {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: rgba(239, 231, 216, 0.55);
  line-height: 1.5;
}
.modal-signed-text em {
  font-style: normal;
  color: rgba(184, 148, 91, 0.75);
}
.modal-signed-preview {
  color: rgba(239, 231, 216, 0.4);
}

.modal-purchase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.modal-from {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.35);
}
/* ── Variant transition animations ── */

/* Artwork image: fade + subtle scale-up when variant changes */
@keyframes variantReveal {
  from { opacity: 0; transform: scale(0.982); }
  to   { opacity: 1; transform: scale(1); }
}
/* Applied via key-based remount in React — fires fresh on every variant switch */
.modal-artwork {
  animation: variantReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Room art image: simple fade on variant change */
@keyframes roomImgReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-room-art img {
  animation: roomImgReveal 0.38s ease both;
}

/* Room art container: smooth resize when switching sizes
   Width and height are CSS calc() — transition animates them as px values change.
   box-shadow transition also covers the signed → unsigned gold glow fade. */
.modal-room-art {
  transition:
    width      0.55s cubic-bezier(0.16, 1, 0.3, 1),
    height     0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s  ease;
}

/* Price: slide up + fade when value changes */
@keyframes priceFadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-price {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--champagne);
  letter-spacing: 0.01em;
  line-height: 1;
  animation: priceFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Signed Edition Effects ── */

/* Tight drop-shadow glow around the artwork itself — artwork tab */
/* filter: drop-shadow follows the actual rendered image shape, not the box */
@keyframes signedAuraIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-view-area.is-signed .modal-artwork {
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 12px rgba(216,175,100,0.95))
    drop-shadow(0 0 28px rgba(184,148,91,0.75))
    drop-shadow(0 0 55px rgba(184,148,91,0.40));
}

/* Signed lift — replaces variantReveal when is-signed class is present */
@keyframes signedLift {
  0%   { opacity: 0; transform: scale(0.958) translateY(10px); }
  58%  { opacity: 1; transform: scale(1.006) translateY(-3px); }
  100% { opacity: 1; transform: scale(1)     translateY(0); }
}
.modal-view-area.is-signed .modal-artwork {
  animation: signedLift 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Signed provenance mark — appears below the artwork image */
@keyframes signedMarkReveal {
  from { opacity: 0; transform: translateX(-50%) translateY(7px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.modal-signed-mark {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.52rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--champagne);
  white-space: nowrap;
  pointer-events: none;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(184,148,91,0.60);
  background: rgba(4,4,6,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 0 14px rgba(184,148,91,0.20);
  animation: signedMarkReveal 0.45s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
.modal-signed-mark-star {
  color: var(--champagne);
  opacity: 0.85;
  font-size: 0.55rem;
}
.modal-signed-mark-sep {
  color: rgba(184,148,91,0.4);
  letter-spacing: 0;
}

/* Gold halo behind the painting — room view when signed.
   ::before renders BEHIND child content (the img), so it sits
   between the painting and the room background — exactly "behind the art". */
@keyframes roomSignedGlowIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
/* No ::before needed — box-shadow handles the tight all-direction glow */

/* Gold-tinted tight glow in all directions when signed */
.modal-room-art.is-signed {
  box-shadow:
    0 0 0   4px  rgba(216,175,100,0.50),   /* tight bright rim */
    0 0 20px 8px  rgba(216,175,100,0.70),   /* inner glow */
    0 0 45px 16px rgba(184,148,91,0.50),    /* mid spread */
    0 0 90px 24px rgba(184,148,91,0.25),    /* outer ambient */
    0 16px 48px   rgba(0,0,0,0.45);         /* keep depth shadow */
}

/* Signed mark beneath room artwork */
@keyframes roomMarkReveal {
  from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.modal-room-signed-mark {
  position: absolute;
  bottom: -2.1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 0.46rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--champagne);
  white-space: nowrap;
  pointer-events: none;
  padding: 0.32rem 0.85rem;
  border: 1px solid rgba(184,148,91,0.55);
  background: rgba(4,4,6,0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 10px rgba(184,148,91,0.18);
  animation: roomMarkReveal 0.4s 0.28s ease both;
}

.modal-cta { align-self: stretch; justify-content: center; }

.modal-custom-link {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.35);
  text-decoration: none;
  transition: color 0.3s;
  align-self: flex-start;
  margin-top: auto;
}
.modal-custom-link:hover { color: var(--gold); }

/* ── Print on Demand section ── */
.modal-pod-divider {
  display: block;
  margin: 0.7rem 0 0.35rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.28);
  white-space: nowrap;
}

.modal-pod-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-pod-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.38);
}

/* POD pills — same shape as studio pills but slightly muted by default */
.modal-pod-pill { opacity: 0.68; }
.modal-pod-pill:hover { opacity: 0.88; }
.modal-pod-pill.active { opacity: 1; }

/* POD fulfilment notes — appears inside the purchase block when POD selected */
.modal-pod-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.modal-pod-notes li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(239, 231, 216, 0.48);
  padding-left: 1.1rem;
  position: relative;
}
.modal-pod-notes li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.55;
  font-size: 7px;
  top: 2px;
}

/* ── Studio availability badge ── */
.modal-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(184, 148, 91, 0.18);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.58);
}
.modal-avail::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.65;
}
.modal-avail.avail-last {
  color: rgba(239, 231, 216, 0.78);
  border-color: rgba(184, 148, 91, 0.32);
}
.modal-avail.avail-last::before {
  opacity: 1;
  animation: pulseAvail 1.8s ease-in-out infinite;
}
.modal-avail.avail-order {
  color: rgba(239, 231, 216, 0.35);
  border-color: rgba(184, 148, 91, 0.1);
}
.modal-avail.avail-order::before {
  background: rgba(239, 231, 216, 0.22);
  animation: none;
}
@keyframes pulseAvail {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

/* "· last" tag inside a size pill */
.modal-pill-last {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.8;
  margin-left: 0.2rem;
}

/* Sold-out pill — dimmed + strikethrough */
.modal-size-pill.sold-out {
  opacity: 0.4;
  text-decoration: line-through;
  text-decoration-color: rgba(184, 148, 91, 0.35);
}

/* ── Modal mobile ── */
@media (max-width: 768px) {
  .modal-box {
    flex-direction: column;
    overflow: hidden; /* box itself does not scroll — only .modal-info does */
  }

  .modal-img-panel {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid rgba(184, 148, 91, 0.12);
  }

  .modal-scroll-wrap {
    /* on mobile, restore normal block layout — no centering needed */
    display: block;
    overflow: hidden;
  }

  .modal-view-area {
    flex: 0 0 auto;   /* drop desktop grow/min-width behaviour */
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* On mobile revert to percentage so the fixed desktop px doesn't overflow */
  .modal-room-art {
    width:        var(--mob-w)  !important;
    height:       auto          !important;
    aspect-ratio: var(--mob-ar) !important;
  }

  .modal-info { flex: none; width: 100%; max-width: 100%; }

  /* Tighter padding on the artwork image */
  .modal-artwork { padding: 0.6rem; }

  /* Zoom hint and toggle sit flush below the image */
  .modal-zoom-hint { bottom: 0.5rem; }
  .modal-toggle button { padding: 0.6rem; }

  /* Info scrolls independently — image panel stays fixed above */
  .modal-info {
    padding: 1.4rem 1.2rem 2rem;
    gap: 0.9rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .modal-title { font-size: 1.5rem; }
  .modal-purchase { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .modal-cta { text-align: center; justify-content: center; }
  .modal-custom-link { margin-top: 0; }
}

/* =====================================================================
   Collection Grid
   ===================================================================== */
.collection-section {
  position: relative;
  background: var(--ink-100);
  padding: 14vh 0 10vh;
  overflow: hidden;
}

/* faint warm glow in the upper background */
.collection-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,148,91,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Header ── */
.cg-header {
  text-align: center;
  padding: 0 6vw 8vh;
  max-width: 800px;
  margin: 0 auto;
}

.cg-header-rule {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.cg-header-rule span:first-child,
.cg-header-rule span:last-child {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cg-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1.08;
  color: var(--ivory);
  margin: 0 0 1.8rem;
  letter-spacing: -0.01em;
}
.cg-headline em {
  font-style: italic;
  color: var(--champagne);
}

.cg-subhead {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(239,231,216,0.5);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.cg-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239,231,216,0.4);
}
.cg-stats b { color: var(--champagne); font-weight: 500; }
.cg-stat-sep {
  width: 1px;
  height: 14px;
  background: rgba(184,148,91,0.3);
}

/* ── Grid ── */
.cg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 3px;
}

/* ── Card ── */
.cg-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-200);
}

/* Room image background */
.cg-room-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.cg-card:hover .cg-room-img {
  transform: scale(1.04);
}

/* Artwork on the wall — CSS transform centres it, never touched by GSAP */
.cg-art-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.9s ease;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.55),
    0 3px 10px rgba(0,0,0,0.4),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
}
.cg-card:hover .cg-art-wrap {
  transform: translate(-50%, -53%);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.65),
    0 6px 16px rgba(0,0,0,0.5),
    inset 0 0 0 1.5px rgba(255,255,255,0.10);
}
.cg-art-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Warm picture-light beam above the painting */
.cg-picture-light {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 300%;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255,210,120,0.22) 0%,
    rgba(255,190,80,0.07) 35%,
    transparent 70%);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.cg-card:hover .cg-picture-light {
  opacity: 1.4; /* intentionally > 1 so transition reads as "brighter" */
}

/* Vignette gradient — makes text at bottom always legible */
.cg-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    to bottom,
    rgba(7,8,10,0.0) 25%,
    rgba(7,8,10,0.3) 55%,
    rgba(7,8,10,0.82) 80%,
    rgba(7,8,10,0.95) 100%
  );
  pointer-events: none;
}

/* Tag chip */
.cg-tag {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 6;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,148,91,0.45);
  padding: 0.28rem 0.7rem;
  backdrop-filter: blur(6px);
  background: rgba(7,8,10,0.35);
  transition: background 0.3s, border-color 0.3s;
}
.cg-card:hover .cg-tag {
  background: rgba(184,148,91,0.12);
  border-color: var(--gold);
}

/* Info overlay */
.cg-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 1.2rem 1.8rem 1.6rem;
}

.cg-info-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}
.cg-num {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.cg-dot {
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(184,148,91,0.5);
  flex-shrink: 0;
}
.cg-series {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239,231,216,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cg-card-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.15;
  margin: 0 0 0.9rem;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.cg-card:hover .cg-card-title { color: #fff; }

.cg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cg-size-price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cg-size {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: rgba(239,231,216,0.4);
  text-transform: uppercase;
}
.cg-price {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--champagne);
  letter-spacing: 0.01em;
}

.cg-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,148,91,0.35);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.cg-view-btn:hover,
.cg-card:hover .cg-view-btn {
  color: var(--gold);
  border-color: var(--gold);
  gap: 0.75rem;
}
.cg-arrow { transition: transform 0.3s; }
.cg-card:hover .cg-arrow { transform: translateX(4px); }

/* Gold shimmer border that traces the card on hover */
.cg-hover-border {
  position: absolute;
  inset: 0;
  z-index: 7;
  border: 1px solid transparent;
  transition: border-color 0.5s ease;
  pointer-events: none;
}
.cg-card:hover .cg-hover-border {
  border-color: rgba(184,148,91,0.3);
}

/* ── Collection Mobile ── */
@media (max-width: 900px) {
  .cg-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 0; }
  .cg-card { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .cg-grid { grid-template-columns: 1fr; gap: 2px; }
  .cg-card { aspect-ratio: 3 / 2; }
}
@media (max-width: 900px) {
  .cg-headline { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .cg-stats { flex-wrap: wrap; gap: 1rem; }
  .cg-stat-sep { display: none; }
  .cg-info { padding: 1rem 1.2rem 1.3rem; }
  .cg-card-title { font-size: 1.2rem; }
}

/* =====================================================================
   Hamburger + Mobile Nav Overlay
   ===================================================================== */

/* Right-side wrapper in nav — holds cart + hamburger */
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Hamburger — hidden on desktop, shown on mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px 2px;
  cursor: pointer;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(239,231,216,0.75);
  border-radius: 1px;
  transition: background 0.2s;
}
.nav-hamburger:hover span { background: var(--champagne); }

/* Full-screen mobile nav overlay */
.mob-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7,8,10,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
}

/* Top row — mark + close */
.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 20px;
  padding-top: calc(30px + 18px); /* announcement bar + breathing room */
  border-bottom: 1px solid rgba(184,148,91,0.1);
}
.mob-mark {
  font-size: 18px;
  letter-spacing: 0.12em;
}
.mob-close {
  background: none;
  border: 1px solid rgba(239,231,216,0.14);
  color: rgba(239,231,216,0.65);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.mob-close:hover { border-color: var(--gold); color: var(--gold); }

/* Nav links — large, centred, serif */
.mob-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 2rem 1.5rem;
}
.mob-link {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(239,231,216,0.7);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  text-align: center;
  line-height: 1;
}
.mob-link:hover,
.mob-link:focus { color: var(--ivory); outline: none; }
.mob-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Footer strip */
.mob-footer {
  padding: 1.4rem 1.5rem;
  border-top: 1px solid rgba(184,148,91,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239,231,216,0.28);
  flex-wrap: wrap;
}

/* =====================================================================
   Mobile
   ===================================================================== */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav ul { display: none; }
  .nav .cart { font-size: 10px; padding: 7px 12px; }
  .nav-hamburger { display: flex; }
  .hero-meta { gap: 16px; }
  .side-index { display: none; }

  .room { min-height: auto; }
  .room-sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding-bottom: 0;
  }
  .room-stage {
    position: relative;
    height: 72vh;
    inset: auto;
  }

  /* artwork: keep wall-level placement, widen for visibility on small screens */
  .artwork-wrap {
    left: 50% !important;
    top: 38% !important;
    width: 78vw !important;
    max-width: 78vw;
  }

  .chapter { top: 84px; left: 20px; }
  .location { display: none; }

  /* copy card stacks below the stage */
  .room-panel {
    position: relative;
    right: auto; bottom: auto;
    width: 100%; max-width: 100%;
    padding: 24px 20px 40px;
  }
  .copy-title { font-size: 36px; }

  /* spec grid: 2 columns so Construction text has room */
  .spec-grid { grid-template-columns: 1fr 1fr; }

  /* price row: stack price above button so neither gets clipped */
  .price-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-row { width: 100%; }
  .btn.primary { width: 100%; justify-content: center; }

  /* final CTAs full-width */
  .final-ctas { flex-direction: column; align-items: stretch; max-width: 420px; margin-left: auto; margin-right: auto; }
  .final-ctas .btn { justify-content: center; }

  .assurance { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer { flex-direction: column; align-items: flex-start; }

  /* Hide announcement bar on mobile — hero already carries the messaging */
  .announcement-bar { display: none; }
  .nav { top: 0; }
  .mob-header { padding-top: 20px; }
}

/* =====================================================================
   Trade Program Modal
   ===================================================================== */

/* Overlay — centred panel, blurred backdrop */
.modal-overlay.trade-overlay {
  align-items: center;
  justify-content: center;
  background: rgba(4,4,6,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Panel */
.trade-modal {
  position: relative;
  background: var(--ink-100);
  border: 1px solid rgba(184,148,91,0.14);
  border-radius: 2px;
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 56px 52px 52px;
  text-align: center;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.72),
    0 0 0 1px rgba(255,255,255,0.025),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Eyebrow — gold mono text with flanking lines */
.trade-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.trade-line {
  display: inline-block;
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.3;
}

/* Headline */
.trade-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  color: var(--ivory);
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.trade-headline em {
  font-style: italic;
  color: var(--gold-hi);
}

/* Body copy */
.trade-body {
  font-size: 0.88rem;
  line-height: 1.78;
  color: rgba(239,231,216,0.52);
  max-width: 44ch;
  margin: 0 auto 1.8rem;
}

/* Divider */
.trade-divider {
  height: 1px;
  background: rgba(184,148,91,0.12);
  margin: 0 0 1.8rem;
}

/* Benefits list */
.trade-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.trade-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.trade-star {
  color: var(--gold);
  opacity: 0.65;
  font-size: 0.6rem;
  flex-shrink: 0;
  margin-top: 0.3em;
  line-height: 1;
}
.trade-benefits li div {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(239,231,216,0.58);
}
.trade-benefits li div b {
  color: var(--ivory);
  font-weight: 500;
}

/* CTA block */
.trade-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.trade-cta {
  width: 100%;
  max-width: 300px;
  justify-content: center;
}
.trade-note {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239,231,216,0.26);
  margin: 0;
}

/* Nav Trade button — inherits nav appearance exactly */
.nav-trade-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239,231,216,0.78);
  transition: color 200ms;
}
.nav-trade-btn:hover { color: var(--champagne); }

/* Trade modal mobile */
@media (max-width: 560px) {
  .trade-modal { padding: 44px 24px 40px; }
  .trade-headline { font-size: 1.8rem; }
  .trade-eyebrow { font-size: 8px; }
}

/* =====================================================================
   Studio Modal
   ===================================================================== */
.studio-modal {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  background: var(--ink-000);
}

/* ── Portrait panel (left) ── */
.studio-portrait {
  flex: 0 0 38%;
  position: relative;
  overflow: hidden;
}
.studio-portrait-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.28) saturate(0.45);
  transform: scale(1.05);
}
.studio-portrait-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7,8,10,0.0) 50%, rgba(7,8,10,1.0) 100%),
    linear-gradient(to top,   rgba(7,8,10,0.96) 0%, rgba(7,8,10,0.0) 55%),
    linear-gradient(to bottom,rgba(7,8,10,0.6)  0%, rgba(7,8,10,0.0) 30%);
  z-index: 1;
}
.studio-portrait-caption {
  position: absolute;
  bottom: 2.8rem;
  left: 2.5rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.studio-name {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.01em;
}
.studio-role {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.studio-loc {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239,231,216,0.28);
}

/* ── Content panel (right) ── */
.studio-content {
  flex: 1;
  overflow-y: auto;
  padding: 56px 52px 52px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,148,91,0.2) transparent;
}
.studio-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.studio-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  line-height: 1.18;
  color: var(--ivory);
  letter-spacing: -0.01em;
  margin: 0 0 2.4rem;
}
.studio-headline em {
  font-style: italic;
  color: var(--gold-hi);
}
.studio-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.studio-section h3 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin: 0 0 0.65rem;
  font-weight: 400;
}
.studio-section p {
  font-size: 0.875rem;
  line-height: 1.84;
  color: rgba(239,231,216,0.52);
  margin: 0;
}
.studio-cta-row {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(184,148,91,0.1);
}

/* Close button always visible over portrait */
.studio-close { z-index: 10; }

/* ── Studio mobile ── */
@media (max-width: 768px) {
  .studio-modal { flex-direction: column; }
  .studio-portrait {
    flex: 0 0 200px;
    min-height: 200px;
  }
  .studio-portrait-vignette {
    background:
      linear-gradient(to right, transparent, transparent),
      linear-gradient(to top, rgba(7,8,10,0.98) 0%, rgba(7,8,10,0.0) 65%),
      linear-gradient(to bottom, rgba(7,8,10,0.5) 0%, transparent 30%);
  }
  .studio-portrait-caption { bottom: 1.4rem; left: 1.5rem; }
  .studio-name { font-size: 1.5rem; }
  .studio-content { padding: 32px 24px 40px; }
  .studio-headline { font-size: 1.65rem; margin-bottom: 1.8rem; }
  .studio-body { gap: 1.6rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 200ms !important;
  }
  .final-vortex { animation: none !important; }
}
