:root {
  --font-base: "Monda", "Arial", "Helvetica Neue", system-ui, sans-serif;
  --font-accent: "Monda", "Arial", "Helvetica Neue", system-ui, sans-serif;

  /* Light mode */
  --color-background-light: #ffffff;
  --color-surface-light: #ffffff;
  --color-primary-light: #7a7a7a;
  --color-secondary-light: #e5e5e5;
  --color-highlight-light: #f2f2f2;
  --color-text-light: #7a7a7a;
  --color-muted-light: #7a7a7a;
  --hero-accent-light: linear-gradient(135deg, #e7eef7, #fef7ee);
  --section-tint-light: #f2f4f7;
  --section-divider-light: #d8dce3;

  /* Dark mode */
  --color-background-dark: #ffffff;
  --color-surface-dark: #ffffff;
  --color-primary-dark: #7a7a7a;
  --color-secondary-dark: #e5e5e5;
  --color-highlight-dark: #f2f2f2;
  --color-text-dark: #7a7a7a;
  --color-muted-dark: #7a7a7a;
  --hero-accent-dark: linear-gradient(135deg, #262d3f, #3b2742);
  --section-tint-dark: #202836;
  --section-divider-dark: #2d3544;

  /* Default tokens (light) */
  --color-background: var(--color-background-light);
  --color-surface: var(--color-surface-light);
  --color-primary: var(--color-primary-light);
  --color-secondary: var(--color-secondary-light);
  --color-highlight: var(--color-highlight-light);
  --color-text: var(--color-text-light);
  --color-muted: var(--color-muted-light);
  --hero-accent: var(--hero-accent-light);
  --section-tint: var(--section-tint-light);
  --section-divider: var(--section-divider-light);

  --header-bg: var(--color-background);
  --header-border: color-mix(in srgb, var(--color-primary) 20%, transparent);
  --footer-bg: var(--color-background);
  --footer-border: color-mix(in srgb, var(--color-primary) 14%, transparent);
  --nav-hover-bg: color-mix(in srgb, var(--color-primary) 14%, transparent);
  --nav-active-bg: color-mix(in srgb, var(--color-primary) 22%, transparent);

  --hero-overlay: linear-gradient(
    180deg,
    rgba(14, 18, 26, 0.25) 5%,
    rgba(14, 18, 26, 0.55) 100%
  );
  --hero-content-bg: linear-gradient(
    140deg,
    rgba(12, 16, 24, 0.6),
    rgba(12, 16, 24, 0.35)
  );

  --series-flowers-start: color-mix(
    in srgb,
    var(--color-highlight) 70%,
    var(--color-surface) 30%
  );
  --series-flowers-end: color-mix(
    in srgb,
    var(--color-secondary) 55%,
    var(--color-surface) 45%
  );
  --series-sea-start: color-mix(
    in srgb,
    var(--color-secondary) 55%,
    var(--color-background) 45%
  );
  --series-sea-end: color-mix(
    in srgb,
    var(--color-primary) 35%,
    var(--color-background) 65%
  );
  --series-sun-start: color-mix(
    in srgb,
    var(--color-highlight) 65%,
    var(--color-background) 35%
  );
  --series-sun-end: color-mix(
    in srgb,
    var(--color-primary) 45%,
    var(--color-highlight) 55%
  );

  --font-scale: 1;
  --space-scale: 1;
  --radius-scale: 1;

  --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.08);
  --radius-sm-base: 8px;
  --radius-lg-base: 16px;
  --radius-sm: calc(var(--radius-sm-base) * var(--radius-scale));
  --radius-lg: calc(var(--radius-lg-base) * var(--radius-scale));
  --space-1-base: 0.5rem;
  --space-2-base: 1rem;
  --space-3-base: 1.5rem;
  --space-4-base: 2.5rem;
  --space-5-base: 4rem;
  --space-1: calc(var(--space-1-base) * var(--space-scale));
  --space-2: calc(var(--space-2-base) * var(--space-scale));
  --space-3: calc(var(--space-3-base) * var(--space-scale));
  --space-4: calc(var(--space-4-base) * var(--space-scale));
  --space-5: calc(var(--space-5-base) * var(--space-scale));
  --nav-panel-width: min(360px, 85vw);
  --page-inset: var(--space-4);
  --header-height: 4.5rem;
}

body[data-theme="light"] {
  --color-background: var(--color-background-light);
  --color-surface: var(--color-surface-light);
  --color-primary: var(--color-primary-light);
  --color-secondary: var(--color-secondary-light);
  --color-highlight: var(--color-highlight-light);
  --color-text: var(--color-text-light);
  --color-muted: var(--color-muted-light);
  --hero-accent: var(--hero-accent-light);
  --section-tint: var(--section-tint-light);
  --section-divider: var(--section-divider-light);
}

body[data-theme="dark"] {
  --color-background: var(--color-background-dark);
  --color-surface: var(--color-surface-dark);
  --color-primary: var(--color-primary-dark);
  --color-secondary: var(--color-secondary-dark);
  --color-highlight: var(--color-highlight-dark);
  --color-text: var(--color-text-dark);
  --color-muted: var(--color-muted-dark);
  --hero-accent: var(--hero-accent-dark);
  --section-tint: var(--section-tint-dark);
  --section-divider: var(--section-divider-dark);
  --header-bg: color-mix(in srgb, var(--color-surface) 82%, transparent);
  --header-border: color-mix(in srgb, var(--color-primary) 35%, transparent);
  --footer-bg: color-mix(in srgb, var(--color-surface) 86%, transparent);
  --footer-border: color-mix(in srgb, var(--color-primary) 30%, transparent);
  --nav-hover-bg: color-mix(in srgb, var(--color-primary) 28%, transparent);
  --nav-active-bg: color-mix(in srgb, var(--color-primary) 40%, transparent);
  --hero-overlay: linear-gradient(
    180deg,
    rgba(7, 10, 16, 0.5) 5%,
    rgba(7, 10, 16, 0.78) 100%
  );
  --hero-content-bg: linear-gradient(
    140deg,
    rgba(5, 8, 13, 0.8),
    rgba(5, 8, 13, 0.55)
  );
  --series-flowers-start: color-mix(
    in srgb,
    var(--color-secondary) 30%,
    var(--color-background) 70%
  );
  --series-flowers-end: color-mix(
    in srgb,
    var(--color-highlight) 25%,
    var(--color-surface) 75%
  );
  --series-sea-start: color-mix(
    in srgb,
    var(--color-secondary) 35%,
    var(--color-background) 65%
  );
  --series-sea-end: color-mix(
    in srgb,
    var(--color-primary) 30%,
    var(--color-background) 70%
  );
  --series-sun-start: color-mix(
    in srgb,
    var(--color-highlight) 30%,
    var(--color-background) 70%
  );
  --series-sun-end: color-mix(
    in srgb,
    var(--color-primary) 35%,
    var(--color-surface) 65%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: calc(13px * var(--font-scale));
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  transition: background 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

strong {
  font-weight: 400;
}

body[data-page="home"] main {
  padding-top: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav__link:focus-visible {
  background: rgba(194, 213, 227, 0.45);
  background: var(--nav-hover-bg);
}

.site-header {
  font-size: calc(14px * var(--font-scale));
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: var(--color-surface);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(124, 144, 160, 0.15);
  border-bottom: 1px solid var(--header-border);
  color: #000;
  margin: 0;
}

.site-header a,
.site-header button {
  color: #000;
}

.site-header__inner {
  max-width: none;
  margin: 0 auto;
  padding: var(--space-2) var(--page-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  transition: transform 0.4s ease;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: nowrap;
  margin-left: auto;
  position: relative;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  /* border: 1px solid rgba(124, 144, 160, 0.45); */
  /* border: 1px solid var(--header-border); */
  background: var(--color-surface);
  /*color: var(--color-text);*/
  color: #000;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 24, 32, 0.12);
}

.nav-toggle__icon {
  position: relative;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.site-header[data-nav-open="true"] .nav-toggle__icon {
  background: transparent;
}

.site-header[data-nav-open="true"] .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-nav-open="true"] .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__label {
  font-weight: 400;
}

.brand {
  font-family: var(--font-accent);
  font-size: 1.5em;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.05;
  font-weight: 400;
}

.artist-name {
  font-family: var(--font-base);
  padding-left: var(--space-1);
  max-width: 12rem;
}

.brand__line {
  display: block;
}

.brand--signature {
  max-width: none;
  padding-left: 0;
  margin-left: -0.4rem;
  align-items: flex-start;
}

.brand__signature {
  display: block;
  width: min(165px, 30vw);
  max-height: 44px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.site-nav__list {
  display: grid;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, color 0.25s ease;
}

.site-nav .nav__link {
  display: block;
}

.nav__link:hover {
  background: rgba(194, 213, 227, 0.45);
  background: var(--nav-hover-bg);
}

.nav__link[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(194, 213, 227, 0.6);
  background: var(--nav-active-bg);
  font-weight: 400;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--nav-panel-width);
  height: 100vh;
  background: var(--color-background);
  border-left: 1px solid var(--header-border);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-4) var(--space-3);
  z-index: 1100;
  color: var(--color-text);
  transform: translateX(100%);
  transition: transform 0.4s ease, visibility 0s linear 0.4s;
  visibility: hidden;
  pointer-events: none;
}

.site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.4s ease;
}

.site-nav .nav__link {
  color: inherit;
}

main {
  padding: calc(var(--space-10) * 0.75) 0;
  transition: transform 0.4s ease;
}

.site-footer {
  transition: transform 0.4s ease;
}

.site-header[data-nav-open="true"] .site-header__inner,
.site-header[data-nav-open="true"] ~ main,
.site-header[data-nav-open="true"] ~ .site-footer {
  transform: translateX(calc(-1 * var(--nav-panel-width)));
}

body[data-page="artwork"] {
  background: var(--color-background);
  --header-height: 4.5rem;
}

body[data-page="artwork"] main {
  padding: 0;
  background: var(--color-background);
}

.paintings-scroll {
  display: flex;
  flex-direction: column;
  background: var(--color-background);
}

body[data-page="artwork"] .paintings-scroll {
  gap: var(--space-4);
  padding-bottom: calc(var(--space-5) * 1.1);
  /* Paintings are intentionally larger than the viewport (height-driven).
     This clips the overflow so narrow viewports see a partial view of each
     painting — the same immersive bleed effect as on desktop. */
  overflow-x: hidden;
}

.painting-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) 0 0;
  background: var(--color-background);
  justify-content: flex-start;
}

.painting-frame--left {
  align-items: flex-start;
}

.painting-frame--right {
  align-items: flex-end;
}

.painting-frame__image {
  height: calc((100vh - var(--header-height)) * 0.78);
  width: auto;
  max-width: 300vw;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.painting-caption {
  margin: var(--space-2) 0 0;
  max-width: min(720px, 90vw);
  font-size: calc(0.7rem * 1.275);
  color: var(--color-muted);
  text-align: inherit;
}

.painting-frame--left .painting-caption {
  padding-left: var(--space-2);
}

.painting-frame--right .painting-caption {
  padding-right: var(--space-2);
}

.painting-caption strong {
  font-weight: 600;
  color: #000;
}

.painting-frame__link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: inherit;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.painting-frame--right .painting-frame__link {
  align-items: flex-end;
}

.painting-frame__link:hover .painting-frame__image,
.painting-frame__link:focus-visible .painting-frame__image {
  transform: translateY(-4px);
}

body.painting-detail-page {
  background: var(--color-background);
}

body.painting-detail-page main.painting-detail {
  padding: calc(var(--space-5) * 0.5) 0 var(--space-4);
  background: var(--color-background);
}

body.painting-detail-page .painting-detail__story,
body.painting-detail-page .painting-detail__story p,
body.painting-detail-page .painting-detail__title,
body.painting-detail-page .painting-detail__eyebrow {
  color: var(--color-text);
}

body.painting-detail-page .painting-detail__story p {
  font-size: calc(12.8px * var(--font-scale));
}

.scroll-progress {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0.6rem;
  z-index: 1500;
}

.scroll-progress__dot {
  width: 6px;
  height: 20px;
  border: none;
  padding: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.scroll-progress__dot.is-active {
  background: #000;
}

@media (max-width: 720px) {
  .scroll-progress {
    display: none;
  }
}

.sculpture-detail-page .painting-frame__image {
  width: auto;
  max-width: 100vw;
  max-height: 122vh;
  height: auto;
  display: block;
}

.sculpture-detail-page .painting-frame + .painting-frame {
  margin-top: var(--space-4);
}

.sculpture-detail-page .painting-detail__caption {
  color: var(--color-muted);
  font-size: calc(0.7rem * 1.275);
  text-align: inherit;
  max-width: 90vw;
  margin-top: var(--space-2);
}

.sculpture-detail-page .painting-frame--left .painting-detail__caption {
  padding-left: var(--space-2);
  margin-right: auto;
}

.sculpture-detail-page .painting-frame--right .painting-detail__caption {
  padding-right: var(--space-2);
  margin-left: auto;
}

.sculpture-detail-page .painting-frame__link {
  width: 100%;
}

.sculpture-detail-page .painting-frame--left .painting-frame__link {
  align-items: flex-start;
  text-align: left;
}

.sculpture-detail-page .painting-frame--right .painting-frame__link {
  align-items: flex-end;
  text-align: right;
}

.sculpture-detail-page .painting-frame--left .painting-frame__image {
  margin-left: 0;
  margin-right: auto;
}

.sculpture-detail-page .painting-frame--right .painting-frame__image {
  margin-left: auto;
  margin-right: 0;
}

.sculpture-detail-page .paintings-scroll,
.sculpture-detail-page .painting-frame {
  width: 100%;
  overflow-x: hidden;
}

.sculpture-detail-page .painting-frame--left {
  align-items: flex-start;
}

.sculpture-detail-page .painting-frame--right {
  align-items: flex-end;
}

.sculpture-hero__image {
  width: 90%;
  height: auto;
  display: block;
}

.painting-detail__hero {
  padding: calc(var(--space-4) * 0.5) 0;
}

.painting-detail__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.painting-detail__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
}

.painting-detail__media img {
  width: min(calc(630px * 0.9), calc(63vw * 0.9));
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: var(--color-surface);
}

.painting-detail__caption {
  margin: 0;
  font-size: 0.595rem;
  color: var(--color-muted);
  text-align: center;
}

body.painting-detail-page .painting-detail__caption {
  font-size: calc(0.7rem * 0.9775);
}

body.painting-detail-page--la-guerra-che-verra-2025 .painting-detail__media img {
  width: min(calc(630px * 1.0125), calc(63vw * 1.0125));
}

body.painting-detail-page--la-guerra-che-verra-2025 .painting-detail__caption {
  font-size: calc(0.7rem * 1.275);
}

body.painting-detail-page--tronchi-2023 .painting-detail__media img,
body.painting-detail-page--ulivo-di-malta-2023 .painting-detail__media img {
  width: min(calc(630px * 1.05), calc(63vw * 1.05));
}

.painting-detail__caption strong,
.painting-lightbox__caption strong {
  font-weight: 600;
  color: #000;
}

.painting-detail__trigger {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  border: none;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

.painting-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(var(--space-3) + env(safe-area-inset-top))
           calc(var(--space-3) + env(safe-area-inset-right))
           calc(var(--space-3) + env(safe-area-inset-bottom))
           calc(var(--space-3) + env(safe-area-inset-left));
  background: rgba(10, 12, 16, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  z-index: 2000;
}

.painting-lightbox__inner {
  position: relative;
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  max-width: min(1200px, 92vw);
  max-height: 92vh;
  transform: scale(0.92);
  transition: transform 0.45s ease;
}

.painting-lightbox__inner img {
  max-height: 85vh;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  align-self: center;
}

.painting-lightbox__caption {
  margin: 0;
  font-size: 0.7rem;
  color: var(--color-muted);
  text-align: center;
}

.painting-lightbox.is-open .painting-lightbox__caption {
  color: #fff;
}

.painting-lightbox.is-open .painting-lightbox__caption strong {
  color: #fff;
}

.painting-lightbox__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  border: none;
  padding: 0;
  width: 44px;
  height: 44px;
  background: transparent;
  color: #f5f7ff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.painting-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

.painting-lightbox.is-open .painting-lightbox__inner {
  transform: scale(1);
}

body.is-lightbox-open {
  overflow: hidden;
}

[data-lightbox] {
  touch-action: manipulation;
}

@media (max-width: 480px) {
  .painting-lightbox {
    padding: var(--space-2);
  }
}

@media (max-height: 480px) {
  .painting-lightbox {
    padding: var(--space-1);
  }
  .painting-lightbox__inner img {
    max-height: 70vh;
  }
}

.painting-detail__story {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-1) 0;
  width: min(calc(630px * 1.2), 90vw);
  margin: 0 auto;
  text-align: left;
}

.painting-detail__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}

.painting-detail__title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
}

.painting-detail__story p {
  margin: 0;
  line-height: 1.7;
  color: var(--color-text);
}

.painting-detail__thumbs {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-3);
  max-width: 620px;
  width: 100%;
  justify-items: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.painting-detail__video {
  padding: var(--space-4) 0 var(--space-5);
}

.painting-detail__video .wrapper {
  display: grid;
  place-items: center;
}

.painting-detail__video-player {
  width: min(960px, 92vw);
  max-height: 70vh;
  background: #000;
}

.painting-detail__thumb {
  border: none;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.painting-detail__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.painting-detail__thumb::after {
  content: "+";
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: #000;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.painting-detail__thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
  position: relative;
  z-index: 0;
}

.painting-detail__thumb:hover img,
.painting-detail__thumb:focus-visible img {
  transform: translateY(-2px);
}

.painting-detail__thumb:hover::before,
.painting-detail__thumb:focus-visible::before {
  background: rgba(255, 255, 255, 0.8);
}

.painting-detail__thumb:hover::after,
.painting-detail__thumb:focus-visible::after {
  opacity: 1;
}

/* --- BLU triptych --- */
.painting-detail__triptych-section {
  padding: var(--space-4) 0;
}

.painting-detail__triptych {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-3);
  align-items: flex-start;
  justify-content: center;
}

.painting-detail__triptych-panel {
  flex: 0 0 auto;
  min-width: 0;
  border: none;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.painting-detail__triptych-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.25s ease;
  z-index: 1;
}

.painting-detail__triptych-panel::after {
  content: "+";
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  line-height: 3.5rem;
  text-align: center;
  color: #000;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.painting-detail__triptych-panel img {
  height: 48vh;
  width: auto;
  max-width: none;
  display: block;
  transition: transform 0.3s ease;
}

.painting-detail__triptych-panel:hover::before,
.painting-detail__triptych-panel:focus-visible::before {
  background: rgba(255, 255, 255, 0.8);
}

.painting-detail__triptych-panel:hover::after,
.painting-detail__triptych-panel:focus-visible::after {
  opacity: 1;
}

.painting-detail__triptych-panel:hover img,
.painting-detail__triptych-panel:focus-visible img {
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .painting-detail__triptych {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .painting-detail__triptych-panel img {
    height: auto;
    width: 100%;
    max-width: 100%;
  }
}

.wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.wrapper--hero {
  width: 100%;
  margin: 0;
  padding: 0;
}

.wrapper--wide {
  width: 100%;
  margin: 0;
  padding: 0;
}

.page-intro {
  margin-bottom: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.page-intro__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.page-intro__headline {
  font-family: var(--font-accent);
  font-size: clamp(
    2rem,
    calc(5vw * var(--font-scale)),
    3.25rem
  );
  margin: 0;
  line-height: 1.2;
}

.page-intro__copy {
  max-width: 620px;
  color: var(--color-muted);
}

.info-cards {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.35rem;
}

.info-card__label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.info-card__title {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  margin: 0;
}

.info-card__meta {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.hero {
  position: relative;
  height: calc(100vh - var(--header-height) - 4rem);
  min-height: 22rem;
  width: auto;
  max-width: none;
  margin: var(--space-2) var(--page-inset);
  --hero-fade-duration: 1.2s;
  --hero-bg-duration: 0.6s;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  background: var(--hero-accent);
  box-shadow: none;
  transition: background var(--hero-bg-duration) ease;
}

.hero.is-manual {
  --hero-fade-duration: 0.9s;
  --hero-bg-duration: 0.5s;
}

.hero__visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(110%);
  opacity: 0;
  transition: opacity var(--hero-fade-duration) ease;
  pointer-events: none;
}

.hero__visual--current {
  opacity: 1;
}

.hero__visual--next {
  opacity: 0;
}

.hero.is-transitioning .hero__visual--current {
  opacity: 1;
}

.hero.is-transitioning .hero__visual--next {
  opacity: 1;
}

/* .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
} */

.hero__content {
  position: relative;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  color: var(--color-text);
  max-width: 520px;
  z-index: 1;
  backdrop-filter: blur(10px);
  background: var(--hero-content-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border: 1px solid color-mix(in srgb, var(--color-surface) 28%, transparent);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__headline {
  font-family: var(--font-accent);
  font-size: clamp(
    2.25rem,
    calc(6vw * var(--font-scale)),
    3.5rem
  );
  margin: 0.75rem 0;
}

.hero__subhead {
  max-width: 420px;
  color: var(--color-muted);
  font-size: 1rem;
}

/* hero__top used when additional header content is present */
.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.hero__details {
  display: grid;
  gap: 0.5rem;
  margin: var(--space-1) 0 0;
  padding: 0;
  list-style: none;
}

.hero__detail {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero__detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--color-muted);
}

.hero__detail-value {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.hero__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2);
  pointer-events: none;
  z-index: 2;
}

.hero__nav {
  pointer-events: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(0);
}

.hero__nav--prev {
  transform: translateX(-0.75rem);
}

.hero__nav--next {
  transform: translateX(0.75rem);
}

.hero:hover .hero__nav,
.hero:focus-within .hero__nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero__nav:hover {
  background: transparent;
  transform: translateY(-2px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.lang-switch__btn {
  appearance: none;
  border: none;
  background: none;
  color: #000;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.1rem 0.2rem;
  border-radius: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.lang-switch__btn.is-active {
  opacity: 1;
  color: #000;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}

.lang-switch__btn:not(.is-active):hover {
  opacity: 0.85;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.series-showcase {
  padding: var(--space-5) 0;
}

.series-showcase__inner {
  display: grid;
  gap: var(--space-4);
}

.series-showcase__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}

.series-showcase__eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.series-showcase__title {
  font-family: var(--font-accent);
  font-size: clamp(
    2rem,
    calc(5vw * var(--font-scale)),
    3rem
  );
  margin: 0;
}

.series-showcase__copy {
  color: var(--color-muted);
  margin: 0 auto;
}

.series-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 0;
  box-shadow: none;
  min-height: clamp(420px, 80vh, 760px);
  position: relative;
  overflow: hidden;
}

.series-card--flowers {
  background: linear-gradient(135deg, #fff6fb, #ffe7f1);
  background: linear-gradient(135deg, var(--series-flowers-start), var(--series-flowers-end));
}

.series-card--sea {
  background: linear-gradient(135deg, #eaf6ff, #d7f1ff);
  background: linear-gradient(135deg, var(--series-sea-start), var(--series-sea-end));
}

.series-card--sun {
  background: linear-gradient(135deg, #fff4e1, #ffe4c7);
  background: linear-gradient(135deg, var(--series-sun-start), var(--series-sun-end));
}

.series-card__visual {
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: stretch;
}

.series-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(110%);
}

.series-card__body {
  display: grid;
  gap: 0.8rem;
  align-content: center;
  max-width: 580px;
}

.series-card__label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.series-card__heading {
  font-family: var(--font-accent);
  font-size: clamp(
    2rem,
    calc(4vw * var(--font-scale)),
    3rem
  );
  margin: 0;
}

.series-card__copy {
  font-size: 1.05rem;
  color: var(--color-text);
}

.series-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-primary);
}

.series-card__cta::after {
  content: "→";
  font-size: 0.95rem;
}

.series-detail-hero {
  padding: var(--space-5) 0 var(--space-4);
  color: var(--color-text);
}

.series-detail-hero--flowers {
  background: linear-gradient(135deg, #fff6fb, #ffe7f1);
  background: linear-gradient(135deg, var(--series-flowers-start), var(--series-flowers-end));
}

.series-detail-hero--sea {
  background: linear-gradient(135deg, #eaf6ff, #cee9ff);
  background: linear-gradient(135deg, var(--series-sea-start), var(--series-sea-end));
}

.series-detail-hero--sun {
  background: linear-gradient(135deg, #fff4e1, #ffe0c1);
  background: linear-gradient(135deg, var(--series-sun-start), var(--series-sun-end));
}

.series-detail-hero__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: center;
}

.series-detail-hero__copy {
  display: grid;
  gap: 1rem;
}

.series-detail-hero__eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.series-detail-hero__title {
  font-family: var(--font-accent);
  font-size: clamp(
    2.4rem,
    calc(6vw * var(--font-scale)),
    3.5rem
  );
  margin: 0;
}

.series-detail-hero__lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0;
}

.series-detail-hero__media img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  max-height: 520px;
}

.series-detail__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
  display: grid;
  gap: 0.4rem;
}

.series-detail__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-primary);
}

.series-detail {
  padding: var(--space-4) 0 var(--space-2);
}

.series-detail__grid {
  display: grid;
}

.series-detail__panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
}

.series-detail__stats {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.series-detail__stats div {
  display: grid;
  gap: 0.2rem;
}

.series-detail__stats dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}

.series-detail__stats dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
}

.series-detail-gallery {
  padding: var(--space-4) 0 var(--space-5);
}

.series-detail-gallery__inner {
  display: grid;
  gap: var(--space-3);
}

.series-detail-gallery__title {
  font-family: var(--font-accent);
  font-size: 2rem;
  margin: 0;
}

.series-detail-gallery__card {
  background: var(--color-surface);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.series-detail-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-detail-gallery__body {
  padding: var(--space-3);
  display: grid;
  gap: 0.4rem;
}

.series-detail-gallery__meta {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

.series-detail-gallery__heading {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  margin: 0;
}

.series-detail-gallery__copy {
  margin: 0;
  color: var(--color-muted);
}

.section {
  position: relative;
  padding: var(--space-2) 0;
}

.section > .wrapper {
  position: relative;
  z-index: 1;
}

.section--divider {
  border-top: 1px solid var(--section-divider);
}

.section--tint {
  background: var(--section-tint);
}


.section-header {
  display: grid;
  gap: 0.6rem;
  margin-bottom: var(--space-3);
}

.section-header__eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.section-header__title {
  font-family: var(--font-accent);
  font-size: 2rem;
  margin: 0;
}

.section-header__copy {
  margin: 0;
  max-width: 640px;
  color: var(--color-muted);
}

.section-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-primary);
}

.section-header__cta::after {
  content: "→";
  font-size: 0.95rem;
}

.section-header--center {
  text-align: center;
  align-items: center;
}

.section-header--center .section-header__copy {
  margin: 0 auto;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-3);
}

.filter-chip {
  border: 1px solid var(--section-divider);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  gap: var(--space-3);
}

.portfolio-card {
  background: var(--color-surface);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-2);
  display: grid;
  gap: var(--space-2);
}

.portfolio-card__media {
  border-radius: 0;
  overflow: hidden;
  background: var(--color-background);
  aspect-ratio: 4 / 3;
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card__body {
  display: grid;
  gap: 0.5rem;
}

.portfolio-card__meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.portfolio-card__title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 1.5rem;
}

.portfolio-card__details {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.portfolio-card__copy {
  margin: 0;
  color: var(--color-muted);
}

.portfolio-card__status {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
}

.portfolio-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.portfolio-card__link::after {
  content: "→";
  font-size: 0.9rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.timeline-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-2);
  display: grid;
  gap: var(--space-2);
}

.timeline-item__year {
  font-size: 1.1rem;
  font-family: var(--font-accent);
  color: var(--color-primary);
}

.timeline-item__body {
  display: grid;
  gap: 0.4rem;
}

.timeline-item__date {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.timeline-item__title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 1.4rem;
}

.timeline-item__meta,
.timeline-item__highlight {
  margin: 0;
  color: var(--color-muted);
}

.timeline-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.timeline-item__link::after {
  content: "→";
}

.journal-grid {
  display: grid;
  gap: var(--space-3);
}

.journal-card {
  background: var(--color-surface);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: grid;
}

.journal-card__media {
  aspect-ratio: 16 / 9;
  background: var(--color-background);
}

.journal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-card__body {
  padding: var(--space-2);
  display: grid;
  gap: 0.5rem;
}

.journal-card__meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.journal-card__title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 1.4rem;
}

.journal-card__copy {
  margin: 0;
  color: var(--color-muted);
}

.journal-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-chip {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--color-secondary);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.media-grid {
  display: grid;
  gap: var(--space-3);
}

.media-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-2);
  display: grid;
  gap: var(--space-2);
}

.media-card__header {
  display: grid;
  gap: 0.4rem;
}

.media-card__body {
  display: grid;
  gap: 0.75rem;
}

.media-card audio {
  width: 100%;
}

.media-card__title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 1.4rem;
}

.media-card__copy {
  margin: 0;
  color: var(--color-muted);
}

.media-card__poster {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-background);
}

.media-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(11, 15, 22, 0.3), rgba(11, 15, 22, 0.65));
}

.media-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.media-card__link::after {
  content: "→";
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.gallery-strip::-webkit-scrollbar {
  height: 0.4rem;
}

.gallery-strip::-webkit-scrollbar-thumb {
  background: rgba(124, 144, 160, 0.4);
  border-radius: 999px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.feature-card__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #dfe4ea;
}

.feature-card__body {
  padding: var(--space-2);
  display: grid;
  gap: 0.4rem;
}

.feature-card__title {
  font-family: var(--font-accent);
  margin: 0;
}

.feature-card__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.gallery-grid {
  display: grid;
  gap: var(--space-2);
}

.gallery-card {
  background: var(--color-surface);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.gallery-card__body {
  padding: var(--space-2);
  display: grid;
  gap: 0.4rem;
}

.gallery-card__title {
  font-family: var(--font-accent);
  margin: 0;
}

.gallery-card__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.artwork-list {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-5) auto;
  padding: var(--space-4) 0;
}

.artwork-list--wide {
  width: min(1600px, 98vw);
  margin: var(--space-5) auto;
}

.artwork-item {
  display: grid;
  gap: var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-2);
  max-width: 1200px;
  margin: 0 auto;
  min-height: clamp(300px, 48vh, 560px);
  align-items: center;
  align-content: center;
  opacity: 0.15;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.artwork-item.is-active {
  opacity: 1;
  transform: translateY(0);
}

.artwork-list--wide .artwork-item {
  max-width: 100%;
}

.artwork-item__media {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-background);
}

.artwork-item__image,
.artwork-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-item__body {
  display: grid;
  gap: 0.6rem;
}

.artwork-item__title {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  margin: 0;
}

.artwork-item__meta {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.artwork-item__copy {
  color: var(--color-muted);
}

.artwork-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.artwork-item__link::after {
  content: "→";
  font-size: 0.9rem;
}

.exhibitions-page {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.exhibitions-page__header {
  display: grid;
  gap: 0.8rem;
}

.exhibitions-page__note {
  margin: 0;
  color: var(--color-muted);
}

.exhibitions-page__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.exhibitions-page__tab {
  border: 1px solid rgba(124, 144, 160, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  padding: 0.35rem 0.95rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.exhibitions-page__tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.exhibitions-page__panels {
  position: relative;
}

.exhibitions-page__panel {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.exhibitions-page__panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bio-section {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-2);
}

.bio-section__title {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  margin: 0;
}

.bio-section__lead {
  font-size: 1.05rem;
  color: var(--color-muted);
}

.bio-section h3 {
  margin: var(--space-2) 0 var(--space-1);
  font-family: var(--font-accent);
  font-size: 1.35rem;
}

.bio-section ul {
  padding-left: 1.2rem;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--color-muted);
}

.bio-header {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
  align-items: start;
  margin-bottom: var(--space-4);
}

.bio-header__media {
  width: 100%;
  max-width: 396px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.bio-header__content {
  display: grid;
  gap: var(--space-2);
  justify-self: end;
}

.bio-header__title {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, calc(2.4vw * var(--font-scale)), 2.4rem);
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.bio-quickfacts {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
}

.bio-story {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
  font-size: 1.05rem;
  color: #000;
}

.bio-header__content .bio-story {
  max-width: 720px;
  margin: 0 0 0 auto;
  padding-right: var(--space-3);
}

body[data-page="bio"] .bio-header__media {
  max-width: 340px;
  padding-left: var(--space-2);
  padding-top: calc(var(--space-5) * 2);
}

.bio-photo-credit {
  margin: var(--space-1) 0 0 var(--space-2);
  font-size: 0.65rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

body[data-page="bio"] .bio-header {
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
}

body[data-page="bio"] .bio-header__media img {
  width: 100%;
  height: auto;
  display: block;
}

body[data-page="bio"] .bio-header__content {
  justify-self: start;
}

body[data-page="bio"] .bio-header__content .bio-story {
  margin: 0;
  padding-right: var(--space-4);
}

.bio-story p {
  margin: 0;
  color: inherit;
  font-size: calc(12.8px * var(--font-scale));
}

.bio-story a {
  color: inherit;
}

.bio-story__lede {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bio-cv {
  margin: var(--space-2) 0 0;
}

.bio-cv__link {
  font-style: italic;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.bio-panels {
  display: grid;
  gap: var(--space-2);
}

.bio-panel {
  background: var(--color-surface);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.6rem;
}

.bio-panel__title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 1.65rem;
}

.bio-panel__meta {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.bio-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--color-muted);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-2);
}

.contact-form__field {
  display: grid;
  gap: 0.45rem;
}

.contact-form__input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-form label {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--section-divider);
  background: var(--color-background);
  color: var(--color-text);
}

.contact-form__input-row input {
  flex: 1;
  min-width: 0;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form__field.is-invalid input,
.contact-form__field.is-invalid textarea {
  border-color: var(--color-primary);
}

.contact-form__required {
  color: var(--color-primary);
  margin-left: 0.2rem;
}

.contact-form__status {
  min-width: 1.2rem;
  font-size: 1.1rem;
  text-align: center;
}

.contact-form__status[data-state="valid"] {
  color: var(--color-secondary);
}

.contact-form__status[data-state="invalid"] {
  color: var(--color-primary);
}

.contact-form__error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-primary);
}

.contact-form__submit {
  justify-self: start;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.8rem;
  background: var(--color-primary);
  color: var(--color-background);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 24, 32, 0.12);
}

.contact-form__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  gap: var(--space-2);
  max-width: 640px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-surface);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.6rem;
}

.contact-card__label {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-card__link {
  color: var(--color-primary);
  font-weight: 400;
}

.site-footer {
  background: var(--color-surface);
  background: var(--footer-bg);
  border-top: 1px solid rgba(124, 144, 160, 0.15);
  border-top: 1px solid var(--footer-border);
  padding: var(--space-4) 0 var(--space-2);
  margin-top: var(--space-5);
}

.site-footer__inner {
  width: min(960px, 90vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 0.9rem;
  gap: var(--space-2);
}

.social-links {
  display: flex;
  gap: var(--space-1);
}

.social-links a {
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease;
}

.social-links a:hover {
  background: rgba(194, 213, 227, 0.45);
  background: var(--nav-hover-bg);
}

@media (min-width: 600px) {
  .info-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .artwork-item {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .artwork-item--reverse {
    grid-template-columns: 1fr 1.2fr;
  }

  .artwork-item--reverse .artwork-item__media {
    order: 2;
  }

  .artwork-item--reverse .artwork-item__body {
    order: 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bio-panels {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .timeline-item {
    grid-template-columns: 120px 1fr;
    align-items: start;
  }

  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  /* Keep the nav toggle button in place so users can close the menu;
     only main/footer slide — the header stays fixed */
  .site-header[data-nav-open="true"] .site-header__inner {
    transform: none;
  }

  .series-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .series-card__visual {
    min-height: 320px;
  }

  .series-detail-hero__inner,
  .series-detail-gallery__card {
    grid-template-columns: 1fr;
  }

  .series-detail-hero__media img {
    max-height: none;
  }

  .painting-detail__hero-inner {
    grid-template-columns: 1fr;
  }

  .bio-header {
    grid-template-columns: 1fr;
  }

  .bio-header__content {
    justify-self: start;
  }

  .bio-header__content .bio-story {
    margin-left: 0;
  }
}

/* Portrait phones/tablets: switch painting images to width-driven sizing so
   wide/landscape paintings don't produce an extreme horizontal sliver.
   Width 115vw gives a deliberate 7.5vw bleed on each side — preserving the
   off-edge immersive feel — while max-height prevents the image from
   growing taller than the screen. Desktop and landscape are unaffected. */
@media (orientation: portrait) and (max-width: 900px) {
  .painting-frame__image {
    width: 115vw;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: var(--space-1);
  }

  .site-header__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-toggle {
    width: auto;
  }

  .site-nav {
    right: 0;
    left: auto;
    width: min(240px, 90vw);
  }

  .hero {
    margin: 0;
    height: auto;
    min-height: 22rem;
  }

  .hero__content {
    padding: var(--space-3);
  }

  .bio-section,
  .contact-grid {
    padding: var(--space-3);
  }

  .artwork-item {
    grid-template-columns: 1fr;
  }

  .hero__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .bio-header__media {
    margin-bottom: var(--space-2);
  }

  body[data-page="bio"] .bio-header {
    grid-template-columns: 1fr;
  }

  body[data-page="bio"] .bio-header__media {
    padding-left: 0;
    padding-top: var(--space-3);
    max-width: 280px;
  }

  body[data-page="bio"] .bio-header__content .bio-story {
    padding-right: 0;
  }

  .series-showcase__header {
    text-align: left;
  }

  .series-detail-gallery__body {
    padding: var(--space-2);
  }

  .painting-detail__hero {
    padding: var(--space-3) 0;
  }

  .painting-detail__story {
    padding: var(--space-2);
  }

  .painting-detail__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sculpture-detail-page .painting-frame__image {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}

@media (max-width: 480px) {
  /* --- Wrapper: give text sections breathing room from screen edges --- */
  .wrapper {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  /* --- Global scale: tighten spacing and type uniformly on small phones --- */
  :root {
    --space-scale: 0.82;
    --font-scale: 0.92;
  }

  /* --- Header --- */
  /* Reduce the large right-side padding that squeezes brand + actions */
  .site-header__inner {
    padding: var(--space-1) var(--space-2);
  }

  /* Icon alone is sufficient on tiny screens; hiding the "MENU" text label */
  .nav-toggle__label {
    display: none;
  }

  /* Prevent an oversized brand signature from taking too much header space */
  .brand__signature {
    max-height: 32px;
    width: auto;
  }

  /* --- Hero --- */
  .hero__headline {
    font-size: 2.2rem;
  }

  .hero__subhead {
    font-size: 0.95rem;
  }

  .hero__controls {
    padding: 0 var(--space-1);
  }

  /* --- Info cards --- */
  .info-cards {
    gap: var(--space-1);
  }

  /* --- Page intro --- */
  .page-intro {
    margin-bottom: var(--space-3);
  }

  /* --- Painting detail thumbnails: keep 2 columns at 480px (same as 720px) --- */
  .painting-detail__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }

  /* --- Bio header image: ensure it never overflows on very small screens --- */
  .bio-header__media,
  body[data-page="bio"] .bio-header__media {
    max-width: 100%;
    padding-left: 0;
  }

  /* --- Sculpture detail page images --- */
  .sculpture-detail-page .painting-frame__image {
    width: 100%;
    max-width: 100%;
  }

  /* --- Contact form: stack the email input + status icon vertically --- */
  .contact-form__input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__status {
    text-align: left;
  }
}

/* Nav backdrop — appears behind the nav panel so clicking outside closes it.
   z-index must be BELOW the header (1000) because site-header has backdrop-filter
   which creates a new stacking context — the nav panel's z-index:1100 is relative
   to that context, making the whole header compete at 1000 in the root. */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.nav-backdrop.is-active {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }

  .hero__nav,
  .artwork-item,
  .exhibitions-page__panel,
  .painting-lightbox,
  .painting-lightbox__inner {
    transition: none;
    animation: none;
  }

  .artwork-item {
    opacity: 1;
    transform: none;
  }
}
/* ── CV page ────────────────────────────────────────── */
.cv-page {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: var(--space-5);
}

.cv-page__name {
  font-size: clamp(1.5rem, 2.0vw, 1.8rem);
  font-weight: 700;
  color: #000;
  margin: 0 0 var(--space-1);
}

.cv-page__tagline {
  font-size: calc(1.08rem - 0.5px);
  color: var(--color-muted);
  margin: 0 0 var(--space-4);
  line-height: 1.6;
}

.cv-section {
  margin-bottom: var(--space-4);
}

.cv-section__heading {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #000;
  margin: 0 0 var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--color-secondary);
}

.cv-entry {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 var(--space-3);
  padding: calc(var(--space-1) * 0.75) 0;
  border-top: 1px solid color-mix(in srgb, var(--color-secondary) 60%, transparent);
}

.cv-entry:first-of-type {
  border-top: none;
}

.cv-entry__year {
  font-size: 0.98rem;
  font-weight: 700;
  color: #000;
  padding-top: 0.15em;
  white-space: nowrap;
}

.cv-entry__text {
  font-size: calc(1.08rem - 0.5px);
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

.cv-entry__text strong {
  color: #000;
  font-weight: 600;
}

.cv-entry__text p {
  margin: 0 0 0.25em;
}

.cv-entry__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .cv-page__name {
    font-size: 1.1rem;
  }

  .cv-page__tagline {
    font-size: 0.85rem;
  }

  .cv-section__heading {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .cv-entry__year {
    font-size: 0.82rem;
  }

  .cv-entry__text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .cv-entry {
    grid-template-columns: 48px 1fr;
    gap: 0 var(--space-2);
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  background: color-mix(in srgb, var(--color-surface) 85%, transparent);
  box-shadow: 0 8px 18px rgba(27, 38, 45, 0.15);
  cursor: pointer;
  color: var(--color-primary);
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  background: color-mix(in srgb, var(--color-surface) 95%, transparent);
}

.theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}
