body { background: var(--parch); color: var(--ink); }
.wrap { padding: 0 72px; }
.section { padding: 120px 0; }

/* ── HERO (identical structure to CS1) ──────────── */
.hero {
  min-height: 82vh; background: var(--void);
  display: flex; flex-direction: column;
  padding-top: 64px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px; pointer-events: none; z-index: 0; opacity: .6;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(181,136,58,.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 0% 0%, rgba(26,26,34,.6) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-ghost {
  position: absolute; right: -2%; top: 50%; transform: translateY(-55%);
  font-family: 'Playfair Display', serif; font-size: min(52vw, 680px);
  font-weight: 700; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  pointer-events: none; user-select: none; letter-spacing: -.04em; z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1160px; margin: 0 auto;
  padding: 0 72px 100px; width: 100%;
  display: flex; flex-direction: column; flex: 1;
}
.hero-top {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 64px 0 48px;
}
.hero-kicker {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-l); display: flex; align-items: center; gap: 14px; margin-bottom: 48px;
}
.hero-kicker::before { content: ''; width: 36px; height: 1px; background: var(--gold); display: block; }
.hero-kicker .sep { opacity: .4; }
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 6.8vw, 88px);
  font-weight: 400; line-height: .93; letter-spacing: -.03em;
  color: var(--snow); max-width: 860px;
}
.hero-h1 em { font-style: italic; color: var(--gold-l); }
.hero-rule {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.12) 0%, transparent 65%);
  margin-bottom: 48px; flex-shrink: 0;
}
.hero-bottom { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: end; }
.hero-desc {
  font-size: 17px; line-height: 1.8; color: rgba(248,248,246,.5); max-width: 520px; font-weight: 300;
}
.hero-desc strong { color: rgba(248,248,246,.8); font-weight: 500; }
.hero-stats { display: flex; border: 1px solid var(--border-d); flex-shrink: 0; }
.hs {
  padding: 28px 36px; background: rgba(255,255,255,.035);
  border-right: 1px solid var(--border-d); transition: background .3s; text-align: center; min-width: 128px;
}
.hs:last-child { border-right: none; }
.hs:hover { background: rgba(255,255,255,.07); }
.hs-val {
  font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700;
  color: var(--snow); line-height: 1; margin-bottom: 7px; letter-spacing: -.025em;
}
.hs-val .acc { color: var(--gold-l); }
.hs-lbl {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(248,248,246,.28);
}

/* ── S1: THE PROBLEM ─────────────────────────────── */
.s1-layout { display: grid; grid-template-columns: 1fr 400px; gap: 80px; align-items: start; margin-top: 64px; }
.s1-body p { font-size: 16px; line-height: 1.9; color: var(--ink-m); margin-bottom: 24px; }
.s1-body p:last-child { margin-bottom: 0; }
.s1-body p strong { color: var(--ink); font-weight: 600; }

/* Starting audit panel — same dark panel pattern as CS1's s1-panel */
.s1-panel { background: var(--void); padding: 48px; }
.sp-big {
  font-family: 'Playfair Display', serif;
  font-size: 72px; font-weight: 700; line-height: 1;
  color: var(--red); letter-spacing: -.04em; margin-bottom: 8px;
}
.sp-cap { font-size: 13px; color: rgba(248,248,246,.38); line-height: 1.6; margin-bottom: 28px; }
.sp-rule { height: 1px; background: var(--border-d); margin-bottom: 24px; }
.sp-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.sp-row:last-child { margin-bottom: 0; }
.sp-k { font-size: 12px; color: rgba(248,248,246,.3); }
.sp-v { font-size: 13px; font-weight: 600; }
.sp-v.bad  { color: #f87171; }
.sp-v.neu  { color: rgba(248,248,246,.45); }
.sp-v.none { color: rgba(248,248,246,.25); font-style: italic; font-size: 12px; }
.sp-verdict {
  margin-top: 28px; padding: 20px 24px;
  background: rgba(185,28,28,.08); border-left: 3px solid var(--red);
}
.sp-verdict-txt { font-size: 14px; line-height: 1.65; color: rgba(248,248,246,.5); }
.sp-verdict-txt strong { color: var(--snow); }

/* ── S2: WHAT GETS BUILT — THREE LAYERS ─────────── */
/*
   The structural centrepiece. Three horizontal bands with
   escalating gold accent intensity — same left-border pattern
   as CS1's period bands, adapted for infrastructure layers.
*/
.infra-stack { margin-top: 64px; display: flex; flex-direction: column; gap: 3px; }

.infra-layer {
  display: grid; grid-template-columns: 260px 1fr;
  background: var(--white);
  border-left: 4px solid transparent;
  transition: box-shadow .3s;
}
.infra-layer:hover { box-shadow: 0 4px 24px rgba(13,13,16,.07); position: relative; z-index: 1; }
.infra-layer.layer-1 { border-left-color: rgba(181,136,58,.35); }
.infra-layer.layer-2 { border-left-color: rgba(181,136,58,.65); }
.infra-layer.layer-3 { border-left-color: var(--gold); }

.il-meta {
  padding: 40px 36px; background: var(--parch);
  border-right: 1px solid var(--border-l);
  display: flex; flex-direction: column;
}
.il-layer {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.il-period { font-size: 13px; font-weight: 600; color: var(--mute); margin-bottom: 8px; }
.il-status {
  display: inline-flex; align-items: center;
  font-family: 'DM Mono', monospace; font-size: 9px;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; margin-bottom: 24px; width: fit-content;
}
.il-status.done { background: var(--green-bg); color: var(--green-l); }
.il-status.now  { background: var(--amber-bg); color: var(--amber); }
.il-title {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 400;
  line-height: 1.1; letter-spacing: -.015em; color: var(--ink);
}
.il-title em { font-style: italic; color: var(--gold); }

.il-content { padding: 40px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 44px; align-content: start; }
.il-desc {
  grid-column: 1 / -1; font-size: 15px; line-height: 1.85; color: var(--ink-m);
  padding-bottom: 28px; border-bottom: 1px solid var(--border-l);
}
.il-desc strong { color: var(--ink); font-weight: 600; }

.ilm-val {
  font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700;
  line-height: 1; letter-spacing: -.03em; color: var(--ink); margin-bottom: 4px;
}
.ilm-val .acc { color: var(--gold); }
.ilm-val .prev {
  font-size: 17px; color: var(--mute); font-weight: 400; margin-right: 4px;
}
.ilm-label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.il-result {
  grid-column: 1 / -1; padding: 16px 20px;
  background: var(--green-bg); border-left: 3px solid var(--green-l);
  font-size: 13px; font-weight: 600; color: var(--green-l);
  display: flex; align-items: center; gap: 10px;
}
.il-result::before { content: '→'; }

/* Connector between layers — same idea as CS1's swing-box separator */
.layer-link {
  padding: 0 72px; height: 36px;
  display: flex; align-items: center; gap: 16px;
}
.ll-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--border-m) 0%, rgba(181,136,58,.4) 100%);
  margin-left: 12px; flex-shrink: 0;
}
.ll-label {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--mute);
}

/* ── S3: ALL THE NUMBERS ─────────────────────────── */
/*
   Embedded dark block inside on-parch section —
   same pattern as CS1's swing-box inside an on-parch section.
*/
.metrics-block {
  background: var(--void);
  margin-top: 56px;
}
.dash-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--border-d);
}
.dash-cell {
  background: var(--void-l); padding: 40px 36px; transition: background .3s;
}
.dash-cell:hover { background: var(--void-ll); }
.dash-cell.featured {
  grid-column: span 2;
  background: rgba(181,136,58,.07); border: 1px solid rgba(181,136,58,.18);
}
.dc-cat {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(248,248,246,.25); margin-bottom: 16px;
}
.dc-val {
  font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 700;
  line-height: 1; letter-spacing: -.03em; color: var(--snow); margin-bottom: 8px;
}
.dc-val .acc { color: var(--gold-l); }
.dc-val .sm { font-size: 26px; color: rgba(248,248,246,.35); font-weight: 400; }
.dash-cell.featured .dc-val { font-size: 68px; color: var(--gold-l); }
.dc-label { font-size: 13px; font-weight: 500; color: rgba(248,248,246,.55); margin-bottom: 5px; }
.dc-sub   { font-size: 12px; color: rgba(248,248,246,.3); line-height: 1.55; }

/* Timeline sits inside the metrics-block dark wrapper */
.timeline { padding: 0 52px 52px; }
.tl-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 56px; padding: 36px 0;
  border-top: 1px solid var(--border-d); align-items: start;
}
.tl-row:last-child { border-bottom: 1px solid var(--border-d); }
.tl-date { font-size: 13px; font-weight: 600; color: rgba(248,248,246,.4); margin-bottom: 10px; }
.tl-badge {
  display: inline-flex;
  font-family: 'DM Mono', monospace; font-size: 9px;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px;
}
.tl-badge.done { background: var(--green-bg); color: var(--green-l); }
.tl-badge.now  { background: var(--amber-bg); color: var(--amber); }
.tl-title {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 400;
  color: var(--snow); margin-bottom: 8px; line-height: 1.1; letter-spacing: -.01em;
}
.tl-detail { font-size: 14px; line-height: 1.7; color: rgba(248,248,246,.4); margin-bottom: 10px; }
.tl-delta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: .06em; padding: 4px 12px;
}
.tl-delta.up   { background: var(--green-bg); color: var(--green-l); }
.tl-delta.gold { background: rgba(181,136,58,.1); color: var(--gold-l); }

/* ── S4: MAP PACK POSITIONS ──────────────────────── */
/* Parchment section — same alternating rhythm as CS1 */
.map-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }

/* Position table — styled exactly like CS1's period-bands */
.pos-table { margin-top: 40px; display: flex; flex-direction: column; gap: 3px; }
.pos-row {
  display: grid; grid-template-columns: 44px 1fr 80px 80px;
  background: var(--white); border-left: 4px solid transparent; transition: box-shadow .3s;
}
.pos-row:hover { box-shadow: 0 4px 20px rgba(13,13,16,.07); position: relative; z-index: 1; }
.pos-row.pack   { border-left-color: var(--green-l); }
.pos-row.close  { border-left-color: var(--amber); }
.pos-row.building{ border-left-color: rgba(13,13,16,.15); }
.pos-row.header {
  background: var(--void); border-left-color: var(--gold);
  border-bottom: 2px solid var(--gold); pointer-events: none;
}
.pc { padding: 16px 18px; border-right: 1px solid var(--border-l); display: flex; align-items: center; }
.pc:last-child { border-right: none; }
.pos-row.header .pc { border-right-color: var(--border-d); }
.pos-rank {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: var(--gold); padding: 16px 12px;
  border-right: 1px solid var(--border-l); display: flex; align-items: center; justify-content: center;
}
.pos-row.header .pos-rank {
  font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(248,248,246,.4); border-right-color: var(--border-d);
}
.pos-term { font-size: 14px; color: var(--ink); font-weight: 500; }
.pos-sub  { font-size: 11px; color: var(--mute); margin-top: 2px; }
.pos-row.header .pc .pos-term {
  font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(248,248,246,.4);
}
.pos-badge {
  font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600;
  padding: 4px 10px; width: fit-content;
}
.pos-badge.pack  { background: var(--green-bg); color: var(--green-l); }
.pos-badge.close { background: var(--amber-bg); color: var(--amber); }
.pos-badge.no    { color: rgba(13,13,16,.25); font-style: italic; font-family: 'Instrument Sans', sans-serif; font-size: 11px; }

.coverage-strip {
  margin-top: 3px; background: var(--void);
  padding: 36px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.cs-num {
  font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 700;
  line-height: 1; letter-spacing: -.035em; color: var(--gold-l); margin-bottom: 4px;
}
.cs-lbl { font-size: 13px; color: rgba(248,248,246,.4); line-height: 1.4; }

/* Explainer points on right — same style as CS1's s1-body */
.map-points { margin-top: 40px; }
.mp-item {
  padding: 28px 0; border-bottom: 1px solid var(--border-m);
  display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: baseline;
}
.mp-item:first-child { border-top: 1px solid var(--border-m); }
.mp-num {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.mp-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.mp-desc  { font-size: 14px; line-height: 1.75; color: var(--mute); }

/* ── S5: CONTEXT — WHAT THIS PROVES / DOESN'T ───── */
/*
   Embedded dark blocks inside on-white section —
   same pattern as CS1's impact-grid dark card inside a white section.
*/
.context-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3px; background: var(--border-l);
  margin-top: 56px;
}
.ctx-panel { background: var(--void); padding: 56px 52px; }
.ctx-tag {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.ctx-tag.gold { color: var(--gold); }
.ctx-tag.gold::before { content: ''; width: 20px; height: 1px; background: var(--gold); display: block; }
.ctx-tag.dim  { color: rgba(248,248,246,.3); }
.ctx-tag.dim::before  { content: ''; width: 20px; height: 1px; background: rgba(248,248,246,.18); display: block; }
.ctx-h {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 400;
  line-height: 1.1; letter-spacing: -.015em; margin-bottom: 16px; color: var(--snow);
}
.ctx-h em { font-style: italic; color: var(--gold-l); }
.ctx-h.dim { color: rgba(248,248,246,.45); }
.ctx-body { font-size: 15px; line-height: 1.85; color: rgba(248,248,246,.5); }
.ctx-body strong { color: var(--snow); font-weight: 500; }

/* ── CTA (identical to CS1) ──────────────────────── */
.cta-section {
  background: var(--void); padding: 160px 72px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(181,136,58,.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px; pointer-events: none; opacity: .5;
}
.cta-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.cta-kicker {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 36px; display: flex; align-items: center; justify-content: center; gap: 16px;
}
.cta-kicker::before, .cta-kicker::after { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }
.cta-h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 400; line-height: 1.05; letter-spacing: -.025em; color: var(--snow); margin-bottom: 28px;
}
.cta-h2 em { font-style: italic; color: var(--gold-l); }
.cta-sub {
  font-size: 17px; line-height: 1.8; color: rgba(248,248,246,.42); margin-bottom: 52px;
  font-weight: 300; max-width: 500px; margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-note {
  margin-top: 24px; font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(248,248,246,.2);
}

@media (max-width: 1360px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { width: fit-content; max-width: 100%; }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1060px) {
  .wrap { padding: 0 48px; }
  .hero-content { padding: 0 48px 80px; }
  .s1-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 48px; }
  .infra-layer { grid-template-columns: 1fr; }
  .il-meta { border-right: none; border-bottom: 1px solid var(--border-l); padding: 32px 36px; }
  .il-content { grid-template-columns: 1fr 1fr; }
  .layer-link { padding: 0 48px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-cell.featured { grid-column: span 2; }
  .tl-row { grid-template-columns: 1fr; gap: 12px; }
  .map-layout { grid-template-columns: 1fr; gap: 56px; }
  .context-split { grid-template-columns: 1fr; }
  .ctx-panel { padding: 48px 40px; }
  .site-footer { grid-template-columns: 1fr; padding: 40px; }
  .footer-bottom { padding: 20px 40px; }
  .cta-section { padding: 120px 48px; }
}
@media (max-width: 720px) {
  .nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .wrap { padding: 0 24px; }
  .hero-content { padding: 0 24px 80px; }
  .hero-h1 { font-size: clamp(38px, 10vw, 64px); }
  .hero-stats { flex-direction: column; }
  .hs { border-right: none; border-bottom: 1px solid var(--border-d); }
  .hs:last-child { border-bottom: none; }
  .il-content { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-cell.featured { grid-column: span 1; }
  .pos-row { grid-template-columns: 36px 1fr 64px; }
  .pos-row .pc:last-child { display: none; }
  .coverage-strip { grid-template-columns: 1fr 1fr; padding: 28px 24px; }
  .context-split { grid-template-columns: 1fr; }
  .ctx-panel { padding: 48px 24px; }
  .cta-section { padding: 80px 24px; }
  .site-footer { padding: 40px 24px; gap: 32px; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
}
