:root {
  --canvas: #f8f7f9;
  --surface: #fff;
  --subtle: #f3f2f3;
  --text: #111012;
  --secondary: #777477;
  --tertiary: #aaa7ab;
  --border: rgba(17, 16, 18, 0.08);
  --accent: #ff6b74;
  --dark-canvas: #121114;
  --dark-surface: #1c1a1e;
  --dark-text: #f5f1f6;
  --dark-secondary: #b9b2bc;
  --willow: #bcd979;
  --story-progress: 0;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

picture {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: var(--text);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  width: min(100% - 48px, 1180px);
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 24px rgba(35, 31, 38, 0.06);
}

.brand-mark svg {
  width: 22px;
  fill: var(--text);
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav a,
footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 620;
  text-decoration: none;
}

.site-header nav a:hover,
footer nav a:hover {
  color: var(--text);
}

.site-header .header-button {
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.64);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 136px max(24px, calc((100vw - 1180px) / 2)) 104px;
  overflow: hidden;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  content: "";
  filter: blur(16px);
  pointer-events: none;
}

.hero::before {
  top: -170px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: rgba(255, 107, 116, 0.1);
}

.hero::after {
  bottom: -260px;
  left: -160px;
  width: 520px;
  height: 520px;
  background: rgba(195, 189, 255, 0.13);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.kicker,
.beat {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 {
  max-width: 680px;
  font-size: clamp(3.6rem, 5.7vw, 5.8rem);
}

.hero-summary {
  max-width: 490px;
  margin: 24px 0 0;
  color: var(--secondary);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-dark {
  color: #fff;
  background: var(--text);
  box-shadow: 0 10px 24px rgba(17, 16, 18, 0.16);
}

.button-dark:hover {
  box-shadow: 0 14px 30px rgba(17, 16, 18, 0.2);
}

.button-quiet {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.hero-evidence {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 760 / 550;
  min-width: 0;
  margin: 0;
  padding: 14px 14px 48px;
  overflow: hidden;
  border: 1px solid rgba(17, 16, 18, 0.06);
  border-radius: 32px;
  background:
    linear-gradient(rgba(17, 16, 18, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 16, 18, 0.025) 1px, transparent 1px),
    rgba(255, 255, 255, 0.54);
  background-size: 32px 32px;
  box-shadow: 0 28px 80px rgba(35, 31, 38, 0.08);
}

.hero-branch-diagram {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-branch-diagram-mobile {
  display: none;
}

.thread-shell {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(17, 16, 18, 0.09);
  stroke-width: 1;
}

.thread-status,
.anchor-dot {
  fill: var(--accent);
}

.descendant-status {
  fill: var(--willow);
}

.thread-label {
  fill: var(--tertiary);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.09em;
}

.thread-title {
  fill: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.message-block {
  fill: var(--subtle);
  stroke: rgba(17, 16, 18, 0.045);
}

.message-muted {
  opacity: 0.62;
}

.message-text {
  fill: #5f5b61;
  font-size: 10px;
  font-weight: 570;
}

.anchor-outline {
  fill: rgba(255, 107, 116, 0.08);
  stroke: var(--accent);
  stroke-dasharray: 3 3;
  stroke-width: 1.3;
}

.hero-edge {
  fill: none;
  stroke: rgba(255, 107, 116, 0.74);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero-edge > path:first-child {
  fill: none;
  stroke-dasharray: 1;
}

.edge-arrow {
  fill: none;
}

.sequence-note rect {
  fill: var(--text);
}

.sequence-note text {
  fill: #fff;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.03em;
  text-anchor: middle;
  text-transform: uppercase;
}

.hero-evidence.is-animated .edge-root-one > path:first-child {
  animation: draw-first-branch 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero-evidence.is-animated .edge-root-two > path:first-child {
  animation: draw-second-branch 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero-evidence.is-animated .edge-root-three > path:first-child {
  animation: draw-third-branch 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero-evidence.is-animated .edge-child-one > path:first-child {
  animation: draw-deep-branch 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero-evidence.is-animated .edge-root-one .edge-arrow,
.hero-evidence.is-animated .child-one {
  animation: reveal-first-child 12s ease infinite;
}

.hero-evidence.is-animated .edge-root-two .edge-arrow,
.hero-evidence.is-animated .child-two {
  animation: reveal-second-child 12s ease infinite;
}

.hero-evidence.is-animated .edge-root-three .edge-arrow,
.hero-evidence.is-animated .child-three {
  animation: reveal-third-child 12s ease infinite;
}

.hero-evidence.is-animated .edge-child-one .edge-arrow,
.hero-evidence.is-animated .grandchild {
  animation: reveal-grandchild 12s ease infinite;
}

.hero-evidence.is-animated .anchor-root-one,
.hero-evidence.is-animated .note-one {
  animation: select-first-anchor 12s ease infinite;
}

.hero-evidence.is-animated .anchor-root-two,
.hero-evidence.is-animated .note-two {
  animation: select-second-anchor 12s ease infinite;
}

.hero-evidence.is-animated .anchor-child-one,
.hero-evidence.is-animated .note-three {
  animation: select-child-anchor 12s ease infinite;
}

.hero-evidence figcaption {
  position: absolute;
  right: 22px;
  bottom: 17px;
  left: 22px;
  margin: 0;
  color: var(--secondary);
  font-size: 0.7rem;
  text-align: center;
}

@keyframes draw-first-branch {
  0%,
  8% {
    stroke-dashoffset: 1;
  }

  17%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-second-branch {
  0%,
  29% {
    stroke-dashoffset: 1;
  }

  39%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-third-branch {
  0%,
  45% {
    stroke-dashoffset: 1;
  }

  55%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-deep-branch {
  0%,
  67% {
    stroke-dashoffset: 1;
  }

  77%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes reveal-first-child {
  0%,
  15% {
    opacity: 0;
  }

  20%,
  100% {
    opacity: 1;
  }
}

@keyframes reveal-second-child {
  0%,
  37% {
    opacity: 0;
  }

  42%,
  100% {
    opacity: 1;
  }
}

@keyframes reveal-third-child {
  0%,
  53% {
    opacity: 0;
  }

  58%,
  100% {
    opacity: 1;
  }
}

@keyframes reveal-grandchild {
  0%,
  75% {
    opacity: 0;
  }

  80%,
  100% {
    opacity: 1;
  }
}

@keyframes select-first-anchor {
  0%,
  4%,
  21%,
  100% {
    opacity: 0;
  }

  7%,
  17% {
    opacity: 1;
  }
}

@keyframes select-second-anchor {
  0%,
  25%,
  59%,
  100% {
    opacity: 0;
  }

  29%,
  55% {
    opacity: 1;
  }
}

@keyframes select-child-anchor {
  0%,
  63%,
  82%,
  100% {
    opacity: 0;
  }

  67%,
  78% {
    opacity: 1;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateX(-50%);
}

.story {
  position: relative;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 107, 116, 0.07), transparent 22%),
    radial-gradient(circle at 72% 78%, rgba(188, 217, 121, 0.08), transparent 24%),
    var(--surface);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(570px, 1.32fr);
  gap: clamp(42px, 7vw, 110px);
}

.story-step {
  display: flex;
  min-height: 88svh;
  padding: 13svh 0;
  align-items: center;
  opacity: 0.38;
  transition: opacity 400ms ease;
}

.story-step.is-current {
  opacity: 1;
}

.story-copy {
  max-width: 440px;
}

.story-copy h2,
.story-copy h3 {
  font-size: clamp(2.8rem, 4.8vw, 5.1rem);
}

.story-copy > p {
  max-width: 390px;
  margin: 22px 0 0;
  color: var(--secondary);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
}

.story-step.is-current .beat {
  color: var(--accent);
}

.story-stage {
  position: sticky;
  top: 84px;
  align-self: start;
  height: calc(100svh - 112px);
  max-height: 760px;
  min-height: 590px;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(248, 247, 249, 0.74);
  box-shadow: inset 0 0 0 1px rgba(17, 16, 18, 0.05);
  isolation: isolate;
}

.story-stage::before {
  position: absolute;
  z-index: -2;
  inset: 17% 8%;
  border-radius: 50%;
  background: rgba(255, 107, 116, 0.12);
  content: "";
  filter: blur(52px);
  opacity: calc(0.25 + var(--story-progress) * 0.75);
}

.web-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.web-line {
  fill: none;
  stroke: rgba(145, 139, 148, 0.34);
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--story-progress));
  stroke-linecap: round;
  stroke-width: 1.6;
}

.line-root {
  stroke: rgba(255, 107, 116, 0.72);
  stroke-dashoffset: 0;
}

.web-node {
  fill: var(--surface);
  stroke: #c6c1c8;
  stroke-width: 2;
  opacity: 0.18;
  transition: fill 300ms ease, opacity 300ms ease, stroke 300ms ease;
}

.node-root,
.node-one {
  opacity: 1;
}

[data-active="1"] .node-two,
[data-active="1"] .node-three,
[data-active="2"] .node-two,
[data-active="2"] .node-three,
[data-active="2"] .node-four,
[data-active="3"] .web-node {
  opacity: 1;
}

[data-active="3"] .node-five {
  fill: rgba(255, 107, 116, 0.12);
  stroke: var(--accent);
}

.traveler {
  transform: translate(80px, 300px);
  transition: filter 300ms ease;
}

.traveler-glow {
  fill: rgba(255, 107, 116, 0.14);
}

.traveler-core,
.traveler-orbit {
  fill: var(--accent);
}

.traveler path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.screen-stack {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(78%, 650px);
  aspect-ratio: 16 / 10;
  transform: translate(-50%, -50%) translateY(calc(var(--story-progress) * -14px));
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 450ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  pointer-events: none;
}

.screen.is-active {
  z-index: 2;
  opacity: 1;
  transform: none;
}

.screen img,
.mobile-evidence img {
  width: 100%;
  border: 1px solid rgba(17, 16, 18, 0.08);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(35, 31, 38, 0.14);
}

.screen figcaption {
  position: absolute;
  right: 14px;
  bottom: -48px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(35, 31, 38, 0.08);
  font-size: 0.64rem;
  backdrop-filter: blur(14px);
}

.local-note {
  position: absolute;
  z-index: 4;
  right: 5%;
  bottom: 5%;
  display: grid;
  max-width: 270px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--dark-text);
  background: rgba(28, 26, 30, 0.93);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease, transform 400ms ease;
}

[data-active="3"] .local-note {
  opacity: 1;
  transform: none;
}

.local-note span,
.mobile-local-note span {
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.local-note strong,
.mobile-local-note strong {
  margin-top: 4px;
  font-size: 0.76rem;
}

.stage-hint {
  position: absolute;
  bottom: 6%;
  left: 5%;
  color: var(--tertiary);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-evidence,
.mobile-local-note {
  display: none;
}

.quickstart,
.faq {
  padding: 128px max(24px, calc((100vw - 1180px) / 2));
}

.quickstart {
  background: var(--canvas);
}

.faq {
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(3rem, 5.8vw, 6rem);
}

.section-heading > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--secondary);
  font-size: 1.05rem;
}

.quickstart-grid {
  display: grid;
  margin-top: 54px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quickstart-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.quickstart-number {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.quickstart-card h3 {
  margin-top: 24px;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.quickstart-card p,
.quickstart-card small {
  display: block;
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.quickstart-card small {
  font-size: 0.74rem;
}

.quickstart-card code,
.quickstart-note code,
.faq code {
  overflow-wrap: anywhere;
  color: #3f5d14;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
}

.quickstart-card > code {
  display: block;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--subtle);
}

.quickstart-note {
  display: flex;
  margin-top: 22px;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.quickstart-note p {
  margin: 0;
  color: var(--secondary);
  font-size: 0.86rem;
}

.quickstart-note .button {
  flex: 0 0 auto;
}

.faq-list {
  max-width: 900px;
  margin-top: 54px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 25px 48px 25px 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 680;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 23px;
  right: 4px;
  color: var(--accent);
  content: "+";
  font-size: 1.4rem;
  font-weight: 450;
  transition: transform 180ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 760px;
  margin: -4px 0 26px;
  color: var(--secondary);
  line-height: 1.7;
}

.invitation {
  position: relative;
  display: grid;
  min-height: 82svh;
  padding: 130px 24px;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  color: var(--dark-text);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 107, 116, 0.13), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(188, 217, 121, 0.07), transparent 30%),
    var(--dark-canvas);
  text-align: center;
}

.invitation::before {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(86vw, 660px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.invitation-mark {
  z-index: 1;
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: var(--dark-surface);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  transform: rotate(-4deg);
}

.invitation-mark svg {
  width: 42px;
  fill: var(--accent);
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.kicker-dark {
  color: #a59da8;
}

.invitation h2 {
  max-width: 860px;
  font-size: clamp(3.4rem, 7vw, 7.2rem);
}

.invitation > p:not(.kicker) {
  margin: 20px 0 0;
  color: var(--dark-secondary);
  font-size: 1.02rem;
}

.invitation code {
  margin-top: 25px;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  color: var(--willow);
  background: var(--dark-surface);
  font-size: 0.82rem;
}

.actions-centered {
  justify-content: center;
}

.button-light {
  color: var(--text);
  background: var(--dark-text);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.03);
}

.invitation :focus-visible {
  outline-color: var(--willow);
}

footer {
  display: grid;
  min-height: 140px;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--border);
  background: var(--canvas);
}

footer p {
  margin: 0;
  color: var(--secondary);
  font-size: 0.6875rem;
  text-align: center;
}

footer nav {
  justify-self: end;
  gap: 20px;
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

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

  .hero-evidence {
    width: min(100%, 820px);
    margin: 10px auto 0;
  }

  .scroll-cue {
    display: none;
  }

  .story-layout {
    grid-template-columns: minmax(250px, 0.65fr) minmax(480px, 1.35fr);
    gap: 34px;
  }

  .story-stage {
    min-height: 520px;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 32px);
    min-height: 72px;
  }

  .site-header nav > a:not(.header-button) {
    display: none;
  }

  .hero {
    padding: 122px 18px 80px;
  }

  .hero-evidence {
    width: min(100%, 420px);
    aspect-ratio: 320 / 276;
    padding: 14px 10px 42px;
    border-radius: 24px;
    background-size: 24px 24px;
  }

  .hero-branch-diagram-desktop {
    display: none;
  }

  .hero-branch-diagram-mobile {
    display: block;
  }

  .mobile-edge {
    fill: none;
    stroke: rgba(255, 107, 116, 0.78);
    stroke-linecap: round;
    stroke-width: 1.4;
  }

  .mobile-thread .thread-label {
    font-size: 7px;
  }

  .mobile-diagram-note {
    fill: var(--secondary);
    font-size: 9px;
    font-weight: 650;
  }

  .mobile-diagram-note-accent {
    fill: var(--accent);
  }

  .hero-evidence figcaption {
    right: 14px;
    bottom: 13px;
    left: 14px;
    font-size: 0.66rem;
    text-align: center;
  }

  .story {
    padding: 64px 18px 82px;
  }

  .story-layout {
    display: block;
  }

  .story-stage {
    display: none;
  }

  .story-step {
    display: block;
    min-height: auto;
    padding: 62px 0;
    border-bottom: 1px solid var(--border);
    opacity: 1;
  }

  .story-step:first-child {
    padding-top: 22px;
  }

  .story-step:last-child {
    padding-bottom: 10px;
    border-bottom: 0;
  }

  .story-copy {
    max-width: 620px;
  }

  .mobile-evidence {
    display: block;
    width: min(100%, 420px);
    margin: 34px 0 0;
  }

  .mobile-evidence img {
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(35, 31, 38, 0.12);
  }

  .mobile-evidence figcaption {
    margin-top: 11px;
    color: var(--secondary);
    font-size: 0.66rem;
  }

  .mobile-local-note {
    display: grid;
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 15px;
    color: var(--dark-text);
    background: var(--dark-surface);
  }

  .quickstart,
  .faq {
    padding: 92px 18px;
  }

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

  .quickstart-note {
    align-items: stretch;
    flex-direction: column;
  }

  .quickstart-note .button {
    align-self: flex-start;
  }

  footer {
    padding: 34px 18px;
    grid-template-columns: 1fr 1fr;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .site-header .header-button {
    padding: 0 13px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.6rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .story-copy h2,
  .story-copy h3,
  .section-heading h2 {
    font-size: clamp(2.6rem, 13.5vw, 4rem);
  }

  .invitation {
    min-height: auto;
    padding: 96px 18px;
  }

  .invitation h2 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .invitation code {
    max-width: 100%;
    overflow-x: auto;
  }

  .quickstart-note .button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  footer nav {
    justify-self: center;
  }
}

@media (max-width: 340px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .brand {
    gap: 6px;
    font-size: 0.75rem;
  }

  .site-header .header-button {
    padding: 0 10px;
    font-size: 0.6875rem;
  }

  .hero,
  .story {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .story {
    padding-top: 70px;
    padding-bottom: 90px;
  }

  .story-layout {
    display: block;
    max-width: 900px;
    margin: 0 auto;
  }

  .story-stage {
    display: none;
  }

  .story-step {
    display: block;
    min-height: auto;
    padding: 54px 0;
    border-bottom: 1px solid var(--border);
    opacity: 1;
  }

  .mobile-evidence {
    display: block;
    width: min(100%, 560px);
    margin: 30px 0 0;
  }

  .mobile-local-note {
    display: grid;
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 15px;
    color: var(--dark-text);
    background: var(--dark-surface);
  }
}
