/* Cano Gallery — stone, bronze, ink, paper. No gold. No Google Fonts. */

:root {
  --stone: #E6DFD2;
  --bronze: #8A6A45;
  --ink: #2C261E;
  --paper: #F7F3EA;
  --bronze-dark: #5C4630;
  --line: rgba(44, 38, 30, 0.14);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 38rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

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

html { scroll-behavior: smooth; }

html[lang="en"] .t-es { display: none !important; }
html[lang="es"] .t-en { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 30;
}
.skip:focus { top: 0.75rem; }

.note,
.disclaimer,
.band {
  padding: 0.7rem var(--pad);
  font-size: 0.84rem;
  line-height: 1.5;
}

.note {
  background: var(--stone);
  border-bottom: 1px solid var(--line);
}

.disclaimer {
  background: var(--paper);
  border-bottom: 1px solid var(--bronze);
}

.site-header,
.chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 0.95rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--ink); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--bronze); }

.lang-switch { display: flex; gap: 0.2rem; }
.lang-switch button {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.4rem 0.55rem;
  min-height: 40px;
  min-width: 40px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  border-color: var(--bronze);
  color: var(--bronze-dark);
}

.wrap { padding: 0 var(--pad); }
.inner { max-width: 68rem; margin: 0 auto; }
.prose { max-width: var(--measure); }

.hero {
  background: var(--stone);
  padding: clamp(3.2rem, 10vw, 7.5rem) var(--pad) clamp(3rem, 8vw, 6rem);
}

.eyebrow {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin: 0 0 1.6rem;
  max-width: 36rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.7rem, 9vw, 5.4rem);
  margin: 0 0 1.4rem;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.lead { font-size: 1.08rem; max-width: var(--measure); margin: 0 0 1.6rem; }

.section { padding: clamp(2.6rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

.kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  margin: 0 0 0.7rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
  max-width: var(--measure);
}
.facts li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.8rem;
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts dt, .facts .lab {
  color: var(--bronze-dark);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.3rem; margin: 1.6rem 0 0; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--bronze);
  border: 1px solid var(--bronze);
  padding: 0.85rem 1.25rem;
  min-height: 44px;
}
.btn:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); color: var(--paper); }

.btn-ghost {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--ink);
}

.room-block { background: var(--stone); }
.room {
  position: relative;
  height: min(85vh, 44rem);
  min-height: 24rem;
  background: var(--stone);
}
.room canvas { display: block; width: 100%; height: 100%; }
.room-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--stone);
}
.room-fallback[hidden] { display: none !important; }
.room-caption {
  padding: 0.9rem var(--pad) 1.6rem;
  font-size: 0.82rem;
  color: var(--bronze-dark);
  max-width: 40rem;
}

.exhibit-card { max-width: 42rem; }
.honest {
  font-size: 0.95rem;
  max-width: var(--measure);
}

.precedes {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 800px) {
  .precedes { grid-template-columns: minmax(0, 22rem) 1fr; }
}
.precedes figure { margin: 0; }
.precedes img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
}
figcaption {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 0.55rem;
  color: var(--bronze-dark);
}

.homage-head { margin-bottom: 1.6rem; }
.homage-strip {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  -webkit-overflow-scrolling: touch;
}
.homage-strip a {
  flex: 0 0 11.5rem;
  text-decoration: none;
  color: inherit;
}
.homage-strip img {
  width: 11.5rem;
  height: 14.5rem;
  object-fit: cover;
}
.homage-strip figcaption {
  margin-top: 0.45rem;
  font-size: 0.75rem;
}

.work {
  display: grid;
  gap: 1.4rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) {
  .work { grid-template-columns: minmax(0, 26rem) 1fr; align-items: start; }
}
.work img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
}
.pair { display: grid; gap: 0.8rem; }
@media (min-width: 520px) {
  .pair { grid-template-columns: 1fr 1fr; }
}

.visit-list { list-style: none; padding: 0; margin: 1.5rem 0; max-width: var(--measure); }
.visit-list li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.visit-list li:last-child { border-bottom: 1px solid var(--line); }
.visit-list .lab {
  color: var(--bronze-dark);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  padding: 2.4rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--bronze-dark);
  background: var(--stone);
}
.site-footer p { max-width: 42rem; margin: 0 0 0.7rem; }
.site-footer a { color: var(--ink); }

.page-hero { padding: clamp(2.4rem, 6vw, 4.5rem) var(--pad) 0.4rem; }

@media (max-width: 640px) {
  .nav { margin-left: 0; width: 100%; }
  .facts li { grid-template-columns: 1fr; gap: 0.15rem; }
}

.scroll-cue { margin: 0 0 1.4rem; }
.scroll-cue a,
a.scroll-cue {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bronze-dark);
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 0.15rem;
}
.room { height: min(92vh, 52rem); }

/* —— Flagship home: the room is the site —— */
.flagship {
  background: var(--stone);
}
.flagship .band {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  padding: 0.42rem var(--pad);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--ink);
  background: rgba(230, 223, 210, 0.55);
  border-bottom: 1px solid rgba(138, 106, 69, 0.45);
}
.flagship .chrome {
  position: fixed;
  top: 3.15rem;
  left: 0;
  right: 0;
  z-index: 12;
  padding: 0.65rem var(--pad);
  background: transparent;
  border-bottom: none;
}
.flagship .chrome .wordmark {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}
.flagship .nav {
  font-size: 0.68rem;
}
.flagship .lang-switch button {
  background: rgba(247, 243, 234, 0.35);
  min-height: 36px;
  min-width: 36px;
}

.world {
  position: relative;
  height: 280vh;
  background: var(--stone);
}
.world-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--stone);
}
.world-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--stone);
}
.world-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.world .room-fallback {
  padding: 5.5rem var(--pad) 2rem;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(230,223,210,0.2) 0%, rgba(230,223,210,0.92) 70%),
    var(--stone);
}
.world .room-fallback img {
  width: min(100%, 18rem);
  height: 22rem;
  object-fit: cover;
  object-position: 50% 18%;
  margin: 0 0 1rem;
}
.world .room-fallback figcaption {
  max-width: 22rem;
}

.world-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6.5rem var(--pad) 4rem;
}
.world-overlay::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(230,223,210,0.16) 50%, rgba(230,223,210,0.4));
  pointer-events: none;
}
.world-enter, .stage-word, .stage-caption { position: relative; z-index: 1; }
.world-enter {
  max-width: 44rem;
  transition: opacity 0.55s ease;
}
.world-enter.is-away {
  opacity: 0;
  pointer-events: none;
}
.world-kicker {
  margin: 0 0 0.85rem;
  font-size: clamp(0.82rem, 2.4vw, 1.02rem);
  letter-spacing: 0.01em;
  max-width: 28rem;
  color: var(--ink);
}
.world-overlay h1 {
  font-size: clamp(3.5rem, 12vw, 7rem);
  margin: 0 0 1.35rem;
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(247, 243, 234, 0.28);
}
.world-overlay .scroll-cue {
  pointer-events: auto;
  margin: 0;
  display: inline-block;
  color: var(--bronze-dark);
}
.world-arrive .kicker { margin-bottom: 0.4rem; }
.world-arrive h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0 0 0.35rem;
}
.world-arrive p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 22rem;
}

.flagship .paper {
  position: relative;
  z-index: 2;
  background: var(--paper);
}
.flagship .site-footer { position: relative; z-index: 2; }

@media (max-width: 640px) {
  .flagship .band {
    font-size: 0.62rem;
    padding: 0.4rem var(--pad);
  }
  .flagship .chrome {
    top: 2.55rem;
    padding: 0.4rem var(--pad) 0.3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem 0.8rem;
  }
  .flagship .chrome .nav {
    grid-column: 1 / -1;
    margin-left: 0;
    width: 100%;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
  .world-overlay {
    justify-content: flex-end;
    padding: 5.5rem var(--pad) 3.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .world-enter, .stage-word, .stage-caption { transition: none; }
}

.stage-word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 90%;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 5.8rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  text-shadow: 0 0 2.4rem rgba(247, 243, 234, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.stage-word.is-on { opacity: 1; }
.stage-caption {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(30rem, 88vw);
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stage-caption.is-on { opacity: 1; }


/* —— Production gallery home: static hero, no 3D —— */
html { background: var(--stone); }

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.4rem 0.55rem;
  min-height: 40px;
  min-width: 40px;
}
.lang-switch a[aria-current="page"] {
  border-color: var(--bronze);
  color: var(--bronze-dark);
}
.flagship .lang-switch a {
  background: rgba(247, 243, 234, 0.35);
  min-height: 36px;
  min-width: 36px;
}

.nav-dd { position: relative; display: inline-block; }
.nav-dd > a { border-bottom: 1px solid transparent; padding-bottom: 0.1rem; }
.nav-dd > a:hover,
.nav-dd:focus-within > a { border-bottom-color: var(--bronze); }
.nav-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  min-width: 14.5rem;
  padding: 0.4rem 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 0.4rem 1.2rem rgba(44, 38, 30, 0.08);
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  display: flex;
  flex-direction: column;
}
.nav-dd-menu a {
  padding: 0.45rem 0.85rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  border-bottom: none;
  color: var(--ink);
}
.nav-dd-menu a:hover { background: var(--stone); }

@media (max-width: 640px) {
  .nav-dd-menu { display: none !important; }
}

.hero-home {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  gap: 2rem;
  background: var(--stone);
  padding: 7.8rem var(--pad) 3.2rem;
}
.hero-home-copy { max-width: 36rem; }
.hero-home .world-kicker {
  margin: 0 0 0.85rem;
  font-size: clamp(0.92rem, 2.4vw, 1.08rem);
  letter-spacing: 0.01em;
  max-width: 28rem;
  color: var(--ink);
}
.hero-home h1 {
  font-size: clamp(3.2rem, 11vw, 6.4rem);
  margin: 0 0 1.35rem;
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: var(--ink);
}
.hero-home-photo { margin: 0; }
.hero-home-photo img {
  width: min(100%, 22rem);
  height: 26rem;
  object-fit: cover;
  object-position: 50% 18%;
}
@media (min-width: 900px) {
  .hero-home {
    grid-template-columns: 1fr minmax(16rem, 22rem);
    align-items: center;
    padding-top: 8.5rem;
  }
  .hero-home-photo img {
    width: 100%;
    height: min(70vh, 34rem);
  }
}

.room-block.static-plinth {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.room-block.static-plinth .room {
  height: auto;
  min-height: 12rem;
}
.room-block.static-plinth .room-fallback {
  position: relative;
  inset: auto;
}
