﻿:root {
  --bg: #f2efe6;
  --ink: #1b1a17;
  --muted: #6a645a;
  --card: #fcfaf4;
  --line: #cbc2b2;
  --accent: #9b1f1f;
  --accent-soft: #d9703f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
body {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #f9f5eb 0%, var(--bg) 52%, #e9e1d1 100%);
  line-height: 1.55;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.22;
}
.bg-orb-a { width: 40vw; height: 40vw; background: #e7b37a; top: -8vw; left: -12vw; }
.bg-orb-b { width: 32vw; height: 32vw; background: #9b1f1f; bottom: -10vw; right: -8vw; }

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 5vw;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 75%, white 25%);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  letter-spacing: 0.03em;
  font-size: 1.3rem;
}

nav { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
nav a.active { border-bottom-color: var(--accent); }
nav a:hover { color: var(--accent); border-bottom-color: color-mix(in srgb, var(--accent) 45%, white 55%); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.3rem;
}
.lang-switch a {
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: #f9f4ea;
}
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

main { width: min(1160px, 92vw); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 2.6rem;
}
.hero-copy h1 {
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 0.98;
  margin: 0.3rem 0 1.1rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(30, 20, 14, 0.18);
  background: #7f1717;
}
.btn.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.btn-secondary:hover {
  background: #f5eee2;
  box-shadow: 0 10px 20px rgba(30, 20, 14, 0.12);
}
.hero-art img {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white 65%);
  box-shadow: 0 18px 50px rgba(22, 16, 12, 0.22);
}

.hero-art img.no-crop {
  object-fit: contain;
  max-height: none;
  height: auto;
  background: #f8f4ea;
}

.section { padding: 2.2rem 0; border-top: 1px solid var(--line); }
h1, h2 {
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  margin-top: 0;
  margin-bottom: 1rem;
}
h3 { margin-top: 0; }
.lead { font-size: 1.08rem; color: #352f27; }
blockquote {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent-soft);
  background: #f6f0e2;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pdf-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 14, 10, 0.12);
}
.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.card a:hover { text-decoration: underline; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #f8f3e7;
}
.kpi .kpi-value {
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: 1.55rem;
  color: var(--accent);
  margin: 0;
}
.kpi .kpi-label {
  margin: 0.2rem 0 0;
  color: #3d362d;
  font-size: 0.9rem;
}

.pill-list {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0;
}
.pill {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: #f6f0e3;
  color: #433c33;
}

.cta-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, #f7efe2 76%, #fff 24%);
  padding: 1.1rem 1.2rem;
}
.cta-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.gallery { column-count: 4; column-gap: 0.8rem; }
.gallery figure {
  margin: 0 0 0.8rem;
  break-inside: avoid;
  background: #f8f3e8;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.gallery img { width: 100%; display: block; cursor: zoom-in; }
.gallery figcaption { padding: 0.5rem 0.7rem 0.7rem; font-size: 0.86rem; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.timeline li {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f4ea;
}
.timeline span { font-weight: 700; color: var(--accent); margin-right: 0.45rem; }

.site-footer {
  padding: 1.7rem 5vw 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-socials {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: #f4ece0;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.language-home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.language-panel {
  width: min(560px, calc(100vw - 4rem));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
}
.language-panel h1 {
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 1rem;
}
.language-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.language-actions a {
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.lightbox button {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  border: 0;
  background: #fff;
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) { .gallery { column-count: 3; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: 1fr; }
  .gallery { column-count: 2; }
}
@media (max-width: 520px) {
  .gallery { column-count: 1; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; text-align: center; }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: center;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .js .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--line);
  }

  .js .site-header.nav-open nav { display: flex; }

  .js .site-header nav > a {
    display: block;
    width: 100%;
    padding: 0.26rem 0;
    font-size: 0.82rem;
  }

  .js .site-header nav .lang-switch {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
}
.archive-card {
  border: 1px solid var(--line);
  background: #f8f4ea;
  border-radius: 12px;
  overflow: hidden;
}
.archive-media {
  aspect-ratio: 4 / 3;
  background: #efe7d8;
  display: grid;
  place-items: center;
}
.archive-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.archive-meta {
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
}
.archive-meta p {
  margin: 0.2rem 0;
}
.no-preview {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 0.8rem;
}

/* Photo-only paintings archive */
.paintings-archive-status {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.paintings-archive {
  column-count: 5;
  column-gap: 0.8rem;
}
.paintings-archive-item {
  margin: 0 0 0.8rem;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #efe7d8;
}
.paintings-archive-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.paintings-archive-button img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.paintings-archive-button:hover img {
  transform: scale(1.015);
  filter: saturate(1.03);
}
.paintings-archive-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.paintings-archive-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.paintings-archive-progress[hidden] {
  display: none;
}
.paintings-archive-progress button {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.paintings-archive-progress button:hover {
  background: #f4ece0;
}
.paintings-archive-progress button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .paintings-archive { column-count: 4; }
}
@media (max-width: 860px) {
  .paintings-archive { column-count: 3; }
}
@media (max-width: 620px) {
  .paintings-archive { column-count: 2; }
}
@media (max-width: 380px) {
  .paintings-archive { column-count: 1; }
}

/* 11 / 1000 project */
.project-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  min-height: min(780px, calc(100vh - 72px));
}
.project-hero .hero-copy h1 {
  font-size: clamp(4rem, 10vw, 8.5rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.6rem;
}
.project-subtitle {
  max-width: 760px;
  margin: 0 0 1.4rem;
  color: #433a30;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.3;
}
.project-question {
  max-width: 720px;
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1.2;
}
.project-hero-art {
  margin: 0;
}
.project-hero-art img {
  max-height: 72vh;
  object-fit: contain;
  background: #e9e1d2;
}
.project-hero-art figcaption {
  padding-top: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.project-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0 0 2.5rem;
}
.project-copy {
  max-width: 860px;
}
.project-copy > :last-child {
  margin-bottom: 0;
}
.project-note {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent-soft);
  background: #f6f0e2;
  color: #433a30;
}
.process-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0 0;
  padding: 0;
}
.process-flow li {
  position: relative;
  min-height: 190px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.process-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -0.68rem;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: sans-serif;
  font-size: 0.8rem;
}
.process-number {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: 1.45rem;
}
.process-flow h3,
.process-flow p {
  margin-bottom: 0.45rem;
}
.project-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.project-art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin-top: 1.5rem;
}
.project-art-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f3e8;
}
.project-art-card-wide {
  grid-column: span 2;
}
.project-art-button {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: 1209 / 1665;
  overflow: hidden;
  background: #17110b;
  cursor: zoom-in;
}
.project-art-button img {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: 75%;
  height: auto;
  transform: translate(-50%, -50%);
}
.project-art-button::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: url("../images/11-1000/gold-frame-portrait.png") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}
.project-art-card-wide .project-art-button {
  aspect-ratio: 1609 / 1195;
}
.project-art-card-wide .project-art-button img {
  width: 81.47%;
}
.project-art-card-wide .project-art-button::after {
  background-image: url("../images/11-1000/gold-frame-landscape.png");
}
.project-art-button:focus-visible,
.project-lightbox button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
  box-shadow: 0 0 0 6px var(--accent);
}
.project-art-card figcaption {
  padding: 0.65rem 0.8rem 0.75rem;
  font-size: 0.9rem;
}
.project-book-feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: center;
}
.project-book-feature figure {
  margin: 0;
}
.project-book-feature img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(22, 16, 12, 0.2);
}
.project-status {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f0e2;
  font-weight: 700;
}
.project-status span {
  color: var(--accent-soft);
}
.project-card-image {
  display: block;
  width: 100%;
  margin-bottom: 0.8rem;
  border-radius: 10px;
}
.project-feature-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}
.project-feature-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
}
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 4rem 1rem 2.5rem;
  background: rgba(10, 9, 8, 0.94);
  color: #fff;
}
.project-lightbox[hidden] {
  display: none;
}
.project-lightbox figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}
.project-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.project-lightbox figcaption {
  margin-top: 0.6rem;
}
.project-lightbox button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #15120f;
  cursor: pointer;
  font-size: 1.7rem;
}
.project-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.project-lightbox-counter {
  position: absolute;
  right: 1rem;
  bottom: 0.65rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.project-lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-flow li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .project-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .project-metrics,
  .project-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-art-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .project-metrics,
  .project-roles,
  .process-flow,
  .project-art-grid,
  .project-book-feature,
  .project-feature-card {
    grid-template-columns: 1fr;
  }
  .project-art-card-wide {
    grid-column: auto;
  }
  .project-lightbox {
    grid-template-columns: 1fr 1fr;
    align-content: center;
    padding: 4rem 0.7rem 3rem;
  }
  .project-lightbox figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .project-lightbox-prev,
  .project-lightbox-next {
    justify-self: center;
    margin-top: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-art-button,
  .project-lightbox button {
    scroll-behavior: auto;
  }
}
