/* =============================================
   CELSO DUAZO PEPITO — ARTIST AUTHORITY PAGE
   Design System: Editorial Luxury, Filipino Soul
   Palette: Deep Charcoal · Warm Ivory · Bone · Gold
============================================= */

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

:root {
  --ink:        #0f0e0c;
  --charcoal:   #1c1b18;
  --deep:       #242320;
  --stone:      #3a3833;
  --warm-gray:  #7a766e;
  --bone:       #e8e2d8;
  --ivory:      #f5f0e8;
  --cream:      #faf7f2;
  --gold:       #b8963c;
  --gold-light: #d4ae5a;
  --white:      #ffffff;

  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', system-ui, sans-serif;

  --max:     1320px;
  --pad:     clamp(1.5rem, 5vw, 4rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── UTILITIES ── */
.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}
.section-sub {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--warm-gray);
  max-width: 560px;
  margin-top: 1rem;
  line-height: 1.8;
}
.work-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--warm-gray);
  line-height: 1.6;
  margin: 0.25rem 0;
}
.work-note {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--stone);
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid currentColor;
  transition: all 0.28s var(--ease-out);
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--ivory);
}
.btn-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
  font-size: 0.68rem;
  padding: 0.65rem 1.4rem;
}
.btn-dark:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--pad);
  transition: background 0.35s, padding 0.35s;
}
.nav.scrolled {
  background: rgba(15,14,12,0.96);
  backdrop-filter: blur(12px);
  padding-top: 0;
  padding-bottom: 0;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ivory); }
.nav-cta {
  color: var(--gold) !important;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ivory);
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(15,14,12,0.98);
  padding: 0 var(--pad) 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.8);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-portrait {
  position: relative;
  height: 100%;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(1.05);
}
.statement-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.contact-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,14,12,0.15) 0%,
    rgba(15,14,12,0.55) 100%
  );
}
.hero-content {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--pad) 5rem clamp(2.5rem, 6vw, 6rem);
  position: relative;
}
.hero-content::before {
  content: '';
  position: absolute;
  top: 15%;
  left: -1px;
  width: 2px;
  height: 60%;
  background: var(--gold);
  opacity: 0.4;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-name {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.95;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}
.hero-name-first {
  display: block;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-style: italic;
  letter-spacing: 0.02em;
}
.hero-name-last {
  display: block;
  font-size: clamp(3.8rem, 7.5vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 300;
  color: rgba(245,240,232,0.65);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 380px;
}
.hero-quote {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(245,240,232,0.9);
  line-height: 1.65;
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 380px;
}
.quote-mark {
  font-size: 1.8em;
  line-height: 0.5;
  vertical-align: -0.3em;
  color: var(--gold);
  font-style: normal;
  opacity: 0.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(245,240,232,0.4);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--sans);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(245,240,232,0.3);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(0.5); transform-origin: top; }
}

/* ── OVERVIEW ── */
.overview {
  background: var(--cream);
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
}
.overview-inner { max-width: var(--max); margin: 0 auto; }
.overview-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bone);
  border: 1px solid var(--bone);
  margin-bottom: clamp(4rem, 7vw, 6rem);
}
.stat {
  background: var(--cream);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.overview-body {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.overview-text p {
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  color: var(--stone);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.overview-intro {
  font-family: var(--serif) !important;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important;
  color: var(--ink) !important;
  line-height: 1.65 !important;
}
.overview-awards-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bone);
}
.overview-awards ul {
  list-style: none;
}
.overview-awards li {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--stone);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(184,150,60,0.12);
  line-height: 1.4;
}
.overview-awards li::before {
  content: '— ';
  color: var(--gold);
}

/* ── WORKS ── */
.works {
  background: var(--ink);
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.section-header {
  max-width: var(--max);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: 0 var(--pad);
}
.section-header .section-title { color: var(--ivory); }
.section-header .section-sub { color: rgba(245,240,232,0.5); }
.section-header .section-label { color: var(--gold); }

/* Featured works — two-column layout, rows sized to content */
.works-featured {
  max-width: var(--max);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;   /* critical: each cell aligns to top, not stretched */
}
.work-feature {
  position: relative;
  /* no overflow:hidden — artwork must never be clipped */
}
/* First and third works go in column 1; second spans both rows in column 2 */
.work-feature--wide { grid-column: 1 / 2; grid-row: 1 / 2; }
.work-feature--tall { grid-column: 2 / 3; grid-row: 1 / 3; }
.work-feature:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }
.work-feature:nth-child(4) { grid-column: 1 / 2; }

.work-caption {
  padding: 1.25rem 0 0;
}
.work-num {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.work-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--ivory);
  margin-top: 0.25rem;
  line-height: 1.2;
}
.work-feature .work-meta { color: rgba(245,240,232,0.45); }
.work-feature .work-note { color: rgba(245,240,232,0.65); font-size: 0.88rem; }

/* Works grid (secondary) */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.work-card { overflow: visible; }
/* work-card-img handled in frame system */
.work-card-info {
  padding: 1rem 0 1rem;
}
.work-card-info h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.work-card .work-meta { color: rgba(245,240,232,0.4); }
.work-card .work-note {
  color: rgba(245,240,232,0.55);
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

/* ── STATEMENT ── */
.statement {
  background: var(--ivory);
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-top: 1px solid var(--bone);
}
.statement-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.statement-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.statement-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184,150,60,0.2);
  pointer-events: none;
}
.statement-img:hover img { transform: scale(1.03); }
.statement-quote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-style: italic;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.7;
  margin: 1.5rem 0 1rem;
}
.statement-attr {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.statement-detail p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.85;
}

/* ── AVAILABLE ── */
.available {
  background: var(--cream);
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
}
.section-header--light .section-title { color: var(--ink); }
.section-header--light .section-sub { color: var(--warm-gray); }
.available-grid {
  max-width: var(--max);
  margin: 0 auto clamp(4rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.av-card { background: transparent; overflow: visible; }
.av-card--feature { }
/* av-img handled in frame system */
.av-price-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(15,14,12,0.85);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  backdrop-filter: blur(4px);
}
.av-info {
  padding: 1.25rem 0 0.5rem;
  background: transparent;
}
.av-info h3 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.av-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.65;
  margin: 0.75rem 0 1.25rem;
}

/* Secondary available */
.av-secondary { max-width: var(--max); margin: 0 auto; }
.av-secondary-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bone);
}
.av-secondary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.av-small {
  background: transparent;
  overflow: visible;
}
/* av-small-img handled in frame system */
.av-small-info {
  padding: 0.75rem 0 0.25rem;
}
.av-small-info h4 {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.av-small-info p {
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
}
.av-small-price {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
}

/* ── EXHIBITIONS ── */
.exhibitions {
  background: var(--charcoal);
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
}
.exhibitions-inner { max-width: var(--max); margin: 0 auto; }
.exhibitions-inner .section-label { color: var(--gold); }
.exhibitions-inner .section-title { color: var(--ivory); margin-bottom: clamp(3rem, 6vw, 5rem); }
.exhibitions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.exhibit {
  display: grid;
  grid-template-columns: 160px 2px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.exhibit:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.exhibit--feature {
  background: rgba(184,150,60,0.05);
  padding: 2.5rem;
  border-left: 2px solid var(--gold);
  margin-left: -2.5rem;
  border-bottom: 1px solid rgba(184,150,60,0.15);
}
.exhibit-date {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.exhibit-month {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.exhibit-day {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1;
}
.exhibit-year {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: rgba(245,240,232,0.35);
  letter-spacing: 0.08em;
}
.exhibit-divider {
  background: rgba(255,255,255,0.1);
  height: 100%;
  min-height: 40px;
}
.exhibit-type {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.exhibit-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.exhibit-venue {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: rgba(245,240,232,0.5);
  margin-bottom: 0.75rem;
}
.exhibit-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(245,240,232,0.6);
  max-width: 520px;
  line-height: 1.6;
}
.exhibitions-past {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.exhibitions-past-text {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: rgba(245,240,232,0.35);
  line-height: 1.75;
  max-width: 700px;
}

/* ── CONTACT ── */
.contact {
  background: var(--ivory);
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-top: 1px solid var(--bone);
}
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.contact-portrait { aspect-ratio: 3/4; overflow: hidden; position: relative; }
.contact-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  margin: 1rem 0 1.25rem;
  line-height: 1.1;
}
.contact-body {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--charcoal);
  transition: color 0.2s;
}
.contact-item:hover { color: var(--gold); }
.contact-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--gold);
  transition: all 0.2s;
}
.contact-item:hover .contact-icon {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  padding: 3rem var(--pad);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ivory);
  font-weight: 300;
  letter-spacing: 0.05em;
}
.footer-tagline {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ivory); }
.footer-links span { color: rgba(245,240,232,0.2); }
.footer-copy {
  font-family: var(--sans);
  font-size: 0.65rem;
  color: rgba(245,240,232,0.2);
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════
   FRAME SYSTEM — Gallery-quality, artwork-first
   The frame wraps the painting. The painting
   dictates the size. Nothing is ever cropped.
══════════════════════════════════════════════ */

/*
  Structure:
  .frame-outer  → dark walnut wood, carved bevel
  .frame-inner  → warm linen mat, inset shadow
  img           → width:100%, height:auto — always
*/

.frame-outer {
  display: block;          /* shrink-wraps to content */
  width: 100%;
  /* Dark walnut: highlight edge + warm wood gradient */
  background:
    linear-gradient(135deg, rgba(180,130,80,0.18) 0%, transparent 45%),
    linear-gradient(175deg, #2e2010 0%, #1a1008 35%, #251a0d 65%, #1a1008 100%);
  padding: 11px;
  box-shadow:
    0 4px 8px  rgba(0,0,0,0.55),
    0 10px 30px rgba(0,0,0,0.40),
    0 24px 60px rgba(0,0,0,0.25),
    inset 0  1px 0   rgba(255,255,255,0.13),
    inset 0 -1px 0   rgba(0,0,0,0.65),
    inset  2px 0 0   rgba(255,255,255,0.07),
    inset -2px 0 0   rgba(0,0,0,0.45);
  position: relative;
}

/* Carved inner lip on the wood frame */
.frame-outer::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.09),
    inset  1px 0 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(255,255,255,0.035);
  pointer-events: none;
  z-index: 1;
}

/* Warm linen mat — the inner liner */
.frame-inner {
  background: #ede8dc;
  padding: 9px;
  box-shadow:
    inset 0  1px 4px rgba(0,0,0,0.22),
    inset 0 -1px 2px rgba(0,0,0,0.12),
    inset  1px 0 3px rgba(0,0,0,0.14),
    inset -1px 0 3px rgba(0,0,0,0.10);
  position: relative;
}

/* Subtle vignette over the mat */
.frame-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.09);
  pointer-events: none;
  z-index: 1;
}

/* ── FRAME SIZE VARIANTS ──
   Proportional to painting size:
   frame      = featured large works
   frame-sm   = secondary works grid
   frame-av   = available works (featured)
   frame-xs   = available works (secondary)
*/
.frame-outer.frame-sm   { padding: 8px; }
.frame-outer.frame-sm   .frame-inner { padding: 6px; }

.frame-outer.frame-av   { padding: 10px; }
.frame-outer.frame-av   .frame-inner { padding: 8px; }

.frame-outer.frame-xs   { padding: 6px; }
.frame-outer.frame-xs   .frame-inner { padding: 5px; }

/* ── ARTWORK IMAGE RULES — THE ONLY RULES THAT MATTER ──
   Every artwork image must:
   • show completely, edge to edge
   • preserve its natural aspect ratio
   • never be cropped, stretched, or compressed
   • let the frame wrap it — not constrain it
*/

.work-frame-wrap   { width: 100%; }
.work-frame-wrap   .frame-outer { width: 100%; }

/* The image container — transparent, no background colour showing */
.work-img-wrap,
.work-card-img,
.av-img,
.av-small-img {
  display: block;
  width: 100%;
  line-height: 0; /* kills phantom gap below inline img */
}

/* THE IMAGE RULE — applies to every artwork image, no exceptions */
.work-img-wrap img,
.work-card-img img,
.av-img img,
.av-small-img img {
  display: block;
  width: 100%;
  height: auto;          /* preserve aspect ratio */
  object-fit: contain;   /* never crop */
  max-height: none;      /* remove all height constraints */
}

/* Price badge is relative to .av-img which is now naturally sized */
.av-img {
  position: relative;
}
.av-price-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
}

/* Note text inside secondary available works */
.av-small-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin: 0.4rem 0 0.5rem;
}

/* ══════════════════════════════════════════════
   SUBTLE INTERACTIONS — Museum-quality presence
   Rule: if it calls attention to itself, it's too much.
   These should feel like the room breathing.
══════════════════════════════════════════════ */

/* Frame hover — very slow, very soft shadow deepening */
.frame-outer {
  transition: box-shadow 0.55s ease, transform 0.55s ease;
}
.work-feature:hover .frame-outer,
.work-card:hover    .frame-outer,
.av-card:hover      .frame-outer,
.av-small:hover     .frame-outer {
  box-shadow:
    0 6px 14px  rgba(0,0,0,0.65),
    0 16px 44px rgba(0,0,0,0.50),
    0 32px 80px rgba(0,0,0,0.30),
    inset 0  1px 0   rgba(255,255,255,0.13),
    inset 0 -1px 0   rgba(0,0,0,0.65),
    inset  2px 0 0   rgba(255,255,255,0.07),
    inset -2px 0 0   rgba(0,0,0,0.45);
  transform: translateY(-2px);
}

/* Caption text fades up gently on scroll — handled via JS */
.work-caption,
.work-card-info,
.av-info,
.av-small-info {
  transition: opacity 0.5s ease;
}

/* Stat numbers — very subtle scale on hover */
.stat {
  transition: transform 0.4s ease;
}
.stat:hover {
  transform: translateY(-2px);
}
.stat-num {
  transition: color 0.4s ease;
}
.stat:hover .stat-num {
  color: var(--gold);
}

/* Exhibition rows — gentle left border brightening */
.exhibit {
  transition: border-color 0.4s ease, background 0.4s ease;
}
.exhibit:hover {
  background: rgba(184,150,60,0.03);
}

/* Contact items — smooth icon fill */
.contact-icon {
  transition: all 0.3s ease;
}

/* Scroll reveal — elements start slightly below and fade in */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for grid children */
.works-grid    .work-card:nth-child(2)  { transition-delay: 0.07s; }
.works-grid    .work-card:nth-child(3)  { transition-delay: 0.14s; }
.works-grid    .work-card:nth-child(4)  { transition-delay: 0.21s; }
.works-grid    .work-card:nth-child(5)  { transition-delay: 0.07s; }
.works-grid    .work-card:nth-child(6)  { transition-delay: 0.14s; }
.works-grid    .work-card:nth-child(7)  { transition-delay: 0.21s; }
.works-grid    .work-card:nth-child(8)  { transition-delay: 0.07s; }
.av-secondary-grid .av-small:nth-child(2) { transition-delay: 0.06s; }
.av-secondary-grid .av-small:nth-child(3) { transition-delay: 0.12s; }
.av-secondary-grid .av-small:nth-child(4) { transition-delay: 0.18s; }



/* Scroll reveal handled by .reveal / .reveal.visible — see interactions section below */

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .av-secondary-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-portrait {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-portrait img { filter: grayscale(100%) contrast(1.1) brightness(0.4); }
  .hero-portrait-overlay {
    background: linear-gradient(to top, rgba(15,14,12,0.92) 40%, rgba(15,14,12,0.5) 100%);
  }
  .hero-content {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 8rem var(--pad) 5rem;
    justify-content: flex-end;
  }
  .hero-content::before { display: none; }
  .hero-quote { max-width: 100%; }
  .overview-stat-row { grid-template-columns: repeat(2, 1fr); }
  .overview-body { grid-template-columns: 1fr; }
  .works-featured {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }
  .work-feature--wide,
  .work-feature--tall,
  .work-feature:nth-child(3),
  .work-feature:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
  .work-feature--tall .work-img-wrap { /* natural height on mobile */ }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .statement-inner { grid-template-columns: 1fr; }
  .statement-img { max-width: 380px; }
  .available-grid { grid-template-columns: 1fr; }
  .av-secondary-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-portrait { max-width: 320px; }
  .exhibit { grid-template-columns: 120px 2px 1fr; gap: 1.5rem; }
  .exhibit--feature { margin-left: 0; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .av-secondary-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .exhibit {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .exhibit-divider { display: none; }
  .hero-name-first { font-size: 2.8rem; }
  .hero-name-last { font-size: 3.8rem; }
  /* Thinner frames on small screens */
  .frame-outer       { padding: 7px; }
  .frame-outer .frame-inner { padding: 5px; }
  .frame-outer.frame-sm  { padding: 6px; }
  .frame-outer.frame-sm  .frame-inner { padding: 4px; }
  .frame-outer.frame-xs  { padding: 5px; }
  .frame-outer.frame-xs  .frame-inner { padding: 3px; }
}

@media (max-width: 420px) {
  .works-grid { grid-template-columns: 1fr; }
  .av-secondary-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
