@font-face {
  font-family: "Mistral Local";
  src: url("assets/fonts/MISTRAL.TTF") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --paper: #20344e;
  --ink: #fff8ea;
  --muted: #d9cba9;
  --line: rgba(255, 248, 234, 0.22);
  --coral: #c94f3b;
  --blue: #355f8e;
  --green: #7fa889;
  --yellow: #d9a65b;
  --rose: #c77667;
  --mint: #a9c8bd;
  --white: #fff8ea;
  --panel: rgba(255, 248, 234, 0.9);
  --panel-ink: #20344e;
  --shadow: 0 24px 70px rgba(10, 18, 31, 0.34);
  --base-a: #20344e;
  --base-b: #2d4d70;
  --base-c: #243f54;
  --base-d: #1f3e4c;
  --wash-a-color: 169, 200, 189;
  --wash-b-color: 201, 79, 59;
  --wash-c-color: 217, 166, 91;
  --brush-a-color: 199, 118, 103;
  --brush-b-color: 169, 200, 189;
  --brush-c-color: 217, 166, 91;
  --brush-d-color: 201, 79, 59;
  --header-bg: rgba(28, 48, 73, 0.86);
  --surface-bg: rgba(255, 248, 234, 0.12);
  --section-wash: linear-gradient(135deg, rgba(201, 79, 59, 0.34), transparent 42%),
    linear-gradient(90deg, rgba(255, 248, 234, 0.08), rgba(169, 200, 189, 0.12));
  --wash-a-x: 78%;
  --wash-a-y: 8%;
  --wash-b-x: 10%;
  --wash-b-y: 18%;
  --wash-c-x: 55%;
  --wash-c-y: 64%;
  --wash-a-opacity: 0.28;
  --wash-b-opacity: 0.26;
  --wash-c-opacity: 0.14;
  --wash-tilt: 130deg;
  --brush-a-x: 18%;
  --brush-b-x: 86%;
  --brush-c-y: 78%;
  --brush-d-x: 66%;
  --brush-rotate: -7deg;
  --stroke-reveal: 0;
}

body.page-gallery {
  --base-a: #547866;
  --base-b: #7fa889;
  --base-c: #496f68;
  --base-d: #2e4e58;
  --wash-a-color: 255, 248, 234;
  --wash-b-color: 201, 79, 59;
  --wash-c-color: 53, 95, 142;
  --brush-a-color: 217, 166, 91;
  --brush-b-color: 169, 200, 189;
  --brush-c-color: 255, 248, 234;
  --brush-d-color: 199, 118, 103;
  --header-bg: rgba(54, 85, 76, 0.88);
  --surface-bg: rgba(255, 248, 234, 0.16);
  --section-wash: linear-gradient(135deg, rgba(169, 200, 189, 0.3), transparent 40%),
    linear-gradient(90deg, rgba(255, 248, 234, 0.12), rgba(53, 95, 142, 0.12));
}

body.page-exhibitions {
  --base-a: #bd745f;
  --base-b: #c77667;
  --base-c: #d59b75;
  --base-d: #7c6f68;
  --wash-a-color: 255, 248, 234;
  --wash-b-color: 53, 95, 142;
  --wash-c-color: 169, 200, 189;
  --brush-a-color: 201, 79, 59;
  --brush-b-color: 217, 166, 91;
  --brush-c-color: 169, 200, 189;
  --brush-d-color: 53, 95, 142;
  --header-bg: rgba(137, 82, 72, 0.88);
  --surface-bg: rgba(255, 248, 234, 0.14);
  --section-wash: linear-gradient(135deg, rgba(255, 248, 234, 0.14), rgba(199, 118, 103, 0.2) 44%, transparent 72%),
    linear-gradient(90deg, rgba(53, 95, 142, 0.12), rgba(169, 200, 189, 0.12));
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  padding-bottom: 92px;
  background:
    radial-gradient(ellipse at var(--wash-a-x) var(--wash-a-y), rgba(var(--wash-a-color), var(--wash-a-opacity)), transparent 310px),
    radial-gradient(ellipse at var(--wash-b-x) var(--wash-b-y), rgba(var(--wash-b-color), var(--wash-b-opacity)), transparent 340px),
    radial-gradient(ellipse at var(--wash-c-x) var(--wash-c-y), rgba(var(--wash-c-color), var(--wash-c-opacity)), transparent 520px),
    linear-gradient(var(--wash-tilt), var(--base-a) 0%, var(--base-b) 38%, var(--base-c) 68%, var(--base-d) 100%),
    var(--base-a);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 700ms ease;
}

body.page-enter {
  animation: page-color-in 520ms ease both;
}

body.page-exit {
  opacity: 0;
  transform: translateY(10px) scale(0.992);
  filter: blur(3px);
  transition:
    opacity 380ms ease,
    transform 380ms ease,
    filter 380ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(106deg, transparent 5%, rgba(217, 166, 91, 0.16) 12%, transparent 26%),
    linear-gradient(74deg, transparent 38%, rgba(169, 200, 189, 0.16) 48%, transparent 62%),
    linear-gradient(158deg, transparent 58%, rgba(201, 79, 59, 0.13) 66%, transparent 78%),
    repeating-linear-gradient(
      94deg,
      rgba(255, 248, 234, 0.045) 0 2px,
      transparent 2px 18px
    );
  mix-blend-mode: screen;
  opacity: 0.82;
}

body::after {
  position: fixed;
  inset: -14vh -12vw;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at var(--brush-a-x) 18%, rgba(var(--brush-a-color), 0.26), transparent 28%),
    radial-gradient(ellipse at var(--brush-b-x) 31%, rgba(var(--brush-b-color), 0.24), transparent 31%),
    radial-gradient(ellipse at 42% var(--brush-c-y), rgba(var(--brush-c-color), 0.18), transparent 34%),
    radial-gradient(ellipse at var(--brush-d-x) 72%, rgba(var(--brush-d-color), 0.18), transparent 30%);
  filter: blur(28px);
  opacity: 0.78;
  transform: rotate(var(--brush-rotate)) scale(1.04);
  transition: opacity 400ms ease, transform 400ms ease;
}

.paint-stroke-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.paint-stroke {
  position: absolute;
  width: min(42vw, 520px);
  height: clamp(48px, 6vw, 78px);
  border-radius: 999px 82% 76% 999px / 82% 74% 88% 76%;
  opacity: var(--stroke-opacity, 0);
  transform:
    translate3d(var(--stroke-x, 0), var(--stroke-y, 0), 0)
    rotate(var(--stroke-rotate, -8deg))
    scaleX(var(--stroke-scale, 0.72));
  transform-origin: 0 50%;
  background:
    radial-gradient(ellipse at 8% 48%, rgba(255, 248, 234, 0.24), transparent 16%),
    repeating-linear-gradient(
      174deg,
      rgba(255, 248, 234, 0.18) 0 2px,
      rgba(255, 248, 234, 0.03) 2px 7px,
      rgba(10, 18, 31, 0.16) 7px 9px,
      transparent 9px 16px
    ),
    linear-gradient(
      100deg,
      rgba(var(--stroke-color), 0.88),
      rgba(var(--stroke-color), 0.54) 52%,
      rgba(var(--stroke-color), 0.08)
    );
  box-shadow:
    inset 0 14px 22px rgba(255, 248, 234, 0.12),
    inset 0 -16px 24px rgba(10, 18, 31, 0.2),
    0 22px 36px rgba(10, 18, 31, 0.2);
  filter: saturate(1.05);
  mix-blend-mode: normal;
  transition:
    opacity 260ms ease,
    transform 360ms ease;
}

.paint-stroke::after {
  position: absolute;
  inset: 15% 3% 14% 8%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      178deg,
      rgba(255, 248, 234, 0.16) 0 1px,
      transparent 1px 9px
    );
  content: "";
  opacity: 0.72;
}

.paint-stroke.one {
  --stroke-color: var(--brush-b-color);
  top: 18vh;
  left: 8vw;
}

.paint-stroke.two {
  --stroke-color: var(--brush-d-color);
  top: 72vh;
  right: 8vw;
  width: min(38vw, 470px);
  transform-origin: 100% 50%;
}

.paint-stroke.three {
  --stroke-color: var(--brush-c-color);
  top: 118vh;
  left: 18vw;
  width: min(34vw, 430px);
}

.paint-stroke.four {
  --stroke-color: var(--brush-a-color);
  top: 160vh;
  right: 16vw;
  width: min(40vw, 500px);
}

.paint-stroke.five {
  --stroke-color: var(--brush-b-color);
  top: 195vh;
  left: 6vw;
  width: min(36vw, 450px);
}

.paint-stroke.six {
  --stroke-color: var(--brush-c-color);
  top: 235vh;
  right: 7vw;
  width: min(34vw, 430px);
  transform-origin: 100% 50%;
}

.paint-stroke.seven {
  --stroke-color: var(--brush-d-color);
  top: 280vh;
  left: 4vw;
  width: min(32vw, 400px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 248, 234, 0.18);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 248, 234, 0.2);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.1);
}

.language-switch button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 248, 234, 0.76);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.language-switch button.active,
.language-switch button:hover {
  background: var(--white);
  color: var(--panel-ink);
}

.language-switch button:active {
  transform: scale(0.94);
}

main {
  position: relative;
  z-index: 2;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

body.language-transition main {
  opacity: 0.4;
  transform: translateY(8px);
  filter: blur(2px);
}

[data-lang][hidden] {
  display: none !important;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 248, 234, 0.82);
  object-fit: cover;
  object-position: 50% 43%;
  box-shadow: 0 8px 22px rgba(10, 18, 31, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 248, 234, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 248, 234, 0.2);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.1);
}

.nav a {
  min-height: 36px;
  padding: 9px 15px;
  border-radius: 999px;
  color: rgba(255, 248, 234, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav a.active,
.nav a:hover {
  background: var(--white);
  color: var(--panel-ink);
}

.nav a:active,
.button:active {
  transform: translateY(1px) scale(0.98);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.84fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(38px, 7vw, 86px) clamp(18px, 5vw, 72px) 42px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

.hero h1,
.page-intro h1 {
  max-width: 920px;
  font-size: clamp(3.3rem, 8vw, 8.6rem);
  line-height: 0.88;
}

.hero h1 {
  font-family: "Mistral Local", "Playfair Display", Georgia, serif;
  font-size: clamp(4.2rem, 9.6vw, 10.4rem);
  font-weight: 400;
  line-height: 0.82;
}

.lead,
.page-intro p {
  max-width: 680px;
  color: rgba(255, 248, 234, 0.78);
  font-size: clamp(1.05rem, 1.7vw, 1.36rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 248, 234, 0.72);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button.primary {
  background: var(--white);
  color: var(--panel-ink);
}

.button.secondary {
  background: rgba(255, 248, 234, 0.1);
  color: var(--white);
}

.domain-note {
  margin-top: 20px;
  color: rgba(255, 248, 234, 0.7);
  font-size: 0.94rem;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 510px);
}

.hero-art::before {
  position: absolute;
  inset: -18px 34px 28px -26px;
  z-index: -1;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  content: "";
  transform: rotate(-4deg);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 0;
  box-shadow: var(--shadow);
  transition:
    opacity 820ms ease,
    transform 900ms ease,
    filter 820ms ease;
}

.hero-artwork {
  opacity: 0;
  filter: saturate(0.96);
}

.hero-artwork.active {
  opacity: 1;
  filter: saturate(1);
}

.hero-artwork + .hero-artwork {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-artwork.active + .hero-artwork,
.hero-artwork + .hero-artwork.active {
  transform: scale(1.006);
}

.hero-art::after {
  position: absolute;
  inset: -5.5%;
  z-index: 2;
  pointer-events: none;
  background: url("assets/antique-frame.png") center / 100% 100% no-repeat;
  content: "";
  filter: drop-shadow(0 22px 38px rgba(10, 18, 31, 0.34));
}

.bio-section,
.feature-band,
.contact-section,
.page-main {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.hero,
.bio-section,
.feature-band,
.page-intro,
.timeline-item,
.painting-card {
  animation: section-rise 520ms ease both;
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 76px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.bio-grid h2,
.feature-band h2 {
  font-size: clamp(2rem, 4.2vw, 4.8rem);
  line-height: 0.98;
}

.bio-copy p,
.archive-list p,
.timeline-item p,
.dialog-copy p,
.bibliography-list li {
  color: rgba(255, 248, 234, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.bio-copy p:first-child {
  margin-top: 0;
}

.bibliography-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  background: var(--section-wash);
  color: var(--white);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
  scroll-margin-top: 110px;
}

.contact-photo {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 234, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 24%, rgba(var(--brush-c-color), 0.22), transparent 30%),
    radial-gradient(circle at 76% 70%, rgba(var(--brush-b-color), 0.2), transparent 34%),
    rgba(255, 248, 234, 0.1);
  color: rgba(255, 248, 234, 0.72);
  font-weight: 800;
  text-align: center;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: 50% 42%;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.contact-copy h2 {
  font-size: clamp(2rem, 4.2vw, 4.8rem);
  line-height: 0.98;
}

.contact-copy p {
  max-width: 720px;
  color: rgba(255, 248, 234, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 248, 234, 0.26);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.1);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.feature-band .eyebrow,
.feature-band .archive-list p {
  color: #f4dcae;
}

.archive-list {
  display: grid;
  gap: 18px;
}

.archive-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 248, 234, 0.2);
}

.archive-list span {
  color: var(--yellow);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.archive-list h3 {
  font-size: 1.35rem;
}

.archive-list p {
  grid-column: 2;
  margin: -8px 0 0;
}

.page-main {
  min-height: calc(100vh - 180px);
}

.page-intro {
  margin-bottom: 36px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.painting-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--surface-bg);
  box-shadow: 0 18px 48px rgba(10, 18, 31, 0.28);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    box-shadow 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.painting-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(10, 18, 31, 0.34);
}

.painting-card img,
.placeholder-art::before {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.painting-card:hover img,
.painting-card:hover::before {
  transform: scale(1.035);
}

.painting-card span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(24, 40, 63, 0.88);
  color: var(--white);
  font-weight: 800;
}

.painting-card.wide {
  grid-column: span 2;
}

.placeholder-art::before {
  display: block;
  background:
    radial-gradient(circle at 30% 24%, var(--yellow) 0 13%, transparent 14%),
    radial-gradient(circle at 70% 70%, var(--blue) 0 17%, transparent 18%),
    linear-gradient(135deg, var(--coral), var(--rose) 42%, var(--green));
  content: "";
}

.placeholder-art.warm::before {
  background:
    radial-gradient(circle at 20% 70%, var(--green) 0 15%, transparent 16%),
    radial-gradient(circle at 68% 32%, var(--yellow) 0 18%, transparent 19%),
    linear-gradient(135deg, #9f3e32, #c94f3b 48%, #d9a65b);
}

.placeholder-art.cool::before {
  background:
    radial-gradient(circle at 35% 34%, #fff8ea 0 12%, transparent 13%),
    radial-gradient(circle at 75% 64%, var(--coral) 0 16%, transparent 17%),
    linear-gradient(135deg, var(--blue), var(--mint) 54%, #d9a65b);
}

.art-dialog {
  width: min(980px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  color: var(--panel-ink);
  box-shadow: var(--shadow);
}

.art-dialog::backdrop {
  background: rgba(32, 52, 78, 0.68);
}

.art-dialog[open] {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.75fr);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--panel-ink);
  color: var(--white);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.dialog-art {
  min-height: 520px;
  background:
    radial-gradient(circle at 24% 24%, var(--yellow) 0 13%, transparent 14%),
    linear-gradient(135deg, var(--coral), var(--blue), var(--green));
}

.dialog-art img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.dialog-copy {
  padding: clamp(28px, 4vw, 48px);
}

.dialog-copy h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.dialog-copy .eyebrow,
.dialog-copy p {
  color: #4d4a3e;
}

dl {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

dt {
  color: #6d6959;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

dd {
  margin: 0;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 20px;
  max-width: 980px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-bg);
  box-shadow: 0 18px 48px rgba(10, 18, 31, 0.22);
}

.timeline-item time {
  color: var(--blue);
  font-weight: 900;
}

.timeline-item h2 {
  font-size: clamp(1.55rem, 3vw, 2.8rem);
}

.place {
  margin: 8px 0 10px;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 248, 234, 0.16);
  color: rgba(255, 248, 234, 0.68);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.utility-dock {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: 14px;
  left: clamp(12px, 3vw, 28px);
  z-index: 20;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.utility-panels {
  width: min(620px, 100%);
}

.utility-panel {
  padding: 16px 18px;
  border: 1px solid rgba(255, 248, 234, 0.22);
  border-radius: 8px;
  background: rgba(24, 40, 63, 0.92);
  box-shadow: var(--shadow);
  color: var(--white);
  pointer-events: auto;
}

.utility-panel h2 {
  margin: 0 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.95rem;
}

.utility-panel p {
  margin: 0;
  color: rgba(255, 248, 234, 0.78);
  font-size: 0.92rem;
  line-height: 1.5;
}

.utility-panel a {
  color: var(--white);
  font-weight: 800;
}

.utility-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 248, 234, 0.22);
  border-radius: 999px;
  background: rgba(24, 40, 63, 0.88);
  box-shadow: 0 16px 44px rgba(10, 18, 31, 0.34);
  pointer-events: auto;
}

.utility-tabs button {
  min-height: 36px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 248, 234, 0.76);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.utility-tabs button.active,
.utility-tabs button:hover {
  background: var(--white);
  color: var(--panel-ink);
}

.utility-tabs button:active {
  transform: scale(0.96);
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-tools {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .nav a {
    flex: 1;
    min-width: max-content;
    text-align: center;
  }

  .hero,
  .bio-grid,
  .feature-band,
  .contact-section,
  .art-dialog[open],
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    width: min(100%, 430px);
  }

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

  .painting-card.wide {
    grid-column: auto;
  }

  .dialog-art,
  .dialog-art img {
    min-height: 340px;
  }

  .contact-photo {
    min-height: 240px;
  }

  .contact-photo img {
    min-height: 240px;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: 118px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(2.75rem, 18vw, 4.2rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .painting-card,
  .painting-card img,
  .placeholder-art::before {
    min-height: 260px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-links {
    display: grid;
  }

  .utility-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border-radius: 8px;
  }

  .utility-tabs button {
    padding: 9px 8px;
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-color-in {
  from {
    opacity: 0;
    filter: blur(4px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

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