:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-soft: #f1f2f3;
  --ink: #050505;
  --text: #191c1d;
  --muted: #62666a;
  --subtle: #8b9095;
  --line: #e1e3e4;
  --line-strong: #c9cccf;
  --dark: #050505;
  --dark-soft: #151515;
  --white: #ffffff;
  --shell: 1280px;
  --page: clamp(20px, 4vw, 64px);
  --gap: clamp(24px, 3vw, 40px);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

svg {
  display: block;
}

p,
h1,
h2,
h3,
dl,
dd,
blockquote {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--dark);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(var(--shell), calc(100% - (var(--page) * 2)));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 80px;
  border-bottom: 1px solid rgba(201, 204, 207, 0.5);
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
}

.brand-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 24px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a:focus-visible {
  color: var(--ink);
  outline: none;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 22px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-cta,
.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.nav-cta:hover,
.btn-dark:hover {
  background: #303030;
  border-color: #303030;
}

.btn-light {
  background: transparent;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--surface-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 13px / 1 var(--font);
  padding: 12px 16px;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 128px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin-bottom: 20px;
  color: var(--muted);
  font: 700 11px / 1.25 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker.inverse {
  color: rgba(255, 255, 255, 0.62);
}

h1 {
  margin-bottom: 30px;
  color: var(--ink);
  font-size: clamp(48px, 6.6vw, 88px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 26px;
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 660px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.complexity-map {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(24px, 4vw, 58px);
}

.complexity-map svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.map-lines path {
  fill: none;
  stroke: #92979d;
  stroke-width: 1.5;
  marker-end: url("#arrow");
}

.map-nodes rect {
  fill: #fbfbfb;
  stroke: #8c9298;
  stroke-width: 1.3;
}

.map-dots circle,
marker path {
  fill: var(--ink);
}

.section {
  padding: clamp(86px, 12vw, 170px) 0;
}

.section-intro {
  max-width: 790px;
  margin-bottom: clamp(44px, 6vw, 84px);
}

.section-intro.center {
  margin-inline: auto;
  text-align: center;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.symptom-card,
.story-card,
.concept-card,
.service-step {
  border: 1px solid var(--line);
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.symptom-card {
  min-height: 162px;
  padding: 26px;
}

.symptom-card:hover,
.story-card:hover,
.concept-card:hover,
.service-step:hover {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.045);
  transform: translateY(-4px);
}

.icon {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  font: 700 12px / 1 var(--mono);
}

.symptom-card p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.45;
}

.diagnosis-quote {
  margin: 58px 0 0;
  background: var(--ink);
  color: var(--white);
  font-size: clamp(17px, 2vw, 24px);
  font-style: italic;
  font-weight: 560;
  line-height: 1.45;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
}

.concept-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.concept-copy p {
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.65;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.46fr) minmax(0, 0.74fr);
  gap: clamp(48px, 9vw, 132px);
  align-items: start;
}

.method-sticky {
  position: sticky;
  top: 132px;
}

.method-sticky p {
  color: var(--muted);
  font-size: 18px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 58px;
  margin: 0;
  padding: 0 0 0 44px;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 28px;
  left: 11px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-item {
  position: relative;
}

.dot {
  position: absolute;
  top: 2px;
  left: -44px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
}

.timeline-item h3 {
  margin-bottom: 12px;
}

.timeline-item p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.stories-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.story-card {
  background: var(--surface);
  padding: clamp(28px, 4vw, 44px);
}

.story-card h3 {
  margin-bottom: 34px;
}

.story-card dt {
  margin-bottom: 6px;
  color: var(--subtle);
  font: 800 10px / 1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-card dd {
  margin-left: 0;
  margin-bottom: 24px;
  color: var(--muted);
}

.story-card dd:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 750;
}

.concept-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.concept-card {
  min-height: 210px;
  padding: 34px;
}

.concept-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.dark-section {
  background: var(--ink);
  color: var(--white);
  padding: clamp(86px, 12vw, 170px) 0;
}

.dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: clamp(48px, 9vw, 128px);
  align-items: center;
}

.dark-section h2,
.dark-section h3 {
  color: var(--white);
}

.dark-section p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.belief-list {
  display: grid;
  gap: 38px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: clamp(32px, 5vw, 70px);
}

.belief span {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.belief p {
  margin-bottom: 0;
}

.founder-section {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(86px, 12vw, 170px) 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 0.95fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
}

.founder-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #202020;
}

.founder-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.founder-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.04);
}

.founder-copy {
  max-width: 760px;
}

.founder-copy h2 {
  margin-bottom: 28px;
}

.founder-copy p {
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.75;
}

.founder-copy blockquote {
  margin: clamp(26px, 4vw, 42px) 0;
  border-left: 4px solid var(--ink);
  color: var(--ink);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 620;
  line-height: 1.18;
  letter-spacing: -0.04em;
  padding-left: clamp(20px, 3vw, 34px);
}

.founder-signature {
  display: grid;
  gap: 2px;
  margin-top: 34px;
}

.founder-signature strong {
  color: var(--ink);
  font-size: 20px;
}

.founder-signature span {
  color: var(--muted);
  font-style: italic;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.9fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.service-steps {
  display: grid;
  gap: 18px;
}

.service-step {
  padding: 30px;
}

.service-step span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font: 800 11px / 1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-section {
  padding: clamp(86px, 12vw, 170px) 0;
  text-align: center;
}

.cta-box {
  max-width: 880px;
}

.cta-box h2 {
  margin-inline: auto;
}

.cta-box p {
  max-width: 720px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 18px;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 38px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer strong {
  display: block;
  margin-bottom: 8px;
}

.footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
}

.modal-shell.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.64);
  backdrop-filter: blur(12px);
}

.analysis-modal {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.26);
  padding: clamp(26px, 4vw, 54px);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.modal-intro h2,
.analysis-thanks h2 {
  font-size: clamp(36px, 5vw, 64px);
}

.modal-intro p,
.analysis-thanks p {
  color: var(--muted);
  font-size: 18px;
}

.analysis-form {
  display: grid;
  gap: 34px;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.analysis-form fieldset {
  margin: 0;
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 34px);
}

.analysis-form legend {
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  padding: 0 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.analysis-form label,
.choice-grid label,
.radio-grid label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
}

.analysis-form input,
.analysis-form select,
.analysis-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 15px / 1.4 var(--font);
  padding: 14px 14px;
}

.analysis-form textarea {
  min-height: 132px;
  resize: vertical;
}

.analysis-form input:focus,
.analysis-form select:focus,
.analysis-form textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
  outline: 2px solid rgba(5, 5, 5, 0.08);
}

.field-help {
  margin-bottom: 18px;
  color: var(--muted);
}

.choice-grid,
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.radio-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
}

.choice-grid label,
.radio-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 13px 14px;
}

.choice-grid input,
.radio-grid input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--ink);
}

.conditional-field {
  display: none;
  margin-top: 18px;
}

.conditional-field.is-visible {
  display: grid;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.form-error {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
}

.form-error strong {
  color: #7f1d1d;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-error pre {
  max-height: 280px;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(153, 27, 27, 0.22);
  background: #fff7f7;
  color: #3f0b0b;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font: 600 12px / 1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.form-error[hidden] {
  display: none;
}

.analysis-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.analysis-thanks {
  max-width: 720px;
  padding: clamp(22px, 4vw, 48px) 0;
}

.analysis-thanks[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .concept-grid,
  .method-layout,
  .dark-grid,
  .founder-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .method-sticky {
    position: static;
  }

  .symptom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-grid,
  .concept-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header,
  .nav {
    height: 70px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: var(--page);
    left: var(--page);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 12px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .symptom-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 34px;
  }

  .dot {
    left: -34px;
  }

  .belief-list {
    border-left: 0;
    padding-left: 0;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-modal {
    max-height: 94vh;
    padding: 22px;
  }

  .form-grid,
  .choice-grid,
  .radio-grid,
  .radio-grid.compact {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* Motion layer: additive animations that preserve the existing layout. */
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at var(--pointer-x, 52%) var(--pointer-y, 18%), rgba(0, 0, 0, 0.055), transparent 18rem),
    linear-gradient(rgba(5, 5, 5, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.026) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
  pointer-events: none;
}

.hero-copy .kicker,
.hero-copy h1,
.hero-copy .lead,
.hero-actions {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-copy h1 {
  animation-delay: 0.08s;
}

.hero-copy .lead {
  animation-delay: 0.18s;
}

.hero-actions {
  animation-delay: 0.28s;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.complexity-map {
  position: relative;
  overflow: hidden;
}

.complexity-map::before {
  position: absolute;
  inset: -40%;
  content: "";
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.72), transparent 58%);
  opacity: 0;
  transform: translateX(-40%);
  animation: panel-scan 4.8s ease-in-out 1.2s infinite;
}

.complexity-map svg {
  position: relative;
  z-index: 1;
}

.map-lines path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-line 1.9s ease forwards;
}

.map-lines path:nth-child(2) {
  animation-delay: 0.12s;
}

.map-lines path:nth-child(3) {
  animation-delay: 0.24s;
}

.map-lines path:nth-child(4) {
  animation-delay: 0.36s;
}

.map-lines path:nth-child(5) {
  animation-delay: 0.48s;
}

.map-lines path:nth-child(6) {
  animation-delay: 0.6s;
}

.map-nodes rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-enter 0.72s ease forwards, node-breathe 4.4s ease-in-out infinite;
  animation-delay: calc(var(--node-index, 0) * 80ms), 1.2s;
}

.map-nodes rect:nth-child(1) { --node-index: 1; }
.map-nodes rect:nth-child(2) { --node-index: 2; }
.map-nodes rect:nth-child(3) { --node-index: 3; }
.map-nodes rect:nth-child(4) { --node-index: 4; }
.map-nodes rect:nth-child(5) { --node-index: 5; }
.map-nodes rect:nth-child(6) { --node-index: 6; }
.map-nodes rect:nth-child(7) { --node-index: 7; }
.map-nodes rect:nth-child(8) { --node-index: 8; }
.map-nodes rect:nth-child(9) { --node-index: 9; }

.map-dots circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-pulse 2.8s ease-in-out infinite;
}

.map-dots circle:nth-child(2) { animation-delay: 0.2s; }
.map-dots circle:nth-child(3) { animation-delay: 0.4s; }
.map-dots circle:nth-child(4) { animation-delay: 0.6s; }
.map-dots circle:nth-child(5) { animation-delay: 0.8s; }

.symptom-card:hover .icon,
.service-step:hover span {
  color: var(--ink);
}

.diagnosis-quote {
  position: relative;
  overflow: hidden;
}

.diagnosis-quote::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.14) 45%, transparent 72%);
  transform: translateX(-120%);
  animation: quote-sweep 6s ease-in-out infinite;
}

.timeline-item::before {
  position: absolute;
  top: 32px;
  left: -34px;
  width: 1px;
  height: 0;
  content: "";
  background: var(--ink);
  transition: height 0.9s ease;
}

.timeline-item.is-visible::before {
  height: calc(100% + 28px);
}

.dot {
  box-shadow: 0 0 0 0 rgba(5, 5, 5, 0.22);
  animation: timeline-pulse 2.4s ease-in-out infinite;
}

.belief.is-visible span {
  animation: count-pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.reveal {
  transition-delay: var(--reveal-delay, 0ms);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-enter {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes node-breathe {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  50% {
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.12));
  }
}

@keyframes dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.34);
    opacity: 0.58;
  }
}

@keyframes panel-scan {
  0%,
  64% {
    opacity: 0;
    transform: translateX(-40%);
  }
  74% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(44%);
  }
}

@keyframes quote-sweep {
  0%,
  55% {
    transform: translateX(-120%);
  }
  82%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes timeline-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(5, 5, 5, 0);
  }
  45% {
    box-shadow: 0 0 0 9px rgba(5, 5, 5, 0.08);
  }
}

@keyframes count-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  body::before,
  .complexity-map::before,
  .diagnosis-quote::after,
  .timeline-item::before {
    display: none;
  }
}

/* Hero diagram image replacement. The inline SVG remains only as a stable aspect-ratio scaffold. */
.complexity-map {
  background:
    var(--surface)
    url("../img/hero-0.png")
    center / contain
    no-repeat;
}

.complexity-map svg {
  opacity: 0;
}
