/* =======================================
   Base / Tokens
======================================= */
:root{
  --bg:#0E1014;
  --fg:#F5F6FA;
  --muted:#C9CCD6;
  --purple:#7C5CFF;
  --glass:rgba(14,16,20,0.55);
  --border:rgba(255,255,255,0.08);
  --shadow:0 10px 30px rgba(0,0,0,0.4);
  --radius:16px;
  --radius-lg:20px;

  /* Ambient palette (glows) */
  --p1:#5A189A;  /* deep violet */
  --p2:#7B2CBF;  /* vivid purple */
  --p3:#9D4EDD;  /* medium purple */
  --p4:#C77DFF;  /* light accent */
}

/* Ensure anything with [hidden] is truly hidden */
[hidden]{ display:none !important; }


*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ height:100%; }

body{
  margin:0;
  min-width:320px;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  color:var(--fg);
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(124,92,255,0.12), transparent 60%),
    radial-gradient(50% 50% at 10% 80%, rgba(124,92,255,0.08), transparent 60%),
    linear-gradient(135deg, #0E1014 0%, #11131a 100%);
}

/* Animated subtle haze */
@media (prefers-reduced-motion: no-preference){
  body{
    background-size:160% 160%, 140% 140%, 100% 100%;
    animation:haze 18s ease-in-out infinite alternate;
  }
  @keyframes haze{
    0%{ background-position:80% 10%, 10% 80%, 0 0; }
    100%{ background-position:70% 20%, 20% 70%, 0 0; }
  }
}

.container{ width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }

/* Typography */
h1,h2,h3{ letter-spacing:0.2px; }
h1{ font-weight:800; font-size:clamp(28px,5vw,56px); line-height:1.05; margin:0 0 16px; }
h2{ font-weight:700; font-size:clamp(22px,3vw,32px); margin:0 0 12px; }
p{ margin:0 0 14px; line-height:1.6; color:var(--fg); }
.muted{ color:var(--muted); }

/* Tiny footnote for What we do */
.footnote{
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.9;
  margin-top: 8px;
}

/* Section-level footnote */
.footnote--section{
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
  opacity:.9;
  margin-top:12px;        /* space above */
}


/* Links */
a{ color:inherit; text-decoration:none; }
.link{ color:var(--muted); }
.link:hover{ color:#fff; }

/* =======================================
   Header / Navigation
======================================= */
.site-header{
  position:sticky; top:0; z-index:200;
  backdrop-filter:saturate(140%) blur(10px);
  background:linear-gradient(to bottom, rgba(14,16,20,0.75), rgba(14,16,20,0.35));
  border-bottom:1px solid var(--border);
  transition: transform .22s ease, background .2s ease;
  will-change: transform;
}

/* Hide the header when scrolling down */
.site-header.is-hidden{
  transform: translateY(-100%);
}

.nav-wrap{ display:flex; align-items:center; justify-content:space-between; min-height:64px; }

/* Brand logo */
.brand{ display:inline-flex; align-items:center; line-height:0; font-weight:800; letter-spacing:0.3px; }
.brand-logo{ display:block; width:160px; height:auto; }
@media (max-width:520px){ .brand-logo{ width:130px; } }

.site-nav{ display:flex; align-items:center; gap:18px; }
.site-nav ul{ list-style:none; display:flex; gap:16px; margin:0; padding:0; }
.nav-link{ opacity:0.9; }
.nav-link.active, .nav-link:hover{ opacity:1; }
.nav-cta{ margin-left:8px; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px;
  background:transparent; border:0; color:inherit; padding:8px; border-radius:10px;
}
.nav-toggle:focus-visible{ outline:2px solid var(--purple); }
.nav-toggle .bar{ width:24px; height:2px; background:#fff; border-radius:1px; display:block; }

/* Responsive nav */
@media (max-width:920px){
  .site-nav{ display:none; }
  .nav-toggle{ display:flex; }
}

/* Mobile menu: opaque dropdown under the sticky header */
/* Mobile menu: compact, opaque, rounded sheet under the sticky header */
.mobile-menu{
  position: fixed;
  /* little gap under the sticky header + safe-area */
  top: calc(var(--header-h, 64px) + 8px + env(safe-area-inset-top));
  /* inset from screen edges so it doesn’t feel cramped */
  left: clamp(12px, 4vw, 20px);
  right: clamp(12px, 4vw, 20px);

  background: #10131a;                   /* opaque */
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  padding: 14px 16px 16px;

  /* dropdown animation */
  max-height: 0;                          /* collapsed */
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition:
    max-height .30s cubic-bezier(.2,.7,.2,1),
    opacity .22s ease,
    transform .30s cubic-bezier(.2,.7,.2,1);

  pointer-events: none;
  z-index: 1000;                          /* above content */
}
.mobile-menu.is-open{
  max-height: 75vh;                       /* not full screen */
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* contents */
.mobile-menu nav{
  display: flex;
  flex-direction: column;
  gap: 6px;                                /* tighter than default */
}

.m-link{
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #fff;
}
.m-link:hover{ background: rgba(255,255,255,.06); }

.m-cta{
  margin-top: 10px;
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

/* prevent background from scrolling when menu is open */
html.mobile-open{ overflow: hidden; }


.mobile-menu nav{ display:flex; flex-direction:column; gap:14px; }

/* (keep your existing .m-link, .m-cta styles; no change needed) */


.mobile-menu nav{ display:flex; flex-direction:column; gap:14px; }
.m-link{ padding:10px 6px; border-radius:10px; border:1px solid transparent; }
.m-link:focus-visible{ outline:2px solid var(--purple); }
.m-cta{ margin-top:10px; }
.mobile-menu .m-link{ display:block; padding:12px 10px; }

/* Dim the page when the mobile menu is open (no extra markup needed) */
html::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
  z-index: 999;              /* just under the menu’s z-index */
}
html.mobile-open::before{
  opacity: 1;
  pointer-events: auto;
}

/* =======================================
   Buttons
======================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:14px; border:1px solid var(--border);
  background:rgba(255,255,255,0.04); color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,0.25);
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
  font-weight:600;
}
.btn:hover{ transform:translateY(-1px); background:rgba(255,255,255,0.06); }
.btn:active{ transform:translateY(0); }
.btn:focus-visible{ outline:2px solid var(--purple); }
.btn-primary{ background:linear-gradient(180deg, #8B72FF, #7C5CFF); border-color:transparent; }
.btn-primary:hover{ filter:brightness(1.05); }
.btn-ghost{ background:transparent; }

/* =======================================
   Sections / Layout
======================================= */
.section{ padding:80px 0; border-bottom:1px solid var(--border); }
.section-alt{ background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); }
.grid-2{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center; }
@media (max-width:960px){ .grid-2{ grid-template-columns:1fr; gap:24px; } }

.bullets{ padding-left:18px; color:var(--muted); }
.bullets li{ margin:8px 0; }

/* Stats */
.stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:24px; }
@media (max-width:720px){ .stats{ grid-template-columns:1fr; } }

.card{
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:var(--shadow);
}
.stat .label{ display:block; color:var(--muted); font-size:14px; }
.stat .value{ display:block; font-weight:700; margin-top:6px; }
.stat .note{ display:block; color:var(--muted); font-size:12px; margin-top:6px; }

/* =======================================
   Hero (stacked)
======================================= */
.hero.hero--stack{
  position:relative;
  min-height:auto;
  padding:72px 0 40px;
  border-bottom:1px solid var(--border);
  display:block;
}
.hero-content{ text-align:center; max-width:980px; margin:0 auto 22px; }
.hero-sub{ max-width:760px; margin:0 auto 22px; color:#D7DAE4; }
.hero-actions{ display:flex; gap:12px; justify-content:center; }

/* Inline media block */
.media-frame{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-lg);
  /* Ensure consistent height for the Vimeo iframe + HUD */
  aspect-ratio:16 / 9;
}

/* Fallback HTML5 video (kept) */
.hero-inline-video{
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  object-fit:cover;
  display:block;
}

/* --- Vimeo: ensure taps hit our layer, not the iframe --- */
.hero-embed{ z-index:0; }                 /* iframe sits lowest */

.media-touch-layer{                       /* invisible tap catcher */
  position:absolute;
  inset:0;
  z-index:1;                              /* above iframe, below HUD */
  background:transparent;
  touch-action: manipulation;             /* stops iOS dbl-tap zoom */
}

.v-controls{ z-index:2; }                 /* HUD stays on top */

/* Fix: center + fill Vimeo iframe on iOS */
.media-frame{ display:grid; } /* lets us center the child */

.hero-embed{
  position: relative !important;  /* override any old absolute rules */
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  justify-self: center;
  align-self: center;
  display: block;
  margin: 0;
  -webkit-transform: translateZ(0); /* iOS subpixel nudge */
          transform: translateZ(0);
}


/* Remove legacy bg video bits explicitly */
.hero-video{ display:none !important; }
.hero-overlay{ display:none !important; }
.video-toggle{ display:none !important; }

/* =======================================
   Custom Video Controls (overlay)
======================================= */
.v-controls{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  background:rgba(0,0,0,0.55);
  border-top:none;
  transition:opacity .25s ease, transform .25s ease;
}
.media-frame.hide-ui .v-controls{ opacity:0; pointer-events:none; transform:translateY(12px); }
.media-frame.hide-cursor{ cursor:none; }

.vc-btn{
  appearance:none; cursor:pointer;
  padding:8px 10px; border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.03);
  color:#fff; font-weight:600; line-height:1;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.vc-btn:hover{ transform:translateY(-1px); background:rgba(255,255,255,0.06); }
.vc-btn:focus-visible{ outline:2px solid var(--purple); }

.vc-time{ color:var(--muted); font-size:12px; min-width:92px; text-align:right; }

.vc-seek{
  flex:1; appearance:none; height:6px; border-radius:999px;
  background:linear-gradient(90deg, var(--purple) 0%, var(--purple) 0%) no-repeat,
             rgba(255,255,255,0.18);
  outline:none; border:1px solid var(--border);
}
.vc-seek:focus-visible{ outline:2px solid var(--purple); }

/* WebKit range */
.vc-seek::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:14px; height:14px; border-radius:50%;
  background:var(--purple); border:0; box-shadow:0 0 0 3px rgba(124,92,255,.25);
  cursor:pointer; margin-top:-4px;
}
.vc-seek::-webkit-slider-runnable-track{ height:6px; border-radius:999px; background:transparent; }

/* Firefox range */
.vc-seek::-moz-range-thumb{
  width:14px; height:14px; border-radius:50%;
  background:var(--purple); border:0; box-shadow:0 0 0 3px rgba(124,92,255,.25);
  cursor:pointer;
}
.vc-seek::-moz-range-track{ height:6px; border-radius:999px; background:transparent; }

/* Icon swap logic */
.icon{ width:18px; height:18px; display:block; }
.vc-btn svg + svg{ display:none; }
.vc-mute .spk{ fill:#fff; }
.vc-mute .waves{ stroke:var(--purple); }
.vc-mute .slash{ stroke:var(--purple); }
.vc-mute.is-muted .icon-volume{ display:none; }
.vc-mute.is-muted .icon-muted{ display:block; }
.vc-full.is-active .icon-enter{ display:none; }
.vc-full.is-active .icon-exit{ display:block; }

/* Fullscreen overlay for controls (standards + class fallback) */
.media-frame:fullscreen .v-controls,
.media-frame.fullscreen .v-controls{
  position:absolute; left:0; right:0; bottom:0;
  border-top:none;
  background:rgba(0,0,0,0.55);
  max-height:56px;
  padding:12px;
}
.media-frame:fullscreen.hide-ui .v-controls,
.media-frame.fullscreen.hide-ui .v-controls{
  opacity:0; pointer-events:none; transform:translateY(12px);
}
.media-frame:fullscreen.hide-cursor,
.media-frame.fullscreen.hide-cursor{ cursor:none; }

/* =======================================
   Ambient Background (glows + ribbons)
======================================= */
.bg-ambient{
  position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden;
  background:
    radial-gradient(60% 60% at 85% 15%, rgba(124,92,255,0.10), transparent 60%),
    radial-gradient(50% 50% at 15% 85%, rgba(124,92,255,0.06), transparent 60%);
}
.bg-ambient::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to bottom, #0E1014 0%, transparent 10%, transparent 90%, #0E1014 100%);
}

/* floating orbs (soft glow) */
.bg-ambient .orb{
  position:absolute; border-radius:999px; filter:blur(60px); opacity:.25; mix-blend-mode:screen;
}
.bg-ambient .orb-a{
  width:540px; height:540px; right:-120px; top:-120px;
  background:radial-gradient(circle at 30% 30%, var(--p2), transparent 60%);
  animation:floatA 22s ease-in-out infinite alternate;
}
.bg-ambient .orb-b{
  width:460px; height:460px; left:-140px; bottom:-120px;
  background:radial-gradient(circle at 70% 30%, var(--p1), transparent 60%);
  animation:floatB 26s ease-in-out infinite alternate;
}
.bg-ambient .orb-c{
  width:380px; height:380px; left:45%; top:10%;
  background:radial-gradient(circle at 50% 50%, var(--p3), transparent 60%);
  animation:floatC 28s ease-in-out infinite alternate;
}
@keyframes floatA{ 0%{transform:translate(0,0)} 100%{transform:translate(-40px,30px)} }
@keyframes floatB{ 0%{transform:translate(0,0)} 100%{transform:translate(30px,-30px)} }
@keyframes floatC{ 0%{transform:translate(0,0)} 100%{transform:translate(-25px,20px)} }

#bgNetwork{ position:absolute; inset:0; width:100%; height:100%; display:block; opacity:1; }

@media (prefers-reduced-motion: reduce){
  .bg-ambient .orb{ animation:none !important; }
}

/* =======================================
   Potential Teaser
======================================= */
.teaser{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:18px;
}
@media (max-width:960px){ .teaser{ grid-template-columns:1fr; } }

.field label{ display:block; font-weight:600; margin-bottom:8px; }

.input-row{
  display:grid;
  grid-template-columns: 1fr 12ch;  /* value column stays steady */
  align-items:center;
  column-gap:0;
}
.teaser .input-row output{
  width:12ch;
  min-width:12ch;
  text-align:right;
  white-space:nowrap;
  font-variant-numeric: tabular-nums;
}

input[type="range"]{ width:100%; }
output{
  width:max-content;
  min-width:0;
  text-align:right;
  color:#fff;
  font-variant-numeric: tabular-nums;
}

.result-line{
  grid-column:1/-1;
  margin-top:4px; padding-top:8px; border-top:1px dashed var(--border);
  font-size:18px;
}
.disclaimer{ color:var(--muted); font-size:12px; margin-top:6px;}

/* Sliders: purple theme */
.teaser input[type="range"]{
  accent-color: var(--purple);
  width: 100%;
  outline: none;
}
/* WebKit */
.teaser input[type="range"]::-webkit-slider-runnable-track{
  height: 6px; border-radius: 999px; background: rgba(255,255,255,.18);
}
.teaser input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--purple); border: 0;
  box-shadow: 0 0 0 3px rgba(124,92,255,.25);
  margin-top: -5px;
}
/* Firefox */
.teaser input[type="range"]::-moz-range-track{
  height: 6px; border-radius: 999px; background: rgba(255,255,255,.18);
}
.teaser input[type="range"]::-moz-range-thumb{
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--purple); border: 0;
  box-shadow: 0 0 0 3px rgba(124,92,255,.25);
}
.teaser input[type="range"]::-moz-range-progress{
  height: 6px; border-radius: 999px 0 0 999px; background: var(--purple);
}
.teaser input[type="range"]:focus-visible::-webkit-slider-thumb,
.teaser input[type="range"]:focus-visible::-moz-range-thumb{
  box-shadow: 0 0 0 4px rgba(124,92,255,.35);
}

/* Make the submit button full-width across the form grid */
.waitlist button{ grid-column: 1 / -1; width: 100%; }
.waitlist .privacy{ grid-column: 1 / -1; }

/* =======================================
   FAQ – refined accordion
======================================= */
.accordion{
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}

.accordion .panel{ will-change: height, opacity; }

.item + .item{ border-top: 1px solid var(--border); }

.acc-btn{
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font: 600 16px/1 Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  letter-spacing: .2px;
  transition: background .18s ease, color .18s ease;
}
.acc-btn:hover{ background: rgba(255,255,255,0.04); }
.acc-btn:focus-visible{ outline: 2px solid var(--purple); outline-offset: -2px; border-radius: 0; }

.chev{
  width: 12px; height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  transition: transform .2s ease, opacity .2s ease;
  opacity: .9;
}
.acc-btn[aria-expanded="true"] .chev{ transform: rotate(45deg); }

.panel{
  overflow: hidden;
  height: 0;
  opacity: 0;
  background: rgba(255,255,255,0.02);
  transition: height .34s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}
.panel > *{ padding: 0 20px 0; }
.panel.open > *{ padding: 12px 20px 18px; }

@media (max-width: 720px){
  .acc-btn{ padding: 16px 16px; font-size: 15.5px; }
  .panel > *{ padding: 0 16px 0; }
  .panel.open > *{ padding: 10px 16px 16px; }
}

/* Panel typography */
.panel p, .panel li{
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

/* =======================================
   Forms
======================================= */
.waitlist{
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px;
  background:rgba(255,255,255,0.03); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:18px;
}
.waitlist .field{ display:flex; flex-direction:column; }
.waitlist input{
  appearance:none; background:#10131a; border:1px solid var(--border);
  border-radius:12px; padding:12px; color:#fff;
}
.waitlist input:focus{ outline:2px solid var(--purple); }
.waitlist .opt{ color:var(--muted); font-weight:400; }

@media (max-width:720px){ .waitlist{ grid-template-columns:1fr; } }

/* =======================================
   Footer
======================================= */
.site-footer{ padding:36px 0; text-align:center; color:var(--muted); }

/* =======================================
   Reveal on scroll
======================================= */
.reveal{ opacity:0; transform:translateY(14px); transition:opacity .45s ease, transform .45s ease; }
.reveal-in{ opacity:1; transform:none; }

/* =======================================
   WHAT WE DO — Viz card (Client case)
======================================= */
.wwd-viz{
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:24px;
  padding:20px;
  backdrop-filter:blur(10px);
  min-height:440px;
}

/* Ensure Y-axis $ labels are visible on dark bg */
.mrr-case__svg .mrr-ylabel,
.mrr-case__svg .mrr-ylabel tspan{
  fill: rgba(245,246,250,.88) !important;   /* same light tone as other labels */
  font-weight: 700;
  paint-order: stroke;                      /* subtle outline for contrast */
  stroke: rgba(0,0,0,.35);
  stroke-width: 2;
}

/* Fallback in case your ticks don’t use .mrr-ylabel */
.mrr-case__svg .y text,
.mrr-case__svg .tick text{
  fill: rgba(245,246,250,.88) !important;
  font-weight: 700;
}

.mrr-case{ display:flex; flex-direction:column; gap:12px; height:100%; }
.mrr-case__head{
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; text-transform:uppercase; letter-spacing:.08em; opacity:.95;
}
.mrr-case__head strong{ font-size:16px; text-transform:none; letter-spacing:0; }
.mrr-case__blurb{
  margin:0; font-size:14px; line-height:1.55; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}

/* Chart */
.mrr-case__svg{ width:100%; height:auto; display:block; margin-top:2px; }

.mrr-grid-line{ stroke:rgba(255,255,255,.09); stroke-width:1; }
.mrr-marker-line{ stroke:rgba(255,255,255,.18); stroke-dasharray:4 6; }

.mrr-marker-text{
  fill:var(--fg);
  font-size:13px;
  font-weight:600;
  opacity:.95;
  paint-order:stroke;
  stroke:rgba(0,0,0,.35);
  stroke-width:2;
}
.mrr-marker-text.lg{ font-size:15px; }

.mrr-xlabel{
  fill: rgba(255,255,255,.88);
  font-size: 15px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(0,0,0,.35);
  stroke-width: 2;
}

.mrr-dot{ r:6; fill:var(--purple); }

.mrr-foot{
  margin-top:auto;
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.badge{
  border:1px solid var(--border);
  background:var(--glass);
  border-radius:999px; padding:6px 10px; font-size:12px; opacity:.95;
}
.note{ margin-left:auto; font-size:12px; color:var(--muted); }

.mrr-marker-num{
  fill: var(--fg);
  font-weight: 800;
  font-size: 16px;
  paint-order: stroke;
  stroke: rgba(0,0,0,.45);
  stroke-width: 2.2;
  opacity: .98;
}

.ref-icon{ display:inline-block; margin-right:6px; font-weight:800; line-height:1; opacity:.95; }

.mrr-marker-dot{ stroke: rgba(0,0,0,.45); stroke-width: 2; }
.mrr-marker-dot.red{  fill: #FF6B6B; }
.mrr-marker-dot.blue{ fill: #5AB2FF; }

.ref-dot{
  display:inline-block;
  width:10px; height:10px; border-radius:50%;
  margin-right:6px; box-shadow:0 0 0 2px rgba(0,0,0,.35);
}
.ref-dot.red{  background:#FF6B6B; }
.ref-dot.blue{ background:#5AB2FF; }

/* =======================================
   Legal pages
======================================= */
.legal{ max-width: 960px; }
.legal h1{ margin-bottom: 6px; }
.legal .muted{ display: block; margin-bottom: 18px; }

.legal-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.legal-card h2{ margin: 0 0 8px; font-size: 18px; }
.legal-card p, .legal-card li{ color: var(--muted); line-height: 1.7; font-size: 15.5px; }
.legal-card ul{ margin: 0; padding-left: 18px; }

/* FAQ list spacing — reduce inward indent and tighten rows */
.accordion .panel ul{
  margin: 8px 0 0;
  padding-left: 50px;
  list-style: disc;
  list-style-position: outside;
}
.accordion .panel li{ margin: 6px 0; }

@media (max-width: 720px){
  .accordion .panel ul{ padding-left: 16px; }
}



/* ===== FINAL MOBILE NAV OVERLAY (hard override) ===== */

/* Keep header above the overlay handle (burger/X) */
.site-header{ z-index: 2147483000 !important; }

/* Full-screen overlay menu (sits below header) */
.mobile-menu{
  position: fixed !important;
  top: var(--header-h, 64px) !important;  /* set from JS */
  left: 0; right: 0; bottom: 0;
  z-index: 2147482800 !important;         /* just under header */
  background: rgba(10,12,16,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  overflow: auto;

  /* closed baseline (regardless of old rules) */
  display: none !important;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

/* open state is class-based (does NOT rely on [hidden]) */
.mobile-menu.is-open{
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* lock page scroll when menu is open */
html.mobile-open, html.mobile-open body{
  overflow: hidden !important;
}

/* optional: burger → X animation */
.nav-toggle .bar{ transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* === FINAL MOBILE NAV SHEET (single source of truth) === */

/* Keep the header safely above the sheet */
.site-header{ z-index: 2000; }

/* Allow animation even when [hidden] is used.
   We override ONLY for this element, not globally. */
.mobile-menu[hidden]{ display:block !important; }

/* Compact, opaque dropdown sheet under the sticky header */
.mobile-menu{
  position: fixed;
  top: calc(var(--header-h, 64px) + 8px);     /* JS sets --header-h */
  left: clamp(12px, 4vw, 20px);
  right: clamp(12px, 4vw, 20px);
  z-index: 1500;

  background: #10131a;                        /* opaque card */
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  padding: 14px 16px 16px;

  overflow: hidden;                            /* clip during slide */
  /* closed state */
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;

  transition:
    max-height .30s cubic-bezier(.2,.7,.2,1),
    opacity .22s ease,
    transform .30s cubic-bezier(.2,.7,.2,1);
}

/* Open state is driven by your existing html.mobile-open toggle */
html.mobile-open .mobile-menu{
  max-height: 66vh;                            /* not full screen */
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Contents (kept simple & balanced) */
.mobile-menu nav{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-link{
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #fff;
}
.m-link:hover{ background: rgba(255,255,255,.06); }
.m-cta{
  margin-top: 10px;
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

/* Subtle scrim behind the sheet (no extra markup) */
html::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
  z-index: 1400;                               /* under the sheet */
}
html.mobile-open::before{
  opacity: 1;
  pointer-events: auto;
}

/* Optional: hamburger → X polish (matches your JS) */
.nav-toggle .bar{ transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Prevent background scroll while open */
html.mobile-open{ overflow: hidden; }

/* === Mobile nav polish: gap below header + no excess bottom === */

/* give the card a bit more breathing room below the sticky header */
.mobile-menu{
  top: calc(var(--header-h, 64px) + 14px + env(safe-area-inset-top)) !important;
  padding: 12px 14px !important;              /* tighten bottom padding */
}

/* open state: cap high enough to animate but shrink-to-content after */
html.mobile-open .mobile-menu{
  /* Instead of a viewport fraction, use a large cap so height == content */
  max-height: 999px !important;               /* removes that big empty bottom */
}

/* keep the closed state as-is for the slide/opacity animation */
.mobile-menu{
  max-height: 0 !important;                   /* collapsed baseline */
  transform: translateY(-8px) scale(.98);
  opacity: 0;
  pointer-events: none;
}
html.mobile-open .mobile-menu{
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ——— Mobile nav sheet: hug content, no stretch to bottom ——— */
.mobile-menu{
  /* release the viewport pin from older rules */
  bottom: auto !important;

  /* animate open/close but size to content */
  max-height: 0 !important;           /* closed baseline */
  overflow: hidden !important;
  padding-bottom: 12px !important;     /* space under the button */
}

/* open state (works with either .is-open or html.mobile-open) */
.mobile-menu.is-open,
html.mobile-open .mobile-menu{
  /* grow only as far as needed, never past the viewport */
  max-height: calc(100vh - var(--header-h, 64px) - 28px - env(safe-area-inset-top)) !important;
  overflow: visible !important;
}

/* Auto-hide header on scroll down, reveal on scroll up (strong override) */
.site-header{
  transition: transform .22s ease, background .2s ease;
  will-change: transform;
}


/* keep header visible whenever the mobile menu is open */
html.mobile-open .site-header{
  transform: none !important;
}

/* Header auto-hide — JS sets inline transform; keep CSS simple */
.site-header{
  transition: transform .22s ease, background .2s ease;
  will-change: transform;
}

/* keep header visible whenever the mobile menu is open */
html.mobile-open .site-header{
  transform: none; /* inline JS won’t hide while menu is open */
}

/* --- FIX: mobile bullets clipped in FAQ panels --- */
@media (max-width: 720px){
  /* push content in a bit so outside bullets are fully inside the panel */
  .accordion .panel > *,
  .accordion .panel.open > *{
    /* was 16px; give the bullets a safe gutter */
    padding-left: 24px !important;
  }

  /* keep bullets as 'outside' but with a slightly larger indent */
  .accordion .panel ul{
    padding-left: 22px !important;   /* was 16px */
    list-style: disc outside;
  }
}

/* Optional extra safety for very narrow phones */
@media (max-width: 380px){
  .accordion .panel ul{
    list-style-position: inside;     /* avoids any chance of clipping */
    padding-left: 0 !important;
  }
}

/* About section – pull footnote to the bottom edge */
#about.section{ padding-bottom:28px; }  /* adjust to taste */

.footnote--bottom{
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
  opacity:.9;
  margin-top:14px;
}

/* About section: hug the bottom edge */
.section--tight-bottom{ padding-bottom:12px; }          /* primary */
#about.section{ padding-bottom:12px !important; }       /* safety override */

.footnote--bottom{
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
  opacity:.9;
  margin-top:14px;
}

.footnote{
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
  opacity:.9;
}
.grid-2 .footnote--span{
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 14px;
}

/* Hero video footnote */
.hero .footnote--video{
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
  opacity:.9;
  text-align:center;
  margin-top:10px;
}
