:root {
  --bg: #f6f3ee;
  --surface: #fdfbf7;
  --alt: #ece7de;
  --ink: #1e1d1b;
  --muted: #57534c;
  --line: #d6cfc2;
  --accent: #6f5434;
  --dark: #1d221e;
  --on-dark: #f3efe7;
  --on-dark-muted: #c9c3b6;
  --focus: #2f5bd3;
  --heading: "Lora", Georgia, serif;
  --body: "Source Sans 3", Arial, sans-serif;
  --radius: 2px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 400; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 238, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { white-space: nowrap; font-family: var(--heading); font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.site-nav ul { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: .5rem 0; display: inline-block; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); }
.lang-switch button { font: inherit; font-size: .85rem; letter-spacing: .06em; background: none; border: 0; padding: .5rem .7rem; min-width: 44px; min-height: 44px; color: var(--muted); cursor: pointer; }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.menu-toggle { display: none; font: inherit; background: none; border: 1px solid var(--line); border-radius: var(--radius); min-height: 44px; padding: 0 .9rem; align-items: center; gap: .6rem; color: var(--ink); cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: .75rem; }
  .menu-toggle { display: inline-flex; order: 2; }
  .lang-switch { order: 3; }
  .site-nav { order: 4; width: 100%; display: none; padding-bottom: 1rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .brand { font-size: 1rem; width: 100%; padding-top: .6rem; white-space: normal; }
  .hero-facts dd { white-space: normal; }
  .menu-toggle { order: 2; margin-right: auto; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #fff; background: #2a2a26 url("assets/panorama1.jpg") center / cover no-repeat; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgba(12, 12, 10, .82) 0%, rgba(12, 12, 10, .55) 40%, rgba(12, 12, 10, .2) 75%, rgba(12, 12, 10, .3) 100%); }
.hero-content { padding-top: 8rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.eyebrow { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); max-width: 14ch; font-weight: 400; }
.hero-sub { font-family: var(--heading); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin-top: 1rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 2.5rem 0 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .45); max-width: 760px; }
.hero-facts dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.hero-facts dd { white-space: nowrap; margin: .2rem 0 0; font-size: 1.15rem; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.video-toggle { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-size: .9rem; color: #fff; background: rgba(12, 12, 10, .6); border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; min-height: 44px; padding: 0 1rem; cursor: pointer; }
.video-toggle:hover { background: rgba(12, 12, 10, .85); }
.video-toggle:focus-visible { outline-color: #fff; }
.video-icon { width: 12px; height: 12px; border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor; }
.video-toggle.is-paused .video-icon { border: 0; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }
@media (max-width: 640px) {
  .hero { min-height: 92vh; }
  .hero-content { padding-bottom: 6rem; }
  .hero-facts { gap: 1rem 2rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.6rem; font: inherit; font-weight: 500; letter-spacing: .02em; text-decoration: none; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-shadow: none; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--alt); color: var(--ink); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .8); background: rgba(12, 12, 10, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); }
.hero .btn:focus-visible, .section-dark .btn:focus-visible { outline-color: #fff; }
.btn-text { display: inline-flex; align-items: center; gap: .6rem; font: inherit; font-weight: 500; color: var(--accent); background: none; border: 0; padding: .75rem 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover { color: var(--ink); }
.chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-2px, 0); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--alt); }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 36ch; margin-top: -1rem; }
.subhead { font-size: 1.5rem; margin: 4rem 0 1.5rem; }

.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts:first-of-type > div:first-child { border-top: 1px solid var(--ink); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.disclosure { margin-top: 1rem; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: .15rem; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 4rem; }
.features li { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.features h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.features p { color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; gap: 1.5rem; } }

.dev-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dev-list li { background: var(--surface); padding: 1.75rem; display: flex; gap: 1rem; }
.dev-num { font-family: var(--heading); color: var(--accent); font-size: 1rem; padding-top: .2rem; }
.dev-list h4 { font-size: 1.3rem; margin-bottom: .35rem; }
.dev-list p { color: var(--muted); }
@media (max-width: 780px) { .dev-list { grid-template-columns: 1fr; } }

/* Image trigger (consistent everywhere) */
.figure-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #ccc; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.figure-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.figure-btn:hover img { transform: scale(1.03); }
.zoom-hint { position: absolute; left: .75rem; bottom: .75rem; font-size: .8rem; letter-spacing: .06em; background: rgba(20, 20, 18, .78); color: #fff; padding: .3rem .65rem; opacity: 0; transition: opacity .2s; }
.figure-btn:hover .zoom-hint, .figure-btn:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.gallery + .gallery { margin-top: .75rem; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery .g-wide .figure-btn { aspect-ratio: auto; height: 100%; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .g-wide { grid-row: auto; }
  .gallery .g-wide .figure-btn { aspect-ratio: 3 / 2; }
}

/* Location */
.plots { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plots li { background: var(--surface); padding: 1.4rem 1.5rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.plots h3 { font-size: 1.2rem; }
.plot-area { font-family: var(--heading); font-size: 1.6rem; }
.notes { margin-top: 1.75rem; display: grid; gap: .7rem; }
.notes li { padding-left: 1.4rem; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: .6rem; height: 1px; background: var(--accent); }
.plot-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.plot-images .g-wide { grid-column: 1 / -1; }
.plot-images .g-wide .figure-btn { aspect-ratio: 16 / 9; }
.map { margin-top: clamp(2.5rem, 5vw, 4rem); border: 1px solid var(--line); background: #ddd; }
.map iframe { display: block; width: 100%; height: clamp(320px, 50vw, 480px); border: 0; }
.map-link { margin-top: .9rem; }

/* Price */
.section-dark { background: var(--dark); color: var(--on-dark); }
.price { text-align: center; }
.price h2 { font-size: 1rem; font-family: var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1.25rem; }
.price-main { white-space: nowrap; font-family: var(--heading); font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 1.05; }
.price-sub { font-size: 1.25rem; margin-top: .75rem; }
.price-note { color: var(--on-dark-muted); margin: 1.5rem 0 2.25rem; font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); margin-top: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.people { display: grid; gap: 1.5rem; align-content: start; }
.person { display: flex; gap: 1.25rem; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.person img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; }
.person h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.person-links { display: grid; gap: .1rem; }
.person-links a { display: inline-block; padding: .3rem 0; overflow-wrap: anywhere; }
.contact-form { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.25rem; }
.contact-form h3 { font-size: 1.5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; }
.field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #8d877c; border-radius: var(--radius); padding: .75rem .85rem; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: #a32020; border-width: 2px; }
.hint { font-size: .9rem; color: var(--muted); }
.error { font-size: .92rem; color: #a32020; font-weight: 500; }
.contact-form .btn { justify-self: start; }
.form-status:empty { display: none; }
.form-status { color: #23602f; font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .95rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer a { padding: .6rem 0; display: inline-block; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(10, 10, 9, .94); }
.lb-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4.5rem 4.5rem 1.5rem; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 100%; max-height: 100%; min-height: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 10rem); object-fit: contain; }
.lb-figure figcaption { font-size: 1rem; text-align: center; color: #eee; }
.lb-counter { position: absolute; top: 1.4rem; left: 1.5rem; font-size: .95rem; color: #ddd; letter-spacing: .08em; }
.lb-btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; font: inherit; font-size: 1.9rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-close { top: 1rem; right: 1rem; font-size: 1.2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-inner { padding: 4.5rem .75rem 6rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1.25rem; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}
