/* ============================================================
   MEDEEA ART — dark & gold luxe gallery
   ============================================================ */
:root {
  --bg: #211a0f;
  --bg-2: #271f13;
  --panel: #2e2416;
  --panel-2: #372b1a;
  --ink: #f6eedd;
  --ink-soft: #e0d3bd;
  --muted: #b3a583;
  --gold: #e2be66;
  --gold-bright: #f2d488;
  --gold-deep: #a67c2e;
  --rose: #cf9a8f;
  --line: rgba(217, 180, 91, 0.16);
  --line-soft: rgba(244, 236, 221, 0.09);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --logo: "Marcellus", "Cormorant Garamond", serif;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; -webkit-text-size-adjust: 100%; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: #1a1206; }

/* ---------- Shared type ---------- */
.section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.section-intro {
  max-width: 60ch;
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 300;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark { display: flex; align-items: center; gap: 14px; }
.pl-m {
  font-family: var(--logo); font-size: 3.4rem; color: var(--gold);
  letter-spacing: 0.05em;
}
.pl-line { width: 0; height: 1px; background: var(--gold); animation: plgrow 1.4s var(--ease) forwards; }
@keyframes plgrow { to { width: 90px; } }
.preloader-word {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.55em;
  color: var(--muted); text-transform: uppercase;
  opacity: 0; animation: plfade 1.2s ease 0.5s forwards;
}
@keyframes plfade { to { opacity: 1; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 46px);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold);
  font-family: var(--logo); font-size: 1.25rem; color: var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(242,212,136,0.18), transparent 70%);
}
.brand-name {
  font-family: var(--logo); font-size: 1.15rem; letter-spacing: 0.28em;
  color: var(--ink);
}
.brand-thin { color: var(--gold); margin-left: 0.28em; }

.nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.12em; color: var(--ink-soft);
  text-transform: uppercase; position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; letter-spacing: 0.12em; }
.lang-btn { color: var(--muted); transition: color 0.3s; padding: 2px; }
.lang-btn.is-active { color: var(--gold); }
.lang-btn:hover { color: var(--ink); }
.lang-sep { color: var(--line); }

.btn-enquire {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 100px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-enquire:hover { background: var(--gold); color: #1a1206; box-shadow: 0 8px 30px -8px rgba(217,180,91,0.5); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }

/* ---------- Cinematic scrub sections ---------- */
.cinematic { position: relative; height: 520vh; background: var(--bg); }
.cinematic-reveal { height: 420vh; }
.sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; display: grid; place-items: center; background: #17120a;
}
.frame-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 40%, transparent 40%, rgba(6,5,4,0.55) 100%);
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 46%, rgba(0,0,0,0.66) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 24%, transparent 66%, rgba(0,0,0,0.78) 100%);
}
.vignette-soft {
  background:
    radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(0,0,0,0.5) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.55) 100%);
}

/* ---------- Hero as a living painting in a gilded frame ---------- */
.reveal-line { will-change: opacity, transform; }
/* Subtle gilt frame around the fullscreen painting */
.hero-border {
  position: absolute; inset: clamp(12px, 1.8vw, 30px); z-index: 11; pointer-events: none;
  border: 1px solid rgba(217,180,91,0.55); border-radius: 2px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4), inset 0 0 90px rgba(0,0,0,0.35);
}
.hero-border::after {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(217,180,91,0.18); border-radius: 1px;
}

/* Fullscreen hero overlay copy */
.hero-overlay { position: absolute; inset: 0; z-index: 12; text-align: center; }
.hero-eyebrow {
  position: absolute; left: 50%; top: 26%; transform: translateX(-50%);
  font-size: clamp(0.62rem, 0.9vw, 0.76rem); letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
.hero-title {
  position: absolute; left: 50%; top: 49%; transform: translate(-50%, -50%);
  font-family: var(--logo); font-weight: 400; white-space: nowrap;
  font-size: clamp(2.4rem, 8.2vw, 6.6rem); letter-spacing: 0.14em;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(242,212,136,0.28), 0 2px 30px rgba(0,0,0,0.5);
}
.hero-sub {
  position: absolute; left: 50%; top: 62%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem); color: var(--gold-bright);
  letter-spacing: 0.04em; white-space: nowrap;
}
.hero-line {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 92vw;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 6.5vw, 5.2rem); line-height: 1.05; letter-spacing: 0.01em;
  color: var(--ink); text-shadow: 0 4px 40px rgba(0,0,0,0.6); opacity: 0;
}

/* ---------- Hero — un-paint framed portrait canvas ---------- */
#hero .sticky {
  background:
    radial-gradient(120% 80% at 50% 6%, rgba(226,190,102,0.10), transparent 58%),
    var(--bg);
}
#hero .canvas-frame {
  position: relative; z-index: 5;
  width: min(88vw, 58vh); aspect-ratio: 3 / 4; height: auto;
  padding: 14px; border-radius: 3px;
  background: linear-gradient(160deg, #3a2c17, #23190d);
  box-shadow:
    0 40px 120px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(226,190,102,0.35),
    inset 0 0 0 2px rgba(226,190,102,0.22);
}
#hero .canvas-frame::after {
  content: ""; position: absolute; inset: 6px; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(226,190,102,0.28); pointer-events: none;
}
#hero .frame-canvas {
  position: static; inset: auto; width: 100%; height: 100%;
  display: block; border-radius: 1px; background: var(--bg);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 11; pointer-events: none; opacity: 0;
  background: radial-gradient(58% 42% at 50% 50%,
    rgba(20,14,7,0.72) 0%, rgba(20,14,7,0.5) 42%, rgba(20,14,7,0.0) 72%);
  will-change: opacity;
}
/* Cluster the copy in the scrim band; strengthen shadows for legibility over
   both the dark painting and the final light canvas. */
#hero .hero-eyebrow { top: 39%; text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 24px rgba(0,0,0,0.85); }
#hero .hero-title {
  top: 49%; color: #fbf5e8; font-size: clamp(2.4rem, 7vw, 5.2rem);
  text-shadow: 0 2px 4px rgba(0,0,0,0.7), 0 6px 40px rgba(0,0,0,0.9), 0 0 90px rgba(0,0,0,0.55);
}
#hero .hero-sub { top: 58%; color: var(--gold-bright); }
#hero .hero-line {
  width: min(88vw, 24ch); max-width: 88vw; white-space: normal;
  font-weight: 600; color: #fbf5e8; letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.16;
  text-shadow: 0 2px 4px rgba(0,0,0,0.75), 0 4px 40px rgba(0,0,0,0.95), 0 0 90px rgba(0,0,0,0.65);
}

.hero-scrollhint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 12; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft);
  transition: opacity 0.5s;
}
.scroll-arrow { animation: bob 1.8s ease-in-out infinite; font-size: 1rem; color: var(--gold); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.08); z-index: 12; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); box-shadow: 0 0 14px var(--gold); }

/* Reveal section copy */
.reveal-overlay { position: relative; z-index: 10; text-align: center; padding: 0 24px; }
.reveal-copy {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 90vw;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.8rem, 5.5vw, 4.4rem); color: var(--ink);
  text-shadow: 0 4px 40px rgba(0,0,0,0.7); opacity: 0;
}

/* ---------- Manifesto ---------- */
.manifesto {
  max-width: 960px; margin: 0 auto; padding: clamp(90px, 14vw, 180px) clamp(20px, 5vw, 40px);
  text-align: center;
}
.manifesto-head {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem); line-height: 1.12; color: var(--ink);
  margin-bottom: 1.6rem;
}
.manifesto-body { color: var(--ink-soft); font-weight: 300; font-size: clamp(1.02rem, 1.5vw, 1.22rem); max-width: 64ch; margin: 0 auto; }

/* ---------- Collections / galleries ---------- */
.collection { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 46px); }
.collection-head { margin-bottom: clamp(40px, 6vw, 70px); max-width: 720px; }
.collection-dark { background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0.4) 80%, transparent); max-width: none; }
.collection-dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.collection-light { background: linear-gradient(180deg, transparent, rgba(244,236,221,0.03), transparent); max-width: none; }
.collection-light > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.gallery { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.gallery-feature { grid-template-columns: repeat(3, 1fr); }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }

/* Art card */
.art-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.art-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.art-media { position: relative; overflow: hidden; background: #1c160d; aspect-ratio: 4 / 5; cursor: zoom-in; }
.art-media-sq { aspect-ratio: 1 / 1; }
.art-card.is-tall .art-media { aspect-ratio: 3 / 4; }
.art-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.art-card:hover .art-media img { transform: scale(1.05); }
.art-media img.img-fallback {
  object-fit: cover;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(242,212,136,0.22), transparent 70%),
    linear-gradient(160deg, #2e2416, #17110a);
}
figcaption { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.art-meta h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.art-spec { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 3px; }
.art-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.art-price { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-bright); }
.art-enquire { padding: 7px 16px; font-size: 0.68rem; }

/* ---------- Collections index ---------- */
.collections-index { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 46px); }
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.index-card {
  position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
}
.index-card:nth-child(4), .index-card:nth-child(5) { aspect-ratio: 8 / 3; grid-column: span 1; }
.index-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); filter: brightness(0.7); }
.index-card:hover img { transform: scale(1.06); filter: brightness(0.82); }
.index-body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(180deg, transparent 30%, rgba(6,5,4,0.9));
}
.index-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--ink); }
.index-body p { font-size: 0.86rem; color: var(--ink-soft); margin-top: 4px; font-weight: 300; }

/* ---------- Feature split (Home & New Beginnings) ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-media { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line-soft); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { display: flex; flex-direction: column; }
.split-cards { margin-top: 30px; }
.art-card-row { flex-direction: row; max-width: 420px; }
.art-card-row .art-media { width: 42%; aspect-ratio: auto; }
.art-card-row figcaption { flex: 1; }

/* ---------- Artists note ---------- */
.artists-note { margin-top: 40px; text-align: center; color: var(--ink-soft); font-weight: 300; }
.artists-note a { color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 2px; margin-left: 6px; }

/* ---------- About ---------- */
.about { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 140px) clamp(20px, 5vw, 46px); }
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-body { color: var(--ink-soft); font-weight: 300; font-size: clamp(1.02rem, 1.5vw, 1.2rem); margin-top: 1.4rem; }
.stats { display: flex; gap: clamp(24px, 4vw, 54px); margin-top: 3rem; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold-bright); line-height: 1; }
.stat-label { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.about-portrait { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-sign {
  position: absolute; bottom: 16px; left: 16px; font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--ink); text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5)); }
.contact-inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 140px) clamp(20px, 5vw, 46px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px);
}
.contact-methods { list-style: none; margin-top: 2.4rem; display: flex; flex-direction: column; gap: 16px; }
.contact-methods li { display: flex; gap: 18px; align-items: baseline; border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; }
.cm-label { min-width: 92px; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.contact-methods a:hover { color: var(--gold-bright); }

.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 3vw, 38px); align-self: start; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 5px;
  padding: 12px 14px; color: var(--ink); font-family: var(--sans); font-size: 0.95rem;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }

.btn-primary {
  margin-top: 6px; width: 100%; padding: 14px 24px; border-radius: 100px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1206; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(217,180,91,0.6); }
.form-note { margin-top: 14px; color: var(--gold-bright); font-size: 0.9rem; text-align: center; }
.form-note.form-note-error { color: var(--rose); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 70px) clamp(20px, 5vw, 46px) 34px; max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line-soft); }
.footer-links { display: flex; gap: clamp(16px, 2.4vw, 32px); flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 0.8rem; }

/* ---------- Modal / Lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: clamp(14px, 4vw, 24px); }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,3,2,0.82); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; z-index: 2; width: min(520px, 100%);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(28px, 4vw, 42px); box-shadow: var(--shadow);
  animation: modalIn 0.5s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.modal-title { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; color: var(--ink); margin-bottom: 8px; }
.modal-sub { color: var(--ink-soft); font-weight: 300; font-size: 0.95rem; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; font-size: 1.7rem; line-height: 1; color: var(--ink); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-soft);
  transition: color 0.3s, background 0.3s, transform 0.3s;
}
.modal-close:hover { color: var(--gold-bright); background: rgba(255,255,255,0.12); transform: scale(1.06); }

.modal { z-index: 200; }
.lightbox {
  position: fixed; inset: 0; z-index: 210; background: rgba(4,3,2,0.96);
  display: grid; place-items: center; padding: clamp(14px, 4vw, 48px);
  touch-action: none;
}
.lb-stage {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  gap: 14px; max-width: 100%; max-height: 100%;
}
.lightbox img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: 6px; box-shadow: var(--shadow); animation: modalIn 0.5s var(--ease);
  will-change: transform;
}
.lb-caption {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--ink-soft); text-align: center;
}
.lightbox .modal-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 16px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2rem; line-height: 1; color: var(--ink);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-soft);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.12); color: var(--gold-bright); }
.lb-prev { left: clamp(10px, 3vw, 40px); }
.lb-next { right: clamp(10px, 3vw, 40px); }
.lb-hint {
  position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); pointer-events: none;
}
@media (max-width: 640px) {
  .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; top: auto; bottom: 74px; transform: none; }
  .lb-prev { left: 24px; } .lb-next { right: 24px; }
  .lb-caption { font-size: 0.95rem; }
  .lightbox img { max-height: 72vh; }
}

/* Hide nav chrome while a modal / lightbox is open so it can't bleed over the overlay */
body.overlay-open .nav { opacity: 0; pointer-events: none; transition: opacity 0.3s; }

/* ---------- Reveal on scroll ---------- */
.reveal:not(.reveal-line) { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,9,8,0.97); backdrop-filter: blur(14px); padding: 24px 30px; gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .gallery-feature, .gallery-3, .gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .index-card:nth-child(4), .index-card:nth-child(5) { aspect-ratio: 4 / 3; }
  .feature-split { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-portrait { max-width: 460px; }
  .contact-inner { grid-template-columns: 1fr; }
}
/* Tablet — keep the framed canvas generous but height-safe */
@media (max-width: 820px) {
  #hero .canvas-frame { width: min(74vw, 60vh); }
}

@media (max-width: 600px) {
  .nav { padding: 16px 18px; }
  .cinematic { height: 460vh; }
  #hero .canvas-frame { width: min(90vw, 66vh); padding: 10px; }
  #hero .hero-title { font-size: clamp(2.1rem, 10vw, 3.4rem); }
  #hero .hero-line { width: min(90vw, 22ch); font-size: clamp(1.35rem, 6.4vw, 2rem); }
  .hero-scrim {
    background: radial-gradient(72% 40% at 50% 50%,
      rgba(20,14,7,0.78) 0%, rgba(20,14,7,0.55) 46%, rgba(20,14,7,0.0) 78%);
  }
  .gallery-feature, .gallery-3, .gallery-4, .gallery-2 { grid-template-columns: 1fr; }
  .index-grid { grid-template-columns: 1fr; }
  .index-card, .index-card:nth-child(4), .index-card:nth-child(5) { aspect-ratio: 3 / 2; }
  .field-row { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; gap: 24px; }
  .hero-eyebrow { font-size: 0.58rem; letter-spacing: 0.3em; }
  .art-card-row { flex-direction: column; max-width: none; }
  .art-card-row .art-media { width: 100%; aspect-ratio: 4/5; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
