@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  --bg: #0D1117;
  --surface: #161B22;
  --rule: #21262D;
  --ink: #E6EDF3;
  --muted: #8B949E;
  --accent: #ff10f0;
  --accent-dark-text: #FC2CE5;
  --cyan: #22D3EE;
  --cyan-deep: #0891B2;
  --violet: #A78BFA;
  --success-bg: #04271A;
  --success-fg: #34D399;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
header.scrolled { border-bottom-color: var(--rule); }
.wordmark {
  font-weight: 600; font-size: 22px; letter-spacing: -0.025em;
  line-height: 1; color: var(--ink); text-decoration: none; display: inline-block;
}
.wordmark .dot-i { position: relative; display: inline-block; }
.wordmark .dot {
  position: absolute;
  left: calc(50% + 0.5px); top: 0.18em;
  transform: translate(-50%, -50%);
  width: 0.16em; height: 0.16em; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255,16,240,.6), 0 0 28px rgba(255,16,240,.3);
  transition: transform .28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wordmark:hover .dot { transform: translate(-50%, calc(-50% - 0.16em)); }
.signin {
  font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 7px 14px; border: 1px solid var(--rule); border-radius: 6px;
  transition: color .25s, border-color .25s, background-color .25s;
}
.signin:hover { background: var(--accent); color: #0D1117; border-color: var(--accent); }
.menu { display: flex; gap: 22px; }
.menu a {
  font-size: 12.5px; color: var(--muted); text-decoration: none;
  letter-spacing: .02em; transition: color .2s; position: relative;
}
.menu a:hover { color: var(--ink); }
.menu a::before {
  content: ""; display: inline-block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent); margin-right: 6px;
  vertical-align: 2px; opacity: 0; transition: opacity .25s;
}
.menu a.active { color: var(--ink); }
.menu a.active::before { opacity: 1; }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(255,16,240,.4), var(--accent));
  box-shadow: 0 0 8px rgba(255,16,240,.45);
}

/* ---------- layout ---------- */
section { max-width: 1060px; margin: 0 auto; padding: 110px 40px; scroll-margin-top: 72px; }
#contact {
  min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
}
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; }
.body-col { max-width: 620px; color: var(--muted); }
.body-col strong { color: var(--ink); font-weight: 500; }

/* ---------- hero ---------- */
.hero {
  min-height: 92vh; display: flex; flex-direction: column;
  justify-content: center; padding-top: 140px;
}
.hero h1 {
  font-size: clamp(44px, 7.2vw, 92px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.04;
  max-width: 900px;
}
.hero h1 .quiet { color: var(--muted); }
.hero .sub {
  margin-top: 28px; max-width: 560px; font-size: 17px;
  font-weight: 300; color: var(--muted); line-height: 1.65;
}

/* ---------- modes ---------- */
.modes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 44px;
}
.mode h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.mode h3 .n {
  font-family: var(--sans); font-weight: 300; color: var(--muted);
  margin-right: 8px; font-variant-numeric: tabular-nums;
}
.mode p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.mode { display: flex; flex-direction: column; }
.mode .vignette { margin-top: auto; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-start; }

/* ---------- vignette cards ---------- */
.vignette {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 8px; padding: 16px; font-size: 12.5px;
}
.pill {
  display: inline-flex; align-items: center; height: 20px;
  padding: 0 8px; border-radius: 3px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap;
}
.pill.success { background: var(--success-bg); color: var(--success-fg); }
.pill.event { background: rgba(255,16,240,.12); color: var(--accent-dark-text); }
.pill.ra { background: rgba(139,148,158,.12); color: var(--muted); }
.pill.corp { background: rgba(167,139,250,.14); color: var(--violet); }
.v-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-date { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.v-name { font-weight: 500; font-size: 13px; color: var(--ink); }
.v-meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.v-divider { height: 1px; background: var(--rule); margin: 12px 0; }

/* sparkline */
.spark { display: block; margin-top: 4px; }
.spark polyline { fill: none; stroke: var(--cyan-deep); stroke-width: 1.5; }
.spark .lead { stroke: var(--cyan); stroke-width: 1.5; }

/* ---------- coverage ---------- */
.stats-row {
  display: flex; gap: 56px; margin: 40px 0 48px; flex-wrap: wrap;
}
.stat .num {
  font-family: var(--mono); font-size: 34px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em;
}
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- applications ---------- */
.app-lead { max-width: 620px; color: var(--muted); margin-bottom: 40px; }
.app-lead .carry { color: var(--ink); }
.timeline-wrap { max-width: 640px; margin: 0 0 48px; }
.timeline { position: relative; padding-left: 26px; }
.timeline .track {
  position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: var(--rule); border-radius: 1px; overflow: hidden;
}
.js .timeline .track .fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--muted), var(--accent));
  transform: translateY(-101%); transition: transform 1.1s ease .35s;
}
.timeline.in .track .fill { transform: translateY(0); }
.t-item { position: relative; padding: 8px 0 26px; }
.t-item:last-child { padding-bottom: 8px; }
.t-item::before {
  content: ""; position: absolute; left: -25px; top: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted);
}
.t-item.hot::before { border-color: var(--accent); box-shadow: 0 0 8px rgba(255,16,240,.6); }
.quiet-apps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px;
  border-top: 1px solid var(--rule); padding-top: 32px; max-width: 820px;
}
.quiet-apps h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.quiet-apps p { font-size: 13px; color: var(--muted); }

/* ---------- provenance ---------- */
.prov { border-left: 2px solid var(--rule); padding-left: 32px; }

/* ---------- close ---------- */
.close-line { font-size: clamp(24px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.02em; max-width: 700px; line-height: 1.25; }
.cta {
  display: inline-flex; align-items: center; margin-top: 36px;
  background: var(--accent); color: #0D1117;
  font-weight: 600; font-size: 14px; text-decoration: none;
  padding: 12px 22px; border-radius: 7px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(255,16,240,.35); }
footer {
  max-width: 1060px; margin: 0 auto; padding: 40px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.stagger.in > *:nth-child(5) { transition-delay: .32s; }
.stagger.in > *:nth-child(6) { transition-delay: .4s; }

/* ---------- scroll cue ---------- */
.scroll-cue {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 20px; height: 32px; border: 1px solid rgba(139,148,158,.4);
  border-radius: 11px; z-index: 5; pointer-events: none;
  opacity: .85; transition: opacity .5s;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 6px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px rgba(255,16,240,.6);
  animation: cue-drift 2.4s ease-in-out infinite;
}
@keyframes cue-drift {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  70% { transform: translateY(14px); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}
.scroll-cue.hide { opacity: 0; }

/* ---------- dot motif (hover-lift = wordmark spring) ---------- */
.eyebrow::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); margin-right: 9px;
  vertical-align: 2px; box-shadow: 0 0 6px rgba(255,16,240,.5);
  transition: transform .28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.eyebrow:hover::before { transform: translateY(-3px); }
.dot-punct {
  color: var(--accent); display: inline-block;
  transition: transform .28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dot-word { display: inline-block; }
.dot-word:hover .dot-punct { transform: translateY(-0.12em); }

/* ---------- coverage dot map ---------- */
.map-wrap { margin-top: 8px; }
.dotmap { width: 100%; height: auto; display: block; }
.dm-base circle { fill: #64748B; opacity: .30; }
.dm-country { transition: transform .28s cubic-bezier(0.34, 1.56, 0.64, 1); }
.dm-country:hover { transform: translateY(-4px); }
.dm-country circle { fill: var(--accent); opacity: .92; }
.dm-country .dm-hit, .dm-country .dm-hit-c { fill: transparent; opacity: 1; filter: none; }
.dm-city { filter: drop-shadow(0 0 5px rgba(255,16,240,.9)); }
.dm-labels text { font-family: var(--mono); font-size: 12px; fill: var(--ink); letter-spacing: .05em; }
.dm-labels line { stroke: #8B949E; stroke-width: 1; opacity: .55; }
.dm-labels circle { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .eyebrow:hover::before, .dot-word:hover .dot-punct,
  .dm-country:hover { transform: none !important; transition: none !important; }
  .scroll-cue::before { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > *, .timeline .track .fill { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 760px) {
  section { padding: 70px 24px; }
  header { padding: 16px 24px; }
  .menu { display: none; }
  .modes-grid, .quiet-apps { grid-template-columns: 1fr; }
  .stats-row { gap: 32px; }
}
