:root {
  color-scheme: dark;
  --ink: #050706;
  --ink-2: #08100e;
  --ink-3: #0d1715;
  --panel: #101b18;
  --panel-2: #13221f;
  --line: #243633;
  --paper: #f4f4ed;
  --muted: #a9b2ac;
  --dim: #6f7b76;
  --lime: #c5f82a;
  --lime-soft: rgba(197, 248, 42, 0.12);
  --teal: #4ecdc4;
  --teal-soft: rgba(78, 205, 196, 0.12);
  --amber: #f5a623;
  --amber-soft: rgba(245, 166, 35, 0.14);
  --danger: #ff674d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --shell: min(1440px, calc(100vw - 40px));
  --measure: 68ch;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background:
    linear-gradient(rgba(197, 248, 42, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.028) 1px, transparent 1px),
    var(--ink);
  background-size: 56px 56px;
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--lime);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - 1440px) / 2 + 20px));
  background: rgba(5, 7, 6, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__signal {
  width: 10px;
  height: 10px;
  background: var(--lime);
  box-shadow: 0 0 0 6px var(--lime-soft);
}

.nav {
  gap: clamp(12px, 2vw, 28px);
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--lime);
}

.section-grid,
.section-pad {
  width: var(--shell);
  margin: 0 auto;
}

.section-pad {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.82fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero {
  min-height: calc(88dvh - 66px);
  padding: clamp(28px, 4vw, 48px) 0;
}

.hero__copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 800;
  line-height: 0.98;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.9rem, 4.6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 6.1rem);
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  letter-spacing: 0;
}

p {
  margin: 0;
}

.hero__lede {
  max-width: var(--measure);
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.thesis-card {
  max-width: 820px;
  margin: 24px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  background: rgba(16, 27, 24, 0.78);
  box-shadow: var(--shadow);
}

.thesis-card p {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.7vw, 1.62rem);
  font-weight: 700;
  line-height: 1.16;
}

.thesis-card cite {
  display: block;
  margin-top: 16px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.action-row,
.fieldbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-row {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.button--primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.button--ghost {
  background: transparent;
}

.hero-console {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 16, 14, 0.9);
  box-shadow: var(--shadow);
}

.console-topline,
.chapter-meta,
.preview-topline,
.composer-row,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.console-topline,
.chapter-meta,
.preview-topline {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-frame--hero {
  border-radius: 0 0 var(--radius) var(--radius);
}

.media-frame--hero img {
  min-height: 260px;
}

.media-frame figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 6, 0.82);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.console-notes > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.note-label {
  display: inline-flex;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-label--amber {
  color: var(--amber);
}

.note-label--lime {
  color: var(--lime);
}

.console-notes p {
  color: var(--muted);
  font-size: 0.88rem;
}

.identity-band {
  border-block: 1px solid var(--line);
  background: var(--lime);
  color: var(--ink);
}

.identity-band p {
  width: var(--shell);
  margin: 0 auto;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.08;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: 36px;
}

.section-heading h2 {
  grid-row: span 2;
}

.section-heading > p:last-child {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.05rem;
}

.talk-console,
.workbench,
.fieldbook-output {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 16, 14, 0.82);
  box-shadow: var(--shadow);
}

.talk-console {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  overflow: hidden;
}

.chapter-rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.chapter-tab,
.exercise-tab,
.map-list button,
.audience-rail button,
.preview-topline button {
  border: 0;
  color: inherit;
}

.chapter-tab {
  min-height: 74px;
  padding: 18px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.chapter-tab:hover,
.chapter-tab.is-active {
  background: var(--lime-soft);
  color: var(--lime);
}

.chapter-panel {
  min-width: 0;
}

.chapter-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 0.85fr);
  gap: 26px;
  padding: 24px;
  align-items: center;
}

.chapter-copy blockquote {
  margin: 18px 0;
  padding-left: 18px;
  border-left: 4px solid var(--teal);
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
}

.chapter-copy p {
  color: var(--muted);
}

.source-note {
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  background: rgba(245, 166, 35, 0.08);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inline-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.clip-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.clip-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #000;
}

.clip-card h3,
.case-card h3,
.cta-card h3,
.fieldbook-output h3,
.exercise-copy h3,
.map-detail h3,
.column-head h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.clip-card p:not(.eyebrow),
.case-card p,
.cta-card p,
.fieldbook-output p,
.exercise-copy p,
.map-detail p {
  color: var(--muted);
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(280px, 1fr) minmax(230px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.map-column,
.map-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.map-column {
  overflow: hidden;
}

.map-column--left {
  border-top: 4px solid var(--amber);
}

.map-column--right {
  border-top: 4px solid var(--lime);
}

.column-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.column-head span,
.case-card span,
.cta-card span,
.map-detail__practice span,
.selector-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.map-list {
  display: grid;
}

.map-list button {
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.map-list button:hover,
.map-list button.is-active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
}

.map-detail {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.map-detail__practice {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.map-detail__practice strong {
  display: block;
  color: var(--paper);
  font-size: 1.08rem;
}

.audience-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.audience-rail span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.audience-rail button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audience-rail button:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.workbench {
  overflow: hidden;
}

.exercise-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.exercise-tab {
  min-height: 56px;
  padding: 12px;
  background: transparent;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exercise-tab:last-child {
  border-right: 0;
}

.exercise-tab:hover,
.exercise-tab.is-active {
  background: var(--teal-soft);
  color: var(--teal);
}

.exercise-tab.is-complete::after {
  content: " / calibrated";
  color: var(--lime);
}

.exercise-panel {
  padding: clamp(22px, 4vw, 44px);
}

.exercise-panel.is-active {
  display: block;
}

.exercise-copy {
  max-width: 760px;
  margin-bottom: 22px;
}

.composer,
.form-grid label {
  display: grid;
  gap: 10px;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--paper);
}

textarea {
  min-height: 138px;
  padding: 16px;
  resize: vertical;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

select {
  min-height: 44px;
  padding: 0 38px 0 12px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--teal) 50%, transparent 50%) right 10px center / 7px 7px no-repeat,
    var(--ink-2);
}

label {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label textarea,
label input,
label select {
  margin-top: 10px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.composer-row {
  margin-top: 12px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dna-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dna-card,
.selector-grid article,
.stack-output article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.dna-card p {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.dna-card button {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label:nth-child(1),
.form-grid label:nth-child(2),
.form-grid--three label {
  grid-column: auto;
}

.preview-shell,
.fieldbook-output pre {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.preview-topline button {
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

pre {
  min-height: 180px;
  margin: 0;
  overflow: auto;
  padding: 18px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.selector-grid article {
  min-height: 150px;
}

.selector-grid p {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
}

.form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid--single {
  grid-template-columns: 1fr;
}

.stack-builder {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.stack-builder button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-builder button.is-selected {
  border-color: var(--lime);
  background: var(--lime-soft);
  color: var(--lime);
}

.stack-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stack-output article h4 {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: 1rem;
}

.stack-output article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.fieldbook-output {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.fieldbook-output pre {
  grid-column: 1 / -1;
  display: none;
}

.fieldbook-output pre.has-content {
  display: block;
}

.widget-progress {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 16, 14, 0.82);
  box-shadow: var(--shadow);
}

.widget-progress strong {
  display: block;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.progress-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.progress-rail button {
  display: grid;
  min-height: 58px;
  gap: 4px;
  align-content: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.progress-rail button span {
  color: var(--dim);
}

.progress-rail button.is-active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.progress-rail button.is-complete {
  border-color: var(--lime);
  color: var(--lime);
}

.lab-console {
  position: relative;
  isolation: isolate;
}

.lab-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(197, 248, 42, 0.04) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 18% 12%, rgba(78, 205, 196, 0.12), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(245, 166, 35, 0.1), transparent 24%);
  animation: scan-pulse 6s steps(6, end) infinite;
}

.analog-widget {
  position: relative;
  overflow: hidden;
}

.analog-widget.has-hard-cut {
  animation: hard-cut 240ms steps(2, end);
}

.analog-widget::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent),
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(255, 255, 255, 0.025) 6px 7px);
  mix-blend-mode: screen;
  opacity: 0.45;
}

.lab-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.lab-grid--two {
  grid-template-columns: minmax(280px, 0.88fr) minmax(300px, 1fr);
}

.instrument,
.selector-console,
.artifact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
    rgba(8, 16, 14, 0.88);
}

.instrument,
.selector-console {
  position: relative;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.instrument::before,
.selector-console::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--teal), var(--lime));
  opacity: 0.72;
}

.widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.widget-actions button,
.mirror-controls button,
.ferment-button,
.custom-task button,
.artifact-drawer button,
.specimen-card > button,
.pairwise-topline button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget-actions button:hover,
.mirror-controls button:hover,
.ferment-button:hover,
.custom-task button:hover,
.artifact-drawer button:hover,
.specimen-card > button:hover,
.pairwise-topline button:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.instrument--crt {
  min-height: 100%;
}

.meter-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mirror-controls {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.clarity-readout {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.14), rgba(197, 248, 42, 0.14));
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clarity-readout strong {
  color: var(--lime);
  font-size: 0.95rem;
}

.signal-markup {
  min-height: 96px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #030504;
  color: var(--muted);
}

.signal-markup p {
  margin: 0;
}

.signal-markup mark {
  padding: 0 3px;
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 3px;
  background: rgba(245, 166, 35, 0.2);
  color: var(--amber);
}

.issue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.issue-badge,
.trait-reveal span,
.boundary-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue-badge--generic,
.issue-badge--fog {
  border-color: rgba(245, 166, 35, 0.5);
  color: var(--amber);
}

.issue-badge--values,
.issue-badge--voice {
  border-color: rgba(197, 248, 42, 0.45);
  color: var(--lime);
}

.meter-control {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.meter-control span {
  color: var(--dim);
}

.meter-control input[type="range"] {
  height: 10px;
  min-height: 10px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(90deg, var(--amber), var(--teal), var(--lime));
}

.meter-control input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  appearance: none;
  background: var(--ink);
  box-shadow: 0 0 16px rgba(197, 248, 42, 0.5);
}

.meter-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 16px rgba(197, 248, 42, 0.5);
}

.mirror-stage {
  position: relative;
  display: grid;
  min-height: 420px;
  gap: 16px;
  align-content: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(197, 248, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.05) 1px, transparent 1px),
    #040605;
  background-size: 18px 18px;
  overflow: hidden;
}

.mirror-stage::before {
  content: "mirror noise";
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mirror-stage::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--amber), var(--teal), var(--lime))
    left / var(--clarity, 34%) 100% no-repeat,
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(197, 248, 42, 0.22);
}

.mirror-noise {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(197, 248, 42, 0.22);
  border-radius: var(--radius);
  color: var(--lime);
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    calc((var(--noise, 70%) - 50%) / 12) 0 0 rgba(245, 166, 35, 0.8),
    0 0 28px rgba(197, 248, 42, 0.28);
  animation: calibration-glitch 2.8s steps(2, end) infinite;
}

.artifact-panel {
  min-height: 180px;
  overflow: hidden;
}

.artifact-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.artifact-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.artifact-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.preset-row,
.compost-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.preset-row button,
.compost-controls button,
.selector-topline button,
.rank-move button,
.zone-toggle button,
.specimen-remove,
.compost-bin button {
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preset-row button:hover,
.compost-controls button:hover,
.selector-topline button:hover,
.rank-move button:hover,
.zone-toggle button:hover,
.specimen-remove:hover,
.compost-bin button:hover {
  border-color: var(--lime);
  color: var(--lime);
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.36;
}

.taste-tray {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  perspective: 900px;
}

.specimen-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  animation: specimen-card-in 360ms ease both;
  animation-delay: var(--card-delay, 0ms);
  transform-style: preserve-3d;
}

.specimen-card--keep {
  border-color: rgba(197, 248, 42, 0.55);
}

.specimen-card--cut {
  border-color: rgba(245, 166, 35, 0.58);
}

.specimen-card--refuse {
  border-color: rgba(255, 103, 77, 0.62);
}

.specimen-card--empty {
  min-height: 180px;
  align-content: center;
  border-style: dashed;
  color: var(--muted);
}

.specimen-remove {
  justify-self: start;
}

.specimen-preview {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink);
  color: inherit;
  padding: 0;
}

.specimen-preview img,
.specimen-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.specimen-preview img {
  object-fit: cover;
}

.specimen-placeholder {
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.specimen-placeholder--eyes {
  background:
    radial-gradient(circle at 38% 45%, var(--lime) 0 8px, transparent 9px),
    radial-gradient(circle at 62% 45%, var(--teal) 0 8px, transparent 9px),
    linear-gradient(135deg, rgba(197, 248, 42, 0.12), transparent);
}

.specimen-placeholder--grain {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px),
    rgba(245, 166, 35, 0.08);
}

.specimen-placeholder--hand {
  background:
    linear-gradient(90deg, rgba(78, 205, 196, 0.1), transparent),
    radial-gradient(circle at 50% 58%, rgba(197, 248, 42, 0.14), transparent 38%);
}

.specimen-placeholder--archive {
  background:
    linear-gradient(rgba(197, 248, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 248, 42, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.03);
  background-size: 16px 16px;
}

.specimen-stamp {
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 2;
  rotate: -8deg;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specimen-card--cut .specimen-stamp {
  color: var(--amber);
}

.specimen-card--refuse .specimen-stamp {
  color: var(--danger);
}

.specimen-card.is-flipped {
  animation: specimen-flip 420ms ease both;
}

.pairwise-lab {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.pairwise-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pairwise-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pairwise-card {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--paper);
  text-align: left;
}

.pairwise-card.is-selected {
  border-color: var(--lime);
  background: var(--lime-soft);
  animation: selected-pop 280ms ease;
}

.pairwise-card span,
.pairwise-card small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loupe-panel {
  min-height: 86px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--dim);
}

.loupe-panel.is-active {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-style: solid;
  color: var(--muted);
}

.loupe-panel img,
.loupe-panel .specimen-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.specimen-card h4,
.rank-item h4,
.human-task-card h4,
.zone-column h4,
.compost-bin h4 {
  margin: 0;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.2;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-concerns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.concern-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--muted);
  text-align: left;
}

.concern-card span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.concern-card small {
  font-size: 0.78rem;
  line-height: 1.3;
}

.concern-card.is-selected {
  border-color: var(--lime);
  background: var(--lime-soft);
}

.rank-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.rank-item span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rank-item p,
.human-task-card p,
.zone-column p,
.compost-bin p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-move {
  display: grid;
  gap: 8px;
  align-content: start;
}

.pressure-scope {
  display: grid;
  gap: 18px;
}

.practice-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(197, 248, 42, 0.32);
  border-radius: var(--radius);
  background: rgba(197, 248, 42, 0.06);
}

.practice-card strong {
  color: var(--lime);
}

.pressure-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pressure-meter {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #030504;
}

.pressure-meter__track {
  height: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.pressure-meter__track span {
  display: block;
  width: 0%;
  height: 100%;
  transition: width 280ms ease;
  animation: signal-sweep 1.7s linear infinite;
}

.pressure-meter__track--amber span {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.42), var(--amber));
}

.pressure-meter__track--lime span {
  background: linear-gradient(90deg, rgba(197, 248, 42, 0.28), var(--lime));
}

.waveform {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
}

.waveform span {
  display: block;
  height: 22px;
  border-radius: 999px 999px 0 0;
  background: var(--teal);
  animation: waveform-pulse 1.4s ease-in-out infinite;
}

.waveform span:nth-child(2) {
  animation-delay: 110ms;
}

.waveform span:nth-child(3) {
  animation-delay: 220ms;
}

.waveform span:nth-child(4) {
  animation-delay: 330ms;
}

.waveform span:nth-child(5) {
  animation-delay: 440ms;
}

.selector-console {
  display: grid;
  gap: 16px;
}

.selector-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selector-topline > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selector-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.selector-option {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--paper);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.selector-option:hover,
.selector-option.is-selected {
  transform: translateY(-3px);
  border-color: var(--lime);
  background: rgba(197, 248, 42, 0.1);
  animation: selected-pop 260ms ease;
}

.selector-option span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.selector-option strong {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.16;
}

.selector-option em {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selector-option.has-revealed em {
  color: var(--lime);
}

.trait-reveal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #030504;
}

.trait-reveal p {
  margin: 0;
  color: var(--dim);
}

.compost-bins {
  display: grid;
  gap: 12px;
}

.scrap-deck {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.scrap-deck p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.scrap-deck span {
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 700;
}

.compost-bin {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  overflow: hidden;
}

.compost-bin h4 {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compost-bin ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.compost-bin li:not(.empty-bin) {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.scrap-card {
  display: grid;
  gap: 10px;
  cursor: grab;
}

.scrap-card textarea {
  min-height: 82px;
  padding: 10px;
  font-size: 0.9rem;
}

.scrap-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.scrap-card.is-fermented {
  border-color: var(--lime);
  animation: ferment-pop 420ms ease both;
}

.ferment-button {
  width: 100%;
  margin: 12px 0;
  border-color: rgba(197, 248, 42, 0.38);
  color: var(--lime);
}

.empty-bin {
  color: var(--dim);
  font-size: 0.9rem;
}

.human-task-list {
  display: grid;
  gap: 12px;
}

.human-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.human-task-card label {
  grid-column: span 1;
}

.custom-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.zone-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.zone-toggle button.is-selected {
  border-color: var(--lime);
  background: var(--lime-soft);
  color: var(--lime);
}

.boundary-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.boundary-chip--embodied,
.zone-column--human span {
  color: var(--lime);
}

.boundary-chip--judgment {
  color: var(--teal);
}

.boundary-chip--empathy {
  color: var(--amber);
}

.boundary-chip--preference {
  color: var(--paper);
}

.zone-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.zone-column {
  min-height: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.zone-column--automate {
  border-top: 4px solid var(--teal);
}

.zone-column--assist {
  border-top: 4px solid var(--amber);
}

.zone-column--human {
  border-top: 4px solid var(--lime);
}

.zone-column p {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.zone-column p span {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artifact-drawer {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 16, 14, 0.86);
  box-shadow: var(--shadow);
}

.artifact-drawer__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.artifact-drawer h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.artifact-drawer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.drawer-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.drawer-card.is-complete {
  border-color: rgba(197, 248, 42, 0.48);
  box-shadow: inset 0 0 0 1px rgba(197, 248, 42, 0.14);
}

.drawer-card span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.drawer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.drawer-card button {
  align-self: end;
  justify-self: start;
}

@keyframes scan-pulse {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.78;
  }
}

@keyframes calibration-glitch {
  0%,
  82%,
  100% {
    transform: translate(0, 0);
  }
  86% {
    transform: translate(2px, -1px);
  }
  90% {
    transform: translate(-2px, 1px);
  }
}

@keyframes specimen-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) rotateX(8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes signal-sweep {
  0% {
    filter: brightness(0.8);
  }
  50% {
    filter: brightness(1.25);
  }
  100% {
    filter: brightness(0.8);
  }
}

@keyframes waveform-pulse {
  0%,
  100% {
    height: 18px;
    background: var(--teal);
  }
  50% {
    height: 72px;
    background: var(--lime);
  }
}

@keyframes hard-cut {
  0% {
    filter: contrast(1);
  }
  50% {
    filter: contrast(1.4) brightness(1.12);
  }
  100% {
    filter: contrast(1);
  }
}

@keyframes selected-pop {
  0% {
    transform: scale(0.98);
  }
  70% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes specimen-flip {
  0% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(7deg) translateY(-3px);
  }
  100% {
    transform: rotateY(0);
  }
}

@keyframes ferment-pop {
  from {
    transform: translateY(8px);
    opacity: 0.74;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.teaching-grid details {
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(78, 205, 196, 0.08), transparent 34%),
    var(--panel);
}

.teaching-grid summary {
  cursor: pointer;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
}

.teaching-grid ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.case-card,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.case-card div,
.cta-card {
  padding: 20px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cta-card {
  min-height: 260px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.cta-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.cta-card--lime {
  border-top: 4px solid var(--lime);
}

.cta-card--teal {
  border-top: 4px solid var(--teal);
}

.cta-card--amber {
  border-top: 4px solid var(--amber);
}

.footer {
  width: var(--shell);
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .section-grid,
  .section-heading,
  .map-grid,
  .chapter-layout,
  .fieldbook-output,
  .widget-progress {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    max-width: 16ch;
  }

  .talk-console {
    grid-template-columns: 1fr;
  }

  .chapter-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
  }

  .chapter-tab {
    border-right: 1px solid var(--line);
  }

  .clip-grid,
  .case-grid,
  .cta-grid,
  .teaching-grid,
  .stack-output,
  .selector-options,
  .zone-board,
  .taste-tray,
  .artifact-drawer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exercise-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-rail,
  .audience-concerns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lab-grid--two,
  .human-task-card,
  .custom-task {
    grid-template-columns: 1fr;
  }

  .zone-toggle {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100vw - 28px, 1440px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 24px 0 32px;
  }

  .hero__copy::before {
    content: "";
    display: block;
    height: 96px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: url("Screenshot%202026-01-14%20at%2012.14.57.png") center 24% / cover;
  }

  h1 {
    font-size: clamp(2.15rem, 9.5vw, 3.2rem);
  }

  h2 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .console-notes,
  .clip-grid,
  .clip-card,
  .chapter-rail,
  .exercise-tabs,
  .form-grid,
  .form-grid--three,
  .selector-grid,
  .selector-options,
  .dna-wall,
  .case-grid,
  .cta-grid,
  .teaching-grid,
  .stack-output,
  .lab-grid--two,
  .taste-tray,
  .zone-board,
  .human-task-card,
  .progress-rail,
  .audience-concerns,
  .artifact-drawer__grid,
  .pairwise-options,
  .custom-task,
  .mirror-controls,
  .scrap-card > div,
  .loupe-panel.is-active {
    grid-template-columns: 1fr;
  }

  .chapter-tab {
    min-height: 56px;
    border-right: 0;
  }

  .exercise-tab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rank-item,
  .meter-control {
    grid-template-columns: 1fr;
  }

  .rank-move {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selector-option {
    min-height: 150px;
  }

  .mirror-stage {
    min-height: 360px;
    padding: 12px;
  }

  .artifact-topline,
  .selector-topline,
  .artifact-drawer__head,
  .pressure-labels {
    align-items: flex-start;
    flex-direction: column;
  }

  .progress-rail button,
  .concern-card {
    min-height: 48px;
  }

  .hero__lede {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 14px;
    font-size: 0.94rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .thesis-card {
    margin-top: 14px;
    padding: 14px;
  }

  .thesis-card p {
    font-size: 0.98rem;
  }

  .thesis-card cite {
    font-size: 0.58rem;
  }

  .action-row {
    margin-top: 14px;
  }

  .action-row .button {
    width: auto;
    flex: 1 1 140px;
    padding: 0 12px;
  }

  .action-row .button--ghost {
    flex-basis: 100%;
  }

  .hero-console {
    display: none;
  }

  .fieldbook-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .action-row .button {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
