:root {
  --bg: #0f0b14;
  --bg-soft: #17111f;
  --panel: rgba(85, 85, 85, 0.923);
  --panel-border: rgba(45, 45, 45, 0.544);
  --text: #f5f1ea;
  --muted: #c7c0d1;
  --accent: #d8a86b;
  --accent-2: #8c6ef7;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("assets/images/Fundo1.jpeg") center center fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.75;
  color: var(--muted);
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 7rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 4.1rem);
  max-width: 14ch;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.section {
  display: flex;
  padding: 5.5rem 0;
  position: relative;
  width: 100%;
  overflow-x: clip;
}

.section-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f3d4ae;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.section-label::before,
.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
  flex: 0 0 auto;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.5) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,.35) 0 1px, transparent 1px);
  background-size: 24px 24px, 32px 32px;
}

.site-header {
  position: relative;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 8, 14, 0.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.compact-header {
  position: relative;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
  object-fit: cover;
  flex: 0 0 auto;
}

.brand-text {
  font-size: clamp(0.78rem, 1.2vw, 0.98rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 760px) {
  .nav-wrap {
    position: relative;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem;
    border-radius: 20px;
    background: rgba(15, 11, 20, 0.96);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 200;
  }

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

  .site-nav a {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    white-space: normal;
  }

  .site-nav a:hover {
    background: rgba(255,255,255,.04);
  }
}

.hero {
  padding-top: 3rem;
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
  align-items: center;
}

.hero-text {
  max-width: 62ch;
}

.hero-actions,
.center-actions,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-actions {
  margin: 2rem 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  height: 100%;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f0c089);
  color: #1a1010;
  box-shadow: 0 14px 30px rgba(216, 168, 107, 0.28);
  margin-top: 10px;
  font-size: 16px;
}

.btn-secondary {
  margin-top: 10px;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}

.btn-full {
  width: 100%;
}

.hero-art {
  position: relative;
  min-height: 680px;
  min-width: 0;
}

.carrossel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carrossel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.carrossel .slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-frame {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  padding: 18px;
}

.hero-frame img,
.work-card img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.frame-one {
  top: 0;
  right: 0;
  width: min(100%, 450px);
  height: clamp(360px, 46vw, 580px);
  max-width: 100%;
}

.frame-two {
  left: 0;
  bottom: 20px;
  width: min(70%, 300px);
  height: 380px;
  transform: rotate(-7deg);
  max-width: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
}

.orb-a {
  width: 180px;
  height: 180px;
  left: 15%;
  top: 10%;
  background: radial-gradient(circle, rgba(140, 110, 247, 0.55), transparent 70%);
}

.orb-b {
  width: 220px;
  height: 220px;
  right: 15%;
  bottom: 5%;
  background: radial-gradient(circle, rgba(216, 168, 107, 0.45), transparent 70%);
}

.glass,
.timeline-card,
.work-card,
.gallery-item,
.Foto_artist,
.contact-panel,
.table-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.about-card,
.contact-panel,
.Foto_artist,
.Foto_artist2,
.timeline-card,
.contact-form,
.table-wrap,
.exhibition-card {
  padding: clamp(1.1rem, 2.2vw, 2rem);
  border-radius: var(--radius);
  height: 100%;
}

.about-card,
.contact-panel,
.contact-form,
.Foto_artist {
  min-width: 0;
}

.Foto_artist {
  min-height: 100%;
  display: grid;
  align-content: center;
}

.Foto_artist img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}

.Foto_artist2 {
  height: 400px;
  display: grid;
  align-content: center;
}

.Foto_artist2 img {
  width: min(100%, 400px);
  height: auto;
  display: flex;
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}

.quote-mark {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  margin-top: auto;
  padding-top: 1.2rem;
  display: block;
  line-height: 1.4;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 2rem;
}

.timeline-grid,
.works-grid,
.gallery-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  align-items: stretch;
}

.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.timeline-badge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #efe5d7;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.timeline-badge.highlight {
  background: rgba(216,168,107,.16);
  color: #ffdfb1;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.timeline-list li {
  padding-left: 1rem;
  border-left: 2px solid rgba(255,255,255,.1);
}

.timeline-list strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.timeline-list span {
  color: var(--muted);
}

.works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card,
.gallery-item {
  border-radius: 26px;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.work-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.work-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.work-card img {
  width: 100%;
  height: clamp(260px, 34vw, 440px);
  padding: clamp(14px, 2vw, 26px);
  background: rgba(255,255,255,.02);
  display: block;
}

.work-info,
.gallery-content {
  padding: clamp(1rem, 1.8vw, 1.4rem);
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}

.work-info h3,
.gallery-content h2 {
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}

.gallery-hero {
  padding-top: 4rem;
  overflow: hidden;
}

.gallery-intro {
  max-width: 70ch;
}

.gallery-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
  min-height: 720px;
}

.gallery-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.gallery-stack {
  position: relative;
  height: 680px;
  width: 100%;
  margin-left: 0;
  min-width: 0;
}

.stack-frame {
  position: absolute;
  width: min(100%, 500px);
  height: clamp(360px, 48vw, 600px);
  margin: 0;
  padding: clamp(10px, 1.4vw, 14px);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
}

.stack-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.gallery-item {
  cursor: zoom-in;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.gallery-item img {
  width: 100%;
  height: clamp(280px, 36vw, 500px);
  padding: clamp(14px, 2vw, 30px);
  background: rgba(255,255,255,.02);
  display: block;
}

.gallery-year {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #f3d4ae;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  text-transform: uppercase;
  line-height: 1;
}

.contact-grid {
  align-items: stretch;
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 1.6rem 0;
}

.contact-list a {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #efe3d2;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(216,168,107,.7);
  box-shadow: 0 0 0 4px rgba(216,168,107,.08);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

select option {
  background: #20182a;
  color: var(--text);
}

.form-feedback {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.92rem;
}

.form-feedback.success {
  color: #bfe7bf;
}

.form-feedback.error {
  color: #f0b6b6;
}

.table-wrap {
  overflow: auto;
}

.art-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.art-table th,
.art-table td {
  padding: 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.art-table th {
  color: #ffe1b8;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer {
  backdrop-filter: blur(16px);
  background: rgba(10, 8, 14, 0.55);
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 4rem;
}

.footer-wrap {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-wrap a {
  color: #f3d4ae;
}

.footer-meta {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(245, 241, 234, 0.62);
}

.footer-sep {
  margin: 0 0.45rem;
  opacity: 0.45;
}

.footer-credit {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-top-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #f3d4ae;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.footer-top-link:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.1);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  background: rgba(255,255,255,.03);
  transition: transform 0.12s ease;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  color: #fff;
  background: rgba(15, 11, 20, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.06);
  background: rgba(30, 22, 40, 0.82);
}

body.lightbox-open {
  overflow: hidden;
}

.carrossel-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
}

.carrossel-vertical img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-art .reveal .delay-1 {
  transition-delay: 0.22s;
}

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

.exhibition-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(45, 45, 45, 0.544);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  padding: 2rem;
  border-radius: 24px;
  min-width: 0;
}

.exhibition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.exhibition-header h3 {
  margin: 0;
}

.exhibition-badge {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #efe5d7;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.exhibition-badge-future {
  background: rgba(216,168,107,.16);
  color: #ffdfb1;
}

.exhibition-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
}

.exhibition-list li {
  padding-left: 1rem;
  border-left: 2px solid rgba(255,255,255,.1);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.exhibition-list strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #f5f1ea;
}

.exhibition-list span {
  color: #c7c0d1;
  font-size: 0.95rem;
}

@media (max-width: 1200px) {
  .gallery-hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .gallery-stack {
    min-height: 620px;
    max-width: 760px;
    margin: 0 auto;
  }

  .stack-frame {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-grid,
  .works-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-art {
    min-height: 560px;
  }

  .frame-one {
    position: relative;
    right: auto;
    margin: 0 auto;
  }

  .work-card img {
    height: 380px;
    padding: 24px;
  }

  .gallery-item img {
    height: 430px;
    padding: 24px;
  }
}

@media (max-width: 900px) {
  .exhibitions-grid {
    grid-template-columns: 1fr;
  }

  .exhibition-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .exhibition-list {
    flex-direction: column;
    gap: 1.2rem;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.3rem 0;
  }

  h1 {
    max-width: 9ch;
  }

  h2 {
    max-width: 100%;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .nav-wrap {
    justify-content: center;
    text-align: center;
    padding: 0.8rem 0;
  }

  .brand {
    justify-content: center;
    flex: 0 1 auto;
  }

  .brand-text {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 0.9rem 1.2rem;
  }

  .site-nav a {
    font-size: 0.92rem;
  }

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

  .hero-grid,
  .about-grid,
  .contact-grid,
  .gallery-hero-layout {
    gap: 1.5rem;
  }

  .hero-art {
    min-height: 420px;
  }

  .frame-one {
    width: min(100%, 340px);
    height: 440px;
    right: auto;
  }

  .frame-two {
    display: none;
  }

  .gallery-stack {
    min-height: 400px;
    height: auto;
  }

  .stack-frame {
    position: relative;
    width: min(100%, 320px);
    height: 420px;
    left: auto;
    transform: none;
    margin: 0 auto;
  }

  .about-card,
  .contact-panel,
  .Foto_artist,
  .contact-form,
  .timeline-card,
  .table-wrap,
  .exhibition-card {
    padding: 1.4rem;
    border-radius: 20px;
  }

  .work-card img {
    height: 340px;
    padding: 22px;
  }

  .gallery-item img {
    height: 390px;
    padding: 22px;
  }

  .contact-list a {
    width: 100%;
    border-radius: 18px;
  }

  .hero-actions,
  .center-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .center-actions .btn {
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
  }

  .footer-meta {
    max-width: 32ch;
  }

  .footer-credit {
    white-space: normal;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

@media (max-width: 560px) {
  body {
    background-attachment: scroll;
  }

  .section-label,
  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.72rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    font-size: 0.8rem;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .site-nav {
    gap: 0.7rem 1rem;
  }

  .site-nav a {
    white-space: normal;
    text-align: center;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-art {
    min-height: 360px;
  }

  .frame-one {
    width: 100%;
    max-width: 300px;
    height: 360px;
    padding: 14px;
  }

  .stack-frame {
    width: 100%;
    max-width: 280px;
    height: 340px;
    padding: 10px;
  }

  .work-card img,
  .gallery-item img {
    height: auto;
    min-height: 260px;
    max-height: 360px;
    padding: 18px;
  }

  .work-info,
  .gallery-content {
    padding: 1rem 1rem 1.15rem;
  }

  .gallery-year {
    font-size: 0.9rem;
  }

  .contact-list {
    margin: 1.2rem 0;
  }

  .lightbox img {
    border-radius: 14px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(calc(100% - 1rem), var(--max));
  }

  .about-card,
  .contact-panel,
  .Foto_artist,
  .contact-form,
  .timeline-card,
  .table-wrap,
  .exhibition-card {
    padding: 1.1rem;
  }

  .frame-one {
    max-width: 260px;
    height: 320px;
  }

  .stack-frame {
    max-width: 240px;
    height: 300px;
  }

  .work-card img,
  .gallery-item img {
    min-height: 220px;
    max-height: 320px;
    padding: 14px;
  }

  .btn {
    padding: 0.9rem 1rem;
  }
}

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

  .site-nav {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    width: auto !important;
  }

  .site-nav a {
    padding: 0 !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  body {
    padding-top: 85px;
  }
}

@media (min-width: 761px) {
  .site-header.scrolled {
    background: rgba(10, 8, 14, 0.88);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .site-header .nav-wrap {
    transition: min-height 0.3s ease, padding 0.3s ease;
  }

  .site-header .brand-logo {
    transition: width 0.3s ease, height 0.3s ease;
  }

  .site-header .brand-text {
    transition: font-size 0.3s ease;
  }

  .site-header .site-nav a {
    transition: font-size 0.3s ease, color 0.3s ease;
  }

  .site-header.scrolled .nav-wrap {
    min-height: 68px;
  }

  .site-header.scrolled .brand-logo {
    width: 38px;
    height: 38px;
  }

  .site-header.scrolled .brand-text {
    font-size: 0.88rem;
  }

  .site-header.scrolled .site-nav a {
    font-size: 0.9rem;
  }
}

@media (min-width: 761px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  body {
    padding-top: 85px;
  }

  .compact-header + main,
  .site-header + main {
    margin-top: 0;
  }
}

@media (max-width: 1024px) {
  h1,
  h2,
  h3,
  .brand-text,
  .section-label,
  .eyebrow,
  .quote-mark,
  .hero-text,
  .gallery-intro,
  .footer-meta,
  .footer-credit,
  .work-info h3,
  .gallery-content h2,
  .contact-panel h2,
  .about-card p,
  .gallery-content p,
  .work-info p,
  .exhibition-list li,
  .exhibition-list strong {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  p,
  .hero-text,
  .gallery-intro,
  .about-card p,
  .gallery-content p,
  .work-info p,
  .footer-meta,
  .contact-list a,
  .exhibition-list li {
    text-wrap: pretty;
  }

  h1,
  h2,
  h3 {
    line-height: 1.02;
  }

  .brand-text {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .work-info h3,
  .gallery-content h2 {
    max-width: 100%;
    text-wrap: balance;
  }

  .section-label,
  .eyebrow {
    line-height: 1.4;
  }

  .about-card p,
  .gallery-intro,
  .hero-text,
  .contact-panel h2 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  h1,
  h2 {
    max-width: 100%;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 64px);
  }

  .brand-text {
    line-height: 1.2;
  }

  .site-nav a {
    line-height: 1.35;
  }

  .footer-meta,
  .contact-list a {
    line-height: 1.55;
  }

  .work-info,
  .gallery-content {
    padding-top: 1.05rem;
  }
}

@media (max-width: 560px) {

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .brand-text {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
  }

  .section-label,
  .eyebrow {
    letter-spacing: 0.12em;
  }

  .quote-mark {
    letter-spacing: 1.5px;
    line-height: 1.5;
  }
}

@media (max-width: 1024px) {
  h1,
  h2,
  h3,
  .brand-text,
  .section-label,
  .eyebrow,
  .quote-mark,
  .hero-text,
  .gallery-intro,
  .footer-meta,
  .footer-credit,
  .work-info h3,
  .gallery-content h2,
  .contact-panel h2,
  .about-card p,
  .gallery-content p,
  .work-info p,
  .exhibition-list li,
  .exhibition-list strong,
  .contact-list a {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

@media (max-width: 760px) {
  h1,
  h2 {
    max-width: 100%;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 64px);
  }

  .brand-text {
    line-height: 1.2;
  }

  .site-nav a,
  .footer-meta,
  .contact-list a,
  .quote-mark {
    line-height: 1.45;
  }
}

@media (max-width: 1024px) {
  .about-card,
  .contact-panel,
  .contact-form,
  .Foto_artist,
  .gallery-item,
  .work-card,
  .exhibition-card {
    height: auto;
  }

  .work-info,
  .gallery-content {
    padding: 1.1rem 1.1rem 1.25rem;
  }

  .work-info h3,
  .gallery-content h2,
  .contact-panel h2,
  .section-head h2,
  .about-card h2 {
    text-wrap: balance;
  }
}

@media (max-width: 760px) {
  .work-info,
  .gallery-content {
    gap: 0.25rem;
  }

  .gallery-year {
    margin-bottom: 0.2rem;
    font-size: 0.86rem;
  }

  .exhibition-list li {
    padding-left: 0.85rem;
  }

  .contact-panel,
  .contact-form,
  .about-card,
  .Foto_artist,
  .exhibition-card {
    text-align: left;
  }
}

@media (max-width: 1200px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .gallery-hero-layout {
    grid-template-columns: 1fr;
  }

  .works-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-stack {
    min-height: clamp(420px, 60vw, 620px);
    max-width: 760px;
    margin: 0 auto;
  }

  .frame-one {
    position: relative;
    right: auto;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .timeline-grid,
  .works-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .exhibition-list {
    flex-direction: column;
    gap: 1.2rem;
  }

  .exhibition-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-actions,
  .center-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .center-actions .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.2rem 0;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  h1,
  h2 {
    max-width: 100%;
  }

  .nav-wrap {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.8rem 0;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 64px);
  }

  .brand-text {
    line-height: 1.2;
  }

  .gallery-stack {
    min-height: auto;
    height: auto;
  }

  .stack-frame {
    position: relative;
    left: auto;
    transform: none;
    margin: 0 auto;
    width: min(100%, 320px);
  }

  .frame-two {
    display: none;
  }

  .contact-list a {
    width: 100%;
    border-radius: 18px;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
  }

  .footer-credit {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1rem, var(--max));
  }
}

  .about-card,
  .contact-panel,
  .Foto_artist,
  .contact-form,
  .timeline-card,
  .table-wrap,
  .exhibition-card {
    padding: 1rem;
  }

  .section-label,
  .eyebrow,
  .quote-mark,
  .footer-meta,
  .contact-list a,
  .site-nav a,
  .gallery-content p,
  .work-info p {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }