/* Scenario 77 — Home page styles. Variants toggled via [data-variant] on <body>. */

:root {
  --bg: #0E0E11;
  --surface: #1A1A1E;
  --elevated: #232328;
  --border: #2D2D33;
  --divider: #1F1F23;
  --text-primary: #F5F5F5;
  --text-secondary: #C0C0C5;
  --text-muted: #8E8E96;
  --red: #D0140F;
  --red-pressed: #A50F0B;
  --jade: #00A86B;
  --steel: #4682B4;
  --font-heading: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  /* Density */
  --section-py: 120px;
  --container: 1240px;
  --gutter: 64px;

  /* Dot grid */
  --grid-opacity: 0.06;
  --grid-size: 32px;
}

[data-density="compact"] { --section-py: 80px; --gutter: 48px; }
[data-grid="restrained"] { --grid-opacity: 0.04; }
[data-grid="present"]    { --grid-opacity: 0.10; --grid-size: 28px; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text-primary); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(245, 245, 245, var(--grid-opacity)) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============== Type tokens ============== */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow.with-line::before {
  content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor;
}
.eyebrow.jade { color: var(--jade); }
.eyebrow.steel { color: var(--steel); }

.h-display { font-family: var(--font-heading); font-weight: 800; font-size: clamp(44px, 8vw, 76px); line-height: 1.05; letter-spacing: -0.024em; }
.h-h1      { font-family: var(--font-heading); font-weight: 800; font-size: clamp(36px, 6vw, 61px); line-height: 1.1;  letter-spacing: -0.022em; }
.h-h2      { font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 5vw, 49px); line-height: 1.15; letter-spacing: -0.02em; }
.h-h3      { font-family: var(--font-heading); font-weight: 700; font-size: clamp(26px, 4vw, 39px); line-height: 1.2; letter-spacing: -0.016em; }
.h-h4      { font-family: var(--font-heading); font-weight: 700; font-size: 31px; line-height: 1.25; letter-spacing: -0.012em; }
.h-h5      { font-family: var(--font-heading); font-weight: 600; font-size: 25px; line-height: 1.3; letter-spacing: -0.008em; }
.h-h6      { font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.4; letter-spacing: -0.005em; }
.lede      { font-family: var(--font-body); font-size: 20px; line-height: 1.55; color: var(--text-secondary); }
.body      { font-size: 16px; line-height: 1.65; color: var(--text-primary); }
.body.muted{ color: var(--text-secondary); }
.caption   { font-size: 13px; line-height: 1.5; color: var(--text-muted); font-weight: 500; }
.mono      { font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace; }

.accent-red { color: var(--red); }
.accent-steel { color: var(--steel); }
.accent-jade { color: var(--jade); }

/* ============== Buttons ============== */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text-primary);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn-lg { font-size: 16px; padding: 16px 32px; }
.btn-sm { font-size: 13px; padding: 10px 18px; }
.btn-primary { background: var(--red); }
.btn-primary:hover { background: var(--red-pressed); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--red); }
.btn-text { background: transparent; color: var(--red); padding: 6px 0; border-radius: 0; }
.btn-text:hover { text-decoration: underline; }
.btn-jade { background: var(--jade); }
.btn-steel { background: var(--steel); }

/* ============== Nav ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,17,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 800; font-size: 18px;
  color: var(--text-primary); letter-spacing: -0.01em;
}
.nav-logo .seventy {
  color: var(--red); font-weight: 800; letter-spacing: -0.04em;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  color: var(--text-secondary); letter-spacing: 0.01em;
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* practice-area marker row under nav */
.nav-marker-row {
  border-top: 1px solid var(--divider);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.nav-marker {
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--gutter);
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted);
  border-right: 1px solid var(--divider);
  transition: color 150ms ease, background 150ms ease;
}
.nav-marker:last-child { border-right: none; }
.nav-marker:hover { color: var(--text-primary); background: rgba(255,255,255,0.02); }
.nav-marker .dot { width: 8px; height: 8px; flex: none; }
.nav-marker.csd .dot { background: var(--red); }
.nav-marker.sm  .dot { background: var(--steel); }
.nav-marker.aia .dot { background: var(--jade); }

/* Variant: Editorial → side rail nav */
[data-variant="editorial"] .nav { position: fixed; top: 0; left: 0; bottom: 0; width: 220px; border-right: 1px solid var(--border); border-bottom: none; background: rgba(14,14,17,0.92); }
[data-variant="editorial"] .nav .container { padding: 0; height: 100%; }
[data-variant="editorial"] .nav-bar { flex-direction: column; align-items: flex-start; padding: 28px; height: 100%; }
[data-variant="editorial"] .nav-links { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 48px; }
[data-variant="editorial"] .nav-cta { margin-top: auto; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
[data-variant="editorial"] .nav-cta .btn { width: 100%; justify-content: center; }
[data-variant="editorial"] .nav-marker-row { display: none; }
[data-variant="editorial"] main { margin-left: 220px; }

/* Variant: Conservative → minimal nav, no marker row */
[data-variant="conservative"] .nav-marker-row { display: none; }

/* ============== Hero ============== */
.hero {
  position: relative;
  background:
    radial-gradient(rgba(245,245,245, calc(var(--grid-opacity) + 0.03)) 1px, transparent 1px) 0 0 / var(--grid-size) var(--grid-size),
    linear-gradient(135deg, #0E0E11 0%, #14141A 100%);
  border-bottom: 1px solid var(--border);
  padding: 96px 0 var(--section-py);
  overflow: hidden;
}
.hero .corner-mark {
  position: absolute; top: 28px; right: var(--gutter);
  display: flex; align-items: center; gap: 10px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.hero .corner-mark .dot { width: 6px; height: 6px; background: var(--red); }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { margin-bottom: 28px; max-width: 1100px; }
.hero h1 .accent { color: var(--red); }
.hero .lede { max-width: 760px; margin-bottom: 40px; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero variants */
[data-variant="conservative"] .hero { padding-top: 120px; padding-bottom: var(--section-py); }
[data-variant="conservative"] .hero .corner-mark { display: none; }
[data-variant="conservative"] .hero h1 { max-width: 900px; }

[data-variant="balanced"] .hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end;
}
[data-variant="balanced"] .hero-side {
  border-left: 1px solid var(--divider);
  padding-left: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
[data-variant="balanced"] .hero-side .row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--divider);
}
[data-variant="balanced"] .hero-side .row:last-child { border-bottom: none; }
[data-variant="balanced"] .hero-side .row .num {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  width: 36px; flex: none;
}
[data-variant="balanced"] .hero-side .row .label {
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  color: var(--text-primary);
}
[data-variant="balanced"] .hero-side .row .pa {
  margin-left: auto; font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* Editorial hero: split, with diagram on right */
[data-variant="editorial"] .hero { padding-bottom: calc(var(--section-py) + 40px); }
[data-variant="editorial"] .hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch;
}
[data-variant="editorial"] .hero-diagram {
  align-self: end;
}

/* Hide hero-grid containers when not in their variant */
[data-variant="conservative"] .hero-grid { display: block; }
[data-variant="conservative"] .hero-side, [data-variant="conservative"] .hero-diagram { display: none; }
[data-variant="balanced"] .hero-diagram { display: none; }
[data-variant="editorial"] .hero-side { display: none; }

/* ============== Section primitive ============== */
.section { padding: var(--section-py) 0; position: relative; }
.section + .section { border-top: 1px solid var(--divider); }
.section.surface { background: var(--surface); }
.section.surface + .section, .section + .section.surface { border-top: none; }

/* All-deep rhythm — disables surface variants */
[data-rhythm="deep"] .section.surface { background: transparent; }

.section-head { margin-bottom: 64px; max-width: 880px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 20px; }
.section-head .lede { color: var(--text-secondary); }

/* ============== Problem section ============== */
.problem-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start;
}
.problem-grid h2 { max-width: 720px; }
.problem-list {
  display: flex; flex-direction: column;
}
.problem-list .item {
  display: grid; grid-template-columns: 36px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--divider);
}
.problem-list .item:last-child { border-bottom: none; }
.problem-list .item .num {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
  padding-top: 4px;
}
.problem-list .item .text { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.problem-list .item .text strong { color: var(--text-primary); font-weight: 600; }

/* ============== Methodology — three visualizations ============== */
.method { display: none; }
[data-method="list"]  .method-list { display: block; }
[data-method="steps"] .method-steps { display: block; }
[data-method="map"]   .method-map { display: block; }

/* List form (conservative) */
.method-list .step {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--divider);
  align-items: baseline;
}
.method-list .step:last-child { border-bottom: 1px solid var(--divider); }
.method-list .step .num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 56px; line-height: 1; color: var(--red);
  letter-spacing: -0.02em;
}
.method-list .step h3 { margin-bottom: 8px; }
.method-list .step .what { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.method-list .step .body { color: var(--text-secondary); max-width: 720px; }

/* Step diagram (balanced) */
.method-steps {
  position: relative;
}
.method-steps .track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
.method-steps .track::before {
  content: ""; position: absolute;
  left: 24px; right: 24px; top: 26px;
  border-top: 1px dashed var(--border);
  z-index: 0;
}
.method-steps .stage {
  position: relative; z-index: 1;
  background: var(--bg);
  padding-top: 0;
}
[data-rhythm="alt"] .section.surface .method-steps .stage { background: var(--surface); }
.method-steps .stage .marker {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 18px;
  color: var(--red);
  margin-bottom: 24px;
  position: relative; z-index: 2;
}
[data-rhythm="alt"] .section.surface .method-steps .stage .marker { background: var(--surface); }
.method-steps .stage h3 { font-size: 22px; margin-bottom: 10px; font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.008em; }
.method-steps .stage .what { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.method-steps .stage .body { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* System map (editorial) */
.method-map {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px;
}
[data-rhythm="alt"] .section.surface .method-map { background: var(--surface); }
.method-map .map-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.method-map .node {
  padding: 24px;
  border-right: 1px solid var(--divider);
}
.method-map .node:last-child { border-right: none; }
.method-map .node .index {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.method-map .node .index .dot { width: 6px; height: 6px; background: var(--red); }
.method-map .node h3 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 24px; line-height: 1.2; letter-spacing: -0.008em;
  margin-bottom: 12px;
}
.method-map .node .prevents {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  color: var(--red); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.method-map .node .body { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.method-map .legend {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--divider);
  display: flex; gap: 32px; flex-wrap: wrap;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ============== What we build — three presentations ============== */
.build { display: none; }
[data-build="cards"]   .build-cards { display: grid; }
[data-build="tabs"]    .build-tabs  { display: block; }
[data-build="stacked"] .build-stacked { display: block; }

/* Cards (conservative) */
.build-cards {
  grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 150ms ease;
}
.pa-card:hover { border-color: var(--red); }
.pa-card .band { height: 6px; background: var(--red); }
.pa-card.steel .band { background: var(--steel); }
.pa-card.jade  .band { background: var(--jade); }
.pa-card .body { padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.pa-card .pa-label {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--red);
}
.pa-card.steel .pa-label { color: var(--steel); }
.pa-card.jade  .pa-label { color: var(--jade); }
.pa-card h3 { font-family: var(--font-heading); font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -0.008em; }
.pa-card .desc { color: var(--text-secondary); font-size: 15px; line-height: 1.65; flex: 1; }
.pa-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--divider); }
.pa-card ul li {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.04em;
}
.pa-card .cta { margin-top: 8px; align-self: flex-start; }

/* Accent emphasis tweak */
[data-accent="eyebrow"] .pa-card .band { display: none; }
[data-accent="eyebrow"] .pa-card .cta.btn-primary { background: transparent; color: var(--red); border: 1px solid var(--border); padding: 12px 22px; }
[data-accent="eyebrow"] .pa-card.steel .cta { background: transparent; color: var(--steel); border: 1px solid var(--border); padding: 12px 22px; }
[data-accent="eyebrow"] .pa-card.jade  .cta { background: transparent; color: var(--jade); border: 1px solid var(--border); padding: 12px 22px; }

/* Tabs (balanced) */
.build-tabs .tabs-nav {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-bottom: 48px;
}
.build-tabs .tabs-nav button {
  background: transparent; border: none;
  padding: 28px 24px; text-align: left;
  cursor: pointer;
  border-right: 1px solid var(--divider);
  border-top: 3px solid transparent;
  margin-top: -1px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 150ms ease;
  color: inherit;
}
.build-tabs .tabs-nav button:last-child { border-right: none; }
.build-tabs .tabs-nav button .pa-label {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.build-tabs .tabs-nav button .pa-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  letter-spacing: -0.005em; color: var(--text-secondary);
  line-height: 1.25;
}
.build-tabs .tabs-nav button[data-pa="csd"]   .pa-label { color: var(--red); }
.build-tabs .tabs-nav button[data-pa="sm"]    .pa-label { color: var(--steel); }
.build-tabs .tabs-nav button[data-pa="aia"]   .pa-label { color: var(--jade); }
.build-tabs .tabs-nav button.active[data-pa="csd"] { border-top-color: var(--red); }
.build-tabs .tabs-nav button.active[data-pa="sm"]  { border-top-color: var(--steel); }
.build-tabs .tabs-nav button.active[data-pa="aia"] { border-top-color: var(--jade); }
.build-tabs .tabs-nav button.active .pa-title { color: var(--text-primary); }
.build-tabs .tab-panel { display: none; }
.build-tabs .tab-panel.active { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.build-tabs .tab-panel .lead h3 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 31px; line-height: 1.2; letter-spacing: -0.012em;
  margin-bottom: 20px;
}
.build-tabs .tab-panel .lead .desc { color: var(--text-secondary); font-size: 16px; line-height: 1.65; margin-bottom: 24px; }
.build-tabs .tab-panel .services { display: flex; flex-direction: column; gap: 0; }
.build-tabs .tab-panel .service {
  padding: 24px 0;
  border-top: 1px solid var(--divider);
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
}
.build-tabs .tab-panel .service:first-child { border-top: none; }
.build-tabs .tab-panel .service h4 {
  font-family: var(--font-heading); font-weight: 700; font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}
.build-tabs .tab-panel .service .ex { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.build-tabs .tab-panel .service .ex .label {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  display: block; margin-bottom: 6px;
}

/* Stacked rows (editorial) */
.build-stacked .row {
  display: grid; grid-template-columns: 80px 1fr 1.2fr 180px;
  gap: 32px;
  padding: 64px 0;
  border-top: 1px solid var(--divider);
  align-items: start;
}
.build-stacked .row:last-child { border-bottom: 1px solid var(--divider); }
.build-stacked .row .index {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 56px; line-height: 1; letter-spacing: -0.02em;
  color: var(--red);
}
.build-stacked .row.steel .index { color: var(--steel); }
.build-stacked .row.jade  .index { color: var(--jade); }
.build-stacked .row .pa-meta { display: flex; flex-direction: column; gap: 16px; }
.build-stacked .row .pa-meta .pa-label {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.build-stacked .row .pa-meta h3 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 31px; line-height: 1.2; letter-spacing: -0.012em;
}
.build-stacked .row.csd  .pa-label { color: var(--red); }
.build-stacked .row.steel .pa-label { color: var(--steel); }
.build-stacked .row.jade  .pa-label { color: var(--jade); }
.build-stacked .row .desc { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.build-stacked .row .desc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.build-stacked .row .desc ul li {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.04em; padding: 4px 10px;
  border: 1px solid var(--divider); border-radius: 4px;
}
.build-stacked .row .cta-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ============== Fractional team ============== */
.frac {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  align-items: center;
}
.frac .lead h2 { margin-bottom: 24px; }
.frac .lead p { color: var(--text-secondary); margin-bottom: 16px; max-width: 540px; }
.frac .lead .quote {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 28px; line-height: 1.25; letter-spacing: -0.012em;
  color: var(--text-primary);
  border-left: 2px solid var(--red);
  padding: 8px 0 8px 24px;
  margin-top: 32px; max-width: 520px;
}
.frac .stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: 14px;
  overflow: hidden;
}
.frac .stat {
  background: var(--surface);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.frac .stat .label {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.frac .stat h4 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.008em;
}
.frac .stat .val { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.frac .stat.accent { background: var(--bg); border-left: 4px solid var(--red); }

/* ============== Strategy CTA section ============== */
.strategy-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: end;
}
.strategy-block h2 { max-width: 540px; }
.strategy-block .right { color: var(--text-secondary); display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.strategy-block .right .ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* ============== Footer CTA + footer ============== */
.foot-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 120px 0;
  position: relative;
}
.foot-cta .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.foot-cta h2 { max-width: 720px; }
.foot-cta h2 .accent { color: var(--red); }
.foot-cta .right { display: flex; flex-direction: column; gap: 20px; }
.foot-cta .right .lede { color: var(--text-secondary); }
.foot-cta .right .ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 64px;
}
.footer .col h5 {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-muted); margin-bottom: 20px;
}
.footer .col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer .col ul a {
  font-size: 14px; color: var(--text-secondary);
  transition: color 150ms ease;
}
.footer .col ul a:hover { color: var(--text-primary); }
.footer .col.brand .logo { font-family: var(--font-heading); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.footer .col.brand .logo .seventy { color: var(--red); }
.footer .col.brand p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 320px; }
.footer .bar {
  border-top: 1px solid var(--divider);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer .bar .markers { display: flex; gap: 18px; align-items: center; }
.footer .bar .markers .pa { display: flex; align-items: center; gap: 8px; }
.footer .bar .markers .pa .dot { width: 6px; height: 6px; }
.footer .bar .markers .pa.csd .dot { background: var(--red); }
.footer .bar .markers .pa.sm  .dot { background: var(--steel); }
.footer .bar .markers .pa.aia .dot { background: var(--jade); }
.footer .bar { flex-wrap: wrap; gap: 16px; }
.footer .bar .legal {
  display: flex; gap: 24px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.footer .bar .legal a {
  color: var(--text-muted); text-decoration: none;
  transition: color 150ms ease;
}
.footer .bar .legal a:hover { color: var(--text-primary); }

/* ============== Diagram (hero diagram, methodology map) ============== */
.diag-hero {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.diag-hero .head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 12px;
}
.diag-hero .head .marker { display: flex; align-items: center; gap: 8px; }
.diag-hero .head .marker .dot { width: 6px; height: 6px; background: var(--red); }
.diag-hero .stages { display: flex; flex-direction: column; gap: 0; }
.diag-hero .stage-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.diag-hero .stage-row:last-child { border-bottom: none; }
.diag-hero .stage-row .num {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.diag-hero .stage-row .name {
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  color: var(--text-primary); letter-spacing: -0.005em;
}
.diag-hero .stage-row .pa-tag {
  font-family: var(--font-heading); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.diag-hero .stage-row .pa-tag .dot { width: 6px; height: 6px; background: var(--red); }

/* ============== Tweaks panel ============== */
.tweaks-toggle {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: border-color 150ms ease;
}
.tweaks-toggle:hover { border-color: var(--red); }
.tweaks-toggle .dot { width: 6px; height: 6px; background: var(--red); }

.tweaks-panel {
  position: fixed; bottom: 84px; right: 24px;
  z-index: 200;
  width: 320px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: none;
  font-family: var(--font-body);
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; color: var(--text-primary);
  margin-bottom: 6px;
}
.tweaks-panel .tw-eyebrow {
  font-family: var(--font-heading); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--red); margin-bottom: 18px;
}
.tweaks-panel .group { margin-bottom: 22px; }
.tweaks-panel .group:last-child { margin-bottom: 0; }
.tweaks-panel .group .label {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.tweaks-panel .seg {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.tweaks-panel .seg.two { grid-template-columns: 1fr 1fr; }
.tweaks-panel .seg button {
  background: transparent; border: none;
  padding: 10px 8px; font-family: var(--font-heading); font-weight: 600;
  font-size: 11px; color: var(--text-secondary);
  cursor: pointer; border-right: 1px solid var(--border);
  transition: background 150ms ease, color 150ms ease;
  letter-spacing: 0.02em;
}
.tweaks-panel .seg button:last-child { border-right: none; }
.tweaks-panel .seg button:hover { color: var(--text-primary); }
.tweaks-panel .seg button.active {
  background: var(--red); color: var(--text-primary);
}
.tweaks-panel .preset-label {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px; color: var(--text-muted);
  margin-top: 12px; text-align: center;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.tweaks-panel .close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 16px; line-height: 1;
}

/* ============== Responsive ============== */
@media (max-width: 980px) {
  :root { --gutter: 32px; --section-py: 72px; }
  .nav-marker-row { display: none; }
  .nav-links { display: none; }
  [data-variant="editorial"] .nav { position: sticky; width: auto; bottom: auto; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  [data-variant="editorial"] .nav-bar { flex-direction: row; padding: 18px 0; }
  [data-variant="editorial"] .nav-links { display: none; }
  [data-variant="editorial"] .nav-cta { flex-direction: row; margin-top: 0; width: auto; }
  [data-variant="editorial"] main { margin-left: 0; }
  [data-variant="balanced"] .hero-grid,
  [data-variant="editorial"] .hero-grid { grid-template-columns: 1fr; }
  .build-cards { grid-template-columns: 1fr; }
  .method-steps .track { grid-template-columns: 1fr; }
  .method-steps .track::before { display: none; }
  .method-map .map-grid { grid-template-columns: 1fr; }
  .method-map .node { border-right: none; border-bottom: 1px solid var(--divider); }
  .build-stacked .row { grid-template-columns: 56px 1fr; }
  .build-stacked .row .desc, .build-stacked .row .cta-col { grid-column: 2; }
  .frac, .problem-grid, .strategy-block, .foot-cta .container { grid-template-columns: 1fr; gap: 48px; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .build-tabs .tabs-nav { grid-template-columns: 1fr; }
  .build-tabs .tab-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .build-tabs .tab-panel .service { grid-template-columns: 1fr; }
  .method-list .step { grid-template-columns: 1fr; gap: 12px; }
  .tweaks-panel { right: 16px; left: 16px; width: auto; }
}
