:root {
  /* Cedar Smoke palette aligned with evermindlabs.com / anilcelik.com */
  --bg: #FAF8F4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #FFFFFF;
  --surface-tint: #F3EFE7;
  --bg-elevated: rgba(206, 198, 185, 0.24);
  --highlight-wash: rgba(138, 108, 82, 0.13);
  --highlight-wash-hover: rgba(138, 108, 82, 0.22);

  --ink: #1E1A17;
  --ink-body: #3A312A;
  --ink-muted: #685C50;
  --ink-subtle: #7B6F63;
  --ash: #A09486;
  --linen: #CEC6B9;

  --border: rgba(104, 92, 80, 0.16);
  --border-strong: rgba(58, 49, 42, 0.30);

  --accent: #1E1A17;
  --accent-hover: #3A312A;
  --accent-soft: rgba(138, 108, 82, 0.12);
  --danger: #C8553D;
  --danger-soft: rgba(200, 85, 61, 0.12);
  --safe: #2A7B5C;
  --safe-soft: rgba(42, 123, 92, 0.12);

  /* Dark espresso instrument stages */
  --stage-bg: #1E1A17;
  --stage-surface: #26211D;
  --stage-border: #3B332C;
  --stage-ink: #FAF8F4;
  --stage-muted: #B6A99B;
  --stage-sand: #DFC7A5;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Strict 3-size body scale */
  --text-heading: clamp(1.7rem, 2.9vw, 2.25rem);
  --text-body: 1.03rem;
  --text-sm: 0.85rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 86% 6%, rgba(206, 198, 185, 0.28), transparent 46%),
    radial-gradient(circle at 12% 84%, rgba(160, 148, 134, 0.16), transparent 48%),
    linear-gradient(180deg, #FCFBF8 0%, #FAF8F4 56%, #F5F1EA 100%);
  color: var(--ink-body);
  font-size: var(--text-body);
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  position: relative;
}

/* Signature left-edge tonal spine from evermindlabs.com */
.tonal-spine {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  z-index: 60;
  pointer-events: none;
  opacity: 0.78;
  background: linear-gradient(180deg, #CEC6B9 0%, #A09486 26%, #685C50 54%, #3A312A 80%, #1E1A17 100%);
}

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

a {
  color: inherit;
}

button,
input {
  font-family: inherit;
}

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

.container {
  width: min(1060px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.15rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), padding 180ms var(--ease-out);
}

.site-header.is-scrolled {
  background: #FAF8F4;
  border-bottom-color: var(--border);
  padding: 0.82rem 0;
}

.header-inner {
  width: min(1060px, 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ink-subtle);
  transition: color 160ms var(--ease-out);
  white-space: nowrap;
}

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

/* Hero */
.hero {
  position: relative;
  padding-top: clamp(5.75rem, 9vw, 7.25rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.25rem);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(104, 92, 80, 0.045) 1px, transparent 1px);
  background-size: 100% 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
}

.hero-copy {
  text-align: center;
  max-width: 860px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5.8vw, 4.6rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.036em;
  color: var(--ink);
}

.hero-sub {
  margin: 1.35rem auto 0;
  max-width: 56ch;
  font-size: var(--text-body);
  color: var(--ink-muted);
}

.stage-wrap {
  margin-top: clamp(2.1rem, 3.8vw, 3rem);
}

/* Interactive 1: Dark Espresso Editorial Instrument Stage */
.instrument-stage {
  background: var(--stage-bg);
  color: var(--stage-ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid var(--stage-border);
  box-shadow: 0 22px 44px -26px rgba(30, 26, 23, 0.32);
}

.stage-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.15rem 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--stage-border);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.control-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--stage-muted);
}

.section .control-label {
  color: var(--ink-subtle);
}

/* Connected segmented control */
.segmented {
  display: inline-flex;
  max-width: 100%;
  background: rgba(250, 248, 244, 0.05);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.section .segmented {
  background: var(--surface);
  border-color: var(--border-strong);
}

.seg-option {
  border: 0;
  background: transparent;
  color: var(--stage-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.46rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.seg-option:hover {
  color: var(--stage-ink);
}

.seg-option.is-active {
  background: var(--stage-sand);
  color: var(--ink);
  font-weight: 600;
}

.section .seg-option {
  color: var(--ink-muted);
}

.section .seg-option:hover {
  color: var(--ink);
}

.section .seg-option.is-active {
  background: var(--ink);
  color: #FAF8F4;
}

/* Toggle Switch */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--stage-ink);
  padding-bottom: 0.35rem;
  user-select: none;
  transition: opacity 180ms var(--ease-out);
}

.toggle-switch.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #3E352E;
  flex-shrink: 0;
  transition: background-color 180ms var(--ease-out);
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FAF8F4;
  transition: transform 180ms var(--ease-out);
}

.toggle-switch input:checked + .toggle-track {
  background: #B89368;
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(18px);
}

.toggle-switch input:focus-visible + .toggle-track {
  outline: 2px solid var(--stage-sand);
  outline-offset: 2px;
}

/* Timeline Canvas */
.timeline-panel {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--stage-border);
}

.timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--stage-ink);
}

.timeline-caption {
  font-size: var(--text-sm);
  color: var(--stage-muted);
}

.date-readout {
  font-family: var(--font-mono);
  font-size: var(--text-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--stage-sand);
  white-space: nowrap;
}

.timeline-canvas-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
}

.timeline-svg {
  width: 100%;
  height: auto;
  min-height: 148px;
}

.slider-row {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.slider-bound {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--stage-muted);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #3E352E;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #FAF8F4;
  border: 4px solid #C6A477;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 140ms var(--ease-out);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

input[type="range"]::-moz-range-thumb {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #FAF8F4;
  border: 4px solid #C6A477;
}

/* Readout Grid */
.readout-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  padding-top: 1.35rem;
}

.readout-pane {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pane-heading {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--stage-muted);
}

.doc-quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 1.5px solid #685C50;
  color: var(--stage-ink);
  font-size: var(--text-body);
}

.verdict-text {
  margin: 0;
  color: var(--stage-ink);
  font-size: var(--text-body);
}

.leak-meter {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.leak-meter-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--stage-muted);
}

.leak-meter-row strong {
  color: var(--stage-ink);
  font-weight: 500;
}

.meter-track {
  height: 6px;
  border-radius: 999px;
  background: #3B332C;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 85%;
  border-radius: 999px;
  background: var(--danger);
  transition: width 220ms var(--ease-out), background-color 220ms var(--ease-out);
}

/* Shared Section Layout */
.section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.section-tinted {
  background: rgba(239, 235, 228, 0.52);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.section p {
  margin: 0;
  font-size: var(--text-body);
  color: var(--ink-body);
  max-width: 62ch;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 2.25rem;
}

.section-header-copy {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 620px;
}

/* Why Section */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.editorial-lead {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.failure-list {
  display: flex;
  flex-direction: column;
}

.failure-item {
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}

.failure-item:first-child {
  padding-top: 0.2rem;
  border-top: 0;
}

/* Architecture Explorer */
.arch-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.arch-diagram-wrap {
  background: var(--stage-bg);
  padding: clamp(1rem, 2.2vw, 1.75rem);
  border-bottom: 1px solid var(--stage-border);
}

.arch-svg {
  width: 100%;
  height: auto;
}

.arch-controls-bar {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arch-steps-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.pillar-tab {
  text-align: left;
  background: rgba(250, 248, 244, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.pillar-tab:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.pillar-tab.is-active {
  background: var(--highlight-wash);
  border-color: var(--ink);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.pillar-brief {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.arch-inspector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.inspector-copy {
  max-width: 640px;
}

/* Crisp warm-monochrome editorial pill button matching evermindlabs.com */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #FAF8F4;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Versus View */
.versus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.versus-col {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.versus-col-accent {
  background: var(--highlight-wash);
  border-left: 1px solid var(--border);
}

.monolith-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  padding: 1rem 0 0.5rem;
}

.monolith-block {
  height: 44px;
  border-radius: 6px;
  background: rgba(206, 198, 185, 0.36);
  border: 1px solid rgba(104, 92, 80, 0.22);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.continuous-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
}

.cv-core {
  background: var(--stage-bg);
  color: #FAF8F4;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.cv-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.cv-gate-line {
  flex: 1;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.cv-gate-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.cv-stream {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.versus-note {
  font-family: var(--font-mono);
  font-size: var(--text-sm) !important;
  font-weight: 400;
  color: var(--ink-muted) !important;
}

/* Interactive 3: Spot the Spoiler Quiz */
.challenge-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.quiz-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.quiz-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-subtle);
}

.quiz-card {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quiz-date {
  font-family: var(--font-mono);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink);
}

.quiz-excerpt {
  margin: 0;
  padding-left: 1.15rem;
  border-left: 1.5px solid var(--linen);
  font-size: var(--text-body);
  color: var(--ink);
  max-width: 65ch;
}

.quiz-response-box {
  background: rgba(250, 248, 244, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quiz-response-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ink-subtle);
}

.quiz-response-text {
  color: var(--ink) !important;
}

.quiz-segmented {
  width: fit-content;
}

.quiz-feedback {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.feedback-verdict {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
}

.feedback-verdict.is-correct {
  color: var(--safe);
}

.feedback-verdict.is-wrong {
  color: var(--danger);
}

.feedback-chrono {
  background: var(--highlight-wash);
  border-left: 2px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.95rem 1.1rem;
  width: 100%;
  max-width: 68ch;
}

.feedback-chrono-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.feedback-chrono p {
  color: var(--ink-body);
}

/* Research Reading List — styled directly after evermindlabs.com entries */
.research-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.paper-row {
  display: grid;
  grid-template-columns: 205px 1fr auto;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.45rem 0.65rem;
  margin-inline: -0.65rem;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  transition: background-color 160ms var(--ease-out);
}

.paper-row:hover {
  background: var(--bg-elevated);
}

.paper-meta {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.paper-authors {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink);
}

.paper-venue {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-subtle);
}

.paper-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.paper-title {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.paper-link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--highlight-wash);
  border-bottom: 1px solid rgba(104, 92, 80, 0.38);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.paper-link:hover {
  color: var(--ink);
  background: var(--highlight-wash-hover);
  border-bottom-color: var(--ink);
}

#research {
  border-bottom: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .editorial-split,
  .readout-grid,
  .versus-grid {
    grid-template-columns: 1fr;
  }

  .versus-col-accent {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .arch-steps-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .paper-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding-inline: 0.4rem;
    margin-inline: -0.4rem;
  }

  .paper-link {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  .container,
  .header-inner {
    width: min(1060px, 100% - 1.75rem);
  }

  .header-inner {
    gap: 0.75rem;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .site-nav a:nth-child(1),
  .site-nav a:nth-child(2),
  .site-nav a:nth-child(4) {
    display: none;
  }

  .control-group {
    width: 100%;
  }

  .segmented {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .seg-option {
    flex: 1 1 auto;
    text-align: center;
    white-space: normal;
    padding: 0.5rem 0.65rem;
  }

  .timeline-canvas-wrap,
  .arch-diagram-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .timeline-svg {
    min-width: 620px;
  }

  .arch-svg {
    min-width: 680px;
  }

  .arch-steps-nav {
    grid-template-columns: 1fr;
  }

  .monolith-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .quiz-segmented {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
