:root {
  --paper: #fff;
  --line: #d8e0e2;
  --muted: #64747a;
  --green: #205d54;
  color: #19343a;
  background: #edf1f3;
  font-family:
    "Avenir Next",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
}
body {
  background: #edf1f3;
}
body > aside {
  width: 250px;
  background: #102b31;
  padding: 25px 19px;
  overflow-y: auto;
}
.brand {
  font-size: 27px;
}
.brand small {
  font-size: 11px;
  letter-spacing: 1.2px;
}
.brandmark {
  color: #bda578;
}
body > aside .nav-label {
  margin: 24px 12px 8px;
  font-size: 11px;
}
body > aside nav a {
  font-size: 14px;
  padding: 10px 12px;
  margin: 2px 0;
  color: #c9d6d6;
}
body > aside .nav-group {
  font-size: 11px;
  padding: 15px 12px 5px;
  color: #a2b9b8;
  letter-spacing: 1.2px;
}
.aside-bottom {
  margin-top: 28px;
  font-size: 12px;
}
.aside-bottom p span {
  font-size: 12px;
}
.aside-bottom p {
  margin: 16px 0;
}
main {
  margin-left: 250px;
  padding: 24px 30px;
  max-width: 2200px;
}
main > header {
  border-bottom: 1px solid #d3dfe2;
  padding: 0 0 22px;
  margin-bottom: 25px;
}
.header-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  max-width: 510px;
}
.header-right .site-label {
  width: 100%;
  font-size: 12px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.3px;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 18px;
}
.intro,
.section-lead p {
  font-size: 16px;
  max-width: 920px;
}
.badge,
.tag,
.muted {
  font-size: 13px;
}
.metric label,
.metric em,
.metric small {
  font-size: 12px;
  letter-spacing: 0.3px;
}
.metric strong {
  font-size: 27px;
}
.panel {
  border: 1px solid #d7e0e2;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}
.button,
.primary,
button,
input,
select {
  font-size: 14px;
}
.primary {
  background: #23584f;
  border: 1px solid #23584f;
  color: #fff;
  padding: 12px 16px;
  border-radius: 5px;
  display: inline-block;
}
.button {
  padding: 10px 15px;
}
.presentation-controls,
.stage-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.presentation-controls button,
.stage-tools button,
.cinema-top button,
.cinema-transport button,
.film-controls button {
  font: inherit;
  font-size: 13px;
  border: 1px solid #9cafb3;
  background: #fff;
  color: #193a41;
  border-radius: 4px;
  padding: 8px 12px;
}
.stage-tools {
  padding: 9px 14px;
  background: #e8eef0;
  border-bottom: 1px solid #cbd8dd;
  flex-shrink: 0;
}
.stage-tools span {
  font-size: 12px;
  flex: 1;
  min-width: 120px;
  color: #607880;
}
.stage-tools button {
  padding: 6px 10px;
  font-size: 12px;
}
.workspace-focus > aside {
  display: none;
}
.workspace-focus > main {
  margin-left: 0;
  max-width: none;
}
main:fullscreen {
  overflow: auto;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: #edf1f3;
  padding: 20px 35px;
}
.scene-card:fullscreen,
.as-stage:fullscreen,
.city-map-card:fullscreen,
.reaction-stage:fullscreen {
  background: #102b31;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.scene-card:fullscreen .scene,
.as-stage:fullscreen #as-canvas,
.city-map-card:fullscreen .city-canvas,
.reaction-stage:fullscreen .reaction-viewport {
  height: auto;
  min-height: 250px;
  flex: 1;
}
.scene-card:fullscreen .scene-top,
.scene-card:fullscreen .timeline,
.scene-card:fullscreen .asset-info {
  background: #f3f6f6;
}
.as-stage:fullscreen .as-toolbar {
  background: #eaf0ed;
}
.reaction-stage:fullscreen .reaction-viewport {
  min-height: 50vh;
}
.scene-card:fullscreen .stage-tools,
.as-stage:fullscreen .stage-tools,
.city-map-card:fullscreen .stage-tools,
.reaction-stage:fullscreen .stage-tools {
  flex-shrink: 0;
}
.scene-card:fullscreen .asset-info {
  position: static;
}
.scene {
  height: 510px;
}
.scene-top,
.time-label {
  font-size: 13px;
}
.grid {
  grid-template-columns: minmax(0, 2.4fr) minmax(275px, 1fr);
}
.controls label {
  font-size: 14px;
}
.controls output {
  font-size: 13px;
}
.process-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.process-presets button {
  padding: 9px 13px;
  border: 1px solid #a8beb9;
  border-radius: 4px;
  background: #f8fcfa;
  color: #294e46;
}
.scenario-summary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  font-size: 13px;
}
.scenario-summary strong {
  color: #235a4c;
}
.biology-bridge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #163941;
  color: #edf5f2;
  padding: 24px;
  margin: 24px 0;
  border-radius: 7px;
}
.biology-bridge p {
  font-size: 14px;
  color: #b8d0d0;
  max-width: 750px;
}
.biology-bridge a {
  white-space: nowrap;
  border: 1px solid #7d9b9e;
  padding: 13px;
  font-size: 14px;
  border-radius: 4px;
}
.process-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0;
}
.process-stages > div {
  border-top: 2px solid #b2c5bd;
  padding: 16px 0;
}
.process-stages span {
  color: #997a50;
  font-size: 12px;
}
.process-stages h4 {
  font-size: 16px;
  margin: 12px 0;
}
.process-stages p {
  font-size: 14px;
  color: #65787b;
}
.section-lead h2 {
  font-size: clamp(24px, 2.8vw, 38px);
  letter-spacing: -1px;
  font-weight: 500;
  margin: 12px 0;
}
.section-lead p {
  color: #62757b;
  line-height: 1.65;
}
.reaction-stage {
  border: 1px solid #253e45;
  border-radius: 10px;
  overflow: hidden;
  background: #10262b;
}
.cinema-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 20px;
  background: #15333b;
  align-items: center;
}
.segmented {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.cinema-top button {
  background: transparent;
  color: #d3e3e1;
  border-color: #4b686b;
  font-size: 14px;
}
.cinema-top button[aria-pressed="true"] {
  background: #dde9e4;
  color: #183831;
}
.cinema-tag {
  font-size: 12px;
  color: #b4c7c8;
  letter-spacing: 0.5px;
}
.reaction-viewport {
  position: relative;
  height: 520px;
  min-height: 350px;
}
.reaction-canvas {
  position: absolute;
  inset: 0;
}
.reaction-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.reaction-canvas[hidden] {
  display: none;
}
.molecular-legend {
  position: absolute;
  right: 20px;
  top: 18px;
  display: flex;
  gap: 18px;
  color: #e5eded;
  font-size: 12px;
  pointer-events: none;
}
.molecular-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
}
.reaction-caption {
  position: absolute;
  left: 28px;
  bottom: 18px;
  pointer-events: none;
  color: #eff6f3;
  max-width: calc(100% - 56px);
  text-shadow: 0 2px 8px #10262b;
}
.reaction-caption span {
  color: #c1aa80;
  font-size: 12px;
  letter-spacing: 1px;
}
.reaction-caption h3 {
  font-size: clamp(25px, 3vw, 43px);
  letter-spacing: 0.5px;
  margin: 8px 0;
}
.reaction-caption p {
  font-size: 14px;
  color: #cbdcda;
  margin: 5px 0;
}
.cinema-transport {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  align-items: center;
  background: #f2f6f5;
  color: #304f50;
}
.cinema-transport input[type="range"] {
  flex: 1;
  min-width: 120px;
  accent-color: #326357;
}
.cinema-transport button,
.cinema-transport select {
  font-size: 14px;
  padding: 9px;
  border: 1px solid #aac0b8;
  background: white;
  border-radius: 4px;
}
.cinema-transport output {
  min-width: 40px;
  font-size: 14px;
}
.cinema-transport label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.reaction-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.3fr;
  gap: 20px;
  margin: 24px 0;
}
.reaction-content p {
  font-size: 15px;
}
.reaction-content h3 {
  margin-top: 15px;
}
.reaction-picker {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.reaction-picker button {
  padding: 15px;
  text-align: left;
  border: 1px solid #ccd9da;
  border-radius: 5px;
  background: #fff;
  color: #264a4e;
  cursor: pointer;
}
.reaction-picker button.active {
  background: #dcebe3;
  border-color: #6d9482;
}
.reaction-picker button span {
  float: left;
  margin-right: 12px;
  color: #96764f;
  font-size: 13px;
}
.reaction-picker button strong {
  font-size: 14px;
  font-weight: 600;
}
.reaction-picker button small {
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 7px;
  padding-left: 29px;
}
.atom-ledger {
  display: flex;
  gap: 20px;
  padding: 10px 0 20px;
}
.atom-ledger strong {
  font-size: 28px;
  display: block;
}
.atom-ledger span {
  font-size: 12px;
  color: #6a7d80;
}
.species-row {
  display: grid;
  grid-template-columns: 65px 1fr 65px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
}
.species-row meter {
  width: 100%;
}
.species-row strong {
  font-size: 12px;
}
.cinema-fallback {
  padding: 80px 30px;
  color: #f0f4ef;
}
.product-home {
  margin-top: -8px;
}
.home-hero {
  position: relative;
  min-height: 640px;
  background: #10282d;
  color: #edf4ef;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.opening-film {
  width: 100%;
  height: 100%;
  object-fit: contain;
  grid-column: 2;
  grid-row: 1;
  background: #10282d;
}
.home-copy {
  grid-column: 1;
  grid-row: 1;
  padding: 70px 0 100px 45px;
  z-index: 1;
  align-self: center;
}
.home-copy .eyebrow {
  color: #c0ac87;
}
.home-copy h2 {
  font-size: clamp(30px, 3.2vw, 54px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -1.4px;
  margin: 24px 0;
}
.home-copy p {
  font-size: 17px;
  color: #b9cdce;
  max-width: 490px;
  line-height: 1.8;
}
.home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.home-actions .primary {
  background: #d1dfd4;
  color: #1e443c;
  border-color: #d1dfd4;
}
.home-actions .button {
  color: #163b38;
  background: #ffffff;
  border: 1px solid #72918d;
}
.home-actions .button:hover,
.home-actions .button:focus-visible {
  color: #102b31;
  background: #e1eee8;
  border-color: #205d54;
}
.film-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 30px;
  border-top: 1px solid #426067;
  background: #143039;
  font-size: 13px;
}
.film-controls button {
  background: transparent;
  color: #e7f0eb;
  border-color: #7a9b9e;
}
.film-controls span {
  margin-left: auto;
  color: #a7c0c1;
  font-size: 12px;
}
.home-route-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #cddbdd;
  margin: 28px 0;
  border-radius: 7px;
}
.home-route-strip > a {
  padding: 30px;
  border-right: 1px solid #d6e0e1;
}
.home-route-strip > a:last-child {
  border: 0;
}
.home-route-strip a:hover {
  background: #f2f7f5;
}
.home-route-strip span {
  font-size: 12px;
  color: #91764f;
  letter-spacing: 1px;
}
.home-route-strip h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 20px 0 12px;
  font-weight: 500;
}
.home-route-strip p {
  font-size: 15px;
  color: #65787b;
}
.home-route-strip strong {
  font-size: 14px;
  font-weight: 600;
}
.home-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 28px 15px;
}
.home-bottom h3 {
  font-size: 26px;
  margin: 15px 0;
}
.home-bottom p {
  color: #64777b;
  font-size: 16px;
}
.home-bottom a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #cbd9db;
  font-size: 15px;
}
.as-heading,
.as-kicker,
.as-note,
.as-label,
.as-revision,
.as-port,
.as-device small {
  font-size: 12px;
}
.as-part {
  font-size: 13px !important;
}
.assembly-studio button {
  font-size: 13px;
}
.as-form label {
  font-size: 13px;
}
.as-metrics small {
  font-size: 12px;
}
.as-inspector p {
  font-size: 14px;
}
.as-device strong {
  font-size: 13px;
}
.as-statebar,
.as-statebar span:last-child {
  font-size: 12px;
}
.as-form input {
  font-size: 14px;
}
.as-intro p {
  font-size: 15px;
}
.as-intro h2 {
  font-size: 28px;
}
.city-studio .city-note {
  font-size: 13px;
}
.city-studio p {
  font-size: 14px;
}
.city-studio button {
  font-size: 13px;
}
.city-studio .city-kicker {
  font-size: 12px;
}
.city-studio .city-inspector label {
  font-size: 14px;
}
footer {
  font-size: 13px;
  line-height: 1.8;
}
.home-route-strip a:focus-visible,
.reaction-picker button:focus-visible {
  outline: 3px solid #a1783f;
  outline-offset: 3px;
}
@media (min-width: 1650px) {
  .home-hero {
    min-height: 700px;
  }
  .scene {
    height: 620px;
  }
  .reaction-viewport {
    height: 640px;
  }
}
@media (max-width: 1150px) {
  body > aside {
    width: 210px;
    padding: 22px 12px;
  }
  main {
    margin-left: 210px;
    padding: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .controls input[type="range"] {
    grid-column: 1/-1;
  }
  .controls > p,
  .controls > .asset-title {
    grid-column: 1/-1;
  }
  .reaction-content {
    grid-template-columns: 1fr 1fr;
  }
  .reaction-picker {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 40px;
  }
  .opening-film {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    aspect-ratio: 16/9;
    width: 100%;
    margin-bottom: 70px;
  }
  .home-copy h2 {
    font-size: 42px;
  }
  .home-route-strip > a {
    padding: 22px;
  }
  .film-controls {
    padding: 13px 20px;
  }
  .film-controls span {
    display: none;
  }
}
@media (max-width: 760px) {
  body > aside {
    position: relative;
    width: auto;
    padding: 15px;
    height: auto;
  }
  .brand small,
  .nav-label,
  .aside-bottom {
    display: none;
  }
  body > aside nav {
    display: flex;
    gap: 5px;
    overflow: auto;
    margin-top: 12px;
    padding-bottom: 5px;
  }
  body > aside nav .nav-group {
    display: none;
  }
  body > aside nav a {
    white-space: nowrap;
    margin: 0;
    font-size: 13px;
  }
  body > aside nav a span {
    display: none;
  }
  main {
    margin: 0;
    padding: 16px;
  }
  main > header {
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .header-right {
    justify-content: flex-start;
    text-align: left;
    max-width: 100%;
  }
  .header-right .site-label {
    display: none;
  }
  h1 {
    font-size: 23px;
  }
  .presentation-controls button {
    font-size: 12px;
  }
  .panel {
    padding: 20px;
  }
  .home-copy {
    padding: 28px;
  }
  .home-copy h2 {
    font-size: 34px;
  }
  .home-copy p {
    font-size: 16px;
  }
  .home-route-strip {
    display: block;
  }
  .home-route-strip > a {
    display: block;
    border-right: 0;
    border-bottom: 1px solid #d6e0e1;
    padding: 25px;
  }
  .home-route-strip h3 {
    margin-top: 10px;
  }
  .home-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 6px;
  }
  .reaction-content {
    display: block;
  }
  .reaction-content > .panel {
    margin-top: 18px;
  }
  .reaction-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .reaction-picker button {
    padding: 13px 9px;
  }
  .reaction-picker button strong {
    font-size: 13px;
  }
  .reaction-picker button small {
    padding-left: 0;
  }
  .reaction-viewport {
    height: 420px;
  }
  .molecular-legend {
    left: 15px;
    right: auto;
    gap: 10px;
    font-size: 12px;
  }
  .cinema-top {
    display: block;
    padding: 13px;
  }
  .cinema-tag {
    display: block;
    margin-top: 10px;
    font-size: 11px;
  }
  .reaction-caption {
    left: 18px;
    bottom: 14px;
  }
  .reaction-caption h3 {
    font-size: 27px;
  }
  .cinema-transport {
    gap: 8px;
    padding: 12px;
  }
  .cinema-transport input[type="range"] {
    order: 6;
    width: 100%;
    flex-basis: 100%;
  }
  .process-stages {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .biology-bridge {
    display: block;
  }
  .biology-bridge a {
    display: inline-block;
    white-space: normal;
  }
  .stage-tools button {
    font-size: 12px;
  }
  .stage-tools span {
    flex-basis: 100%;
  }
  .as-workbench .as-intro h2 {
    font-size: 24px;
  }
  .scene {
    height: 420px;
  }
  main:fullscreen {
    padding: 14px;
  }
  .film-controls {
    gap: 12px;
    font-size: 12px;
  }
  .film-controls button {
    font-size: 12px;
  }
  .controls {
    display: block;
  }
  .controls label {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .presentation-controls,
  .stage-tools,
  .film-controls,
  body > aside {
    display: none !important;
  }
  main {
    margin: 0;
    padding: 0;
  }
  .home-hero {
    background: white;
    color: #19343a;
  }
  .home-copy {
    padding: 20px;
  }
  .home-copy p {
    color: #536c70;
  }
  .opening-film {
    display: none;
  }
  .home-route-strip,
  .reaction-content,
  .process-stages {
    display: block;
  }
  .reaction-stage {
    break-inside: avoid;
  }
  .reaction-viewport {
    height: 300px;
  }
}
.molecular-legend[hidden],
.reaction-caption[hidden] {
  display: none;
}
.process-scene-caption {
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  color: white;
  background: #10262bed;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
}
