/* WORLD / a scene-based interface, not a scrolling landing page */
:root {
  color-scheme: dark;
  --ink: #030810;
  --white: #edf6fc;
  --muted: #94a9ba;
  --cyan: #5fe2ff;
  --blue: #289ad7;
  --line: rgba(110, 187, 222, 0.22);
  --mono:
    Consolas, "Cascadia Code", "SFMono-Regular", "Liberation Mono", monospace;
  --body: "Segoe UI", Inter, Arial, sans-serif;
  font-family: var(--body);
  background: var(--ink);
  color: var(--white);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
}
body {
  overflow-x: hidden;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}
h1:focus {
  outline: none;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
button {
  border: 0;
}
h1,
h2,
h3,
.eyebrow,
.action,
nav,
.brand,
footer {
  font-family: var(--mono);
}
h1 {
  font-size: clamp(42px, 4.1vw, 76px);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.055em;
}
h1 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 38px #5bd4ff35;
}
h1 .cursor {
  font-size: 0.75em;
  letter-spacing: 0;
}
.cursor {
  animation: cursor-blink 1.2s steps(2, end) infinite;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 1000;
  background: #073b58;
  padding: 15px;
}
.skip-link:focus {
  top: 16px;
}
.no-script {
  padding: 10vw;
  max-width: 1000px;
}
.no-script p {
  margin-top: 30px;
  line-height: 1.8;
}
#atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  background: #030810;
}
.backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: none;
  will-change: opacity;
}
.backdrop.next {
  display: none;
}
.haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 64% 49%,
      transparent 0%,
      #02070a22 38%,
      #02070aaa 96%
    ),
    linear-gradient(90deg, #030810ba 0%, #03081066 37%, transparent 78%);
}
.vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#02070bcc, transparent 17%, transparent 73%, #02070bf5),
    radial-gradient(ellipse, transparent 20%, #0006);
}
#rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.53;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.8' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
.site-header {
  height: 104px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4.2vw;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #77b9cc12;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 16px;
  letter-spacing: -0.035em;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px #44c8ed30);
}
.brand-world {
  display: block;
  font-size: 10px;
  letter-spacing: 0.58em;
  margin-top: 6px;
  color: #82bacd;
}
.brand-world b {
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #d2e7f0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #afc6d4;
}
.header-nav a:hover {
  color: var(--cyan);
}
.header-nav a > span[aria-hidden] {
  margin-left: 6px;
  color: var(--cyan);
}
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.github-link {
  display: flex;
  align-items: center;
  gap: 9px;
}
.github-link svg,
.social-icon svg {
  width: 18px;
  height: 18px;
}
.site-controls,
.entry-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.motion-toggle,
.sound-toggle {
  background: transparent;
  border: 1px solid #83b9cf27;
  padding: 9px 12px;
  font: 10px var(--mono);
  color: #9fb4c1;
  display: flex;
  align-items: center;
  gap: 9px;
}
.motion-toggle:hover,
.sound-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.sound-toggle[data-state="playing"] {
  color: var(--cyan);
  border-color: #50d6ff66;
  background: #0b355c55;
}
.sound-symbol {
  width: 10px;
  text-align: center;
}
.motion-bars {
  color: var(--cyan);
  letter-spacing: 2px;
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
}
.main-stage {
  height: calc(100svh - 216px);
  min-height: 540px;
  max-width: 1920px;
  margin: auto;
  position: relative;
}
.scene {
  height: 100%;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
  max-width: 1640px;
  margin: auto;
  padding: 25px 6vw 22px;
  position: relative;
}
.scene-copy {
  position: relative;
  z-index: 5;
  max-width: 560px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: #8dc2d3;
  margin-bottom: 24px;
}
.eyebrow > span {
  width: 22px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px #5ce2ff;
}
.eyebrow.plain {
  margin: 0;
  display: block;
}
.lead {
  font-size: clamp(19px, 1.55vw, 25px);
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-top: 24px;
  color: #d2e1ec;
}
.body-copy {
  font-size: 14px;
  line-height: 1.9;
  color: #a2b8c8;
  max-width: 450px;
  margin-top: 19px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 31px;
}
.action {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px solid #81b8ce48;
  background: linear-gradient(105deg, #12283755, #04111a50);
  padding: 14px 19px;
  font-size: 11px;
  line-height: 1.5;
  position: relative;
  isolation: isolate;
  min-height: 46px;
  color: #cee3ed;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}
.action::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #77ceef;
  border-left: 1px solid #77ceef;
}
.action span {
  color: var(--cyan);
  font-size: 16px;
}
.action.primary {
  background: linear-gradient(110deg, #087caa42, #046b9640);
  border-color: #44bee988;
  color: #e7faff;
  box-shadow:
    inset 0 0 25px #1abbed08,
    0 0 30px #00bcff08;
}
.action:hover {
  border-color: var(--cyan);
  background: #13799d40;
  box-shadow: 0 0 32px #22c6f21a;
}
.action:disabled {
  background: #17212a70;
  border-color: #75808a40;
  color: #7f8d99;
}
.action:disabled::before {
  border-color: #7a838e;
}
.action:disabled:hover {
  box-shadow: none;
  background: #17212a70;
}
.micro-line {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 8px var(--mono);
  letter-spacing: 0.055em;
  color: #7e9da9;
  margin-top: 24px;
}
.micro-line i {
  font-style: normal;
  color: #4c788b;
}
.scene-rail {
  position: absolute;
  left: 2.1vw;
  top: 40px;
  bottom: 40px;
  display: flex;
  justify-content: space-between;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 8px var(--mono);
  letter-spacing: 0.19em;
  color: #6d90a4;
  z-index: 3;
}
.scene-rail::after {
  content: "";
  height: 27%;
  width: 1px;
  background: linear-gradient(transparent, #497e9455, transparent);
  position: absolute;
  top: 38%;
  right: 16px;
}
.scene-art {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transform: translate(var(--pointer-x, 0), var(--pointer-y, 0));
  transition: transform 1.4s cubic-bezier(0.18, 0.7, 0.1, 1);
}
.artifact {
  width: 100%;
  position: relative;
  aspect-ratio: 1;
  isolation: isolate;
}
@property --assembly-edge {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -16%;
}
.artifact-assembly {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  --assembly-edge: -16%;
  mask-image: linear-gradient(
    to top,
    #000 calc(var(--assembly-edge) - 14%),
    transparent calc(var(--assembly-edge) + 14%)
  );
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.artifact[data-ready="true"] .artifact-assembly {
  animation: assemble 1.8s cubic-bezier(0.22, 0.58, 0.26, 1) both;
}
/* A completed reveal is fully opaque: release its mask/filter render surfaces. */
.artifact[data-assembled="true"] .artifact-assembly {
  animation: none;
  opacity: 1;
  mask-image: none;
  filter: none;
}
.artifact-float {
  width: 100%;
  height: 100%;
  position: relative;
  animation: float 8s ease-in-out infinite;
}
.artifact img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 40px #01050ac9);
}
.code-skin {
  position: absolute;
  inset: 0;
  mask-image: var(--silhouette);
  -webkit-mask-image: var(--silhouette);
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  overflow: hidden;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}
.code-skin > div {
  position: absolute;
  inset: -60% 0;
  display: flex;
  justify-content: space-around;
  transform: rotate(2deg);
}
.code-skin span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font: 8px/1.7 var(--mono);
  letter-spacing: 6px;
  color: #66e1ff;
  text-shadow: 0 0 8px #5de8ff;
  animation: object-stream calc(9s + var(--column) * 0.22s) linear infinite;
  animation-delay: calc(var(--column) * -0.7s);
}
.assembly-line {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9becff, transparent);
  box-shadow: 0 0 26px 5px #16aeef88;
  top: 100%;
  opacity: 0;
}
.artifact[data-ready="true"] .assembly-line {
  animation: assembly-scan 1.8s ease-out;
}
.hero-art > .constellation-display {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 690px);
  z-index: 2;
}
.orbital-ring {
  position: absolute;
  width: 91%;
  aspect-ratio: 1;
  border: 1px solid #79b9d021;
  border-radius: 50%;
  transform: rotateX(12deg) rotate(-20deg);
}
.ring-one::before,
.ring-two::before {
  content: "+";
  position: absolute;
  left: 50%;
  top: -8px;
  font: 14px var(--mono);
  color: #9cd2e099;
}
.ring-two {
  width: 78%;
  border-style: dashed;
  border-color: #8cb9cf22;
  animation: orbit 100s linear infinite;
}
.art-label {
  position: absolute;
  font: 8px var(--mono);
  letter-spacing: 0.14em;
  z-index: 5;
  color: #a5b8c5;
  display: flex;
  gap: 7px;
  align-items: center;
}
.art-label::after {
  content: "";
  width: 30px;
  height: 1px;
  background: #739fb044;
}
.label-tl {
  left: 8%;
  top: 20%;
}
.label-tr {
  right: -2%;
  top: 20%;
}
.label-bl {
  left: 5%;
  bottom: 21%;
}
.label-br {
  right: 0;
  bottom: 21%;
}
i.red,
i.yellow,
i.orange,
i.blue {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #50d6ff;
  box-shadow: 0 0 9px currentColor;
}
.red {
  color: #ff4359 !important;
  background: #ff4359 !important;
}
.yellow {
  color: #f7d55b !important;
  background: #f7d55b !important;
}
.orange {
  color: #ff9445 !important;
  background: #ff9445 !important;
}
.blue {
  color: #50d6ff !important;
  background: #50d6ff !important;
}
.art-bottom-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font: 8px var(--mono);
  letter-spacing: 0.24em;
  color: #85a6b6;
}
.chapter-nav {
  height: 68px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  width: min(980px, 83%);
  border-top: 1px solid #72b1ce30;
  border-bottom: 1px solid #72b1ce18;
  position: relative;
  z-index: 10;
  background: linear-gradient(#04111b50, #01070c80);
}
.chapter-nav a {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
  font-size: 10px;
  letter-spacing: 0.035em;
  color: #93a9b9;
  padding: 0 13px;
}
.chapter-nav a::before {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  top: -1px;
  background: transparent;
  transition: background 0.25s;
}
.chapter-nav a:hover {
  color: #e2f7ff;
  background: #2275a00d;
}
.chapter-nav a[aria-current] {
  color: #e8f8ff;
  background: linear-gradient(#36c9ff14, transparent);
}
.chapter-nav a[aria-current]::before {
  background: var(--cyan);
  box-shadow: 0 0 17px #00c8ff60;
}
.chapter-number {
  font-size: 9px;
  color: #507283;
}
.chapter-nav a[aria-current] .chapter-number {
  color: var(--cyan);
}
.chapter-nav i {
  width: 3px;
  height: 3px;
  border: 1px solid #5b91a5;
  border-radius: 50%;
  position: absolute;
  bottom: 9px;
  left: 50%;
}
.chapter-nav a[aria-current] i {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.site-footer {
  height: 44px;
  padding: 0 4.2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 0.14em;
  color: #708c9e;
}
.system-caption {
  display: flex;
  align-items: center;
  gap: 9px;
}
.system-caption i {
  width: 3px;
  height: 3px;
  background: #53d1e4;
  box-shadow: 0 0 8px #3ce4ff;
}
.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.footer-links a:hover {
  color: var(--cyan);
}
.footer-links > span {
  margin-left: 20px;
  color: #537a8a;
}
/* Arrival: the city appears first, then the invitation. */
body[data-scene="entry"] .backdrop {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.08);
}
body[data-scene="entry"].world-ready .backdrop {
  animation: city-arrival 3s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
}
body[data-scene="entry"] .haze {
  background: radial-gradient(ellipse at 50% 51%, #06142033, transparent 55%);
}
body[data-scene="entry"] #rain {
  opacity: 0.55;
}
body[data-scene="entry"] .vignette {
  background:
    linear-gradient(#01040970, transparent 35%, transparent 75%, #01050bdb),
    radial-gradient(ellipse, transparent 5%, #01050b90);
}
.entry-scene {
  height: 100svh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-center {
  text-align: center;
  margin-top: -1vh;
  position: relative;
}
.entry-center::before {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  top: -40%;
  bottom: -30%;
  background: radial-gradient(ellipse, #06131fa1, transparent 70%);
  filter: blur(24px);
  z-index: -1;
  animation: mist-drift 9s ease-in-out infinite;
}
.enter-world {
  font: clamp(28px, 3.6vw, 55px) var(--mono);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 38px;
  color: #edfaff;
  text-shadow:
    0 0 18px #9ae9ff8f,
    0 0 65px #57ccff55;
  opacity: 0;
  filter: blur(15px);
  transform: translateY(16px);
  padding: 35px;
}
.world-ready .enter-world {
  animation: mist-reveal 2.2s 2s both;
}
.enter-bracket {
  font-size: 0.5em;
  font-weight: 200;
  color: #83d3e88a;
  transition: transform 0.5s;
}
.enter-world:hover .enter-bracket:first-child {
  transform: translateX(-10px);
}
.enter-world:hover .enter-bracket:last-child {
  transform: translateX(10px);
}
.enter-world:hover {
  color: white;
  text-shadow:
    0 0 25px #b1f1ff,
    0 0 95px #12b8ef;
}
.entry-center p {
  font: 8px var(--mono);
  letter-spacing: 0.47em;
  color: #b1cfde;
  opacity: 0;
  margin-top: 3px;
}
.world-ready .entry-center p {
  animation: mist-reveal 2s 3.1s both;
}
.entry-coordinate {
  position: absolute;
  top: 48px;
  font: 8px/2 var(--mono);
  letter-spacing: 0.2em;
  color: #a0c1d19c;
  opacity: 0;
}
.world-ready .entry-coordinate {
  animation: mist-reveal 2s 2.7s both;
}
.entry-coordinate.left {
  left: 4.2vw;
}
.entry-coordinate.right {
  right: 4.2vw;
  text-align: right;
}
.entry-bottom {
  position: absolute;
  bottom: 35px;
  left: 4.2vw;
  right: 4.2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font: 8px var(--mono);
  letter-spacing: 0.13em;
  color: #91aab9;
  opacity: 0;
}
.world-ready .entry-bottom {
  animation: mist-reveal 2s 3.2s both;
}
.entry-bottom .motion-toggle {
  border: 0;
  font-size: 8px;
}
.entry-bottom a:hover {
  color: var(--cyan);
}
/* Scene variations */
.feature-lines {
  margin: 23px 0;
  max-width: 445px;
}
.feature-lines > div {
  display: flex;
  gap: 18px;
  align-items: baseline;
  border-bottom: 1px solid #79adc624;
  padding: 12px 0;
}
.feature-lines span {
  font: 9px var(--mono);
  color: #5fbbd2;
}
.feature-lines p {
  font-size: 12px;
  line-height: 1.65;
  color: #96aebc;
}
.feature-lines strong {
  color: #d6e7ee;
  font-weight: 400;
}
.city-art .artifact {
  width: 116%;
  margin-left: -3%;
}
.object-caption {
  position: absolute;
  bottom: 5%;
  left: 14%;
  display: flex;
  gap: 15px;
  align-items: center;
  font: 9px/1.8 var(--mono);
  letter-spacing: 0.09em;
  color: #9ed6e8;
}
.object-caption .cross {
  font-size: 30px;
  font-weight: 200;
  color: #5aa9c7;
}
.object-caption small {
  font-size: 7px;
  letter-spacing: 0.15em;
  color: #7392a4;
}
.agent-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font: 8px var(--mono);
  letter-spacing: 0.04em;
  margin: 25px 0 19px;
}
.agent-tags span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.fine-copy {
  font-size: 11px;
  line-height: 1.8;
  color: #829dad;
  margin-bottom: 27px;
}
.ensemble {
  height: 96%;
  align-self: end;
}
.ensemble .artifact {
  position: absolute;
  width: 62%;
  bottom: 5%;
}
.ensemble-left {
  left: -12%;
  z-index: 2;
  transform: rotate(-4deg);
}
.ensemble-right {
  right: -12%;
  z-index: 1;
  transform: rotate(3deg);
}
.ensemble .ensemble-center {
  width: 82%;
  left: 9%;
  bottom: 0;
  z-index: 3;
}
.ensemble-left .artifact-float {
  animation-delay: -2s;
}
.ensemble-right .artifact-float {
  animation-delay: -4s;
}
.agent-floor {
  position: absolute;
  width: 110%;
  height: 20%;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #20c9ff26, transparent 67%);
  border-bottom: 1px solid #2a95b74a;
  filter: blur(3px);
}
.ensemble .art-bottom-label {
  bottom: 0;
  z-index: 8;
}
.workflow-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 27px;
  position: relative;
}
.workflow-list::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 30px;
  left: 12px;
  width: 1px;
  background: linear-gradient(#5dddff70, #1c7e9b22);
}
.workflow-list li {
  display: flex;
  gap: 23px;
  margin-bottom: 20px;
  position: relative;
}
.workflow-list li > span {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #06131c;
  border: 1px solid #3f799133;
  display: grid;
  place-items: center;
  font: 8px var(--mono);
  color: #83c6db;
}
.workflow-list strong {
  font: 13px var(--mono);
  font-weight: 400;
  color: #cde8f2;
}
.workflow-list p {
  font-size: 12px;
  line-height: 1.7;
  color: #8da8b8;
  margin-top: 6px;
}
.work-art .artifact {
  width: 110%;
  margin-top: 6%;
}
.work-telemetry {
  position: absolute;
  bottom: 3%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font: 8px var(--mono);
  color: #8cb8c9;
  letter-spacing: 0.08em;
}
.work-telemetry i {
  color: #427789;
  font-style: normal;
}
.download-scene {
  height: 100%;
  max-width: 1490px;
  margin: auto;
  padding: 15px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.download-heading {
  text-align: center;
  position: relative;
  z-index: 5;
}
.download-heading .eyebrow {
  justify-content: center;
  margin-bottom: 12px;
}
.download-heading h1 {
  font-size: clamp(33px, 3.2vw, 52px);
}
.download-heading > p {
  color: #a9bdc8;
  font-size: 13px;
  margin-top: 17px;
}
.download-layout {
  display: grid;
  grid-template-columns: 1fr 24% 1fr;
  align-items: center;
  margin: 10px auto;
  width: 100%;
  max-width: 1200px;
  position: relative;
}
.download-option {
  display: flex;
  gap: 22px;
  border-top: 1px solid #53a3c844;
  padding-top: 25px;
  z-index: 2;
}
.os-mark {
  font: 48px var(--mono);
  color: #b3dfee;
}
.os-mark.linux {
  font-size: 31px;
  line-height: 1.5;
}
.download-option h2 {
  font-size: 24px;
  font-weight: 400;
  margin: 13px 0 10px;
}
.download-option p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 280px;
  color: #91aabb;
  min-height: 65px;
}
.download-option .action {
  font-size: 10px;
  gap: 5px;
  padding: 12px;
  margin-top: 18px;
}
.release-note {
  display: block;
  font: 7px var(--mono);
  letter-spacing: 0.05em;
  color: #7b929e;
  margin-top: 14px;
}
.download-core .artifact {
  width: 140%;
  margin-left: -20%;
}
.download-bottom {
  text-align: center;
  margin-top: 15px;
}
.download-bottom p {
  font-size: 12px;
  line-height: 1.7;
  color: #94aeba;
  margin-bottom: 18px;
}
.download-bottom .action {
  margin: 0 5px;
  font-size: 10px;
  padding: 10px 15px;
  min-height: 40px;
}
/* Theatrical coming-soon poster: original World art, not copied franchise art. */
body:is([data-scene="home"], [data-scene="coming-soon"]) .backdrop {
  opacity: 1;
}
body:is([data-scene="home"], [data-scene="coming-soon"]) .haze {
  background: radial-gradient(ellipse at center, #081a2533, #01050bf0 84%);
}
.poster-stage {
  height: calc(100svh - 148px);
  min-height: 650px;
  overflow: hidden;
}
.poster-scene {
  height: 100%;
  position: relative;
  isolation: isolate;
  max-width: 1440px;
  margin: auto;
}
.poster-heading {
  position: absolute;
  top: 3%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 6;
}
.poster-heading .eyebrow {
  justify-content: center;
  font-size: 7px;
  margin-bottom: 12px;
}
.poster-heading > p {
  font: 9px/1.7 var(--mono);
  letter-spacing: 0.35em;
  color: #aec8d8;
}
.poster-art {
  position: absolute;
  inset: 0 0 10%;
  max-width: 900px;
  margin: auto;
}
.poster-art .artifact {
  position: absolute;
}
.poster-constellation {
  width: 58%;
  height: 58%;
  left: 21%;
  top: -9%;
  opacity: 0.78;
  z-index: 0;
}
.poster-agent {
  width: 48%;
  height: 76%;
  left: 26%;
  top: 3%;
  z-index: 3;
}
.poster-cat {
  width: 39%;
  height: 63%;
  left: 4%;
  top: 17%;
  z-index: 2;
  transform: rotate(-7deg);
}
.poster-dog {
  width: 39%;
  height: 63%;
  right: 4%;
  top: 17%;
  z-index: 2;
  transform: rotate(6deg);
}
.poster-city {
  width: 98%;
  height: 67%;
  left: 1%;
  top: 47%;
  z-index: 4;
  mask-image: linear-gradient(transparent, #000 12%, #000 55%, transparent 97%);
  filter: brightness(0.7);
}
.poster-art .artifact-float {
  animation-duration: 12s;
}
.poster-art::after {
  content: "";
  position: absolute;
  inset: 40% -20% -20%;
  background: linear-gradient(
    transparent 5%,
    #03081065 35%,
    #030810ed 63%,
    #030810
  );
  z-index: 5;
}
.poster-orbits {
  position: absolute;
  width: 65%;
  height: 90%;
  left: 17.5%;
  top: 0;
  border: 1px solid #348faf18;
  transform: rotate(-35deg);
  border-radius: 50%;
  box-shadow:
    0 0 100px #2591bd0a,
    inset 0 0 150px #5dd6fd09;
}
.poster-title {
  position: absolute;
  top: 49%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 7;
}
.poster-title h1 {
  font-size: clamp(20px, 2.8vw, 39px);
  letter-spacing: 0.045em;
  line-height: 1.3;
}
.poster-title h1 > span {
  display: block;
  text-shadow: 0 0 15px #9cdafa7a;
  font-weight: 400;
}
.poster-title h1 strong {
  font-size: clamp(60px, 7.8vw, 118px);
  display: block;
  letter-spacing: 0.3em;
  line-height: 1.16;
  margin-left: 0.3em;
  background: linear-gradient(#e9f9ff 8%, #75c5e3 50%, #2c6484 81%, #bfebff);
  color: transparent;
  background-clip: text;
  text-shadow: 0 0 50px #78d7ff12;
  font-weight: 700;
}
.poster-title h1 em {
  font-size: clamp(16px, 1.7vw, 24px);
  letter-spacing: 0.19em;
  display: block;
  color: #c9e6ef;
  margin: 10px 0 20px;
}
.poster-title > p {
  font: 7px/1.7 var(--mono);
  letter-spacing: 0.2em;
  color: #749cad;
}
.poster-credit {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: #95b2c2;
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  margin-top: 16px;
}
.poster-credit i {
  font-style: normal;
  color: #366778;
}
.poster-title .actions {
  justify-content: center;
  margin-top: 21px;
}
.poster-title .action {
  font-size: 9px;
  padding: 9px 15px;
  min-height: 36px;
}
.poster-title > small {
  display: block;
  color: #6e8998;
  font-size: 10px;
  margin-top: 15px;
}
.info-scene {
  max-width: 1080px;
  margin: 0 auto;
  padding: 35px 5vw;
}
.info-scene h1 {
  font-size: clamp(36px, 3.4vw, 58px);
}
.info-scene .lead {
  font-size: 17px;
  max-width: 800px;
}
.faq-list {
  margin-top: 25px;
}
.faq-list details {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.faq-list summary {
  font: 13px var(--mono);
  cursor: pointer;
  color: #c4dfeb;
  line-height: 1.6;
}
.faq-list details p {
  font-size: 13px;
  line-height: 1.7;
  color: #9bb6c6;
  margin: 10px 0;
  max-width: 780px;
}
.privacy-copy {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 17px 30px;
  margin: 30px 0;
}
.privacy-copy h2 {
  font-size: 12px;
  color: #bfd6e3;
  font-weight: 400;
  line-height: 1.7;
}
.privacy-copy p {
  font-size: 13px;
  color: #95adbd;
  line-height: 1.7;
}
body[data-scene="about"] .main-stage,
body[data-scene="privacy"] .main-stage {
  height: calc(100svh - 148px);
  min-height: 650px;
}
/* Field Guide: quiet imagery and a readable, paginated manual. */
body[data-site="guide"] .backdrop {
  opacity: 1;
}
body[data-site="guide"] .haze {
  background: linear-gradient(90deg, #02070adb, #02070a70 55%, #02070a20);
}
body[data-site="guide"] #rain {
  opacity: 0.16;
}
body[data-site="guide"] .site-header {
  height: 90px;
}
body[data-site="guide"] .brand {
  font-size: 14px;
}
.guide-shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  max-width: 1720px;
  margin: auto;
  height: calc(100svh - 124px);
  min-height: 670px;
  padding: 0 4.2vw;
  gap: 40px;
}
.guide-sidebar {
  padding: 27px 25px 15px 0;
  border-right: 1px solid #71b6cf25;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.guide-index-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 11px var(--mono);
  letter-spacing: 0.2em;
  color: #c0dde8;
}
.guide-index-title small {
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #7293a6;
}
.search-box {
  display: flex;
  gap: 9px;
  align-items: center;
  background: #09212b50;
  border: 1px solid #4a889d42;
  padding: 10px;
  margin-top: 20px;
}
.search-box > span {
  font-size: 19px;
  color: var(--cyan);
  line-height: 1;
}
.search-box input {
  background: transparent;
  border: 0;
  outline: none !important;
  color: #d4ebf4;
  font-size: 11px;
  width: 100%;
  min-width: 0;
}
.search-box input::placeholder {
  color: #7495a7;
}
.search-box:focus-within {
  outline: 1px solid var(--cyan);
}
kbd {
  font: 9px var(--mono);
  border: 1px solid #609db844;
  padding: 3px 5px;
  color: #9cbdce;
  background: #10263466;
}
.search-status {
  font: 8px var(--mono);
  color: #77b7cf;
  min-height: 9px;
  margin-top: 8px;
}
#topic-nav {
  min-height: 0;
  flex: 1;
  padding-right: 7px;
}
#topic-nav h2 {
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #547f94;
  margin: 15px 0 6px;
}
#topic-nav h2:first-child {
  margin-top: 6px;
}
#topic-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #9bb4c5;
  padding: 7px 9px;
  border-left: 1px solid transparent;
  position: relative;
  line-height: 1.35;
}
#topic-nav a > span {
  font-size: 8px;
  color: #496e81;
}
#topic-nav a > b {
  font-weight: 400;
  margin-left: auto;
  opacity: 0;
  color: var(--cyan);
}
#topic-nav a[aria-current] {
  color: #daf4ff;
  background: linear-gradient(90deg, #23a3d324, transparent);
  border-left-color: var(--cyan);
}
#topic-nav a[aria-current] > span {
  color: var(--cyan);
}
#topic-nav a[aria-current] > b,
#topic-nav a:hover > b {
  opacity: 1;
}
#topic-nav a:hover {
  color: #d8f1ff;
  background: #1c59771a;
}
.no-results {
  font: 11px/1.8 var(--mono);
  color: #8eb9cd;
  margin-top: 35px;
}
.guide-sidebar-back {
  font: 8px var(--mono);
  color: #749bab;
  padding-top: 17px;
  display: block;
  margin-top: 10px;
  border-top: 1px solid #609ab226;
}
.guide-sidebar-back:hover {
  color: var(--cyan);
}
.guide-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 27px 0 0;
}
.guide-breadcrumb {
  font: 7px var(--mono);
  letter-spacing: 0.13em;
  color: #608a9e;
  display: flex;
  justify-content: space-between;
  padding-bottom: 24px;
}
.guide-title .eyebrow {
  margin-bottom: 15px;
  font-size: 8px;
}
.guide-title h1 {
  font-size: clamp(27px, 2.65vw, 44px);
  letter-spacing: -0.045em;
  max-width: 1000px;
}
.guide-title > p {
  font-size: 13px;
  line-height: 1.8;
  color: #91adbd;
  margin-top: 15px;
  max-width: 790px;
}
.guide-reading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 35px;
  margin-top: 30px;
  flex: 1;
  min-height: 0;
  align-items: start;
}
.guide-instructions {
  max-width: 580px;
}
.guide-instructions ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-instructions li {
  display: flex;
  gap: 17px;
  padding-bottom: 21px;
}
.step-number {
  font: 9px/1.8 var(--mono);
  color: #4b9bb8;
  min-width: 18px;
}
.guide-instructions h2 {
  font-size: 13px;
  font-weight: 400;
  color: #d3e9f3;
  line-height: 1.65;
}
.guide-instructions li p {
  font-size: 12px;
  line-height: 1.85;
  color: #8da8ba;
  margin-top: 5px;
}
.guide-note {
  display: flex;
  gap: 11px;
  border-left: 1px solid #3a98b8;
  padding: 11px 14px;
  background: linear-gradient(90deg, #07466929, transparent);
  margin: 4px 0 20px;
}
.guide-note > span {
  color: #65afc9;
}
.guide-note p {
  font-size: 11px;
  line-height: 1.75;
  color: #99b1c2;
}
.guide-visual {
  min-width: 0;
  position: relative;
  align-self: start;
  border: 1px solid #7abcce26;
  background: #04131b44;
  padding: 12px 14px;
  margin-top: 0;
  max-height: 100%;
  animation: materialize-panel 1.2s both;
}
.figure-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6898ac;
  font: 7px var(--mono);
  letter-spacing: 0.13em;
  margin-bottom: 14px;
}
.figure-label i {
  width: 4px;
  height: 4px;
  background: #49a3c0;
  box-shadow: 0 0 9px #59d6ff;
}
.figure-zoom {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  background: none;
}
.figure-zoom img {
  max-width: 100%;
  width: auto;
  max-height: min(45vh, 490px);
  object-fit: contain;
  display: block;
  margin: auto;
  filter: drop-shadow(0 10px 30px #01050c);
}
.guide-visual.illustration .figure-zoom img {
  aspect-ratio: 1;
  max-height: min(45vh, 430px);
  width: 100%;
  animation: float 10s ease-in-out infinite;
}
.guide-visual.illustration {
  border-color: transparent;
  background: radial-gradient(ellipse, #14749518, transparent 70%);
}
.guide-visual figcaption {
  font: 8px/1.7 var(--mono);
  color: #6c94a8;
  padding-top: 15px;
  border-top: 1px solid #6daabd21;
  margin-top: 15px;
}
.zoom-hint {
  position: absolute;
  right: 5px;
  bottom: 6px;
  background: #03101eda;
  border: 1px solid #4791b347;
  font: 7px var(--mono);
  letter-spacing: 0.06em;
  padding: 7px;
  color: #82c5de;
  opacity: 0;
  transition: opacity 0.2s;
}
.figure-zoom:hover .zoom-hint,
.figure-zoom:focus-visible .zoom-hint {
  opacity: 1;
}
.guide-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #5288a435;
  min-height: 61px;
  margin-top: auto;
  padding: 12px 0;
  gap: 15px;
  font: 10px var(--mono);
  color: #99bdcf;
}
.guide-pagination a:hover {
  color: var(--cyan);
}
.guide-pagination > span:first-child {
  font-size: 7px;
  color: #5d879b;
}
.page-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-dots a {
  width: 5px;
  height: 5px;
  border: 1px solid #7195a6;
}
.page-dots a[aria-current] {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 9px #4dd4ff55;
}
.page-dots small {
  margin-left: 9px;
  font-size: 7px;
  color: #7195a6;
}
.guide-footnote {
  height: 34px;
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  font: 7px var(--mono);
  letter-spacing: 0.09em;
  color: #527488;
}
.guide-footnote > span {
  color: #34647b;
}
.key-strip {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.image-dialog {
  background: #04111af7;
  border: 1px solid #488faa60;
  color: #a9c5d4;
  max-width: 94vw;
  max-height: 94svh;
  padding: 18px;
  box-shadow: 0 0 90px #000;
  animation: materialize-panel 0.5s both;
}
.image-dialog::backdrop {
  background: #000d;
  backdrop-filter: blur(10px);
}
.image-dialog form {
  text-align: right;
  margin-bottom: 12px;
}
.image-dialog button {
  background: #0b3b55;
  border: 1px solid #377b99;
  padding: 8px 13px;
  font: 11px var(--mono);
}
.image-dialog img {
  max-width: 85vw;
  max-height: 73svh;
  display: block;
  object-fit: contain;
  margin: auto;
}
.image-dialog p {
  font: 10px var(--mono);
  line-height: 1.8;
  margin-top: 14px;
}
/* Code assembly and transit. */
#transfer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, #030a11eb, #072233cd, #030a11ed);
  overflow: hidden;
  transition: opacity 0.24s;
  clip-path: inset(0 0 100%);
}
#transfer.active {
  opacity: 1;
  animation: transfer-pass 0.95s cubic-bezier(0.4, 0, 0.3, 1) both;
}
#transfer > span {
  position: absolute;
  top: 49%;
  left: 0;
  right: 0;
  text-align: center;
  font: 10px var(--mono);
  letter-spacing: 0.3em;
  color: #9bddf2;
  text-shadow: 0 0 18px #84d6ed;
}
.transfer-code {
  position: absolute;
  inset: -40%;
  white-space: pre-wrap;
  font: 12px/2.8 var(--mono);
  letter-spacing: 0.2em;
  color: #458faa55;
  transform: rotate(-13deg);
  text-shadow: 0 0 10px #008ad83a;
}
.departing .scene-copy,
.departing .guide-main {
  animation: dematerialize 0.34s both;
}
.arriving .scene-copy > * {
  animation: materialize-panel 1s both;
}
.arriving .scene-copy > *:nth-child(2) {
  animation-delay: 0.05s;
}
.arriving .scene-copy > *:nth-child(3) {
  animation-delay: 0.1s;
}
.arriving .scene-copy > *:nth-child(4) {
  animation-delay: 0.15s;
}
.arriving .scene-copy > *:nth-child(5) {
  animation-delay: 0.2s;
}
.arriving .scene-copy > *:nth-child(6) {
  animation-delay: 0.25s;
}
.arriving .guide-title,
.arriving .guide-instructions {
  animation: materialize-panel 1s both;
}
.arriving .backdrop {
  animation: materialize-panel 1s both;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.35deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.35deg);
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes object-stream {
  0% {
    transform: translateY(-18%);
  }
  100% {
    transform: translateY(24%);
  }
}
@keyframes assembly-scan {
  0% {
    top: 100%;
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    top: 0;
    opacity: 0;
  }
}
@keyframes assemble {
  0% {
    opacity: 0;
    --assembly-edge: -16%;
    filter: brightness(1.3);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    --assembly-edge: 116%;
    filter: brightness(1);
  }
}
@keyframes city-arrival {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(0.2);
    transform: scale(1.1);
    clip-path: inset(30% 0 35%);
  }
  40% {
    opacity: 0.65;
    filter: blur(4px) saturate(0.55);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: none;
    clip-path: inset(0);
  }
}
@keyframes mist-reveal {
  0% {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
@keyframes mist-drift {
  0%,
  100% {
    transform: translateX(-14px) scale(1);
  }
  50% {
    transform: translateX(14px) scale(1.14);
  }
}
@keyframes materialize-panel {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(9px);
    clip-path: inset(0 0 96% 0);
  }
  50% {
    opacity: 0.7;
    filter: blur(1px);
    clip-path: inset(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
    clip-path: inset(0);
  }
}
@keyframes dematerialize {
  to {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(-7px);
  }
}
@keyframes transfer-pass {
  0% {
    clip-path: inset(0 0 100%);
  }
  40% {
    clip-path: inset(0 0 0);
  }
  55% {
    clip-path: inset(0 0 0);
  }
  100% {
    clip-path: inset(100% 0 0);
  }
}
@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}
@keyframes wave {
  50% {
    transform: scaleY(0.5);
  }
}
/* Compact desktop / laptop: adapt type and whitespace before adding overflow. */
@media (min-width: 1001px) and (max-height: 850px) {
  .site-header {
    height: 80px;
  }
  .main-stage {
    height: calc(100svh - 183px);
    min-height: 505px;
  }
  .chapter-nav {
    height: 61px;
  }
  .site-footer {
    height: 42px;
  }
  .scene {
    padding-top: 15px;
    padding-bottom: 18px;
  }
  .eyebrow {
    margin-bottom: 18px;
    font-size: 8px;
  }
  .scene h1 {
    font-size: clamp(40px, 4vw, 65px);
  }
  .lead {
    margin-top: 17px;
    font-size: 19px;
  }
  .body-copy {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.8;
  }
  .actions {
    margin-top: 23px;
  }
  .micro-line {
    margin-top: 17px;
    font-size: 7px;
  }
  .artifact {
    max-height: 100%;
  }
  .hero-art .constellation-display {
    max-width: 550px;
  }
  .feature-lines > div {
    padding: 9px 0;
  }
  .feature-lines {
    margin: 15px 0;
  }
  .agent-tags {
    margin: 18px 0;
  }
  .fine-copy {
    margin-bottom: 20px;
  }
  .workflow-list {
    margin: 20px 0;
  }
  .workflow-list li {
    margin-bottom: 15px;
  }
  .poster-stage {
    height: calc(100svh - 122px);
    min-height: 620px;
  }
  .poster-heading {
    top: 1%;
  }
  .poster-title {
    top: 48%;
  }
  .poster-title h1 strong {
    font-size: 80px;
  }
  .poster-title h1 em {
    margin: 5px 0 12px;
  }
  .poster-title .actions {
    margin-top: 13px;
  }
  .poster-credit {
    margin-top: 10px;
  }
  .download-heading h1 {
    font-size: 39px;
  }
  .download-layout {
    margin: 5px auto;
  }
  .download-bottom {
    margin-top: 5px;
  }
  .download-option {
    padding-top: 16px;
    gap: 14px;
  }
  .download-option h2 {
    margin: 9px 0;
  }
  .download-option p {
    min-height: 61px;
  }
  .download-bottom p {
    margin-bottom: 10px;
  }
  body[data-site="guide"] .site-header {
    height: 78px;
  }
  .guide-shell {
    height: calc(100svh - 108px);
    min-height: 620px;
    padding: 0 3.2vw;
    gap: 30px;
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .guide-sidebar {
    padding-top: 20px;
  }
  .guide-main {
    padding-top: 20px;
  }
  .guide-breadcrumb {
    padding-bottom: 17px;
  }
  .guide-title h1 {
    font-size: 33px;
  }
  .guide-title > p {
    font-size: 12px;
    margin-top: 10px;
  }
  .guide-reading {
    margin-top: 21px;
    gap: 25px;
  }
  .guide-instructions li {
    padding-bottom: 15px;
  }
  .guide-instructions li p {
    font-size: 11.5px;
    line-height: 1.7;
  }
  .guide-note p {
    font-size: 10px;
  }
  .guide-note {
    padding: 8px 11px;
  }
  .guide-pagination {
    min-height: 49px;
  }
  .search-box {
    margin-top: 13px;
  }
  #topic-nav a {
    padding: 5px 8px;
    font-size: 9px;
  }
  #topic-nav h2 {
    margin-top: 11px;
  }
  .guide-sidebar-back {
    padding-top: 12px;
    margin-top: 8px;
  }
  .guide-footnote {
    height: 30px;
    font-size: 6px;
  }
}
@media (min-width: 1001px) and (max-height: 699px) {
  .main-stage {
    height: auto;
    min-height: 545px;
  }
  .guide-shell {
    height: auto;
    min-height: 660px;
  }
  .poster-stage {
    height: 680px;
  }
  .info-scene {
    padding-top: 30px;
    padding-bottom: 40px;
  }
  .site-footer {
    height: 50px;
  }
}
@media (min-width: 1001px) and (min-height: 851px) {
  .guide-reading {
    margin-top: 38px;
  }
  .guide-instructions li {
    padding-bottom: 24px;
  }
  .guide-instructions li p {
    font-size: 13px;
  }
  .guide-pagination {
    margin-bottom: 5px;
  }
}
/* Small viewports may scroll, never clip the controls or force tiny text. */
@media (max-width: 1000px) {
  .site-header {
    height: 86px;
    padding: 0 5vw;
  }
  .header-nav {
    gap: 19px;
    font-size: 10px;
  }
  .brand {
    font-size: 13px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand-world {
    font-size: 8px;
  }
  .scene {
    padding: 35px 8vw 32px;
    grid-template-columns: 1fr 1fr;
  }
  .scene-copy {
    max-width: none;
  }
  .scene h1 {
    font-size: 42px;
  }
  .lead {
    font-size: 18px;
  }
  .body-copy {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 7px;
  }
  .scene-rail {
    display: none;
  }
  .main-stage {
    height: auto;
    min-height: 600px;
  }
  .scene-art {
    min-height: 430px;
  }
  .label-tr,
  .label-br {
    right: -5%;
  }
  .art-label {
    font-size: 6px;
  }
  .art-label::after {
    display: none;
  }
  .hero-art .constellation-display {
    width: 118%;
    margin-left: 0;
  }
  .micro-line {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 7px;
  }
  .action {
    font-size: 10px;
    padding: 12px 15px;
    gap: 15px;
  }
  .actions {
    gap: 10px;
  }
  .chapter-nav {
    width: 90%;
    height: 64px;
  }
  .chapter-nav a {
    font-size: 9px;
    gap: 7px;
    padding: 0 8px;
  }
  .site-footer {
    padding: 0 5vw;
    height: 50px;
  }
  .system-caption {
    font-size: 6px;
  }
  .footer-links {
    gap: 15px;
  }
  .footer-links > span {
    display: none;
  }
  .ensemble {
    height: 100%;
    min-height: 500px;
  }
  .agent-tags {
    font-size: 7px;
    gap: 10px;
  }
  .work-telemetry {
    font-size: 6px;
    gap: 8px;
    bottom: 8%;
  }
  .download-scene {
    padding: 32px 7vw;
  }
  .download-heading h1 {
    font-size: 37px;
  }
  .download-layout {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin: 35px 0;
  }
  .download-core {
    position: absolute;
    width: 220px;
    left: 50%;
    top: 15px;
    transform: translateX(-50%);
    opacity: 0.18;
    z-index: 0;
  }
  .download-option {
    position: relative;
    gap: 14px;
  }
  .download-option .action {
    font-size: 9px;
  }
  .poster-stage {
    height: calc(100svh - 136px);
    min-height: 680px;
  }
  .poster-title h1 strong {
    font-size: 86px;
  }
  .poster-title h1 > span {
    font-size: 29px;
  }
  .poster-title h1 em {
    font-size: 19px;
  }
  .poster-title {
    top: 51%;
  }
  .poster-art {
    max-width: 760px;
  }
  .poster-heading > p {
    font-size: 8px;
  }
  .info-scene {
    padding: 35px 7vw;
  }
  .privacy-copy {
    grid-template-columns: 1fr 2fr;
    gap: 17px 25px;
  }
  .guide-shell {
    height: auto;
    min-height: calc(100svh - 125px);
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 25px;
    padding: 0 4vw;
  }
  .guide-sidebar {
    padding-right: 16px;
  }
  .guide-main {
    padding-top: 26px;
  }
  .guide-reading {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .guide-visual {
    max-width: 480px;
    margin: 0 auto 25px;
    width: 100%;
  }
  .guide-visual .figure-zoom img {
    max-height: 340px;
  }
  .guide-title h1 {
    font-size: 31px;
  }
  .guide-instructions li p {
    font-size: 12px;
  }
  .guide-pagination {
    margin-top: 10px;
  }
  #topic-nav a {
    font-size: 9px;
  }
  .guide-footnote {
    font-size: 6px;
    letter-spacing: 0;
    gap: 7px;
    min-height: 34px;
    height: auto;
    padding: 10px;
  }
  .guide-sidebar-back {
    margin-top: 25px;
  }
  .guide-instructions {
    max-width: none;
  }
  .guide-title > p {
    font-size: 12px;
  }
  .guide-breadcrumb {
    font-size: 6px;
  }
}
@media (max-width: 650px) {
  .site-header {
    height: 81px;
    padding: 0 6vw;
  }
  .brand {
    font-size: 11px;
    gap: 8px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .brand-world {
    font-size: 7px;
    letter-spacing: 0.45em;
  }
  .header-nav {
    gap: 15px;
    font-size: 9px;
  }
  .header-nav .github-link span {
    display: none;
  }
  .github-link svg,
  .social-icon svg {
    width: 17px;
    height: 17px;
  }
  .header-nav .motion-toggle {
    position: fixed;
    right: 15px;
    bottom: 14px;
    z-index: 50;
    box-shadow: 0 4px 30px #000b;
    background: #06121fdd;
    font-size: 8px;
    padding: 9px;
  }
  .header-nav .motion-bars {
    display: none;
  }
  .main-stage {
    min-height: 0;
    height: auto;
  }
  .scene {
    display: flex;
    flex-direction: column-reverse;
    padding: 12px 8vw 35px;
    gap: 0;
  }
  .scene-art {
    width: 100%;
    height: 310px;
    min-height: 0;
    max-width: 450px;
    margin: 0 auto 14px;
    flex: none;
  }
  .hero-art > .constellation-display {
    width: 320px;
    max-width: 100%;
  }
  .orbital-ring {
    width: 290px;
    max-width: 93%;
  }
  .ring-two {
    width: 250px;
  }
  .art-label {
    font-size: 6px;
  }
  .label-tl {
    left: 1%;
    top: 20%;
  }
  .label-tr {
    right: 0;
    top: 20%;
  }
  .label-bl {
    left: 0;
    bottom: 15%;
  }
  .label-br {
    right: 0;
    bottom: 15%;
  }
  .art-bottom-label {
    font-size: 6px;
    bottom: 0;
    letter-spacing: 0.15em;
  }
  .scene-copy {
    width: 100%;
  }
  .scene h1 {
    font-size: clamp(37px, 10vw, 52px);
    line-height: 1.12;
  }
  .eyebrow {
    font-size: 7px;
    margin-bottom: 15px;
    letter-spacing: 0.13em;
  }
  .lead {
    font-size: 19px;
    margin-top: 19px;
  }
  .body-copy {
    font-size: 13px;
    line-height: 1.85;
    margin-top: 16px;
  }
  .actions {
    margin-top: 25px;
  }
  .action {
    font-size: 10px;
    min-height: 45px;
  }
  .micro-line {
    margin-top: 20px;
    font-size: 6px;
    justify-content: space-between;
  }
  .chapter-nav {
    height: auto;
    min-height: 66px;
    width: 88%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .chapter-nav a {
    flex-direction: column;
    gap: 6px;
    padding: 12px 3px 18px;
    font-size: 7px;
    text-align: center;
    line-height: 1.5;
  }
  .chapter-number {
    font-size: 7px;
  }
  .chapter-nav i {
    bottom: 7px;
  }
  .site-footer {
    height: 78px;
    align-items: flex-start;
    padding-top: 22px;
    font-size: 6px;
    gap: 15px;
  }
  .system-caption {
    max-width: 100px;
    line-height: 1.7;
    font-size: 5px;
  }
  .footer-links {
    gap: 15px;
    padding-right: 70px;
    font-size: 6px;
  }
  .entry-scene {
    min-height: 460px;
  }
  .enter-world {
    font-size: 30px;
    gap: 18px;
    padding: 23px 8px;
  }
  .entry-center p {
    font-size: 6px;
    letter-spacing: 0.29em;
  }
  .entry-coordinate {
    top: 32px;
    font-size: 6px;
  }
  .entry-bottom {
    bottom: 25px;
    font-size: 6px;
    letter-spacing: 0.04em;
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .entry-bottom > span {
    max-width: 90px;
    line-height: 1.6;
  }
  .entry-bottom .motion-toggle {
    font-size: 7px;
  }
  .city-art .artifact {
    width: 360px;
    max-width: 115%;
    margin-left: 0;
  }
  .object-caption {
    left: 5%;
    bottom: 0;
    font-size: 7px;
  }
  .object-caption small {
    font-size: 6px;
  }
  .object-caption .cross {
    font-size: 22px;
  }
  .feature-lines p {
    font-size: 12px;
  }
  .city-scene .scene-art {
    height: 330px;
  }
  .ensemble {
    height: 370px;
    align-self: center;
  }
  .ensemble .artifact {
    width: 62%;
    bottom: 5%;
  }
  .ensemble .ensemble-center {
    width: 84%;
    left: 8%;
    bottom: 0;
  }
  .ensemble-left {
    left: -9%;
  }
  .ensemble-right {
    right: -9%;
  }
  .ensemble .art-bottom-label {
    bottom: 1%;
  }
  .agent-tags {
    font-size: 7px;
    margin: 22px 0 17px;
  }
  .fine-copy {
    font-size: 11px;
    line-height: 1.8;
  }
  .work-art .artifact {
    width: 360px;
    max-width: 117%;
    margin: 0;
  }
  .work-art {
    height: 320px;
  }
  .work-telemetry {
    font-size: 6px;
    bottom: 2%;
    gap: 13px;
  }
  .workflow-list {
    margin: 24px 0;
  }
  .workflow-list li {
    gap: 15px;
    margin-bottom: 21px;
  }
  .download-scene {
    padding: 35px 8vw;
  }
  .download-heading h1 {
    font-size: 33px;
    line-height: 1.2;
  }
  .download-heading p {
    font-size: 12px;
    line-height: 1.9;
    max-width: 280px;
    margin: 15px auto 0;
  }
  .download-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 32px 0;
  }
  .download-option {
    padding-top: 22px;
    gap: 23px;
  }
  .download-option h2 {
    font-size: 24px;
  }
  .download-option p {
    min-height: 0;
    font-size: 12px;
  }
  .download-option .action {
    font-size: 10px;
  }
  .os-mark {
    font-size: 42px;
  }
  .download-core {
    display: none;
  }
  .download-bottom p {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .download-bottom .action {
    margin: 5px 0;
    width: 100%;
    font-size: 10px;
  }
  .release-note {
    font-size: 6px;
  }
  .poster-stage {
    min-height: 710px;
    height: calc(100svh - 150px);
  }
  .poster-heading {
    top: 2%;
  }
  .poster-heading > p {
    font-size: 7px;
  }
  .poster-heading .eyebrow {
    font-size: 6px;
  }
  .poster-art {
    inset: 5% -13% 8%;
    max-width: none;
  }
  .poster-constellation {
    top: 0;
    width: 72%;
    left: 14%;
    height: 42%;
  }
  .poster-agent {
    width: 67%;
    left: 16.5%;
    height: 68%;
    top: 10%;
  }
  .poster-cat {
    width: 51%;
    left: -2%;
    height: 60%;
    top: 24%;
  }
  .poster-dog {
    width: 51%;
    right: -2%;
    height: 60%;
    top: 24%;
  }
  .poster-city {
    top: 48%;
    width: 124%;
    left: -12%;
    height: 60%;
  }
  .poster-title {
    top: 51%;
    padding: 0 18px;
  }
  .poster-title h1 > span {
    font-size: 24px;
    letter-spacing: 0.015em;
  }
  .poster-title h1 strong {
    font-size: 67px;
    letter-spacing: 0.21em;
    margin-left: 0.21em;
    line-height: 1.25;
  }
  .poster-title h1 em {
    font-size: 17px;
    letter-spacing: 0.09em;
    margin: 6px 0 18px;
  }
  .poster-title > p {
    font-size: 6px;
    letter-spacing: 0.08em;
    max-width: 280px;
    margin: auto;
  }
  .poster-credit {
    font-size: 6px;
    gap: 8px;
  }
  .poster-title .actions {
    gap: 8px;
    margin-top: 24px;
  }
  .poster-title .action {
    font-size: 8px;
    padding: 10px 12px;
    gap: 15px;
  }
  .poster-title > small {
    font-size: 8px;
    line-height: 1.8;
    max-width: 290px;
    margin: 18px auto 0;
  }
  .info-scene {
    padding: 30px 8vw;
  }
  .info-scene h1 {
    font-size: 36px;
  }
  .info-scene .lead {
    font-size: 15px;
    line-height: 1.75;
  }
  .faq-list details {
    padding: 14px 0;
  }
  .faq-list summary {
    font-size: 12px;
  }
  .faq-list details p {
    font-size: 12px;
  }
  .privacy-copy {
    display: block;
    margin: 30px 0;
  }
  .privacy-copy h2 {
    font-size: 13px;
    margin-top: 22px;
  }
  .privacy-copy p {
    font-size: 12px;
    margin-top: 8px;
  }
  body[data-scene="about"] .main-stage,
  body[data-scene="privacy"] .main-stage {
    height: auto;
    min-height: 0;
  }
  body[data-site="guide"] .site-header {
    height: 85px;
  }
  .brand-world b {
    font-size: 6px;
    letter-spacing: 0.03em;
  }
  .guide-shell {
    display: block;
    padding: 0 6vw;
  }
  .guide-sidebar {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid #54869c38;
  }
  .guide-index-title {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
  }
  .guide-index-title small {
    font-size: 6px;
  }
  .search-box {
    margin-top: 15px;
  }
  .search-status {
    margin-top: 7px;
    min-height: 0;
  }
  #topic-nav {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding: 9px 0 7px;
    scrollbar-width: thin;
    scrollbar-color: #26617c transparent;
  }
  #topic-nav h2 {
    display: none;
  }
  #topic-nav a {
    flex-shrink: 0;
    font-size: 9px;
    padding: 9px 10px;
    border: 1px solid #4d869a29;
    background: #061c2840;
  }
  #topic-nav a > b {
    display: none;
  }
  #topic-nav a[aria-current] {
    border-color: #4dcaed80;
  }
  #topic-nav a > span {
    font-size: 8px;
  }
  .guide-sidebar-back {
    display: none;
  }
  .guide-main {
    padding-top: 22px;
  }
  .guide-breadcrumb {
    font-size: 6px;
    padding-bottom: 20px;
  }
  .guide-title h1 {
    font-size: 31px;
    line-height: 1.22;
  }
  .guide-title .eyebrow {
    font-size: 7px;
  }
  .guide-title > p {
    font-size: 12px;
    line-height: 1.8;
  }
  .guide-reading {
    margin-top: 25px;
  }
  .guide-instructions h2 {
    font-size: 13px;
  }
  .guide-instructions li p {
    font-size: 12px;
    line-height: 1.85;
  }
  .guide-instructions li {
    gap: 13px;
    padding-bottom: 21px;
  }
  .guide-note p {
    font-size: 11px;
    line-height: 1.8;
  }
  .guide-visual {
    padding: 12px;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .guide-visual .figure-zoom img {
    max-height: 400px;
  }
  .guide-visual.illustration .figure-zoom img {
    max-height: 280px;
  }
  .guide-visual figcaption {
    font-size: 7px;
  }
  .zoom-hint {
    opacity: 1;
    font-size: 6px;
  }
  .guide-pagination {
    font-size: 9px;
    min-height: 70px;
    gap: 8px;
  }
  .page-dots small {
    font-size: 6px;
    max-width: 35px;
    line-height: 1.5;
    margin-left: 4px;
  }
  .guide-pagination > span:first-child {
    max-width: 65px;
    line-height: 1.7;
  }
  .guide-footnote {
    padding: 20px 95px 24px 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    font-size: 5px;
    line-height: 1.8;
    gap: 4px;
  }
  .image-dialog {
    padding: 12px;
  }
  .image-dialog img {
    max-width: 84vw;
  }
  .image-dialog p {
    font-size: 8px;
  }
  .image-dialog button {
    font-size: 10px;
  }
}
/* Readable controls remain distinct from decorative coordinate microtype. */
.header-nav {
  font-size: 12px;
}
.chapter-nav a {
  font-size: 12px;
}
.chapter-number {
  font-size: 10px;
}
.action {
  font-size: 12px;
}
.site-footer {
  font-size: 9px;
  letter-spacing: 0.07em;
}
.entry-bottom {
  font-size: 10px;
}
.entry-bottom .motion-toggle {
  font-size: 10px;
}
.entry-center p {
  font-size: 10px;
  letter-spacing: 0.3em;
}
.ensemble-left {
  left: -4%;
}
.ensemble-right {
  right: -4%;
}
.ensemble .artifact:not(.ensemble-center) {
  width: 58%;
}
@media (max-width: 1000px) {
  .header-nav {
    font-size: 11px;
  }
  .chapter-nav a {
    font-size: 10px;
  }
  .action {
    font-size: 11px;
  }
  .site-footer {
    font-size: 8px;
  }
}
@media (max-width: 650px) {
  .header-nav {
    font-size: 10px;
  }
  .chapter-nav a {
    font-size: 9px;
  }
  .chapter-number {
    font-size: 8px;
  }
  .entry-bottom {
    font-size: 8px;
  }
  .entry-bottom .motion-toggle {
    font-size: 9px;
  }
  .entry-center p {
    font-size: 8px;
  }
  .site-footer {
    font-size: 8px;
  }
  .footer-links {
    font-size: 8px;
  }
  .scene-art.ensemble .artifact:not(.ensemble-center) {
    width: 58%;
  }
}
.art-label {
  font-size: 9px;
  padding: 5px 7px;
  background: #03101abd;
  border: 1px solid #67b0c51c;
  letter-spacing: 0.08em;
}
.label-tl,
.label-tr {
  top: auto;
  bottom: calc(93% + 20px);
}
.label-bl,
.label-br {
  top: calc(93% + 20px);
  bottom: auto;
}
.constellation-display .label-tl,
.constellation-display .label-bl {
  left: 0;
}
.constellation-display .label-tr,
.constellation-display .label-br {
  right: 0;
}
.poster-constellation {
  top: 0;
  height: 47%;
}
.guide-visual {
  margin-bottom: 16px;
}
.guide-visual figcaption {
  font-size: 9px;
  line-height: 1.8;
}
.guide-pagination {
  flex-shrink: 0;
}
.page-dots a {
  position: relative;
}
.page-dots a::after {
  content: "";
  position: absolute;
  inset: -10px;
}
.guide-pagination > a {
  padding: 10px 0;
}
.topic-swipe-hint {
  display: none;
}
@media (max-width: 650px) {
  .site-header,
  body[data-site="guide"] .site-header {
    height: auto;
    min-height: 118px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 15px;
    padding: 14px 6vw;
  }
  .brand {
    grid-column: 1/-1;
  }
  .header-nav {
    display: contents;
  }
  .site-controls {
    grid-column: 1/-1;
    justify-self: end;
  }
  .entry-bottom {
    flex-wrap: wrap;
    gap: 16px;
  }
  .entry-controls {
    justify-content: center;
  }
  .hero-art {
    margin-top: 24px;
    margin-bottom: 38px;
  }
  .hero-art .art-bottom-label {
    bottom: -38px;
  }
  .header-nav > a {
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .social-links {
    justify-self: end;
    gap: 4px;
  }
  .social-icon {
    min-width: 36px;
    min-height: 36px;
  }
  .header-nav .github-link {
    min-width: 36px;
    justify-content: center;
  }
  .header-nav .motion-toggle {
    position: static;
    min-height: 36px;
    margin: 0;
    padding: 8px 10px;
    box-shadow: none;
    font-size: 10px;
  }
  .actions .action {
    width: 100%;
    font-size: 12px;
  }
  .body-copy {
    font-size: 14px;
  }
  .art-label {
    font-size: 7px;
    padding: 4px;
  }

  .chapter-nav a {
    display: grid;
    grid-template-rows: 12px 28px;
    align-items: center;
    gap: 5px;
    justify-items: center;
    font-size: 9px;
  }
  .chapter-nav a > span:nth-child(2) {
    align-self: start;
  }
  body:is([data-scene="home"], [data-scene="coming-soon"]) .actions .action {
    width: auto;
  }
  .poster-stage {
    min-height: 735px;
  }
  .guide-instructions li p {
    font-size: 13px;
  }
  .guide-visual figcaption {
    font-size: 10px;
  }
  .guide-note p {
    font-size: 12px;
  }
  .page-dots small {
    font-size: 8px;
    max-width: none;
    white-space: nowrap;
  }
  .guide-pagination {
    font-size: 11px;
  }
  .guide-footnote {
    padding: 18px 6vw;
    font-size: 7px;
  }
  .zoom-hint {
    font-size: 8px;
    padding: 9px;
  }
  .guide-pagination > span:first-child {
    font-size: 8px;
  }
  .search-box kbd {
    display: none;
  }
  #topic-nav a {
    font-size: 11px;
    min-height: 40px;
  }
  .topic-swipe-hint {
    display: block;
    font: 9px var(--mono);
    color: #8bb8cd;
    margin-top: 6px;
  }
  .guide-visual .figure-label {
    font-size: 9px;
  }
  .guide-title .eyebrow {
    font-size: 8px;
  }
  .poster-title > small {
    font-size: 10px;
  }
  .poster-title .actions .action {
    font-size: 10px;
  }
}
/* A bounded grid track prevents square art from growing the scene row. */
@media (min-width: 1001px) {
  .scene {
    grid-template-rows: minmax(0, 1fr);
  }
  .scene-art {
    min-height: 0;
  }
  .work-art .artifact {
    margin-top: 0;
    max-height: 100%;
  }
}
@media (min-width: 1001px) and (min-height: 700px) and (max-height: 850px) {
  body[data-scene="about"] .main-stage,
  body[data-scene="privacy"] .main-stage {
    height: calc(100svh - 122px);
    min-height: 0;
  }
}
/* Crisp supplied artwork: contrast is local to reading surfaces, not a full-screen veil. */
.brand img {
  filter: none;
}
.site-header {
  background: linear-gradient(#02070bcc, #02070b66);
}
.scene-copy {
  isolation: isolate;
  text-shadow: 0 2px 10px #000c;
}
.scene-copy::before {
  content: "";
  position: absolute;
  inset: -22px -30px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 35% 50%,
    #020a14d9,
    #020a1488 55%,
    transparent 76%
  );
}
.body-copy,
.feature-lines p,
.workflow-list p,
.fine-copy {
  color: #bed0dc;
}
.guide-title,
.guide-instructions,
.guide-sidebar {
  text-shadow: 0 1px 5px #000;
}
.guide-sidebar {
  background: linear-gradient(90deg, #020912b8, #0209124a);
}
.guide-instructions {
  background: linear-gradient(90deg, #020912a8, #02091248);
}
.guide-instructions li p {
  color: #bdd0df;
}
.guide-title > p {
  color: #b7ccd9;
}
.download-heading,
.download-option,
.download-bottom,
.info-scene {
  text-shadow: 0 2px 10px #000;
}
.download-option {
  background: linear-gradient(90deg, #0209129c, transparent);
}
.artifact[data-ready="unavailable"] .artifact-assembly {
  opacity: 1;
  mask-image: none;
}

/* Bounded download columns and a dedicated action row above chapter navigation. */
@media (min-width: 1001px) {
  .download-scene {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 26px;
  }
  .download-layout {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 22%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(24px, 2.5vw, 42px);
    margin: 0 auto;
    min-height: 0;
    max-width: 1260px;
  }
  .download-core {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
  }
  .download-core .artifact {
    width: 100%;
    height: min(100%, 290px);
    margin: 0;
  }
  .download-option {
    min-width: 0;
    gap: 18px;
    padding-top: 19px;
  }
  .download-option:last-child {
    padding-left: 8px;
  }
  .download-bottom {
    margin-top: 0;
  }
}

/* Poster composition remains reusable when the launch caption changes. */
.poster-art {
  inset: 0;
}
.poster-heading {
  top: 0;
}
.poster-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.poster-heading > p {
  font-size: 10px;
  color: #d5e9f4;
  line-height: 1.6;
  text-shadow: 0 2px 8px #000;
}
.poster-constellation {
  top: 64px;
  width: 50%;
  left: 25%;
  height: 43%;
  opacity: 1;
}
.poster-agent {
  top: calc(64px + 23.5%);
  width: 48%;
  left: 26%;
  height: 53%;
}
.poster-cat {
  top: calc(64px + 31%);
  width: 39%;
  left: 4%;
  height: 43%;
}
.poster-dog {
  top: calc(64px + 31%);
  width: 39%;
  right: 4%;
  height: 43%;
}
.poster-city {
  top: 60%;
  height: 40%;
  filter: none;
}
.poster-art::after {
  inset: 62% 0 0;
  background: linear-gradient(transparent, #02081280 68%, #020812bc);
}
.poster-title {
  top: auto;
  bottom: 15px;
  text-shadow: 0 2px 12px #000;
}
.poster-title h1 > span {
  font-size: clamp(26px, 2.1vw, 34px);
}
.poster-title h1 strong {
  font-size: clamp(65px, 9svh, 96px);
  line-height: 1.08;
}
.poster-title h1 em {
  font-size: 20px;
  margin: 6px 0 18px;
}
.poster-title .poster-tagline {
  font-size: 9px;
  color: #b5d1df;
}
.poster-title > small {
  margin-top: 11px;
  color: #a5bdcc;
}
.poster-actions {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 22%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.poster-actions .action {
  pointer-events: auto;
  background: #052033cf;
}
@media (max-width: 1000px) {
  .poster-actions {
    left: 3%;
    right: 3%;
    bottom: 2%;
  }
  .poster-title {
    bottom: 80px;
  }
}
@media (max-width: 650px) {
  .poster-stage {
    height: 870px;
    min-height: 870px;
  }
  .poster-art {
    inset: 0 -7%;
  }
  .poster-heading {
    top: 12px;
  }
  .poster-heading .eyebrow {
    font-size: 8px;
  }
  .poster-heading > p {
    font-size: 9px;
    letter-spacing: 0.17em;
  }
  .poster-constellation {
    top: 86px;
    height: 30%;
    width: 72%;
    left: 14%;
  }
  .poster-agent {
    top: 31%;
    height: 39%;
    width: 70%;
    left: 15%;
  }
  .poster-cat {
    top: 40%;
    height: 32%;
    width: 48%;
    left: -2%;
  }
  .poster-dog {
    top: 40%;
    height: 32%;
    width: 48%;
    right: -2%;
  }
  .poster-city {
    top: 60%;
    height: 32%;
    width: 112%;
    left: -6%;
  }
  .poster-title {
    bottom: 90px;
  }
  .poster-title h1 > span {
    font-size: 25px;
  }
  .poster-title h1 strong {
    font-size: 66px;
  }
  .poster-title h1 em {
    font-size: 18px;
  }
  .poster-title .poster-tagline {
    font-size: 8px;
    max-width: 300px;
  }
  .poster-actions {
    left: 6%;
    right: 6%;
    bottom: 22px;
    gap: 15px;
  }
  .poster-actions .action {
    font-size: 10px;
    padding: 11px;
    gap: 10px;
  }
  .scene-copy::before {
    inset: -18px -18px;
  }
}
.figure-choices {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.figure-choices button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #407c96;
  background: #071d2d;
  font: 10px var(--mono);
  color: #c0dce9;
}
.figure-choices button[aria-pressed="true"] {
  border-color: var(--cyan);
  background: #0b4566;
  color: white;
}
.guide-visual:has(.figure-choices) .figure-zoom img {
  max-height: calc(45vh - 76px);
}
.guide-visual.capture .zoom-hint {
  opacity: 1;
}
.image-dialog > a {
  display: inline-flex;
  font: 11px var(--mono);
  color: var(--cyan);
  padding: 12px 0;
}
/* Touch GPUs share one code-rain surface per artwork, not twenty animated layers. */
@media (hover: none) and (pointer: coarse) {
  .code-skin > div {
    overflow: hidden;
    animation: object-stream 12s linear infinite;
  }
  .code-skin span {
    animation: none;
  }
}

/* Meaningful still mode: no drift, rain animation, scanning, or wait to enter. */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion="off"] .artifact-assembly {
  opacity: 1;
  clip-path: none;
  mask-image: none;
  filter: none;
  transform: none;
}
html[data-motion="off"] .assembly-line {
  display: none;
}
html[data-motion="off"] .scene-art {
  transform: none;
}
html[data-motion="off"] .enter-world,
html[data-motion="off"] .entry-center p,
html[data-motion="off"] .entry-coordinate,
html[data-motion="off"] .entry-bottom {
  opacity: 1;
  filter: none;
  transform: none;
}
html[data-motion="off"] body[data-scene="entry"] .backdrop {
  opacity: 1;
  filter: none;
  transform: none;
}
html[data-motion="off"] .code-skin {
  opacity: 0.07;
}
html[data-motion="off"] #transfer {
  display: none;
}
html[data-motion="off"] #rain {
  opacity: 0.16;
}
