/* VCR OSD Mono: the on-screen display type of an old VCR, for the transmission titles. */
@font-face {
  font-family: "VCR OSD Mono";
  src: url(assets/fonts/VCR_OSD_MONO.ttf) format("truetype");
  font-display: block;
}

:root {
  --green: #5ea75e;
  --green-light: #b4d6b4;
  --green-dim: color-mix(in srgb, var(--green) 48%, #000);
  --ink: #d4e8cf;
  /* The tree takes the turning logo's palette: its one near-white, and greys mixed down from it. */
  --tree-white: #d4e8cf;
  --tree-light: color-mix(in srgb, #d4e8cf 70%, #090c0a);
  --tree-line: color-mix(in srgb, #d4e8cf 42%, #090c0a);
  --tree-dim: color-mix(in srgb, #d4e8cf 26%, #090c0a);
  --ghost: color-mix(in srgb, #d4e8cf 10%, #090c0a); /* close box border: barely there on the black */
  --ghost-x: color-mix(in srgb, #d4e8cf 17%, #090c0a); /* its X */
  /* Lighter ghosts for the page and menu close boxes, so they read on the new background (19 NOV).
     The receipt's close box keeps the faint ones. */
  --ghost-lit: color-mix(in srgb, #d4e8cf 24%, #090c0a);
  --ghost-lit-x: color-mix(in srgb, #d4e8cf 40%, #090c0a);
  --soft: #86ab82;
  --faint: #47674a;
  --rule: rgb(94 167 94 / .3);
  --bg: #090c0a;
  --line: max(1px, .09em);
  --row: 2.43em;
  --mono: Monaco, Menlo, Consolas, monospace;
  --chat: Arial, Helvetica, sans-serif;
  --fold: cubic-bezier(.6, 0, .2, 1);
}

/* The whole layout scales with the window. The height term keeps everything, tree included,
   on screen however short the window is (the page needs about 52rem of height). */
html {
  font-size: clamp(11px, min(1.1723vw, 1.92vh), 28px);
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--green);
  font-family: var(--mono);
  font-size: .62rem;
  line-height: 1rem;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; letter-spacing: inherit; }

:focus-visible { outline: var(--line) solid var(--green-light); outline-offset: .15rem; }

/* ---------- Page frame ---------- */

.topbar,
.shell { display: grid; grid-template-columns: 23.5rem minmax(0, 1fr) 22.5rem; }

.topbar {
  flex: none;
  align-items: center;
  height: 2.3rem;
  border-bottom: 1px solid var(--rule);
}

.topbar > div { padding: 0 1.5rem; }

.spread { display: flex; justify-content: space-between; }

#clock { white-space: pre; }

.meter {
  display: inline-block;
  width: 3.4rem;
  height: .2rem;
  margin-right: .5rem;
  vertical-align: .14rem;
  background: var(--rule);
}

.meter .battery-fill { display: block; height: 100%; background: var(--green); }

/* As tall as its content (the tree), so the key bar follows it rather than the window's bottom edge. */
.shell { flex: 0 1 auto; min-height: 0; }

.keys {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 3rem;
  margin-top: 2.8rem; /* with the chat's 4rem extra (CHAT_EXTRA in main.js), keeps the key bar 6rem below the tree */
  padding: 0 1.5rem;
  border-top: 1px solid var(--rule);
}

.keys b {
  display: inline-block;
  margin-right: .5rem;
  padding: .05rem .42rem;
  border: 1px solid var(--green);
  border-radius: .3rem;
  font-weight: normal;
  color: var(--ink);
}

.keys .off { color: var(--faint); }

.keys .off b { border-color: var(--faint); color: var(--faint); }

.topbar, .right, .keys { transition: opacity .35s .3s; }

/* ---------- Background: the turning logo ---------- */

/* While scattered, the R's cut-out (js/logo-field.js) lifts. */
.logo-field.is-scattered { -webkit-mask: none !important; mask: none !important; }

.logo-field {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #d4e8cf;
  opacity: .5;
  font-family: var(--mono);
  letter-spacing: 0;
  white-space: pre;
  pointer-events: none;
  user-select: none;
}

/* The number under it, drawn the same way. Sized and placed by js/logo-field.js. */
.logo-phone {
  position: fixed;
  display: block;
  margin: 0;
  overflow: hidden;
  opacity: .5;
  font-family: var(--mono);
  letter-spacing: 0;
  white-space: pre;
  pointer-events: none;
  user-select: none;
  visibility: hidden;
}

/* The R of the large logo's ®: background colour, at full strength, so it reads as cut out. */
.logo-reg {
  position: fixed;
  transform: translate(-50%, -50%);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: bold;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  visibility: hidden;
}


/* Its tones, darkest to brightest. */
.tone-0 { color: #2f5a2f; }
.tone-1 { color: #5ea75e; }
.tone-2 { color: #93cc8f; }
.tone-3 { color: #dcf5d6; }

/* Painted after the background, so the page sits on top of it. */
.topbar, .shell, .keys { position: relative; }

.stage { min-width: 0; }

/* ---------- Top: the ticker ---------- */

.topbar.ticker {
  display: block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
}

.ticker-item { flex: none; padding-left: 1.5rem; }

.ticker-item::after { content: "///"; padding-left: 2.5rem; color: var(--faint); }

/* The attention battery in the ticker: a small copy of the old Transmissions meter, nub on the
   left, filled with the same green stripes to the attention level (js/ticker.js). */
.ticker-battery {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  width: 1.5em;
  height: .72em;
  margin: 0 .5em 0 .25em;
  padding: .1em;
  border: max(1px, .08em) solid var(--green-light);
  vertical-align: -.05em;
  box-sizing: border-box;
}
.ticker-battery::before {
  content: "";
  position: absolute;
  left: -.22em;
  top: 25%;
  height: 50%;
  border-left: .12em solid var(--green-light);
}
.ticker-battery i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(115deg, var(--green) 0 .12em, transparent .12em .2em);
}

/* Low battery: the outline and fill turn amber and the cell blinks slowly (js/ticker.js). */
.ticker-battery.is-low { border-color: #e0a23a; animation: battery-low 1.4s steps(1, end) infinite; }
.ticker-battery.is-low::before { border-left-color: #e0a23a; }
.ticker-battery.is-low i { background: repeating-linear-gradient(115deg, #e0a23a 0 .12em, transparent .12em .2em); }
@keyframes battery-low { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }

/* ---------- Reboot: the battery at 0% (js/reboot.js) ---------- */

.reboot { position: fixed; inset: 0; z-index: 10000; pointer-events: all; cursor: none; }
/* The CRT switching off: the picture flashes, collapses to a bright line, then a dot, then dark. */
.reboot-crt { position: absolute; inset: 0; background: #000; opacity: 0; }
.reboot-crt::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 100%;
  background: #e9ffe9; box-shadow: 0 0 2rem #b4d6b4; transform: translateY(-50%) scale(1, 1); opacity: 0;
}
.reboot.is-off .reboot-crt { animation: crt-black 1.4s forwards; }
.reboot.is-off .reboot-crt::after { animation: crt-off 1.2s cubic-bezier(.6, 0, .4, 1) forwards; }
@keyframes crt-black { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 1; } }
@keyframes crt-off {
  0% { opacity: .9; transform: translateY(-50%) scale(1, 1); }
  35% { opacity: 1; transform: translateY(-50%) scale(1, .004); }
  70% { opacity: 1; transform: translateY(-50%) scale(.004, .004); }
  100% { opacity: 0; transform: translateY(-50%) scale(0, 0); }
}
/* From the moment the screen goes dark (20 NOV): the site's static, darker and tinted a cold blue, the dead
   channel the system boots back up on. Same tile and same jump as .static. */
.reboot-static {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-color: var(--reboot-tint, #2f5fd0);
  background-image: var(--static);
  background-blend-mode: multiply; /* the grey noise takes on the tint */
  background-size: 256px 256px;
  image-rendering: pixelated;
}
.reboot.is-off .reboot-static {
  animation: reboot-static-in .1s .1s forwards, static .5s steps(1, end) infinite;
}
@keyframes reboot-static-in { to { opacity: var(--reboot-static, .24); } }
@media (prefers-reduced-motion: reduce) { .reboot.is-off .reboot-static { animation: reboot-static-in .1s .1s forwards; } }
.reboot-text {
  position: absolute; left: 6vw; top: 8vh; margin: 0;
  font: 1rem/1.7 var(--mono); color: var(--green-light);
  text-shadow: 0 0 .15em rgb(180 214 180 / .6), 0 0 .5em rgb(94 167 94 / .35);
  filter: blur(.5px); /* soft, like phosphor on old glass (20 NOV) */
}
.reboot-text::after { content: "\2588"; animation: blink-cursor 1s steps(1, end) infinite; }
@keyframes blink-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Left: the directory tree ---------- */

.sidebar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.4rem 0 2rem 1.9rem; /* bottom: the gap between CONTACT/ and the key bar */
  font-size: .966rem; /* 15% up from .84rem; the tree and its logo scale from this */
  line-height: 1.6em;
  letter-spacing: 0;
  transition: transform .55s var(--fold);
}

/* Same footprint the old logo image had, so the tree below doesn't move. */
.logo { display: block; width: 6.6em; height: 2.71em; color: inherit; text-decoration: none; }

/* Sized by .logo, not by its own (tiny) type. */
.logo-mini {
  display: grid;
  place-items: center start;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--mono);
  letter-spacing: 0;
  white-space: pre;
  /* It's made of real characters; don't let clicks select them. */
  user-select: none;
  -webkit-user-select: none;
}

.menu-toggle {
  position: absolute;
  top: 3.75rem;
  left: 1.5rem;
  /* A boxed X, like the practices' and receipts' close boxes. */
  padding: .05rem .42rem;
  background: none;
  border: 1px solid var(--ghost-lit);
  border-radius: 0;
  color: var(--ghost-lit-x); /* a ghost, lit a little for the background */
  font: .8rem/1.2rem var(--mono);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.menu-toggle:hover,
.menu-toggle:focus-visible { border-color: var(--ink); color: var(--ink); }

.menu { flex: 1; min-height: 0; overflow: hidden auto; scrollbar-width: none; }

.menu::-webkit-scrollbar { display: none; }

.tree, .tree ul { list-style: none; margin: 0; padding: 0; }

.tree { --branch: 1.65em; --indent: 2.2em; padding-left: .1em; transition: padding-top .55s var(--fold); }

.tree ul { --branch: 1.75em; --indent: 2.45em; margin-left: .1em; transition: margin-left .55s var(--fold); }

.node { position: relative; padding-left: var(--indent); transition: padding .55s var(--fold); }

.node::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-left: var(--line) solid var(--tree-line);
  transition: bottom .55s var(--fold), opacity .35s;
}

.node:last-child::before { bottom: auto; height: calc(var(--row) / 2); }

.node::after {
  content: "";
  position: absolute;
  top: calc(var(--row) / 2);
  left: 0;
  width: var(--branch);
  border-top: var(--line) solid var(--tree-line);
  transition: width .55s var(--fold), opacity .35s;
}

.node.is-group:not(:last-child) { padding-bottom: 1.15em; }

.row {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  height: var(--row);
  overflow: hidden;
  /* Room for the bracketed word's box at either end. */
  margin-left: -.6em;
  padding: 0 1.25em 0 .6em;
  background: none;
  border: 0;
  color: var(--tree-light);
  text-align: left;
  text-decoration: none;
  text-shadow: 0 0 .15em rgb(212 232 207 / .55), 0 0 .5em rgb(212 232 207 / .2); /* a tight halo, then the soft glow */
  white-space: nowrap;
  cursor: pointer;
  /* Closing the view: unfold from the top down, once the copy has cleared. */
  transition: height .45s var(--fold) calc(.15s + var(--i, 0) * 14ms),
    opacity .3s calc(.15s + var(--i, 0) * 14ms);
}

/* Every row's text is the same light grey as TX-0000_ORIENTATION (18 NOV): headings, practices
   and the current page. Locked items still refuse the click. */
.row.is-group { cursor: default; }
.row.is-locked { cursor: pointer; } /* clickable: it answers with a sound and a logo glitch (20 NOV) */
/* Locked items read darker (20 NOV): the colour of the tree's own lines, with a fainter glow. */
.row.is-locked { color: var(--tree-line); text-shadow: 0 0 .15em rgb(212 232 207 / .2); }

/* Hover and active: DEEP TINT, LINK TEXT (picked 20 NOV from concept/tree-hover.html, option J;
   replaced the 19 NOV chevrons). A very dark green box behind the row; the text keeps the tree's
   own grey and glow. Active means the practice open in the centre right now. */
.row:not(.is-group):not(.is-locked):is(:hover, :focus-visible) { outline: none; }
/* The lit word: [ PERCEPTION/ ] around the label (not the icon), a full space inside each bracket
   like the agent's [ SELF ], with the box behind from bracket stroke to bracket stroke and the
   brackets' height. The word's padding holds "[ " and " ]"; its negative margin keeps the text
   in place at rest. Lit, the word steps right to make room for "[ " (a small, deliberate jump). */
.row-word {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  margin: 0 -1.2em;
  padding: 0 1.2em;
}
/* Lit: after an icon the word steps .55em right so "[ " clears it; with no icon, .65em so it
   clears the end of the tree's connector line. */
.row:not(.is-group):not(.is-locked):is(:hover, :focus-visible) .row-word,
body:not(.in-tx):not(.in-practice) .row[aria-current] .row-word,
body[data-practice="perception"] .row[data-id="perception"] .row-word,
body[data-practice="recalibration"] .row[data-id="recalibration"] .row-word,
body[data-practice="energy-release"] .row[data-id="energy-release"] .row-word { margin-left: -.65em; }
.row:not(.is-group):not(.is-locked):not(:has(.slot)):is(:hover, :focus-visible) .row-word,
body:not(.in-tx):not(.in-practice) .row[aria-current]:not(:has(.slot)) .row-word { margin-left: -.55em; }
.row-word::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: .17em;
  right: .17em;
  top: calc(50% - .422em);
  height: .9567em;
  background: var(--row-tint);
  box-shadow: 0 0 1.6px var(--row-tint); /* soft edge, drawn soft from the first frame (a blur filter showed sharp, then settled) */
  opacity: 0;
  transition: opacity .12s ease-out; /* eases on rather than popping */
  pointer-events: none;
}
.row-br {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .12s ease-out;
  pointer-events: none;
}
.row-br.l { left: 0; }
.row-br.r { right: 0; }
.row:not(.is-group):not(.is-locked):is(:hover, :focus-visible) .row-br,
body:not(.in-tx):not(.in-practice) .row[aria-current] .row-br,
body[data-practice="perception"] .row[data-id="perception"] .row-br,
body[data-practice="recalibration"] .row[data-id="recalibration"] .row-br,
body[data-practice="energy-release"] .row[data-id="energy-release"] .row-br { opacity: 1; }

/* Lit, the word and its brackets turn the agent buttons' glowing green ([ SELF ] [ DV5T ]). */
.row:not(.is-group):not(.is-locked):is(:hover, :focus-visible) .row-word,
body:not(.in-tx):not(.in-practice) .row[aria-current] .row-word,
body[data-practice="perception"] .row[data-id="perception"] .row-word,
body[data-practice="recalibration"] .row[data-id="recalibration"] .row-word,
body[data-practice="energy-release"] .row[data-id="energy-release"] .row-word {
  color: var(--green);
  text-shadow: 0 0 .3em rgb(94 167 94 / .75);
}

.row:not(.is-group):not(.is-locked):is(:hover, :focus-visible) .row-word::before,
body:not(.in-tx):not(.in-practice) .row[aria-current] .row-word::before,
body[data-practice="perception"] .row[data-id="perception"] .row-word::before,
body[data-practice="recalibration"] .row[data-id="recalibration"] .row-word::before,
body[data-practice="energy-release"] .row[data-id="energy-release"] .row-word::before {
  opacity: 1;
  /* Unsteady (20 NOV): while lit, the box's brightness wavers in and out, ever so slightly and
     never in a pattern you can settle into. The text doesn't move or change. */
  animation: row-waver 6s ease-in-out infinite;
}
@property --row-tint { syntax: '<color>'; inherits: false; initial-value: #173a1e; }
@keyframes row-waver {
  /* Calm for the first second: it restarts on every roll-over, so no blip at the start. */
  0%   { --row-tint: #173a1e; }
  21%  { --row-tint: #173a1e; }
  29%  { --row-tint: #1a4021; }
  31%  { --row-tint: #14331a; }
  44%  { --row-tint: #183c1f; }
  55%  { --row-tint: #1c4524; }
  61%  { --row-tint: #16371c; }
  77%  { --row-tint: #19401f; }
  81%  { --row-tint: #133119; }
  90%  { --row-tint: #183b1f; }
  100% { --row-tint: #173a1e; }
}

.row-label { overflow: hidden; text-overflow: ellipsis; }

.slot {
  flex: none;
  display: flex;
  align-items: center;
  width: 1.75em;
  overflow: hidden;
  transition: width .55s var(--fold), opacity .25s;
}

.slot svg { display: block; width: .85em; height: .85em; }

/* The lock on a locked item (INTRO TO SHAPESHIFTING) in the buttons' glowing green (.slip-x), while
   its words stay the darker locked grey. Its slot lets the glow show past its edge. */
.row.is-locked .slot { overflow: visible; }
.row.is-locked .slot svg { color: var(--green); filter: drop-shadow(0 0 .25em rgb(94 167 94 / .75)); }

/* The bolt and wave are thin shapes, so they're drawn 50% larger to carry the same weight. */
.slot svg.big { width: 1.28em; height: 1.28em; margin-left: -.2em; }

.is-open > .slot .arrow,
.in-tx .row[data-id="transmissions"] .slot .arrow { transform: rotate(90deg); }

/*
 * Unsteady signal: every connector and label gives one quick flicker, then holds
 * steady for a long while, each on its own clock so they never move together.
 * Only filter and transform are animated, so the Transmissions fold still works.
 * Each line flickers every 4-8 seconds (about 6); each flicker lasts about a quarter second.
 */
.node::before,
.row-label,
.logo-mini {
  animation: unsteady calc(4s + var(--seed, .5) * 4s) steps(1, end) calc(var(--seed, .5) * -8s) infinite;
}

.node::after {
  animation: unsteady-across calc(4.5s + var(--seed, .5) * 3.5s) steps(1, end) calc(var(--seed, .5) * -7s) infinite;
}

@keyframes unsteady {
  0% { filter: none; transform: none; }
  1% { filter: opacity(.7); }
  2% { filter: none; transform: translateX(.6px); }
  3% { transform: none; }
  4% { filter: opacity(.85) blur(.3px); }
  5% { filter: none; }
  100% { filter: none; transform: none; }
}

@keyframes unsteady-across {
  0% { filter: none; transform: none; }
  1% { filter: opacity(.65); }
  2% { filter: none; transform: translateY(.5px); }
  3% { transform: none; }
  4% { filter: opacity(.85) blur(.3px); }
  5% { filter: none; }
  100% { filter: none; transform: none; }
}


/* ---------- Center: the Representative ---------- */

.console {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 1.5rem 3.4rem 0;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: radial-gradient(ellipse 62% 56% at 50% 60%, rgb(94 167 94 / .13), transparent 100%);
  transition: opacity .35s .3s; /* Coming back: return after the tree starts to unfold. */
}

.log {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding-bottom: .4rem;
  overflow-y: auto;
  scrollbar-width: none;
}

.log::-webkit-scrollbar { display: none; }

/* Messages sit just above the input and push upward as the chat grows. */
.log::before { content: ""; flex: 1; }

.line {
  flex: none;
  margin: 0 0 1rem;
  color: var(--ink);
  font: 1.12rem/1.65rem var(--chat);
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.line.echo {
  color: var(--soft);
  font: .82rem/1.65rem var(--mono);
  text-transform: uppercase;
}

.choices { display: flex; flex: none; gap: 2.4rem; margin: .4rem 0; }

/* Plain bracketed text: [ YES ]  [ NO ]. The one the keyboard has picked is a little brighter. */
.choice {
  padding: 0;
  background: none;
  border: 0;
  color: var(--green);
  font: .966rem/1.5rem var(--mono);
  letter-spacing: 0;
  white-space: pre;
  cursor: pointer;
}

.choice:hover,
.choice.is-selected { color: var(--ink); }

/* The opening inquiry menu: one `> QUESTION` per line, a long one wrapping under its own text. */
.choices.is-list { flex-direction: column; align-items: flex-start; gap: 0; }
.choices.is-list .choice { white-space: pre-wrap; text-align: left; padding-left: 2ch; text-indent: -2ch; }
.choice:focus-visible { outline: none; }

.prompt {
  display: flex;
  flex: none;
  align-items: center;
  gap: .9rem;
  height: 3.8rem;
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
  letter-spacing: 0;
}

.field { position: relative; flex: 1; min-width: 0; }

.field input {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  caret-color: transparent;
  text-transform: uppercase;
}

.cursor {
  position: absolute;
  top: 50%;
  left: 0;
  width: .1rem;
  height: 1.25rem;
  background: var(--ink);
  transform: translateY(-50%);
  animation: blink 1.1s steps(1) infinite;
  pointer-events: none;
}

@keyframes blink { 50% { opacity: 0; } }

.stats {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 2.1rem;
  border-top: 1px solid var(--rule);
  color: var(--soft);
}

.stats b { font-weight: normal; }

/* ---------- Right: the ad slot and bulletins ---------- */

.right { display: flex; flex-direction: column; min-height: 0; } /* no panel: the background static runs behind the agent too (18 NOV) */

/* The Energy Transfer notice, drawn in text by js/logo-field.js. Shaped like its artwork. */
.ad-art {
  display: grid;
  flex: none;
  place-items: center;
  width: 100%;
  aspect-ratio: 457.91 / 585.06;
  margin: 0;
  overflow: hidden;
  font-family: var(--mono);
  letter-spacing: 0;
  white-space: pre;
  user-select: none;
  -webkit-user-select: none;
}

.ad-label { display: flex; flex: none; justify-content: space-between; padding: .55rem 1.5rem; }

.bulletins {
  flex: 1;
  min-height: 0;
  padding: .9rem 1.5rem .4rem;
  overflow-y: auto;
  border-top: 1px solid var(--rule);
  scrollbar-width: thin;
  scrollbar-color: var(--green) transparent;
}

.bulletins p { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); margin: 0 0 .7rem; color: var(--ink); }

.bulletins span { color: var(--faint); }

/* ---------- Practices: the function keys, played in the centre ---------- */

.stage { position: relative; min-width: 0; }

.keys .live { cursor: pointer; }

.keys .live:hover,
.keys .live:focus-visible { color: var(--ink); }

/* While a practice is open the centre logo steps aside, as it does for the intro. */
.in-practice .logo-field,
.in-practice .logo-phone,
.in-practice .logo-reg,
.in-page .logo-field,
.in-page .logo-phone,
.in-page .logo-reg { opacity: 0 !important; }

/* The Representative stays during a practice, dimmed by 90% so it doesn't compete. */
.right .console { transition: opacity .6s ease; }
.in-practice .right .console { opacity: .1; }

.practice {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(30rem, 92%);
  transform: translate(-50%, -50%);
  color: var(--green);
  font: .966rem/1.5rem var(--mono);
  letter-spacing: 0;
}

.practice[hidden] { display: none; }

.pr-kicker { margin: 0 0 .2rem; color: var(--green-light); }

.pr-title { color: var(--ink); }

.pr-head { display: flex; justify-content: space-between; padding-bottom: .4rem; border-bottom: 1px solid var(--rule); color: var(--green-light); }

.pr-note,
.pr-status { margin: .9rem 0; color: var(--soft); }


/* Energy Release: the headline and note cross-fade from the identify step to the hold step. */
.practice .pr-title,
.practice > .pr-note { transition: opacity .35s; }
.practice.typing .pr-title,
.practice.swapping .pr-title,
.practice.swapping > .pr-note { opacity: 0; }

/* Energy Release: one instruction spot above the box, sized for the longest (two lines) so the box never moves. */
#et-note { min-height: 2lh; }

.pr-white { color: var(--ink); } /* a reading set apart in white */

/* Perception's final explanation (js/perception.js): the heading in white, two plain paragraphs,
   one sentence: the term in italics, everything else plain. */
.pc-explain .pr-note { margin: 0 0 .9rem; }
.pc-explain .pc-term { font-style: italic; }
/* THIS IS OUR OWN REALITY. reads exactly like the rest of the sentence (19 NOV). */

/* RELEASED.: an overdriven phosphor flare that blooms brighter than anything on screen, then settles to white. */
.pr-flare {
  display: inline-block;
  color: var(--ink);
  animation: phosphor-flare 2.4s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes phosphor-flare {
  0%   { color: #fff; text-shadow: 0 0 2px #fff, 0 0 8px #fff, 0 0 18px var(--green), 0 0 36px var(--green); filter: brightness(1.6); }
  12%  { color: #fff; text-shadow: 0 0 1px #fff, 0 0 6px #fff, 0 0 16px var(--green), 0 0 30px var(--green); filter: brightness(1.4); }
  55%  { color: #fff; text-shadow: 0 0 4px rgba(255, 255, 255, .5), 0 0 12px rgba(255, 255, 255, .15); filter: brightness(1.1); }
  100% { color: var(--ink); text-shadow: 0 0 0 transparent; filter: none; }
}

@media (prefers-reduced-motion: reduce) { .pr-flare { animation: none; color: var(--ink); } }

/* The hold button arrives with the hold step. */
#et-hold { transition: opacity .5s; }
#et-hold[style*="hidden"] { opacity: 0; transition: none; }

.pr-field { border: 1px dashed var(--rule); transition: border-color .3s; }
/* Fine print under the box (24 NOV): *THIS OFFICE DOES NOT READ IT.*, legal-size and dim. */
.pr-legal { margin: .45rem 0 0; font-size: .64em; letter-spacing: .12em; color: var(--faint); transition: opacity .35s; }
.practice.step-hold .pr-legal { opacity: 0; }

.pr-field textarea,
.pr-dissolve {
  display: block;
  width: 100%;
  min-height: 9rem;
  padding: .7rem .8rem;
  color: var(--ink);
  font: inherit;
  text-transform: uppercase;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.pr-field textarea { background: none; border: 0; outline: 0; resize: none; caret-color: var(--green); }

/* Holding on: the words brighten and the frame firms up. */
.holding .pr-field { border-color: var(--green); border-style: solid; }

.holding .pr-field textarea { color: #fff; text-shadow: 0 0 .4em var(--green); }

.pr-actions { display: flex; gap: 2.4rem; margin-top: .4rem; }

.pr-btn {
  padding: 0;
  background: none;
  border: 0;
  color: var(--green);
  font: inherit;
  white-space: pre;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.pr-btn:hover,
.pr-btn:focus-visible { color: var(--ink); }

.pr-btn.quiet { color: var(--faint); }

/* Under a receipt: PRINT and EMAIL side by side, the next one on the line below. */
.slip-actions { flex-wrap: wrap; row-gap: .5rem; }

.slip-actions .next-line { flex-basis: 100%; text-align: left; }

/* Every receipt's way out: a boxed X in the buttons' glowing green, at the receipt's top right
   (19 NOV). It replaced both the faint corner X and the worded back button under the slip. */
.slip-x {
  display: inline-block;
  padding: .05rem .42rem;
  border: 1px solid currentColor;
  font: .8rem/1.2rem var(--mono);
  text-shadow: 0 0 .3em rgb(94 167 94 / .75);
  box-shadow: 0 0 .35em rgb(94 167 94 / .4), inset 0 0 .3em rgb(94 167 94 / .25);
}

.practice-wide { width: min(32rem, 96%); }

/* Recalibration's breathing screen comes up like an 80s terminal: hard cuts, no easing. Each part
   is simply off, then on. The header flashes once in reverse video as it lands, and
   the scope prints row by row, top to bottom, the way a slow screen redraws. */
/* Reading order, top to bottom, the way a terminal draws a screen: */
.rc-in .pr-head { --rv: color-mix(in srgb, var(--ink) 40%, var(--bg)); animation: rc-land .16s steps(1, end) both; } /* 0: header lands */
.rc-in .rc-scope { animation: rc-print .44s steps(11, end) .2s both; }   /* the scope prints row by row */
.rc-in .rc-progress { animation: rc-on 0s .7s both; }                   /* its floor line */
.rc-in .rc-l1 { animation: rc-on 0s .9s both; }                         /* instructions, a line at a time */
.rc-in .rc-l2 { animation: rc-on 0s 1.05s both; }
.rc-in .rc-hold { animation: rc-on 0s 2.05s both; }                     /* the label, a beat after its frame */
.rc-in .rc-hold::before,
.rc-in .rc-hold::after { animation: rc-on 0s 1.8s both; }              /* the four crosses mark the target (0.75 s after the text) */

/* Breathing screen: the instructions on the left; the hold button centred in the space beside them,
   a large target as tall as the two lines, its corners marked with crosses that sit on those lines. */
.rc-row { display: flex; align-items: center; gap: 1.5rem; margin: .9rem 0; }
.rc-row > .pr-note { margin: 0; flex: none; }
.rc-row > .pr-actions { margin: 0; flex: 1; justify-content: center; }
.rc-hold { position: relative; width: 60%; height: 3rem; line-height: 3rem; text-align: center; }
.rc-hold::before,
.rc-hold::after {
  content: '+\A+';
  position: absolute;
  top: 0;
  white-space: pre;
  line-height: 1.5rem;
  color: var(--green);
  pointer-events: none;
}
.rc-hold::before { left: 0; }
.rc-hold::after { right: 0; }

/* The last exhale: the header and the instructions cut out; only the scope and the EXHALE target remain. */
.rc-out .pr-head,
.rc-out .pr-head *,
.rc-out .rc-row > .pr-note,
.rc-out .rc-row > .pr-note * { animation: none; visibility: hidden; }
.rc-out .rc-hold:disabled { opacity: 1; cursor: default; }

/* Off until its moment, then on. */
/* Perception clock: TIMING... dots fill one at a time while the observer counts. The cycle is
   deliberately 1.4s, not a second, so it can't be used to count. */
.pc-dots i { font-style: normal; visibility: hidden; animation: pc-dot 1.4s steps(1, end) infinite; }
.pc-dots i:nth-child(1) { animation-name: pc-dot1; }
.pc-dots i:nth-child(2) { animation-name: pc-dot2; }
.pc-dots i:nth-child(3) { animation-name: pc-dot3; }
@keyframes pc-dot1 { 0%, 25% { visibility: hidden; } 25.01%, 100% { visibility: visible; } }
@keyframes pc-dot2 { 0%, 50% { visibility: hidden; } 50.01%, 100% { visibility: visible; } }
@keyframes pc-dot3 { 0%, 75% { visibility: hidden; } 75.01%, 100% { visibility: visible; } }
@media (prefers-reduced-motion: reduce) { .pc-dots i { animation: none; visibility: visible; } }

/* Perception: each item prints on block by block (delays set in perception.js render()); each answer prints on, then [ CONTINUE ] follows.
   The negative insets keep the X box above the header from being clipped. */
.pc-land { animation: pc-print .6s steps(12, end) both; }
.pc-follow { animation: rc-on 0s .9s both; }
/* Printed on in twelve hard blocks, left to right: a terminal revealing, not a smooth wipe. */
@keyframes pc-print { from { clip-path: inset(-6rem 100% -.5rem 0); } to { clip-path: inset(-6rem -1rem -.5rem 0); } }
@media (prefers-reduced-motion: reduce) { .pc-land, .pc-follow { animation: none; } }

@keyframes rc-on { from { visibility: hidden; } to { visibility: visible; } }

/* Off, then one frame in reverse video, then normal. */
@keyframes rc-land {
  0%   { visibility: hidden; }
  1%   { visibility: visible; background: var(--rv); color: var(--bg); box-shadow: 0 0 0 .2rem var(--rv); }
  50%  { visibility: visible; background: transparent; color: inherit; box-shadow: none; }
  100% { visibility: visible; }
}

/* Row by row: eleven rows, eleven hard steps. */
@keyframes rc-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  .rc-in .pr-head, .rc-in .rc-progress, .rc-in .rc-scope, .rc-in .rc-l1, .rc-in .rc-l2, .rc-in .rc-hold, .rc-in .rc-hold::before, .rc-in .rc-hold::after { animation: none; }
}

/* The question line with its boxed ?, and the reference note it opens. */
.rc-ask { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; }

.rc-ask p { margin: 0; }

.rc-ref-btn {
  flex: none;
  padding: .05rem .42rem;
  background: none;
  border: 1px solid var(--green);
  border-radius: 0;
  color: var(--green);
  font: .8rem/1.2rem var(--mono);
  cursor: pointer;
}

.rc-ref-btn:hover,
.rc-ref-btn:focus-visible,
.rc-ref-btn[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); }

.rc-ref { margin: 0 0 1rem; padding: .7rem .9rem; border: 1px dashed var(--green); color: var(--soft); font-size: .84rem; line-height: 1.3rem; }

.rc-ref p { margin: 0 0 .5rem; }

.rc-ref p:last-child { margin: 0; }

.rc-ref .rc-ref-head { color: var(--ink); }

/* Recalibration: the reading scale, the scope and the illusion. */
.rc-scale { display: flex; justify-content: space-between; }

.rc-progress { height: 2px; margin: .9rem 0; background: var(--tree-dim); }

.rc-progress-fill { width: 0; height: 100%; background: var(--green); }

.rc-scope { margin: .4rem 0; color: var(--green); font: .9rem/1.05rem var(--mono); white-space: pre; }

.rc-figure { margin: 1rem 0; color: var(--ink); font: .966rem/1.3rem var(--mono); white-space: pre; }

.receipt { position: relative; width: fit-content; margin: 0 0 1rem; color: var(--ink); font: .9rem/1.35rem var(--mono); }

/* A small boxed X at the receipt's top right, in the style of the function keys. */
.receipt-x {
  position: absolute;
  top: 0;
  right: 0;
  padding: .05rem .42rem;
  background: none;
  border: 1px solid var(--ghost);
  border-radius: 0;
  color: var(--ghost-x); /* a ghost: present, without weight */
  font: .8rem/1.2rem var(--mono);
  cursor: pointer;
}

.pr-head { align-items: center; }

.pr-head-end { display: flex; align-items: center; gap: .9rem; white-space: nowrap; flex-shrink: 0; }

/* A headline long enough to wrap keeps the form number on its last line. */
.practice .pr-head { align-items: flex-end; gap: 1.5rem; }

/* Practices and pages: the close box sits right aligned above the form, two box heights clear of the header row. */
.practice .pr-head { position: relative; }
.practice .pr-head .pr-x { --box: 1.5rem; position: absolute; right: 0; bottom: calc(100% + 2 * var(--box)); height: var(--box); }
/* EMPLOYMENT only: the close box sits lower, one box height clear of the header row (19 NOV). */
.page[data-page="employment"] .pr-head .pr-x { bottom: calc(100% + var(--box)); }

/* The form's own close box, same as the receipt's but sitting in the header row. */
.pr-x {
  padding: .05rem .42rem;
  background: none;
  border: 1px solid var(--ghost-lit);
  border-radius: 0;
  color: var(--ghost-lit-x); /* a ghost, lit a little for the background */
  font: .8rem/1.2rem var(--mono);
  cursor: pointer;
}

.pr-x:hover,
.pr-x:focus-visible,
.receipt-x:hover,
.receipt-x:focus-visible { border-color: var(--ink); color: var(--ink); }
.receipt-x.slip-x { border-color: currentColor; color: var(--green); }
.receipt-x.slip-x:hover, .receipt-x.slip-x:focus-visible { color: var(--ink); }

.receipt .slip { margin: 0; font: inherit; white-space: pre; }

/* Mind, body, sight and sound, centred above the slip; drawn in the slip's colour. */
.receipt-marks {
  width: 50%;
  aspect-ratio: 563.07 / 82.33;
  margin: 0 auto 1.2rem;
  background: currentColor;
  -webkit-mask: url(assets/icons.svg) center / contain no-repeat;
  mask: url(assets/icons.svg) center / contain no-repeat;
}

/* Printing the receipt prints only the receipt, black on white. */
@media print {
  body.printing-receipt * { visibility: hidden !important; }
  body.printing-receipt #receipt,
  body.printing-receipt #receipt * { visibility: visible !important; }
  body.printing-receipt #receipt { position: fixed; top: 0; left: 0; color: #000; }
  body.printing-receipt .receipt-x { display: none; }
  body.printing-receipt .receipt-marks { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Right: the Representative ---------- */

/* Same column as before. The chat starts at the top, level with the logo on the tree, and
   js/main.js sets its height so the input sits level with the last line of the tree. */
.right .console {
  flex: 1;
  padding: 1.4rem 1.5rem 0;
  border: 0;
  background: none;
}

/* The vertical rule separating the agent: from the first line of text down to the counters. */
.right .console::before {
  content: '';
  position: absolute;
  top: var(--chat-top, 1.4rem);
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--tree-line);
}

.right .log::before { content: none; }

/* Same type as the tree: Monaco at the tree's size. */
.right .line { font-family: var(--mono); font-size: .966rem; line-height: 1.5rem; letter-spacing: 0; margin-bottom: .9rem; }

.right .line.echo { font-size: .966rem; line-height: 1.5rem; }

.right .stats { gap: .5rem; height: 1.6rem; font-size: .54rem; letter-spacing: 0; }

.right .stats span { white-space: nowrap; }

/* The Representative is the newer layer, like the tree: the tree's whites and greys, while
   everything around them stays on the old green. (Tried in green 12 NOV: var(--green),
   color-mix(in srgb, var(--green) 72%, #090c0a), var(--faint).) */
.right {
  --agent-text: var(--tree-white);
  --agent-soft: var(--tree-light);
  --agent-dim: var(--tree-dim);
}

.right .console { color: var(--agent-soft); }

.right .line { color: var(--agent-text); }

.right .line.echo { color: var(--agent-soft); }

/* Opening readout: locked-tree grey at half strength. */
.right .line.readout { color: var(--tree-line); text-shadow: 0 0 .15em rgb(212 232 207 / .2); opacity: .5; }
/* The OR between the orientation and the inquiry: a full line above it, as the blank line had. */
.right .line.or { margin-top: .6rem; }

/* The agent's buttons in the receipts' glowing green (.slip-x), all alike at rest. Hovered or
   picked with the keys, the tree's lit box comes up behind (the same tint and waver as .row). */
.right .choice { position: relative; isolation: isolate; color: var(--green); text-shadow: 0 0 .3em rgb(94 167 94 / .75); }

/* The box is its own layer behind the text so its edges can be soft and the text stays sharp.
   13.25px tall at this size, bottom set on the brackets; inset .173em each side (the glyphs'
   blank edge) so it ends at the bracket strokes. */
.right .choice::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: .173em;
  right: .173em;
  top: .354em;
  height: .9567em;
  background: var(--row-tint);
  box-shadow: 0 0 1.6px var(--row-tint); /* soft edge, drawn soft from the first frame (a blur filter showed sharp, then settled) */
  opacity: 0;
  transition: opacity .12s ease-out; /* eases on rather than popping */
  pointer-events: none;
}

.right .choice:hover::before,
.right .choice:focus-visible::before,
.right .choice.is-selected::before {
  opacity: 1;
  animation: row-waver 6s ease-in-out infinite;
}

.right .prompt,
.right .stats { border-top-color: var(--tree-line); }

.right .field input { color: var(--agent-text); }

.right .cursor { background: var(--agent-text); }

.right .stats { color: var(--agent-dim); }

/* The same unsteady flicker as the tree, a little less often: each line, the choices, the
   input line and the counters blip on their own clock, every 6-11 seconds. */
.right .line,
.right .choices,
.right .prompt,
.right .stats {
  animation: unsteady calc(6s + var(--seed, .5) * 5s) steps(1, end) calc(var(--seed, .5) * -11s) infinite;
}

/* ---------- Transmissions view ---------- */

.tx {
  --x-trunk: 6.27rem;
  --x-text: 9.1rem;
  --top: 11.6rem;
  /* The next transmission waits at the bottom edge, showing only its title and first line. */
  --peek: 3.5rem;
  --pitch: calc(100vh - var(--top) - var(--peek));
  position: fixed;
  inset: 0;
  z-index: 1;
  font-size: 1.04rem;
  line-height: 1.6rem;
  letter-spacing: 0;
  visibility: hidden;
  transition: visibility 0s .6s;
}

.tx-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .45s, transform .45s;
}

.tx-media > img,
.tx-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s;
}

.tx-media > .is-front { opacity: 1; }

/* The drum lens (js/transmissions.js): draws the backgrounds bent over the reel, on top of the flat ones. */
.tx-media > .tx-lens { position: absolute; inset: 0; width: 100%; height: 100%; }


.tx-trunk {
  position: absolute;
  top: 8.7rem;
  bottom: 0;
  left: var(--x-trunk);
  border-left: max(1px, .09rem) solid var(--tree-line);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s, opacity .3s;
}

.tx-scroll {
  position: absolute;
  inset: 0;
  overflow: hidden auto;
  outline: 0;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--top);
  -webkit-mask-image: linear-gradient(to bottom, transparent 8.5rem, #000 11rem);
  mask-image: linear-gradient(to bottom, transparent 8.5rem, #000 11rem);
  transition: opacity .3s;
}

.tx-scroll::-webkit-scrollbar { display: none; }

.tx-list {
  padding-top: var(--top);
  padding-bottom: calc(100vh - var(--top) - var(--pitch));
  padding-bottom: calc(100dvh - var(--top) - var(--pitch));
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .15s, transform .15s;
}

.tx-item { position: relative; height: var(--pitch); scroll-snap-align: start; }

.tx-inner {
  position: absolute;
  top: 0;
  left: 0;
  padding-left: var(--x-text);
  transform-origin: var(--x-trunk) 0;
  transition: transform .55s cubic-bezier(.3, .7, .2, 1), opacity .55s;
}

.tx-item:not(.is-active) .tx-inner { transform: scale(.55); opacity: .38; cursor: pointer; }

/* The reel recentring itself on its middle copy (js/transmissions.js): no easing, so it can't be seen. */
.tx-jump .tx-inner { transition: none; }

.tx-figure {
  position: absolute;
  top: 1.7rem;
  left: calc(var(--x-trunk) - 1.25rem);
  width: .85rem;
  color: #fff;
  filter: drop-shadow(0 0 .2rem #fff);
}

.tx-figure svg { display: block; width: 100%; }

/* A transmission's own icon (js/transmissions.js ICONS) sits in the text column, stacked above the
   code line (01TX-DV5T_), a quarter bigger than it was beside the trunk. The branch moves down
   with the title it points to. */
.tx-figure.tx-icon { position: static; display: block; width: 1.375rem; margin-bottom: .55rem; }
.tx-icon ~ .tx-branch { top: calc(2.5rem + 1.68rem); }

.tx-branch {
  position: absolute;
  top: 2.5rem;
  left: var(--x-trunk);
  width: 1.7rem;
  border-top: max(1px, .09rem) solid var(--tree-line);
}

.tx-code { margin-top: .3rem; font-size: .45rem; line-height: .7rem; color: var(--green-light); }

.tx-title {
  margin: -.3rem 0 0; /* the code line sits close above it */
  font-family: "VCR OSD Mono", var(--mono);
  font-size: 3.15rem;
  font-weight: normal;
  line-height: 3.2rem;
  color: #f0fff2;
  text-shadow: 0 0 .1em #a6ffb9, 0 0 .35em var(--green);
}

/* A transmission that isn't out yet (data: locked): its text dims, and a small lock, about half the
   title's height, sits above the code line's "TX". */
.tx-item.is-locked .tx-code { position: relative; }
/* Centred over the code line's "TX" (its 3rd and 4th characters, so its middle is at 3ch). */
.tx-lock { position: absolute; bottom: calc(100% + .55rem); left: 3ch; width: 1.15rem; height: 1.15rem; transform: translateX(-50%); }
/* The lock at full strength in the palette's brightest green (the perception field's), glowing. */
.tx-lock { color: #00e63a; filter: drop-shadow(0 0 .12rem #00e63a) drop-shadow(0 0 .45rem rgb(0 230 58 / .6)); }
.tx-lock svg { display: block; width: 100%; height: 100%; }
/* Clicking a locked tape card flashes the lock: two hard blinks, then a bright flare that settles. */
.tx-lock.is-flashing { animation: tx-lock-flash .75s steps(1, end); }
@keyframes tx-lock-flash {
  0% { opacity: 1; filter: drop-shadow(0 0 .2rem #00e63a) drop-shadow(0 0 .9rem #00e63a); }
  15% { opacity: .1; }
  30% { opacity: 1; filter: drop-shadow(0 0 .2rem #00e63a) drop-shadow(0 0 .9rem #00e63a); }
  45% { opacity: .1; }
  60% { opacity: 1; filter: drop-shadow(0 0 .2rem #00e63a) drop-shadow(0 0 1.2rem #00e63a); }
}
.tx-item.is-locked .tx-code-text, .tx-item.is-locked .tx-title, .tx-item.is-locked .tx-copy { opacity: .4; }
/* Locked, the title's glow loses all its green: the same two glows as greys of equal brightness
   (#a6ffb9 -> #e7e7e7, --green -> #929292). */
.tx-item.is-locked .tx-title { text-shadow: 0 0 .1em #e7e7e7, 0 0 .35em #929292; }
/* Locked, its VIEW TRANSMISSION sits flat (no fill, no hum), and the telemetry goes to a 75% grey (75% K). */
.tx-item.is-locked .tx-play { background: none; animation: unsteady calc(18s + var(--seed, .5) * 18s) steps(1, end) calc(var(--seed, .5) * -36s) infinite; }
.tx-item.is-locked .tx-readout { color: #404040; }
/* ...and so does the whole tape card: its lines, its header, both buttons and their circles, with no
   glow and no hover. */
.tx-item.is-locked .tx-card,
.tx-item.is-locked .tx-card-head,
.tx-item.is-locked .tx-cell + .tx-cell { border-color: #404040; }
.tx-item.is-locked .tx-card-head,
.tx-item.is-locked .tx-cell,
.tx-item.is-locked .tx-cell .tx-cell-label,
.tx-item.is-locked .tx-cell .tx-cell-circle { color: #404040; border-color: #404040; filter: none; text-shadow: none; }
.tx-item.is-locked .tx-cell { cursor: default; opacity: 1; }
/* ...and the record sheet: the classification, the tags and their boxes, solid grey (not the 40% dim). */
.tx-item.is-locked .tx-copy { opacity: 1; }
.tx-item.is-locked .tx-copy, .tx-item.is-locked .tx-copy * { color: #404040; border-color: #404040; text-shadow: none; }

.tx-copy {
  width: 34rem;
  margin: 1.4rem 0 0; /* air under the title */
  font-size: .86rem;
  letter-spacing: .14rem;
  line-height: 1.1rem;
  white-space: pre-line;
}

/* Each paragraph is its own block (js/transmissions.js), a blank line apart. */
.tx-para { display: block; }
.tx-para + .tx-para { margin-top: 1.1rem; }

/* A record sheet (js/transmissions.js, VOID since 18 NOV): one line per line, half-height gaps,
   the # tags in a grid of three rows, and two-column lines. Kept within the old copy's height. */
.tx-copy.is-sheet .tx-para + .tx-para { margin-top: .55rem; }
.tx-line { display: block; }
.tx-cols { display: flex; gap: 1.6rem; }
.tx-tags { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; justify-content: start; gap: .7rem 1.1rem; width: max-content; margin-top: .5rem; }
.tx-tags:first-child { margin-top: 0; }
/* The CLASSIFICATION line at the size of the code line above the title (.tx-code). */
.tx-class { font-size: .45rem; line-height: 1.3rem; letter-spacing: normal; }
.tx-class-value { font-size: .9rem; } /* INTERNAL OBSERVATION, twice the label's size (18 NOV) */
/* Each tag in a thin green box (18 NOV), no # in front. */
.tx-tag { justify-self: start; padding: .05rem .4rem; border: var(--line) solid var(--green); letter-spacing: .06rem; } /* tighter than the copy's .14rem */

/* The homepage's unsteady signal, on the Transmission too: code, title, each paragraph, the card's
   rows and the icon blip on their own clocks, but rarer than the homepage (every 18-36 seconds
   each, slowed 18 NOV). */
.tx-code, .tx-title, .tx-para, .tx-card-head, .tx-cell, .tx-readout, .tx-marks, .tx-figure svg {
  animation: unsteady calc(18s + var(--seed, .5) * 18s) steps(1, end) calc(var(--seed, .5) * -36s) infinite;
}

/* The Transmissions line flickers too: the trunk and each row's branch. These already use
   transform (the trunk unfolds with it), so their flicker moves with `translate` instead. */
.tx-trunk, .tx-branch {
  animation: unsteady-line calc(14s + var(--seed, .5) * 12s) steps(1, end) calc(var(--seed, .5) * -26s) infinite; /* every 14-26s */
}
@keyframes unsteady-line {
  0% { filter: none; translate: none; }
  1% { filter: opacity(.6); }
  2% { filter: none; translate: .6px 0; }
  3% { translate: none; }
  4% { filter: opacity(.8) blur(.3px); }
  5% { filter: none; }
  100% { filter: none; translate: none; }
}



/* The tape card at the end of each Transmission (js/transmissions.js), like the paper insert in a
   cassette case: a header strip with the code and the runtime, then VIEW TRANSMISSION and
   PREVIEW TRACK stacked under it. Just wide enough for the longest header (MEAT SUIT). */
/* Mind, body, sight and sound (assets/icons.svg, as on the receipts) under the tape card, small,
   in green; 4.8rem below it, three times the gap above the card (18 NOV). */
.tx-marks {
  width: 9.5rem; /* half the card's width (18 NOV) */
  aspect-ratio: 563.07 / 82.33;
  margin-top: 4.8rem;
  background: var(--green);
  -webkit-mask: url(assets/icons.svg) center / contain no-repeat;
  mask: url(assets/icons.svg) center / contain no-repeat;
}

/* The tape card with the telemetry readout to its right (18 NOV), tops level. */
.tx-deck { display: flex; align-items: flex-start; gap: 2.2rem; margin-top: 1.6rem; }
.tx-card { flex: none; width: 19rem; border: max(1px, .09rem) solid var(--tree-line); }
.tx-card-head {
  display: flex;
  justify-content: space-between;
  padding: .35rem .7rem;
  border-bottom: max(1px, .09rem) solid var(--tree-line);
  font-size: .6rem;
  letter-spacing: .12rem;
  line-height: 1rem;
  color: var(--tree-light);
}
/* The signal readout under the tape card: a size up from the card header's type, flush with the
   card's left edge, spacing kept as given. */
.tx-readout {
  margin: 0; /* beside the card now, its first line level with the card's top */
  font: inherit;
  font-size: .7rem;
  letter-spacing: .12rem;
  line-height: 1.15rem;
  color: var(--tree-light);
  white-space: pre;
}
.tx-card-cells { display: grid; } /* stacked: PREVIEW, then VIEW TRANSMISSION (swapped 18 NOV) */
.tx-cell {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem;
  background: none;
  border: 0;
  color: var(--green);
  font: inherit;
  font-size: .72rem;
  letter-spacing: .12rem;
  line-height: 1.2rem;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.tx-cell + .tx-cell { border-top: max(1px, .09rem) solid var(--tree-line); }
/* The introduction (data: intro, 23 NOV): the reel's opening entry. No PREVIEW and no readout:
   one wide VIEW TRANSMISSION, and under it a dim cue to scroll on, its arrow stepping down. */
.tx-item.is-intro .tx-card { width: 24rem; }
.tx-item.is-intro .tx-play { padding: .9rem .7rem; }
.tx-scroll-cue {
  margin-top: 2.2rem;
  font-size: .6rem;
  letter-spacing: .3rem;
  line-height: 1rem;
  color: var(--tree-light);
  opacity: .6;
}
.tx-scroll-cue span { display: inline-block; margin-left: .2rem; animation: tx-cue 1.6s steps(1, end) infinite; }
@keyframes tx-cue { 0% { transform: translateY(0); } 50% { transform: translateY(.25rem); } }
.tx-item:not(.is-active) .tx-scroll-cue { visibility: hidden; }

.tx-cell-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border: max(1px, .09rem) solid var(--green);
  border-radius: 50%;
  color: var(--green); /* the icon inside (green, 18 NOV) */
  /* A touch soft, like a screen, not a vector. */
  filter: blur(.5px) drop-shadow(0 0 .18rem rgb(94 167 94 / .7));
}
.tx-play .tx-cell-circle svg { display: block; width: .6rem; margin-left: .1rem; }
/* The words on both buttons are the telemetry's colour (18 NOV), white on hover; their circles and
   icons stay green. */
.tx-cell-label { color: var(--tree-light); }
.tx-cell:hover .tx-cell-label, .is-previewing .tx-preview .tx-cell-label { color: #fff; }
.tx-cell:hover .tx-cell-circle, .is-previewing .tx-preview .tx-cell-circle { border-color: var(--green-light); }

/* VIEW TRANSMISSION (18 NOV): a green fill on the left that fades to nothing on the right, light
   green text and mark, and a slow hum: the left edge breathes a little brighter and back every 2.6s.
   --hum is a registered property so the gradient itself can animate. */
@property --hum { syntax: '<percentage>'; inherits: false; initial-value: 10%; }
.tx-play {
  --hum: 10%;
  background: linear-gradient(90deg, color-mix(in srgb, #fff var(--hum), transparent), transparent);
  color: var(--green); /* green, like PREVIEW (18 NOV) */
  animation: tx-hum 2.6s ease-in-out infinite,
    unsteady calc(18s + var(--seed, .5) * 18s) steps(1, end) calc(var(--seed, .5) * -36s) infinite; /* keeps the page's flicker too */
}
@keyframes tx-hum {
  0%, 100% { --hum: 8%; }
  50% { --hum: 14%; }
}
@media (prefers-reduced-motion: reduce) { .tx-play { animation: none; } }
.tx-play .tx-cell-circle { border-color: var(--green); color: var(--green); filter: none; }
.tx-play:hover { animation: none; --hum: 22%; }
.tx-play:hover .tx-cell-label { color: #fff; }
.tx-play:hover .tx-cell-circle { border-color: #f0fff2; }

/* PREVIEW's level bars, still until it plays. */
.tx-preview-bars { display: flex; align-items: flex-end; gap: .12rem; height: .65rem; }
.tx-preview-bars i { width: .14rem; height: 35%; background: currentColor; }
.tx-preview-bars i:nth-child(2) { height: 70%; }
.tx-preview-bars i:nth-child(3) { height: 50%; }
.is-previewing .tx-preview-bars i { animation: tx-level .5s steps(4) infinite alternate; }
.is-previewing .tx-preview-bars i:nth-child(2) { animation-duration: .38s; }
.is-previewing .tx-preview-bars i:nth-child(3) { animation-duration: .62s; }
@keyframes tx-level { from { height: 20%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .is-previewing .tx-preview-bars i { animation: none; height: 100%; } }
/* No song yet: PREVIEW waits, dimmed, and doesn't light up. */
/* No song yet (.is-empty): it looks and hovers the same as the others (18 NOV); a click does nothing. */





.tx-top {
  position: absolute;
  top: 2.7rem;
  right: 4.25rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  opacity: 0;
  transition: opacity .15s;
}

.status { display: flex; align-items: center; gap: .6rem; height: 1.8rem; }

.battery {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 2.4rem;
  height: 1.1rem;
  padding: .12rem;
  border: max(1px, .09rem) solid var(--green-light);
}

.battery::before {
  content: "";
  position: absolute;
  left: -.27rem;
  top: 25%;
  height: 50%;
  border-left: .14rem solid var(--green-light);
}

.battery span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(115deg, var(--green) 0 .16rem, transparent .16rem .27rem);
}

/*
 * Opening is one continuous move of the real menu: the other rows fold shut and
 * take their lines with them, TRANSMISSIONS/ slides into the heading position and
 * its connector becomes the elbow, then the trunk grows out of it. Removing
 * .in-tx plays it all in reverse.
 */

/* Visibility flips instantly so keyboard focus can land on the screen being shown. */
.in-tx .tx { visibility: visible; transition: none; }

.in-tx .sidebar { pointer-events: none; transform: translate(1.1rem, -1.15rem); }

.in-tx .tree { padding-top: 1.45rem; } /* lands the heading where it sat before the tree grew */

.in-tx .tree ul { margin-left: 0; }

.in-tx .tree > .node,
.in-tx .node.is-group:not(:last-child) { padding-left: 0; padding-bottom: 0; }

.in-tx .row:not([aria-current]) {
  height: 0;
  opacity: 0;
  /* Fold from the bottom of the tree upward. */
  transition: height .45s var(--fold) calc(var(--r, 0) * 12ms),
    opacity .25s calc(var(--r, 0) * 12ms);
}

.in-tx .node::before,
.in-tx .node::after { opacity: 0; }

.in-tx .node.is-current { padding-left: 2.9rem; }

/* No branch line to the heading on Transmissions: the X box sits level with it instead. */

.in-tx .row[aria-current]:not([data-id="transmissions"]) .slot { width: 0; opacity: 0; } /* Transmissions keeps its arrow, turned down */

.in-tx .menu { pointer-events: none; }

.in-tx .logo { pointer-events: auto; }

.in-tx .menu-toggle { top: 5.96rem; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: .4s; }
/* On Transmissions only, the X box takes the TRANSMISSIONS/ heading's colour and halo (18 NOV);
   every other X box stays a ghost. */
.in-tx .menu-toggle {
  border-color: var(--tree-light);
  color: var(--tree-light);
  text-shadow: 0 0 .15em rgb(212 232 207 / .55), 0 0 .5em rgb(212 232 207 / .2);
}

/* A short tree-style line from the X box to the TRANSMISSIONS/ heading. */
.in-tx .menu-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + .3rem);
  width: 1.3rem;
  border-top: var(--line) solid var(--tree-line);
  pointer-events: none;
}

.in-tx .console,
.in-tx .topbar,
.in-tx .right,
.in-tx .keys { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }

.in-tx .tx-media {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s .25s, transform 1.5s cubic-bezier(.2, .7, .2, 1) .25s;
}

.in-tx .tx-trunk { transform: none; transition: transform .7s cubic-bezier(.3, .6, .2, 1) .55s, opacity .3s; }

.in-tx .tx-list { opacity: 1; transform: none; transition: opacity .6s .85s, transform .6s .85s; }

.in-tx .tx-top { opacity: 1; transition: opacity .5s .7s; }

/*
 * Glitch entrance (body.fx-glitch, the default; ?fx=smooth turns it off).
 * The picture snaps on underneath a canvas showing it losing and finding its
 * signal, and the home screen loses sync on the way out.
 */

.tx-glitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tx-glitch[hidden] { display: none; }

/* A black gradient from the left, over the videos (and the glitch, so it doesn't flash brighter)
   and under the copy: 95% at the far left, easing through the text, down to 80% about 34rem past the
   copy's right edge (copy starts at --x-text, 34rem wide), and 80% on to the right edge.
   Per song (data: scrim, the four stops; js/transmissions.js sets --scrim-1..4 as the reel rolls). */
.tx-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgb(0 0 0 / var(--scrim-1, .95)) 0,
    rgb(0 0 0 / var(--scrim-2, .89)) calc(var(--x-text) + 14rem),
    rgb(0 0 0 / var(--scrim-3, .84)) calc(var(--x-text) + 34rem),
    rgb(0 0 0 / var(--scrim-4, .8)) calc(var(--x-text) + 34rem + 34rem));
  pointer-events: none;
}

/* It comes and goes with the picture. */
.tx-shade { opacity: 0; transition: opacity .45s; }

.in-tx .tx-shade { opacity: 1; transition: opacity 1.1s .25s; }

.fx-glitch.in-tx .tx-shade { opacity: 1; transition: none; }

.fx-glitch:not(.in-tx) .tx-shade { transition: opacity 0s .38s; }

.fx-glitch.in-tx .tx-media { opacity: 1; transform: none; transition: none; }

/* Leaving: keep the picture up while it breaks apart, then cut it. */
.fx-glitch:not(.in-tx) .tx-media { transition: opacity 0s .38s, transform 0s .38s; }

.fx-glitch.in-tx .console,
.fx-glitch.in-tx .topbar,
.fx-glitch.in-tx .right,
.fx-glitch.in-tx .keys { animation: ui-out .34s steps(1, end) both; }

.fx-glitch.in-tx .menu { animation: tree-jitter .3s steps(1, end); }

.fx-glitch.tx-closing:not(.in-tx) .console,
.fx-glitch.tx-closing:not(.in-tx) .topbar,
.fx-glitch.tx-closing:not(.in-tx) .right,
.fx-glitch.tx-closing:not(.in-tx) .keys { animation: ui-in .5s steps(1, end) .3s both; }

@keyframes ui-out {
  0% { opacity: 1; transform: none; }
  12% { opacity: .85; transform: translateX(.25rem); }
  24% { opacity: 1; transform: translateX(-.15rem); }
  36% { opacity: .4; transform: translateX(.5rem); }
  48% { opacity: 1; transform: none; }
  60% { opacity: 0; }
  70% { opacity: .3; transform: translateX(-.3rem); }
  100% { opacity: 0; transform: none; }
}

@keyframes ui-in {
  0% { opacity: 0; transform: none; }
  20% { opacity: .6; transform: translateX(-.3rem); }
  32% { opacity: 0; }
  50% { opacity: 1; transform: translateX(.15rem); }
  64% { opacity: .6; transform: none; }
  100% { opacity: 1; transform: none; }
}

@keyframes tree-jitter {
  0% { opacity: 1; transform: none; }
  20% { transform: translateX(.2rem); }
  35% { opacity: .6; transform: translateX(-.12rem); }
  50% { opacity: 1; transform: none; }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-glitch .console, .fx-glitch .topbar, .fx-glitch .right, .fx-glitch .keys, .fx-glitch .menu { animation: none !important; }
}

/* ---------- Intro video: plays behind the page ---------- */

/* Behind everything, over the bare background. The page stays on top of it. */
.player { position: fixed; inset: 0; z-index: -1; background: #000; }

.player[hidden] { display: none; }

.player video { display: block; width: 100%; height: 100%; object-fit: cover; }

.player-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  background: #000;
  color: var(--green);
  font: 1.1rem/1.9 var(--mono);
  letter-spacing: .08em;
  text-shadow: 0 0 .3em rgb(94 167 94 / .75);
}
.player-card p { margin: 0; }

.player-skip { display: none; } /* under the page now; Esc stops the video instead */

/* Clear in the middle, darkening toward the edges, so the page reads over the footage. */
.player::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 35%, rgb(0 0 0 / .55) 70%, rgb(0 0 0 / .92) 100%);
}

/* While it plays, only the centre logo and its number step aside, and the chat column
   drops its backing so the video shows through behind it too. */
.logo-field, .logo-phone, .logo-reg { transition: opacity .3s; }

.playing-intro .logo-field,
.playing-intro .logo-phone,
.playing-intro .logo-reg { opacity: 0 !important; }

.playing-intro .right { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }

  .node::before, .node::after, .row, .row-word::before, .right .choice::before, .row-label, .logo-mini { animation: none !important; }

  .right .line, .right .choices, .right .prompt, .right .stats { animation: none; }

  .tx-code, .tx-title, .tx-para, .tx-card-head, .tx-cell, .tx-readout, .tx-marks, .tx-figure svg, .tx-trunk, .tx-branch { animation: none; }

  .sidebar, .tree, .tree *, .tree *::before, .tree *::after,
  .console, .topbar, .right, .keys, .tx, .tx *, .menu-toggle { transition: none !important; }
}

/* ---------- Perception: Form PC-1, the Perceptual Drift Assessment (js/perception.js) ---------- */

.pc-item { margin-top: 1.2rem; color: var(--faint); font-size: .7rem; letter-spacing: .1rem; }

.pc-terms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem 1rem;
  margin: 1.1rem 0;
  color: var(--ink);
}

.pc-terms.is-review { margin: .6rem 0 .2rem; color: var(--soft); }

.pc-sentence,
.pc-line { margin: 1.1rem 0; color: var(--ink); line-height: 1.6rem; }

/* After the count: every F lit, everything else dimmed. */
.pc-sentence.is-marked { color: var(--faint); }
.pc-sentence b,
.pc-line b { font-weight: normal; color: var(--bg); background: var(--green); }

/* The final calibration (js/perception.js): a vivid green field in the frame with a centre
   mark. When the stare ends the green goes out, leaving the site's own background, and a circle
   surfaces over it: a soft-edged ring a shade lighter than the background, fading in, barely
   there (19 NOV). Square or circle? */
.pc-field {
  position: relative;
  display: grid;
  place-items: center;
  height: 13rem;
  margin: 1.1rem 0;
  background: #00e63a;
}

.pc-field.is-clear { background: transparent; }

.pc-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8.5rem;
  aspect-ratio: 1;
  transform: translate(-46%, -53%); /* a touch off the mark, like a flaw in the screen */
  border-radius: 50%;
  /* A soft ring, darkest at its edge, fading out both ways. */
  background: radial-gradient(circle, transparent 52%, rgb(212 232 207 / var(--circle-k, .025)) 66%, transparent 74%);
  opacity: 0;
  pointer-events: none;
}
/* Burnt in: there the instant the green goes out, then fading slowly, the way an afterimage
   does when you close your eyes. */
.pc-field.is-clear .pc-circle { animation: pc-burn 7s ease-out -2.1s forwards; } /* starts 30% in (19 NOV) */
/* Fully there for under a second (0.8s), then the fade begins. */
@keyframes pc-burn { 0%, 11.5% { opacity: 1; } 100% { opacity: 0; } }

.pc-mark { color: #000; font-size: 1.2rem; line-height: 1; }

.pc-field.is-clear .pc-mark { color: var(--tree-dim); }

/* ---------- Pages with content (js/pages.js, js/pages-data.js): EMPLOYMENT/ ---------- */

.page { max-height: 100%; overflow-y: auto; scrollbar-width: none; padding-top: 4.5rem; } /* room for the close box above the header */
.page::-webkit-scrollbar { display: none; }

.pg-listings { display: flex; flex-direction: column; gap: .8rem; margin-top: 1rem; }

/* Each listing in its own box. */
.pg-listing {
  padding: .75rem 1rem .6rem;
  border: 1px solid var(--rule);
}

/* One-line listings (Contact): the title on the left, its button right-aligned on the same line. */
.pg-compact { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: .75rem 1rem; }
.pg-compact .pg-listing-title { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-compact .pg-buttons { margin: 0; flex-shrink: 0; }

/* Contact's directory slip, under its own header like a second section. */
.pg-directory { margin-top: 1.2rem; }
.pg-directory .receipt { margin: 0 0 1rem; }

/* A second header partway down the list (pages-data.js `heading`), styled like the page's own. */
.pg-listings .pg-section { margin-top: 1.6rem; }

.pg-listing-title { margin: 0 0 .35rem; color: var(--ink); font: inherit; }

.pg-line { margin: 0; color: var(--ink); }
.pg-line .pg-value { color: var(--green-light); } /* STATUS: in white, its value in light green */

.pg-detail { margin-top: .6rem; color: var(--soft); }
.pg-detail p { margin: 0 0 .45rem; }

.pg-view { margin-top: .45rem; }

.pg-buttons { display: flex; gap: 2.4rem; margin-top: .45rem; }
.pg-buttons .pg-view { margin-top: 0; }
.pg-closed,
.pg-apply:disabled { color: var(--faint); cursor: default; }
.pg-closed:hover,
.pg-apply:disabled:hover { color: var(--faint); }
.pg-applied { margin: .6rem 0 0; color: var(--ink); }

/* ---------- The application form behind [ APPLY ] (js/pages.js, Application) ---------- */

.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  background: rgb(0 0 0 / .78);
}

.app-form {
  width: min(34rem, 100%);
  padding: 1.1rem 1.4rem 1.2rem;
  border: 1px solid var(--green);
  background: var(--bg);
  color: var(--soft);
  font: .966rem/1.5rem var(--mono);
  letter-spacing: 0;
}

.app-field { display: block; margin: 1rem 0 0; padding: 0; border: 0; }

.app-field > span,
.app-field > legend { display: block; margin-bottom: .35rem; padding: 0; color: var(--ink); }

.app-field input[type="text"],
.app-field input[type="email"],
.app-field textarea {
  display: block;
  width: 100%;
  padding: .3rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-transform: uppercase;
  resize: none;
  outline: none;
}

.app-field input[readonly] { color: var(--faint); }

/* Email and initials share the last line, like a signature block: a long rule and a short box. */
.app-sign { display: flex; align-items: flex-end; gap: 1.6rem; }
.app-sign .app-email { flex: 1; }
.app-sign .app-initials { flex: none; width: 5rem; }

.app-field input:focus,
.app-field textarea:focus { border-bottom-color: var(--green); }

.app-choices { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }

/* Square tick boxes drawn in text: [ ] and [X]. */
.app-choice { display: inline-flex; align-items: baseline; gap: .55rem; cursor: pointer; }
.app-choice input { position: absolute; opacity: 0; pointer-events: none; }
.app-choice span::before { content: '[ ]'; color: var(--faint); margin-right: .55rem; }
.app-choice input:checked + span { color: var(--ink); }
.app-choice input:checked + span::before { content: '[X]'; color: var(--green); }
.app-choice input:focus-visible + span { outline: 1px solid var(--green-light); outline-offset: .15rem; }

.app-agree { display: flex; margin-top: 1.1rem; }

.app-consent { margin: 1rem 0 0; color: var(--green-dim); font-size: .85em; }
.app-error { min-height: 1.5rem; margin: .8rem 0 0; color: var(--green-light); }

.app-filed { color: var(--ink); }
.app-choices.is-stacked { flex-direction: column; }


/* F9 LOGOUT (js/logout.js): the goodbye animation plays behind the site (js/player.js), then
   nothing is left but the large text-drawn logo and its R. No phone number. */
body.logged-out > :not(.logo-field):not(.logo-reg):not(.static):not(.bg-video) { display: none !important; }
body.logged-out .logo-field { opacity: .5 !important; }
body.logged-out .logo-reg { opacity: 1 !important; }
body.logged-out .logo-field { pointer-events: auto; }
body.logged-out { overflow: hidden; }

/* A key whose menu item is locked stays dim on hover (js/keys.js). */
.keys .live.off:hover,
.keys .live.off:focus-visible { color: var(--faint); }

/* Dragging across the background scatters the logo (js/logo-field.js). */
html.is-scattering, html.is-scattering * { cursor: grabbing !important; user-select: none !important; }

/* ---------- SOUND: a switch on its own under the tree (js/sound.js) ---------- */

/* Placed by js/sound.js (bottom), level with the chat's counters; it takes no room in the column,
   so the key bar stays put. The switch and the word share one line. */
.sound {
  position: absolute;
  left: calc(1.9rem + .1em);
  display: flex;
  align-items: center;
  gap: .7em;
  visibility: hidden; /* until placed */
  transition: opacity .3s;
}

.sound-row { display: flex; align-items: center; gap: .7em; }

.sound-label { color: var(--green); cursor: pointer; user-select: none; }
.sound.is-on .sound-label,
.sound-label:hover { color: var(--ink); }

.sound-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
  border: 0;
  color: var(--green);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

/* The switch: a bordered track with a square knob that slides across and fills when on. */
.sound-switch {
  position: relative;
  width: 2.3em;
  height: 1.15em;
  border: 1px solid var(--green);
  border-radius: .3em;
  box-sizing: border-box;
}
.sound-switch i {
  position: absolute;
  top: .17em;
  left: .17em;
  width: .7em;
  height: .7em;
  border-radius: .15em;
  background: var(--ink); /* white when off */
  transition: left .2s steps(4, end), background .2s;
}
.sound-toggle[aria-checked="true"] .sound-switch { border-color: var(--ink); }
.sound-toggle[aria-checked="true"] .sound-switch i { left: calc(100% - .87em); background: var(--green); } /* green when on */
.sound-toggle:hover .sound-switch, .sound-toggle:focus-visible .sound-switch { border-color: var(--ink); }

/* Out of the way while Transmissions has the screen. */
.in-tx .sound { opacity: 0; pointer-events: none; }
/* The same soft edge as the tree's text (.row): a tight halo and a soft glow, no blur. */
.sound-label { text-shadow: 0 0 .15em rgb(212 232 207 / .55), 0 0 .5em rgb(212 232 207 / .2); }
.sound-switch { filter: drop-shadow(0 0 .15em rgb(212 232 207 / .45)); }

/* Sound audition (js/ui-sounds.js): each tree row's candidate click, by number. Temporary. */
.aud-tag { margin-left: .9em; font-size: .72em; letter-spacing: .08em; color: var(--green); opacity: .55; pointer-events: none; }

/* INTRUSION (js/intrusion.js): a clip stutters in behind the page. Same layer as the player;
   the centre logo drops out at once (no fade) so each flash is a hard cut. */
.intruding .logo-field,
.intruding .logo-phone,
.intruding .logo-reg { opacity: 0 !important; transition: none !important; }
.intruding .right { background: transparent; }

/* A faint static over the background black, under everything else (js/static.js draws the tile).
   The tile jumps to a new place every frame, like a dead channel. Still under reduced motion. */
.static {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: var(--static);
  background-size: 256px 256px;
  image-rendering: pixelated;
  animation: static .5s steps(1, end) infinite;
}
/* The background under the splash's scrim, kept for the whole site (24 NOV): the same half-black
   layer with its blue static at .24, over the site's own static and under everything on the page. */
.bg-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #000; opacity: .25; } /* halfway between the old background and the scrim (24 NOV) */
.bg-scrim::after { content: ""; position: absolute; inset: 0; opacity: .24;
  background-color: #2f5fd0; background-image: var(--static); background-blend-mode: multiply;
  background-size: 256px 256px; image-rendering: pixelated; animation: static .5s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) { .bg-scrim::after { animation: none; } }
@keyframes static {
  0% { background-position: 0 0; }
  12.5% { background-position: -91px 37px; }
  25% { background-position: 53px -118px; }
  37.5% { background-position: -170px -64px; }
  50% { background-position: 129px 101px; }
  62.5% { background-position: -22px 183px; }
  75% { background-position: 197px -29px; }
  87.5% { background-position: -143px 142px; }
}
@media (prefers-reduced-motion: reduce) { .static { animation: none; } }

/* TEST: the glitch video as the whole background instead of the static (js/static.js, ?bg=video).
   Dimmed so the page reads over it; under everything, like the static. */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .0875; /* faded 75% from .35 (18 NOV) */
  pointer-events: none;
}
.bg-video[hidden] { display: none; }

/* VIEW TRANSMISSION (js/transmissions.js, openViewer): the full transmission over everything,
   centred on black, letterboxed rather than cropped. Locked: no controls; Esc or CLOSE ends it. */
.tx-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
}
.tx-view[hidden] { display: none; }
.tx-view-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.tx-view-close {
  position: absolute;
  right: 1.6rem;
  bottom: 1.4rem;
  padding: .3rem .5rem;
  background: none;
  border: 0;
  color: var(--tree-light);
  font: .72rem/1.2rem var(--mono);
  letter-spacing: .12rem;
  text-shadow: 0 0 .15em rgb(212 232 207 / .55), 0 0 .5em rgb(212 232 207 / .2);
  opacity: .55;
  cursor: pointer;
  transition: opacity .2s;
}
.tx-view-close:hover, .tx-view-close:focus-visible { opacity: 1; outline: none; }
/* Everything outside Transmissions (the ticker, the boxed X) steps back while it plays. */
.tx-viewing > :not(.tx):not(.static) { visibility: hidden; }
/* ...including the X box and its line, which Transmissions otherwise keeps visible. */
.tx-viewing .menu-toggle { visibility: hidden; }

/* The readable record (index.html): text for search engines, AI tools and screen readers, never
   drawn on screen. The standard visually-hidden pattern, so it stays in the page's text. */
.record-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Phones (20 NOV) ----------
   The interface is desktop only. On a narrow screen everything but the static and this notice is
   hidden; the static takes the reboot screen's soft blue. A separate mobile site may come later. */
.phone-gate { display: none; }
@media (max-width: 767px) {
  body > :not(.phone-gate):not(.static):not(.record-text) { display: none !important; }
  .static {
    opacity: .24;
    background-color: #2f5fd0;
    background-blend-mode: multiply;
    z-index: 0;
  }
  .phone-gate {
    display: block; position: fixed; inset: 0; z-index: 1;
    padding: 12vh 1.5rem 0; margin: 0;
    font: 16px/1.7 var(--mono); /* px: the site's rem shrinks to 11px on phones */ letter-spacing: .04em; color: var(--green-light);
    text-shadow: 0 0 .15em rgb(180 214 180 / .6), 0 0 .5em rgb(94 167 94 / .35);
    filter: blur(.5px);
  }
  /* Mind, body, sight and sound (assets/icons.svg, as on the receipts), first, in green (21 NOV). */
  .phone-gate-marks {
    width: 200px; aspect-ratio: 563.07 / 82.33; margin: 0 0 2.4em;
    background: var(--green);
    -webkit-mask: url(assets/icons.svg) left center / contain no-repeat;
    mask: url(assets/icons.svg) left center / contain no-repeat;
  }
  .phone-gate p { margin: 0 0 1.7em; white-space: pre-line; }
  .phone-gate .phone-gate-head { color: var(--green); text-shadow: 0 0 .3em rgb(94 167 94 / .75); }
  .phone-gate .phone-gate-dim { opacity: .5; margin-bottom: .2em; }
  .phone-gate .phone-gate-dim:first-of-type, .phone-gate p:nth-of-type(3) { margin-bottom: 1.7em; }
  .phone-gate p:nth-of-type(2) { margin-bottom: .2em; } /* the station lines sit right under DESKTOP TERMINAL REQUIRED. (21 NOV) */
  .phone-gate a { color: inherit; text-decoration: none; }
  .phone-gate a::after { content: "\2588"; margin-left: .3em; animation: blink-cursor 1s steps(1, end) infinite; }
}

/* ---------- BETA SPLASH (20 NOV, temporary; js/beta.js) ----------
   The field test clearance for invited testers, over the whole site: the reboot screen's soft
   blue static and blurred green text. ENTER DV5T has the agent buttons' glow and soft box. */
/* 24 NOV: a pop-up box over the live site. Behind it, the splash's own black and blue static at
   half strength, so the site shows through; the box itself keeps the full black static. */
.beta-gate {
  position: fixed; inset: 0; z-index: 9000; overflow-y: auto; transition: opacity .45s ease-out;
  display: grid; place-items: center; padding: 4vh 2rem; box-sizing: border-box;
}
.beta-gate[hidden] { display: none; }
.beta-gate.is-leaving { opacity: 0; pointer-events: none; }
.beta-static { /* the full-screen splash background, black with its blue static, at exactly 50% */
  position: fixed; inset: 0; pointer-events: none; background: #000; opacity: .5;
  animation: beta-dim-in .35s ease-out both;
}
.beta-static::after {
  content: ""; position: absolute; inset: 0; opacity: .24;
  background-color: #2f5fd0; background-image: var(--static); background-blend-mode: multiply;
  background-size: 256px 256px; image-rendering: pixelated;
  animation: static .5s steps(1, end) infinite;
}
@keyframes beta-dim-in { from { opacity: 0; } }
.beta-text {
  /* The box: half black with the static, a faint green edge (corner brackets cut 24 NOV), and a
     soft green bloom; it switches on like an old tube, a dot to a line to the full box. */
  position: relative; top: -9vh; left: -1.5vw; /* up and a touch left of centre (24 NOV) */ isolation: isolate; width: min(36rem, 100%); box-sizing: border-box; padding: 2.4rem 2.8rem 2.6rem;
  background: rgb(0 0 0 / .5); border: 1px solid rgb(94 167 94 / .35); /* half black, like the backdrop (24 NOV) */
  box-shadow: 0 0 0 1px #000, 0 0 2.5rem rgb(94 167 94 / .105) /* glow faded 25% (24 NOV) */; /* no drop shadow (cut 24 NOV) */
  animation: beta-open .6s cubic-bezier(.2, .7, .3, 1) .15s both;
  font: 1.05rem/1.7 var(--mono); /* tuned 21 NOV */ letter-spacing: .04em; color: var(--green-light);
  text-shadow: 0 0 .15em rgb(180 214 180 / .6), 0 0 .5em rgb(94 167 94 / .35);
}
.beta-text::before { /* the box's own background: the same black and blue static, at 50% (24 NOV) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .12; /* the static at half its .24 */
  background-color: #2f5fd0; background-image: var(--static); background-blend-mode: multiply;
  background-size: 256px 256px; image-rendering: pixelated; animation: static .5s steps(1, end) infinite;
}
@keyframes beta-open {
  0% { transform: scale(.03, .004); filter: brightness(4); }
  35% { transform: scale(1, .004); filter: brightness(3); }
  75% { transform: scale(1, 1.01); filter: brightness(1.5); }
  100% { transform: none; filter: none; }
}
.beta-logo {
  display: grid; place-items: center start; width: 16rem; height: 5.5rem; margin: 0 0 1rem -.3rem; overflow: hidden;
  font-family: var(--mono); letter-spacing: 0; white-space: pre; user-select: none; -webkit-user-select: none;
  color: var(--green-light); filter: blur(.2px);
}
.beta-text p, .beta-rules li { white-space: pre-line; filter: blur(.25px); }
.beta-text p { margin: 0 0 1.4em; }
.beta-head { color: var(--green); text-shadow: 0 0 .3em rgb(94 167 94 / .75); }
.beta-dim { opacity: .5; }
.beta-rules {
  list-style: none; margin: 0 0 1.2em; padding: 0;
  display: grid; row-gap: 1.2em; /* one column of three (21 NOV) */
}
.beta-rule-title { display: block; color: var(--green); text-shadow: 0 0 .3em rgb(94 167 94 / .75); }
.beta-num { opacity: .5; }
.beta-sep { opacity: .5; }
.beta-enter {
  /* A notch more than the agent buttons (20 NOV): a thin, faint green frame around glowing green type. */
  position: relative; margin: 0; padding: .45em 1.2em; cursor: pointer; text-align: center;
  border: 1px solid rgb(94 167 94 / .45); background: none;
  font: inherit; letter-spacing: .08em; color: var(--green);
  text-shadow: 0 0 .3em rgb(94 167 94 / .75);
  filter: blur(.2px); transition: background .12s ease-out, border-color .12s ease-out;
}
.beta-enter:is(:hover, :focus-visible) { background: #173a1e; border-color: var(--green); }
.beta-enter:focus { outline: none; }
/* Entry: each block drops in from a little above, top to bottom. */
.beta-step { opacity: 0; animation: beta-in .5s cubic-bezier(.2, .7, .3, 1) calc(.75s + var(--i, 0) * .14s) forwards; } /* once the box is on */
@keyframes beta-in {
  from { opacity: 0; transform: translateY(-.6em); }
  to { opacity: var(--to, 1); transform: none; }
}
.beta-dim, .beta-sep { --to: .5; } /* keeps its dimming once it lands */
.beta-enter.beta-step { animation-name: beta-in; }
/* The advisory (24 NOV): BE PRESENT. as its headline, in the Transmissions title face with its glow. */
.beta-big {
  margin: 0 0 .7em !important; font: 2.2rem/1.1 "VCR OSD Mono", var(--mono); letter-spacing: .04em; color: #effff0;
  text-shadow: 0 0 .08em #a6ffb9, 0 0 .3em var(--green), 0 0 .8em rgb(94 167 94 / .5);
}
.beta-text .beta-enter { margin-top: .6em; }
/* Observer advisory OA-001 (24 NOV): the issuer dim and small, the advisory's name in green, thin
   rules above and below the body, and a status line split left and right at the foot. */
.beta-text .beta-org { margin: 0 0 .2em; font-size: .8em; letter-spacing: .14em; color: color-mix(in srgb, #d4e8cf 18%, #090c0a); text-shadow: 0 0 .15em rgb(212 232 207 / .1); } /* darker than the headline (24 NOV) */
.beta-text .beta-title-line { margin: 0; letter-spacing: .08em; color: var(--tree-dim); text-shadow: 0 0 .15em rgb(212 232 207 / .15); } /* dark grey, not green (24 NOV) */
.beta-rule-line { width: 25%; height: 0; margin: 1.3em auto 1.3em 0; /* a quarter width, left (24 NOV) */ border: 0; border-top: 2px dotted color-mix(in srgb, #d4e8cf 18%, #090c0a); /* dots, the top line's grey (24 NOV) */ }
.beta-text .beta-enter { margin-top: .2em; padding-left: 0; padding-right: 0; border: 0; } /* no frame: just [ PROCEED ] (24 NOV) */
/* Hover: the link tree's lit state (24 NOV): the word stays glowing green, and the deep green box
   comes up behind it from bracket to bracket, its brightness wavering (row-waver). */
.beta-text .beta-enter { isolation: isolate; }
.beta-text .beta-enter::before {
  content: ''; position: absolute; z-index: -1; left: .17em; right: .17em;
  top: calc(50% - .422em); height: .9567em;
  background: var(--row-tint); box-shadow: 0 0 1.6px var(--row-tint);
  opacity: 0; transition: opacity .12s ease-out; pointer-events: none;
}
.beta-text .beta-enter:is(:hover, :focus-visible) { background: none; }
.beta-text .beta-enter::before { display: none; } /* no green box on hover (24 NOV) */
/* ...it comes up only inside the tick box instead: the tree's deep green, wavering (24 NOV). */
.beta-check { transition: background-color .12s ease-out; }
.beta-enter:is(:hover, :focus-visible) .beta-check { background: var(--row-tint); animation: row-waver 6s ease-in-out infinite; }
.beta-text .beta-status { display: flex; justify-content: space-between; margin: 0; font-size: .75em; letter-spacing: .14em; color: var(--tree-dim); text-shadow: 0 0 .15em rgb(212 232 207 / .15); } /* the headline's grey (24 NOV) */
/* Everything but the white body copy a touch softer (24 NOV): the header, the rules, PROCEED, the status line. */
.beta-text .beta-org, .beta-text .beta-title-line, .beta-rule-line, .beta-text .beta-enter, .beta-text .beta-status { filter: blur(.4px); }
/* DV5T CENTRAL OPERATIONS ////////: a run of slashes from the S to the box's right edge (24 NOV). */
.beta-text .beta-org { display: flex; white-space: nowrap; }
.beta-text .beta-org::after { content: '////////////////////////////////////////////////////////////////////////////////';
  order: 1; flex: 1; min-width: 0; overflow: hidden; margin: 0 -2.8rem 0 .6em; letter-spacing: -.12em; } /* tight, out to the border (24 NOV); with the [?] back, margin 0 0 0 .6em */
/* [ ? ] (24 NOV): at the end of the slash line, the headline's grey; lit green on hover and while
   BEST PRACTICES is open. */
.beta-help { order: 2; flex: none; margin: 0 0 0 .6em; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; letter-spacing: .02em; color: var(--green); text-shadow: 0 0 .3em rgb(94 167 94 / .75); transition: color .12s ease-out; } /* [?] tight, the tick box green (24 NOV) */
.beta-help:focus { outline: none; }
.beta-help:is(:hover, :focus-visible, [aria-expanded="true"]) { color: var(--ink); }
/* BEST PRACTICES /// BP-001 (24 NOV): a second pop-up over the first, offset down and right like a
   sub-window. Same edge, bloom and static; a darker black so the box beneath doesn't read through.
   It switches on the same way, faster, and its lines drop in and flicker like the first. */
.beta-bp { position: absolute; z-index: 2; top: 3.4rem; left: 3.4rem; width: 32rem; box-sizing: border-box; padding: 2rem 2.4rem 2.2rem;
  isolation: isolate; background: rgb(0 0 0 / .88); border: 1px solid rgb(94 167 94 / .35);
  box-shadow: 0 0 0 1px #000, 0 0 2.5rem rgb(94 167 94 / .105); animation: beta-open .45s cubic-bezier(.2, .7, .3, 1) both; }
.beta-bp[hidden] { display: none; }
.beta-bp::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .12;
  background-color: #2f5fd0; background-image: var(--static); background-blend-mode: multiply;
  background-size: 256px 256px; image-rendering: pixelated; animation: static .5s steps(1, end) infinite; }
.beta-bp .bp-head { margin: 0; padding-right: 2.4rem; letter-spacing: .08em; white-space: nowrap; color: var(--tree-dim); text-shadow: 0 0 .15em rgb(212 232 207 / .15); }
.beta-bp .bp-close { margin: 0; letter-spacing: .08em; color: var(--tree-dim); text-shadow: 0 0 .15em rgb(212 232 207 / .15); }
.bp-x { position: absolute; top: 1.2rem; right: 1.2rem; padding: .05rem .42rem; background: none; border: 1px solid currentColor; border-radius: 0;
  color: var(--green); font: .8rem/1.2rem var(--mono); text-shadow: 0 0 .3em rgb(94 167 94 / .75); box-shadow: 0 0 .4em rgb(94 167 94 / .3); cursor: pointer; }
.bp-x:focus { outline: none; }
.bp-x:is(:hover, :focus-visible) { color: var(--ink); }
.bp-list { list-style: none; margin: 0; padding: 0; display: grid; row-gap: .55em; }
.bp-list li { display: grid; grid-template-columns: 2.6em 1fr; white-space: pre-line; filter: blur(.25px); }
.bp-n { color: var(--tree-dim); text-shadow: 0 0 .15em rgb(212 232 207 / .15); }
.bp-step { opacity: 0;
  animation: unsteady calc(6s + var(--seed, .5) * 5s) steps(1, end) calc(var(--seed, .5) * -11s) infinite,
    beta-in .4s cubic-bezier(.2, .7, .3, 1) calc(.3s + var(--i, 0) * .08s) forwards; }
.beta-bp :is(.bp-head, .beta-rule-line, .bp-close).bp-step { animation-name: unsteady-soft, beta-in; }
@media (prefers-reduced-motion: reduce) { .beta-bp, .beta-bp::before { animation: none; } .bp-step { animation: none; opacity: 1; } }
/* The white body copy a bit larger (24 NOV). */
.beta-text > p:not(.beta-org, .beta-head, .beta-status) { font-size: 1.25em; }
/* AGREE AND CONTINUE (24 NOV): a box on the left they tick to get in. Empty at rest; the click
   puts a glowing green X in it, then the gate clears. */
.beta-text .beta-enter { display: inline-flex; align-items: center; gap: .8em; }
.beta-check { position: relative; flex: none; width: .95em; height: .95em; box-sizing: border-box;
  border: 1px solid currentColor; box-shadow: 0 0 .3em rgb(94 167 94 / .5), inset 0 0 .3em rgb(94 167 94 / .3); }
.beta-check::before, .beta-check::after { content: ''; position: absolute; left: 50%; top: 50%; width: 125%; height: 1px;
  background: currentColor; box-shadow: 0 0 .25em rgb(94 167 94 / .9); opacity: 0; transition: opacity .08s steps(1, end); }
.beta-check::before { transform: translate(-50%, -50%) rotate(45deg); }
.beta-check::after { transform: translate(-50%, -50%) rotate(-45deg); }
.beta-enter[aria-checked="true"] .beta-check::before, .beta-enter[aria-checked="true"] .beta-check::after { opacity: 1; }
/* The same unsteady flicker as the rest of the site (24 NOV): each line blips on its own clock,
   every 6-11 seconds. It rides along with the cascade; beta-in comes last so it keeps the drop-in.
   The blurred lines use unsteady-soft, which keeps their .4px blur between blips. */
.beta-text .beta-step {
  animation: unsteady calc(6s + var(--seed, .5) * 5s) steps(1, end) calc(var(--seed, .5) * -11s) infinite,
    beta-in .5s cubic-bezier(.2, .7, .3, 1) calc(.75s + var(--i, 0) * .14s) forwards;
}
.beta-text :is(.beta-org, .beta-title-line, .beta-rule-line, .beta-enter, .beta-status).beta-step { animation-name: unsteady-soft, beta-in; }
@keyframes unsteady-soft {
  0% { filter: blur(.4px); }
  1% { filter: opacity(.7) blur(.4px); }
  2% { filter: blur(.4px); }
  4% { filter: opacity(.85) blur(.7px); }
  5%, 100% { filter: blur(.4px); }
}
@media (prefers-reduced-motion: reduce) { .beta-static, .beta-static::after, .beta-text::before { animation: none; } .beta-text { animation: none; } .beta-step { animation: none; opacity: var(--to, 1); } }
