:root {
  --paper: #fff;
  --ink: #11141b;
  --muted: #424a5c;
  --line: #d9dfe9;
  --blue: #2457ff;
  --lime: #d0ff46;
  --orange: #e8431e;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
em {
  font-style: normal;
  color: var(--blue);
}
.wrap {
  width: min(1360px, calc(100% - 96px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 104px;
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1;
}
.wordmark svg {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wordmark-period {
  color: var(--blue);
}
.site-header nav {
  display: flex;
  gap: 30px;
  font-size: 17px;
  font-weight: 600;
}
.site-header nav a:hover {
  color: var(--blue);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 25px;
  min-height: 58px;
  background: var(--blue);
  color: white;
  border: 2px solid var(--blue);
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #143bc3;
  border-color: #143bc3;
  transform: translateY(-2px);
}
.button span {
  font-size: 24px;
}
.button-small {
  padding: 13px 18px;
  min-height: 50px;
  font-size: 16px;
  gap: 20px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.text-link:hover {
  color: var(--blue);
}
.signal-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}
.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 22px;
  align-items: center;
  padding-block: 78px 65px;
}
.hero-copy {
  z-index: 1;
}
h1 {
  font-size: clamp(62px, 6.5vw, 98px);
  line-height: 0.99;
}
h1 em {
  display: inline-block;
}
.hero-description {
  max-width: 510px;
  margin-top: 30px;
  font-size: 24px;
  line-height: 1.5;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 32px;
}
.hero-note {
  font-size: 16px;
  font-weight: 500;
  margin-top: 28px;
  color: var(--muted);
}
.hero-note span {
  margin: 0 8px;
}
.hero-art {
  position: relative;
  min-width: 0;
  height: 570px;
  isolation: isolate;
  background: #eef3ff;
  border-radius: 50% 50% 8px 8px;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 60px 0 50px;
  z-index: -1;
  background-image: radial-gradient(#7d9bea 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse, black 20%, transparent 70%);
}
#architecture-art {
  width: 100%;
  height: 100%;
  display: block;
}
.art-label {
  position: absolute;
  font-size: 18px;
  font-weight: 700;
  padding: 3px 7px;
  background: #eef3ffee;
  border-radius: 4px;
}
.label-main {
  top: 11%;
  left: 49%;
}
.label-adapters {
  top: 42%;
  right: 0;
}
.label-application {
  top: 46%;
  left: 0;
}
.label-domain {
  bottom: 14%;
  left: 61%;
}
.art-callout {
  position: absolute;
  bottom: 13%;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ff7148;
  color: #181510;
  padding: 13px 16px;
  font-size: 18px;
  line-height: 1.2;
  border: 2px solid #161a24;
  box-shadow: 4px 4px 0 #161a24;
}
.art-callout strong {
  font-weight: 800;
}
.art-callout > span:last-child {
  font-size: 26px;
}
.risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #151b24;
}
.art-bottomline {
  position: absolute;
  bottom: 10px;
  right: 16px;
}
.art-bottomline button {
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
}
.foundation-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 25px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: 17px;
  font-weight: 650;
}
.foundation-strip > span {
  display: flex;
  align-items: center;
  gap: 12px;
}
.strip-symbol {
  font-size: 27px;
  font-weight: 600;
  color: var(--blue);
}
.section-space {
  padding-block: 100px;
}
h2 {
  font-size: clamp(44px, 4.6vw, 68px);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
}
.intro-copy {
  font-size: 21px;
  color: var(--muted);
}
.intro-copy p + p {
  margin-top: 22px;
}
.walkthrough {
  background: var(--blue);
  color: white;
  padding: 75px 0 40px;
}
.walkthrough-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.walkthrough-heading h2 {
  font-size: clamp(40px, 4vw, 60px);
  max-width: 860px;
}
.walkthrough-heading em {
  color: var(--lime);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 45px;
}
.section-heading > p {
  max-width: 450px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.signal-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #eef3ff;
}
.signal-card:nth-child(2) {
  background: #ffdfca;
}
.signal-card:nth-child(3) {
  background: #e8ff9f;
}
.signal-visual {
  position: relative;
  height: 195px;
  margin-bottom: 27px;
  border-bottom: 1px solid #15213d44;
}
.card-index {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #273145;
}
.signal-card h3 {
  font-size: 30px;
  line-height: 1.08;
  margin-bottom: 20px;
}
.signal-card > p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #29303c;
}
.signal-card > a {
  margin-top: auto;
  font-size: 16px;
  line-height: 1.45;
}
.mini-annotation {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  text-align: center;
  color: #303a4e;
  font-size: 14px;
  line-height: 1.3;
}
.dependency-visual svg {
  width: 90%;
  height: 118px;
  margin: auto;
}
.dependency-visual svg path {
  stroke: var(--blue);
  stroke-width: 2;
  fill: none;
}
.dependency-visual svg .bad-path,
.dependency-visual svg .arrow-tip {
  stroke: #d33c18;
  stroke-width: 2;
}
.mini-box {
  position: absolute;
  top: 29px;
  width: 95px;
  height: 47px;
  background: var(--blue);
  color: white;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
}
.box-core {
  left: 0;
}
.box-outer {
  right: 0;
  background: #f56b3d;
  color: #14191f;
}
.metric-number {
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 64px;
  letter-spacing: -4px;
  line-height: 1;
  font-weight: 750;
  color: #963412;
}
.metric-number > span {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 600;
  margin-top: 10px;
}
.metric-bars {
  position: absolute;
  top: 10px;
  right: 0;
  width: 48%;
  height: 98px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.metric-bars i {
  width: 12%;
  height: var(--bar);
  background: #ff925b;
}
.metric-bars i:nth-last-child(-n + 3) {
  background: #ee592e;
}
.metric-bars i:last-child {
  background: #a83714;
}
.mutation-code {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  text-align: center;
  font: 16px var(--mono);
  white-space: nowrap;
}
.mutation-code span {
  color: #335211;
}
.mutation-code b {
  display: inline-block;
  font-weight: 700;
  background: #ff8753;
  padding: 4px;
  color: #1d1d13;
}
.mutation-changed {
  animation: mutated 8s step-end infinite;
}
.mutation-original {
  animation: original 8s step-end infinite;
}
@keyframes mutated {
  0%,
  29% {
    display: none;
  }
  30%,
  100% {
    display: inline-block;
  }
}
@keyframes original {
  0%,
  29% {
    display: inline-block;
  }
  30%,
  100% {
    display: none;
  }
}
.mutation-result {
  position: absolute;
  left: 0;
  right: 0;
  top: 87px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.3;
}
.mutation-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #da4220;
}
.start-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.start-section h2 {
  font-size: clamp(52px, 5.5vw, 80px);
}
.start-section > div > p:not(.copy-status) {
  font-size: 22px;
  line-height: 1.5;
  margin: 28px 0;
  color: var(--muted);
}
.start-docs {
  margin-left: 24px;
}
.terminal {
  position: relative;
  background: #111a2b;
  color: white;
  border: 2px solid #111a2b;
  border-radius: 5px;
  box-shadow: 7px 7px 0 #b9caff;
  font-family: var(--mono);
}
.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #6c7b97;
  font-size: 15px;
}
.terminal-bar > span:first-child {
  display: flex;
  gap: 5px;
}
.terminal-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9eb8f2;
}
.terminal-body {
  padding: 30px 25px;
}
.terminal-comment {
  font-size: 15px;
  color: #bdcfee;
}
.terminal-command {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.terminal-command > span {
  color: var(--lime);
}
.terminal-command code {
  font-size: 32px;
  font-weight: 700;
}
.terminal-command button {
  margin-left: auto;
  background: #273c60;
  border: 1px solid #b9cfff;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 14px;
  color: white;
}
.terminal-command button:hover {
  background: var(--blue);
}
.terminal-output {
  font-size: 16px;
  line-height: 1.9;
  color: #d4e3ff;
}
.terminal-output > span {
  color: var(--lime);
}
.terminal-cursor {
  animation: cursor 1.8s steps(1) infinite;
}
@keyframes cursor {
  50% {
    opacity: 0;
  }
}
.terminal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #6c7b97;
  font-size: 14px;
}
.terminal-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.copy-status {
  font:
    15px/1.5 "DM Sans",
    sans-serif;
  padding: 0 20px;
  color: var(--lime);
}
.copy-status:not(:empty) {
  padding-block: 14px;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding-block: 40px;
  border-top: 2px solid var(--ink);
}
.site-footer p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 15px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 16px;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--blue);
}
.footer-note {
  display: none;
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}
@media (max-width: 1150px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 12px;
  }
  h1 {
    font-size: 6.7vw;
  }
  .hero-art {
    height: 500px;
  }
  .hero-description {
    font-size: 22px;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 20px;
  }
  .hero-note {
    font-size: 15px;
  }
  .intro-grid {
    gap: 50px;
  }
  .intro-copy {
    font-size: 20px;
  }
  .signal-grid {
    gap: 18px;
  }
  .signal-card {
    padding: 20px;
  }
  .signal-card h3 {
    font-size: 27px;
  }
  .signal-card > p {
    font-size: 17px;
  }
  .mini-box {
    width: 83px;
    font-size: 15px;
  }
  .metric-number {
    font-size: 56px;
  }
  .mutation-code {
    font-size: 14px;
  }
  .mutation-result {
    font-size: 14px;
  }
  .start-section {
    gap: 45px;
  }
  .terminal-body {
    padding: 25px 20px;
  }
  .terminal-comment {
    font-size: 14px;
  }
  .terminal-output {
    font-size: 14px;
  }
}
@media (max-width: 860px) {
  .site-header nav .nav-github {
    display: none;
  }
  .site-header nav {
    font-size: 16px;
    gap: 20px;
  }
  .wordmark {
    font-size: 29px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-block: 55px 40px;
  }
  .hero-copy {
    text-align: center;
  }
  h1 {
    font-size: clamp(56px, 10vw, 86px);
  }
  .hero-description {
    max-width: 560px;
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-art {
    width: min(650px, 100%);
    height: 540px;
    margin: auto;
  }
  .hero-note {
    font-size: 16px;
  }
  .foundation-strip {
    justify-content: center;
    font-size: 16px;
    gap: 15px 30px;
  }
  .section-space {
    padding-block: 75px;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .intro-copy {
    max-width: 650px;
  }
  h2 {
    font-size: 48px;
  }
  .walkthrough {
    padding-top: 55px;
  }
  .walkthrough-heading {
    display: block;
  }
  .walkthrough-heading h2 {
    font-size: 46px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 25px;
    max-width: 550px;
    font-size: 21px;
  }
  .signal-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .signal-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0 30px;
    padding: 28px;
  }
  .signal-visual {
    grid-column: 1;
    grid-row: 1 / 5;
    align-self: center;
    border-bottom: 0;
    margin: 0;
  }
  .card-index,
  .signal-card h3,
  .signal-card > p,
  .signal-card > a {
    grid-column: 2;
  }
  .signal-card h3 {
    font-size: 30px;
  }
  .signal-card > p {
    font-size: 18px;
  }
  .signal-card > a {
    font-size: 16px;
  }
  .start-section {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .start-section h2 {
    font-size: 65px;
  }
  .terminal {
    max-width: 650px;
    width: 100%;
  }
  .terminal-output {
    font-size: 17px;
  }
  .terminal-comment {
    font-size: 16px;
  }
  .terminal-footer {
    font-size: 15px;
  }
  .site-footer {
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    min-height: 85px;
    gap: 15px;
  }
  .site-header nav {
    display: none;
  }
  .wordmark {
    font-size: 27px;
  }
  .wordmark svg {
    width: 25px;
    margin-right: 7px;
  }
  .button-small {
    font-size: 15px;
    padding: 12px;
    gap: 12px;
  }
  .button-small span {
    font-size: 20px;
  }
  .hero {
    padding-top: 42px;
    gap: 30px;
  }
  h1 {
    font-size: clamp(43px, 11vw, 64px);
  }
  .hero-description {
    font-size: 21px;
    margin-top: 25px;
  }
  .hero-actions {
    gap: 22px;
  }
  .hero-actions .button {
    font-size: 18px;
  }
  .hero-actions .text-link {
    font-size: 17px;
  }
  .hero-note {
    font-size: 15px;
    line-height: 1.7;
  }
  .hero-note span {
    margin: 0 4px;
  }
  .hero-art {
    height: 390px;
    border-radius: 30px 30px 6px 6px;
  }
  .art-label {
    font-size: 16px;
    padding: 2px 4px;
  }
  .label-main {
    top: 10%;
  }
  .label-adapters {
    top: 36%;
  }
  .label-application {
    top: 49%;
  }
  .label-domain {
    bottom: 15%;
  }
  .art-callout {
    font-size: 16px;
    padding: 9px 11px;
    gap: 7px;
    left: 1%;
    bottom: 15%;
  }
  .art-callout > span:last-child {
    font-size: 20px;
  }
  .art-bottomline {
    bottom: 3px;
    right: 3px;
  }
  .art-bottomline button {
    font-size: 14px;
  }
  .foundation-strip {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    font-size: 17px;
    padding-block: 22px;
    gap: 15px;
  }
  .foundation-strip > span {
    gap: 15px;
  }
  .section-space {
    padding-block: 60px;
  }
  h2 {
    font-size: 41px;
  }
  .intro-copy {
    font-size: 20px;
  }
  .walkthrough {
    padding-block: 45px 30px;
  }
  .walkthrough-heading h2 {
    font-size: 41px;
  }
  .walkthrough-heading h2 em {
    display: block;
  }
  .project-suffix {
    display: none;
  }
  .section-heading > p {
    font-size: 20px;
  }
  .signal-card {
    display: flex;
    padding: 24px;
  }
  .signal-visual {
    width: 100%;
    height: 185px;
    align-self: stretch;
    margin-bottom: 20px;
    border-bottom: 1px solid #15213d44;
  }
  .signal-card h3 {
    font-size: 32px;
  }
  .signal-card > p {
    font-size: 19px;
  }
  .signal-card > a {
    font-size: 17px;
  }
  .card-index {
    font-size: 16px;
  }
  .mini-box {
    font-size: 16px;
    width: 90px;
  }
  .mini-annotation {
    font-size: 14px;
  }
  .mutation-code {
    font-size: 15px;
  }
  .mutation-result {
    font-size: 15px;
  }
  .metric-number {
    font-size: 60px;
  }
  .start-section h2 {
    font-size: 52px;
  }
  .start-section > div > p:not(.copy-status) {
    font-size: 21px;
  }
  .start-docs {
    margin: 23px 0 0;
    display: flex;
    width: fit-content;
    font-size: 18px;
  }
  .terminal-bar {
    font-size: 14px;
    padding: 18px 14px;
    gap: 10px;
  }
  .terminal-body {
    padding: 25px 18px;
  }
  .terminal-comment {
    font-size: 14px;
  }
  .terminal-command {
    gap: 8px;
  }
  .terminal-command code {
    font-size: 26px;
  }
  .terminal-command button {
    font-size: 14px;
    padding: 8px;
  }
  .terminal-output {
    font-size: 15px;
  }
  .terminal-footer {
    font-size: 14px;
    padding: 18px;
  }
  .site-footer {
    padding-block: 32px;
    gap: 30px;
  }
  .site-footer p {
    font-size: 16px;
  }
  .footer-links {
    display: grid;
    gap: 16px;
    font-size: 17px;
  }
}
@media (max-width: 360px) {
  .site-header {
    gap: 10px;
  }
  .wordmark {
    font-size: 25px;
  }
  .wordmark svg {
    width: 22px;
    margin-right: 6px;
  }
  .button-small {
    font-size: 14px;
    padding: 10px;
  }
  .button-small span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.story-intro {
  max-width: 750px;
  font-size: 24px;
  line-height: 1.5;
  margin: -10px 0 38px;
}
.cinema {
  background: #111a2d;
  border: 2px solid #101d40;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 8px 8px 0 #142b8d;
  --story-move: 0;
}
.cinema-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px 25px;
  padding: 18px 24px;
  border-bottom: 1px solid #495d80;
  background: #1b2943;
  font-size: 15px;
}
.cinema-project {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}
.cinema-project b {
  color: var(--lime);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -5px;
  margin-right: 8px;
}
.cinema-project > span {
  color: #c0d0ef;
  font-weight: 400;
}
#story-context {
  color: var(--lime);
  border: 1px solid #829f50;
  padding: 4px 9px;
  border-radius: 3px;
}
.cinema-example {
  margin-left: auto;
  color: #c4d5f7;
  font-size: 14px;
}
.cinema-body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}
.story-map {
  align-self: center;
  min-width: 0;
  background-image: radial-gradient(#7896d144 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}
.story-world {
  position: relative;
  aspect-ratio: 720 / 400;
  opacity: var(--world-opacity, 1);
}
.story-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.story-wires path {
  fill: none;
  stroke: #89adff;
  stroke-width: 2;
  marker-end: url(#story-arrow);
}
.story-wires marker path {
  stroke: none;
  fill: context-stroke;
}
.story-base-wires path {
  stroke-dasharray: 1;
  stroke-dashoffset: var(--wire-draw, 1);
  opacity: var(--wire-opacity, 0);
}
.story-wires .story-wrong-wire {
  stroke: #ff8c60;
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--wrong-draw, 1);
  opacity: var(--risk-opacity, 0);
}
.story-wires .story-right-wire {
  stroke: var(--lime);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--right-draw, 1);
  opacity: var(--right-opacity, 0);
}
.story-traveller {
  fill: var(--lime);
  opacity: var(--traveller-opacity, 0);
}
.story-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 2px solid #799ce7;
  border-radius: 7px;
  padding: 14px 15px;
  background: #253c69;
  box-shadow: 0 8px 0 #090f2255;
  opacity: var(--node-opacity, 0);
  transform: translateY(var(--node-y, 24px));
  transition:
    background 0.7s,
    border-color 0.7s;
}
.story-node strong {
  font-size: clamp(17px, 1.7vw, 24px);
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.story-node > span:last-child {
  color: #d5e3ff;
  font-size: 14px;
  margin-top: 7px;
}
.story-node-symbol {
  display: none;
  color: #bdd3ff;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 9px;
}
.story-api {
  top: 3%;
  left: 36%;
  width: 28%;
  height: 16%;
}
.story-api .story-node-symbol {
  display: none;
}
.story-orders {
  top: 34%;
  left: 3%;
  width: 32%;
  height: 25%;
}
.story-infra {
  top: 34%;
  left: 61%;
  width: 32%;
  height: 25%;
}
.story-domain {
  top: 72%;
  left: 27%;
  width: 46%;
  height: 24%;
}
.story-domain::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid #ff8c60;
  border-radius: 13px;
  opacity: var(--risk-glow, 0);
  box-shadow: 0 0 40px #ff64242e;
  pointer-events: none;
}
.story-contract {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  left: var(--contract-x, 64%);
  top: var(--contract-y, 52%);
  width: 26%;
  height: 6%;
  border-radius: 4px;
  background: #ffe6c9;
  color: #452309;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 4px 12px #090f2280;
  opacity: var(--contract-opacity, 0);
  z-index: 2;
  white-space: nowrap;
}
.story-contract > span {
  font-size: 18px;
}
.story-violation,
.story-resolution {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 63%;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  opacity: var(--risk-label, 0);
  color: #ffab84;
}
.story-resolution {
  opacity: var(--right-opacity, 0);
  color: var(--lime);
}
.story-map-caption {
  min-height: 57px;
  padding: 14px 20px;
  text-align: center;
  border-top: 1px solid #425773;
  font-size: 17px;
  color: #e1eafe;
  background: #162238;
}
.source-scraps {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--source-opacity, 1);
  transform: translateY(var(--source-y, 0px));
}
.source-scraps code {
  position: absolute;
  padding: 10px 15px;
  font: 15px var(--mono);
  border: 1px solid #758db9;
  background: #182a47;
  box-shadow: 0 6px 30px #080e26;
}
.source-scraps code:nth-child(1) {
  top: 14%;
  left: 8%;
  transform: rotate(-5deg);
}
.source-scraps code:nth-child(2) {
  top: 52%;
  left: 19%;
  transform: rotate(4deg);
}
.source-scraps code:nth-child(3) {
  top: 36%;
  right: 6%;
  transform: rotate(-3deg);
}
.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--scan-y, 0%);
  height: 70px;
  background: linear-gradient(transparent, #9ec0ff26);
  border-bottom: 2px solid #a6c3ff;
  opacity: var(--scan-opacity, 0);
  z-index: 3;
  pointer-events: none;
}
.story-narrative {
  min-width: 0;
  padding: 26px;
  border-left: 1px solid #495d80;
  background: #1b2943;
}
.story-chapter-label {
  color: var(--lime);
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 15px;
}
.story-narrative h3 {
  font-size: clamp(30px, 2.6vw, 37px);
  line-height: 1.08;
  letter-spacing: -1.1px;
  min-height: 2.16em;
  margin-bottom: 16px;
}
.story-narrative > p {
  color: #e2ebff;
  font-size: 18px;
  line-height: 1.5;
  min-height: 4.5em;
}
.story-panels {
  border-top: 1px solid #597096;
  margin-top: 18px;
  padding-top: 18px;
  min-height: 205px;
}
.story-panel[hidden] {
  display: none;
}
.story-panel {
  animation: story-panel-in 0.45s ease-out;
}
@keyframes story-panel-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.motion-paused .story-panel {
  animation: none;
}
.story-source {
  display: grid;
  gap: 5px;
  color: #cde0ff;
  font: 15px/1.7 var(--mono);
  overflow-wrap: anywhere;
}
.story-source span {
  opacity: var(--source-line-opacity, 1);
}
.story-note {
  color: #bcd0f4;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 18px;
}
.story-finding {
  border-left: 3px solid #ff9167;
  padding-left: 15px;
}
.story-finding > span {
  color: #ffb591;
  font-size: 15px;
  display: block;
  margin-bottom: 10px;
}
.story-finding strong {
  font-size: 19px;
  line-height: 1.45;
  display: block;
}
.story-mutation {
  margin-top: 23px;
  display: grid;
  gap: 12px;
}
.story-mutation code {
  color: white;
  font: 19px var(--mono);
}
.story-mutation b {
  background: #ff8c60;
  color: #272316;
  padding: 3px 7px;
}
.story-mutation > span {
  color: #ffc7ac;
  font-size: 15px;
  line-height: 1.5;
}
.story-message {
  margin-bottom: 16px;
}
.story-message > span {
  display: block;
  font-size: 15px;
  color: #c2d5f7;
  margin-bottom: 8px;
  font-weight: 700;
}
.story-message p {
  font-size: 19px;
  line-height: 1.5;
}
.agent-response {
  opacity: var(--agent-opacity, 0);
}
.agent-response > span {
  color: var(--lime);
}
.agent-response p {
  min-height: 3em;
}
.story-proposal-tag {
  font-size: 14px;
  color: var(--lime);
  padding: 6px 9px;
  border: 1px dashed #aec76f;
  border-radius: 3px;
  display: inline-block;
}
.story-check {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 17px;
  color: #bbceef;
}
.story-check > span {
  flex-shrink: 0;
  font-size: 19px;
}
.story-check.done {
  color: #eaffbd;
}
.story-check.done > span {
  color: var(--lime);
}
.story-outcome {
  color: var(--lime);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin-top: 25px;
  opacity: var(--outcome-opacity, 0);
}
.cinema[data-chapter="1"] .story-domain {
  border-color: #ff8c60;
  background: #773217;
}
.cinema[data-chapter="2"] .story-domain,
.cinema[data-chapter="2"] .story-infra {
  border-style: dashed;
}
.cinema[data-chapter="2"] .story-contract,
.cinema[data-chapter="3"] .story-contract {
  background: var(--lime);
  color: #1c2b08;
}
.cinema[data-chapter="3"] .story-domain {
  border-color: var(--lime);
  background: #344820;
}
.story-metrics {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  background: #0d1527;
  border-top: 1px solid #526889;
}
.story-metrics-label,
.story-metric {
  padding: 23px 18px;
  min-width: 0;
}
.story-metrics-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.story-metrics-label strong {
  font-size: 16px;
  line-height: 1.3;
}
.story-metrics-label > span {
  font-size: 14px;
  line-height: 1.4;
  color: #bbceef;
}
.story-metric {
  border-left: 1px solid #405472;
}
.story-metric > span {
  font-size: 14px;
  color: #c5d7f8;
  display: block;
  min-height: 2.8em;
  line-height: 1.4;
}
.story-metric i {
  font-style: normal;
  color: #abc980;
  display: block;
}
.story-metric > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.story-metric strong {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -1px;
  color: #ffaf88;
  font-variant-numeric: tabular-nums;
}
.story-metric s {
  color: #b7c8e5;
  font-size: 15px;
}
.cinema[data-measured="true"] .story-metric strong {
  color: var(--lime);
}
.story-transport {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #182740;
  padding: 15px 20px;
  border-top: 1px solid #526889;
}
.story-transport button {
  border: 1px solid #6c87b4;
  background: transparent;
  color: white;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 17px;
  min-height: 42px;
}
#story-play {
  min-width: 105px;
}
#story-replay {
  font-size: 26px;
  line-height: 1;
}
.story-transport button:hover {
  background: #355489;
}
#story-seek {
  width: 100%;
  min-width: 30px;
  accent-color: var(--lime);
  cursor: pointer;
  height: 30px;
}
.story-time {
  font: 14px var(--mono);
  white-space: nowrap;
  color: #d5e3ff;
  font-variant-numeric: tabular-nums;
}
.story-chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #526889;
}
.story-chapters button {
  position: relative;
  background: #1b2943;
  color: #e5edff;
  border: 0;
  border-right: 1px solid #526889;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  padding: 22px 18px;
  text-align: left;
  overflow: hidden;
}
.story-chapters button:last-child {
  border-right: 0;
}
.story-chapters button > span {
  font-size: 14px;
  color: #b4c8ef;
  display: block;
  margin-bottom: 6px;
}
.story-chapters button[aria-pressed="true"] {
  background: var(--lime);
  color: #17200a;
}
.story-chapters button[aria-pressed="true"] > span {
  color: #40520e;
}
.story-chapters button:hover {
  background: #dcefb0;
  color: #17200a;
}
.story-chapters button i {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #ff7548;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--chapter-progress, 0));
}
.story-caption {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 17px;
  line-height: 1.5;
  margin-top: 26px;
}
.story-caption > span {
  color: #e4ecff;
  font-size: 15px;
}
.signal-tools {
  border-top: 1px solid #15213d44;
  padding-top: 19px;
  margin: 0 0 24px;
}
.signal-tools > span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.signal-tools > strong {
  font-size: 22px;
  display: block;
  letter-spacing: -0.5px;
}
.signal-tools > p {
  margin-top: 9px;
  font-size: 16px;
  line-height: 1.5;
  color: #354051;
}
.bring-agent {
  background: var(--lime);
  border-block: 2px solid var(--ink);
}
.agent-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.agent-heading h2 {
  font-size: clamp(60px, 7vw, 96px);
  line-height: 0.98;
}
.agent-heading h2 em {
  color: var(--ink);
}
.agent-heading p {
  font-size: 23px;
  line-height: 1.5;
}
.agent-heading p:first-child {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 23px;
}
.agent-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 60px;
}
.agent-options article {
  background: #f5ffdc;
  border: 2px solid #17200a;
  border-radius: 5px;
  padding: 28px;
  box-shadow: 5px 5px 0 #17200a;
}
.agent-glyph {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  color: #17200a;
  margin-bottom: 20px;
  line-height: 1;
}
.claude-glyph {
  color: #a8472d;
}
.codex-glyph {
  font: 33px var(--mono);
}
.agent-options h3 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin-bottom: 22px;
}
.agent-availability {
  display: inline-block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  padding: 6px 10px;
  background: #e0e9c7;
  color: #3d4b27;
  border: 1px solid #8fa55d;
  border-radius: 3px;
}
.agent-availability.available {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.agent-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 45px;
}
.agent-bottom > strong {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.agent-bottom > a {
  font-size: 17px;
}
@media (max-width: 1150px) {
  .cinema-body {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .story-node {
    padding: 10px;
  }
  .story-node strong {
    font-size: 18px;
  }
  .story-node > span:last-child {
    font-size: 14px;
  }
  .story-api > span:last-child {
    display: none;
  }
  .story-api {
    justify-content: center;
  }
  .story-contract {
    width: 30%;
    font-size: 14px;
  }
  .story-contract > span {
    display: none;
  }
  .story-narrative {
    padding: 25px 22px;
  }
  .story-narrative h3 {
    font-size: 33px;
  }
  .story-narrative > p {
    font-size: 18px;
  }
  .story-metric {
    padding-inline: 12px;
  }
  .story-metric strong {
    font-size: 30px;
  }
  .story-chapters button {
    padding: 18px 14px;
    font-size: 16px;
  }
  .agent-options article {
    padding: 23px;
  }
  .agent-options h3 {
    font-size: 27px;
  }
}
@media (max-width: 860px) {
  .story-intro {
    font-size: 22px;
  }
  .cinema-body {
    grid-template-columns: 1fr;
  }
  .story-map {
    width: 100%;
  }
  .story-world {
    max-width: 720px;
    margin: auto;
  }
  .story-node {
    padding: 14px;
  }
  .story-node strong {
    font-size: 23px;
  }
  .story-api > span:last-child {
    display: block;
  }
  .story-contract {
    width: 26%;
    font-size: 15px;
  }
  .story-narrative {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    border-left: 0;
    border-top: 1px solid #495d80;
  }
  .story-chapter-label,
  .story-narrative h3,
  .story-narrative > p {
    grid-column: 1;
  }
  .story-narrative h3 {
    font-size: 33px;
  }
  .story-narrative > p {
    min-height: 0;
  }
  .story-panels {
    grid-column: 2;
    grid-row: 1 / 4;
    margin: 0;
    padding: 0 0 0 25px;
    border-top: 0;
    border-left: 1px solid #597096;
    min-height: 270px;
  }
  .story-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .story-metrics-label {
    grid-column: 1 / -1;
    border-bottom: 1px solid #405472;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
  }
  .story-metric {
    padding: 18px;
  }
  .story-metric:first-of-type {
    border-left: 0;
  }
  .story-chapters button {
    font-size: 16px;
  }
  .story-caption {
    display: block;
  }
  .story-caption > span {
    display: block;
    margin-top: 10px;
  }
  .signal-tools {
    grid-column: 2;
  }
  .agent-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .agent-heading h2 {
    font-size: 72px;
  }
  .agent-heading h2 br {
    display: none;
  }
  .agent-heading h2 em::before {
    content: " ";
  }
  .agent-options {
    gap: 18px;
    margin-top: 40px;
  }
  .agent-options article {
    padding: 18px;
  }
  .agent-options h3 {
    font-size: 25px;
    min-height: 2.4em;
  }
  .agent-availability {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .story-intro {
    font-size: 21px;
    margin-top: 0;
  }
  .cinema {
    box-shadow: 4px 4px 0 #142b8d;
  }
  .cinema-toolbar {
    padding: 15px;
    gap: 10px 15px;
  }
  .cinema-project {
    font-size: 18px;
  }
  .cinema-project > span {
    display: none;
  }
  #story-context {
    font-size: 14px;
  }
  .cinema-example {
    margin-left: 0;
    width: 100%;
  }
  .story-world {
    aspect-ratio: 720 / 800;
  }
  .story-node {
    padding: 10px 8px;
  }
  .story-node strong {
    font-size: 16px;
    letter-spacing: -0.4px;
  }
  .story-node > span:last-child {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .story-node-symbol {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .story-api {
    left: 27%;
    width: 46%;
  }
  .story-orders {
    left: 2%;
    width: 42%;
  }
  .story-infra {
    left: 56%;
    width: 42%;
  }
  .story-domain {
    left: 20%;
    width: 60%;
  }
  .story-domain > span:last-child {
    margin-top: 5px;
  }
  .story-domain .story-node-symbol {
    display: none;
  }
  .story-contract {
    width: 40%;
    font-size: 14px;
    height: 7%;
  }
  .story-violation,
  .story-resolution {
    font-size: 15px;
    top: 64%;
  }
  .story-map-caption {
    padding: 14px 10px;
    font-size: 16px;
    min-height: 68px;
  }
  .source-scraps code {
    font-size: 14px;
    padding: 8px;
  }
  .story-narrative {
    display: block;
    padding: 24px 20px;
  }
  .story-chapter-label {
    font-size: 16px;
    margin-bottom: 17px;
  }
  .story-narrative h3 {
    font-size: 35px;
    min-height: 0;
  }
  .story-narrative > p {
    font-size: 19px;
    min-height: 6.2em;
  }
  .story-panels {
    margin-top: 22px;
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid #597096;
    min-height: 293px;
  }
  .story-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .story-metrics-label {
    flex-direction: column;
    gap: 6px;
  }
  .story-metric {
    border-bottom: 1px solid #405472;
    padding: 16px;
  }
  .story-metric strong {
    font-size: 34px;
  }
  .story-metric > span {
    min-height: 2.8em;
  }
  .story-transport {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }
  #story-play {
    min-width: 100px;
  }
  #story-seek {
    order: 4;
    flex: 1 1 100%;
  }
  .story-time {
    margin-left: auto;
  }
  .story-chapters {
    grid-template-columns: 1fr 1fr;
  }
  .story-chapters button {
    border-bottom: 1px solid #526889;
    padding: 18px 14px;
    font-size: 17px;
  }
  .story-chapters button:nth-child(2) {
    border-right: 0;
  }
  .story-caption {
    font-size: 17px;
  }
  .story-caption > span {
    font-size: 15px;
  }
  .signal-tools > strong {
    font-size: 24px;
  }
  .signal-tools > p {
    font-size: 17px;
  }
  .agent-heading h2 {
    font-size: 60px;
  }
  .agent-heading h2 br {
    display: block;
  }
  .agent-heading h2 em::before {
    content: none;
  }
  .agent-heading p {
    font-size: 21px;
  }
  .agent-heading p:first-child {
    font-size: 27px;
  }
  .agent-options {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .agent-options article {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 12px 18px;
    padding: 23px;
  }
  .agent-glyph {
    grid-row: 1 / 3;
    margin: 0;
    width: 45px;
  }
  .agent-options h3 {
    font-size: 27px;
    min-height: 0;
    margin: 0;
  }
  .agent-availability {
    font-size: 14px;
    grid-column: 2;
    justify-self: start;
  }
  .agent-bottom > strong {
    font-size: 23px;
  }
}
@media (max-width: 360px) {
  .story-node strong {
    font-size: 14px;
  }
  .story-contract {
    font-size: 14px;
    letter-spacing: -0.5px;
  }
  .story-time {
    font-size: 14px;
  }
  .story-transport {
    gap: 8px;
    padding: 12px;
  }
  .agent-options article {
    padding: 18px;
    gap: 12px;
  }
  .agent-options h3 {
    font-size: 24px;
  }
}
