:root {
  --ink: #f4ede2;
  --ink-soft: rgba(244, 237, 226, .78);
  --ink-dim: rgba(244, 237, 226, .58);
  --sand: #d8b273;
  --sand-deep: #b88a45;
  --night: #14110d;
  --panel: rgba(20, 17, 13, .9);
  --panel-alt: rgba(30, 24, 17, .9);
  --line: rgba(216, 178, 115, .22);
  --card: rgba(255, 255, 255, .04);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sand); }
[hidden] { display: none !important; }

/* ---------- background video ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--night) url("../img/poster2.jpg") center / cover no-repeat; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.video-on .bg-video { opacity: 1; }
.bg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, .55) 0%, rgba(10, 8, 6, .25) 35%, rgba(10, 8, 6, .6) 75%, rgba(10, 8, 6, .92) 100%),
    linear-gradient(90deg, rgba(10, 8, 6, .5) 0%, rgba(10, 8, 6, .15) 55%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-video { display: none; }
  .scroll-hint span { animation: none !important; }
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background .3s ease, backdrop-filter .3s ease;
}
.topbar.is-solid { background: rgba(14, 12, 9, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--serif); letter-spacing: .32em; font-size: 15px; color: var(--ink); text-decoration: none; }
.brand { order: 1; }
.nav { order: 2; display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--sand); }
.lang { order: 3; }
.menu-toggle {
  order: 4; display: none; appearance: none; background: transparent; cursor: pointer;
  width: 42px; height: 38px; padding: 0 10px; border: 1px solid rgba(244, 237, 226, .35); border-radius: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .25s ease, opacity .25s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.lang { display: flex; border: 1px solid rgba(244, 237, 226, .35); border-radius: 999px; overflow: hidden; }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--ink-soft);
  font: 600 12px/1 var(--sans); letter-spacing: .08em; padding: 8px 12px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--sand); color: #1b140b; }
@media (max-width: 1080px) {
  .topbar { gap: 12px; }
  .lang { margin-left: auto; }
  .menu-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: rgba(14, 12, 9, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(0, 0, 0, .35);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .menu-open { background: rgba(14, 12, 9, .96); }
  .menu-open .nav { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 96px var(--gutter) 80px;
  position: relative;
}
.hero-inner { max-width: 880px; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.eyebrow, .kicker {
  text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 600;
  color: var(--sand); margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 9vw, 112px); line-height: .98; margin: 0; letter-spacing: -.01em;
}
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.6vw, 28px); margin: 14px 0 0; color: var(--ink); }
.hero-quote { color: var(--ink-soft); max-width: 36em; margin: 16px 0 0; font-size: clamp(15px, 1.6vw, 18px); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 34px 0 0; }
.hero-stats div { display: flex; flex-direction: column; border-left: 2px solid var(--sand); padding-left: 14px; }
.hero-stats strong { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; }
.hero-stats span { color: var(--ink-soft); font-size: 13px; letter-spacing: .03em; }
.hero-loc { margin: 26px 0 0; color: var(--ink-dim); font-size: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(244, 237, 226, .55); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 640px) { .scroll-hint { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .03em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  text-shadow: none;
}
.btn-primary { background: var(--sand); color: #1b140b; }
.btn-primary:hover { background: #e6c48b; }
.btn-ghost { border-color: rgba(244, 237, 226, .55); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sand); color: var(--sand); }
.btn-small { padding: 9px 16px; font-size: 13px; background: transparent; color: var(--sand); border-color: var(--sand); white-space: nowrap; }
.btn-small:hover { background: var(--sand); color: #1b140b; }
.btn-small .size { font-style: normal; font-weight: 400; opacity: .75; }
.btn.is-soon, .btn.is-soon:hover { border-color: rgba(244, 237, 226, .25); color: var(--ink-dim); background: transparent; cursor: default; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* ---------- panels ---------- */
.panel { background: var(--panel); padding-block: clamp(64px, 9vw, 120px); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel-alt { background: var(--panel-alt); }
section[id] { scroll-margin-top: 56px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow > * { max-width: 820px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.12; margin: 0 0 clamp(28px, 4vw, 48px); max-width: 22em; }
h3 { font-size: 17px; margin: 0 0 12px; letter-spacing: .01em; }
h3.sub { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 34px); margin-top: clamp(48px, 6vw, 72px); margin-bottom: 6px; }
p { margin: 0 0 12px; }
.lead { color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); max-width: 44em; }
.small { color: var(--ink-dim); font-size: 13px; margin: 12px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 2.6vw, 30px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fact { background: rgba(20, 17, 13, .96); padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 4px; }
.fact-v { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.1; color: var(--ink); }
.fact-l { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .fact-v { font-size: 24px; } .fact-l { font-size: 13px; } }

.dist { width: 100%; border-collapse: collapse; font-size: 15px; }
.dist th, .dist td { text-align: left; padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dist thead th { color: var(--ink-dim); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.dist tbody th { font-weight: 600; }
.dist td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; color: var(--ink-soft); }
.bars b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bars i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--sand-deep), var(--sand)); border-radius: 3px; }

.features { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.features li { display: flex; flex-direction: column; gap: 6px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.features b { color: var(--sand); font-weight: 600; letter-spacing: .02em; }
.features span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }

/* vision */
.vision-intro h3 { color: var(--sand); font-weight: 600; }
.vision-intro p { color: var(--ink-soft); }
.pillars { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pillars li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: relative; }
.pillars .num { font-family: var(--serif); color: var(--sand); font-size: 15px; letter-spacing: .1em; }
.pillars h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 8px 0 8px; }
.pillars p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.identity { margin: clamp(48px, 6vw, 80px) 0 0; padding: 0 0 0 clamp(18px, 3vw, 32px); border-left: 2px solid var(--sand); }
.identity p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.45; margin: 0; max-width: 34em; }
.note { margin-top: 24px; }

/* development */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.options article { border-top: 2px solid var(--sand); padding: 18px 4px 6px 0; }
.options h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.options p { color: var(--ink-soft); font-size: 14.5px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--sand); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 14.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border: 1.5px solid var(--sand); border-radius: 50%; }

/* film */
.film { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; max-width: 100%; position: relative; }
.film-video { width: 100%; height: 100%; display: block; background: #000; }
.film-soon { position: absolute; inset: 0; }
.film-soon img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); }
.film-soon .badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.badge { display: inline-block; border: 1px solid var(--sand); color: var(--ink); background: rgba(14, 12, 9, .6); padding: 10px 20px; border-radius: 999px; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; font-weight: 600; }

/* maps */
.location { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.location figure { margin: 0; }
.location-map img { border-radius: 14px; width: 100%; height: 100%; object-fit: cover; }
.location-info p { color: var(--ink-soft); }
.coords { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 22px; font-size: 14px; }
.coords dt { color: var(--ink-dim); }
.coords dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }
.zoom { appearance: none; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; display: block; width: 100%; border-radius: 14px; overflow: hidden; }
.zoom img { transition: transform .5s ease; }
.zoom:hover img { transform: scale(1.02); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.gallery figure { margin: 0; }
.gallery .zoom { aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { color: var(--ink-dim); font-size: 13px; margin-top: 8px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; border-radius: 6px; }
.lb-close { position: fixed; top: 12px; right: 16px; background: rgba(0, 0, 0, .5); color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; width: 42px; height: 42px; font-size: 26px; line-height: 1; cursor: pointer; }

/* downloads */
.downloads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.downloads li { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.downloads li > div:first-child { display: flex; flex-direction: column; gap: 3px; max-width: 46em; }
.downloads b { font-weight: 600; }
.downloads span { color: var(--ink-dim); font-size: 14px; }
.dl-multi { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .downloads li { flex-direction: column; align-items: flex-start; } }

/* contact + footer */
.contact { text-align: left; }
.footer { background: #0d0b08; color: var(--ink-dim); font-size: 13px; padding-block: 40px calc(40px + env(safe-area-inset-bottom)); }
.footer p { max-width: 70em; }
.footer .credits { opacity: .8; }

/* contact form */
.contact-form { margin-top: 36px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(244, 237, 226, .25); border-radius: 10px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sand); background: rgba(255, 255, 255, .08); }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.captcha-img { border-radius: 8px; border: 1px solid var(--line); width: 150px; height: 50px; }
.captcha-row input { width: 96px; text-align: center; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.form-actions button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: 15px; }
.form-status.is-ok { color: #a9d18e; }
.form-status.is-error { color: #f0a58a; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
