/* Orbit Labs Digital: home page styles.
   Colors come only from the palette tokens below (one block per color version).
   The page background (--bg) must equal the animation's bg color in js/site.js. */

/* ---------- color versions ---------- */
:root,
html[data-palette="blue"] {
  --bg: #04070f;        --bg-rgb: 4 7 15;
  --surface: #08101d;   --surface-rgb: 8 16 29;
  --surface-2: #0d1828;
  --text: #eaf5ff;      --text-rgb: 234 245 255;
  --muted: #8fa3bd;
  --faint: #6b809c;
  --line: rgb(150 196 255 / .11);
  --line-strong: rgb(150 196 255 / .2);
  --accent: #3fd0ff;    --accent-rgb: 63 208 255;
  --accent-2: #c4f3ff;
  --land-rgb: 95 216 255;
  --grid-rgb: 29 78 122;
  --beam: #e9fbff;
  --error: #ff9a9a;
}
html[data-palette="purple"] {
  --bg: #07050c;        --bg-rgb: 7 5 12;
  --surface: #0f0a18;   --surface-rgb: 15 10 24;
  --surface-2: #150f22;
  --text: #f3ecff;      --text-rgb: 243 236 255;
  --muted: #a596bd;
  --faint: #7f7298;
  --line: rgb(205 170 255 / .12);
  --line-strong: rgb(205 170 255 / .21);
  --accent: #b45cff;    --accent-rgb: 180 92 255;
  --accent-2: #e07bff;
  --land-rgb: 195 139 255;
  --grid-rgb: 67 36 95;
  --beam: #f6eaff;
  --error: #ff9fb8;
}
html[data-palette="orange"] {
  --bg: #0d0e10;        --bg-rgb: 13 14 16;
  --surface: #15161a;   --surface-rgb: 21 22 26;
  --surface-2: #1b1c21;
  --text: #f5efe7;      --text-rgb: 245 239 231;
  --muted: #a8a197;
  --faint: #827d74;
  --line: rgb(255 228 200 / .1);
  --line-strong: rgb(255 228 200 / .19);
  --accent: #ff7a1a;    --accent-rgb: 255 122 26;
  --accent-2: #3fd6c6;
  --land-rgb: 255 176 112;
  --grid-rgb: 58 50 39;
  --beam: #fff1e0;
  --error: #ff9a8a;
}

/* ---------- shared tokens ---------- */
:root {
  color-scheme: dark;   /* also set here, not only on html, so a host page's :root default can't switch it back to light */
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4.2vw, 48px);
  --header-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);        /* room for a phone's notch or status bar, when the browser reports one */
  --header-full: calc(var(--header-h) + var(--safe-top));
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius-frame: 14px;
  --radius-field: 10px;
}
@media (max-width: 859px) { :root { --header-h: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-full) + 16px);   /* menu jumps and Tab stop below the fixed header */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, figure { margin: 0; }
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }
::selection { background: rgb(var(--accent-rgb) / .35); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.skip-link {
  position: fixed; left: max(12px, env(safe-area-inset-left)); top: calc(12px + var(--safe-top)); z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 500; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- type ---------- */
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.3vw, 3.125rem);
  line-height: 1.04;
  letter-spacing: -0.036em;
  font-weight: 500;
  text-wrap: balance;
}
.h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 500;
}
.label {
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--muted);
}

/* ---------- buttons and links ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: .96875rem; font-weight: 500; letter-spacing: -0.012em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .35s var(--ease), color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / .18), 0 14px 44px -12px rgb(var(--accent-rgb) / .75);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgb(var(--bg-rgb) / .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgb(var(--accent-rgb) / .55); background: rgb(var(--accent-rgb) / .08); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .875rem; }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgb(var(--accent-rgb) / .55);
  transition: text-decoration-color .2s ease, color .2s ease;
}
.link:hover { text-decoration-color: var(--accent); }
.link-icon { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-full); padding-top: var(--safe-top);
  transition: opacity .8s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgb(var(--bg-rgb) / .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-size: 1rem; letter-spacing: -0.016em; line-height: 1;
  min-height: 44px;
  border-radius: 8px;
}
.brand-mark { width: 26px; height: 26px; color: var(--text); flex: none; }
.brand-word { color: var(--muted); font-weight: 400; white-space: nowrap; }
.brand-strong { color: var(--text); font-weight: 600; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .9375rem;
  padding: 8px 0; border-radius: 6px; transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 859px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -6px; padding: 0;
    border-radius: 50%; border: 1px solid var(--line-strong);
    background: rgb(var(--bg-rgb) / .45);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle-lines { position: relative; width: 16px; height: 8px; }
  .nav-toggle-lines::before, .nav-toggle-lines::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px;
    background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease);
  }
  .nav-toggle-lines::before { top: 0; }
  .nav-toggle-lines::after { top: 6.5px; }
  .menu-open .nav-toggle-lines::before { top: 3.25px; transform: rotate(45deg); }
  .menu-open .nav-toggle-lines::after { top: 3.25px; transform: rotate(-45deg); }
  .nav-menu {
    position: fixed; left: 0; right: 0; top: var(--header-full); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-left)) calc(96px + env(safe-area-inset-bottom));
    background: rgb(var(--bg-rgb) / .97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .22s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .menu-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .3s var(--ease); }
  .menu-open .site-header::before { opacity: 1; background: rgb(var(--bg-rgb) / .97); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block; padding: 18px 0;
    font-size: 1.75rem; letter-spacing: -0.03em; color: var(--text);
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav-cta { margin-top: 28px; height: 52px; font-size: 1rem; }
  html.menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.orbit-canvas {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none;
}
html:not(.engine-on) .orbit-canvas { display: none; }
main, .site-footer { position: relative; z-index: 1; }
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-start;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(var(--bg-rgb) / .93) 0%, rgb(var(--bg-rgb) / .86) 38%, rgb(var(--bg-rgb) / .5) 56%, rgb(var(--bg-rgb) / 0) 68%),
    linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 16%);
  transition: opacity 1.4s ease;
}
.hero-inner { position: relative; padding-top: calc(var(--header-full) + clamp(20px, 5.5vh, 64px)); padding-bottom: 64px; }
.hero-copy { max-width: 40rem; }
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin-bottom: 22px;
  font-family: var(--mono); font-size: .8125rem; line-height: 1.4; letter-spacing: 0;
  color: var(--muted);
}
.eyebrow .sep {
  width: 4px; height: 4px; border-radius: 50%; flex: none;
  font-size: 0; color: transparent; overflow: hidden;
  background: var(--accent); box-shadow: 0 0 8px rgb(var(--accent-rgb) / .9);
}
.hero-title {
  font-size: clamp(2.125rem, 9.2vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.hero-title span { display: block; text-wrap: balance; }
.hero-title-a { color: var(--muted); }
.hero-title-b { color: var(--text); }
.hero-sub {
  margin-top: 22px; max-width: 30rem;
  font-size: clamp(1.0625rem, .98rem + .3vw, 1.25rem); line-height: 1.55;
  color: var(--muted); text-wrap: pretty;
}
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 559px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; max-width: 26rem; }
  .hero-actions .btn { height: 50px; }
}
@media (max-aspect-ratio: 11/10) and (max-height: 700px) {
  .hero-inner { padding-top: calc(var(--header-full) + 14px); }
  .eyebrow { margin-bottom: 16px; }
  .hero-sub { margin-top: 16px; }
  .hero-actions { margin-top: 22px; }
}
/* short phone screens (a small iPhone with Safari's bars showing): drop the eyebrow line so the
   buttons end higher and the visitor's spot has room below them (site.js moves the spot lower if needed) */
@media (max-aspect-ratio: 11/10) and (max-height: 620px) {
  .eyebrow { display: none; }
}
/* wide screens: text on the left half, the visitor's spot sits right of center */
@media (min-aspect-ratio: 11/10) {
  .hero { align-items: center; }
  .hero-inner { padding-top: calc(var(--header-full) + 24px); padding-bottom: 48px; }
  .hero-copy { max-width: min(47vw, 40rem); }
  .hero-title { font-size: clamp(2rem, min(4.55vw, 8.4vh), 4.75rem); }
  /* the text ends near the middle of the screen, so the shade stays strong until just past it */
  .hero-shade {
    background:
      linear-gradient(90deg, rgb(var(--bg-rgb) / .9) 0%, rgb(var(--bg-rgb) / .8) 30%, rgb(var(--bg-rgb) / .62) 46%, rgb(var(--bg-rgb) / .3) 56%, rgb(var(--bg-rgb) / 0) 66%),
      linear-gradient(180deg, rgb(var(--bg-rgb) / .55) 0%, rgb(var(--bg-rgb) / 0) 18%),
      linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 18%);
  }
  /* a soft dark edge around the hero text, so a bright map line passing behind never washes it out */
  .eyebrow, .hero-title, .hero-sub { text-shadow: 0 0 3px rgb(var(--bg-rgb) / .9), 0 0 16px rgb(var(--bg-rgb) / .75); }
}
/* phone on its side: tighter spacing so the buttons come up sooner */
@media (min-aspect-ratio: 11/10) and (max-height: 500px) {
  .hero-inner { padding-top: calc(var(--header-full) + 10px); padding-bottom: 32px; }
  .eyebrow { margin-bottom: 12px; }
  .hero-sub { margin-top: 12px; }
  .hero-actions { margin-top: 18px; flex-wrap: nowrap; }
}
/* very short screens (a phone on its side): drop the eyebrow line and size down a little so the buttons fit on screen */
@media (min-aspect-ratio: 11/10) and (max-height: 400px) {
  .eyebrow { display: none; }
  .hero-title { font-size: 1.75rem; }
  .hero-sub { font-size: 1rem; }
}

/* static hero background when the animation can't run */
.hero-fallback {
  position: absolute; inset: 0;
  --spot-x: 50%; --spot-y: 72%;
  background:
    radial-gradient(60% 50% at var(--spot-x) var(--spot-y), rgb(var(--accent-rgb) / .13), rgb(var(--accent-rgb) / 0) 70%),
    var(--bg);
}
@media (min-aspect-ratio: 11/10) { .hero-fallback { --spot-x: 66%; --spot-y: 55%; } }
html.engine-on .hero-fallback { display: none; }
.hero-fallback::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(var(--grid-rgb) / .9) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--grid-rgb) / .9) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: var(--spot-x) var(--spot-y);
  -webkit-mask-image: radial-gradient(55% 60% at var(--spot-x) var(--spot-y), #000 0%, transparent 100%);
  mask-image: radial-gradient(55% 60% at var(--spot-x) var(--spot-y), #000 0%, transparent 100%);
  opacity: .5;
}
.hero-fallback.has-map::before { display: none; }
.fb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fb-ping { position: absolute; left: var(--spot-x); top: var(--spot-y); width: 0; height: 0; }
.fb-ping i {
  position: absolute; left: -60px; top: -60px; width: 120px; height: 120px;
  border-radius: 50%; border: 1.5px solid rgb(var(--accent-rgb) / .9);
  opacity: 0; transform: scale(.12, .06);
  animation: ping-ring 3.6s cubic-bezier(.15, .6, .3, 1) infinite;
}
.fb-ping i:nth-child(2) { animation-delay: 1.8s; }
.hero-offscreen .fb-ping i { animation-play-state: paused; }
@keyframes ping-ring {
  0% { opacity: 0; transform: scale(.12, .06); }
  12% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.6, .8); }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  background: var(--bg);
  padding-bottom: clamp(5rem, 3.75rem + 5vw, 8.25rem);
}
.rule {
  position: relative; height: 1px;
  background: var(--line-strong);
  margin-bottom: clamp(2.75rem, 2rem + 2.8vw, 5rem);
  transform-origin: left center;
}
.rule::before {
  content: ""; position: absolute; left: 0; top: -2px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px 1px rgb(var(--accent-rgb) / .7);
}
.section-title { margin-bottom: clamp(2.5rem, 2rem + 2.4vw, 4.5rem); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .split-head { grid-column: 1 / span 4; }
  .split-head .h2 { position: sticky; top: calc(var(--header-h) + 40px); }
  .split-body { grid-column: 5 / span 8; }
}

/* services */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 640px) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
.service { padding: 28px 0 36px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .service { padding-bottom: 0; } }
.glyph {
  width: 40px; height: 40px;
  color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgb(var(--accent-rgb) / .45));
  overflow: visible;
}
.service .h3 { margin-top: 24px; }
.service p { margin-top: 10px; color: var(--muted); max-width: 30em; text-wrap: pretty; }

/* our work */
.work-grid { display: grid; gap: 0; }
.frame {
  border-radius: var(--radius-frame); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 90px -50px rgb(0 0 0 / .95), 0 0 0 1px rgb(0 0 0 / .35);
}
.frame-bar, .slot-bar {
  display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.frame-dots { display: flex; gap: 6px; flex: none; }
.frame-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--text-rgb) / .16); }
.frame-url {
  margin: 0 auto; transform: translateX(-21px);
  padding: 3px 12px; border-radius: 6px;
  background: rgb(var(--text-rgb) / .05);
  font-family: var(--mono); font-size: .75rem; line-height: 1.5; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%;
}
.case-frame img { width: 100%; height: auto; background: var(--surface-2); }
.case-body { margin-top: 28px; max-width: 36rem; }
.case-body p { margin-top: 10px; color: var(--muted); text-wrap: pretty; }
.case-body .link { margin-top: 18px; }
.slot {
  position: relative;
  display: flex; flex-direction: column;
  margin-top: 56px;
  border-radius: var(--radius-frame);
  border: 1px dashed rgb(var(--text-rgb) / .24);
  color: var(--text); text-decoration: none;
  background:
    radial-gradient(70% 55% at 50% 38%, rgb(var(--accent-rgb) / .1), rgb(var(--accent-rgb) / 0) 70%),
    rgb(var(--surface-rgb) / .35);
  transition: border-color .25s ease, background-color .25s ease;
  overflow: hidden;
}
.slot:hover { border-color: rgb(var(--accent-rgb) / .65); }
.slot-bar { background: transparent; border-bottom: 1px dashed rgb(var(--text-rgb) / .16); }
.slot-body {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px;
  padding: 150px 26px 26px;
}
.slot-ping { position: absolute; left: 50%; top: 82px; width: 0; height: 0; }
.slot-ping b {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--beam); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .35), 0 0 18px 4px rgb(var(--accent-rgb) / .8);
}
.slot-ping i {
  position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%;
  border: 1.5px solid rgb(var(--accent-rgb) / .85);
  opacity: 0; transform: scale(.1);
  animation: slot-ring 3.2s cubic-bezier(.15, .6, .3, 1) infinite;
}
.slot-ping i:nth-child(2) { animation-delay: 1.6s; }
@keyframes slot-ring {
  0% { opacity: 0; transform: scale(.1); }
  12% { opacity: .85; }
  100% { opacity: 0; transform: scale(1.25); }
}
.slot-title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.018em; line-height: 1.25; }
.slot-text { color: var(--muted); max-width: 22rem; }
.slot-cta {
  margin-top: 10px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgb(var(--accent-rgb) / .55);
  transition: text-decoration-color .2s ease;
}
.slot:hover .slot-cta { text-decoration-color: var(--accent); }
@media (min-width: 960px) {
  .work-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 24px; }
  .case-frame { grid-column: 1; grid-row: 1; }
  .case-body { grid-column: 1; grid-row: 2; }
  .slot { grid-column: 2; grid-row: 1; margin-top: 0; }
  .slot-ping { top: 42%; }
  .slot-body { padding-top: 26px; }
}

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; counter-reset: none; }
.step { position: relative; padding-left: 48px; }
.step-node {
  position: absolute; left: 0; top: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid var(--accent); background: var(--bg);
  box-shadow: 0 0 0 5px var(--bg), 0 0 14px 1px rgb(var(--accent-rgb) / .55);
}
.step-orbit {
  left: -8px; top: -5px; width: 31px; height: 31px;
  border: 0; background: none; border-radius: 0;
  color: var(--accent); --sat: var(--beam);
  box-shadow: none;
  filter: drop-shadow(0 0 8px rgb(var(--accent-rgb) / .7));
}
/* the line from each step to the next one */
.step:not(.step-last)::before {
  content: ""; position: absolute;
  left: 7px; top: 26px; bottom: -40px; width: 1px;
  background: linear-gradient(180deg, rgb(var(--accent-rgb) / var(--seg-a, .3)), rgb(var(--accent-rgb) / var(--seg-b, .55)));
  transform-origin: top center;
  transition: transform 1s var(--ease) calc(var(--d, 0ms) + 250ms);
}
.step:nth-child(1) { --seg-a: .18; --seg-b: .38; }
.step:nth-child(2) { --seg-a: .38; --seg-b: .62; }
.step:nth-child(3) { --seg-a: .62; --seg-b: .95; }
.step-num { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: .8125rem; line-height: 1.4; color: var(--faint); }
.step p { margin-top: 10px; color: var(--muted); text-wrap: pretty; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { padding-left: 0; padding-top: 52px; padding-right: 8px; }
  .step-node { top: 0; }
  .step-orbit { top: -8px; }
  .step:not(.step-last)::before {
    left: 26px; right: -22px; top: 7px; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, rgb(var(--accent-rgb) / var(--seg-a, .3)), rgb(var(--accent-rgb) / var(--seg-b, .55)));
    transform-origin: left center;
  }
}

/* about */
.about-split { align-items: center; row-gap: 56px; }
@media (min-width: 960px) {
  .about-copy { grid-column: 1 / span 7; }
  .about-map { grid-column: 9 / span 4; }
}
.statement {
  margin-top: 22px;
  font-size: clamp(1.5rem, 1.12rem + 1.45vw, 2.375rem);
  line-height: 1.22; letter-spacing: -0.03em; font-weight: 400;
  color: var(--text); max-width: 21em; text-wrap: pretty;
}
.about-map { max-width: 520px; }
.dotmap { width: 100%; height: auto; overflow: visible; }
.dotmap .d { fill: rgb(var(--land-rgb) / .26); }
.dotmap .d-warm { fill: rgb(var(--land-rgb) / .46); }
.dotmap .d-hot { fill: rgb(var(--land-rgb) / .8); }
.dotmap .pin { fill: var(--beam); }
.dotmap .pin-glow { fill: rgb(var(--accent-rgb) / .35); }
.dotmap .pin-ring {
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: map-ring 3.2s cubic-bezier(.15, .6, .3, 1) infinite;
}
.dotmap .pin-ring + .pin-ring { animation-delay: 1.6s; }
@keyframes map-ring {
  0% { opacity: 0; transform: scale(.2); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5); }
}
.map-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .8125rem; line-height: 1.4; color: var(--muted);
}
.map-place { color: var(--text); }

/* contact */
.contact { overflow: hidden; padding-bottom: clamp(6rem, 4.5rem + 6vw, 10rem); }
.contact-glow {
  position: absolute; left: 50%; bottom: -260px; width: 1200px; height: 620px; max-width: 160%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .13), rgb(var(--accent-rgb) / 0));
  pointer-events: none;
}
.contact .container { position: relative; }
.contact-split { row-gap: 44px; }
@media (min-width: 960px) {
  .contact-copy { grid-column: 1 / span 5; }
  .form { grid-column: 7 / span 6; }
}
.lede { margin-top: 20px; max-width: 24rem; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.mail { margin-top: 40px; display: grid; gap: 6px; }
.mail-label { font-family: var(--mono); font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.mail-address {
  justify-self: start;
  font-size: 1.25rem; letter-spacing: -0.015em; color: var(--text);
  text-decoration: underline; text-decoration-color: rgb(var(--text-rgb) / .3); text-underline-offset: .2em;
  overflow-wrap: anywhere;
  transition: text-decoration-color .2s ease;
}
.mail-address:hover { text-decoration-color: var(--accent); }
.form {
  display: grid; gap: 20px 16px; align-content: start;
  padding: clamp(20px, 1rem + 1.6vw, 34px);
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: linear-gradient(180deg, rgb(var(--surface-rgb) / .9), rgb(var(--surface-rgb) / .62));
  box-shadow: 0 40px 80px -50px rgb(0 0 0 / .9);
}
@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 500; line-height: 1.4; color: var(--text); }
.optional { color: var(--muted); font-weight: 400; }
.form input, .form textarea {
  display: block; width: 100%;
  font: inherit; font-size: 1rem; line-height: 1.4; letter-spacing: -0.006em;
  color: var(--text);
  background: rgb(var(--bg-rgb) / .7);
  border: 1px solid rgb(var(--text-rgb) / .4); border-radius: var(--radius-field);   /* .4: at least 3:1 against the form */
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.form input { height: 52px; }
.form textarea { min-height: 124px; resize: vertical; }
.form input:hover, .form textarea:hover { border-color: rgb(var(--text-rgb) / .55); }
/* the see-through outline still shows in Windows high-contrast mode, where shadows are removed */
.form input:focus, .form textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .28); }
.form [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 8px; font-size: .875rem; line-height: 1.4; color: var(--error); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form-status { font-size: .9375rem; line-height: 1.45; color: var(--text); }
.form-status.is-shown { position: relative; padding-left: 16px; }
.form-status.is-shown::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgb(var(--accent-rgb) / .9);
}
.form-status.is-error { color: var(--error); }
.form-status.is-error::before { background: var(--error); box-shadow: none; }
.form-note { flex: 1 1 100%; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn[aria-disabled="true"]:hover { box-shadow: none; }
/* the spam trap: out of sight and out of the tab order, but not display:none (some bots skip those) */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 559px) { .form-foot .btn { width: 100%; } }

/* footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
}
body:has(.concept) .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }   /* room for the preview panel */
.footer-inner { display: grid; gap: 26px; justify-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9375rem; border-radius: 6px; transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }
.legal { color: var(--muted); font-size: .875rem; line-height: 1.5; }
@media (min-width: 960px) {
  .site-footer { padding-bottom: 40px; }
  body:has(.concept) .site-footer { padding-bottom: 96px; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 48px; }
  .footer-links { justify-content: center; }
}

/* ---------- plain pages: 404.html and sent.html (no scripts) ---------- */
.plain-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.plain-header { position: relative; z-index: 2; padding-top: var(--safe-top); }
.plain-header .header-inner { height: var(--header-h); }
.plain-header .brand-mark { width: 26px; height: 26px; }
.plain-main { flex: 1; position: relative; display: flex; align-items: center; overflow: hidden; padding: 40px 0 80px; }
.plain-main > .container { position: relative; }
.plain-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-family: var(--mono); font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.plain-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgb(var(--accent-rgb) / .9); }
.plain-title { max-width: 16ch; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); line-height: 1.04; letter-spacing: -0.042em; font-weight: 500; text-wrap: balance; }
.plain-lede { margin-top: 20px; max-width: 30rem; font-size: clamp(1.0625rem, .98rem + .3vw, 1.25rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.plain-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) {
  .plain-actions { flex-direction: column; align-items: stretch; max-width: 26rem; }
}

/* ---------- concept panel (preview only) ---------- */
.concept {
  position: fixed; z-index: 60;
  left: max(16px, env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--surface-rgb) / .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 14px 36px -14px rgb(0 0 0 / .85);
  font-size: .8125rem; line-height: 1;
  transition: opacity .25s ease, visibility 0s linear 0s;
}
/* the panel steps aside while it would sit on the contact form or the hero buttons (site.js) */
html.panel-tucked .concept { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
.concept button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, color .2s ease;
}
.concept button:hover { color: var(--text); background: rgb(var(--text-rgb) / .06); }
.concept-tag { font-family: var(--mono); color: var(--text) !important; padding-left: 10px !important; }
.concept-led {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 8px 1px rgb(var(--accent-rgb) / .9);
}
.concept-note { color: var(--muted); font-family: var(--font); }
.concept-body { display: flex; align-items: center; gap: 2px; padding-left: 4px; border-left: 1px solid var(--line); }
.concept.is-collapsed .concept-body { display: none; }
.swatches { display: flex; gap: 2px; }
.swatch[aria-pressed="true"] { color: var(--text); background: rgb(var(--text-rgb) / .09); box-shadow: inset 0 0 0 1px var(--line-strong); }
.swatch-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.swatch[data-set-palette="blue"] .swatch-dot { background: radial-gradient(circle at 35% 35%, #c9f3ff, #3fd0ff 55%, #1d6f9a); }
.swatch[data-set-palette="purple"] .swatch-dot { background: radial-gradient(circle at 35% 35%, #f1dcff, #b45cff 55%, #6a2ba6); }
.swatch[data-set-palette="orange"] .swatch-dot { background: radial-gradient(circle at 35% 35%, #ffe0c4, #ff7a1a 55%, #a5440a); }
.concept-icon { width: 15px; height: 15px; flex: none; }
.concept-replay { color: var(--text) !important; }
@media (max-width: 899px), (max-height: 500px) { .concept-note { display: none; } }
@media (max-width: 599px), (max-height: 500px) {
  .concept { left: max(10px, env(safe-area-inset-left)); bottom: calc(10px + env(safe-area-inset-bottom)); padding: 4px; }
  .concept button { height: 36px; padding: 0 10px; }
  .swatch { width: 36px; padding: 0 !important; justify-content: center; }
  .swatch-dot { width: 14px; height: 14px; }
  .swatch-name, .concept-replay-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .concept-replay { width: 36px; padding: 0 !important; justify-content: center; }
}

/* ---------- skip intro ---------- */
.skip-intro {
  position: fixed; z-index: 61;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgb(var(--surface-rgb) / .7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text); font-size: .875rem; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  animation: skip-in .5s ease .5s both;
  transition: opacity .3s ease, border-color .2s ease;
}
.skip-intro:hover { border-color: rgb(var(--accent-rgb) / .6); }
.skip-intro.is-leaving { opacity: 0; pointer-events: none; }
.skip-progress { position: absolute; left: 20px; right: 20px; bottom: 9px; height: 1px; background: rgb(var(--text-rgb) / .14); }
.skip-progress::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); box-shadow: 0 0 6px rgb(var(--accent-rgb) / .9);
  transform-origin: left center; transform: scaleX(0);
  animation: skip-fill 4s linear forwards;
  animation-delay: var(--skip-delay, 0s);
  animation-play-state: var(--skip-state, running);
}
@keyframes skip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes skip-fill { to { transform: scaleX(1); } }
/* small screens: Skip sits closer to the edge, and above the preview panel when there is one */
@media (max-width: 479px) {
  .skip-intro { right: max(10px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); }
  body:has(.concept) .skip-intro { bottom: calc(62px + env(safe-area-inset-bottom)); }
}
/* phone on its side: the panel moves to the map side, away from the headline */
@media (max-height: 500px) and (min-aspect-ratio: 11/10) {
  .concept { left: auto; right: max(10px, env(safe-area-inset-right)); }
  .skip-intro { right: max(10px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); }
  body:has(.concept) .skip-intro { bottom: calc(62px + env(safe-area-inset-bottom)); }
}

/* ---------- touch screens: every tap target at least 44 px ---------- */
@media (pointer: coarse) {
  .link { min-height: 44px; }
  .footer-links { row-gap: 0; }
  .footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .concept button { height: 44px; }
}
@media (pointer: coarse) and (min-width: 860px) {
  .btn-sm { height: 44px; }
  .nav-links a { display: inline-block; min-width: 44px; padding: 10px 0; text-align: center; }
}
@media (pointer: coarse) and (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
  .swatch, .concept-replay { width: 44px; }
}
/* the taller panel needs the skip button a little higher */
@media (pointer: coarse) and (max-width: 479px), (pointer: coarse) and (max-height: 500px) and (min-aspect-ratio: 11/10) {
  body:has(.concept) .skip-intro { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- intro and entrance states ---------- */
.reveal {
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 60ms);
}
html.intro-playing .reveal,
html.hero-enter .reveal { opacity: 0; transform: translateY(16px); transition-duration: .25s; transition-delay: 0s; }
html.intro-playing .site-header,
html.hero-enter .site-header { opacity: 0; transition-duration: .25s; }
html.intro-playing .hero-shade { opacity: 0; transition-duration: .25s; }
html.intro-playing main > .section,
html.intro-playing .site-footer { opacity: 0; visibility: hidden; }
html.intro-playing .site-header,
html.intro-playing .hero-copy,
html.intro-playing .skip-link { visibility: hidden; }
main > .section, .site-footer { transition: opacity .8s ease .5s; }
/* never leave the page hidden if the script stops */
html.intro-playing .reveal, html.intro-playing .site-header, html.intro-playing .hero-copy,
html.intro-playing .hero-shade, html.intro-playing main > .section, html.intro-playing .site-footer {
  animation: failsafe-show 1ms linear 9s forwards;
}
html.hero-enter .reveal, html.hero-enter .site-header { animation: failsafe-show 1ms linear 2.5s forwards; }
html.intro-frozen .reveal, html.intro-frozen .site-header, html.intro-frozen .hero-copy,
html.intro-frozen .hero-shade, html.intro-frozen main > .section, html.intro-frozen .site-footer { animation: none; }
@keyframes failsafe-show { to { opacity: 1; visibility: visible; transform: none; } }
/* frames stopped (background tab, page capture): site.js shows everything at once */
html.instant .reveal, html.instant .site-header, html.instant .hero-shade, html.instant .hero-copy,
html.instant main > .section, html.instant .site-footer, html.instant [data-rv], html.instant .step::before {
  transition: none !important; animation: none !important;
}
/* tab in the background during the intro: every timer waits, like the animation does */
html.intro-hold *, html.intro-hold *::before, html.intro-hold *::after { animation-play-state: paused !important; }
/* smaller screens: during the intro the panel shows only its tag, so the beam's launch at the bottom stays clear.
   site.js folds it properly once it runs; this covers the moment before that. */
@media (max-width: 1239px) {
  html.intro-playing .concept:not(.is-live) .concept-body { display: none; }
}

/* scroll fades (only when the script turns them on) */
html.rv-on [data-rv] {
  transition: opacity .9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms);
}
html.rv-on [data-rv]:not(.rv-in) { opacity: 0; transform: translateY(18px); }
html.rv-on [data-rv="line"] { transition: transform 1.4s cubic-bezier(.65, 0, .25, 1); }
html.rv-on [data-rv="line"]:not(.rv-in) { opacity: 1; transform: scaleX(0); }
html.rv-on .step:not(.rv-in)::before { transform: scaleY(0); }
@media (min-width: 900px) { html.rv-on .step:not(.rv-in)::before { transform: scaleX(0); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0s !important; }
  .fb-ping i, .slot-ping i { animation: none; opacity: .45; transform: scale(.7, .35); }
  .slot-ping i { transform: scale(.75); }
  .slot-ping i + i, .fb-ping i + i { opacity: .2; transform: scale(1.2, .6); }
  .slot-ping i + i { transform: scale(1.15); }
  .dotmap .pin-ring { animation: none; opacity: .5; }
  .skip-intro { animation: none; }
}

@media print {
  .orbit-canvas, .concept, .skip-intro, .hero-bg, .nav-toggle { display: none !important; }
  [data-rv], .reveal { opacity: 1 !important; transform: none !important; }
}
