.m-layer-page {
  --ink: #14212b;
  --paper: #f4f0e4;
  --rust: #b75036;
  --gold: #e5b94c;
  --teal: #156b6b;
  --night: #101c28;
  --line: rgba(20, 33, 43, .24);
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 33, 43, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 38px;
}

.m-layer-page .m-hero {
  padding: 22px clamp(22px, 5vw, 72px) clamp(48px, 8vw, 100px);
  color: #f8f1dc;
  background:
    radial-gradient(circle at 78% 25%, rgba(229,185,76,.18), transparent 28%),
    repeating-linear-gradient(118deg, transparent 0 60px, rgba(255,255,255,.025) 61px 62px),
    linear-gradient(128deg, #101923, #153f4a 65%, #713b31);
  border-bottom: 8px solid var(--gold);
}

.m-hero nav { display: flex; justify-content: space-between; gap: 20px; }
.m-hero nav a { color: #ffe08a; font-size: 13px; font-weight: 750; text-decoration: none; }
.m-hero nav a:hover, .m-hero nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.m-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: clamp(34px, 7vw, 96px); align-items: end; max-width: 1420px; margin: 0 auto; }
.m-layer-page .project-status { margin-top: clamp(64px, 10vw, 130px); }
.m-layer-page h1 { max-width: 850px; margin: 0; font-size: clamp(64px, 10.5vw, 154px); letter-spacing: -.055em; line-height: .78; }
.m-layer-page .project-lede { max-width: 780px; margin-top: 36px; color: #e9ecdf; font-size: clamp(20px, 2vw, 28px); line-height: 1.42; }

.hero-verdict { padding: clamp(24px, 3vw, 40px); color: #14212b; background: #f8f1dc; border-top: 9px solid var(--rust); box-shadow: 16px 16px 0 rgba(0,0,0,.18); }
.hero-verdict > p:not(.eyebrow) { margin: 0; font: 19px/1.5 Georgia, serif; }
.hero-verdict dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.hero-verdict dl div { padding-top: 12px; border-top: 1px solid #6a6c63; }
.hero-verdict dt { color: var(--rust); font: 700 34px/1 Georgia, serif; }
.hero-verdict dd { margin: 5px 0 0; font-size: 11px; line-height: 1.35; text-transform: uppercase; }

.m-layer-page .m-body { width: min(1380px, calc(100% - 32px)); }
.expose-question { margin-top: -64px; position: relative; z-index: 2; grid-template-columns: .45fr 1.55fr; box-shadow: 12px 12px 0 rgba(20,33,43,.12); }
.expose-question h2 { margin: 0; font-size: 16px; letter-spacing: .09em; text-transform: uppercase; }
.expose-question p { max-width: none; }

.m-layer-page h2 { letter-spacing: -.04em; }
.m-layer-page .kicker, .eyebrow { margin: 0 0 12px; color: var(--rust); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.m-layer-page .section-number { color: var(--rust); font: 700 17px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.m-layer-page .prose h2, .mechanism-copy h2, .case-copy h2, .ledger h2 { max-width: 950px; margin: 0 0 24px; font-size: clamp(42px, 6.4vw, 84px); line-height: .94; }
.m-layer-page .prose p, .mechanism-copy p, .case-copy p, .ledger p { max-width: 780px; font-size: 18px; line-height: 1.68; }
.m-layer-page .standfirst { font: clamp(22px, 2.4vw, 31px)/1.46 Georgia, serif !important; }

.m-intro, .what-remains { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(260px, .45fr); gap: clamp(20px, 4vw, 56px); padding: clamp(64px, 10vw, 130px) 0; }
.margin-note, .next-object { align-self: center; padding: 26px; background: #d9e6df; border-top: 5px solid var(--teal); }
.margin-note p:last-child { margin: 0; font: 20px/1.5 Georgia, serif; }

.mechanism { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(48px, 7vw, 88px); color: #eef4ec; background: var(--night); box-shadow: 18px 18px 0 rgba(183,80,54,.25); }
.mechanism .section-number, .mechanism .kicker { color: #f1c964; }
.mechanism-copy { max-width: 1000px; }
.mechanism-copy p { color: #cbd8d2; }
.mechanism-steps { grid-column: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 30px 0 0; padding: 0; list-style: none; background: #52616a; border: 1px solid #52616a; }
.mechanism-steps li { min-width: 0; padding: 22px 17px; background: #172634; }
.mechanism-steps span { display: block; margin-bottom: 15px; color: #f1c964; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.mechanism-steps code { display: block; min-height: 50px; color: #fff8df; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.mechanism-steps p { margin: 12px 0 0; color: #bac8c4; font-size: 13px; line-height: 1.45; }

.code-panel { grid-column: 2; margin-top: 28px; border: 1px solid #65727b; background: #0a1219; }
.code-heading { display: flex; justify-content: space-between; gap: 20px; padding: 12px 18px; color: #bac8c4; background: #172634; border-bottom: 1px solid #65727b; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.code-panel pre { margin: 0; padding: clamp(20px, 4vw, 42px); overflow-x: auto; color: #dcebe3; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; }
.code-panel > p { margin: 0; padding: 17px 20px; color: #bac8c4; background: #101d27; border-top: 1px solid #364753; font-size: 13px; line-height: 1.5; }
.principles-grid { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.principles-grid article { padding: 22px; background: #e8eee7; color: var(--ink); border-top: 5px solid var(--teal); }
.principles-grid h3 { margin: 0 0 10px; font-size: 22px; }
.principles-grid p { margin: 0; font-size: 14px; line-height: 1.55; }

.evidence, .attempts { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(70px, 10vw, 130px) 0; }
.wide { max-width: 1050px; }
.scoreboard { grid-column: 2; margin-top: 24px; overflow-x: auto; border: 1px solid var(--ink); background: #fffdf6; }
.scoreboard table { width: 100%; min-width: 780px; border-collapse: collapse; }
.scoreboard th, .scoreboard td { padding: 15px 17px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.scoreboard thead th { color: #f8f1dc; background: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.scoreboard tbody th { font-size: 15px; }
.scoreboard .survivor { background: #dceae3; }
.scoreboard .survivor th { border-left: 7px solid var(--teal); }
.table-note { grid-column: 2; max-width: 900px; margin: 12px 0 0; color: #55616a; font-size: 12px; line-height: 1.5; }

.case-study { margin: 0 calc(50% - 50vw); padding: clamp(60px, 8vw, 110px) max(20px, calc((100vw - 1380px) / 2)); }
.dark-case { color: #f5f0e2; background: #17212d; }
.case-copy { max-width: 1000px; margin-bottom: 38px; }
.case-copy p { color: inherit; opacity: .88; }
.case-study figure { margin: 0; }
.case-study img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid rgba(255,255,255,.25); }
.case-study figcaption { padding: 14px 2px 0; color: inherit; opacity: .78; font-size: 13px; line-height: 1.5; }

.attempt-list { grid-column: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.attempt-list article { position: relative; padding: 30px 30px 26px 76px; background: #fffdf6; border: 1px solid var(--line); border-top: 6px solid var(--rust); }
.attempt-index { position: absolute; top: 27px; left: 26px; margin: 0; color: var(--rust); font: 800 24px/1 Georgia, serif; }
.attempt-list h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.1; }
.attempt-list p { font-size: 15px; line-height: 1.58; }
.attempt-list .verdict { margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.verdict span { color: var(--teal); font-weight: 850; }

.comparison-case { color: var(--ink); background: #dbe5e3; border-top: 1px solid #7d8e8e; border-bottom: 1px solid #7d8e8e; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.figure-pair figure, .wide-figure { padding: 12px; background: #fffdf6; border: 1px solid var(--line); }
.wide-figure { max-width: 940px; margin: 26px auto 0 !important; }

.next-object h3 { margin: 0 0 15px; font-size: 27px; line-height: 1.1; }
.next-object ul { margin: 0; padding-left: 20px; }
.next-object li { margin: 10px 0; font-size: 14px; line-height: 1.5; }

.ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: clamp(34px, 7vw, 100px); margin-bottom: 36px; padding: clamp(42px, 6vw, 78px); color: #f5f0e2; background: #713b31; }
.ledger h2 { font-size: clamp(38px, 5vw, 66px); }
.ledger p { color: #f0ded2; }
.ledger .kicker { color: #ffe08a; }
.ledger-links { display: grid; align-content: center; }
.ledger-links a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 15px 0; color: #fff7e7; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 14px; font-weight: 750; text-decoration: none; }
.ledger-links a:hover, .ledger-links a:focus-visible { color: #ffe08a; }
.ledger-links span { color: #ffe08a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 980px) {
  .m-hero-grid { grid-template-columns: 1fr; }
  .hero-verdict { max-width: 700px; }
  .expose-question { margin-top: -35px; }
  .m-intro, .what-remains { grid-template-columns: 38px 1fr; }
  .margin-note, .next-object { grid-column: 2; }
  .mechanism-steps { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .ledger { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .m-hero nav { align-items: flex-start; flex-direction: column; }
  .m-layer-page h1 { font-size: clamp(58px, 20vw, 94px); }
  .hero-verdict dl { grid-template-columns: 1fr; }
  .expose-question { grid-template-columns: 1fr; }
  .m-intro, .what-remains, .mechanism, .evidence, .attempts { grid-template-columns: 1fr; padding-top: 62px; padding-bottom: 62px; }
  .m-layer-page .section-number { margin-bottom: 2px; }
  .margin-note, .next-object, .mechanism-steps, .code-panel, .principles-grid, .scoreboard, .table-note, .attempt-list { grid-column: 1; }
  .mechanism { margin: 0 -6px; padding: 42px 18px; box-shadow: 8px 8px 0 rgba(183,80,54,.25); }
  .mechanism-steps, .principles-grid, .attempt-list, .figure-pair { grid-template-columns: 1fr; }
  .attempt-list article { padding-left: 66px; }
  .case-study { padding-right: 16px; padding-left: 16px; }
  .ledger { padding: 34px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .m-layer-page *, .m-layer-page *::before, .m-layer-page *::after { scroll-behavior: auto !important; }
}
