/* Lacunav marketing site — same visual language as the app.
   Ink-black ground, cool greys, stance colours for evidence, amber reserved for gaps.
   Newsreader for voice, IBM Plex Sans for reading, Plex Sans Condensed for map labels,
   Plex Mono for numbers and eyebrows. Rule from the app: numbers inside, words outside. */

:root {
  --bg: #07090b;
  --surface: #0b0f13;
  --surface-2: #11171c;
  --ink: #f4f6f8;
  --ink-soft: #c7d0d7;
  --muted: #8b98a3;
  --faint: #56626d;
  --line: #1e262d;
  --line-2: #2a343d;
  --area: #1d8fe1;
  --supports: #6fd3a8;
  --contradicts: #ff5c8a;
  --extends: #c9e265;
  --method: #e9eef2;
  --gap: #ffb23f;
  --bridge: #a98bff;
  --mine: #e3c77b;
  --gap-wash: rgba(255, 178, 63, 0.08);
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-cond: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
::selection {
  background: var(--gap);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
}

/* ---------- type ---------- */
.eyebrow {
  font: 500 11px/1.3 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow b {
  color: var(--gap);
  font-weight: 500;
}
.display {
  font: 500 clamp(44px, 7.4vw, 96px) / 1 var(--f-display);
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font: 500 clamp(32px, 4.4vw, 56px) / 1.06 var(--f-display);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font: 500 clamp(22px, 2.2vw, 28px) / 1.2 var(--f-display);
  letter-spacing: -0.01em;
  margin: 0;
}
.lede {
  font: 400 clamp(18px, 1.6vw, 21px) / 1.55 var(--f-ui);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
.serif-i {
  font: italic 400 clamp(19px, 1.7vw, 23px) / 1.5 var(--f-display);
  color: var(--ink-soft);
  margin: 0;
  max-width: 54ch;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.mono {
  font-family: var(--f-mono);
}
.gap {
  color: var(--gap);
  font-weight: inherit;
  white-space: nowrap;
}
.prose p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  max-width: 64ch;
}
.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(72px, 11vw, 140px) 0;
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 820px;
}
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split.flip > :first-child {
  order: 2;
}
.stack {
  display: grid;
  gap: 16px;
  align-content: start;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(7, 9, 11, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.lockup {
  display: inline-grid;
  gap: 5px;
  text-decoration: none;
  flex: none;
}
.brand {
  font: 500 23px/1 var(--f-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
}
.brand b {
  color: var(--gap);
  font-weight: 400;
}
.brand-sub {
  font: 500 9px/1 var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto 0 8px;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font: 500 14px/1 var(--f-ui);
  color: var(--ink-soft);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gap);
  border-radius: 8px 8px 0 0;
}
.nav-cta {
  display: flex;
  gap: 8px;
}
.menu-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  margin: 4px auto;
  transition: transform 0.2s;
}
.nav.open .menu-btn span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.nav.open .menu-btn span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font: 500 15px/1.1 var(--f-ui);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.btn:hover {
  border-color: var(--muted);
  background: var(--surface-2);
}
.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn.primary:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn.gapbtn {
  border-color: rgba(255, 178, 63, 0.55);
  color: var(--gap);
}
.btn.gapbtn:hover {
  background: var(--gap-wash);
  border-color: var(--gap);
}
.btn.sm {
  padding: 8px 13px;
  font-size: 14px;
}
.btn .arr {
  transition: transform 0.15s;
}
.btn:hover .arr {
  transform: translateX(3px);
}
.textlink {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  font-weight: 500;
}
.textlink:hover {
  text-decoration-color: var(--gap);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 26px;
  position: relative;
  z-index: 2;
}
.hero-map {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 620px;
  justify-self: end;
}
.hero-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-note {
  font: 400 13px/1.5 var(--f-mono);
  color: var(--muted);
  margin: 0;
}
.hero-note a {
  color: var(--ink-soft);
}

/* page hero (inner pages) */
.page-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero .stack {
  gap: 22px;
}
.page-hero .stack > * {
  max-width: 940px;
}

/* ---------- map svg pieces (hero + diagrams) ---------- */
.m-edge {
  stroke: var(--line-2);
  stroke-width: 1;
  fill: none;
}
.m-edge.soft {
  stroke: #182027;
}
.m-area {
  fill: var(--bg);
  stroke: var(--area);
  stroke-width: 1.5;
}
.m-area-dot {
  fill: var(--area);
}
.m-label {
  font: 500 10.5px/1 var(--f-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}
.m-label.dim {
  fill: var(--muted);
}
.m-seed {
  fill: var(--ink);
}
.m-seed-text {
  font: italic 500 17px/1 var(--f-display);
  fill: var(--bg);
}
.m-ring {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 2 5;
}
.m-ring-label {
  font: 500 9px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--faint);
}
.m-bracket {
  font: 400 22px/1 var(--f-display);
  fill: var(--gap);
}
.m-route {
  fill: none;
  stroke: var(--gap);
  stroke-width: 1.4;
  stroke-dasharray: 3 6;
}
.m-gapbox {
  fill: #15110a;
  stroke: var(--gap);
  stroke-dasharray: 4 3;
}
.m-gaptext {
  font: 500 9.5px/1 var(--f-mono);
  letter-spacing: 0.12em;
  fill: var(--gap);
}

/* ---------- strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.strip ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
}
.strip li {
  font: 500 12px/1.3 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  background: var(--muted);
}
.dot.sup {
  background: var(--supports);
}
.dot.con {
  background: var(--contradicts);
}
.dot.ext {
  background: var(--extends);
}
.dot.met {
  background: var(--method);
}
.dot.tan {
  background: var(--faint);
}
.dot.gap {
  background: var(--gap);
}
.dot.bri {
  background: var(--bridge);
}
.dot.mine {
  background: var(--mine);
}
.dot.area {
  background: var(--area);
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
}
.card .num {
  font: 500 12px/1 var(--f-mono);
  color: var(--muted);
  letter-spacing: 0.1em;
}
.card.gapcard {
  border-color: rgba(255, 178, 63, 0.45);
  background: linear-gradient(180deg, var(--gap-wash), transparent 70%), var(--surface);
}
.card.link-card {
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.card.link-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag.gap {
  color: var(--gap);
}
.tag.con {
  color: var(--contradicts);
}
.tag.bri {
  color: var(--bridge);
}
.tag.sup {
  color: var(--supports);
}
.pill {
  display: inline-block;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
}
.pill.open {
  border-color: var(--gap);
  color: var(--gap);
}
.pill.partly {
  border-color: rgba(255, 178, 63, 0.45);
  color: #d9a24f;
}
.pill.addressed {
  border-color: var(--line-2);
  color: var(--muted);
}

/* ---------- steps ---------- */
.steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.step {
  padding: 26px 22px 6px 0;
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
}
.step + .step {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.step .n {
  font: 500 12px/1 var(--f-mono);
  color: var(--gap);
  letter-spacing: 0.1em;
}
.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.step svg {
  height: 92px;
  width: 100%;
  margin-bottom: 4px;
}

/* ---------- screenshot frames ---------- */
.shot {
  margin: 0;
  display: grid;
  gap: 12px;
}
.shot .frame {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 80px -20px rgba(0, 0, 0, 0.8);
  position: relative;
}
.shot .frame img {
  width: 100%;
  height: auto;
}
.shot figcaption {
  font: 400 12.5px/1.5 var(--f-mono);
  color: var(--muted);
}
.shot figcaption b {
  color: var(--ink-soft);
  font-weight: 500;
}
.shot.bleed .frame {
  border-radius: 14px;
}
.zoomable {
  cursor: zoom-in;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 4, 5, 0.94);
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: min(1800px, 100%);
  max-height: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-2);
}
.lightbox[hidden] {
  display: none;
}

/* ---------- modes tabs ---------- */
.modes {
  display: grid;
  gap: 22px;
}
.mode-tabs {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}
.mode-tabs button {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 16px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.mode-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}
.mode-panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.mode-panel[hidden] {
  display: none;
}
.mode-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.mode-panel li {
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
}
.mode-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 1px;
  background: var(--muted);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 18px 22px 0;
  display: grid;
  gap: 8px;
}
.stat + .stat {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.stat .v {
  font: 400 clamp(34px, 4vw, 52px) / 1 var(--f-mono);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat .v.gap {
  color: var(--gap);
}
.stat .k {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- venn (the shift) ---------- */
.venn {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.venn circle {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.2;
}
.venn .vl {
  font: 500 10.5px/1 var(--f-cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}

/* ---------- quotes / callouts ---------- */
.callout {
  border-left: 2px solid var(--gap);
  padding: 4px 0 4px 22px;
  display: grid;
  gap: 10px;
}
.callout p {
  margin: 0;
}
.big-quote {
  font: italic 400 clamp(24px, 3vw, 38px) / 1.3 var(--f-display);
  color: var(--ink);
  margin: 0;
  max-width: 30ch;
  text-wrap: balance;
}

/* ---------- table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
}
th {
  font: 500 11px/1.2 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
tr:last-child td {
  border-bottom: 0;
}
td.num {
  font-family: var(--f-mono);
  color: var(--ink);
  white-space: nowrap;
}
td .muted {
  font-size: 14px;
}

/* ---------- pricing ---------- */
.billing {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 3px;
}
.billing button {
  font: 500 14px/1 var(--f-ui);
  padding: 10px 16px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.billing button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.plan.featured {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 1px var(--ink-soft) inset;
}
.plan h3 {
  margin: 0;
  font: 500 24px/1 var(--f-display);
}
.plan .price {
  font: 400 clamp(32px, 3.2vw, 44px) / 1 var(--f-mono);
  letter-spacing: -0.04em;
  white-space: nowrap;
  margin: 0;
}
.plan .price small {
  font: 400 14px/1 var(--f-ui);
  color: var(--muted);
  letter-spacing: 0;
}
.plan .billed {
  font: 400 13px/1.3 var(--f-mono);
  color: var(--muted);
  min-height: 1.3em;
}
.plan .credits {
  font: 500 14px/1.4 var(--f-ui);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plan .credits span {
  color: var(--muted);
  font-weight: 400;
}
.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.plan li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--supports);
}
.plan .tag {
  min-height: 1em;
}

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--line-2);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font: 500 clamp(18px, 1.8vw, 21px) / 1.35 var(--f-display);
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 20px;
  font: 400 22px/1 var(--f-mono);
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--gap);
}
.faq .a {
  padding: 0 0 24px;
  color: var(--ink-soft);
  max-width: 70ch;
}
.faq .a p {
  margin: 0 0 0.8em;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 24px;
}
.cta-band .display {
  font-size: clamp(40px, 6vw, 80px);
}
.cta-band .row {
  justify-content: center;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 32px;
}
.footer h4 {
  margin: 0 0 14px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}
.footer a:hover {
  color: var(--ink);
}
.footer .fine {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font: 400 12px/1.5 var(--f-mono);
  color: var(--faint);
}

/* ---------- reveal ---------- */
.reveal {
  transform: translateY(14px);
  transition: transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- case study ---------- */
.direction {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.direction .idx {
  font: 400 30px/1 var(--f-mono);
  color: var(--faint);
}
.direction h3 {
  margin: 8px 0 6px;
  font: 500 22px/1.25 var(--f-display);
}
.direction p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.direction .venue {
  font: 400 13px/1.5 var(--f-mono);
  color: var(--muted);
}
.toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 4px;
  font: 500 13px/1.3 var(--f-ui);
}
.toc a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--line);
}
.toc a:hover,
.toc a.active {
  color: var(--ink);
  border-left-color: var(--gap);
}
.cs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}
.cs-block {
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  scroll-margin-top: 80px;
}
.cs-block:last-child {
  border-bottom: 0;
}
.claims {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.claims li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  color: var(--ink-soft);
}
.claims li span {
  font: 500 12px/1.7 var(--f-mono);
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a {
    padding: 8px 9px;
  }
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .step:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 920px) {
  .nav nav,
  .nav-cta {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .nav.open nav {
    display: block;
    order: 3;
    width: 100%;
  }
  .nav.open .nav-cta {
    display: flex;
  }
  .nav.open .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 13px;
    padding-bottom: 18px;
  }
  .nav.open .nav-links {
    flex-direction: column;
    margin: 8px 0 0;
  }
  .nav.open .nav-links a {
    padding: 13px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav.open .nav-links a[aria-current="page"] {
    box-shadow: inset 2px 0 0 var(--gap);
    padding-left: 12px;
  }
  .nav.open .nav-cta {
    order: 4;
    width: 100%;
    margin-top: 8px;
  }
  .hero-grid,
  .split,
  .mode-panel {
    grid-template-columns: 1fr;
  }
  .split.flip > :first-child {
    order: 0;
  }
  .hero-map {
    justify-self: center;
    max-width: 520px;
    order: -1;
    margin-bottom: -20px;
  }
  .g3 {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .cs-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
  .direction {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .direction .venue {
    grid-column: 2;
  }
}
@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }
  .g2,
  .g4,
  .plans,
  .steps {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step {
    padding: 22px 0 10px;
    border-left: 0;
  }
  .step + .step {
    border-top: 1px solid var(--line);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .strip ul {
    justify-content: flex-start;
  }
  .btn {
    padding: 12px 16px;
  }
  .hero .row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation: none !important;
  }
}

/* ---------- hero map animation ---------- */
.hm-area,
.hm-paper,
.hm-gap {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hm-gap.main {
  transition: opacity 0.8s ease;
}
.hm-route {
  stroke-dashoffset: 400;
  opacity: 0;
  transition:
    opacity 0.4s ease 1.6s,
    stroke-dashoffset 2.4s ease 1.6s;
}
.hm-edges {
  opacity: 0;
  transition: opacity 0.8s ease 0.15s;
}
.drawn .hm-area,
.drawn .hm-paper,
.drawn .hm-gap,
.drawn .hm-edges,
.drawn .hm-route {
  opacity: 1;
}
.drawn .hm-route {
  stroke-dashoffset: 0;
}
.hm-gap:not(.main) .m-bracket {
  animation: bracket 3.2s ease-in-out infinite;
}
@keyframes bracket {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.hero-map::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(29, 143, 225, 0.08), transparent);
  pointer-events: none;
}
@media (max-width: 620px) {
  .hero-map .m-label {
    font-size: 15px;
  }
  .hero-map .m-ring-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hm-area,
  .hm-paper,
  .hm-gap,
  .hm-edges,
  .hm-route {
    opacity: 1;
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ---------- case studies ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.case-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.case-img {
  background: #07090b;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}
.case-card:hover .case-img img {
  transform: scale(1.1);
}
.case-body {
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.case-body .h3 {
  font-size: 24px;
}
.sources {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 14px;
  color: var(--muted);
}
.sources li {
  padding-left: 4px;
  line-height: 1.45;
}
.claims li i {
  font-style: italic;
  color: var(--ink);
}
@media (max-width: 1080px) {
  .case-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

/* ---------- hero: real Orbit figure with a pinned gap tag ---------- */
.hero-orbit {
  position: relative;
  width: 100%;
  max-width: 680px;
  justify-self: end;
  aspect-ratio: 1 / 1;
}
.hero-orbit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gap-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}
.gap-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 1.5px solid var(--gap);
  animation: pin 2.6s ease-out infinite;
}
@keyframes pin {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.gap-tag {
  position: absolute;
  z-index: 4;
  width: min(300px, 70%);
  background: rgba(10, 12, 14, 0.92);
  border: 1px solid var(--gap);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gap-tag .t {
  font: 500 16px/1.3 var(--f-display);
  color: var(--ink);
}
.gap-tag .s {
  font: 400 12px/1.45 var(--f-ui);
  color: var(--muted);
}
.gap-tag .row {
  gap: 8px;
}
.hero-cap {
  position: absolute;
  left: 0;
  bottom: -6px;
  background: rgba(7, 9, 11, 0.85);
  padding: 4px 8px;
  border-radius: 6px;
  font: 400 11.5px/1.4 var(--f-mono);
  color: var(--faint);
}
.wide-shot {
  margin-top: clamp(8px, 2vw, 24px);
}
@media (max-width: 920px) {
  .hero-orbit {
    justify-self: center;
    max-width: 520px;
    order: -1;
  }
  .gap-tag {
    width: min(260px, 74%);
  }
}

/* hero with the real Orbit figure: larger, bleeding off the right edge */
.hero--orbit .hero-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.hero--orbit .hero-orbit {
  width: 128%;
  max-width: 940px;
  justify-self: start;
  margin: -40px 0 -60px -2%;
}
.hero--orbit .hero-cap {
  left: 8%;
  bottom: 4%;
}
@media (max-width: 920px) {
  .hero--orbit .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero--orbit .hero-orbit {
    width: 150%;
    max-width: none;
    margin: -30px 0 -40px -25%;
    justify-self: center;
  }
  .hero--orbit .gap-tag {
    right: auto !important;
    bottom: auto !important;
    left: 19% !important;
    top: 3%;
    width: min(240px, 40%);
    padding: 10px 12px;
    gap: 6px;
  }
  .hero--orbit .gap-tag .t {
    font-size: 14px;
  }
  .hero--orbit .gap-tag .s {
    display: none;
  }
  .hero--orbit .hero-cap {
    left: 18%;
    right: 18%;
    bottom: 5%;
    text-align: center;
  }
}
