:root {
  --bg: #13110f;
  --bg-soft: #1b1815;
  --panel: #201c18;
  --paper: #efe8da;
  --paper-deep: #e3d7c3;
  --ink: #191511;
  --text: #eee6d8;
  --muted: #bdb1a0;
  --gold: #c9aa72;
  --gold-light: #e0c898;
  --line: rgba(201, 170, 114, .28);
  --shadow: 0 28px 70px rgba(0, 0, 0, .42);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; font-family: var(--serif); line-height: 1.6; text-rendering: optimizeLegibility; }
body.theme-dark { background: radial-gradient(circle at 76% 10%, rgba(201,170,114,.055), transparent 32rem), var(--bg); color: var(--text); }
body.theme-paper { background: linear-gradient(135deg, #f4eee3, #e9dfcf); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .06em; text-underline-offset: .24em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: .7rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 50; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 clamp(1.2rem, 4vw, 4.5rem); border-bottom: 1px solid rgba(201,170,114,.16); background: rgba(19,17,15,.82); color: var(--text); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.theme-paper .site-header { background: rgba(244,238,227,.86); color: var(--ink); border-bottom-color: rgba(25,21,17,.12); }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; line-height: 1; }
.brand-word { font-size: clamp(1.45rem, 2.1vw, 1.9rem); letter-spacing: .09em; font-variant: small-caps; }
.brand-mark { color: var(--gold); font-size: .42rem; transform: translateY(.1rem); }
.site-nav { display: flex; align-items: center; gap: 2.1rem; font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.5rem); }
.site-nav a { position: relative; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.42rem; height: 1px; background: var(--gold); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.language-switcher { display: inline-flex; align-items: center; gap: .48rem; white-space: nowrap; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; }
.language-switcher > span { color: rgba(238,230,216,.42); }
.language-option { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.language-option:hover { color: var(--text); }
.language-option.is-active { color: var(--gold-light); }
.language-switcher .language-option::after { display: none; }
.theme-paper .language-switcher > span { color: #8b7a68; }
.theme-paper .language-option { color: #66584a; }
.theme-paper .language-option:hover { color: #191511; }
.theme-paper .language-option.is-active { color: #2e2114; font-weight: 750; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: currentColor; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 23px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.eyebrow { margin: 0 0 1rem; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(3.1rem, 7vw, 6.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.1vw, 4.2rem); letter-spacing: -.025em; }
p { margin-top: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .78rem 1.45rem; border: 1px solid var(--gold); font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: var(--gold-light); }
.text-link { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sans); font-size: .77rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; color: var(--gold-light); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.home-page { overflow-x: hidden; }
.home-hero { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); align-items: center; gap: clamp(2rem, 5vw, 7rem); padding: clamp(2.2rem, 5vw, 6rem) clamp(1.2rem, 4vw, 4.5rem); }
.home-visual { position: relative; isolation: isolate; }
.hero-picture { position: relative; z-index: 2; display: block; }
.hero-picture img { width: 100%; max-height: 76vh; object-fit: contain; box-shadow: var(--shadow); border: 1px solid rgba(224,200,152,.16); }
.image-halo { position: absolute; z-index: 1; width: 74%; height: 62%; left: 13%; top: 17%; background: rgba(208,167,101,.2); filter: blur(70px); opacity: .55; }
.home-copy { max-width: 650px; animation: reveal-up .8s .08s both; }
.home-copy h1 { margin: 0 0 1.4rem; }
.home-lead { max-width: 33rem; font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--muted); }
.mission-quote { margin: clamp(2rem, 5vh, 4rem) 0 2.4rem; padding-left: clamp(1rem, 2vw, 1.7rem); border-left: 1px solid var(--gold); color: var(--gold-light); font-size: clamp(1.05rem, 1.55vw, 1.32rem); font-style: italic; }
.mission-quote p { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem 1.7rem; }
.sound-control { margin-top: 1.6rem; }
.sound-button { display: inline-flex; align-items: center; gap: .65rem; border: 0; padding: .4rem 0; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.sound-button:hover { color: var(--text); }
.sound-icon { position: relative; width: 16px; height: 12px; border-left: 2px solid currentColor; }
.sound-icon::before, .sound-icon::after { content: ""; position: absolute; bottom: 0; width: 2px; background: currentColor; animation: soundbar .85s ease-in-out infinite alternate; }
.sound-icon::before { left: 4px; height: 6px; animation-delay: -.25s; }
.sound-icon::after { left: 9px; height: 10px; }
.sound-button[aria-pressed="false"] .sound-icon::before, .sound-button[aria-pressed="false"] .sound-icon::after { animation-play-state: paused; height: 2px; }

.page-main { width: min(1180px, calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(4rem, 9vw, 8.5rem) 0; }
.page-intro { max-width: 790px; margin: 0 auto clamp(3.2rem, 7vw, 6.4rem); text-align: center; }
.page-intro h1 { margin: 0 0 1.2rem; }
.page-intro > p:last-child { max-width: 42rem; margin: 0 auto; font-size: clamp(1.12rem, 1.8vw, 1.38rem); color: var(--muted); }
.theme-paper .page-intro > p:last-child { color: #5d5349; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.3rem, 3vw, 2.8rem); }
.gallery-card { min-width: 0; border: 1px solid var(--line); background: rgba(255,255,255,.018); overflow: hidden; }
.gallery-card-link { display: flex; flex-direction: column; text-decoration: none; }
.gallery-image { overflow: hidden; background: #0c0b0a; }
.gallery-image picture { display: block; width: 100%; }
.gallery-image img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery-card:hover .gallery-image img { transform: scale(1.025); }
.gallery-card-copy { position: relative; padding: 1.5rem 4rem 1.7rem 1.6rem; }
.gallery-card-copy h2 { margin: .15rem 0 .35rem; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.gallery-card-copy p { margin-bottom: 0; color: var(--muted); }
.work-index { font-family: var(--sans); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; color: var(--gold) !important; }
.card-arrow { position: absolute; right: 1.5rem; bottom: 1.65rem; color: var(--gold); font-size: 1.25rem; }
.coming-card { background: linear-gradient(145deg, #191612, #0f0e0c); }
.coming-visual { position: relative; aspect-ratio: 1200 / 870; overflow: hidden; background: radial-gradient(circle at 50% 52%, rgba(201,170,114,.22), transparent 16%, rgba(201,170,114,.045) 36%, transparent 62%); }
.coming-visual::before, .coming-visual::after, .coming-visual span { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(201,170,114,.3); transform: rotate(45deg); }
.coming-visual::after { inset: 28%; transform: rotate(45deg); opacity: .55; }
.coming-visual span { inset: 40%; border-radius: 50%; transform: none; background: rgba(201,170,114,.06); }

.artwork-main { width: min(1320px, calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(3.5rem, 7vw, 7rem) 0; }
.artwork-heading { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4.6rem); }
.artwork-heading h1 { margin: 0 0 .85rem; }
.artwork-meta { font-family: var(--sans); font-size: .77rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.artwork-hero { margin: 0 auto; width: min(1120px, 100%); }
.artwork-hero img { width: 100%; box-shadow: var(--shadow); border: 1px solid rgba(224,200,152,.18); }
figcaption { margin-top: .8rem; font-family: var(--sans); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.artwork-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 7vw, 7.5rem); width: min(1040px, 100%); margin: clamp(5rem, 10vw, 10rem) auto; }
.artwork-story h2 { margin: 0; font-size: clamp(2.4rem, 4.8vw, 4.8rem); }
.story-copy { font-size: clamp(1.18rem, 1.8vw, 1.5rem); color: #d4c9b8; }
.story-copy p { margin-bottom: 1.4rem; }
.artwork-context { display: grid; grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr); align-items: center; gap: clamp(2rem, 6vw, 6.5rem); padding: clamp(2rem, 4vw, 4rem); background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.artwork-context h2 { margin: 0 0 1.2rem; }
.artwork-context p { color: var(--muted); font-size: 1.1rem; }
.artwork-context figure { margin: 0; }
.context-picture img { width: 100%; }
.artwork-navigation { display: flex; justify-content: space-between; gap: 1.5rem; padding-top: clamp(3rem, 7vw, 6rem); }

.about-intro { margin-bottom: 3rem; }
.paper-panel { width: min(850px, 100%); margin: 0 auto; padding: clamp(2rem, 6vw, 5.5rem); background: rgba(255,255,255,.4); border: 1px solid rgba(25,21,17,.13); box-shadow: 0 25px 70px rgba(71,53,32,.12); }
.prose { font-size: clamp(1.08rem, 1.7vw, 1.27rem); line-height: 1.78; }
.prose h2 { margin: 0 0 2rem; font-size: clamp(3rem, 7vw, 5.8rem); }
.prose h3 { margin: 3rem 0 1rem; font-size: clamp(1.55rem, 2.7vw, 2.25rem); color: #4e3e2d; }
.prose p { margin-bottom: 1.45rem; }
.closing-line { margin: 3.2rem auto 0; max-width: 38rem; padding-top: 2.4rem; border-top: 1px solid rgba(25,21,17,.14); text-align: center; font-size: 1.17em; }

.contact-main { min-height: calc(100vh - var(--header-height) - 150px); display: grid; place-items: center; }
.contact-card { width: min(760px, 100%); padding: clamp(2.5rem, 7vw, 6rem); border: 1px solid var(--line); background: radial-gradient(circle at 50% 0%, rgba(201,170,114,.08), transparent 48%), rgba(255,255,255,.018); text-align: center; }
.contact-card h1 { margin: 0 0 1.3rem; }
.contact-card > p { max-width: 38rem; margin-left: auto; margin-right: auto; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.contact-card .button { margin: 1.4rem 0 1.5rem; }
.contact-email { display: block; color: var(--gold-light); }
.contact-card .contact-note { margin-top: 2.4rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .05em; }

.policy-intro { margin-bottom: 2.5rem; }
.policy-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.policy-date { margin-top: 3rem; font-size: .9rem; color: #6c5e50; }

.coming-main, .error-main { min-height: calc(100vh - var(--header-height) - 150px); display: grid; place-items: center; padding: 4rem 1.2rem; text-align: center; }
.coming-panel { width: min(620px, 100%); }
.coming-panel h1, .error-main h1 { margin: .2rem 0 1.2rem; }
.coming-panel > p:not(.eyebrow), .error-main > p:not(.eyebrow) { color: var(--muted); font-size: 1.2rem; }
.coming-symbol { position: relative; width: 160px; height: 160px; margin: 0 auto 2.5rem; background: radial-gradient(circle, rgba(201,170,114,.18), transparent 66%); }
.coming-symbol::before, .coming-symbol::after, .coming-symbol span { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(201,170,114,.45); transform: rotate(45deg); }
.coming-symbol::after { inset: 50px; opacity: .55; }
.coming-symbol span { inset: 67px; border-radius: 50%; transform: none; background: var(--gold); box-shadow: 0 0 25px rgba(201,170,114,.45); }
.error-main { display: flex; flex-direction: column; }
.error-main .button { margin-top: 1rem; }
.error-spanish { margin-top: 2rem; font-size: .9rem !important; }

.site-footer { padding: 2.2rem clamp(1.2rem, 4vw, 4.5rem); border-top: 1px solid rgba(201,170,114,.15); font-family: var(--sans); font-size: .7rem; letter-spacing: .04em; color: var(--muted); }
.theme-paper .site-footer { border-top-color: rgba(25,21,17,.12); color: #6c5e50; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: inherit; }

@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes soundbar { from { height: 3px; } to { height: 11px; } }

@media (max-width: 900px) {
  :root { --header-height: 68px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .site-nav { position: fixed; inset: var(--header-height) 0 auto 0; display: grid; gap: 2rem; padding: 2.3rem 1.5rem 2.6rem; background: rgba(19,17,15,.98); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .theme-paper .site-nav { background: rgba(244,238,227,.99); }
  .site-header.menu-open .site-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-links { display: grid; gap: 1rem; }
  .nav-links a { padding: .55rem 0; font-size: .9rem; }
  .language-switcher { justify-self: start; padding-top: .8rem; border-top: 1px solid var(--line); width: 100%; }
  body.menu-is-open { overflow: hidden; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .home-visual { width: min(760px, 100%); margin: 0 auto; }
  .hero-picture img { max-height: none; }
  .home-copy { width: min(760px, 100%); margin: 0 auto; }
  .artwork-story { grid-template-columns: 1fr; }
  .artwork-context { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { padding: 0 1rem; }
  .home-hero { gap: 2.4rem; padding: 1.25rem 1rem 3.8rem; }
  .home-copy h1 { font-size: clamp(3.2rem, 15vw, 5.3rem); }
  .home-lead { font-size: 1.15rem; }
  .mission-quote { font-size: 1.02rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .page-main, .artwork-main { width: min(100% - 2rem, 1180px); }
  .page-intro { text-align: left; }
  .page-intro h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .page-intro > p:last-child { margin-left: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .artwork-heading h1 { font-size: clamp(3.3rem, 17vw, 5.4rem); }
  .artwork-story { margin: 4rem auto; }
  .artwork-context { padding: 1.2rem; }
  .artwork-navigation { flex-direction: column; align-items: flex-start; }
  .paper-panel { padding: 2rem 1.35rem; }
  .prose h2 { font-size: 3.2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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

/* R3 — preserve the exact natural proportions of artwork images. */
.artwork-picture,
.context-picture {
  display: block;
  width: 100%;
  min-width: 0;
  line-height: 0;
}

.artwork-picture {
  aspect-ratio: 1200 / 870;
}

.context-picture {
  aspect-ratio: 1200 / 899;
}

.artwork-picture img,
.context-picture img {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center;
}

.artwork-context figure {
  min-width: 0;
  align-self: start;
}
