header nav { gap: 1px; }
header nav a, header nav a:hover {
  border-radius: 11px; padding: 0 clamp(8px,.8vw,14px);
  font-size: clamp(16px,1.22vw,19px); text-decoration: none;
  transition: background-color .16s ease;
}
header nav a:is(:hover,:focus-visible,[aria-current="location"]) { background: #F3EBE0; }
header nav a:active { background: #E8DCCD; }
header .lang { gap: 0; padding: 2px; border: 1px solid #E4D9CE; border-radius: 12px; background: var(--second); }
header .lang a, header .lang a:hover { min-height: 38px; min-width: 40px; font-size: 13px; text-decoration: none; }
header .lang a[aria-current] { background: var(--base); color: var(--accent); box-shadow: 0 1px 4px #3a22191c; text-decoration: none; }
header .lang a:hover { background: #F3EBE0; }
@media (min-width: 821px) and (max-width: 1150px) {
  header { padding-inline: 14px; gap: 8px; }
  header .brand span { display: none; }
  header nav a { font-size: 16px; padding-inline: 6px; }
  header .controls { gap: 5px; }
}
.mobile-cta.button[hidden], .viewer-nav[hidden] { display: none; }
.hero-copy .button.info-action { background: transparent; color: inherit; border-color: currentColor; }
@media (max-width: 820px) {
  .hero-copy .offer { justify-content: flex-start; }
  .offer .offer-main { flex-basis: 100%; margin-bottom: 4px; }
  .hero-copy .button.info-action { color: var(--accent); }
  header .lang a { min-height: 44px; min-width: 42px; }
}
@media (min-width: 821px) {
  .hero-copy .offer-main { flex-basis: 100%; }
}
.gallery-grid a, .illustration a[data-expand], .contact-visual a { display: block; }
[data-gallery] img { cursor: zoom-in; }
.planrow img { background: var(--base); border-color: #E8DFD4; border-radius: 12px; mix-blend-mode: multiply; }
body:has(#viewer[open]) { overflow: hidden; }
#viewer {
  color: var(--ink); background: var(--base); width: min(1120px,96vw);
  max-height: 94dvh; border-radius: 18px; padding: clamp(10px,1.4vw,20px);
}
#viewer::backdrop { background: rgb(41 32 25 / 66%); }
#viewer button { min-height: 44px; padding: 7px 14px; border: 1px solid #D8C9BB; border-radius: 11px; color: var(--ink); background: var(--base); }
#viewer button:is(:hover,:focus-visible) { background: var(--second); }
.viewer-tools, .viewer-nav { display: flex; gap: 8px; align-items: center; }
.viewer-tools { margin-bottom: 10px; }
#view-position { margin-inline-end: auto; font-size: 14px; }
.viewer-nav { justify-content: center; margin-top: 10px; }
.viewer-stage { overflow: auto; overscroll-behavior: contain; height: min(67dvh,680px); background: var(--base); border-radius: 8px; }
#viewer .viewer-stage img { display: block; width: 100%; max-width: none; height: 100%; max-height: none; object-fit: contain; }
#viewer[data-group="plans"] .viewer-stage img { mix-blend-mode: multiply; }
#viewer.zoomed .viewer-stage img { width: var(--zoom-width); height: var(--zoom-height); }
#viewer:not(.zoomed) .viewer-stage { touch-action: pan-y pinch-zoom; }
@media (max-width: 640px) {
  #viewer { max-width: 100%; width: 96vw; }
  .viewer-stage { height: min(59dvh,100vw); }
  .viewer-tools { gap: 6px; }
  #viewer button { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) { header nav a { transition: none; } }
/* Cover photograph, fixed navigation and the two contact channels. */
header {
  position: fixed; inset: 0 0 auto; color: #fffdf9; border: 0;
  --header-tint: 0;
  background: transparent;
  isolation: isolate;
}
header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgb(48 37 30 / calc(.54 + .23 * var(--header-tint))),
    rgb(48 37 30 / calc(.22 + .49 * var(--header-tint))) 65%,
    rgb(48 37 30 / calc(.08 + .60 * var(--header-tint))));
  backdrop-filter: blur(calc(6px * var(--header-tint)));
}
header .brand img { filter: brightness(0) invert(1); }
header .brand span, header .menu { color: inherit; }
header nav a:is(:hover,:focus-visible,[aria-current="location"]) { background: #ffffff25; }
header .lang { background: #30271d38; border-color: #ffffff75; }
header .lang a:hover { background: #ffffff24; }
header :is(a,button):focus-visible { outline-color: #fffdf9; box-shadow: 0 0 0 2px #332a24; }
header nav.open { background: rgb(48 37 30 / .82); backdrop-filter: blur(6px); }
.hero {
  display: grid; grid-template: 1fr / minmax(0,1fr); padding: 0; color: #fffdf9;
  background: #483b2e; height: min(100svh,72vw); min-height: 440px;
}
.hero .hero-image, .hero .hero-copy { grid-area: 1 / 1; }
.hero .hero-image { height: 100%; min-height: 0; position: relative; }
.hero .hero-image picture, .hero .hero-image picture img {
  position: static; display: block; width: 100%; height: 100%; max-height: none;
}
.hero .hero-image picture img { aspect-ratio: auto; object-fit: cover; object-position: center 65%; }
.hero .hero-image::after {
  content: ""; position: absolute; inset: 0; display: block; background: linear-gradient(90deg,#211811c9,transparent 74%);
}
.hero .hero-copy {
  align-self: center; justify-self: start; margin: 46px var(--g) 0; padding: 0;
  background: transparent; text-shadow: 0 1px 4px #221a1490; max-width: min(620px,65vw);
}
.hero .hero-copy .kicker { color: #fffdf9; }
.hero .hero-copy h1 { font-size: clamp(74px,7.6vw,126px); }
.hero .hero-copy .price { font-size: clamp(27px,2.4vw,40px); }
.contact-dock { position: fixed; z-index: 6; bottom: max(18px,env(safe-area-inset-bottom)); right: clamp(14px,2.1vw,36px); display: grid; justify-items: end; gap: 8px; }
.contact-dock .talk, .contact-dock .chat { display: grid; place-items: center; box-shadow: 0 2px 10px #281e1626; }
.talk { border: 1px solid #d4bca6; border-radius: 999px; min-height: 44px; padding: 8px 19px; background: #fff6e8; color: #513629; font-weight: 650; }
.chat { border-radius: 50%; width: 52px; height: 52px; background: #167c43; color: white; }
.chat svg { width: 29px; height: 29px; }
footer { padding-right: max(160px,var(--g)); }
.contact-dock :is(a,button):hover { filter: brightness(.95); }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-top h2 { font-size: clamp(32px,4vw,50px); }
.dismiss { min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--base); color: var(--ink); }
.contact-visual { margin: 0; }
[data-gallery]:not(.hero-image) { position: relative; }
.image-caption, .thumb span.image-caption {
  position: absolute; z-index: 1; bottom: 0; left: 0; margin: 0; display: block;
  padding: 8px 13px; max-width: 100%; font: 550 clamp(14px,1.1vw,17px)/1.3 "Segoe UI",Arial,sans-serif;
  letter-spacing: normal; text-transform: none; pointer-events: none; color: #fffdf9;
  background: rgba(36,27,22,.79); border-radius: 0 9px 0 0; text-shadow: 0 1px 2px #221a1440;
}
.planrow .image-caption, #viewer[data-group=plans] .image-caption { background: #fffdf9f0; color: #332a24; text-shadow: none; }
.viewer-figure { position: relative; --stage-limit: min(65dvh,680px); width: min(100%,calc(var(--stage-limit) * var(--ratio,1.5))); margin-inline: auto; }
.viewer-figure .viewer-stage { width: 100%; height: auto; aspect-ratio: var(--ratio,1.5); }
#viewer.zoomed .viewer-stage { height: auto; }
@media (max-width: 820px) {
  .hero { height: 92svh; max-height: 1020px; min-height: 500px; }
  .hero .hero-copy { max-width: calc(100% - 2 * var(--g)); margin: 74px var(--g) 0; }
  .hero .hero-copy h1 { font-size: clamp(60px,13vw,96px); line-height: .95; }
  .hero .hero-copy h1 em { display: block; }
  .hero .hero-copy .lead { font-size: clamp(17px,4.2vw,22px); max-width: 27ch; margin-top: 14px; }
  .hero .hero-copy .offer { margin-top: 14px; }
  .hero .hero-image::after { background: linear-gradient(90deg,#1e1712a6,transparent 93%),linear-gradient(0deg,#231a1622,transparent 30%,#21181148 57%,transparent 90%); }
  footer { padding-bottom: 145px; padding-right: var(--g); }
  .gallery-grid .image-caption { font-size: 14px; padding: 6px 10px; }
}
@media (max-height: 550px) and (orientation: landscape) { .hero { min-height: 390px; } }
@media (prefers-reduced-motion: reduce) { header::before { transition: none; } }
