@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --bg: #090909;
  --bg-elevated: #111111;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.092);
  --text: #f4f0e8;
  --muted: #b9b1a5;
  --dim: #7f786f;
  --line: rgba(244, 240, 232, 0.15);
  --line-strong: rgba(244, 240, 232, 0.28);
  --gold: #c9a86a;
  --gold-bright: #e2c47f;
  --black: #050505;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 168, 106, 0.13), transparent 27rem),
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.05), transparent 26rem),
    linear-gradient(180deg, #0d0c0b 0%, #090909 54%, #050505 100%);
  color: var(--text);
  min-height: 100vh;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }

.site-frame {
  position: fixed;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(244, 240, 232, 0.1);
  z-index: 100;
}

.topbar {
  width: min(var(--max), calc(100% - 48px));
  margin: 24px auto 0;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 9, 9, 0.74);
  backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 18px;
  z-index: 80;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  flex: 0 0 auto;
}

.brand-text {
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.main-nav a,
.nav-random {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  padding: 9px 12px;
  cursor: pointer;
  transition: 180ms ease;
  font-size: 0.92rem;
}

.main-nav a:hover,
.nav-random:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.nav-random { color: var(--gold-bright); }

.menu-button {
  display: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 999px;
}

.kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 800;
}

h1, h2, h3 { margin-top: 0; }

.home-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.home-entrance {
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.66fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  padding: 38px 0 34px;
}

.home-copy h1,
.page-intro h1,
.editorial-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.home-copy h1 {
  font-size: clamp(3.15rem, 7.4vw, 7.8rem);
  max-width: 920px;
  margin: 0 0 22px;
}

.home-statement {
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 760px;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 180ms ease;
  font-weight: 750;
}

.home-actions .button {
  min-height: 72px;
  border-radius: 18px;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.button span {
  font-weight: 500;
  color: var(--dim);
  font-size: 0.84rem;
}

.button-primary {
  background: var(--text);
  color: var(--black);
  border-color: var(--text);
}

.button-primary span { color: rgba(0,0,0,0.62); }

.button-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.button-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-muted:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.home-feature {
  min-height: 500px;
  height: min(62vh, 620px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  position: relative;
}

.home-feature-card {
  height: 100%;
  cursor: pointer;
  position: relative;
}

.home-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05) brightness(0.9);
}

.home-feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9), rgba(0,0,0,0.04));
}

.home-feature-copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 9px;
}

.home-feature-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.home-teasers {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr;
  gap: 14px;
  padding: 0 0 22px;
}

.teaser-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.teaser-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.teaser-card p:not(.kicker) {
  color: var(--muted);
  line-height: 1.6;
}

.image-teaser {
  padding: 0;
  cursor: pointer;
}

.image-teaser img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  filter: brightness(0.78);
  transition: transform 350ms ease;
}

.image-teaser:hover img { transform: scale(1.045); }

.teaser-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 18px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.86), transparent);
}

.teaser-overlay h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.teaser-overlay p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.artist-home-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  max-width: 860px;
  margin: 0 0 46px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.038);
  padding: 16px;
}

.artist-home-note h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.artist-home-note p:not(.kicker) {
  color: var(--muted);
  line-height: 1.62;
  margin-top: 0;
}

.artist-home-image {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 180px;
  background: var(--panel);
}

.artist-home-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.page-shell,
.content-page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 94px) 0;
}

.page-intro,
.editorial-hero {
  max-width: 980px;
  margin-bottom: 34px;
}

.page-intro h1,
.editorial-hero h1 {
  font-size: clamp(3rem, 6.5vw, 7rem);
  margin: 0 0 18px;
}

.page-intro p:not(.kicker),
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  line-height: 1.68;
}

.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 360px));
  gap: 16px;
  justify-content: center;
}

.exhibition-card {
  min-height: 285px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  box-shadow: 0 12px 46px rgba(0,0,0,0.28);
  isolation: isolate;
}


.exhibition-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(0.88) brightness(0.7);
  transition: transform 450ms ease, filter 450ms ease;
  z-index: -2;
}

.exhibition-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.84), rgba(0,0,0,0.09) 72%),
    radial-gradient(circle at top right, rgba(201,168,106,0.18), transparent 45%);
  z-index: -1;
}

.exhibition-card:hover img {
  transform: scale(1.07);
  filter: saturate(1) brightness(0.84);
}

.exhibition-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
}

.exhibition-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 2.9vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 9px;
}

.exhibition-card p {
  color: var(--muted);
  margin: 0;
}

.collection-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 16px;
  margin-bottom: 20px;
}

.collection-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.34fr) minmax(160px, 0.22fr);
  gap: 12px;
  margin-bottom: 12px;
}

.collection-tools input,
.collection-tools select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 13px 16px;
  outline: none;
}

.collection-tools select option {
  background: #111;
  color: var(--text);
}

.collection-tools input:focus,
.collection-tools select:focus { border-color: var(--gold); }

.collection-stats {
  color: var(--dim);
  font-size: 0.92rem;
}

.art-wall {
  columns: 5 220px;
  column-gap: 16px;
}

.art-tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(244,240,232,0.11);
  background: var(--panel);
  cursor: pointer;
  position: relative;
  box-shadow: 0 12px 38px rgba(0,0,0,0.24);
}

.art-tile img {
  width: 100%;
  transition: transform 380ms ease, filter 380ms ease;
  filter: saturate(0.95);
}

.art-tile:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.art-tile-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 54px 14px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.86), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: 240ms ease;
}

.art-tile:hover .art-tile-overlay {
  opacity: 1;
  transform: translateY(0);
}

.art-tile h3 {
  font-size: 0.98rem;
  line-height: 1.2;
  margin: 0 0 4px;
}

.art-tile p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0;
}

/* Lightbox: redesigned so the whole image always fits inside the visible area. */
.artwork-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.artwork-modal.open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  width: min(1560px, calc(100vw - 32px));
  height: min(900px, calc(100vh - 32px));
  margin: 16px auto;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: #0b0b0b;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
}

.modal-image-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #020202;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-image-shell img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 72px);
  object-fit: contain;
}

.modal-info {
  padding: clamp(22px, 2.5vw, 34px);
  overflow: auto;
  border-left: 1px solid var(--line);
}

.modal-info h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.1vw, 3.7rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
}

.modal-caption {
  color: var(--gold-bright);
  font-size: 0.98rem;
  line-height: 1.52;
  margin-bottom: 16px;
}

.modal-info p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.72);
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 68px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.42);
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
}

.modal-prev { left: 14px; }
.modal-next { right: 14px; }

.story-details {
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.story-details h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 850;
}

.story-details p {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.artist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.artist-copy {
  margin-bottom: 0;
}

.artist-main-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.artist-main-photo img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.text-grid,
.model-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  margin-top: 30px;
}

.text-grid article,
.profile-card,
.content-callout,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: clamp(24px, 4vw, 42px);
}

.text-grid h2,
.profile-card h2,
.content-callout h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.text-grid p,
.profile-card p,
.content-callout p {
  color: var(--muted);
  line-height: 1.75;
}

.quote-panel {
  display: grid;
  place-items: center;
}

.quote-panel p {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 3.3vw, 3.5rem);
  line-height: 1;
  color: var(--gold-bright);
}

.model-showcase { 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
}

.model-profile {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.model-photo {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  background: rgba(0,0,0,0.22);
}

.model-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.profile-meta {
  color: var(--gold-bright) !important;
  font-weight: 800;
}

.content-callout { margin-top: 24px; }

.portrait-grid {
  columns: 4 220px;
  column-gap: 16px;
  margin-top: 18px;
}

.portrait-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
}

.portrait-card img {
  width: 100%;
}

.portrait-card div {
  padding: 12px;
}

.portrait-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.portrait-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  color: var(--text);
  text-decoration: none;
}

.footer-title {
  color: var(--text);
  font-weight: 850;
  margin-bottom: 6px;
}

.skeleton-card {
  height: 100%;
  background: linear-gradient(110deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
}

@keyframes shimmer { to { background-position: -200% 0; } }

.loading,
.empty-state {
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .modal-card {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal-image-shell {
    min-height: 58vh;
    max-height: 68vh;
  }

  .modal-image-shell img {
    max-height: 64vh;
  }

  .modal-info {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .home-entrance,
  .artist-layout,
  .text-grid,
  .model-showcase {
    grid-template-columns: 1fr;
  }

  .home-entrance {
    min-height: auto;
    padding-top: 56px;
  }

  .home-feature { height: 560px; }

  .home-teasers {
    grid-template-columns: 1fr;
  }

  .artist-home-note {
    margin-left: 0;
  }

  .collection-tools { grid-template-columns: 1fr; }}

@media (max-width: 720px) {
  .site-frame { inset: 8px; }

  .topbar {
    width: calc(100% - 24px);
    border-radius: 22px;
    align-items: flex-start;
  }

  .brand-text { max-width: 190px; }

  .menu-button { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    border: 1px solid var(--line);
    background: rgba(9,9,9,0.94);
    border-radius: 22px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open { display: flex; }

  .main-nav a,
  .nav-random { text-align: left; }

  .home-shell,
  .page-shell,
  .content-page,
  .footer {
    width: calc(100% - 28px);
  }

  .home-copy h1,
  .page-intro h1,
  .editorial-hero h1 {
    font-size: clamp(3rem, 18vw, 5.4rem);
  }

  .home-actions { grid-template-columns: 1fr; }

  .home-feature {
    min-height: 420px;
    height: 56vh;
  }

  .artist-home-note,
  .model-profile {
    grid-template-columns: 1fr;
  }
  .exhibition-grid { grid-template-columns: 1fr; }

  .exhibition-card { min-height: 250px; }

  .art-wall,
  .portrait-grid {
    columns: 2 150px;
    column-gap: 10px;
  }

  .art-tile,
  .portrait-card { margin-bottom: 10px; }

  .art-tile-overlay {
    opacity: 1;
    transform: none;
    position: static;
    padding: 12px;
    background: rgba(255,255,255,0.04);
  }

  .modal-card {
    width: calc(100% - 20px);
    height: calc(100vh - 20px);
    margin: 10px auto;
    border-radius: 18px;
  }

  .modal-image-shell {
    min-height: 48vh;
    max-height: 60vh;
    padding: 10px;
  }

  .modal-image-shell img {
    max-height: 56vh;
  }

  .modal-nav {
    width: 42px;
    height: 56px;
  }

  .footer { flex-direction: column; }
}


/* v4.2 polish: cleaner artist portrait cards and centered exhibition rooms */
.portrait-card div {
  padding: 13px 14px 14px;
}

.portrait-card h3 {
  margin-bottom: 0;
}

.portrait-card p {
  display: none;
}
