/* ==========================================================================
   GENOPIX — Minimal Swiss-Brutalist 1-Bit Design System
   Auto Light/Dark via prefers-color-scheme, Geist Pixel + Evolved Pixel Fonts.
   Zero rounded corners, zero drop-shadows, zero gradients, 1px keylines.
   ========================================================================== */

@font-face {
  font-family: 'Geist Pixel';
  src: url('./fonts/GeistPixel-Square.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenoPix Swiss Mono';
  src: url('./fonts/GenoPix-SwissMono.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenoPix Art Deco';
  src: url('./fonts/GenoPix-ArtDeco.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenoPix Stencil Cut';
  src: url('./fonts/GenoPix-StencilCut.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenoPix Slab Serif';
  src: url('./fonts/GenoPix-SlabSerif.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenoPix Micro';
  src: url('./fonts/GenoPix-Micro.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenoPix System';
  src: url('./fonts/GenoPix-System.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #000000;
  --line: #000000;
  --line-sub: #d4d4d4;
  --hover-bg: #f0f0f0;
  --blue: #0047ff;
  --red: #ff3b00;
  --on-color: #ffffff;
  --font-main: 'Geist Pixel', ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #ffffff;
    --line: #ffffff;
    --line-sub: #2e2e2e;
    --hover-bg: #141414;
  }
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
  font-weight: 400;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover {
  background: var(--blue);
  color: var(--on-color);
  text-decoration: none;
}

canvas.px-canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex-shrink: 0;
}

/* Inline solid highlight pills (genopix_social_v13) */
.hl-blue {
  display: inline-block;
  background: var(--blue);
  color: var(--on-color);
  padding: 0.04em 0.24em 0.08em;
  line-height: 1.15;
}

.hl-red {
  display: inline-block;
  background: var(--red);
  color: var(--on-color);
  padding: 0.04em 0.24em 0.08em;
  line-height: 1.15;
}

/* ==========================================================================
   PAGE SHELL & GENEROUS SECTION RHYTHM
   ========================================================================== */

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 84px;
  display: flex;
  flex-direction: column;
  gap: 112px;
}

.section-plate {
  border: 1px solid var(--line);
  background: var(--bg);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}

.section-head-left {
  display: flex;
  align-items: center;
  padding: 16px 24px;
}

.section-title {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head-right {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  border-left: 1px solid var(--line-sub);
}

/* Flush Buttons & Tabs */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 75ms linear, color 75ms linear, border-color 75ms linear;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn.is-blue {
  background: var(--blue);
  color: var(--on-color);
  border-color: var(--blue);
}

.btn.is-blue:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.tab-strip {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.tab-btn {
  appearance: none;
  border: none;
  border-right: 1px solid var(--line-sub);
  background: transparent;
  color: var(--fg);
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 75ms linear, color 75ms linear;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  background: var(--hover-bg);
}

.tab-btn.is-active {
  background: var(--blue);
  color: var(--on-color);
}

.tab-btn.is-active-red {
  background: var(--red);
  color: var(--on-color);
}

.sub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-sub);
  min-height: 44px;
}

.sub-toolbar-right {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--line-sub);
}

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

.sub-toolbar-right .tab-btn:last-child {
  border-right: none;
}

/* Pixel-Crisp Range Slider */
input[type='range'].px-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line-sub);
  outline: none;
  cursor: pointer;
}

input[type='range'].px-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 16px;
  background: var(--blue);
  border: 1px solid var(--fg);
  cursor: pointer;
}

input[type='range'].px-range::-moz-range-thumb {
  width: 12px;
  height: 16px;
  background: var(--blue);
  border: 1px solid var(--fg);
  border-radius: 0;
  cursor: pointer;
}

/* ==========================================================================
   HERO — SELECTABLE ANIMATED LOGO + PURE COPY + 1:1 VIDEO WITH OVERLAY PLAY
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 580px);
  border: 1px solid var(--line);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: 36px 40px 40px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

/* Selectable machine-readable evolved logotype */
.hero-logo {
  font-family: 'GenoPix Swiss Mono', var(--font-main);
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  user-select: text;
}

.logo-ch {
  display: inline-block;
  transition: opacity 60ms linear;
}

.logo-ch.is-hidden-char {
  opacity: 0;
}

.hero-copy-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-headline {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 17ch;
}

.hero-body {
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.56;
  color: var(--fg);
  max-width: 44ch;
}

/* 1:1 Video Column */
.hero-right {
  position: relative;
  background: #000000;
  display: flex;
  align-items: stretch;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000000;
}

/* Initial Play-With-Sound Overlay Button — positioned cleanly in open band below poster text */
.video-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12%;
  background: transparent;
  transition: opacity 120ms linear;
}

.video-start-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-start-btn {
  appearance: none;
  border: 2px solid #ffffff;
  background: var(--blue);
  color: #ffffff;
  height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 80ms linear, color 80ms linear;
}

.video-start-overlay:hover .video-start-btn,
.video-start-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* Ultra-Simple Hover Controls (disappear after 2s idle) */
.video-hover-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms linear;
}

.video-hover-controls.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.v-ctrl-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 75ms linear, color 75ms linear, border-color 75ms linear;
}

.v-ctrl-btn:hover {
  background: #ffffff;
  color: #000000;
}

.v-ctrl-btn.is-muted {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.v-ctrl-btn.is-muted:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

/* ==========================================================================
   01 · GALLERY — EDGE-TO-EDGE 1-BIT MATRIX + EVOLUTION INSPECTOR
   ========================================================================== */

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

.gallery-tile {
  position: relative;
  appearance: none;
  border: none;
  border-right: 1px solid var(--line-sub);
  border-bottom: 1px solid var(--line-sub);
  background: var(--bg);
  color: var(--fg);
  aspect-ratio: 1 / 1;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 60ms linear;
}

.gallery-tile:nth-child(5n) {
  border-right: none;
}

.gallery-tile:hover:not(.is-selected) {
  background: var(--hover-bg);
}

.gallery-tile.is-selected {
  background: var(--blue);
  color: var(--on-color);
}

.gallery-tile.is-selected.is-red-tile {
  background: var(--red);
  color: var(--on-color);
}

.tile-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
  min-height: 18px;
}

.tile-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.tile-bot {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-pct {
  font-size: 11px;
  flex-shrink: 0;
}

/* Divergence Side-by-Side 3x3 Split */
.divergence-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.divergence-col {
  display: flex;
  flex-direction: column;
}

.divergence-col:first-child {
  border-right: 1px solid var(--line);
}

.divergence-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-sub);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divergence-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.divergence-grid-3x3 .gallery-tile:nth-child(5n) {
  border-right: 1px solid var(--line-sub);
}

.divergence-grid-3x3 .gallery-tile:nth-child(3n) {
  border-right: none;
}

/* Gallery Specimen Inspector */
.gallery-inspector {
  display: grid;
  grid-template-columns: 360px 1fr;
  border-top: 1px solid var(--line);
}

.insp-stage {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insp-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-sub);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insp-canvas-box {
  flex: 1;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.insp-scrubber {
  border-top: 1px solid var(--line-sub);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.insp-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insp-timeline-wrap {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line-sub);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.insp-timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insp-timeline-head span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insp-timeline-head span:last-child {
  flex-shrink: 0;
}

.insp-timeline-canvas {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.insp-meta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
}

.insp-meta-cell {
  padding: 14px 18px;
  border-right: 1px solid var(--line-sub);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.insp-meta-cell:last-child {
  border-right: none;
}

.meta-lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-val {
  font-size: 14px;
  color: var(--fg);
}

.scale-strip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inv-chip {
  background: var(--fg);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   02 · PROCESS — LIVE V13 MUTATION WORKBENCH
   ========================================================================== */

.process-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
}

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

.process-hero-stage {
  position: relative;
  flex: 1;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 32px;
}

.process-gen-tag {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-diff-legend {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  vertical-align: -1px;
}

.swatch-blue {
  background: var(--blue);
}

.swatch-red {
  background: var(--red);
}

.process-footer-bar {
  display: grid;
  grid-template-columns: 1fr 160px;
  border-top: 1px solid var(--line);
  min-height: 92px;
}

.process-title-cell {
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  border-right: 1px solid var(--line);
}

.process-pct-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.process-cands {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.proc-cand {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  transition: background-color 60ms linear;
}

.proc-cand:last-child {
  border-bottom: none;
}

.proc-cand.is-win {
  background: var(--blue);
  color: var(--on-color);
}

.proc-cand.is-win.is-red-win {
  background: var(--red);
  color: var(--on-color);
}

.proc-cand-tag {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proc-cand-pct {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 13px;
}

.proc-cand-check {
  position: absolute;
  top: 12px;
  right: 14px;
}

/* ==========================================================================
   03 · TYPE — LIVE SELECTABLE EVOLVED FONT TESTER
   ========================================================================== */

.type-plate {
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  transition: background-color 90ms linear, color 90ms linear;
}

.type-plate.is-inverted {
  background: var(--fg);
  color: var(--bg);
}

.type-tester-wrap {
  padding: 44px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 290px;
}

.type-specimen-editor {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: inherit;
  text-align: center;
  font-family: 'GenoPix Swiss Mono', var(--font-main);
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.42;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  caret-color: var(--blue);
  overflow: hidden;
  padding: 4px 0;
}

.type-specimen-editor::selection {
  background: var(--blue);
  color: #ffffff;
}

.az-matrix {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  border-bottom: 1px solid var(--line);
}

.az-cell {
  position: relative;
  appearance: none;
  border: none;
  border-right: 1px solid var(--line-sub);
  border-bottom: 1px solid var(--line-sub);
  background: var(--bg);
  color: var(--fg);
  padding: 12px 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.az-cell:nth-child(13n) {
  border-right: none;
}

.az-cell:nth-child(n + 14) {
  border-bottom: none;
}

.az-cell:hover:not(.is-selected) {
  background: var(--hover-bg);
}

.az-cell.is-selected {
  background: var(--blue);
  color: var(--on-color);
}

.az-lbl {
  font-size: 11px;
}

.az-glyph {
  font-size: 32px;
  line-height: 1.1;
  display: block;
}

.ms-strip {
  display: grid;
  grid-template-columns: 220px repeat(6, 1fr);
}

.ms-head {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border-right: 1px solid var(--line-sub);
}

.ms-glyph-name {
  font-size: 36px;
  line-height: 1;
}

.ms-step-cell {
  position: relative;
  border-right: 1px solid var(--line-sub);
  padding: 12px 10px 14px;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ms-step-cell:last-child {
  border-right: none;
  background: var(--blue);
  color: var(--on-color);
}

.ms-step-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

/* ==========================================================================
   04 · SEMANTIC JENGA
   ========================================================================== */

.lab-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lab-left {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 400px;
}

.lab-right {
  display: flex;
  flex-direction: column;
}

.lab-pane {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-sub);
}

.lab-pane:last-child {
  border-bottom: none;
  flex: 1;
}

.pane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.slider-bar {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.slider-bar span {
  white-space: nowrap;
}

.lab-caption {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 20px;
  line-height: 20px;
}

.chart-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.kv-list {
  display: grid;
  gap: 8px;
  font-size: 12px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.kv-row span:first-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.kv-row span:last-child {
  text-align: right;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-bar {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(6, 1fr);
}

.strip-item {
  appearance: none;
  border: none;
  border-right: 1px solid var(--line-sub);
  background: var(--bg);
  color: var(--fg);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.strip-item:last-child {
  border-right: none;
}

.strip-item:hover:not(.is-active) {
  background: var(--hover-bg);
}

.strip-item.is-active {
  background: var(--blue);
  color: var(--on-color);
}

.strip-item-lbl {
  font-size: 11px;
}

/* ==========================================================================
   MINIMAL FOOTER
   ========================================================================== */

.site-footer {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 28px;
}

.footer-logo {
  font-family: 'GenoPix Swiss Mono', var(--font-main);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--fg);
}

.footer-credit {
  font-size: 15px;
  color: var(--fg);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1060px) {
  .page-shell {
    padding: 32px 20px 64px;
    gap: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 32px 28px;
    gap: 32px;
  }

  .gallery-inspector,
  .process-layout,
  .lab-split,
  .divergence-split {
    grid-template-columns: 1fr;
  }

  .insp-stage,
  .process-main,
  .lab-left,
  .divergence-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .process-cands {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }

  .proc-cand {
    border-bottom: none;
    border-right: 1px solid var(--line);
    min-height: 160px;
  }

  .proc-cand:last-child {
    border-right: none;
  }

  .ms-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .ms-head {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--line-sub);
  }

  .ms-step-cell {
    border-bottom: 1px solid var(--line-sub);
  }

  .az-matrix {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 20px 14px 56px;
    gap: 64px;
  }

  .hero-left {
    padding: 24px 20px;
    gap: 28px;
  }

  .section-head-left {
    padding: 16px 18px;
  }

  .section-head-right {
    border-left: none;
    border-top: 1px solid var(--line-sub);
    width: 100%;
  }

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

  .gallery-tile:nth-child(5n) {
    border-right: 1px solid var(--line-sub);
  }

  .gallery-tile:nth-child(2n) {
    border-right: none;
  }

  .gallery-grid .gallery-tile:nth-child(odd):last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
    border-right: none;
  }

  .insp-meta-bar {
    grid-template-columns: 1fr;
  }

  .insp-meta-cell {
    border-right: none;
    border-bottom: 1px solid var(--line-sub);
  }

  .insp-meta-cell:last-child {
    border-bottom: none;
  }

  .process-cands {
    grid-template-columns: 1fr;
  }

  .proc-cand {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .proc-cand:last-child {
    border-bottom: none;
  }

  .process-footer-bar {
    grid-template-columns: 1fr 110px;
  }

  .process-title-cell {
    padding: 0 18px;
  }

  .type-tester-wrap {
    padding: 28px 18px;
    min-height: 220px;
  }

  .strip-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .strip-item {
    border-bottom: 1px solid var(--line-sub);
  }
}
