/* NODAVX public site. Every colour, size and curve the pages use is declared here once, so a
 * page never invents a value. Derived from the launch mock and the atlas theme
 * (apps/web/src/index.css: --color-atlas-void #05080f, --color-atlas-panel #0a1120, accent
 * #22d3ee). No request leaves this machine at runtime. */

@import url("fonts.css");

:root {
  /* Surface */
  --void: #05080f;
  --deep: #070c17;
  --panel: #0a1120;
  --panel-2: #0d1526;
  --line: #1b2740;
  --line-soft: #14203a;

  /* Ink */
  --ink: #eaf2ff;
  --ink-2: #b7c6de;
  --ink-3: #8296b4;
  --ink-4: #5c6f8f;

  /* Accent */
  --cyan: #22d3ee;
  --cyan-deep: #0e7fa8;
  --blue: #4f7cff;
  --violet: #8b7cf6;
  --amber: #ffb040;
  --amber-hot: #ffd08a;
  --good: #34d399;

  --grad-brand: linear-gradient(100deg, #67e8f9 0%, #38bdf8 42%, #4f7cff 100%);
  --grad-hair: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55), transparent);

  /* Type */
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: clamp(.78rem, .76rem + .18vw, .88rem);
  --step-0: clamp(.94rem, .90rem + .20vw, 1.04rem);
  --step-1: clamp(1.10rem, 1.04rem + .30vw, 1.28rem);
  --step-2: clamp(1.34rem, 1.22rem + .55vw, 1.72rem);
  --step-3: clamp(1.70rem, 1.42rem + 1.05vw, 2.45rem);
  --step-4: clamp(2.10rem, 1.55rem + 2.05vw, 3.55rem);
  /* Capped to keep the hero inside one screen at 1672x941, the viewport of the mock. */
  --step-5: clamp(2.45rem, 1.30rem + 3.30vw, 4.35rem);

  /* Space + shape */
  --gutter: clamp(1.10rem, 3.4vw, 3.6rem);
  --band-y: clamp(3.4rem, 7vw, 7.2rem);
  --maxw: 1400px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.16, .84, .34, 1);
  --ease-in-out: cubic-bezier(.62, .02, .28, 1);
  --fast: 160ms;
  --slow: 620ms;
  --breath: 6.5s;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); letter-spacing: -.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, video, svg { display: block; max-width: 100%; height: auto; }

::selection { background: rgba(34, 211, 238, .28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: #24304a; border-radius: 9px; border: 2px solid var(--deep); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  padding: .7rem 1.1rem;
  background: var(--cyan);
  color: #04121a;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}

.lede { font-size: var(--step-1); color: var(--ink); font-weight: 500; line-height: 1.5; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 15, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease-out), background var(--fast) var(--ease-out);
}
.site-header[data-stuck="true"] {
  border-bottom-color: var(--line-soft);
  background: rgba(5, 8, 15, .93);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 2.2rem);
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: .12em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-byl {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-left: .8rem;
  border-left: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-3);
  white-space: nowrap;
}
.brand-byl b { color: var(--cyan); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.4vw, 1.6rem);
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 500;
  padding: .45rem .1rem;
  position: relative;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) var(--ease-out);
}
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-tools { display: flex; align-items: center; gap: .6rem; flex: none; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out);
}
.icon-btn:hover { color: var(--cyan); border-color: rgba(34, 211, 238, .6); }
.icon-btn svg { width: 17px; height: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .82rem 1.35rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out),
              background var(--fast) var(--ease-out), color var(--fast) var(--ease-out),
              border-color var(--fast) var(--ease-out);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn-primary {
  background: linear-gradient(100deg, #34d9f2, #2f9df0 55%, #3f74f5);
  color: #02121c;
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, .75);
}
.btn-primary:hover { box-shadow: 0 16px 38px -12px rgba(34, 211, 238, .95); }
.btn-ghost {
  background: rgba(10, 17, 32, .6);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(34, 211, 238, .55); }
.btn-outline-cyan {
  background: rgba(34, 211, 238, .06);
  border-color: rgba(34, 211, 238, .55);
  color: #a5f3fc;
}
.btn-sm { padding: .6rem 1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

.nav-toggle { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: clip; isolation: isolate; }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 50%;
  /* The render is deterministic and text-free; the grade is what carries it to the mock's
   * brightness without inventing geography. Nothing here lifts the copy column's contrast. */
  filter: saturate(1.18) brightness(1.3) contrast(1.06);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, var(--void) 0%, rgba(5, 8, 15, .96) 26%, rgba(5, 8, 15, .62) 46%,
                    rgba(5, 8, 15, .18) 66%, rgba(5, 8, 15, .45) 100%),
    linear-gradient(0deg, var(--void) 2%, transparent 38%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.4rem) clamp(1.2rem, 2.2vw, 1.9rem);
  min-height: min(74svh, 760px);
}

/* Acronym row: the four letters the name is built from. */
.acronym {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.5rem, 1.4vw, 1.15rem);
  margin-bottom: clamp(.9rem, 1.6vw, 1.35rem);
}
.acronym-cell {
  min-width: 128px;
  flex: 1 1 128px;
  max-width: 190px;
  padding: .7rem .8rem .85rem;
  background: rgba(7, 12, 23, .72);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.acronym-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.acronym-abbr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: .06em;
  color: var(--cyan);
}
.acronym-cell:nth-child(2) .acronym-abbr { color: #60a5fa; }
.acronym-cell:nth-child(3) .acronym-abbr { color: var(--violet); }
.acronym-cell:nth-child(4) .acronym-abbr { color: var(--amber); }
.acronym-top svg { width: 18px; height: 18px; opacity: .85; }
.acronym-word {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.acronym-desc {
  display: block;
  font-size: .78rem;
  color: var(--ink-4);
  line-height: 1.45;
  margin-top: .18rem;
}

.hero-copy h1 { margin-bottom: .26em; }
.hero-copy .lede { margin-bottom: .6rem; }
.hero-copy p { max-width: 46ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: clamp(1.1rem, 2vw, 1.5rem);
}

/* Right-hand field: badges over the globe + the live panel. It is absolutely positioned against
 * .hero rather than flowing in the second grid column on purpose — the badge --x/--y values are
 * percentages of the hero artwork, so the coordinate frame has to be the artwork's own box. The
 * empty second column still reserves the copy width the design asks for. Below 980px the field
 * returns to normal flow and the panel lands under the copy. */
.hero-field { position: absolute; inset: 0; pointer-events: none; min-height: 420px; }
.hero-field > * { pointer-events: auto; }
.badge {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .38rem .68rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #dff6ff;
  background: rgba(5, 12, 22, .72);
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; color: var(--cyan); flex: none; }
.badge-hub {
  border-color: rgba(255, 176, 64, .6);
  color: var(--amber-hot);
  font-size: .8rem;
  padding: .46rem .82rem;
  box-shadow: 0 0 34px -8px rgba(255, 176, 64, .55);
}
.badge-hub svg { color: var(--amber); }

.gi-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(330px, 62%);
  padding: .95rem 1.05rem 1.05rem;
  background: rgba(7, 12, 23, .84);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .9);
}
.gi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-bottom: .7rem;
  margin-bottom: .55rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.gi-head svg { width: 14px; height: 14px; color: var(--cyan); }
.gi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  padding: .3rem 0;
  font-size: .84rem;
  color: var(--ink-2);
}
.gi-row b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .92rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.gi-note {
  margin-top: .7rem;
  padding-top: .6rem;
  border-top: 1px solid var(--line-soft);
  font-size: .7rem;
  color: var(--ink-4);
  line-height: 1.5;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  flex: none;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
}

/* ---------------------------------------------------------------- stats */
.stats {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(10, 17, 32, .7), rgba(5, 8, 15, .35));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line-soft);
}
.stat {
  background: var(--void);
  padding: clamp(1.2rem, 2.6vw, 2rem) clamp(1rem, 2vw, 1.6rem);
  display: flex;
  align-items: center;
  gap: .9rem;
}
.stat svg { width: 26px; height: 26px; color: var(--cyan); flex: none; opacity: .9; }
.stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat-key {
  display: block;
  margin-top: .38rem;
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.stat-note { font-size: .72rem; color: var(--ink-4); margin-top: .3rem; }

/* ---------------------------------------------------------------- bands */
.band { padding-block: var(--band-y); position: relative; }
.band-tight { padding-block: clamp(2.4rem, 5vw, 4.2rem); }
.band-alt {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(34, 211, 238, .07), transparent 65%),
    linear-gradient(180deg, var(--deep), var(--void));
  border-block: 1px solid var(--line-soft);
}
.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: end;
  margin-bottom: clamp(1.8rem, 4vw, 3.2rem);
}
.band-head p { color: var(--ink-3); max-width: 56ch; }

.grid { display: grid; gap: clamp(.9rem, 1.8vw, 1.4rem); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.card {
  position: relative;
  padding: clamp(1.15rem, 2.2vw, 1.7rem);
  background: linear-gradient(168deg, rgba(13, 21, 38, .92), rgba(8, 13, 26, .92));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(34, 211, 238, .45), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--slow) var(--ease-out);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-3px); }
.card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .85rem; }
.card-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .3);
  color: var(--cyan);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.amber {
  background: rgba(255, 176, 64, .1);
  border-color: rgba(255, 176, 64, .32);
  color: var(--amber);
}
.card-icon.violet {
  background: rgba(139, 124, 246, .1);
  border-color: rgba(139, 124, 246, .34);
  color: #a99cff;
}
.card-icon.blue {
  background: rgba(79, 124, 255, .1);
  border-color: rgba(79, 124, 255, .34);
  color: #8fb0ff;
}
.card-icon.good {
  background: rgba(52, 211, 153, .1);
  border-color: rgba(52, 211, 153, .32);
  color: var(--good);
}
.card h3, .card h4 { margin-bottom: .3rem; }
.card .sub {
  font-size: .84rem;
  color: var(--ink-3);
  line-height: 1.45;
  margin-bottom: .9rem;
}
.card p { font-size: .92rem; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chip {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .32rem .6rem;
  border-radius: 6px;
  color: #b8e9f7;
  background: rgba(34, 211, 238, .07);
  border: 1px solid rgba(34, 211, 238, .26);
  white-space: nowrap;
}
.chip.amber { color: #ffd9a3; background: rgba(255, 176, 64, .07); border-color: rgba(255, 176, 64, .28); }
.chip.violet { color: #cfc6ff; background: rgba(139, 124, 246, .08); border-color: rgba(139, 124, 246, .3); }
.chip.muted { color: var(--ink-3); background: rgba(130, 150, 180, .06); border-color: rgba(130, 150, 180, .24); }

/* Steps / flow */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line-soft);
         grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border: 1px solid var(--line-soft);
         border-radius: var(--r-lg); overflow: hidden; }
.step { background: var(--void); padding: clamp(1.1rem, 2.2vw, 1.7rem); position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--cyan);
  display: block;
  margin-bottom: .7rem;
}
.step h4 { font-size: 1.06rem; }
.step p { font-size: .88rem; color: var(--ink-3); }

/* Metrics table */
.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(8, 13, 26, .8);
}
table { width: 100%; font-size: .9rem; border-collapse: collapse; }
thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  padding: .85rem 1rem;
  background: rgba(13, 21, 38, .9);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(34, 211, 238, .035); }
td b, td strong { color: var(--ink); font-weight: 600; }
td .num { font-family: var(--font-mono); color: var(--cyan); font-variant-numeric: tabular-nums; }
.tag-ok { color: var(--good); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; }
.tag-warn { color: var(--amber); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; }
.tag-no { color: #f08a8a; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; }

/* Code-ish block */
.code {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.75;
  color: #bfe9f7;
  background: rgba(4, 9, 18, .9);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  white-space: pre;
}
.code .c { color: var(--ink-4); }
.code .k { color: #a5b4fc; }
.code .s { color: var(--amber-hot); }

/* Callout */
.note {
  display: flex;
  gap: .9rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(34, 211, 238, .05);
  border: 1px solid rgba(34, 211, 238, .22);
  font-size: .88rem;
  color: var(--ink-2);
}
.note svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: .15rem; }
.note.amber { background: rgba(255, 176, 64, .05); border-color: rgba(255, 176, 64, .26); }
.note.amber svg { color: var(--amber); }

/* Story walkthrough (Solutions) */
.story { border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.story-head {
  padding: 1.15rem 1.3rem;
  background: rgba(13, 21, 38, .9);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.story-head h3 { margin: 0; font-size: 1.22rem; }
.flow { display: grid; gap: 1px; background: var(--line-soft); }
.flow-row {
  background: var(--void);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.3rem;
}
.flow-row .what { font-size: .92rem; color: var(--ink); font-weight: 500; }
.flow-row .why { font-size: .82rem; color: var(--ink-4); margin-top: .2rem; }
.flow-row .delta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
  color: var(--cyan);
  white-space: nowrap;
}
.flow-row .delta.bad { color: #f08a8a; }
.flow-row .delta.good { color: var(--good); }

/* Screenshot gallery */
.shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shot {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
  padding: .7rem .85rem;
  font-size: .8rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
}

/* Media frame + lightbox */
.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95);
}
.media-frame video { width: 100%; display: block; background: #000; }
.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 55%, rgba(5, 8, 15, .18), rgba(5, 8, 15, .62));
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.play-overlay span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, .16);
  border: 1px solid rgba(34, 211, 238, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform var(--slow) var(--ease-out), background var(--fast) var(--ease-out);
}
.play-overlay:hover span { transform: scale(1.07); background: rgba(34, 211, 238, .28); }
.play-overlay svg { width: 30px; height: 30px; margin-left: 3px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: clamp(.6rem, 3vw, 2.4rem);
  background: rgba(3, 6, 12, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox[data-open="true"] { display: grid; }
.lightbox-inner { width: min(1180px, 100%); }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Search */
.search {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  padding: clamp(3rem, 12vh, 8rem) clamp(.8rem, 4vw, 2rem);
  background: rgba(3, 6, 12, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
}
.search[data-open="true"] { display: block; }
.search-box {
  width: min(720px, 100%);
  margin-inline: auto;
  background: rgba(8, 13, 26, .96);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .95);
}
.search-field { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem;
                border-bottom: 1px solid var(--line-soft); }
.search-field svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.search-field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: var(--ink-4); }
.search-results { list-style: none; margin: 0; padding: .4rem; max-height: min(56vh, 520px); overflow-y: auto; }
.search-results a {
  display: block;
  padding: .7rem .85rem;
  border-radius: var(--r-sm);
  color: var(--ink-2);
}
.search-results a:hover, .search-results a[data-active="true"] {
  background: rgba(34, 211, 238, .1);
  color: var(--ink);
  text-decoration: none;
}
.search-title { font-weight: 600; color: var(--ink); display: block; font-size: .96rem; }
.search-crumb { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
                text-transform: uppercase; color: var(--ink-4); }
.search-snip { font-size: .82rem; color: var(--ink-3); margin-top: .18rem; display: block; }
.search-empty { padding: 1.3rem; color: var(--ink-4); font-size: .9rem; }
.search-foot {
  padding: .6rem 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: .72rem;
  color: var(--ink-4);
  font-family: var(--font-mono);
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--void), #03060c);
  padding-block: clamp(2.4rem, 5vw, 4rem) 1.6rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  margin-bottom: .9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--ink-2); font-size: .9rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-blurb { font-size: .88rem; color: var(--ink-3); max-width: 42ch; margin-top: .9rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.4rem;
  font-size: .78rem;
  color: var(--ink-4);
}
.footer-legal .mono { font-size: .74rem; }

/* Page hero for interior pages */
.page-hero { padding-block: clamp(2.6rem, 6vw, 5rem) clamp(1.6rem, 3vw, 2.6rem); position: relative; }
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(760px, 80%);
  height: 1px;
  background: var(--grad-hair);
  transform: translateX(-50%);
}
.page-hero h1 { font-size: var(--step-4); max-width: 24ch; }
.page-hero .lede { max-width: 62ch; }

.cta-band {
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2.4vw, 26px);
  padding: clamp(1.6rem, 4vw, 3.2rem);
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(600px 320px at 92% 100%, rgba(255, 176, 64, .09), transparent 60%),
    linear-gradient(168deg, rgba(13, 21, 38, .95), rgba(6, 10, 20, .95));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}
.cta-band h3 { font-size: var(--step-3); max-width: 26ch; }
.cta-actions { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }

/* Reveal: hides only after site.js has armed the observer, so a missing, blocked or
   erroring script can never leave a visitor looking at a blank page. */
html.js.reveals-armed [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js.reveals-armed [data-reveal].is-in { opacity: 1; transform: none; }

.js .live-dot { animation: pulse 2.4s var(--ease-in-out) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  50% { opacity: .45; box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}
.js .hero-media img { animation: breathe var(--breath) var(--ease-in-out) infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1.005); }
  50% { transform: scale(1.032); }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .brand-byl { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .site-header[data-menu="open"] .nav-links {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 1rem var(--gutter) 1.4rem;
    background: rgba(5, 8, 15, .98);
    border-bottom: 1px solid var(--line);
    gap: .2rem;
  }
  .site-header[data-menu="open"] .nav-links a { padding: .7rem 0; font-size: 1.05rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-field { position: static; min-height: 320px; order: 2; }
  .hero-media img { object-position: 62% 46%; }
  .band-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .gi-panel { position: static; width: 100%; margin-top: 1rem; }
  .badge { font-size: .64rem; padding: .3rem .5rem; }
  .badge:not(.badge-hub):not(:nth-of-type(-n+4)) { display: none; }
  .flow-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js.reveals-armed [data-reveal] { opacity: 1; transform: none; }
}
html[data-reduced-motion="true"] .js [data-reveal],
html[data-reduced-motion="true"] [data-reveal] { opacity: 1; transform: none; }
