/* ==========================================================================
   Vrouchas plot — light theme, Verdana base.
   Palette taken from the site itself: Mirabello water, phrygana scrub,
   limestone, and one mineral red used only where scarcity is claimed.
   ========================================================================== */

:root {
  --ink: #101e26;
  --ink-soft: #5a6b72;
  --sea: #17515f;
  --sea-deep: #0c3a45;
  --olive: #808d6e;
  --limestone: #ebede8;
  --limestone-deep: #dfe2da;
  --iron: #a63a2a;
  --white: #ffffff;
  --line: #d7dbd3;

  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1160px;
  --band: clamp(64px, 9vw, 128px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Verdana, Arial, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body { color: var(--ink); }

img { max-width: 100%; display: block; }

a { color: var(--sea); }

:focus-visible {
  outline: 3px solid var(--iron);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type system ------------------------------------------------ */

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 14px;
  font-weight: bold;
}

.h-display {
  font-size: clamp(38px, 8.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: bold;
  margin: 0;
}

.h-section {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: bold;
  margin: 0 0 24px;
}

.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  max-width: 62ch;
  color: var(--ink);
  margin: 0 0 28px;
}

.fig {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.muted { color: var(--ink-soft); }

.note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* ---------- Top bar ---------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 58px;
}

.brandmark {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--sea);
  text-decoration: none;
  white-space: nowrap;
}

.topnav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}

.topnav a {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.topnav a:hover { color: var(--sea); }

.langswitch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.langswitch button {
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  padding: 7px 11px;
  border: 0;
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
}
.langswitch button[aria-pressed="true"] {
  background: var(--sea);
  color: var(--white);
}

/* ---------- Hero + 3D signature ---------------------------------------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f9f7 0%, #ffffff 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: clamp(36px, 6vw, 72px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
  }
}

.hero-title-mark {
  display: inline-block;
  border-left: 4px solid var(--iron);
  padding-left: 16px;
}

.hero .lead { margin-top: 22px; }

.statline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.stat {
  padding: 16px 24px 16px 0;
  margin-right: 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; margin-right: 0; }

.stat-v {
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: bold;
  letter-spacing: -0.03em;
  display: block;
  color: var(--sea-deep);
}
.stat-k {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-top: 2px;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.btn-primary { background: var(--iron); color: var(--white); }
.btn-primary:hover { background: #8d3023; }

.btn-ghost {
  background: transparent;
  color: var(--sea);
  border: 1px solid var(--sea);
}
.btn-ghost:hover { background: var(--sea); color: var(--white); }

.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 3D stage */

.stage {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

@media (min-width: 940px) { .stage { aspect-ratio: 5 / 4; } }

.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }

.stage-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.86);
  padding: 6px 10px;
  border-radius: 2px;
  pointer-events: none;
}

.stage-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  background: #eef3f4;
}
.stage-status[hidden] { display: none; }

.stage-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 2px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--sea); color: var(--sea); font-weight: bold; }
.chip:hover { border-color: var(--sea); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-soft);
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  display: inline-block;
  flex: none;
}

/* ---------- Sections --------------------------------------------------- */

.band { padding-top: var(--band); padding-bottom: var(--band); }
.band-tint { background: var(--limestone); }
.band-ink { background: var(--sea-deep); color: #eef3f4; }
.band-ink .h-section { color: #ffffff; }
.band-ink .eyebrow { color: #9fb9a8; }
.band-ink .lead { color: #d5e2e4; }
.band-ink a { color: #a8d5cf; }

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 880px) {
  .two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

.envelope {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.env-cell { background: var(--white); padding: 26px 22px; }
.band-tint .env-cell { background: var(--limestone); }

.env-k {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: bold;
  margin: 0;
}
.env-v {
  font-size: 30px;
  font-weight: bold;
  letter-spacing: -0.04em;
  color: var(--sea-deep);
  margin: 8px 0 10px;
  line-height: 1;
}
.env-d { font-size: 12px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

.aside-quote {
  border-left: 4px solid var(--olive);
  padding-left: 20px;
  margin: 40px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  margin-top: 48px;
}

.card {
  background: rgba(255, 255, 255, 0.07);
  border-top: 3px solid #a8d5cf;
  padding: 24px 22px 26px;
}
.card h3 {
  font-size: 15px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.card p { font-size: 13px; line-height: 1.7; margin: 0; color: #d5e2e4; }

/* Facts table */

.facts {
  border-top: 2px solid var(--ink);
  margin-top: 8px;
}
.fact-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.fact-k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.fact-v { font-size: 15px; font-weight: bold; letter-spacing: -0.01em; }

/* Distances */

.distances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 32px;
}
.dist { background: var(--white); padding: 20px 18px; }
.dist-v { font-size: 24px; font-weight: bold; letter-spacing: -0.03em; color: var(--sea-deep); display: block; }
.dist-k { font-size: 11px; color: var(--ink-soft); display: block; margin-top: 4px; }

#map {
  height: clamp(300px, 46vw, 460px);
  margin-top: 36px;
  border: 1px solid var(--line);
  background: var(--limestone);
}

/* Gallery */

.grid-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.grid-photos button {
  padding: 0;
  border: 0;
  background: var(--limestone-deep);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.grid-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.grid-photos button:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 30, 38, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 300;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: inherit;
  font-size: 12px;
  padding: 10px 16px;
  background: var(--white);
  border: 0;
  cursor: pointer;
  border-radius: 2px;
}

/* Documents */

.doclist { list-style: none; margin: 28px 0 0; padding: 0; }
.doclist li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  position: relative;
}
.doclist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 14px;
  height: 2px;
  background: var(--olive);
}

/* Form */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: bold;
}
.field label em { font-style: normal; color: var(--iron); text-transform: none; letter-spacing: 0; }

.field input,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px rgba(23, 81, 95, 0.14); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.formmsg {
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 2px;
  margin-top: 18px;
}
.formmsg[hidden] { display: none; }
.formmsg.is-ok { background: #e7f1ec; color: #1d5c43; border-left: 3px solid #2f7d5c; }
.formmsg.is-bad { background: #f7e9e6; color: #7d2b1e; border-left: 3px solid var(--iron); }

.contact-direct {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.contact-direct a { font-weight: bold; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #1f7a4d;
  color: #ffffff;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(16, 30, 38, 0.22);
}
.wa-fab:hover { background: #186139; }
.wa-fab svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
@media (max-width: 620px) { .wa-fab span { display: none; } .wa-fab { padding: 15px; } }

/* Footer */

.foot {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: 56px;
  font-size: 12px;
  color: var(--ink-soft);
}
.foot p { max-width: 76ch; }

/* Motion */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grid-photos img { transition: none; }
}

/* Aerial / satellite stage */
#stageView { position: absolute; inset: 0; }
#stageView .leaflet-container { width: 100%; height: 100%; background: #eef3f4; }
.stage .cesium-viewer-toolbar,
.stage .cesium-viewer-bottom { display: none !important; }
.stage-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.86);
  padding: 4px 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 500;
}
.stage-hint { z-index: 500; }
.stage-status { z-index: 600; }

/* Render showcase */
.render-fig { margin: 34px 0 0; }
.render-fig-secondary { max-width: 720px; }
.render-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--limestone-deep);
  cursor: zoom-in;
  border-radius: 3px;
  overflow: hidden;
}
.render-zoom img { width: 100%; display: block; transition: transform 0.5s ease; }
.render-zoom:hover img { transform: scale(1.015); }
.render-fig figcaption {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}
@media (prefers-reduced-motion: reduce) { .render-zoom img { transition: none; } }

/* ---------- Buyer-facing offer note (build section) -------------------- */
.offer-note {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--terra, #b0472e);
  border-radius: 4px;
  background: rgba(176, 71, 46, 0.04);
  max-width: 620px;
}
.offer-k {
  font-weight: bold;
  font-size: 15px;
  color: var(--ink, #1a2b2e);
  margin: 0 0 6px;
}
.offer-t {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft, #48575a);
  margin: 0 0 14px;
}
.offer-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--sea, #0e6e7a);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.offer-cta:hover { color: var(--terra, #b0472e); }

/* ---------- Mobile hardening ------------------------------------------- */
html, body { overflow-x: hidden; }
img, video, iframe, canvas { max-width: 100%; }

@media (max-width: 760px) {
  /* The section anchors overflowed the header on phones — the page scrolls
     anyway, so keep only the brand + language switch in the bar. */
  .topnav a { display: none; }
  .topnav { gap: 0; margin-left: auto; }
  .topbar-inner { gap: 12px; }
  .brandmark { font-size: 10px; letter-spacing: 0.14em; }
  .langswitch { flex: none; }
}
