﻿:root {
  --bg: #e8e6df;
  --bg-soft: #f3f1eb;
  --ink: #111318;
  --ink-soft: #3b414b;
  --line: rgba(17, 19, 24, 0.12);
  --sand: #c8b897;
  --stone: #6a6c6d;
  --charcoal: #252729;
  --white: #fefefe;
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 40px rgba(10, 12, 16, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at 20% -20%, rgba(200, 184, 151, 0.42), transparent 50%),
    linear-gradient(160deg, #efede7 0%, #e2e0d9 100%);
  color: var(--ink);
  line-height: 1.4;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(242, 240, 234, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(12, 17, 26, 0.52);
  background: radial-gradient(circle at 30% 30%, #f0eee8 0%, #c8c1b1 62%, #8f8777 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 14px rgba(14, 19, 28, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.45) brightness(0.5) saturate(0.92);
}

.brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.top-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-nav a {
  color: var(--ink-soft);
}

.top-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(17, 19, 24, 0.18);
  background: rgba(255, 255, 255, 0.72);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.top-nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #2d3340;
}

.nav-pill {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white) !important;
  background: linear-gradient(120deg, #1d1f25 0%, #3f444f 100%);
  box-shadow: 0 8px 20px rgba(8, 11, 16, 0.2);
}

.hero {
  position: relative;
  min-height: calc(96vh - 70px);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-bg,
.hero-noise {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(135deg, rgba(26, 28, 32, 0.62), rgba(26, 28, 32, 0.2)),
    url('/public/assets/generated/hero-texture.png') center / cover no-repeat,
    linear-gradient(130deg, #6f5f42 0%, #2f3033 100%);
  transform: scale(1.02);
}

.hero-noise {
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0%, transparent 35%),
    repeating-linear-gradient(130deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01) 2px, transparent 2px, transparent 6px);
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 30px 60px;
  text-align: center;
  color: var(--white);
}

.hero-kicker {
  margin: 0 0 18px;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  opacity: 0.84;
}

.hero h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6.4vw, 5.1rem);
  line-height: 0.96;
}

.hero-lead {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(1rem, 2.4vw, 1.24rem);
  color: rgba(252, 252, 249, 0.88);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-light {
  background: var(--white);
  color: #171a20;
  box-shadow: 0 12px 26px rgba(12, 14, 18, 0.28);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.btn-dark {
  background: #1d2025;
  color: var(--white);
}

.manifest,
.works,
.contact {
  width: min(1180px, calc(100% - 40px));
  margin: 90px auto;
}

.manifest {
  background: linear-gradient(135deg, rgba(253, 252, 249, 0.9), rgba(242, 238, 229, 0.88));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(130, 132, 131, 0.2);
  padding: 46px 34px;
  box-shadow: var(--shadow-soft);
}

.manifest-quote {
  margin: 10px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.7vw, 3.2rem);
  line-height: 1.02;
  max-width: 960px;
}

.manifest-heading {
  margin: 6px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}

.manifest-intro {
  margin: 14px 0 0;
  max-width: 920px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.manifest-text {
  margin-top: 0;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.manifest-text p {
  margin: 0;
  max-width: 72ch;
  line-height: 1.42;
}

.manifest-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 26px;
  align-items: start;
}

.manifest-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.manifest-wide {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 30, 38, 0.12);
  display: grid;
  gap: 16px;
}

.manifest-wide-lead {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 100%;
}

.bio-gallery {
  display: grid;
  gap: 14px;
  align-content: start;
}

.bio-portrait {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 19, 24, 0.14);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 30px rgba(10, 14, 20, 0.1);
  width: 100%;
}

.bio-portrait img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.bio-portrait figcaption {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b535e;
  padding: 10px 12px;
}

.bio-portrait.archive {
  background: rgba(223, 220, 212, 0.9);
}

.bio-portrait.archive img {
  filter: sepia(14%) grayscale(10%) contrast(1.06);
}

.bio-highlights {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bio-highlights li {
  border-left: 2px solid rgba(35, 39, 47, 0.22);
  padding-left: 10px;
  color: #4a505b;
  font-size: 0.9rem;
}

@media (min-width: 1360px) {
  .manifest {
    padding: 54px 48px;
  }

  .manifest-panel {
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  }

  .manifest-wide {
    gap: 20px;
  }

  .bio-highlights {
    columns: 2;
    column-gap: 28px;
  }

  .bio-highlights li {
    break-inside: avoid;
    margin-bottom: 8px;
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.section-head h2,
.contact h2,
.artwork-hero h1,
.simple-state h1 {
  margin: 6px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.section-note {
  margin: 0;
  color: var(--ink-soft);
}

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

.works-catalog-link-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.work-card {
  background: rgba(250, 249, 245, 0.82);
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 31, 40, 0.12);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(11, 14, 20, 0.08);
  transition: transform 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
}

.work-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #d8d6cf;
  overflow: hidden;
}

.work-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.6s ease;
}

.work-image-side {
  opacity: 0;
  pointer-events: none;
}

.work-media:hover .work-image-front,
.work-media.show-side .work-image-front {
  opacity: 0;
  transform: scale(1.02);
}

.work-media:hover .work-image-side,
.work-media.show-side .work-image-side {
  opacity: 1;
  transform: scale(1.02);
  pointer-events: auto;
}

.relief-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(16, 19, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 11px;
}

.work-meta {
  padding: 14px 14px 16px;
}

.work-meta h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.work-meta p {
  margin: 6px 0 0;
  color: #4d545e;
  font-size: 0.94rem;
}

.work-meta span {
  display: block;
  margin-top: 7px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6d737d;
}

.contact {
  margin-bottom: 110px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: start;
}

.contact-intro p {
  max-width: 470px;
  color: var(--ink-soft);
}

.contact-phone-line {
  margin-top: 14px;
  font-weight: 600;
}

.contact-phone-line a,
.contact-whatsapp-line a {
  color: #1f2c3d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-whatsapp-line {
  margin-top: 8px;
  font-weight: 600;
}

.contact-form {
  background: #f7f6f1;
  border: 1px solid rgba(16, 18, 23, 0.14);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(17, 19, 24, 0.2);
  border-radius: 10px;
  font: inherit;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.contact-artwork-chip {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(17, 24, 34, 0.14);
  border-radius: 12px;
  padding: 10px;
  background: rgba(252, 251, 248, 0.9);
}

.contact-artwork-chip img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 34, 0.12);
}

.contact-artwork-chip strong {
  display: block;
  font-size: 1rem;
}

.contact-artwork-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f5966;
}

.contact-ok {
  margin-top: 12px;
  color: #0f5d2c;
  font-weight: 700;
}

.footer-relief-band {
  height: clamp(150px, 17vw, 650px);
  background:
    linear-gradient(180deg, rgba(232, 230, 223, 0) 0%, rgba(232, 230, 223, 0.22) 18%, rgba(24, 28, 33, 0.86) 100%),
    var(--relief-image, url('/images/olas.webp')) center 54% / cover no-repeat;
}

.site-footer {
  background: #181c20;
  color: rgba(251, 251, 248, 0.86);
  padding: 28px 20px;
}

.footer-inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.9rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  margin: 0;
}

.footer-location {
  margin: 0;
  color: rgba(251, 251, 248, 0.65);
}

.footer-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-mark {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 251, 248, 0.56);
  background: linear-gradient(145deg, #f3efe3 0%, #cdc4b1 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 6px 13px rgba(7, 10, 16, 0.34);
}

.footer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.28) brightness(1.7) saturate(0.96);
}

.footer-contact {
  display: grid;
  gap: 6px;
}

.footer-contact a {
  color: rgba(251, 251, 248, 0.92);
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 0.82rem;
}

.footer-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.footer-meta p {
  margin: 0;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-nav a {
  color: rgba(251, 251, 248, 0.78);
  font-size: 0.84rem;
}

.simple-state {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
}

.catalog-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 90px;
}

.catalog-hero {
  max-width: 900px;
}

.catalog-hero h1 {
  margin: 6px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.catalog-hero p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  max-width: 84ch;
}

.catalog-total {
  margin-top: 14px;
  font-size: 0.95rem;
}

.catalog-works {
  width: 100%;
  margin: 26px 0 0;
}

.catalog-grid .work-media {
  background: #ffffff;
}

.catalog-grid .work-image {
  object-fit: contain;
  background: #ffffff;
}

#destacados .work-media {
  background: #ffffff;
}

#destacados .work-image {
  object-fit: contain;
  background: #ffffff;
}

.catalog-status {
  margin: 18px 0 0;
  min-height: 1.2em;
  color: #4b535f;
  font-size: 0.88rem;
  text-align: center;
}

.catalog-sentinel {
  width: 100%;
  height: 1px;
}

.catalog-load-more {
  margin: 16px auto 0;
}

.artwork-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 84px;
}

.artwork-hero p {
  max-width: 760px;
  color: var(--ink-soft);
}

.artwork-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.artwork-images {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(16, 20, 24, 0.12);
  min-height: 0;
  background: rgba(249, 248, 244, 0.66);
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 860px);
  padding: 16px 16px 64px;
  justify-self: start;
}

.artwork-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(74vw, 820px);
  max-height: min(74vh, 760px);
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(9, 13, 20, 0.16);
  cursor: zoom-in;
}

.mini-toggle[hidden] {
  display: none;
}

.artwork-data {
  background: rgba(250, 249, 244, 0.88);
  border: 1px solid rgba(20, 24, 32, 0.12);
  border-radius: var(--radius-md);
  padding: 18px;
  align-self: start;
  box-shadow: var(--shadow-soft);
}

.artwork-data h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}

.artwork-data ul {
  margin: 16px 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.artwork-inquiry-btn {
  width: 100%;
  background: #1a2029;
  border-color: #1a2029;
  color: #fbfdff;
}

.artwork-inquiry-btn:hover {
  background: #2a3442;
  border-color: #2a3442;
  color: #fbfcfe;
  box-shadow: 0 12px 22px rgba(12, 16, 24, 0.26);
}

.mini-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

.mini-zoom {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-color: rgba(18, 24, 34, 0.2);
  z-index: 2;
}

.artwork-thumbs {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.artwork-thumb {
  width: 100%;
  border: 1px solid rgba(17, 24, 34, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 7px;
  cursor: pointer;
}

.artwork-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 34, 0.14);
}

.artwork-thumb span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3e4856;
}

.artwork-thumb:hover {
  border-color: rgba(26, 33, 45, 0.36);
}

.artwork-thumb.is-active {
  border-color: #1b2430;
  box-shadow: 0 8px 18px rgba(9, 13, 20, 0.14);
  background: #fefefc;
}

.artwork-description {
  margin-top: 26px;
  background: rgba(251, 250, 246, 0.9);
  border: 1px solid rgba(16, 20, 24, 0.12);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.artwork-description h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.artwork-description p {
  margin: 14px 0 0;
  color: #2f3640;
  line-height: 1.65;
  max-width: 95ch;
}

.empty-state {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(17, 21, 27, 0.2);
}

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

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

.artwork-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(9, 13, 20, 0.88);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 92px 28px 28px;
}

.artwork-lightbox.open {
  display: flex;
}

.artwork-lightbox-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.artwork-lightbox-image {
  display: block;
  max-width: min(92vw, 1300px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  transform-origin: center center;
  transition: transform 0.24s ease;
}

.artwork-lightbox-image.is-quarter-turn {
  max-width: min(88vh, 1300px);
  max-height: min(92vw, 1300px);
}

.artwork-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(17, 23, 32, 0.82);
  color: #f4f7ff;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.artwork-lightbox-rotate-controls {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(14, 19, 27, 0.76);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
  z-index: 97;
}

.artwork-lightbox-rotate {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(17, 23, 32, 0.82);
  color: #f4f7ff;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.artwork-lightbox-rotate span {
  transform: translateY(-1px);
}

.artwork-lightbox-rotate-label {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(245, 249, 255, 0.9);
  padding: 0 2px;
}

.artwork-lightbox-rotate:hover {
  background: rgba(28, 36, 48, 0.9);
}

.artwork-lightbox-rotate:focus-visible,
.artwork-lightbox-close:focus-visible {
  outline: 2px solid rgba(231, 237, 248, 0.84);
  outline-offset: 2px;
}

body.lightbox-open {
  overflow: hidden;
}

.legal-main {
  width: min(980px, calc(100% - 34px));
  margin: 42px auto 90px;
}

.legal-card {
  background: rgba(251, 250, 246, 0.9);
  border: 1px solid rgba(15, 20, 28, 0.12);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.legal-card h1 {
  margin: 8px 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-card h2 {
  margin: 18px 0 6px;
  font-size: 1.2rem;
}

.legal-card p {
  margin: 0;
  color: #2d3744;
  line-height: 1.65;
}

@media (min-width: 1800px) {
  #destacados {
    width: min(1680px, calc(100% - 72px));
  }

  .catalog-main {
    width: min(1680px, calc(100% - 72px));
  }

  #destacados .works-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .artwork-main {
    width: min(1880px, calc(100% - 72px));
    display: grid;
    grid-template-columns: auto minmax(380px, 520px);
    justify-content: center;
    column-gap: 24px;
    row-gap: 18px;
    align-items: start;
  }

  .artwork-hero {
    grid-column: 1 / -1;
    margin: 0;
  }

  .artwork-layout {
    grid-column: 1;
    margin-top: 0;
    grid-template-columns: minmax(0, 860px) 320px;
    gap: 20px;
  }

  .artwork-description {
    grid-column: 2;
    margin-top: 0;
    align-self: start;
    max-width: 520px;
  }

  .artwork-description p {
    max-width: none;
    line-height: 1.58;
  }
}

@media (min-width: 2500px) {
  #destacados {
    width: min(2200px, calc(100% - 96px));
  }

  .catalog-main {
    width: min(2200px, calc(100% - 96px));
  }

  #destacados .works-grid,
  .catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #destacados .works-grid .work-card:nth-child(n + 6) {
    display: none;
  }

  .artwork-main {
    width: min(2400px, calc(100% - 96px));
    grid-template-columns: auto minmax(420px, 600px);
    column-gap: 28px;
  }

  .artwork-layout {
    grid-template-columns: minmax(0, 920px) 340px;
    gap: 22px;
  }
}

@media (max-width: 1040px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .artwork-layout {
    grid-template-columns: 1fr;
  }

  .artwork-images {
    width: 100%;
    max-width: 100%;
    padding: 12px 12px 58px;
    justify-self: stretch;
  }

  .artwork-image {
    max-width: min(100%, 760px);
    max-height: 70vh;
  }

  .artwork-description {
    margin-top: 20px;
  }
}

@media (max-width: 740px) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .topbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .brand-link {
    min-width: 0;
    flex: 1;
    gap: 10px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .brand-text {
    font-size: 1.25rem;
    line-height: 1;
    white-space: nowrap;
  }

  .topbar.has-nav-toggle .top-nav-toggle {
    display: inline-flex;
    flex: 0 0 42px;
  }

  .top-nav {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    flex-wrap: wrap;
  }

  .topbar.has-nav-toggle .top-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 32;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(17, 24, 34, 0.14);
    border-radius: 14px;
    background: rgba(248, 246, 240, 0.98);
    box-shadow: 0 12px 28px rgba(10, 14, 20, 0.16);
    font-size: 0.78rem;
  }

  .topbar.has-nav-toggle.nav-open .top-nav {
    display: flex;
  }

  .topbar.has-nav-toggle .top-nav a {
    display: block;
    width: min(280px, 100%);
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
  }

  .topbar.has-nav-toggle .top-nav a.nav-pill {
    padding: 10px 12px;
    text-align: center;
    box-shadow: none;
  }

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

  .manifest,
  .works,
  .contact {
    width: calc(100% - 24px);
    margin: 64px auto;
  }

  .catalog-main {
    width: calc(100% - 24px);
    padding: 30px 0 70px;
  }

  .catalog-works {
    margin-top: 20px;
  }

  .manifest {
    padding: 30px 18px;
  }

  .manifest-text {
    grid-template-columns: 1fr;
  }

  .manifest-panel {
    grid-template-columns: 1fr;
  }

  .manifest-wide {
    margin-top: 14px;
    padding-top: 14px;
  }

  .bio-portrait img {
    height: 340px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-artwork-chip {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

  .contact-artwork-chip img {
    width: 64px;
    height: 64px;
  }

  .artwork-lightbox {
    padding: 74px 12px 18px;
  }

  .artwork-lightbox-close {
    top: 12px;
    right: 12px;
  }

  .artwork-lightbox-rotate-controls {
    top: 12px;
    gap: 6px;
    padding: 5px 8px;
  }

  .artwork-lightbox-rotate {
    width: 34px;
    height: 34px;
    font-size: 1.08rem;
  }

  .artwork-lightbox-rotate-label {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .footer-relief-band {
    height: 400px;
    background-position: center 38%;
  }

  .footer-logo-mark {
    width: 52px;
    height: 52px;
  }

  .footer-meta {
    justify-items: start;
  }

  .footer-legal-nav {
    gap: 8px 10px;
  }
}
