/* Artist portfolio — global styles */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

@font-face {
  font-family: "Acier BAT Text Solid";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("https://db.onlinewebfonts.com/t/6e3bdf768c0dc5b08f0198a7243fbe21.woff2")
      format("woff2"),
    url("https://db.onlinewebfonts.com/t/6e3bdf768c0dc5b08f0198a7243fbe21.woff")
      format("woff");
}

:root {
  --bg: #6f4f79;
  --bg-elevated: #5c4266;
  --bg-header: rgba(74, 52, 84, 0.94);
  --bg-dropdown: rgba(61, 42, 69, 0.98);
  --bg-nav-overlay: rgba(52, 36, 59, 0.98);
  --bg-arrows: rgba(52, 36, 59, 0.88);
  --text: #f4eef7;
  --text-muted: #cbbfd4;
  --accent: #e8d48a;
  --accent-soft: rgba(232, 212, 138, 0.14);
  --border: rgba(255, 255, 255, 0.14);
  --nav-h: 4rem;
  --nav-h-touch: calc(3.75rem + env(safe-area-inset-top, 0px));
  --header-offset: var(--nav-h-touch);
  --arrow-size: 3rem;
  --font-header: "Acier BAT Text Solid", "Bebas Neue", "Arial Narrow", sans-serif;
  --font-display: var(--font-header);
  --font-body: "DM Sans", system-ui, sans-serif;
  --focus-ring: 2px solid var(--accent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  padding-top: var(--nav-h);
  padding-bottom: calc(var(--arrow-size) + 3.5rem);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

body.nav-open {
  overflow: hidden;
  /* Do not use touch-action: none — it prevents scrolling inside the fixed nav on iOS */
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----- Top navigation ----- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.5rem;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Match spacing between items in .site-nav */
  gap: 0.15rem 0.5rem;
  flex: 1;
  min-width: 0;
}

.site-logo {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Hamburger — hidden on wide screens */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle:hover {
  border-color: rgba(201, 169, 98, 0.45);
  color: var(--accent);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 1.25rem;
  pointer-events: none;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle__bars span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  align-items: stretch;
  justify-content: flex-end;
  row-gap: 0.35rem;
}

.site-nav > a,
.site-nav .nav-dropdown__trigger,
.site-nav__link,
.nav-home-link {
  font-family: var(--font-header);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 0.35rem 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.site-nav > a:hover,
.site-nav .nav-dropdown__trigger:hover,
.site-nav__link:hover,
.nav-home-link:hover,
.site-nav > a.is-active,
.site-nav .nav-dropdown__trigger.is-active {
  color: var(--text);
}

.site-nav > a.is-active,
.site-nav .nav-dropdown__trigger.is-active,
.site-nav__link.is-active,
.nav-home-link.is-active {
  color: var(--accent);
}

/* Dropdown collections */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.35rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-0.1rem);
  opacity: 0.7;
}

.nav-dropdown__menu {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.25rem);
  min-width: 11.5rem;
  max-width: 90vw;
  background: var(--bg-dropdown);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.nav-dropdown:last-child .nav-dropdown__menu {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(0.25rem);
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav-dropdown__menu li:last-child a {
  border-bottom: none;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:last-child.is-open .nav-dropdown__menu {
  transform: translateX(0) translateY(0);
}

.nav-dropdown.is-open .nav-dropdown__trigger::after {
  transform: rotate(225deg) translateY(-0.1rem);
}

@media (max-width: 640px) {
  .site-nav .nav-dropdown__menu {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(0.25rem);
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    transform: translateX(0) translateY(0);
  }
}

/* Anchor targets below fixed header */
#email {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.prose {
  max-width: 40rem;
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ----- Page shell ----- */

.page-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* ----- Home hero ----- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  margin: -2rem -1.5rem 0;
  padding: 0 1.5rem 4rem;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(52, 36, 59, 0.92) 0%,
    rgba(111, 79, 121, 0.42) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 0 1.5rem;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-decoration: none;
}

.scroll-hint:hover {
  color: var(--text);
  text-decoration: none;
}

.scroll-hint svg {
  width: 1rem;
  height: 1rem;
  animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* ----- Home: work grid under hero ----- */

.home-work {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  scroll-margin-top: calc(var(--header-offset) + 0.75rem);
}

/* ----- Collection grid (home) ----- */

.collections {
  padding: 4rem 1.5rem 5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.collections h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 2.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Explore: three smaller, shorter cards */
.collection-grid--explore {
  max-width: 40rem;
  margin-inline: auto;
  gap: 0.85rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

@media (min-width: 900px) {
  .collection-grid--explore {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 44rem;
  }
}

.collection-grid--explore .collection-card {
  aspect-ratio: 5 / 3;
  max-width: 13.5rem;
  margin-inline: auto;
  width: 100%;
}

.collection-grid--explore .collection-card span {
  font-size: 1.05rem;
  padding: 0.75rem 0.9rem;
  letter-spacing: 0.1em;
}

.collection-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  color: var(--text);
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.05);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
  pointer-events: none;
}

.collection-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-card:hover {
  text-decoration: none;
  border-color: rgba(201, 169, 98, 0.35);
}

/* ----- About accordions ----- */

.accordion {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-bottom: 0.75rem;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.accordion[open] summary::after {
  transform: rotate(225deg);
}

.accordion summary:hover {
  background: var(--accent-soft);
}

.accordion .accordion-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.accordion .accordion-body p:first-child {
  margin-top: 0;
}

/* ----- Work hub ----- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.work-tile {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.work-tile:hover {
  border-color: rgba(201, 169, 98, 0.4);
  background: var(--accent-soft);
  text-decoration: none;
}

.work-tile strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.work-tile span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.work-tile.work-tile--visual {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.work-tile__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  flex-shrink: 0;
}

.work-tile__body {
  display: block;
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}

.work-tile.work-tile--visual:hover .work-tile__img {
  transform: none;
}

.page-main--artist-statement .prose {
  max-width: min(58rem, calc(100vw - 2.5rem - 2 * min(46vw, 14rem)));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1023px) {
  .page-main--artist-statement .prose {
    max-width: min(58rem, calc(100vw - 1.25rem - 2 * min(48vw, 13rem)));
  }
}

/* ----- Work gallery (thumbnail grid) ----- */

.work-gallery {
  display: grid;
  gap: 0.6rem 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Never more than three columns in a row */
@media (min-width: 560px) {
  .work-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.work-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.work-thumb:hover {
  border-color: rgba(232, 212, 138, 0.4);
  text-decoration: none;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-thumb:hover img {
  transform: scale(1.05);
}

.work-thumb.work-thumb--mv {
  padding: 0;
}

.work-thumb__mv {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--bg-elevated);
  pointer-events: none;
  transition: transform 0.45s ease;
}

.work-thumb:hover .work-thumb__mv {
  transform: scale(1.04);
}

.work-thumb__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 11px 12px;
  background: linear-gradient(
    to top,
    rgba(18, 10, 24, 0.95) 0%,
    rgba(18, 10, 24, 0.74) 58%,
    rgba(18, 10, 24, 0) 100%
  );
  pointer-events: none;
}

.work-thumb__title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
  color: #fff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 1px rgba(0, 0, 0, 0.9);
}

.work-thumb__year {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #f3dd93;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* ----- Single work piece page ----- */

/* No flex here: a flex item’s default min-height:auto uses the image’s intrinsic
   height, so the box won’t shrink and the picture looks “cut off” / overflows. */
.piece-page .piece-media {
  margin-bottom: 1.75rem;
  text-align: center;
  max-width: min(100%, 46rem);
  margin-inline: auto;
}

.piece-page .piece-media img,
.piece-page .piece-media video,
.piece-page .piece-media iframe,
.piece-page .piece-media .piece-hover img,
.piece-page .piece-media .piece-hover video,
.piece-page .piece-media .piece-hover iframe {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(58svh, 34rem);
  object-fit: contain;
  object-position: center top;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.piece-page .piece-media iframe {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Five Senses (and similar): multiple piece images in one grid */
.piece-page .piece-media--gallery {
  max-width: min(100%, 56rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}

.piece-page .piece-media--gallery .piece-hover {
  display: block;
  width: 100%;
}

.piece-page .piece-media--gallery .piece-hover img {
  width: 100%;
  max-width: none;
  max-height: min(42svh, 24rem);
  margin-inline: auto;
  object-fit: contain;
}

body[data-page="exhibitions"] .piece-media--gallery .piece-hover {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

body[data-page="exhibitions"] .piece-media--gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: min(100%, 72rem);
  margin-inline: auto;
}

body[data-page="exhibitions"] .piece-media--gallery .piece-hover:first-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
}

body[data-page="exhibitions"] .piece-media--gallery .piece-hover img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

body[data-page="exhibitions"] .piece-media--gallery .piece-hover:first-child img {
  height: auto;
  max-height: min(68svh, 34rem);
  object-fit: contain;
  border: none;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 900px) {
  .piece-page .piece-media--gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Five Senses: horizontal coverflow (center largest, arrows cycle) */
.piece-page .piece-coverflow {
  max-width: min(100%, 58rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.35rem 0.55rem;
  align-items: center;
}

.piece-coverflow__arrow {
  appearance: none;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.piece-coverflow__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.piece-coverflow__arrow svg {
  width: 1.15rem;
  height: 1.15rem;
}

.piece-coverflow__viewport {
  min-width: 0;
  overflow: hidden;
}

.piece-coverflow__track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: min(50vw, 340px);
  padding: 0.35rem 0;
  width: max-content;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.piece-coverflow__slide {
  flex: 0 0 auto;
  width: min(240px, 36vw);
  transform: scale(0.76);
  transform-origin: center center;
  opacity: 0.72;
  transition: transform 0.45s ease, opacity 0.35s ease, box-shadow 0.45s ease;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
}

.piece-page--five-senses .piece-coverflow__track {
  min-height: min(56vw, 380px);
}

.piece-page--five-senses .piece-coverflow__slide {
  width: min(270px, 40vw);
}

.piece-coverflow__slide.is-active {
  transform: scale(1.14);
  opacity: 1;
  z-index: 10;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
}

.piece-page .piece-coverflow .piece-coverflow__slide img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  max-height: none;
  border-radius: 2px;
}

@media (max-width: 520px) {
  .piece-coverflow__arrow {
    width: 2.25rem;
    height: 2.25rem;
  }

  .piece-coverflow__slide {
    width: min(196px, 40vw);
  }
}

.piece-page .piece-media--after-summary {
  margin-top: 2rem;
}

/* Clickable piece imagery: hover (or touch) overlay with title */
.piece-hover {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}

.piece-hover:hover {
  text-decoration: none;
}

.piece-hover:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.piece-hover__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 10, 24, 0.78);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.piece-hover__title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.85),
    0 0 1px rgba(0, 0, 0, 0.95);
}

.piece-hover:not(.piece-hover--embed) .piece-hover__title::after {
  content: "Click to enlarge";
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-base);
  font-size: clamp(0.62rem, 1.35vw, 0.72rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3dd93;
}

.piece-hover:hover .piece-hover__overlay,
.piece-hover:focus-visible .piece-hover__overlay {
  opacity: 1;
}

/* Embeds (Vimeo, model-viewer): overlay is visual only — does not steal pointer */
.piece-hover--embed .piece-hover__overlay {
  opacity: 0;
}

.piece-hover--embed:hover .piece-hover__overlay,
.piece-hover--embed:focus-within .piece-hover__overlay {
  opacity: 1;
}

@media (hover: none) {
  .piece-hover__overlay {
    opacity: 1;
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px 12px;
    background: linear-gradient(
      to top,
      rgba(18, 10, 24, 0.92) 0%,
      rgba(18, 10, 24, 0.55) 45%,
      transparent 72%
    );
  }

  .piece-hover--embed .piece-hover__overlay {
    opacity: 1;
  }
}

.work-showcase .piece-hover {
  display: block;
  width: min(100%, 520px);
  margin-inline: auto;
}

.work-showcase .piece-hover img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.work-showcase .piece-hover .bio-portrait {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Full-screen image lightbox (piece-hover + bio portrait) */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.image-lightbox[hidden] {
  display: none !important;
}

body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(18, 10, 24, 0.9);
  cursor: pointer;
}

.image-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 60rem);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 2.75rem;
  overflow: visible;
  box-sizing: border-box;
}

.image-lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-arrows);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.image-lightbox__close svg {
  display: block;
  flex-shrink: 0;
}

.image-lightbox__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.image-lightbox__img {
  display: block;
  max-width: min(94vw, 60rem);
  max-height: min(78vh, 48rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

.image-lightbox__caption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  max-width: 40rem;
}

.piece-model-spin-wrap {
  margin-inline: auto;
  width: 100%;
  max-width: 100%;
  height: min(52svh, 30rem);
  max-height: min(52svh, 30rem);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-sizing: border-box;
}

.piece-model-spin-wrap model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  --poster-color: transparent;
}

.piece-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-bottom: 1.5rem;
}

.piece-meta > div {
  min-width: 8rem;
}

.piece-meta dt {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.piece-meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.piece-description {
  max-width: min(58rem, calc(100vw - 2.5rem - 2 * min(46vw, 14rem)));
  margin-inline: auto;
  color: var(--text-muted);
  line-height: 1.7;
}

.piece-page .lead {
  max-width: min(58rem, calc(100vw - 2.5rem - 2 * min(46vw, 14rem)));
  margin-inline: auto;
}

.piece-page--silva .piece-media {
  max-width: min(100%, 52rem);
}

.piece-page--silva .piece-media .piece-hover img {
  max-height: min(64svh, 40rem);
}

.piece-description p {
  margin: 0 0 1rem;
}

.piece-description p:last-child {
  margin-bottom: 0;
}

body[data-page="exhibitions"] .lead,
body[data-page="exhibitions"] .piece-description {
  max-width: min(58rem, calc(100vw - 2.5rem - 2 * min(46vw, 14rem)));
  margin-inline: auto;
}

body[data-page="exhibitions"] .video-incoming-box {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 1023px) {
  .piece-page .lead,
  .piece-description {
    max-width: min(58rem, calc(100vw - 1.25rem - 2 * min(48vw, 13rem)));
  }
}

/* ----- Work subpage ----- */

.work-showcase {
  margin-bottom: 2rem;
}

.work-showcase .feature-img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.work-showcase .bio-portrait {
  width: min(100%, 520px);
  height: auto;
  max-height: none;
  object-fit: contain;
  border: 1px solid var(--border);
  display: block;
  margin-inline: auto;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(220px, 520px) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.bio-layout .work-showcase {
  margin-bottom: 0;
}

.bio-layout .prose {
  max-width: none;
}

@media (max-width: 860px) {
  .bio-layout {
    grid-template-columns: 1fr;
  }
}

.work-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.5rem;
  margin-bottom: 1rem;
}

/* ----- Exhibitions / Contact ----- */

.split-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.split-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.split-list .year {
  flex: 0 0 4rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.contact-block {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg-elevated);
  max-width: 28rem;
}

.contact-block p {
  margin: 0 0 0.75rem;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(180px, 360px) minmax(0, 1fr);
  gap: 1.25rem 1.25rem;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
}

.contact-layout .work-showcase {
  margin-bottom: 0;
  max-width: 300px;
}

.contact-primary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-column: 1;
}

.contact-layout .bio-portrait {
  width: 100%;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.38));
}

.contact-details {
  min-width: 0;
}

.contact-social {
  min-width: 0;
  grid-column: 2;
  justify-self: stretch;
  width: 100%;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

}

.contact-instagram {
  margin-top: 0;
  max-width: min(41rem, 100%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-instagram__label {
  margin: 0 0 0.75rem;
}

.contact-instagram .instagram-media {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: min(560px, 100%) !important;
}

/* ----- Prev / Next arrows ----- */

.page-arrows {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
}

.page-arrows a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--arrow-size);
  padding: 0.45rem 0.85rem;
  width: auto;
  max-width: min(46vw, 14rem);
  border: 1px solid var(--border);
  background: var(--bg-arrows);
  backdrop-filter: blur(8px);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-arrows a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.page-arrows a svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.page-arrows .arrow-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

/* Home: arrows only after scrolling past the hero image */
body[data-page="home"] .page-arrows {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body[data-page="home"] .page-arrows.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Piece pages: fixed control — match .page-arrows a + left chevron */
.piece-back-to-grid {
  position: fixed;
  top: calc(var(--header-offset) + 0.35rem);
  left: max(1rem, env(safe-area-inset-left, 0px));
  z-index: 850;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--arrow-size);
  padding: 0.45rem 0.85rem;
  width: auto;
  max-width: min(46vw, 14rem);
  border: 1px solid var(--border);
  background: var(--bg-arrows);
  backdrop-filter: blur(8px);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.piece-back-to-grid:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.piece-back-to-grid svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.piece-back-to-grid .arrow-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

/* ----- Footer ----- */

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ——— Tablet & phone: overlay menu + safe areas ——— */
@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--nav-h-touch);
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.65rem;
  }

  body {
    padding-top: var(--header-offset);
  }

  .site-nav {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    right: 0;
    /* Explicit height so overflow-y works reliably (top+bottom alone can fail on mobile) */
    height: calc(100vh - var(--header-offset));
    height: calc(100dvh - var(--header-offset));
    max-height: calc(100vh - var(--header-offset));
    max-height: calc(100dvh - var(--header-offset));
    z-index: 3000;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    row-gap: 0;
    padding: 1rem max(1rem, env(safe-area-inset-left, 0px))
      calc(1.5rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-right, 0px));
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    background: var(--bg-nav-overlay);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav .nav-dropdown {
    border-bottom: 1px solid var(--border);
  }

  .site-nav .nav-dropdown__trigger {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 0.75rem;
    min-height: 48px;
    border-bottom: none;
  }

  .site-nav > .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 0.75rem;
    min-height: 48px;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
  }

  /* Submenus closed until .nav-dropdown.is-open (accordion) */
  .site-nav .nav-dropdown__menu {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    box-shadow: none;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    margin: 0 0 0 0.5rem !important;
    padding: 0 0 0 0.75rem !important;
    border: none !important;
    border-left: 2px solid transparent !important;
    transition: max-height 0.35s ease, opacity 0.2s ease, padding 0.2s ease;
  }

  .site-nav .nav-dropdown.is-open .nav-dropdown__menu {
    max-height: min(80vh, 2000px);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.35rem !important;
    border-left-color: rgba(201, 169, 98, 0.35) !important;
  }

  .site-nav .nav-dropdown__menu a {
    padding: 0.65rem 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    border-radius: 4px;
  }

  .page-arrows {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  }

  .page-arrows a {
    max-width: min(48vw, 13rem);
    min-height: 48px;
    padding: 0.5rem 0.65rem;
  }

  .piece-back-to-grid {
    top: calc(var(--header-offset) + 0.3rem);
    left: max(0.5rem, env(safe-area-inset-left, 0px));
    max-width: min(48vw, 13rem);
    min-height: 48px;
    padding: 0.5rem 0.65rem;
  }

  .piece-back-to-grid .arrow-label {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .page-arrows .arrow-label {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .hero {
    min-height: calc(100dvh - var(--header-offset));
  }

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

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none !important;
  }

  .site-nav {
    position: static;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    background: transparent;
    inset: auto;
    padding: 0;
    margin: 0;
    transition: none;
  }
}
