/* =====================================================================
   AEROSPLAT — GeoSplats portfolio
   Design system: near-black canvas, cartographic structure.
   Color lives in the splats; the UI stays quiet. Amber = live/active only.
   Display: Space Grotesk · Body: Inter · Data/coords: Space Mono
   ===================================================================== */

:root {
  /* Surfaces */
  --bg:        #0b0c0e;
  --bg-elev:   #131519;
  --bg-elev-2: #181b20;
  --line:      #23272e;
  --line-soft: #1a1d22;

  /* Ink */
  --text:      #eceef0;
  --text-2:    #aeb4bc;
  --text-dim:  #757c85;

  /* Signal — used sparingly */
  --amber:     #e0a040;
  --amber-dim: #8a6526;

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SF Mono", monospace;

  /* Rhythm */
  --maxw: 1240px;
  --gut:  clamp(20px, 5vw, 64px);
  --r:    14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: #000; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow .tick { color: var(--amber); }

.coord {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  font-weight: 700;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }

.shell { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Contour / grid motifs ---------- */
.grid-bg {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gut);
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,12,14,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--text-dim); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-size: 14px; font-weight: 500;
  padding: 11px 18px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--text);
  background: transparent; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn--solid { background: var(--text); color: #000; border-color: var(--text); font-weight: 600; }
.btn--solid:hover { background: var(--amber); border-color: var(--amber); color: #000; transform: translateY(-1px); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translate(2px,-2px); }

@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; }
.hero__canvas, .hero__poster { position: absolute; inset: 0; }
#hero-map { width: 100%; height: 100%; }
.hero__poster {
  display: none;
  background: 
    radial-gradient(120% 90% at 70% 20%, rgba(42, 47, 58, 0.4) 0%, rgba(11, 12, 14, 0.95) 90%),
    url("https://images.unsplash.com/photo-1473968512647-3e447244af8f?q=80&w=1920&auto=format&fit=crop") no-repeat center/cover;
}
.hero__poster.show { display: block; }
.hero__poster::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(224,160,64,.10) 0%, transparent 60%);
  background-size: 26px 26px; opacity: .5;
}

/* readability scrim + edge grid */
.hero__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,12,14,.55) 0%, transparent 22%, transparent 55%, rgba(11,12,14,.92) 100%); }
.hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: .5; }

.hero__inner {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 0 var(--gut) clamp(40px, 7vh, 88px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.hero__copy { max-width: 680px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 84px);
  margin: 18px 0 0;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__sub { margin: 22px 0 30px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 56ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* live coordinate HUD */
.hud {
  align-self: flex-end; flex: none;
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(11,12,14,.6); backdrop-filter: blur(10px);
  padding: 14px 16px; min-width: 220px;
}
.hud__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hud__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--text-dim); text-transform: uppercase; }
.live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--amber); text-transform: uppercase; }
.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(224,160,64,.6); animation: pulse 2s infinite;
}
.live.off { color: var(--text-dim); }
.live.off::before { background: var(--text-dim); animation: none; box-shadow: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(224,160,64,0); } 100% { box-shadow: 0 0 0 0 rgba(224,160,64,0); } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }
.hud__coord { margin-top: 12px; font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.hud__meta { margin-top: 4px; font-size: 12.5px; color: var(--text-dim); }

@media (max-width: 880px) { .hud { display: none; } }

.scrolldown { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--text-dim); text-transform: uppercase; }

/* =====================================================================
   SECTION scaffolding
   ===================================================================== */
.section { padding-block: clamp(72px, 11vh, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vh, 96px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 46px); }
.sec-head p { color: var(--text-2); max-width: 46ch; margin: 0; }
.sec-index { font-family: var(--mono); font-size: 12px; color: var(--text-dim); letter-spacing: .12em; }

/* ---------- Pillars (a real sequence → numbered) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pillar { background: var(--bg); padding: 30px 28px 34px; position: relative; }
.pillar__n { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .1em; }
.pillar h3 { font-size: 22px; margin: 14px 0 8px; }
.pillar p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.pillar__line { position: absolute; top: 36px; right: 0; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, var(--amber-dim)); opacity: .6; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillar__line { display: none; } }

/* =====================================================================
   MAP section
   ===================================================================== */
.mapwrap { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-height: 540px; }
.maplist { background: var(--bg-elev); border-right: 1px solid var(--line); overflow-y: auto; max-height: 620px; }
.maplist__item { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft);
  padding: 16px 20px; cursor: pointer; color: var(--text); transition: background .18s; }
.maplist__item:hover, .maplist__item.active { background: var(--bg-elev-2); }
.maplist__item.active { box-shadow: inset 3px 0 0 var(--amber); }
.maplist__name { font-family: var(--display); font-weight: 500; font-size: 15.5px; }
.maplist__sub { margin-top: 3px; font-size: 12px; color: var(--text-dim); }
.maplist__coord { margin-top: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
#pins-map { width: 100%; height: 100%; min-height: 540px; }

/* custom marker */
.pin { width: 16px; height: 16px; cursor: pointer; position: relative; }
.pin i { position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); border: 2px solid #0b0c0e; box-shadow: 0 0 0 1px var(--amber); transition: transform .2s; }
.pin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--amber); opacity: 0; transition: opacity .2s; }
.pin.is-active i, .pin:hover i { transform: scale(1.35); }
.pin.is-active::before { opacity: .7; }

@media (max-width: 820px) { .mapwrap { grid-template-columns: 1fr; } .maplist { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* =====================================================================
   PORTFOLIO grid
   ===================================================================== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); color: var(--text-dim);
  background: none; cursor: pointer; transition: all .18s; }
.chip:hover { color: var(--text-2); border-color: var(--text-dim); }
.chip.active { color: #000; background: var(--text); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-elev);
  transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--text-dim); transform: translateY(-3px); }
.card__media { aspect-ratio: 4/3; position: relative; overflow: hidden; background: #0e1014; }
/* placeholder "preview" until a real loop video/poster is dropped in */
.card__media::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 80% at 30% 20%, #283142 0%, transparent 60%),
    radial-gradient(80% 90% at 80% 90%, #1b2530 0%, transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.015) 0 2px, transparent 2px 9px);
  transition: transform .5s ease;
}
.card:hover .card__media::before { transform: scale(1.06); }
.card__img, .card__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1; }
.card:hover .card__img, .card:hover .card__loop { transform: scale(1.06); }
.card__tag { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-2); background: rgba(11,12,14,.7); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line); z-index: 2; }
.card__open { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11,12,14,.7); border: 1px solid var(--line); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s, background .2s; color: var(--text); z-index: 2; }
.card:hover .card__open { opacity: 1; transform: translateY(0); }
.card:hover .card__open { background: var(--amber); color: #000; border-color: var(--amber); }
.card__body { padding: 16px 18px 18px; }
.card__body h3 { font-size: 18px; font-weight: 500; }
.card__loc { margin-top: 5px; font-size: 13px; color: var(--text-dim); }
.card__coord { margin-top: 9px; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.card__coord .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber-dim); }
.card.soon { opacity: .72; }
.card.soon .card__tag { color: var(--text-dim); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   USE CASES / PROCESS / ABOUT
   ===================================================================== */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.use { background: var(--bg); padding: 26px 22px; }
.use h4 { font-family: var(--display); font-weight: 500; font-size: 16px; margin: 0 0 7px; }
.use p { margin: 0; font-size: 13.5px; color: var(--text-dim); }
@media (max-width: 860px) { .uses { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .uses { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .12em; }
.step h4 { font-family: var(--display); font-weight: 500; font-size: 18px; margin: 12px 0 8px; }
.step p { margin: 0; font-size: 14px; color: var(--text-2); }
.step { padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

.about { max-width: 720px; margin: 0 auto; text-align: center; }
.about p { color: var(--text-2); font-size: 16.5px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--bg); padding: 24px; }
.stat b { font-family: var(--display); font-size: 34px; font-weight: 600; display: block; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(32px, 5vw, 62px); margin-bottom: 18px; }
.cta-band h2 em { font-style: normal; color: var(--amber); }
.cta-band p { color: var(--text-2); max-width: 44ch; margin: 0 auto 32px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 13.5px; color: var(--text-dim); transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); letter-spacing: .04em; }

/* =====================================================================
   MODEL / VIEWER PAGE  (also the client-embed shell)
   ===================================================================== */
body.viewer { overflow: hidden; height: 100svh; }
.vbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gut);
  background: linear-gradient(180deg, rgba(11,12,14,.85), transparent);
  pointer-events: none;
}
.vbar__left, .vbar__right { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.vback { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.vback:hover { color: var(--text); }
.vbar__title { font-family: var(--display); font-weight: 500; font-size: 16px; pointer-events: auto; }
.vbar__title small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--text-dim); display: block; letter-spacing: .04em; }

.stage { position: fixed; inset: 0; }
#splat-map { width: 100%; height: 100%; }
.stage__fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  background:
    radial-gradient(120% 90% at 60% 20%, #283142 0%, transparent 55%),
    radial-gradient(120% 120% at 20% 90%, #1a2630 0%, transparent 60%),
    linear-gradient(180deg, #0e1014, #0b0c0e); }
.stage__fallback.show { display: grid; }
.fallback__card { max-width: 440px; padding: 0 24px; }
.fallback__card h3 { font-size: 24px; margin-bottom: 10px; }
.fallback__card p { color: var(--text-2); }
.fallback__card .note { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); margin-top: 18px; letter-spacing: .04em; }

/* floating info panel */
.vpanel { position: fixed; left: var(--gut); bottom: clamp(20px,4vh,40px); z-index: 20;
  border: 1px solid var(--line); border-radius: var(--r); background: rgba(11,12,14,.66); backdrop-filter: blur(12px);
  padding: 18px 20px; max-width: 320px; transition: transform .3s ease, opacity .3s ease; }
.vpanel h2 { font-size: 21px; font-weight: 500; }
.vpanel__loc { margin-top: 4px; font-size: 13.5px; color: var(--text-dim); }
.vpanel__coord { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--text); letter-spacing: .03em; }
.vpanel__meta { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.vpanel__meta div span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); display: block; }
.vpanel__meta div b { font-weight: 500; font-size: 13.5px; }
.vpanel.collapsed { transform: translateY(calc(100% + 60px)); opacity: 0; }

/* next / prev buttons inside header */
.btn--nav {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  font-size: 16px;
  flex: none;
}


/* share / embed popover */
.share { position: relative; }
.popover { position: absolute; top: calc(100% + 12px); left: 0; width: 360px; max-width: 86vw;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-elev); padding: 18px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s; z-index: 40; }
.popover.open { opacity: 1; visibility: visible; transform: none; }
.popover h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 10px; }
.popover + .popover, .popover .field + h4 { margin-top: 16px; }
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text-2); font-family: var(--mono); font-size: 11.5px; padding: 9px 11px; }
.field button { flex: none; }
.embed-note { font-size: 11.5px; color: var(--text-dim); margin: 12px 0 0; }

/* embed mode — strip everything but the stage */
body.embed .vbar, body.embed .vnav, body.embed .scrolldown { display: none; }
body.embed .vpanel { left: 16px; bottom: 16px; padding: 12px 14px; }

/* Custom Plain HTML Attribution */
.custom-attrib {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 999;
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--body);
  font-size: 11px;
  background: rgba(11, 12, 14, 0.55);
  padding: 4px 8px;
  border-radius: 3px;
  border: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.custom-attrib a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.custom-attrib a:hover {
  color: var(--text-2);
}
.custom-attrib span {
  color: rgba(255, 255, 255, 0.2);
}

/* MapTiler Plain HTML logo */
.maptiler-logo {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 999;
  display: block;
  transition: opacity 0.2s;
}
.maptiler-logo img {
  width: 100px;
  height: 30px;
  display: block;
}
.maptiler-logo:hover {
  opacity: 0.8;
}



/* Hide native MapLibre / MapTiler SDK logo and attribution controls completely */
.maplibregl-ctrl-logo, .maptiler-ctrl-logo, .mapboxgl-ctrl-logo,
.maplibregl-ctrl-attrib, .maptiler-ctrl-attrib, .mapboxgl-ctrl-attrib,
.maplibregl-ctrl-attrib-inner, .maptiler-ctrl-attrib-inner,
.maptiler-sdk-ctrl-attrib, .maptiler-sdk-ctrl-attrib-inner,
a[aria-label="MapTiler logo"], .maplibregl-compact, .maptiler-compact,
.maptiler-logo {
  display: none !important;
}

/* Push top-right map controls (e.g. built-in SD/HD buttons) down so they don't get covered by the vbar header */
.maplibregl-ctrl-top-right, .maptiler-ctrl-top-right, .mapboxgl-ctrl-top-right, .maptiler-sdk-ctrl-top-right {
  top: 72px !important;
  z-index: 40 !important;
  transition: top 0.3s ease;
}

body.embed .maplibregl-ctrl-top-right, body.embed .maptiler-ctrl-top-right, body.embed .mapboxgl-ctrl-top-right, body.embed .maptiler-sdk-ctrl-top-right {
  top: 12px !important;
  z-index: 40 !important;
}

/* =====================================================================
   PRODUCT SHOWCASE & INDUSTRIES (GeoSplats Enhancements)
   ===================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(224, 160, 64, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(224, 160, 64, 0.08);
  border: 1px solid rgba(224, 160, 64, 0.15);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-card__icon {
  background: var(--amber);
  color: #000;
  box-shadow: 0 0 15px rgba(224, 160, 64, 0.3);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Compatibility Box */
.compatibility-box {
  margin-top: 40px;
  background: rgba(19, 21, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.compatibility-box__icon {
  flex-shrink: 0;
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compatibility-box__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}

.compatibility-box__text strong {
  color: var(--text-2);
}

/* Industry Showcase */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

.industry-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.industry-card__visual {
  height: 220px;
  position: relative;
  background: linear-gradient(135deg, #0e1014 0%, #171a21 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.industry-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(224, 160, 64, 0.04) 0%, transparent 70%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  opacity: 0.6;
}

.industry-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.industry-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.industry-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Language Switcher ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 100px;
  user-select: none;
  pointer-events: auto;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 1px 2px;
  transition: color 0.2s, text-shadow 0.2s;
}
.lang-btn:hover {
  color: var(--text);
}
.lang-btn.active {
  color: var(--amber);
  font-weight: 700;
}
.lang-switch .sep {
  color: var(--line);
  font-size: 10px;
}

@media (max-width: 760px) {
  .nav-links {
    gap: 12px;
  }
  .lang-switch {
    padding: 3px 8px;
    gap: 4px;
  }
}


