/* ==========================================================================
   NINETEEN LAB · 十九实验室
   El Lissitzky Proun Constructivism (Red-Black-Archival) Editorial System
   ========================================================================== */

:root {
  --paper-bg: #ECE6DA;
  --paper-card: #F5F1E8;
  --paper-kraft: #DFD8C8;
  --ink: #121212;
  --ink-secondary: #34322F;
  --ink-muted: #666159;
  --red: #D92B1E;
  --steel: #244C66;
  --brass: #D8A628;
  --safe-ink: #1F5C3A;
  --rule-hair: rgba(18, 18, 18, 0.18);
  --rule-solid: #121212;
  --grid-line: rgba(18, 18, 18, 0.045);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;

  --max-w: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper-bg);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red);
  color: var(--paper-card);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  z-index: 200;
  transition: width 0.08s linear;
}

/* Engineering Ruler Strip */
.ruler-strip {
  height: 10px;
  border-bottom: 1px solid var(--rule-hair);
  background-color: var(--paper-kraft);
  background-image: repeating-linear-gradient(
    to right,
    rgba(18, 18, 18, 0.35) 0px,
    rgba(18, 18, 18, 0.35) 1px,
    transparent 1px,
    transparent 12px
  );
}

/* Site Masthead */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 230, 218, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  background: var(--paper-card);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-cn {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.brand-en span {
  color: var(--red);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 13px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  border-color: var(--ink);
  background: var(--paper-card);
}

.nav-link.is-active {
  background: var(--ink);
  color: var(--paper-card);
  border-color: var(--ink);
}

/* Container */
.shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* Hero Workbench (Homepage) */
.hero-bench {
  margin-top: 32px;
  border: 2px solid var(--ink);
  background: var(--paper-card);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 2px solid var(--ink);
  position: relative;
}

.kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.wedge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.spec-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--steel);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-title em {
  font-style: normal;
  background: var(--red);
  color: #fff;
  padding: 0 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lead {
  margin-top: 18px;
  font-size: 1.02rem;
  color: var(--ink-secondary);
  max-width: 48ch;
  line-height: 1.75;
}

.hero-en-sub {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-card);
}

.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper-kraft);
}

.hero-visual {
  background: #E5D9C8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.hero-visual-stage {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: #E5D9C8;
  overflow: hidden;
}

.hero-visual-stage img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  margin-top: auto;
  object-fit: cover;
  object-position: 100% 50%;
}

.hero-telemetry {
  border-top: 1px solid var(--rule-hair);
  background: var(--paper-kraft);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-secondary);
  letter-spacing: 0.06em;
}

/* Section Headers */
.section-bar {
  margin-top: 52px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-bar h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-bar h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--red);
  transform: skewX(-18deg);
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Issue Cards Grid */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.issue-card {
  border: 2px solid var(--ink);
  background: var(--paper-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.issue-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}

.issue-card-top {
  padding: 10px 16px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-kraft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.issue-vol {
  font-weight: 800;
  color: var(--red);
}

.issue-date {
  color: var(--ink-secondary);
}

.issue-thumb-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-bg);
  position: relative;
}

.issue-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.issue-card:hover .issue-thumb-wrap img {
  transform: scale(1.025);
}

.issue-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ink);
  color: var(--paper-card);
  border: 1px solid var(--paper-card);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.08em;
}

.issue-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.issue-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.issue-card:hover .issue-title {
  color: var(--red);
}

.issue-subtitle {
  margin-top: 10px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  flex: 1;
}

.issue-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border: 1px solid var(--steel);
  color: var(--steel);
  background: rgba(36, 76, 102, 0.05);
}

.read-cta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* Studio Bench Strip */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--paper-card);
}

.bench-cell {
  padding: 24px;
  border-right: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bench-cell:last-child {
  border-right: none;
}

.bench-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bench-cell h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 800;
}

.bench-cell p {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Blog Archive Header
   ========================================================================== */
.archive-banner {
  margin-top: 32px;
  padding: 32px 36px;
  border: 2px solid var(--ink);
  background: var(--paper-card);
  position: relative;
}

.archive-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-top: 8px;
}

.archive-banner p {
  margin-top: 10px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Article Page (Constructivist Blueprint Layout)
   ========================================================================== */
.article-header {
  margin-top: 32px;
  border: 2px solid var(--ink);
  background: var(--paper-card);
}

.article-meta-bar {
  padding: 11px 24px;
  background: var(--paper-kraft);
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-secondary);
}

.breadcrumb a:hover {
  color: var(--red);
  text-decoration: underline;
}

.article-hero-inner {
  padding: 36px 40px 32px;
}

.article-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  line-height: 1.26;
  color: var(--ink);
  margin-top: 14px;
}

.article-subtitle {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.article-credit-strip {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-hair);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.article-credit-strip strong {
  color: var(--ink);
}

.article-cover-frame {
  border-top: 2px solid var(--ink);
  background: var(--paper-bg);
}

.article-cover-frame img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.article-cover-caption {
  padding: 10px 24px;
  border-top: 1px solid var(--rule-hair);
  background: var(--paper-kraft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-secondary);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Two-column Reading Layout */
.article-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.article-paper {
  border: 2px solid var(--ink);
  background: var(--paper-card);
  padding: 42px 48px;
}

/* Prose Typography */
.prose {
  font-size: 1.05rem;
  line-height: 1.88;
  color: var(--ink);
}

.prose > * + * {
  margin-top: 1.35em;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.52rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 2.3em;
  padding-top: 0.9em;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 88px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.prose h2::before {
  content: "▸";
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 1.8em;
  color: var(--steel);
  scroll-margin-top: 88px;
}

.prose p {
  color: var(--ink-secondary);
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose a {
  color: var(--red);
  border-bottom: 1px solid rgba(217, 43, 30, 0.45);
  transition: background-color 0.12s ease, color 0.12s ease;
}

.prose a:hover {
  background: var(--red);
  color: #fff;
}

.prose ul, .prose ol {
  padding-left: 1.45em;
  color: var(--ink-secondary);
}

.prose li + li {
  margin-top: 0.55em;
}

.prose li::marker {
  color: var(--red);
  font-weight: 700;
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  background: var(--paper-bg);
  border-left: 4px solid var(--red);
  border-top: 1px solid var(--rule-hair);
  border-right: 1px solid var(--rule-hair);
  border-bottom: 1px solid var(--rule-hair);
}

.prose blockquote p {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  color: var(--ink);
  line-height: 1.75;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-bg);
  border: 1px solid var(--rule-hair);
  padding: 1px 6px;
  color: var(--steel);
}

.prose pre {
  background: var(--ink);
  color: var(--paper-card);
  padding: 18px 20px;
  overflow-x: auto;
  border: 1.5px solid var(--ink);
  line-height: 1.6;
}

.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.85rem;
}

.prose hr {
  border: none;
  border-top: 1.5px dashed var(--rule-hair);
  margin: 2.2em 0;
}

/* Inline Constructivist Figure Plates */
.proun-plate {
  margin: 2em 0;
  border: 1.5px solid var(--ink);
  background: var(--paper-bg);
}

.proun-plate img {
  width: 100%;
  height: auto;
}

.proun-plate figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--ink);
  background: var(--paper-kraft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* Data Tables */
.table-scroll {
  margin: 1.8em 0;
  overflow-x: auto;
  border: 1.5px solid var(--ink);
  background: var(--paper-bg);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.6;
}

.prose th {
  background: var(--steel);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1.5px solid var(--ink);
  white-space: nowrap;
}

.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-hair);
  border-right: 1px solid var(--rule-hair);
  vertical-align: top;
  color: var(--ink-secondary);
}

.prose td:last-child {
  border-right: none;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:nth-child(even) td {
  background: rgba(245, 241, 232, 0.7);
}

/* Status Badges inside Tables / Dossiers */
.badge-safe, .badge-warn, .badge-danger {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  white-space: nowrap;
}

.badge-safe {
  background: rgba(31, 92, 58, 0.12);
  color: var(--safe-ink);
  border: 1px solid var(--safe-ink);
}

.badge-warn {
  background: rgba(216, 166, 40, 0.2);
  color: #6B4E00;
  border: 1px solid #966F0A;
}

.badge-danger {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}

/* Sticky Sidebar Rail */
.article-rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rail-box {
  border: 2px solid var(--ink);
  background: var(--paper-card);
}

.rail-box-head {
  padding: 9px 14px;
  background: var(--ink);
  color: var(--paper-card);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.rail-box-body {
  padding: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toc-item a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-secondary);
  padding-left: 10px;
  border-left: 2px solid var(--rule-hair);
  transition: border-color 0.12s ease, color 0.12s ease;
}

.toc-item.toc-h3 a {
  padding-left: 20px;
  font-size: 0.81rem;
  color: var(--ink-muted);
}

.toc-item a:hover {
  color: var(--red);
  border-left-color: var(--red);
}

.takeaway-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.takeaway-points li {
  position: relative;
  padding-left: 14px;
}

.takeaway-points li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--red);
}

/* Source References Box & Prev/Next */
.sources-dossier {
  margin-top: 36px;
  padding: 22px 24px;
  border: 1.5px solid var(--ink);
  background: var(--paper-bg);
}

.sources-dossier h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}

.sources-dossier ul {
  padding-left: 1.25em;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.sources-dossier li + li {
  margin-top: 6px;
}

.sources-dossier a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-muted);
  word-break: break-all;
}

.sources-dossier a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.post-nav {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.post-nav-card {
  border: 2px solid var(--ink);
  background: var(--paper-card);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.post-nav-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.post-nav-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-nav-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.04rem;
  line-height: 1.4;
}

/* Site Footer */
.site-footer {
  margin-top: 72px;
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-bg);
  padding: 36px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand strong {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.footer-brand strong span {
  color: var(--red);
}

.footer-brand p {
  font-size: 0.84rem;
  color: #ACA79E;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-contact-label {
  color: #ACA79E;
  letter-spacing: 0.06em;
}

.footer-email {
  color: var(--paper-card);
  border: 1px solid rgba(245, 241, 232, 0.32);
  background: rgba(245, 241, 232, 0.06);
  padding: 3px 10px;
  letter-spacing: 0.03em;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-email:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #D4CFC4;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-bench {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    border-right: none;
    border-bottom: 2px solid var(--ink);
    padding: 32px 26px;
  }
  .hero-visual-stage {
    aspect-ratio: 3 / 2;
  }
  .hero-visual-stage img {
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 100% 50%;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-rail {
    position: static;
    order: -1;
  }
  .bench-grid {
    grid-template-columns: 1fr;
  }
  .bench-cell {
    border-right: none;
    border-bottom: 1.5px solid var(--ink);
  }
  .bench-cell:last-child {
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .shell, .header-inner, .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .issues-grid, .post-nav {
    grid-template-columns: 1fr;
  }
  .article-hero-inner {
    padding: 24px 20px;
  }
  .article-paper {
    padding: 26px 20px;
  }
  .prose {
    font-size: 1rem;
  }
  .nav-link {
    padding: 6px 9px;
    font-size: 0.74rem;
  }
}


/* ==========================================================================
   WIDE LAYOUT & HOMEPAGE SUITE BANNER
   ========================================================================== */

body.is-wide-layout .header-inner,
body.is-wide-layout .footer-inner {
  max-width: min(1680px, 94vw);
}

body.is-wide-layout .site-footer {
  margin-top: 0;
}

.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.btn-red:hover {
  background: var(--ink);
  color: var(--paper-card);
  transform: translateY(-1px);
}

.home-suite-banner {
  margin-top: 28px;
  border: 2px solid var(--ink);
  background: var(--paper-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  position: relative;
}

.home-suite-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--red);
}

.home-suite-copy h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 900;
  margin-top: 6px;
  color: var(--ink);
}

.home-suite-copy p {
  margin-top: 6px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  max-width: 68ch;
}

/* ==========================================================================
   NINETEEN GTM v2 (/gtm/) — Full-Bleed Spacious Editorial Architecture
   ========================================================================== */

[hidden] {
  display: none !important;
}

.gtm-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gtm2-root {
  width: 100%;
  overflow-x: clip;
}

.gtm2-wide {
  width: min(1640px, 92vw);
  margin: 0 auto;
}

.gtm2-band {
  width: 100%;
  padding: 112px 0;
  position: relative;
}

.gtm2-hero-band {
  padding: 76px 0 108px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
}

.gtm2-bento-band {
  background: #F4F0E6;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
}

.gtm2-ivory-band {
  background: #FAF8F3;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
}

.gtm2-dark-band {
  background: #111110;
  color: #F5F1E8;
}

.gtm2-book-band {
  background: #F4F0E6;
  padding: 116px 0 132px;
}

/* Scroll Entry Choreography (GPU transform & opacity only) */
[data-gtm-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-idx, 0) * 50ms);
}

[data-gtm-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-gtm-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Typography & Eyebrows */
.gtm2-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.gtm2-badge-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  text-transform: uppercase;
}

.gtm2-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}

.gtm2-eyebrow.is-light {
  color: var(--brass);
}

.gtm2-h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.35rem, 3.7vw, 3.65rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.gtm2-h1 em {
  font-style: normal;
  color: var(--red);
  position: relative;
}

.gtm2-lead {
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.15vw, 1.14rem);
  line-height: 1.78;
  color: var(--ink-secondary);
  max-width: 46ch;
}

.gtm2-lead strong {
  color: var(--ink);
}

.gtm2-h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.gtm2-h2.is-light {
  color: #FAF8F3;
}

/* Double-Bezel (Doppelrand) Machined Enclosures */
.gtm2-bezel-outer {
  padding: 8px;
  border-radius: 22px;
  background: rgba(18, 18, 18, 0.045);
  border: 1px solid rgba(18, 18, 18, 0.1);
}

.gtm2-bezel-outer.is-dark {
  background: rgba(18, 18, 18, 0.08);
  border-color: rgba(18, 18, 18, 0.16);
}

.gtm2-bezel-outer.is-obsidian {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Island CTA Buttons (Button-in-Button kinetic orb) */
.gtm2-island-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 8px 8px 8px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.35s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-island-btn.is-dark {
  background: var(--ink);
  color: #FAF8F3;
}

.gtm2-island-btn.is-full {
  width: 100%;
  padding: 10px 10px 10px 28px;
  font-size: 0.98rem;
}

.gtm2-btn-orb {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-island-btn:hover {
  background: var(--ink);
}

.gtm2-island-btn.is-dark:hover {
  background: var(--red);
}

.gtm2-island-btn:hover .gtm2-btn-orb {
  transform: translate(2px, -1px) scale(1.05);
  background: rgba(255, 255, 255, 0.26);
}

.gtm2-island-btn:active {
  transform: scale(0.985);
}

.gtm2-island-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* ==========================================================================
   ACT 1 · HERO GRID & DIAGNOSTIC BAR
   ========================================================================== */

.gtm2-hero-grid > *,
.gtm2-playbook-stage > *,
.gtm2-mcp-grid > *,
.gtm2-book-grid > *,
.gtm2-bento-grid > * {
  min-width: 0;
}

.gtm2-hero-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: clamp(36px, 4.5vw, 76px);
  align-items: center;
}

.gtm2-diag-shell {
  margin-top: 34px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.05);
  border: 1px solid rgba(18, 18, 18, 0.13);
  max-width: 640px;
}

.gtm2-diag-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 5px 5px 5px 20px;
  border: 1px solid rgba(18, 18, 18, 0.1);
}

.gtm2-diag-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 8px 0;
}

.gtm2-diag-input:focus {
  outline: none;
}

.gtm2-preset-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gtm2-preset-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.gtm2-preset-chip {
  appearance: none;
  border: 1px solid rgba(18, 18, 18, 0.14);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.2s cubic-bezier(0.32, 0.72, 0, 1), color 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-preset-chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Video Card */
.gtm2-video-card {
  border-radius: 15px;
  overflow: hidden;
  background: #151514;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gtm2-window-bar {
  padding: 11px 16px;
  background: #1C1B19;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gtm2-window-dots {
  display: inline-flex;
  gap: 6px;
}

.gtm2-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.gtm2-window-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #C7C2B8;
}

.gtm2-window-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(217, 43, 30, 0.9);
  color: #fff;
}

.gtm2-video-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.gtm2-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #1A1918;
}

.gtm2-metric-strip > div {
  padding: 13px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gtm2-metric-strip > div:last-child {
  border-right: none;
}

.gtm2-metric-strip strong {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #FAF8F3;
}

.gtm2-metric-strip span {
  font-size: 0.75rem;
  color: #A8A298;
}

/* ==========================================================================
   ACT 2 · 4-PILLAR SUITE RIBBON & APOLLO-STYLE BENTO
   ========================================================================== */

.gtm2-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.gtm2-sec-head.is-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gtm2-sub-head {
  margin-top: 96px;
}

.gtm2-suite-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gtm2-pillar {
  background: #FAF8F3;
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-pillar.is-live {
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
}

.gtm2-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gtm2-pillar-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.gtm2-pill-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.06);
  color: var(--ink-secondary);
}

.gtm2-pill-tag.is-live {
  background: #FDEBEC;
  color: #A61F14;
}

.gtm2-pill-tag.is-green {
  background: #EAF4EE;
  color: #1F5C3A;
}

.gtm2-pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
}

.gtm2-pillar p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.gtm2-ghost-pill {
  appearance: none;
  border: 1px solid rgba(18, 18, 18, 0.22);
  background: #FAF8F3;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.32, 0.72, 0, 1), color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-ghost-pill:hover {
  background: var(--ink);
  color: #fff;
}

/* Asymmetric 12-Col Bento Grid */
.gtm2-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.gtm2-bento-shell {
  grid-column: span 5;
  padding: 7px;
  border-radius: 22px;
  background: rgba(18, 18, 18, 0.04);
  border: 1px solid rgba(18, 18, 18, 0.09);
}

.gtm2-bento-shell.is-wide {
  grid-column: span 7;
}

.gtm2-bento-core {
  height: 100%;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
}

.gtm2-bento-copy h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.gtm2-bento-copy p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--ink-secondary);
  max-width: 54ch;
}

.gtm2-crop-stage {
  border-top: 1px solid rgba(18, 18, 18, 0.1);
  border-left: 1px solid rgba(18, 18, 18, 0.1);
  border-right: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #F8FAFC;
  cursor: zoom-in;
}

.gtm2-crop-stage img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-bento-core:hover .gtm2-crop-stage img {
  transform: scale(1.015);
}

/* ==========================================================================
   ACT 3 · 5-INDUSTRY PLAYBOOK SWITCHER
   ========================================================================== */

.gtm2-ind-tabs {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gtm2-ind-pill {
  appearance: none;
  border: 1px solid rgba(18, 18, 18, 0.16);
  background: #FFFFFF;
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s cubic-bezier(0.32, 0.72, 0, 1),
    color 0.25s cubic-bezier(0.32, 0.72, 0, 1),
    border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-ind-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.gtm2-ind-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FAF8F3;
}

.gtm2-playbook-stage {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(18, 18, 18, 0.09);
  padding: clamp(26px, 3.2vw, 44px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 3.5vw, 52px);
  align-items: stretch;
  transition: opacity 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-playbook-stage.is-switching {
  opacity: 0.55;
}

.gtm2-playbook-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.gtm2-playbook-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 18px;
}

.gtm2-pb-block {
  padding: 14px 0;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.gtm2-pb-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.gtm2-pb-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gtm2-pb-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
}

.gtm2-pb-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red);
}

.gtm2-pb-muted {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.gtm2-pb-roles {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--steel);
  font-weight: 600;
}

/* Faux-OS Pure-Text Mail Preview */
.gtm2-mail-window {
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  background: #FAF8F3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gtm2-mail-bar {
  padding: 11px 16px;
  background: #EFECE3;
  border-bottom: 1px solid rgba(18, 18, 18, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-secondary);
}

.gtm2-mail-bar .gtm2-window-dots span {
  background: rgba(18, 18, 18, 0.2);
}

.gtm2-mail-safe {
  padding: 2px 8px;
  border-radius: 999px;
  background: #EAF4EE;
  color: #1F5C3A;
  font-weight: 700;
  font-size: 0.69rem;
}

.gtm2-mail-meta {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  font-size: 0.88rem;
  background: #FFFFFF;
  display: flex;
  gap: 8px;
}

.gtm2-mail-meta span {
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.gtm2-mail-body {
  flex: 1;
  padding: 20px;
  background: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.gtm2-mail-foot {
  padding: 12px 20px;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  background: #FAF8F3;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   ACT 4 · OBSIDIAN DARK BAND: MCP + 3-CARD ECONOMICS
   ========================================================================== */

.gtm2-mcp-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 4vw, 68px);
  align-items: center;
}

.gtm2-dark-lead {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.78;
  color: #C7C2B8;
  max-width: 50ch;
}

.gtm2-dark-lead strong {
  color: #fff;
}

.gtm2-mcp-guard {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #D6D1C7;
}

.gtm2-mcp-guard strong {
  color: var(--brass);
}

.gtm2-agent-chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gtm2-agent-chips span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #EAE5DC;
}

/* MCP Terminal */
.gtm2-terminal {
  border-radius: 15px;
  overflow: hidden;
  background: #181816;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gtm2-mcp-lock {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(216, 166, 40, 0.18);
  color: var(--brass);
}

.gtm2-term-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gtm2-term-prompt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gtm2-term-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  flex-shrink: 0;
  margin-top: 3px;
}

.gtm2-term-prompt p {
  font-size: 0.92rem;
  color: #FAF8F3;
  line-height: 1.6;
}

.gtm2-term-res {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gtm2-term-line {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.84rem;
}

.gtm2-term-line .is-ok {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #5CE092;
}

.gtm2-term-line strong {
  color: #fff;
}

.gtm2-term-line span:last-child {
  color: #B4AFA5;
  margin-left: auto;
}

/* 3-Card Economics Strip */
.gtm2-econ-strip {
  margin-top: 84px;
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gtm2-econ-card {
  border-radius: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gtm2-econ-card.is-winner {
  background: #1D1C19;
  border: 1.5px solid rgba(217, 43, 30, 0.85);
}

.gtm2-econ-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #C7C2B8;
}

.gtm2-econ-tag.is-red {
  background: var(--red);
  color: #fff;
}

.gtm2-econ-card h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: #FAF8F3;
  margin-top: 12px;
  margin-bottom: 18px;
}

.gtm2-econ-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gtm2-econ-card li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.gtm2-econ-card li span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9A958B;
}

.gtm2-econ-card li strong {
  font-size: 0.9rem;
  color: #E5E0D6;
}

.gtm2-econ-card li strong.is-warn {
  color: #F28B82;
}

.gtm2-econ-card li strong.is-safe {
  color: #7AE5A6;
}

/* ==========================================================================
   ACT 5 · BOOKING STAGE & SMART FLOATING BAR
   ========================================================================== */

.gtm2-book-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 4.5vw, 76px);
  align-items: start;
  scroll-margin-top: 90px;
}

.gtm2-book-desc {
  margin-top: 18px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 46ch;
}

.gtm2-promise-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gtm2-promise-list > div {
  padding-left: 16px;
  border-left: 2px solid var(--red);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gtm2-promise-list strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.gtm2-promise-list span {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.gtm2-direct-mail {
  margin-top: 32px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 18, 18, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.gtm2-direct-mail code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}

.gtm2-mini-btn {
  appearance: none;
  border: 1px solid rgba(18, 18, 18, 0.2);
  background: #FFFFFF;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.gtm2-mini-btn.is-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gtm2-mini-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Streamlined Form Card */
.gtm2-form-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(18, 18, 18, 0.09);
  padding: clamp(26px, 3vw, 40px);
}

.gtm2-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gtm2-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gtm2-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gtm2-field label,
.gtm2-field-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.gtm2-field .req {
  color: var(--red);
}

.gtm2-field .opt {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.gtm2-field input[type="text"],
.gtm2-field input[type="email"],
.gtm2-more-inner input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink);
  background: #FAF8F3;
  border: 1px solid rgba(18, 18, 18, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-field input:focus,
.gtm2-more-inner input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--ink);
}

.gtm2-field input.is-highlighted {
  border-color: var(--red);
  background: #FFF8F7;
}

.gtm2-mod-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gtm2-mod-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.15);
  background: #FAF8F3;
  font-size: 0.82rem;
  font-weight: 500 !important;
  cursor: pointer;
}

.gtm2-mod-pill input {
  accent-color: var(--red);
}

.gtm2-more-details {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.gtm2-more-details summary {
  cursor: pointer;
  user-select: none;
  font-family: var(--font-mono);
}

.gtm2-more-inner {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gtm2-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: #FDEBEC;
  color: #A61F14;
  font-size: 0.86rem;
  font-weight: 700;
}

.gtm2-privacy {
  font-size: 0.76rem;
  color: var(--ink-muted);
  text-align: center;
}

/* Confirmation Receipt */
.gtm2-receipt {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gtm2-receipt h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
}

.gtm2-receipt p {
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

.gtm2-receipt-box {
  margin-top: 6px;
  padding: 18px;
  border-radius: 12px;
  background: #FAF8F3;
  border: 1px solid rgba(18, 18, 18, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gtm2-receipt-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gtm2-reset-link {
  align-self: flex-start;
  appearance: none;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel);
  text-decoration: underline;
  cursor: pointer;
}

/* Smart Floating Bottom Diagnostic Bar */
.gtm2-float-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 130%);
  opacity: 0;
  z-index: 90;
  width: min(860px, 92vw);
  padding: 6px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.gtm2-float-bar.is-shown {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.gtm2-float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-left: 18px;
}

.gtm2-float-text {
  font-size: 0.84rem;
  color: #EAE5DC;
  white-space: nowrap;
}

.gtm2-float-text strong {
  color: #fff;
}

.gtm2-float-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
}

.gtm2-float-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.84rem;
}

.gtm2-float-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.gtm2-float-form input:focus {
  outline: none;
}

.gtm2-float-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
}

/* Gallery Modal */
.gtm2-modal[hidden] {
  display: none !important;
}

.gtm2-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gtm2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 14, 0.88);
  backdrop-filter: blur(8px);
}

.gtm2-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1440px, 95vw);
  max-height: 92vh;
  border-radius: 18px;
  overflow: hidden;
  background: #161615;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
}

.gtm2-modal-top {
  padding: 12px 20px;
  background: #1E1D1B;
  color: #FAF8F3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.gtm2-modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gtm2-modal-nav,
.gtm2-modal-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
}

.gtm2-modal-close {
  background: var(--red);
  border-color: var(--red);
}

.gtm2-modal-body {
  overflow: auto;
  display: flex;
  justify-content: center;
  background: #0F0F0E;
}

.gtm2-modal-body img {
  max-height: calc(92vh - 56px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   RESPONSIVE COLLAPSE (<1100px & <768px)
   ========================================================================== */

@media (max-width: 1120px) {
  .gtm2-hero-grid,
  .gtm2-playbook-stage,
  .gtm2-mcp-grid,
  .gtm2-book-grid {
    grid-template-columns: 1fr;
  }
  .gtm2-suite-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gtm2-bento-shell,
  .gtm2-bento-shell.is-wide {
    grid-column: span 12;
  }
  .gtm2-econ-strip {
    grid-template-columns: 1fr;
  }
  .gtm2-float-text {
    display: none;
  }
  .gtm2-float-inner {
    padding-left: 4px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 10px;
  }
  .brand-mark {
    flex-shrink: 0;
    gap: 8px;
  }
  .brand-cn {
    white-space: nowrap;
    font-size: 0.94rem;
  }
  .brand-en {
    display: none;
  }
  .site-nav {
    gap: 2px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav .nav-link {
    white-space: nowrap;
    padding: 6px 8px;
    font-size: 0.72rem;
  }
  .site-nav .nav-link[href="/rss.xml"] {
    display: none;
  }
  .gtm2-band {
    padding: 68px 0;
  }
  .gtm2-hero-band {
    padding: 44px 0 68px;
  }
  .gtm2-h1 {
    font-size: 2.05rem;
  }
  .gtm2-h2 {
    font-size: 1.52rem;
  }
  .gtm2-sub-head {
    margin-top: 60px;
  }
  .gtm2-suite-ribbon,
  .gtm2-row-2,
  .gtm2-more-inner,
  .gtm2-metric-strip,
  .home-suite-banner {
    grid-template-columns: 1fr;
  }
  .gtm2-metric-strip > div {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .gtm2-diag-shell {
    border-radius: 20px;
  }
  .gtm2-diag-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 10px;
  }
  .gtm2-diag-input {
    padding: 10px 12px;
  }
  .gtm2-preset-chip {
    padding: 7px 13px;
  }
  .gtm2-island-btn.is-full {
    padding: 9px 9px 9px 18px;
    font-size: 0.88rem;
  }
  .gtm2-bento-core {
    padding: 22px 18px 0;
  }
  .gtm2-form-card {
    padding: 20px 16px;
  }
  .gtm2-term-line span:last-child {
    margin-left: 0;
  }
}


/* Standalone GTM Header CTA & Anchor Scroll Margin */
#suite, #features, #industry-playbooks, #mcp, #book-demo {
  scroll-margin-top: 80px;
}

.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.22s cubic-bezier(0.32, 0.72, 0, 1), transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.nav-cta-pill:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-cta-pill {
    padding: 6px 12px;
    font-size: 0.75rem;
    margin-left: 4px;
  }
}
