/* hisohiso landing — modeled on the current x.ai house style.
   Off-white background, near-black ink, light-gray "accent" for the two-tone
   headline trick (setup in black, payoff in gray), a clean grotesque sans,
   generous whitespace, pill buttons, and soft white rounded cards. */

:root {
  color-scheme: light;

  /* Off-white base, near-black for primary, light gray for the headline payoff. */
  --bg: #f5f5f3;
  --bg-2: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-soft: #6b6b6b;
  --ink-dim: #9a9a9a;
  --ink-fade: #c4c4c4;  /* the "superpowers." color */
  --rule: rgba(10, 10, 10, 0.08);
  --rule-soft: rgba(10, 10, 10, 0.05);
  --card: #ffffff;
  --card-2: #efefec;

  --sans: "Inter", "Söhne", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Berkeley Mono", "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --measure: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; }

/* No background glow. */
.room-glow { display: none; }

/* ---- Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  background: var(--ink);
  color: var(--bg-2);
  padding: 10px 18px;
  border-radius: var(--pill);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--sans);
  font-size: 0.86rem;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Whisper waveform reduced to a small static motif ---- */
.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 0.7em;
  vertical-align: middle;
}
.wave i {
  display: block;
  width: 1.5px;
  height: 100%;
  background: var(--ink);
  opacity: 0.7;
  border-radius: 1px;
}
.wave i:nth-child(2) { height: 55%; opacity: 0.5; }
.wave i:nth-child(3) { height: 85%; opacity: 0.65; }
.wave i:nth-child(4) { height: 35%; opacity: 0.45; }
.wave i:nth-child(5) { height: 65%; opacity: 0.55; }
.wave i:nth-child(6) { height: 100%; opacity: 0.7; }
.wave i:nth-child(7) { height: 40%; opacity: 0.45; }
.wave--big {
  height: 20px;
  gap: 3px;
  margin: 0 0 28px;
  display: flex;
}
.wave--big i { width: 2px; }

/* ---- Top bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(245, 245, 243, 0.78);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: -0.01em;
  font-size: 1.02rem;
  color: var(--ink);
}
.brand-name { text-transform: lowercase; }
.wave--brand { height: 0.9em; }

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.topnav-link {
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 10px 14px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  border-radius: var(--pill);
  transition: color 0.12s ease, background 0.12s ease;
}
.topnav-link:hover,
.topnav-link:focus-visible,
.topnav-link[aria-current="page"] { color: var(--ink); }

.topnav-cta {
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 11px 22px;
  margin-left: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--bg-2);
  letter-spacing: -0.005em;
  transition: background 0.15s ease, color 0.15s ease;
}
.topnav-cta:hover,
.topnav-cta:focus-visible {
  background: transparent;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--ink); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---- Layout ---- */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Sections separated by very soft hairlines. */
.section {
  padding: 112px 0;
  border-top: 1px solid var(--rule-soft);
  position: relative;
}
.section.numbered { counter-increment: sec; }
.section.numbered > h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.page { counter-reset: sec; }

/* ---- Hero ---- */
.hero {
  padding: 112px 0 96px;
  border-top: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.005em;
  font-size: 0.92rem;
  margin: 0 0 32px;
  color: var(--ink-dim);
}

/* The signature two-tone headline: setup in near-black, payoff in light gray. */
h1 {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  margin: 0 0 32px;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 16ch;
  color: var(--ink);
}
h1 .accent {
  color: var(--ink-fade);
  font-weight: 600;
}
/* Show the line break this design counts on. */
h1 br { display: inline; }

h2 {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin: 0 0 24px;
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.05;
  max-width: 22ch;
  color: var(--ink);
}
h2 .accent {
  color: var(--ink-fade);
  font-weight: inherit;
}

h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 60ch;
  letter-spacing: -0.005em;
}

.lead {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 44px;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

code {
  font-family: var(--mono);
  background: var(--card-2);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--ink);
  border: none;
}

/* ---- Signature: the encrypted channel ---- */
.channel {
  margin: 0 0 48px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0;
  max-width: 720px;
  overflow: hidden;
}
.channel-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 26px;
}
.channel-row + .channel-row {
  border-top: 1px solid var(--rule-soft);
}
.channel-side {
  flex: 0 0 11em;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-dim);
}
.channel-plain {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}
.channel-row--wire {
  background: var(--card-2);
  align-items: center;
}
.channel-cipher {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  flex: 1 1 auto;
  min-width: 0;
}
.channel-tag {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--pill);
  padding: 4px 11px;
}
.channel-cap {
  margin: 0;
  padding: 18px 26px 20px;
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.6;
  border-top: 1px solid var(--rule-soft);
  max-width: none;
}

/* ---- Buttons / links ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  background: var(--ink);
  color: var(--bg-2);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cta::after {
  content: "↗";
  font-size: 0.92em;
  opacity: 0.9;
}
.cta:hover,
.cta:focus-visible {
  background: transparent;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
  margin-top: 36px;
}

/* Secondary links inside hero-actions become pill buttons too. */
.hero-actions .link {
  border-bottom: none;
  padding: 13px 26px;
  border: 1px solid var(--rule);
  border-radius: var(--pill);
  background: var(--card);
  font-weight: 500;
  font-size: 0.96rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hero-actions .link:hover,
.hero-actions .link:focus-visible {
  border-color: var(--ink);
  background: var(--card);
}

.link {
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-color 0.12s ease;
}
.link:hover,
.link:focus-visible {
  border-bottom-color: var(--ink);
}

.hero-meta {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
}

.footnote {
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* ---- Split (two columns) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}
.split-card {
  background: var(--card);
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.2s ease;
}
.split-card:hover {
  border-color: var(--ink-fade);
}
.split-tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: -0.005em;
  color: var(--ink-dim);
  margin: 0 0 6px;
}
.split-card h3 { margin: 0; }
.split-card p { font-size: 0.96rem; }
.split-card .link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.92rem;
}

/* ---- Bullets ---- */
.bullets {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.bullets li {
  position: relative;
  padding: 20px 24px 20px 52px;
  color: var(--ink-soft);
  line-height: 1.55;
  font-family: var(--sans);
  font-size: 0.98rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  max-width: none;
}
.bullets li::before {
  content: "✓";
  position: absolute;
  left: 22px;
  top: 19px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
}
.bullets strong {
  color: var(--ink);
  font-weight: 600;
  display: inline;
}

/* ---- Annotated URL ---- */
.urlbar {
  margin: 36px 0 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 24px 24px 18px;
  overflow-x: auto;
}
.url-line {
  font-family: var(--mono);
  font-size: clamp(0.86rem, 2vw, 1.05rem);
  background: none;
  border: none;
  padding: 0;
  white-space: nowrap;
  color: inherit;
}
.url-dim { color: var(--ink-dim); }
.url-sent {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-dim);
  padding-bottom: 4px;
}
.url-cut { color: var(--ink-dim); padding: 0 2px; }
.url-secret {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.url-notes {
  display: flex;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  white-space: nowrap;
}
.url-note--sent { color: var(--ink-dim); margin-left: 4.4em; }
.url-note--secret { color: var(--ink-soft); margin-left: auto; }

/* ---- Wire diagram ---- */
.wire {
  margin-top: 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  padding: 40px 28px 32px;
}
.wire-track {
  position: relative;
  height: 1px;
  margin: 0 10%;
  background: var(--rule);
  overflow: visible;
}
.wire-packet {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--card);
  padding: 0 8px;
  letter-spacing: 0.18em;
  animation: travel 5s linear infinite;
}
@keyframes travel {
  0% { left: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.wire-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.wire-node {
  text-align: left;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  padding: 22px 20px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.wire-node strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}
.wire-node--server { background: var(--card-2); }

/* ---- Bridge / Install ---- */
.bridge-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  margin-top: 36px;
  align-items: start;
}
.install-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin: 0 0 14px;
}
.install-note {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-dim);
}

.codebox {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  padding: 18px 20px;
  font: 0.88rem/1.55 var(--mono);
  overflow-x: auto;
}
.codebox code {
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
  color: inherit;
  white-space: pre;
}
.codebox--block {
  display: block;
  margin: 16px 0 0;
  white-space: pre;
  color: var(--ink-2);
}
.codebox--block code { color: inherit; }
.copy-btn {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--pill);
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.copy-btn:hover,
.copy-btn:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--card);
}
.copy-btn[data-copied="true"] {
  background: var(--ink);
  color: var(--bg-2);
  border-color: var(--ink);
}

/* ---- Mode tabs ---- */
.modes {
  display: inline-flex;
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--pill);
  padding: 4px;
  background: var(--card);
}
.mode-tab {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 9px 20px;
  border-radius: var(--pill);
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: background 0.12s ease, color 0.12s ease;
}
.mode-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg-2);
}
.mode-panel { margin-top: 22px; }
.mode-panel p { font-size: 0.96rem; }

/* ---- CSS phone mock ---- */
.phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 9 / 18;
  border: 1px solid var(--rule);
  border-radius: 32px;
  background: var(--card);
  padding: 14px 10px 16px;
  box-shadow: 0 30px 80px -40px rgba(10, 10, 10, 0.18);
}
.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  border-radius: 999px;
  background: var(--rule);
  z-index: 2;
}
.phone-screen {
  height: 100%;
  background: var(--bg);
  border-radius: 22px;
  padding: 22px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.phone-head {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-soft);
}
.phone-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
}
.msg {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 14px;
  max-width: 92%;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  color: var(--ink);
}
.msg--you {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg-2);
  border-color: var(--ink);
}
.block {
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  font-size: 0.7rem;
}
.block-head {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--ink-dim);
  padding: 6px 10px;
  border-bottom: 1px solid var(--rule-soft);
}
.diff-line {
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
}
.diff-add { color: #2a7a3a; background: rgba(46, 204, 113, 0.1); }
.diff-del { color: #b03a52; background: rgba(255, 92, 132, 0.08); text-decoration: line-through; }
.block--buttons {
  border: none;
  background: none;
  display: flex;
  gap: 6px;
}
.fake-btn {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 0;
  letter-spacing: -0.005em;
}
.fake-btn--go {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-2);
}
.block--danger { border-color: var(--ink-dim); }
.danger-head { color: var(--ink); border-bottom-color: var(--ink-dim); }
.danger-body { padding: 7px 8px; color: var(--ink-soft); }
.danger-body code { background: var(--card-2); color: var(--ink); border: none; }

/* ---- Manifesto ---- */
.manifesto .strike-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 28px;
}
.manifesto .strike-list span {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink-dim);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ---- Final CTA band ---- */
.cta-band {
  text-align: left;
  margin-top: 0;
  padding: 112px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: none;
  background: transparent;
}
.cta-band h2 { max-width: 24ch; }

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-dim);
  padding: 36px 32px 64px;
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--rule-soft);
}
.footer p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-dim);
  max-width: none;
}
.footer-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 4px;
}
.footer-links .link {
  font-size: 0.9rem;
  border-bottom-color: transparent;
  color: var(--ink-soft);
}
.footer-links .link:hover { border-bottom-color: var(--ink); color: var(--ink); }
.footer-license {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ---- Scroll-reveal ---- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .bridge-grid { grid-template-columns: 1fr; }
  .phone { max-width: 220px; margin-top: 8px; }

  .topbar-inner { position: relative; }
  .nav-toggle { display: inline-flex; }

  body.js-nav .topnav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: rgba(245, 245, 243, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule-soft);
  }
  body.js-nav .topnav.is-open { display: flex; }
  body.js-nav .topnav .topnav-link {
    width: 100%;
    padding: 14px 14px;
    font-size: 1rem;
    border-radius: 12px;
    border-bottom: 1px solid var(--rule-soft);
  }
  body.js-nav .topnav .topnav-cta {
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
    text-align: center;
    font-size: 1rem;
    padding: 14px 22px;
  }
}

@media (max-width: 640px) {
  .page { padding: 0 20px 64px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }
  .split { grid-template-columns: 1fr; gap: 14px; }
  .wire-track { margin: 0 6%; }
  .wire-nodes { grid-template-columns: 1fr; }
  .channel-row { flex-wrap: wrap; gap: 6px 14px; }
  .channel-side { flex-basis: 100%; }
  .channel-tag { display: none; }
  .url-notes { display: none; }
  .cta, .hero-actions .link { width: 100%; }
  .lead { max-width: none; }
  h1 { max-width: none; }
}

/* ---- Motion off ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .wire-packet { left: 50%; opacity: 1; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
