@font-face {
  font-family: Cove Serif;
  src: url("assets/NimbusRoman-Regular.woff") format("woff");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f3f0ea;
  --ink: #22211e;
  --dark: #171815;
  --light: #f9f6ee;
  --gutter: clamp(20px, 5.1vw, 88px);
  --serif: "Instrument Serif", "Cove Serif", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--dark); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid #ae8548; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 8; transform: translateY(-160%); background: var(--paper); padding: 12px; }
.skip:focus { transform: none; }

.site-header {
  position: fixed; z-index: 4; inset: 0 0 auto; padding-inline: var(--gutter);
  color: var(--light); min-height: 78px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; transition: background 250ms, min-height 250ms;
}
.site-header.is-solid { background: #171815f7; min-height: 64px; }
.wordmark { white-space: nowrap; font-size: 15px; letter-spacing: .1em; }
.wordmark strong { font-weight: 800; letter-spacing: .03em; }
nav { display: flex; gap: clamp(12px, 3.4vw, 48px); align-items: center; }
nav a, .eyebrow, .footer { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
nav a { padding-block: 14px; white-space: nowrap; position: relative; }
nav a::after { content: ""; height: 1px; background: currentColor; position: absolute; bottom: 7px; inset-inline: 0; transform: scaleX(0); transform-origin: left; transition: transform 220ms; }
nav a:hover::after, nav a[aria-current]::after { transform: scaleX(1); }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate;
  background: #3d4034 url("assets/fachada-principal.webp") center / cover; color: var(--light);
  display: grid; align-items: end; text-align: center;
}
.hero video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero video { object-fit: cover; object-position: 53% 50%; }
.hero-shade {
  background: linear-gradient(0deg, #0009, #0003 12%, transparent 28%),
    linear-gradient(180deg, #0008, transparent 14%);
}
.hero-title { text-shadow: 0 2px 12px #000a, 0 3px 32px #0007; }
.hero-title { padding: 105px var(--gutter) clamp(136px, 18vh, 202px); }
.hero-title .eyebrow { margin: 0 0 17px; letter-spacing: .23em; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(67px, 12.6vw, 190px); letter-spacing: -.052em; line-height: .83; }
.hero-bar {
  position: absolute; inset: auto var(--gutter) 0;
  padding-block: 19px clamp(22px, 4vh, 45px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid #f9f6ee69;
}
.down-link, .film-tools { display: flex; align-items: center; gap: 10px; }
.down-link { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; padding-block: 10px; }
.down-link span:first-child { font-size: 20px; transition: transform 200ms; }
.down-link:hover span:first-child { transform: translateY(4px); }
.circle {
  display: grid; place-items: center; padding: 0; width: 43px; height: 43px;
  color: inherit; background: #17181529; border: 1px solid #f9f6ee80;
  border-radius: 50%; cursor: pointer; transition: background 200ms, color 200ms;
}
.circle:hover { background: var(--light); color: var(--dark); }
.speaker { width: 21px; height: 18px; position: relative; }
.speaker::before { content: ""; position: absolute; inset: 3px auto 3px 1px; width: 11px; background: currentColor; clip-path: polygon(0 29%, 38% 29%, 100% 0, 100% 100%, 38% 71%, 0 71%); }
.speaker::after { content: "×"; position: absolute; left: 13px; top: -1px; font-size: 15px; }
#sound.is-audible .speaker::after { content: ""; left: 10px; top: 2px; width: 10px; height: 14px; border-right: 1px solid; border-radius: 50%; }

.section { padding: clamp(65px, 10vw, 150px) var(--gutter); scroll-margin-top: 55px; }
.gallery { background: var(--paper); }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap;
  max-width: 1800px; margin: 0 auto clamp(22px, 4vw, 57px); padding-bottom: 20px; border-bottom: 1px solid #86817370;
}
h2 { font-size: clamp(50px, 8vw, 124px); letter-spacing: -.045em; line-height: .9; }
.section-head .eyebrow { margin: 0 0 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: clamp(23px, 4.3vw, 70px) clamp(14px, 2vw, 32px); max-width: 1800px; margin: auto; align-items: end; }
.shot { margin: 0; min-width: 0; }
.shot.wide { grid-column: span 12; }
.shot.half { grid-column: span 6; }
.image-link { display: block; position: relative; overflow: hidden; background: #dfd9ce; }
.shot img { display: block; width: 100%; height: auto; transition: transform 550ms ease; }
.image-link:hover img { transform: scale(1.025); }
.expand { position: absolute; right: 12px; bottom: 12px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #f3f0eae8; color: var(--ink); opacity: 0; transition: opacity 220ms; }
.image-link:hover .expand, .image-link:focus-visible .expand { opacity: 1; }
figcaption { color: #59554d; margin-top: 12px; font-size: 13px; }
.tour { background: var(--dark); color: var(--light); padding-bottom: clamp(28px, 5vw, 70px); }
.external { padding-block: 8px; text-decoration: underline; text-underline-offset: 5px; }
.external span, .footer a span { margin-left: 5px; }
.tour-player { position: relative; max-width: 1800px; height: clamp(400px, 72svh, 950px); margin: auto; background: #26251f url("assets/patio.webp") center / cover; }
.tour-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.footer { display: flex; justify-content: space-between; gap: 15px; color: var(--light); padding: 28px var(--gutter) 35px; border-top: 1px solid #f9f6ee30; align-items: center; }

dialog { position: fixed; padding: 0; max-width: none; max-height: none; width: 100%; height: 100%; border: 0; color: var(--light); background: #11120ff7; }
dialog[open] { display: grid; grid-template-columns: 43px minmax(0, 1fr) 43px; gap: clamp(8px, 2vw, 24px); align-items: center; padding: 62px var(--gutter) 30px; }
dialog::backdrop { background: #11120f; }
body:has(dialog[open]) { overflow: hidden; }
.viewer-image { min-width: 0; margin: 0; text-align: center; }
.viewer-image img { display: block; width: 100%; max-height: 78dvh; object-fit: contain; }
.viewer-image figcaption { color: var(--light); }
.close { position: absolute; top: 14px; right: var(--gutter); font-size: 25px; }

@media (max-width: 650px) {
  .site-header { min-height: 61px; }
  .site-header.is-solid { min-height: 57px; }
  nav { gap: 11px; }
  nav a { font-size: 9px; letter-spacing: .09em; }
  .wordmark { font-size: 12px; }
  .hero-title .eyebrow { font-size: 9px; }
  .hero-title { padding-bottom: 150px; }
  .hero-bar { padding-top: 12px; }
  .gallery-grid { display: block; }
  .shot + .shot { margin-top: 30px; }
  .expand { opacity: 1; }
  .tour-player { height: min(65svh, 500px); min-height: 320px; }
  dialog[open] { grid-template-columns: repeat(2, 43px); grid-template-rows: 1fr 43px; justify-content: center; }
  .viewer-image { grid-column: 1 / -1; grid-row: 1; width: calc(100vw - 2 * var(--gutter)); justify-self: center; }
  .viewer-image img { max-height: 70dvh; }
  .previous, .next { grid-row: 2; }
}
@media (max-width: 365px) {
  .site-header { padding-inline: 13px; }
  nav { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@font-face {
  font-family: Interface Symbols;
  src: url("assets/InterfaceSymbols.woff") format("woff");
  font-display: block;
  unicode-range: U+00D7, U+2161, U+2190-2197, U+25B6;
}
nav a span, .down-link span:first-child, .external span, .footer a span,
.expand, #playback span, .close, .previous, .next {
  font-family: "Interface Symbols", var(--sans);
}
