

:root {
  --bg-paper: #FFFFFF;
  --bg-surface: #F7F7F5;
  --bg-cosmos: #0E0E0D;
  --text-ink: #0D0D0C;
  --text-lead: #5A5853;
  --text-muted: #8A8780;
  --border-ink: #0D0D0C;
  --border-hairline: #DFDDD7;
  --accent-red: #F9423A;
  --site-margin: 40px;
  --grid-gap: 24px;
  --mono-size: 12.5px;
  --default-text: 18px;
  --menu-height: 42px;
  --font-serif: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-paper);
  color: var(--text-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-paper);
  color: var(--text-ink);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button, input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Calibrated Bodoni Moda Utility */
.font-display-serif,
h1,
.poster-serif {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. FIXED 6-COLUMN TOP HAIRLINE MENU & 29-LOCALE SWITCHER
   ========================================================================== */

.top-nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 var(--site-margin);
}

.top-nav-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) repeat(auto-fit, minmax(80px, 1fr));
  column-gap: 16px;
  align-items: stretch;
  min-height: var(--menu-height);
}

.nav-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  height: var(--menu-height);
  border-bottom: 1px solid var(--border-ink);
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  position: relative;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.nav-cell--brand {
  font-weight: 500;
  gap: 10px;
}

.nav-cell--brand svg {
  width: 19px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cell--brand:hover svg {
  transform: translateY(-1px) scale(1.05);
  color: var(--accent-red);
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--border-ink);
  display: inline-block;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.nav-cell.is-active .nav-dot,
.nav-cell:hover .nav-dot,
.nav-cell[aria-expanded="true"] .nav-dot {
  opacity: 1;
  transform: scale(1);
}

.nav-cell.is-active .nav-dot {
  background-color: var(--border-ink);
}

.nav-cell:hover .nav-dot {
  background-color: var(--accent-red);
}

.nav-cell--locale {
  justify-content: space-between;
  width: 100%;
}

.locale-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 5px;
  border: 1px solid var(--border-ink);
  line-height: 1;
}

/* Weekday Edition Switcher (Monday Swiss Grid Cell & Architectural Panel) */
.day-switcher {
  position: relative;
}

.nav-cell--edition {
  justify-content: space-between;
  width: 100%;
}

.day-switcher--signal .day-switcher-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-ink);
  cursor: pointer;
}

.nav-cell--edition.is-open .nav-dot,
.day-switcher--signal .day-switcher-trigger[aria-expanded="true"] .nav-dot {
  opacity: 1;
  transform: scale(1);
  background-color: var(--accent-red);
}

.day-switcher-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  background: var(--bg-paper);
  border: 1px solid var(--border-ink);
  border-radius: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 1015;
  text-transform: none;
}

.day-switcher-popover.is-open {
  display: flex;
}

.day-switcher-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-ink);
}

.day-switcher-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 10px 8px;
  border: none;
  border-bottom: 1px solid var(--border-hairline);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.day-switcher-option:hover {
  background-color: var(--bg-surface);
  border-bottom-color: var(--border-ink);
}

.day-switcher-option.is-active {
  background-color: var(--text-ink);
  color: var(--bg-paper);
  border-bottom-color: var(--text-ink);
}

.day-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: inherit;
}

.day-opt-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  padding: 2px 5px;
  border: 1px solid var(--border-ink);
  line-height: 1;
  color: var(--text-ink);
}

.day-switcher-option.is-active .day-opt-badge {
  color: var(--bg-paper);
  border-color: var(--bg-paper);
}

.day-opt-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

.day-switcher-option.is-active .day-opt-sub {
  color: rgba(255, 255, 255, 0.72);
}

/* Mobile Header Bar (<= 768px) */
.mobile-nav-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  border-bottom: 1px solid var(--border-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.mobile-brand svg {
  width: 18px;
  height: 19px;
}

.mobile-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mobile-bracket-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 2px;
}

.mobile-drawer {
  display: none;
  background: var(--bg-paper);
  border-bottom: 1px solid var(--border-ink);
  padding: 16px 0 24px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-drawer-link.is-active {
  color: var(--accent-red);
}

/* 29-Language Switcher Dropdown Panel */
.locale-panel {
  position: absolute;
  top: calc(var(--menu-height) + 6px);
  right: var(--site-margin);
  width: min(760px, calc(100vw - (var(--site-margin) * 2)));
  background: var(--bg-paper);
  border: 1px solid var(--border-ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  padding: 20px;
  display: none;
  z-index: 1010;
}

.locale-panel.is-open {
  display: block;
}

.locale-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-ink);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
}

.locale-search-input {
  border: 1px solid var(--border-ink);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  width: 220px;
  background: var(--bg-surface);
}

.locale-search-input:focus {
  outline: 1px solid var(--accent-red);
  background: var(--bg-paper);
}

.locale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 14px;
  max-height: 340px;
  overflow-y: auto;
}

.locale-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-sans);
  font-size: 13px;
  text-align: left;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.locale-option:hover {
  background-color: var(--bg-surface);
  border-bottom-color: var(--border-ink);
}

.locale-option.is-active {
  background-color: var(--text-ink);
  color: var(--bg-paper);
  border-bottom-color: var(--text-ink);
}

.locale-option-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ==========================================================================
   2. CORE 12-COLUMN ARCHITECTURAL GRID & LAYOUT PRIMITIVES
   ========================================================================== */

.page-wrap {
  padding-top: calc(var(--menu-height) + 28px);
  margin-left: var(--site-margin);
  margin-right: var(--site-margin);
  flex: 1;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--grid-gap);
}

.rule-ink {
  width: 100%;
  height: 1px;
  background-color: var(--border-ink);
}

.rule-hairline {
  width: 100%;
  height: 1px;
  background-color: var(--border-hairline);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.mono-muted {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-lead);
}

/* Pre-Header Telemetry (Columns 1-4 & 9-12) */
.pre-header-telemetry {
  padding-top: 8px;
  padding-bottom: 36px;
  align-items: start;
}

.telemetry-left {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.telemetry-right {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px dotted var(--border-hairline);
  padding-bottom: 4px;
}

/* ==========================================================================
   3. MONUMENTAL MIXED-FONT JUSTIFIED HERO POSTER (INDEX.HTML)
   ========================================================================== */

.micro-identifier {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 12px 0 26px;
}

.hero-poster-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 20px;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  user-select: none;
}

.poster-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  font-size: clamp(1.1rem, 4.9vw, 4.85rem);
  white-space: nowrap;
}

.poster-serif {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.poster-sans {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.poster-dot {
  display: inline-block;
  width: 0.52em;
  height: 0.52em;
  border-radius: 50%;
  background-color: var(--text-ink);
  vertical-align: middle;
  margin-right: 0.08em;
  transform: translateY(-0.12em);
}

/* Post-Header Word-Distributed Columns + Primary Essay CTA */
.post-header-band {
  padding-top: 48px;
  padding-bottom: 56px;
  align-items: end;
}

.word-justify-col-a {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.word-justify-col-b {
  grid-column: 5 / 9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.word-justify-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.18;
}

.canonical-identity-prose {
  grid-column: 1 / 8;
  margin-top: 0;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-ink);
}

.canonical-identity-prose strong {
  font-weight: 600;
}

.hero-primary-cta-col {
  grid-column: 8 / 13;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.sa-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-ink);
  border-bottom: 1px solid var(--border-ink);
  background: var(--bg-paper);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.sa-action-bar:hover {
  background-color: var(--text-ink);
  color: var(--bg-paper);
  padding-left: 24px;
}

.sa-action-bar--accent {
  background-color: var(--text-ink);
  color: var(--bg-paper);
}

.sa-action-bar--accent:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--bg-paper);
}

.sa-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* ==========================================================================
   4. PLAYABLE 3-PILLAR IDENTITY LABORATORY STAGE (INDEX.HTML)
   ========================================================================== */

.pillar-lab-section {
  margin-top: 12px;
  margin-bottom: 110px;
  border-top: 1px solid var(--border-ink);
  border-bottom: 1px solid var(--border-ink);
  background: var(--bg-surface);
}

.pillar-lab-toolbar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  border-bottom: 1px solid var(--border-ink);
  background: var(--bg-paper);
}

.pillar-tab {
  grid-column: span 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  border-right: 1px solid var(--border-hairline);
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.pillar-tab.is-active {
  background-color: var(--text-ink);
  color: var(--bg-paper);
}

.pillar-stage-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  min-height: 460px;
  align-items: stretch;
}

.pillar-canvas-pane {
  grid-column: 1 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  border-right: 1px solid var(--border-ink);
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(13, 13, 12, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(13, 13, 12, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg-surface);
}

.cube-stage-wrap {
  position: relative;
  width: 280px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease-out, opacity 0.25s ease;
  pointer-events: none;
}

.cube-layer--construction {
  color: var(--accent-red);
  opacity: 0.42;
}

.cube-layer--echo {
  color: var(--text-lead);
  opacity: 0.28;
}

.cube-layer--primary {
  color: var(--text-ink);
  opacity: 1;
}

.cube-sketch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: crosshair;
  pointer-events: auto;
  touch-action: none;
}

.small-mono-btn.is-active {
  background-color: var(--text-ink);
  color: var(--bg-paper);
  border-color: var(--text-ink);
}

.noise-clutter-overlay {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.pillar-inspector-pane {
  grid-column: 9 / 13;
  padding: 28px 24px 28px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.pillar-control-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border-ink);
  background: var(--bg-paper);
}

.small-mono-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  background: var(--bg-paper);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.small-mono-btn:hover {
  background: var(--text-ink);
  color: var(--bg-paper);
}

/* ==========================================================================
   5. ESSAYS LEDGER ROWS & ARCHIVE TABLE (INDEX.HTML & ESSAYS.HTML)
   ========================================================================== */

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-ink);
}

.essay-ledger-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 16px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-ink);
  align-items: stretch;
  position: relative;
  transition: background-color 0.2s ease;
}

.essay-ledger-row:hover {
  background-color: var(--bg-surface);
}

.essay-ledger-left {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.essay-index-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.essay-ledger-title {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-size: clamp(28px, 2.75vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.essay-ledger-subtitle {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text-lead);
  max-width: 54ch;
}

.essay-ledger-visual {
  grid-column: 6 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hairline);
  background: var(--bg-paper);
  padding: 20px;
  min-height: 210px;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.essay-ledger-row:hover .essay-ledger-visual {
  border-color: var(--border-ink);
  transform: translateY(-2px);
}

.essay-ledger-right {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
}

.essay-meta-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.essay-meta-pair {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-hairline);
}

/* ==========================================================================
   6. LONG-FORM ESSAY READER (ESSAY.HTML & ESSAY-QUADRANT.HTML)
   ========================================================================== */

.article-split-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 28px;
  padding-top: 20px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-ink);
  align-items: center;
}

.article-hero-plate {
  grid-column: 1 / 6;
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  min-height: 380px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-hero-header {
  grid-column: 6 / 13;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.article-h1 {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.article-subtitle-lead {
  font-family: var(--font-sans);
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-ink);
}

.article-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

/* Calm, Effortless Reading Layout + Context Rail */
.reading-architecture {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  padding-top: 64px;
  padding-bottom: 96px;
  align-items: start;
}

.reading-prose-col {
  grid-column: 2 / 9;
  max-width: 680px;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.68;
  color: var(--text-ink);
}

.reading-prose-col p {
  margin-bottom: 1.45em;
}

.reading-prose-col h2 {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.15;
  margin-top: 2.2em;
  margin-bottom: 0.85em;
  padding-top: 0.8em;
  border-top: 1px solid var(--border-ink);
}

.reading-prose-col ol,
.reading-prose-col ul {
  margin: 1.4em 0 1.6em 1.25em;
}

.reading-prose-col li {
  margin-bottom: 0.9em;
  padding-left: 0.35em;
}

.reading-prose-col em {
  font-style: italic;
}

.reading-prose-col strong {
  font-weight: 600;
}

/* Inline Context Triggers */
.ctx-trigger {
  display: inline;
  border-bottom: 1.5px dotted var(--accent-red);
  padding-bottom: 1px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ctx-trigger:hover,
.ctx-trigger.is-active {
  background-color: rgba(249, 66, 58, 0.12);
  border-bottom-style: solid;
}

.ctx-sup {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-red);
  margin-left: 2px;
  vertical-align: super;
  line-height: 0;
}

.lineage-chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 26px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border-left: 2px solid var(--border-ink);
}

.lineage-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--border-ink);
  background: var(--bg-paper);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lineage-chip:hover,
.lineage-chip.is-active {
  background: var(--text-ink);
  color: var(--bg-paper);
}

/* Sticky Context Dossier Rail (Columns 9-12) */
.reading-dossier-rail {
  grid-column: 9 / 13;
  position: sticky;
  top: calc(var(--menu-height) + 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dossier-card {
  border: 1px solid var(--border-ink);
  background: var(--bg-surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dossier-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
}

.dossier-title {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
}

.dossier-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-red);
  text-transform: uppercase;
}

.dossier-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-ink);
}

.dossier-index-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-hairline);
}

.dossier-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-paper);
  cursor: pointer;
}

.dossier-pill.is-active,
.dossier-pill:hover {
  border-color: var(--border-ink);
  background: var(--text-ink);
  color: var(--bg-paper);
}

/* Redesigned 2x2 Quadrant Diagrams (essay-quadrant.html) */
.quadrant-figure {
  margin: 42px 0;
  border: 1px solid var(--border-ink);
  background: var(--bg-paper);
}

.quadrant-figure-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-ink);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
}

.quadrant-svg-wrap {
  padding: 20px;
  display: flex;
  justify-content: center;
  background: var(--bg-paper);
}

.quadrant-svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

.quad-cell {
  cursor: pointer;
  transition: fill 0.15s ease;
}

.quad-cell:hover,
.quad-cell.is-active {
  fill: rgba(249, 66, 58, 0.10);
}

.quadrant-readout {
  padding: 16px 20px;
  border-top: 1px solid var(--border-ink);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quadrant-readout-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-red);
}

.quadrant-readout-desc {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-ink);
}

/* ==========================================================================
   7. ABOUT PAGE — EXPERIMENTAL STAGGERED BIOGRAPHY & 5 OBSESSIONS
   ========================================================================== */

.about-split-header {
  padding-top: 16px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-ink);
}

.about-h1-left {
  grid-column: 1 / 7;
  font-size: clamp(38px, 5vw, 74px);
  line-height: 0.98;
  text-transform: uppercase;
}

.about-h1-right {
  grid-column: 7 / 13;
  font-size: clamp(38px, 5vw, 74px);
  line-height: 0.98;
  text-transform: uppercase;
}

.about-center-bridge {
  grid-column: 4 / 10;
  margin: 48px 0;
  border: 1px solid var(--border-ink);
  padding: 24px;
  background: var(--bg-surface);
}

.bio-stagger-section {
  padding: 32px 0 80px;
  row-gap: 44px;
}

.bio-block-left {
  grid-column: 1 / 7;
}

.bio-block-right {
  grid-column: 4 / 10;
}

.bio-indent-prose {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.62;
  text-indent: 56px;
  text-align: left;
  color: var(--text-ink);
}

.bio-indent-prose--lead {
  text-indent: 0;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}

/* 5 Simple Obsessions Interactive Rows */
.obsessions-section {
  padding: 64px 0 96px;
  border-top: 1px solid var(--border-ink);
}

.obsession-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-ink);
  cursor: pointer;
  transition: background-color 0.15s ease, padding-left 0.2s ease;
}

.obsession-row:hover,
.obsession-row.is-active {
  background-color: var(--bg-surface);
  padding-left: 12px;
}

.obsession-num {
  grid-column: 1 / 2;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-red);
}

.obsession-title {
  grid-column: 2 / 8;
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.08;
}

.obsession-note {
  grid-column: 8 / 13;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-lead);
}

.beautifullysimple-convergence {
  margin-top: 56px;
  padding: 48px 36px;
  border: 1px solid var(--border-ink);
  background: var(--text-ink);
  color: var(--bg-paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.convergence-hashtag {
  font-family: var(--font-sans);
  font-size: clamp(34px, 5.4vw, 82px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ==========================================================================
   8. QFWFQ COSMIC PLAYGROUND (QFWFQ.HTML)
   ========================================================================== */

.qfwfq-hero-grid {
  padding-top: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-ink);
  align-items: end;
}

.qfwfq-title-col {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qfwfq-quote-col {
  grid-column: 7 / 13;
  border-left: 2px solid var(--border-ink);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calvino-quote {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(21px, 1.85vw, 27px);
  line-height: 1.38;
}

.cosmic-stage-shell {
  margin: 36px 0 72px;
  border: 1px solid var(--border-ink);
  background: var(--bg-cosmos);
  color: #F7F7F5;
}

.cosmic-telemetry-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.cosmic-canvas-wrap {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.qfwfq-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.cosmic-overlay-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 24px;
  transition: opacity 0.3s ease;
}

.cosmic-overlay-prompt.is-hidden {
  opacity: 0;
}

.prompt-headline {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-size: clamp(28px, 3.3vw, 46px);
  color: #FFFFFF;
  margin-bottom: 10px;
}

.cosmic-controls-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cosmic-btn {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.cosmic-btn:hover,
.cosmic-btn.is-active {
  background-color: var(--accent-red);
  color: #FFFFFF;
}

.split-col-left {
  grid-column: 1 / 7;
}

.split-col-right {
  grid-column: 7 / 13;
}

.split-col-5 {
  grid-column: 1 / 6;
}

.split-col-7 {
  grid-column: 6 / 13;
  text-align: right;
}

.qfwfq-story-left {
  grid-column: 1 / 5;
}

.qfwfq-story-right {
  grid-column: 6 / 13;
}

/* ==========================================================================
   9. CANONICAL ARCHITECTURAL FOOTER (ALL 6 PAGES)
   ========================================================================== */

.site-footer {
  margin-top: 100px;
  padding: 0 var(--site-margin) 48px;
}

.footer-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border-ink);
  border-bottom: 1px solid var(--border-ink);
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  text-transform: uppercase;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-ink);
}

.footer-brand-col {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
}

.footer-nav-col {
  grid-column: 6 / 9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
}

.footer-social-col {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS (1024px & 768px / 375px)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --site-margin: 24px;
    --grid-gap: 16px;
  }

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

  .pillar-canvas-pane {
    grid-column: 1 / 8;
  }

  .pillar-inspector-pane {
    grid-column: 8 / 13;
  }

  .reading-prose-col {
    grid-column: 1 / 8;
  }

  .reading-dossier-rail {
    grid-column: 8 / 13;
  }
}

@media (max-width: 768px) {
  :root {
    --site-margin: 18px;
    --grid-gap: 12px;
    --menu-height: 48px;
  }

  .top-nav-grid {
    display: none;
  }

  .mobile-nav-bar {
    display: flex;
  }

  .locale-panel {
    left: var(--site-margin);
    right: var(--site-margin);
    width: auto;
  }

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

  .telemetry-left,
  .telemetry-right,
  .word-justify-col-a,
  .word-justify-col-b,
  .canonical-identity-prose,
  .hero-primary-cta-col,
  .pillar-tab,
  .pillar-canvas-pane,
  .pillar-inspector-pane,
  .essay-ledger-left,
  .essay-ledger-visual,
  .essay-ledger-right,
  .article-hero-plate,
  .article-hero-header,
  .reading-prose-col,
  .reading-dossier-rail,
  .about-h1-left,
  .about-h1-right,
  .about-center-bridge,
  .bio-block-left,
  .bio-block-right,
  .obsession-num,
  .obsession-title,
  .obsession-note,
  .qfwfq-title-col,
  .qfwfq-quote-col,
  .split-col-left,
  .split-col-right,
  .split-col-5,
  .split-col-7,
  .qfwfq-story-left,
  .qfwfq-story-right,
  .footer-brand-col,
  .footer-nav-col,
  .footer-social-col {
    grid-column: 1 / -1;
  }

  .split-col-7 {
    text-align: left;
  }

  .poster-line {
    font-size: clamp(0.95rem, 4.6vw, 1.85rem);
  }

  .pillar-canvas-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-ink);
    min-height: 320px;
  }

  .pillar-inspector-pane {
    padding: 20px 16px;
  }

  .article-hero-header {
    padding-left: 0;
  }

  .reading-prose-col {
    font-size: 18px;
  }

  .reading-dossier-rail {
    position: static;
    margin-top: 32px;
  }

  .cosmic-controls-bar {
    grid-template-columns: 1fr;
  }

  .cosmic-btn {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .footer-social-col {
    align-items: flex-start;
  }
}
