:root {
  --navy: #010f24;
  --navy-2: #04132c;
  --card: #050f22;
  --ink: #e7eef8;
  --ink-soft: #c3cfdf;
  --muted: #7f9cc6;
  --sky: #58a5db;
  --gold: #d09a63;
  --line: rgba(208, 154, 99, 0.35);
  --hair: rgba(143, 179, 224, 0.18);
  --display: "Boldonse", "Outfit", system-ui, sans-serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 0.18em;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.rule {
  display: block;
  width: 40px;
  height: 1px;
  margin: 18px auto 20px;
  background: var(--gold);
}
.rule--left { margin-left: 0; }

/* Topographic texture */
.topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/assets/topo.svg") repeat;
  background-size: 420px;
}
.topo--hero {
  opacity: 0.07;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, transparent 35%, #000 85%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, transparent 35%, #000 85%);
}
.topo--soon {
  opacity: 0.11;
  -webkit-mask-image: radial-gradient(ellipse 70% 120% at 50% 0%, #000 30%, rgba(0,0,0,.35) 100%);
  mask-image: radial-gradient(ellipse 70% 120% at 50% 0%, #000 30%, rgba(0,0,0,.35) 100%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 72px) var(--gutter) clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--hair);
}
.hero__logo {
  position: relative;
  width: min(100%, 640px);
  margin: 0 auto;
}
.hero__logo svg { width: 100%; height: auto; overflow: visible; }
.hero__logo .drip {
  transform-origin: 50% 0%;
  transform-box: fill-box;
  animation: drip-in 1.4s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes drip-in {
  from { transform: scaleY(0.6) translateY(-30px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.offerings {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 560px);
  margin: clamp(-48px, -6vw, -20px) auto 0;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  color: #d3e2f4;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Pillars ---------- */
.pillars {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(18px, 3vw, 28px) var(--gutter) clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.pillars__bg {
  position: absolute;
  inset: 0;
  background: url("/assets/market.jpg") center / cover no-repeat;
  filter: grayscale(1) contrast(1.1) brightness(1.05);
}
.pillars::before,
.pillars::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pillars::before { background: #3c6fb4; mix-blend-mode: multiply; }
.pillars::after { background: linear-gradient(rgba(1, 15, 36, .45), rgba(1, 15, 36, .6)); }
.pillars__cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 330px));
  justify-content: center;
  gap: clamp(28px, 4vw, 40px);
}
.card {
  padding: 26px 30px 40px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 10px 10px 0 #000, 0 20px 50px rgba(0, 0, 0, .45);
  text-align: center;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  border: 1px solid rgba(143, 179, 224, .55);
  border-radius: 50%;
  color: #a9c2e6;
}
.card__icon svg { width: 44px; height: 44px; }
.card h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: var(--wide);
  text-transform: uppercase;
}
.card p {
  max-width: 24ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- Home ---------- */
.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  border-bottom: 1px solid var(--line);
}
.home__text {
  padding: clamp(40px, 6vw, 56px) var(--gutter);
  align-self: center;
}
.home__text h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3.2vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home__text p:last-child {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1rem;
}
.home__map {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--hair);
}
.map { position: relative; flex: 1; min-height: 280px; overflow: hidden; background: #04132c; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .8s; }
.map__pin { animation: bob 2.6s ease-in-out infinite; }
.map > .map__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.map.is-live .map__canvas { opacity: 1; }
.map.is-live .map__svg { opacity: 0; pointer-events: none; }

/* Live map: marker, controls and attribution in the site's palette */
.map-marker { position: relative; width: 26px; height: 40px; }
.map-marker__pin { width: 26px; height: 40px; overflow: visible; animation: pin-bob 2.6s ease-in-out infinite; }
@keyframes pin-bob { 50% { transform: translateY(-6px); } }
.map-marker__label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink);
  font: 500 0.75rem/1.35 var(--sans);
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 6px #04132c, 0 0 2px #04132c;
  pointer-events: none;
}
.map .maplibregl-ctrl-group {
  background: rgba(1, 15, 36, .85);
  border: 1px solid var(--hair);
  border-radius: 4px;
  box-shadow: none;
}
.map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--hair); }
.map .maplibregl-ctrl-group button:not(:disabled):hover { background-color: rgba(143, 179, 224, .12); }
.map .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(78%) sepia(14%) saturate(700%) hue-rotate(180deg); }
.map .maplibregl-ctrl.maplibregl-ctrl-attrib,
.map .maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact-show {
  background: rgba(1, 15, 36, .75);
  color: var(--muted);
  font: 400 0.65rem var(--sans);
}
.map .maplibregl-ctrl-attrib a { color: var(--ink-soft); }
.map .maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 2px 28px 2px 8px; }
.map .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.map .maplibregl-cooperative-gesture-screen {
  background: rgba(1, 15, 36, .7);
  color: var(--ink);
  font: 400 0.95rem var(--sans);
  letter-spacing: 0.04em;
}
@keyframes bob {
  0%, 100% { transform: translate(166px, 120px); }
  50% { transform: translate(166px, 114px); }
}
.coords {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 28px;
  border-top: 1px solid var(--hair);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  transition: background .2s;
}
.coords:hover { background: rgba(143, 179, 224, .05); }
.coords__go {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.coords__icon { width: 44px; height: 44px; color: var(--gold); flex: none; }

/* ---------- Coming soon ---------- */
.soon {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 64px) var(--gutter);
  text-align: center;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(88, 165, 219, .1), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.soon h2 {
  position: relative;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.soon__line {
  position: relative;
  display: block;
  width: min(60%, 360px);
  height: 1px;
  margin: 14px auto 16px;
  background: linear-gradient(90deg, transparent, rgba(143, 179, 224, .45), transparent);
}
.soon__sub {
  position: relative;
  color: var(--muted);
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 48px) var(--gutter);
}
.contact__info {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
  border-right: 1px solid var(--line);
}
.contact__bean { width: clamp(110px, 14vw, 140px); height: auto; flex: none; }
.contact__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #9fb8de;
  font-size: 0.85rem;
  font-weight: 400;
}
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.contact__list a { transition: color .2s; }
.contact__list a:hover { color: var(--ink); }

.contact__form {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-left: clamp(20px, 4vw, 40px);
}
.contact__form .eyebrow { margin-bottom: 8px; }
.field { display: block; }
.field input, .field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(143, 179, 224, .4);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 400 0.9rem/1.4 var(--sans);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field ::placeholder {
  color: #8ea6c9;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(143, 179, 224, .05);
}
.field [aria-invalid="true"] { border-color: #e07a6a; }
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 12px 18px;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
  color: #0c1526;
  font: 500 0.72rem var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn svg { width: 30px; transition: transform .25s; }
.btn:hover { background: #ddaa74; }
.btn:hover svg { transform: translateX(5px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.form__status { min-height: 1.4em; font-size: 0.85rem; color: var(--ink-soft); }
.form__status.is-error { color: #f0a090; }

/* ---------- Wordmark ---------- */
.wordmark {
  padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px) clamp(32px, 6vw, 64px);
}
.wordmark svg { width: 100%; height: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo .drip, .map__pin, .map-marker__pin { animation: none; }
  .reveal { transition: none; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .hero { padding-bottom: 0; }
  .hero__logo { width: min(100%, 440px); }
  .offerings {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    width: auto;
    margin: 18px calc(var(--gutter) * -1) 0;
    border-top: 1px solid var(--hair);
    font-size: 0.68rem;
  }
  .offerings li { flex: 1 1 50%; padding: 10px 6px; text-align: center; }
  .offerings li:last-child { flex-basis: 100%; border-top: 1px solid var(--hair); }

  .pillars__cards { grid-template-columns: minmax(0, 320px); }
  .home { grid-template-columns: minmax(0, 1fr); }
  .home__map { border-left: 0; border-top: 1px solid var(--hair); }
  .map { min-height: 300px; }
  .coords__go { font-size: 0; letter-spacing: 0; }
  .coords__go span { font-size: 1rem; }
  .coords { gap: 14px; padding: 14px var(--gutter); font-size: 0.8rem; letter-spacing: 0.1em; }
  .coords__icon { width: 36px; height: 36px; }

  .contact { grid-template-columns: 1fr; }
  .contact__info {
    gap: 20px;
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .contact__form { padding: 28px 0 0; }
  .contact__bean { width: 96px; }
  .contact__list { font-size: 0.8rem; }
}
@media (max-width: 340px) {
  .contact__info { flex-direction: column; align-items: flex-start; }
}
