/* Shared marketing chrome: tokens, starfield wash, brand, dropnav, footnotes.
   Page-specific layout stays in each HTML <style id="doc-css">. */

:root {
  --bg: #030706;
  --card: #0b1413;
  --card-2: #101d1b;
  --text: #e6f0ee;
  --muted: #8aa19c;
  --muted-dim: #556e69;
  --accent: #1de9c6;
  --accent-2: #8ff8e5;
  --danger: #f0556a;
  --border: rgba(255, 255, 255, 0.07);
  --border-s: rgba(255, 255, 255, 0.13);
  --nav-w: 248px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  /* clip (not hidden) so overflow-y stays visible — hidden makes body a
     scrollport and kills position:sticky on .mobtop. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

a.tlink {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

a.tlink:hover {
  opacity: 0.72;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(29, 233, 198, 0.08), transparent 55%),
    radial-gradient(90% 60% at 8% 6%, rgba(29, 233, 198, 0.05), transparent 60%);
}

/* ── brand + top contact ── */
.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  background: linear-gradient(90deg, #5ed9be, #dff8f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brandfix {
  position: fixed;
  top: 30px;
  left: 38px;
  z-index: 46;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  background: linear-gradient(90deg, #5ed9be 0%, #5ed9be 42%, #dff8f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(94, 217, 190, 0.3));
  transition: filter 0.2s;
  text-decoration: none;
}

.brandfix:hover {
  filter: drop-shadow(0 0 16px rgba(94, 217, 190, 0.55));
}

.topq {
  position: fixed;
  top: 26px;
  right: 34px;
  z-index: 46;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted-dim);
  text-decoration: none;
  transition: color 0.18s;
}

.topq:hover {
  color: var(--muted);
}

.topq b {
  color: var(--accent);
  font-weight: 600;
}

/* ── floating droplet nav ── */
.dropnav {
  position: fixed;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 44;
}

.dropnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.dropnav ul::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(29, 233, 198, 0.04),
    rgba(29, 233, 198, 0.42) 26%,
    rgba(29, 233, 198, 0.42) 74%,
    rgba(29, 233, 198, 0.04)
  );
}

.drop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  position: relative;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  text-transform: lowercase;
}

.drop .node {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
}

.drop .node::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(138, 161, 156, 0.55);
  transition:
    width 0.3s cubic-bezier(0.34, 1.5, 0.5, 1),
    height 0.3s cubic-bezier(0.34, 1.5, 0.5, 1),
    background 0.25s,
    box-shadow 0.25s,
    border-radius 0.3s;
}

.drop:hover {
  color: var(--text);
}

.drop:hover .node::before {
  width: 13px;
  height: 13px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(29, 233, 198, 0.75);
}

.drop.is-active {
  color: var(--text);
  font-weight: 600;
}

.drop.is-active .node::before {
  width: 18px;
  height: 21px;
  background: radial-gradient(circle at 38% 30%, #a7f6e6, #1de9c6 72%);
  border-radius: 52% 52% 52% 52% / 62% 62% 42% 42%;
  box-shadow:
    0 0 20px rgba(29, 233, 198, 0.85),
    0 0 46px rgba(29, 233, 198, 0.4);
}

.drop .lbl {
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.drop .lbl em {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(29, 233, 198, 0.3);
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(29, 233, 198, 0.06);
}

.drop.drop-cta {
  margin-top: 0;
  color: var(--accent);
}

.drop.drop-cta .node::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(29, 233, 198, 0.6);
}

.drop.drop-cta .lbl {
  font-weight: 600;
}

/* First-screen corner notes — sit on the opening viewport, then scroll away. */
.footnote {
  position: absolute;
  top: calc(100vh - 42px);
  top: calc(100svh - 42px);
  bottom: auto;
  z-index: 44;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footnote.left {
  left: 38px;
}

.footnote.right {
  right: 32px;
}

.footnote .fdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(29, 233, 198, 0.9);
}

.footnote b {
  color: var(--muted);
  font-weight: 600;
}

/* view transitions for shell chrome */
.brandfix {
  view-transition-name: brand;
}

.dropnav {
  view-transition-name: dropnav;
}

.mobtop {
  view-transition-name: mobtop;
}

/* desktop: sticky mobile bar hidden; mobile-nav.css owns ≤860px look */
.mobtop {
  display: none;
}

@media (max-width: 860px) {
  .dropnav,
  .brandfix,
  .topq,
  .footnote {
    display: none;
  }
}
