:root {
  --paper: #faf9f6;
  --paper-2: #f3f6ff;
  --white: #ffffff;
  --ink: #0b1220;
  --ink-soft: #111722;
  --ink-2: rgba(11, 18, 32, 0.64);
  --ink-3: rgba(11, 18, 32, 0.44);
  --ink-faint: rgba(11, 18, 32, 0.1);

  --blue: #1b3df5;
  --blue-hot: #2b5cf6;
  --blue-deep: #0b27c4;
  --red: #ff5a5f;
  --red-soft: rgba(255, 90, 95, 0.5);
  --navy: #05091a;
  --navy-2: #0a1124;
  --navy-3: #111a36;

  --on-blue: #ffffff;
  --line: rgba(11, 18, 32, 0.12);
  --line-soft: rgba(11, 18, 32, 0.07);
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-dark-soft: rgba(255, 255, 255, 0.08);
  --glow: rgba(27, 61, 245, 0.32);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 80px);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-hero: clamp(2.7rem, 9.2vw, 8.6rem);
  --text-chapter: clamp(2.3rem, 6.2vw, 5.3rem);
  --text-body: clamp(1.05rem, 1.35vw, 1.22rem);
  --text-meta: 0.74rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
em {
  font-style: italic;
}
button {
  font: inherit;
}

::selection {
  background: var(--blue);
  color: var(--on-blue);
}

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--text-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--blue);
  color: var(--on-blue);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Scroll rail ---------- */
.scroll-rail {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  background: transparent;
  pointer-events: none;
}
.scroll-rail span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--blue-hot) 78%, var(--red));
}

/* ---------- Masthead ---------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(12px, 1.6vw, 18px) var(--gut);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead.tucked {
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 24px -16px rgba(11, 18, 32, 0.5);
}
body.menu-open .masthead {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.masthead .brand-mark {
  width: 42px;
  height: 42px;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark-dot {
  color: var(--red);
}
.masthead.over-dark .wordmark-dot {
  color: var(--red);
}

/* ---------- Center nav ---------- */
.nav-center {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
  margin: 0 auto;
}
.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover {
  color: var(--blue);
}
.nav-link:hover::after {
  transform: scaleX(1);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  flex: none;
}
.masthead-mail {
  font-family: var(--mono);
  font-size: var(--text-meta);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.masthead-mail:hover {
  color: var(--blue);
}

/* ---------- Buttons ---------- */
.btn-call {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-blue);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-call:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  box-shadow: 0 14px 34px -14px var(--glow);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 14px 34px -18px rgba(11, 18, 32, 0.3);
}
.btn-call-lg {
  font-size: 1rem;
  padding: 16px 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-call-lg span {
  transition: transform 0.3s var(--ease);
}
.btn-call-lg:hover span {
  transform: translateX(4px);
}

/* dark-section buttons */
.on-dark .btn-ghost {
  color: var(--white);
  border-color: var(--line-dark);
}
.on-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--white);
  color: var(--white);
}

/* ---------- Menu toggle ---------- */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 0;
}
.menu-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.menu-toggle-bars i {
  display: block;
  height: 1.6px;
  width: 100%;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
body.menu-open .menu-toggle-bars i:nth-child(1) {
  transform: translateY(2.8px) rotate(45deg);
}
body.menu-open .menu-toggle-bars i:nth-child(2) {
  transform: translateY(-2.8px) rotate(-45deg);
}

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 14vh, 160px) var(--gut) clamp(40px, 6vh, 64px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s;
}
.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 85% 12%, rgba(27, 61, 245, 0.12), transparent 60%);
  pointer-events: none;
}
body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.menu-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}
.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(14px, 2.2vh, 26px) 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.menu-idx {
  color: var(--blue);
  flex: none;
  width: 2ch;
}
.menu-link {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.menu-nav a:hover .menu-link {
  color: var(--blue);
  transform: translateX(18px);
}
.menu-foot {
  position: relative;
  margin-top: clamp(36px, 6vh, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.menu-mail {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink);
}
.menu-mail:hover {
  color: var(--blue);
}

/* ---------- Chapter scaffold ---------- */
.chapter {
  position: relative;
  z-index: 2;
  padding: clamp(96px, 15vh, 190px) var(--gut);
  max-width: var(--maxw);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
/* legacy alias used on pricing */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.chapter-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-chapter);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.chapter-title em,
.origin-title em {
  font-style: italic;
  color: var(--blue);
  background: linear-gradient(102deg, var(--blue-deep) 0%, var(--blue) 45%, var(--blue-hot) 72%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* inline-block + bottom padding extends the clipped paint area so italic
     descenders aren't cut; negative margin keeps line spacing intact */
  display: inline-block;
  padding: 0 0.1em 0.4em;
  margin-bottom: -0.34em;
}

.lede {
  margin-top: 28px;
  max-width: 50ch;
  color: var(--ink-2);
  font-size: var(--text-body);
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 0;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(27, 61, 245, 0.1), transparent 70%),
    var(--paper);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 68%, var(--paper));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-inline: var(--gut);
  max-width: 1100px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.1em 0.06em 0.22em;
  margin: -0.1em -0.06em -0.22em;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1s var(--ease);
}
body.ready .hero-title .word {
  transform: translateY(0);
}
body.ready .hero-title .line:nth-child(2) .word {
  transition-delay: 0.12s;
}
.hero-title .know {
  position: relative;
  color: var(--blue);
  background: linear-gradient(102deg, var(--blue-deep) 0%, var(--blue) 42%, var(--blue-hot) 70%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.14em;
}
.hero-sub {
  margin: clamp(22px, 3vh, 32px) auto 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  color: var(--ink-2);
  line-height: 1.5;
}
.hero-cta {
  margin-top: clamp(28px, 4vh, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-proof {
  margin-top: clamp(30px, 5vh, 54px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero-proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.scroll-cue {
  position: absolute;
  bottom: clamp(24px, 4vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
}
.scroll-cue .mono {
  color: var(--ink-3);
}
.scroll-cue-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--blue), var(--red) 78%, transparent);
  animation: cuepulse 2.4s var(--ease) infinite;
}
@keyframes cuepulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Marquee logos / proof strip ---------- */
.proofbar {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--white);
}
.proofbar-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 44px) var(--gut);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.stat {
  text-align: left;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-num em {
  color: var(--blue);
  font-style: normal;
}
.stat-label {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
  max-width: 24ch;
}
.stat-label sup {
  color: var(--ink-3);
}
.proofbar-note {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 var(--gut);
  text-align: right;
  font-size: 0.68rem;
  color: var(--ink-3);
}

/* ---------- Tiers (how it works) ---------- */
.tiers {
  position: relative;
  z-index: 2;
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 1040px;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  text-align: left;
}
.tier {
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(22px, 2.4vw, 32px);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tier:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--blue-hot);
  transform: translateY(-3px);
}
.tier-idx {
  color: var(--blue-hot);
}
.tier-title {
  margin: 16px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.05;
  color: var(--white);
}
.tier p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ---------- Split: the guess ---------- */
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.scatter {
  position: relative;
  height: clamp(320px, 44vh, 480px);
}
.frag {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  white-space: nowrap;
  box-shadow: 0 14px 30px -22px rgba(11, 18, 32, 0.5);
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}
.frag em {
  color: var(--red);
  font-style: normal;
}
.frag:nth-child(1) { top: 4%; left: 4%; transform: rotate(-5deg); }
.frag:nth-child(2) { top: 19%; left: 44%; transform: rotate(3deg); }
.frag:nth-child(3) { top: 33%; left: 6%; transform: rotate(-2deg); }
.frag:nth-child(4) { top: 49%; left: 48%; transform: rotate(4deg); }
.frag:nth-child(5) { top: 61%; left: 10%; transform: rotate(-4deg); }
.frag:nth-child(6) { top: 75%; left: 44%; transform: rotate(2deg); }
.frag:nth-child(7) { top: 88%; left: 4%; transform: rotate(-3deg); }
.frag:nth-child(8) { top: 11%; left: 19%; transform: rotate(6deg); }
.scatter.in .frag { opacity: 1; }
.scatter:not(.in) .frag {
  opacity: 0;
  transform: translateY(24px) rotate(0deg);
}
.scatter.js-active .frag {
  transition: opacity 0.6s var(--ease);
  transition-delay: calc(var(--i) * 50ms);
  will-change: transform;
}
.scatter::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4%;
  bottom: 4%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--red));
  opacity: 0;
  transform: scaleY(0.15);
  transform-origin: 50% 0;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.scatter.aligned::before {
  opacity: 1;
  transform: scaleY(1);
}
.scatter.aligned .frag {
  box-shadow: 0 10px 24px -20px rgba(11, 18, 32, 0.55);
}

/* ---------- Ignition (dark blue) ---------- */
.ignition {
  max-width: none;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(80% 70% at 50% 30%, var(--navy-3), var(--navy) 70%);
  color: var(--white);
  border-radius: clamp(20px, 3vw, 36px);
  margin-block: clamp(40px, 8vh, 110px);
  margin-inline: auto;
  width: calc(100% - var(--gut) * 2);
  padding-block: clamp(90px, 13vh, 170px);
}
.ignition-stage {
  position: relative;
  height: clamp(320px, 50vh, 560px);
  margin-bottom: clamp(36px, 6vw, 72px);
}
.ignition-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ignition-head {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--gut);
}
.ignition .eyebrow {
  color: var(--blue-hot);
}
.ignition .eyebrow::before {
  background: var(--blue-hot);
}
.ignition .chapter-title {
  color: var(--white);
  font-size: clamp(2.6rem, 8vw, 6rem);
}
.ignition .chapter-title em {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--blue-hot);
}
.ignition .lede {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.7);
}
.ignition-list {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: clamp(38px, 6vw, 64px) auto 0;
  padding: 0;
  max-width: 820px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ignition-list li {
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.03em;
  color: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Answer console ---------- */
.answer-section {
  max-width: 1180px;
  text-align: center;
}
.answer-head {
  max-width: 46ch;
  margin-inline: auto;
}
.answer-head .lede {
  margin-inline: auto;
}
.answer-section .chapter-title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}
.console {
  position: relative;
  margin-top: clamp(44px, 6vw, 84px);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 60px 120px -60px rgba(11, 18, 32, 0.45);
  transition: box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.console.lit {
  border-color: rgba(27, 61, 245, 0.4);
  box-shadow: 0 60px 120px -50px rgba(11, 18, 32, 0.4), 0 0 80px -30px var(--glow);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.console-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}
.console-name {
  margin-left: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
}
.console-body {
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.msg {
  max-width: 80%;
}
.msg p {
  margin: 0;
  padding: 15px 19px;
  border-radius: 16px;
  line-height: 1.5;
}
.msg-user {
  align-self: flex-end;
}
.msg-user p {
  background: var(--blue);
  color: var(--on-blue);
  border-bottom-right-radius: 5px;
}
.msg-assistant {
  align-self: flex-start;
  max-width: 90%;
}
.msg-assistant p.answer {
  background: transparent;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  min-height: 1.35em;
}
.msg-assistant p.answer .hot {
  color: var(--blue);
}
.msg-assistant p.answer::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--blue);
  animation: caret 1s step-end infinite;
}
.msg-assistant p.answer.done::after {
  display: none;
}
@keyframes caret {
  50% { opacity: 0; }
}
.cites {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.cite {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
  background: var(--paper);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.cites.show .cite {
  opacity: 1;
  transform: none;
}
.cites.show .cite:nth-child(1) { transition-delay: 0.04s; }
.cites.show .cite:nth-child(2) { transition-delay: 0.16s; }
.cites.show .cite:nth-child(3) { transition-delay: 0.28s; }
.cites.show .cite:nth-child(4) { transition-delay: 0.4s; }
.cite::before {
  content: "▸ ";
  color: var(--red);
}

/* ---------- Ask (marquee) ---------- */
.ask {
  max-width: none;
  padding-inline: 0;
}
.ask-head {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 22px);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 12vw, 180px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), transparent);
}
.marquee-row {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
  animation: marquee var(--dur, 48s) linear infinite;
}
.marquee-row.reverse {
  animation-direction: reverse;
}
.marquee:hover .marquee-row {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.q {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.q::after {
  content: "✦";
  font-family: var(--sans);
  font-size: 0.5em;
  color: var(--red);
}
.q:hover {
  color: var(--ink);
}

/* ---------- Reasons (Fin-style numbered grid) ---------- */
.reasons {
  max-width: var(--maxw);
}
.reasons-head {
  max-width: 30ch;
  margin-bottom: clamp(44px, 6vw, 78px);
}
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.reason {
  position: relative;
  background: var(--white);
  padding: clamp(26px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.reason:hover {
  background: var(--paper-2);
}
.reason-idx {
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  color: var(--blue);
}
.reason-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.reason p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-top: auto;
}

/* ---------- Roles / Every desk ---------- */
.teams-head {
  max-width: 26ch;
}
.roles {
  margin-top: clamp(48px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 100px);
}
.role {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.role-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.12rem;
  display: block;
  margin-bottom: 10px;
}
.role-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 10px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  vertical-align: middle;
}
.role p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 40ch;
}

/* ---------- Origin ---------- */
.origin {
  max-width: 1000px;
}
.origin-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-chapter);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
  color: var(--ink);
}
.origin-body {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.6;
}

/* ---------- Pricing teaser ---------- */
.pricing-teaser {
  max-width: 920px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue);
  border-bottom: 1.5px solid var(--blue);
  padding-bottom: 6px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover {
  color: var(--red);
  border-color: var(--red);
  gap: 16px;
}

/* ---------- Made in the USA ---------- */
.usa {
  max-width: var(--maxw);
  text-align: center;
}
.usa-head {
  max-width: 60ch;
  margin-inline: auto;
}
.usa .lede {
  margin-inline: auto;
}
/* Full-screen ambient flag — fades in behind the "Built in America" section
   as you scroll to it, then fades back out. Opacity driven by JS. */
.usa-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
  transition: opacity 120ms linear;
}
.usa-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.33;
  filter: blur(48px) saturate(0.85);
  transform: scale(1.18);
}
.usa {
  position: relative;
  z-index: 2;
}

/* ---------- Contact (dark) ---------- */
.contact {
  position: relative;
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  max-width: none;
  background: radial-gradient(60% 70% at 30% 90%, var(--navy-3), var(--navy) 70%);
  color: var(--white);
}
.contact-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--gut);
}
.contact .eyebrow {
  color: var(--blue-hot);
}
.contact .eyebrow::before {
  background: var(--blue-hot);
}
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
  color: var(--white);
}
.contact-title em {
  font-style: italic;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--blue-hot);
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
}
.contact-mail {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.contact-mail:hover {
  color: var(--white);
}
.contact-meta {
  margin-top: 44px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Pricing page ---------- */
.page-pricing {
  background: var(--paper);
}
.page-pricing .chapter:first-of-type {
  padding-top: clamp(140px, 20vh, 240px);
}
.pricing-hero {
  max-width: 1000px;
}
.pricing-hero .chapter-title {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}
.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 3vw, 40px);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100%;
  box-shadow: 0 30px 70px -50px rgba(11, 18, 32, 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -46px rgba(11, 18, 32, 0.45);
}
.plan-featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 40px 90px -50px var(--glow);
  animation: featuredglow 5.5s ease-in-out infinite;
}
@keyframes featuredglow {
  0%, 100% {
    box-shadow: 0 0 0 1px var(--blue), 0 40px 90px -50px var(--glow);
  }
  50% {
    box-shadow: 0 0 0 1px var(--blue), 0 40px 100px -46px var(--glow),
      0 0 60px -30px var(--red-soft);
  }
}
.plan-flag {
  position: absolute;
  top: -11px;
  left: clamp(26px, 3vw, 40px);
  background: var(--blue);
  color: var(--on-blue);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 0.66rem;
}
.plan-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}
.plan-for {
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.plan-amt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}
.plan-per {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
}
.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 0.96rem;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(27, 61, 245, 0.12);
}
.plan-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.62em;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--blue);
  border-bottom: 1.5px solid var(--blue);
  transform: rotate(-45deg);
}
.plan-cta {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
}

/* Single-package layout + seat picker */
.plans-single {
  grid-template-columns: 1fr;
  max-width: 960px;
  margin-inline: auto;
}
.plan-solo {
  gap: 22px;
  padding: clamp(32px, 4vw, 56px);
}
.plan-solo-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.plan-solo-left,
.plan-solo-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.plan-solo-right {
  justify-content: center;
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 1px solid var(--line-soft);
}
.seats {
  border: none;
  margin: 0;
  padding: 0;
}
.seats-label {
  display: block;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
  font-size: var(--text-meta);
}
.seats-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.seat-opt {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.seat-opt:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.seat-opt[aria-checked="true"] {
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-color: transparent;
  color: var(--on-blue, #fff);
}
.plan-foot {
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-3);
  font-size: var(--text-meta);
}
.pricing-note {
  max-width: 900px;
}

/* ---------- Security (Teflon, dark) ---------- */
.security {
  max-width: none;
  background: radial-gradient(70% 80% at 80% 10%, var(--navy-3), var(--navy) 72%);
  color: var(--white);
}
.security-inner {
  max-width: var(--maxw);
  margin-inline: auto;
}
.security-head {
  max-width: 60ch;
}
.security .chapter-title {
  color: var(--white);
}
.security .chapter-title em {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--blue-hot);
}
.security .eyebrow,
.roadmap .eyebrow {
  color: var(--blue);
}
.security .eyebrow {
  color: var(--blue-hot);
}
.security .eyebrow::before {
  background: var(--blue-hot);
}
.security .lede {
  color: rgba(255, 255, 255, 0.7);
}
.pillars {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.pillar {
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(24px, 2.6vw, 36px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.pillar:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--blue-hot);
  transform: translateY(-3px);
}
.pillar-idx {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  color: var(--blue-hot);
  letter-spacing: 0.04em;
}
.pillar-title {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.05;
  color: var(--white);
}
.pillar p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.96rem;
  line-height: 1.55;
}
.compliance {
  margin: clamp(36px, 4vw, 52px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.compliance li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.04);
}
.compliance li::before {
  content: "✓ ";
  color: var(--blue-hot);
}
.compliance-note {
  margin: 20px 0 0;
  max-width: 64ch;
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Roadmap ---------- */
.roadmap {
  max-width: var(--maxw);
}
.roadmap-head {
  max-width: 28ch;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
  counter-reset: phase;
}
.phase {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}
.phase::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transition: width 0.7s var(--ease) 0.15s;
}
.phase.in::before {
  width: 64px;
}
.phase-tag {
  color: var(--blue);
}
.phase-title {
  margin: 16px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.02;
  color: var(--ink);
}
.phase p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 36ch;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 44px var(--gut);
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}
.wordmark-sm {
  font-size: 0.95rem;
  color: var(--ink);
}
.footer-meta {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  color: var(--ink-2);
}
.footer-meta a:hover {
  color: var(--blue);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-quart), transform 0.9s var(--ease-quart), filter 0.9s var(--ease-quart);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Dialog ---------- */
.call-dialog {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
  max-width: 560px;
  width: calc(100% - 40px);
  box-shadow: 0 60px 120px -50px rgba(11, 18, 32, 0.5);
}
.call-dialog::backdrop {
  background: rgba(5, 9, 26, 0.5);
  backdrop-filter: blur(6px);
}
.call-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 1rem;
  cursor: pointer;
}
.call-close:hover {
  color: var(--ink);
}
.dialog-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  margin: 6px 0 8px;
}
.dialog-sub {
  color: var(--ink-2);
  margin-bottom: 28px;
  font-size: 0.96rem;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-full {
  grid-column: 1 / -1;
}
.field-label {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
}
.field-label em {
  color: var(--ink-3);
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 61, 245, 0.14);
}
.call-actions {
  margin-top: 26px;
}
.call-success {
  text-align: center;
  padding: 20px 0;
}
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 1.2rem;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px rgba(27, 61, 245, 0.12);
}

/* ---------- Motion enhancements ---------- */
/* Animated aurora wash behind hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 50% at 22% 32%, rgba(27, 61, 245, 0.16), transparent 60%),
    radial-gradient(34% 46% at 78% 30%, rgba(43, 92, 246, 0.14), transparent 60%),
    radial-gradient(30% 40% at 70% 72%, rgba(255, 90, 95, 0.07), transparent 64%),
    radial-gradient(40% 50% at 50% 78%, rgba(11, 39, 196, 0.1), transparent 62%);
  filter: blur(8px);
  animation: aurora 16s var(--ease) infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(2%, 1.5%, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); opacity: 0.9; }
}

/* Hand-drawn underline under the hero title */
.title-underline {
  display: block;
  width: clamp(180px, 32vw, 440px);
  height: auto;
  margin: clamp(6px, 1.4vh, 16px) auto 0;
  color: var(--blue);
  position: relative;
  z-index: 2;
  overflow: visible;
}
.title-underline path {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  transition: stroke-dashoffset 1.1s var(--ease-quart);
  transition-delay: 0.55s;
}
body.ready .title-underline path {
  stroke-dashoffset: 0;
}

/* Reason cards: blue indicator line draws in on hover */
.reason::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.reason:hover::before {
  transform: scaleX(1);
}

/* Masthead recolors when over a dark section */
.masthead.over-dark {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
.masthead.over-dark .wordmark,
.masthead.over-dark .nav-link,
.masthead.over-dark .menu-toggle {
  color: var(--white);
}
.masthead.over-dark .masthead-mail {
  color: rgba(255, 255, 255, 0.72);
}
.masthead.over-dark .masthead-mail:hover {
  color: var(--white);
}
.masthead.over-dark .nav-link::after {
  background: var(--white);
}
.masthead.over-dark .btn-call {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.masthead.over-dark .btn-call:hover {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.6);
}
.masthead {
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}
.masthead .wordmark,
.masthead .nav-link,
.masthead .masthead-mail,
.masthead .btn-call,
.masthead .menu-toggle {
  transition: color 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Magnetic buttons add a smooth return */
.btn-call {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .title-underline path { stroke-dashoffset: 0; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-center {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .roles {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .role {
    padding: 22px 0;
  }
  .role + .role {
    border-top: 1px solid var(--line-soft);
  }
  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proofbar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .tiers,
  .pillars,
  .phases {
    grid-template-columns: 1fr;
  }
  .proofbar-note {
    text-align: left;
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .plan-solo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .plan-solo-right {
    border-left: none;
    padding-left: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
  }
}
@media (max-width: 600px) {
  .masthead-mail {
    display: none;
  }
  .reason-grid {
    grid-template-columns: 1fr;
  }
  .msg {
    max-width: 100%;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn-call {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-title .word,
  .frag {
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero-title .word {
    transform: none;
  }
  .scatter:not(.in) .frag {
    opacity: 1;
    transform: none;
  }
  .scroll-cue-line {
    animation: none;
  }
  .msg-assistant p.answer::after {
    animation: none;
  }
  .marquee-row {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    white-space: normal;
  }
  .q {
    white-space: normal;
  }
  .menu {
    transition: opacity 0.2s linear, visibility 0.2s;
    transform: none;
  }
  .plan-featured {
    animation: none;
  }
  .phase::before {
    width: 64px;
    transition: none;
  }
  .cites .cite {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scatter::before {
    display: none;
  }
  .neb-brain-launch,
  .neb-brain-panel {
    transition: none !important;
  }
}

/* ---------- Brain chat widget ---------- */
#nebBrain {
  --nb-radius: 18px;
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 1000;
  font-family: var(--sans);
}
.neb-brain-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 18px 40px -22px rgba(11, 18, 32, 0.5), 0 0 0 6px rgba(43, 92, 246, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.neb-brain-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -22px rgba(11, 18, 32, 0.55), 0 0 0 6px rgba(43, 92, 246, 0.09);
}
.neb-brain-launch img {
  width: 26px;
  height: 26px;
}
.neb-brain-launch .neb-dot {
  color: var(--red);
}
.neb-brain-launch .neb-ping {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.5);
  animation: nebPing 2.4s var(--ease) infinite;
}
@keyframes nebPing {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); }
}

.neb-brain-panel {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: min(390px, calc(100vw - 32px));
  height: min(580px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--nb-radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(11, 18, 32, 0.6);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
#nebBrain.open .neb-brain-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#nebBrain.open .neb-brain-launch {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.neb-brain-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  background: radial-gradient(120% 140% at 0% 0%, var(--navy-3, #16306e), var(--navy, #0b1733));
  color: #fff;
}
.neb-brain-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
.neb-brain-head img {
  width: 30px;
  height: 30px;
}
.neb-brain-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.neb-brain-title strong {
  font-weight: 600;
  font-size: 0.98rem;
}
.neb-brain-title strong .neb-dot {
  color: var(--red);
}
.neb-brain-title span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}
.neb-brain-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.neb-brain-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.neb-brain-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.neb-msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.neb-msg p { margin: 0 0 0.5em; }
.neb-msg p:last-child { margin-bottom: 0; }
.neb-msg ul { margin: 0.3em 0; padding-left: 1.1em; }
.neb-msg li { margin: 0.15em 0; }
.neb-msg a { color: var(--blue); text-decoration: underline; }
.neb-msg strong { font-weight: 600; }
.neb-msg-user {
  align-self: flex-end;
  background: var(--blue);
  color: var(--on-blue, #fff);
  border-bottom-right-radius: 4px;
}
.neb-msg-bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.neb-msg-bot a { color: var(--blue); }

.neb-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.neb-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3, #9aa3b2);
  animation: nebTyping 1.2s var(--ease) infinite;
}
.neb-typing i:nth-child(2) { animation-delay: 0.15s; }
.neb-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes nebTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.neb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 2px 2px;
}
.neb-chip {
  font-size: 0.78rem;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.neb-chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.neb-brain-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.neb-brain-input {
  flex: 1;
  resize: none;
  max-height: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  line-height: 1.45;
}
.neb-brain-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 92, 246, 0.12);
}
.neb-brain-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}
.neb-brain-send:hover { filter: brightness(1.08); transform: translateY(-1px); }
.neb-brain-send:disabled { opacity: 0.45; cursor: default; }
.neb-brain-foot {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-3, #9aa3b2);
  padding: 0 12px 10px;
  background: var(--paper);
}
@media (max-width: 520px) {
  .neb-brain-panel {
    height: min(72vh, calc(100vh - 32px));
  }
}

/* ---------- Contact page ---------- */
.contact-page-hero {
  padding-top: clamp(120px, 18vh, 220px);
}
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 72px);
  margin-top: clamp(34px, 5vw, 52px);
}
.contact-method {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cm-label {
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.cm-value {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a.cm-value:hover {
  color: var(--blue);
}
.cm-static {
  cursor: default;
}
.contact-page-hero .contact-actions {
  margin-top: clamp(36px, 5vw, 56px);
}

.team {
  padding-top: clamp(40px, 6vh, 80px);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(44px, 6vw, 72px);
}
.team-card {
  margin: 0;
}
.team-photo {
  aspect-ratio: 5 / 6;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -45px rgba(11, 18, 32, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.team-card:hover .team-photo {
  transform: translateY(-6px);
  border-color: rgba(27, 61, 245, 0.4);
  box-shadow: 0 44px 80px -44px rgba(11, 18, 32, 0.5), 0 0 0 1px rgba(27, 61, 245, 0.12);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-name {
  margin: 18px 0 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.team-role {
  margin: 0;
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .contact-methods {
    flex-direction: column;
    gap: 24px;
  }
}
