/* SamPhoto Wave-2 Luxury Stage, Un-Boxed Hero, Rhythms & Fail-Open System */
body.page-home .site-header,
body.page-exhibition .site-header {
  background: rgba(14, 11, 10, 0.78);
  border-bottom: 1px solid rgba(230, 207, 165, 0.16);
  transition: background-color 260ms ease, border-color 260ms ease;
}
body.page-home .site-header.is-scrolled,
body.page-exhibition .site-header.is-scrolled {
  background: #120f0d;
  border-bottom-color: rgba(230, 207, 165, 0.24);
}
body.page-home .brand-mark strong,
body.page-home .nav-links a,
body.page-exhibition .brand-mark strong,
body.page-exhibition .nav-links a { color: rgba(250, 246, 240, 0.88); }
body.page-home .nav-links a.active,
body.page-exhibition .nav-links a.active { color: var(--accent-gold-soft); }
body.page-home .nav-links a.nav-cta,
body.page-exhibition .nav-links a.nav-cta { color: #fff; }
body.page-home .nav-toggle,
body.page-exhibition .nav-toggle { background: rgba(26, 21, 18, 0.86); border-color: rgba(230, 207, 165, 0.28); color: #faf6f0; }

.hero { background: radial-gradient(circle at 76% 32%, rgba(158, 25, 35, 0.16), transparent 54%), #0d0a09; }
.hero-frame {
  border-radius: 2px;
  border: 1px solid rgba(230, 207, 165, 0.32);
  background: #0d0a09;
  isolation: isolate;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(13, 10, 9, 0.56) 100%);
}
.hero-frame img { animation: spKenBurns 18s ease-in-out infinite; }
@keyframes spKenBurns { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* Rafael Marcos Stage-Morphing Showcase */
.album-stage {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
  background: #120f0d;
  color: var(--ink-light);
}
.album-stage > .container { position: relative; z-index: 2; }
.album-stage .section-sub { color: rgba(250, 246, 240, 0.78); }
.album-stage .eyebrow { color: var(--accent-gold-soft); }
.album-stage .btn--outline-dark {
  border-color: rgba(232, 190, 107, 0.48);
  color: var(--ink-light);
}
@media (hover: hover) and (pointer: fine) {
  .album-stage .btn--outline-dark:hover {
    background: rgba(232, 190, 107, 0.14);
    border-color: var(--accent-gold-soft);
  }
}
.stage-aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 450ms ease;
}
.stage-watermark, .vt-watermark, .ex-hero-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  color: var(--fx-accent, #e6cfa5);
  opacity: 0.048;
}
.stage-watermark { font-size: clamp(4.2rem, 13vw, 11.5rem); transition: opacity 280ms ease; }
.stage-watermark.is-swapping { opacity: 0.015; }
.vt-watermark { font-size: clamp(4.8rem, 14vw, 12.5rem); opacity: 0.055; }
.ex-hero-watermark { align-items: flex-end; justify-content: flex-end; padding: 0 24px; font-size: clamp(3rem, 10vw, 8.8rem); line-height: 0.85; opacity: 0.055; }

/* Single-Print Museum Covers & Featured Lead Card (Uniform 4:5 Row Alignment) */
.album-grid { align-items: stretch; }
.album-cover-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 8px;
  background: var(--fx-matte-bg, #0d0a09);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.album-cover-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.album-cover-alt {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: cover;
  object-position: center 18%;
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}
.album-cover-stage--contain img,
.album-cover-stage--contain .album-cover-alt {
  object-fit: contain;
  object-position: center;
}
@media (min-width: 1024px) {
  .album-card--featured { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .album-card--featured .album-cover-stage { height: 100%; aspect-ratio: auto; min-height: 360px; }
}

/* Flagship Home Act-II Van Trang Spotlight */
.van-trang-spotlight {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
  background: var(--fx-bg, #0d090a);
  color: var(--fx-ink, #faf6f0);
  padding: 72px 0;
  border-top: 1px solid rgba(232, 190, 107, 0.22);
  border-bottom: 1px solid rgba(232, 190, 107, 0.22);
}
.fx-ambient-layer { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fx-gold-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }
.vt-inner, .ex-hero-inner, .exhibition-inner { position: relative; z-index: 2; }
.vt-layout { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 40px; align-items: center; }
.vt-copy h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); color: #faf6f0; margin: 0 0 14px; }
.vt-lead { color: rgba(250, 246, 240, 0.84); margin: 0 0 26px; font-size: 0.98rem; line-height: 1.65; }
.vt-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--vt-gold, .btn--ex-primary {
  background: var(--fx-accent, #e8be6b);
  color: #120d0c;
  min-height: 48px;
  border-radius: 2px;
  font-weight: 600;
}
.btn--vt-outline, .btn--ex-outline {
  background: transparent;
  color: var(--fx-ink, #faf6f0);
  border: 1px solid var(--fx-accent, rgba(232, 190, 107, 0.55));
  min-height: 48px;
  border-radius: 2px;
}
.vt-diptych { display: grid; grid-template-columns: 1.32fr 1fr; gap: 22px; align-items: start; }
.vt-plate {
  position: relative;
  z-index: 2;
  margin: 0;
  background: #090607;
  border: 1px solid rgba(232, 190, 107, 0.34);
  padding: 10px;
}
.vt-plate--secondary { margin-top: 34px; }
.vt-plate-btn, .ex-plate-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.vt-plate img, .ex-plate img { width: 100%; height: auto; display: block; }
.vt-caption { display: block; padding-top: 10px; font-family: var(--font-serif); font-size: 1.06rem; color: #f5ead9; }

/* Themed Exhibition Hero & Adaptive Wall Rhythms */
.exhibition-hero {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
  background: var(--fx-bg, #14110f);
  color: var(--fx-ink, #faf6f0);
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--fx-hairline, rgba(230, 207, 165, 0.16));
}
.ex-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-accent, #e6cfa5);
  margin-bottom: 10px;
}
.ex-back {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 8px 10px 0;
  margin: -10px 0;
  color: var(--fx-accent, #e6cfa5);
  font-weight: 600;
  white-space: nowrap;
}
.ex-hero-kicker > span[aria-hidden="true"] { flex-shrink: 0; opacity: 0.6; }
.ex-hero-meta { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.86; }
.ex-hero-title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); color: var(--fx-ink, #faf6f0); margin: 0 0 10px; max-width: 820px; }
.ex-hero-lead { margin: 0 0 20px; max-width: 680px; color: var(--fx-ink-muted, rgba(250, 246, 240, 0.8)); font-size: 0.96rem; }
.ex-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.album-exhibition {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
  background: var(--fx-bg, #14110f);
  color: var(--fx-ink, #faf6f0);
  padding: 36px 0 64px;
}
.ex-wall--n1 { max-width: 820px; margin-inline: auto; }
.ex-wall--n2 { display: grid; grid-template-columns: 1.38fr 1fr; gap: 28px; align-items: start; margin-bottom: 28px; }
.ex-wall--n2:last-child { margin-bottom: 0; }
.ex-wall--small .ex-plate--lead { max-width: 960px; margin: 0 auto 28px; }
.ex-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.ex-salon-rows { gap: 32px; }
.ex-masonry { column-count: 3; column-gap: 24px; }
.ex-masonry .ex-plate { break-inside: avoid; page-break-inside: avoid; margin-bottom: 24px; }
.ex-monument-stack { max-width: 960px; margin-inline: auto; display: flex; flex-direction: column; gap: 40px; }
.ex-contact-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ex-book-spreads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: start; }

.ex-plate {
  position: relative;
  z-index: 2;
  margin: 0;
  background: var(--fx-matte-bg, #0d0a09);
  border: 1px solid var(--fx-hairline, rgba(230, 207, 165, 0.22));
  color: var(--fx-plate-ink, var(--fx-card-ink, #faf6f0));
  padding: var(--fx-matte-pad, 10px);
}
.ex-plate-media { display: block; position: relative; overflow: hidden; background: var(--fx-matte-bg, #0d0a09); }
.ex-plate-index { display: none; font-family: var(--font-serif); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--fx-accent, #d4af6a); margin-bottom: 6px; }
[data-rhythm="R-CONTACT"] .ex-plate-index,
[data-rhythm="R-BOOK"] .ex-plate-index { display: block; }
.ex-plate-meta { display: flex; flex-direction: column; gap: 3px; padding: 12px 4px 4px; }
.ex-plate-title { font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600; line-height: 1.24; color: var(--fx-plate-ink, var(--fx-card-ink, #faf6f0)); }
.ex-plate-loc { font-size: 0.8rem; color: var(--fx-plate-muted, var(--fx-card-muted, rgba(250, 246, 240, 0.72))); }

[data-rhythm="R-MONUMENT"] .ex-plate-btn { display: grid; grid-template-columns: 1.55fr 0.45fr; gap: 24px; align-items: start; }
[data-rhythm="R-MONUMENT"] .ex-plate-meta { border-left: 1px solid var(--fx-hairline, rgba(216, 203, 184, 0.28)); padding: 20px 0 6px 18px; }

.album-exhibition .card {
  background: var(--fx-surface, #181412);
  border: 1px solid var(--fx-hairline, rgba(230, 207, 165, 0.24));
  border-radius: 2px;
  color: var(--fx-ink, #faf6f0);
}
.album-exhibition .card h2 { color: var(--fx-ink, #faf6f0); }
.album-exhibition .card p { color: var(--fx-ink-muted, rgba(250, 246, 240, 0.8)) !important; }
.album-exhibition .card .eyebrow { color: var(--fx-accent, #e8be6b); }
.album-exhibition .card .btn--outline-dark { border-color: var(--fx-accent, rgba(232, 190, 107, 0.55)); color: var(--fx-ink, #faf6f0); }

/* Fail-Open Reveal System (100% visible without JS) */
.fx-reveal { opacity: 1; transform: none; }
html.fx-armed .fx-reveal:not(.is-revealed) { opacity: 0; transform: var(--fx-reveal-from, translate3d(0, 16px, 0)); }
html.fx-armed .fx-reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--fx-reveal-ms, 540ms) var(--fx-reveal-ease, cubic-bezier(0.22, 1, 0.36, 1)) var(--fx-delay, 0ms),
    transform var(--fx-reveal-ms, 540ms) var(--fx-reveal-ease, cubic-bezier(0.22, 1, 0.36, 1)) var(--fx-delay, 0ms);
}

/* Desktop Pointer Hover vs Mobile Touch Guards */
@media (hover: hover) and (pointer: fine) {
  body.page-home .nav-links a:not(.nav-cta):hover,
  body.page-exhibition .nav-links a:not(.nav-cta):hover { color: var(--accent-gold-soft); }
  .album-card:hover .album-cover-alt,
  .album-card:focus-visible .album-cover-alt { opacity: 1; }
  .ex-plate:hover .ex-plate-media img,
  .vt-plate:hover img { transform: scale(1.022); transition: transform 420ms ease; }
  .ex-plate:hover::before,
  .vt-plate:hover::before { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  .ex-plate:active, .vt-plate:active, .album-card:active { transform: scale(0.986); transition: transform 90ms ease-out; }
  .ex-plate.is-touch-active::before,
  .album-card.is-touch-active::before { opacity: 1; }
}

@media (max-width: 1024px) {
  .vt-layout { grid-template-columns: 1fr; gap: 28px; }
  .ex-masonry { column-count: 2; }
  .ex-contact-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  body.page-home .site-nav,
  body.page-exhibition .site-nav { background: #14110f; border-bottom-color: rgba(230, 207, 165, 0.18); }
}
@media (max-width: 767px) {
  /* Ban 2-col Diptych below 768px & enforce <=300px mobile ATF budget */
  .header-inner { min-height: 52px; }
  .van-trang-spotlight { padding: 40px 0; }
  .vt-diptych, .ex-wall--n2 { display: flex; flex-direction: column; gap: 18px; }
  .vt-plate--secondary,
  .ex-wall--n2 .ex-plate--pair { width: 95%; margin: 0 0 0 auto; border-left: 1px solid var(--fx-accent, #e8be6b); }
  .ex-grid-2, .ex-contact-sheet, .ex-book-spreads { grid-template-columns: 1fr; gap: 18px; }
  .ex-masonry { column-count: 1; }
  [data-rhythm="R-MONUMENT"] .ex-plate-btn { grid-template-columns: 1fr; gap: 10px; }
  [data-rhythm="R-MONUMENT"] .ex-plate-meta { border-left: 0; border-top: 1px solid var(--fx-hairline); padding: 10px 0 0; }
  [data-rhythm="R-BOOK"] .ex-plate { padding: 14px; }

  .exhibition-hero { padding: 10px 0 12px; }
  .ex-hero-kicker { font-size: 0.72rem; line-height: 1.2; margin-bottom: 6px; }
  .ex-hero-title {
    font-size: 1.52rem;
    line-height: 1.12;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ex-hero-lead {
    font-size: 0.83rem;
    line-height: 1.36;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ex-hero-actions { flex-wrap: nowrap; gap: 8px; }
  .ex-hero-actions .btn--ex-primary { flex: 1; padding: 0 12px; font-size: 0.83rem; white-space: nowrap; }
  .ex-hero-actions .btn--ex-outline { flex: 0 0 auto; padding: 0 14px; font-size: 0.83rem; white-space: nowrap; }
  .album-exhibition { padding: 14px 0 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame img, .fx-ambient-layer *, .fx-reveal, html.fx-armed .fx-reveal:not(.is-revealed) {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .ex-plate-media::before, .ex-plate-media::after, .fx-gold-dust { display: none !important; }
}
