/* Shared signature and navigation */
body { background: #141310; }
.site-header { background: #100f0e; color: #f4eee2; border-color: #443c2c; }
.header-inner { min-height: clamp(74px, 6.1vw, 92px); }
.brand { gap: .82rem; }
.brand-signature { width: clamp(3.5rem, 4.6vw, 4.35rem); height: auto; flex: none; }
.brand-name { font-size: clamp(1.45rem, 1.85vw, 1.85rem); }
.brand-name small { font-size: .59rem; letter-spacing: .27em; color: #d8bc82; }
footer .brand-signature { width: 4.25rem; }
.desktop-nav a, .desktop-nav summary { font-size: .93rem; }
.header-actions { gap: clamp(.8rem, 1.4vw, 1.6rem); }
.nav-drop,.mobile-menu { background: #191714; }
.nav-drop a:hover { background: #302b23; }
.site-header .nav-cta {
  border: 1px solid #987e52; background: transparent; color: #f1dab0;
  padding: .7rem 1.1rem; font-size: .88rem; box-shadow: none;
}
.site-header .nav-cta:hover { background: #31291c; }
.nav-cta svg { display: none; }
.lang-switch a[aria-current] { color: #f0d69f; }
.menu-toggle { background: #181612; border-color: #655438; }

/* The still is the first paint. Only layers behind the text move on scroll. */
.hero {
  --arcade-travel: 0px; --rib-travel: 0px; --drift: 0px;
  position: relative; isolation: isolate; overflow: hidden; background: #100f0d; color: #f7f0df;
}
.hero::before,.hero::after { content: none; }
.hero-stage,.hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-stage { z-index: -3; overflow: hidden; }
.arcade-picture,.arcade-distance,.people-picture,.hero .hero-model { position: absolute; inset: 0; }
.arcade-distance { display: none; }
.wall-reflections,.pavilion-reflections,.scene-picker .light-toggle { display: none; }
.arcade-picture { display: block; }
.arcade-photo, .people-picture {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% 55%;
  transform: translate3d(var(--drift),var(--arcade-travel),0) scale(1.045);
}
.people-picture { display: none; background-position: 72% 48%; background-size: cover; }
.hero[data-view="people"] .people-picture { display: block; background-image: url('/assets/family.webp'); }
.hero:not([data-view="arches"]) .arcade-picture,
.hero:not([data-view="arches"]) .arc-ribs { visibility: hidden; }
.pavilion-street { display: none; }
.hero[data-view="model"] .pavilion-street {
  display: block; position: absolute; inset: 0 0 0 auto;
  height: 100%; aspect-ratio: 2; max-width: 100%;
  background: url('/assets/pavilion-evening.webp') 71% 52% / cover no-repeat;
  mask-image: linear-gradient(90deg,transparent,#000 29%);
}
.hero .hero-model {
  display: none; left: auto; right: 1.5%; width: 53%; top: 4.25rem; bottom: 4rem;
}
.hero[data-view="model"] { background: #111419; scroll-margin-top: 6rem; }
.hero[data-view="model"][data-pavilion="study"] .hero-model { display: block; }
.hero[data-pavilion="study"] .hero-stage:has(.model-ready) {
  background: radial-gradient(ellipse at 73% 48%,#333c46 0%,#191e24 37%,#101214 75%);
}
.hero[data-pavilion="study"] .hero-stage:has(.model-ready) .pavilion-street { opacity: 0; }
.hero .hero-shade {
  z-index: -2; background:
    linear-gradient(90deg, #0e0d0be6 0%,#11100dcc 24%,#15120d7d 42%,transparent 69%),
    linear-gradient(0deg,#0e0d0bc2 0%,transparent 24%);
}
.hero[data-view="people"] .hero-shade { background: linear-gradient(90deg,#12110fef 0%,#12110fce 32%,#12110f45 66%,#12110f18), linear-gradient(0deg,#12110fb0,transparent 30%); }
.hero[data-view="model"] .hero-shade {
  background: linear-gradient(90deg,#0b1014f7 0%,#0c1014ec 25%,#0b1014b8 38%,#10141739 55%,transparent 69%),
    linear-gradient(0deg,#0c0d10bd 0%,transparent 21%);
}
.hero[data-view="model"] .hero-copy { width: 46%; }
.hero[data-view="model"] h1 { font-size: clamp(3.5rem,5.6vw,5.85rem); }
html:lang(es) .hero[data-view="model"] h1 { font-size: clamp(2.9rem,4.7vw,4.95rem); }
.hero[data-view="model"] .hero-desc { max-width: 28rem; }
.pavilion-tools {
  position: absolute; top: 1.4rem; right: var(--gutter); display: flex;
  align-items: center; gap: .4rem; color: #fff0d1;
}
.pavilion-tools button {
  color: inherit; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; min-height: 44px; border: 1px solid #bda479a6; background: #101418ed;
  border-radius: .2rem; font: 500 .85rem/1.2 var(--sans);
}
.pavilion-tools button:hover { color: #ffe8b9; background: #28241e; border-color: #e4c387; }
.pavilion-switch { gap: .45rem; padding: .55rem .8rem; }
.pavilion-tools svg { width: 1.05rem; height: 1.05rem; color: #e2c68f; }
.pavilion-switch svg:nth-child(2),.hero[data-pavilion="study"] .pavilion-switch svg:first-child { display: none; }
.hero[data-pavilion="study"] .pavilion-switch svg:nth-child(2) { display: block; }
.pavilion-rotation { display: flex; gap: .2rem; }
.pavilion-rotation button { width: 44px; }
.pavilion-rotation button:last-child svg { transform: scaleX(-1); }
.pavilion-status { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.arc-ribs {
  position: absolute; inset: 0 -12% -18% auto; width: 68%; pointer-events: none;
  transform: translate3d(0,var(--rib-travel),0); opacity: .45;
  mask-image: linear-gradient(270deg, black 30%,transparent 96%);
}
.arc-ribs i {
  position: absolute; width: 112%; height: 155%; top: -37%; right: -9%;
  border: 1px solid #ebc48680; border-radius: 52% 52% 0 0 / 56% 56% 0 0;
}
.arc-ribs i:nth-child(2) { right: -11%; top: -36%; }
.arc-ribs i:nth-child(3) { right: -15%; top: -34%; }
.hero-inner {
  position: relative; min-height: clamp(565px, min(52vw,77svh),790px); display: flex; align-items: center;
  padding-top: clamp(4.5rem,6vw,6.8rem); padding-bottom: clamp(6rem,8vw,9rem);
}
.hero-copy { width: min(57%,55rem); }
.hero .eyebrow { color: #edce8e; font-size: clamp(.74rem,.9vw,.88rem); line-height: 1.5; letter-spacing: .16em; }
.hero .eyebrow i { width: 2.5rem; background: #c5a467; }
.hero h1 {
  margin: 1.35rem 0 1.25rem; font: 400 clamp(3.63rem,6.2vw,6.5rem)/1 var(--serif);
  letter-spacing: -.058em; color: #fff7e8;
}
.hero h1 span,.hero h1 em { display: block; }
.hero h1 em { font-weight: 400; color: #efcf91; }
.hero-desc { max-width: 30rem; color: #e8e1d5; font-size: clamp(1rem,1.18vw,1.14rem); line-height: 1.68; }
.hero .button-row { align-items: center; gap: 1.45rem; margin-top: 1.7rem; }
.hero .btn-brand {
  min-height: 3.05rem; padding: .8rem 1.65rem; box-shadow: none; border-color: #d9ba83;
  background: linear-gradient(120deg,#f5db9f,#ddbb79); color: #21190d; font-size: .93rem;
}
.hero .btn-brand:hover { background: #ffe6ae; }
.hero-secondary {
  display: inline-flex; align-items: center; min-height: 44px; color: #f5ead6;
  font-size: .93rem; font-weight: 550; text-decoration: underline; text-underline-offset: .42em; text-decoration-color: #b3955c;
}
.hero-secondary:hover { color: #f5d48e; }
.scene-picker {
  position: absolute; bottom: 1.5rem; right: var(--gutter); display: flex; gap: .45rem;
  color: #fff1db; align-items: stretch;
}
.scene-picker button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; position: relative; border: 1px solid #ada18b65; background: #11100ec9;
  padding: .5rem .85rem; min-height: 42px; color: #e9e2d7; font: 500 .79rem/1.2 var(--sans); cursor: pointer;
}
.scene-picker button[aria-pressed="true"] { background: #19150fe8; border-color: #cfac6a; color: #ffe0a3; }
.scene-picker button:hover { border-color: #e7c98e; }
.scene-picker svg { height: .95rem; width: .95rem; color: #dfbd7e; }
.proof { background: #13120f; color: #f0e7d7; border-top: 1px solid #655436; border-bottom: 1px solid #443b2b; }
.proof-inner { min-height: 4.65rem; }
.proof-item { font-size: .92rem; font-weight: 450; }
.proof-item + .proof-item { border-color: #50432f; }
.proof-item svg { color: #d3ac67; width: 1.2rem; height: 1.2rem; }
/* The aperture follows the actual inside edge of the last brass arch in each crop. */
@supports (mask-image: url('/assets/arch-aperture.svg')) {
  @media (prefers-reduced-motion: no-preference) {
    .hero[data-view="arches"] .arcade-distance {
      display: block; transform: translate3d(var(--drift),var(--arcade-travel),0) scale(1.045);
    }
    .arcade-distance::before {
      content: ""; position: absolute; inset: 0; background: url('/assets/golden-arcade.webp') 65% 55% / cover;
      transform-origin: 74% 57%; transform: translateY(calc(var(--rib-travel) * .33)) scale(1.18);
    }
    .arcade-photo { mask: url('/assets/arch-aperture.svg') 65% 55% / cover no-repeat; }
  }
  @media (prefers-reduced-motion: no-preference) and (max-width:700px) {
    .arcade-distance::before { background-image: url('/assets/golden-arcade-mobile.webp'); background-position: 50% 57%; transform-origin: 58% 58%; }
    .arcade-photo { mask-image: url('/assets/arch-aperture-mobile.svg'); mask-position: 50% 57%; }
  }
}
/* The photograph's luminance preserves the fluting and stone grain. The second
   mask cuts the mountain opening out of the reflected light in image space. */
@supports (mask-composite: intersect) and (mask-mode: luminance) {
  @media (prefers-reduced-motion: no-preference) {
    .hero[data-view="arches"] .wall-reflections {
      --wall-photo: url('/assets/golden-arcade.webp');
      --opening: url('/assets/arch-aperture.svg');
      display: block; position: absolute; inset: 0; overflow: hidden;
      transform: translate3d(var(--drift),var(--arcade-travel),0) scale(1.045);
      mask-image: var(--wall-photo),var(--opening);
      mask-mode: luminance,alpha; mask-composite: intersect;
      mask-size: cover; mask-position: 65% 55%; mask-repeat: no-repeat;
      mix-blend-mode: screen;
    }
    .wall-reflections::before,.wall-reflections::after {
      content: ""; position: absolute; inset: -7%;
      animation: wall-light-drift 11s ease-in-out -3s infinite alternate;
      animation-play-state: var(--light-play-state,paused);
    }
    .wall-reflections::before {
      background: linear-gradient(124deg,transparent 26%,rgb(255 208 130 / 15%) 35%,
        rgb(255 227 174 / 54%) 39%,transparent 44%,transparent 54%,
        rgb(255 223 158 / 40%) 58%,rgb(255 208 138 / 13%) 61%,transparent 67%);
    }
    .wall-reflections::after {
      background: linear-gradient(110deg,transparent 55%,rgb(255 227 164 / 22%) 60%,
        transparent 65%,transparent 76%,rgb(255 235 195 / 47%) 81%,transparent 86%);
      animation-duration: 15s; animation-delay: -9s; animation-direction: alternate-reverse;
    }
    .hero[data-light-running] { --light-play-state: running; }
    .hero[data-view="arches"] .light-toggle { display: inline-flex; min-width: 44px; }
    .light-toggle svg:last-child,.hero[data-light-paused] .light-toggle svg:first-child { display: none; }
    .hero[data-light-paused] .light-toggle svg:last-child { display: block; }
  }
  @media (prefers-reduced-motion: no-preference) and (max-width:700px) {
    .hero[data-view="arches"] .wall-reflections {
      --wall-photo: url('/assets/golden-arcade-mobile.webp');
      --opening: url('/assets/arch-aperture-mobile.svg');
      mask-position: 50% 57%;
    }
  }
}
/* Match the photo's cover dimensions and focal point so the glass stays
   registered with its frames through cropping and pointer parallax. */
@supports (width: 1cqh) and (mask-composite: intersect) and (mask-mode: luminance) {
  @media (prefers-reduced-motion: no-preference) {
    .hero[data-view="model"][data-pavilion="street"] .light-toggle { display: inline-flex; min-width: 44px; }
    .hero[data-view="model"][data-pavilion="street"] .pavilion-street { container-type: size; overflow: hidden; }
    .hero[data-view="model"][data-pavilion="street"] .pavilion-reflections {
      display: block; position: absolute; pointer-events: none; mix-blend-mode: screen;
      width: max(100cqw,200cqh); height: max(100cqh,50cqw);
      left: 71%; top: 52%; translate: -71% -52%;
    }
    .pavilion-reflections rect {
      animation: pavilion-light-drift 14s ease-in-out -4s infinite alternate;
      animation-play-state: var(--light-play-state,paused);
    }
    .pavilion-reflections .window-light { animation-delay: -4.8s; }
  }
  @media (prefers-reduced-motion: no-preference) and (max-width:700px) {
    .hero[data-view="model"][data-pavilion="street"] .pavilion-reflections {
      width: max(100cqw,139.35484cqh); height: max(100cqh,71.75926cqw);
      left: 56%; top: 28%; translate: -56% -28%;
    }
  }
}
@keyframes pavilion-light-drift {
  from { transform: translateX(-53px); }
  to { transform: translateX(61px); }
}
@keyframes wall-light-drift {
  from { transform: translate3d(-3.2%,1.5%,0); opacity: .65; }
  to { transform: translate3d(3.2%,-1.5%,0); opacity: 1; }
}
@keyframes arrive-in-arcade { from { opacity:.82; translate:0 5px; } to { opacity:1; translate:0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive-in-arcade .72s ease-out both; }
  .pavilion-street {
    transform: translate3d(var(--drift),calc(var(--arcade-travel) * .07),0) scale(1.016);
    transition: opacity .28s ease;
  }
  .scene-picker button { transition: border-color .2s ease,color .2s ease,background-color .2s ease; }
}
@media (min-width:701px) and (max-width:1000px) {
  .hero-copy { width: 62%; }
  .hero h1 { font-size: clamp(3.5rem,6.8vw,4.6rem); }
  .hero-desc { width: 91%; }
  .hero[data-view="model"] .hero-copy { width: 49%; }
  .hero[data-view="model"] .button-row { gap: .5rem 1rem; }
}
@media (max-width:700px) {
  .header-inner { min-height: 4.25rem; }
  .brand { gap: .55rem; }
  .brand-signature { width: 2.95rem; }
  .brand-name { font-size: 1.37rem; }
  .brand-name small { font-size: .53rem; margin-top: .32rem; }
  .header-actions { gap: .6rem; }
  .hero { --picture-height: clamp(210px,55vw,340px); }
  .hero-stage { height: calc(var(--picture-height) + 1rem); bottom: auto; }
  .arcade-photo { object-position: 50% 57%; }
  .hero[data-view="model"] { --picture-height: clamp(245px,66vw,365px); }
  .hero .hero-model { inset: 3.7rem 0 .15rem; width: 100%; }
  .hero[data-view="model"] .pavilion-street {
    width: 100%; aspect-ratio: auto; mask-image: none;
    background-image: url('/assets/pavilion-evening-mobile.webp'); background-position: 56% 28%;
  }
  .hero[data-pavilion="study"] .hero-stage:has(.model-ready) { background: radial-gradient(ellipse at 50% 55%,#35404a,#14181c 78%); }
  .pavilion-tools { top: .65rem; right: .8rem; }
  .hero .hero-shade,.hero[data-view="people"] .hero-shade,.hero[data-view="model"] .hero-shade {
    height: calc(var(--picture-height) + 1.1rem); bottom: auto;
    background: linear-gradient(0deg,#100f0d 0%,#100f0df0 3%,#100f0d4a 29%,transparent 53%);
  }
  .hero[data-view="model"] { background: #100f0d; }
  .hero-inner { display: block; min-height: auto; padding-top: calc(var(--picture-height) - .1rem); padding-bottom: 1.3rem; }
  .hero-copy { width: 100%; }
  .hero[data-view="model"] .hero-copy { width: 100%; }
  .hero .eyebrow { font-size: .74rem; }
  .hero h1 { font-size: clamp(2.72rem,10.5vw,4.75rem); margin: .65rem 0 1rem; line-height: 1.01; }
  .hero[data-view="model"] h1 { font-size: clamp(2.8rem,11vw,4.75rem); }
  html:lang(es) .hero[data-view="model"] h1 { font-size: clamp(2.37rem,9.4vw,4.3rem); }
  .hero-desc { max-width: 34rem; font-size: 1rem; line-height: 1.53; }
  .hero .button-row { gap: 1.25rem; margin-top: 1.25rem; }
  .hero .btn-brand { padding-inline: 1.2rem; min-height: 2.9rem; }
  .scene-picker { position: static; margin-top: 1.5rem; padding-top: .4rem; border-top: 1px solid #443b2b; gap: .85rem; }
  .scene-picker button { padding: .55rem .05rem; border: 0; border-bottom: 1px solid transparent; min-height: 44px; color: #d6cfc1; background: transparent; }
  .scene-picker button[aria-pressed="true"] { background: transparent; border-bottom-color: #ceaa68; }
  .proof-inner { min-height: 5.15rem; }
  .proof-item { font-size: .79rem; }
}
@media (max-width:370px) {
  .brand-name { font-size: 1.15rem; }
  .brand-signature { width: 2.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-photo,.people-picture,.arc-ribs { transform: none; }
  .hero-copy { animation: none; }
}
