/* w3p-forensic — the "reveal" dialect layered on forge-dark.
 *
 * Registers of the language:
 *   - surface: near-black green-ink; the page reads like a case file.
 *   - green (#00E664) is the reveal light — used ONLY for evidence, the
 *     scanline, and actions. It never decorates.
 *   - JetBrains Mono carries forensic metadata (evidence refs, dates,
 *     confidence, status). Inter carries prose.
 *   - hairlines + quiet grid instead of cards wherever possible.
 */

:root {
  --w3p-ink: #050b08;
  --w3p-ink-2: #08110c;
  --w3p-ink-3: #0d1a13;
  --w3p-green: #00e664;
  --w3p-green-dim: rgba(0, 230, 100, 0.55);
  --w3p-green-faint: rgba(0, 230, 100, 0.12);
  --w3p-green-ghost: rgba(0, 230, 100, 0.06);
  --w3p-hairline: rgba(140, 235, 175, 0.14);
  --w3p-hairline-2: rgba(140, 235, 175, 0.07);
  --w3p-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --w3p-max: 72rem;
}

html[data-stx-skin="w3p-forensic"] {
  --stx-surface-deep: var(--w3p-ink);
  --stx-surface-canvas: var(--w3p-ink);
  --stx-surface-default: var(--w3p-ink-2);
  --stx-surface-raised: var(--w3p-ink-3);
  --stx-border-subtle: var(--w3p-hairline-2);
  --stx-border-default: var(--w3p-hairline);
  --stx-border-strong: rgba(140, 235, 175, 0.28);
  /* seed pick: Cabinet Grotesk carries display; Inter body + JB Mono
     forensic metadata stay */
  --stx-font-display: "Cabinet Grotesk", Inter, system-ui, sans-serif;
}

/* ---------- shell ---------------------------------------------------- */

html[data-stx-skin="w3p-forensic"] body {
  background:
    radial-gradient(
      1200px 500px at 70% -10%,
      rgba(0, 230, 100, 0.05),
      transparent 60%
    ),
    var(--w3p-ink);
}

html[data-stx-skin="w3p-forensic"] .site-header {
  background: rgba(5, 11, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--w3p-hairline);
}

html[data-stx-skin="w3p-forensic"] .site-logo {
  font-family: var(--w3p-mono);
  font-weight: 600;
  letter-spacing: -0.03em;
}

html[data-stx-skin="w3p-forensic"] .site-logo::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: var(--w3p-green);
  box-shadow: 0 0 14px rgba(0, 230, 100, 0.7);
}

html[data-stx-skin="w3p-forensic"] .site-nav a {
  font-family: var(--w3p-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

html[data-stx-skin="w3p-forensic"] .site-footer {
  border-top-color: var(--w3p-hairline);
  font-family: var(--w3p-mono);
}

/* ---------- primitives ----------------------------------------------- */

.w3p-wrap {
  max-width: var(--w3p-max);
  margin: 0 auto;
}

.sec {
  padding: clamp(6rem, 12vw, 9.5rem) 0 clamp(5.5rem, 11vw, 8.5rem);
  border-top: 1px solid var(--w3p-hairline-2);
}

.sec-tag {
  font-family: var(--w3p-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--w3p-green-dim);
  margin: 0 0 var(--stx-space-4);
}

.sec-tag::before {
  content: "// ";
  color: var(--w3p-green);
}

.sec-title {
  font-size: var(--stx-size-h2);
  max-width: 46rem;
  margin: 0 0 var(--stx-space-5);
  letter-spacing: -0.02em;
}

.sec-lede {
  font-size: var(--stx-size-lead);
  color: var(--stx-text-secondary);
  max-width: 44rem;
  margin: 0 0 var(--stx-space-6);
}

.mono {
  font-family: var(--w3p-mono);
}

.dim {
  color: var(--stx-text-tertiary);
}

.grn {
  color: var(--w3p-green);
}

.button {
  font-family: var(--w3p-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.button-brand {
  background: var(--w3p-green);
  color: #03130a;
  border-color: transparent;
  font-weight: 600;
}

.button-brand:hover {
  opacity: 0.9;
  box-shadow: 0 0 24px rgba(0, 230, 100, 0.25);
}

.button-ghost {
  background: transparent;
  color: var(--stx-text-primary);
  border-color: var(--w3p-hairline);
}

.button-ghost:hover {
  border-color: var(--w3p-green-dim);
  color: var(--w3p-green);
}

/* ---------- hero: editorial split -------------------------------------- */

.w3p-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(5rem, 9vw, 8rem);
}

.w3p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.w3p-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.w3p-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 15ch;
  margin: var(--stx-space-4) 0 var(--stx-space-5);
}

/* inline typography visual — a scanline chip living inside claim-big */
.claim-vis {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 1.9em;
  height: 0.62em;
  border: 1px solid var(--w3p-green-dim);
  border-radius: 999px;
  background: var(--w3p-green-ghost);
  transform: translateY(-0.03em);
}

.claim-vis-line {
  position: absolute;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--w3p-green);
  box-shadow:
    0 0 10px rgba(0, 230, 100, 0.8),
    0 -0.14em 0 0 rgba(0, 230, 100, 0.35),
    0 0.14em 0 0 rgba(0, 230, 100, 0.2);
  animation: w3p-visscan 2.8s ease-in-out infinite;
}

@keyframes w3p-visscan {
  0%,
  100% {
    transform: translateY(-0.12em);
  }
  50% {
    transform: translateY(0.12em);
  }
}

.w3p-hero-sub {
  font-size: var(--stx-size-lead);
  color: var(--stx-text-secondary);
  max-width: 38rem;
  margin: 0 0 var(--stx-space-6);
}

.w3p-hero-sub .mono {
  color: var(--w3p-green);
  font-size: 0.85em;
}

.w3p-hero .reveal-stage {
  width: 100%;
  min-width: 0;
  text-align: left;
  /* the artifact floats off-axis — a case file on a desk, not a panel */
  transform: rotate(-1.4deg) translateY(1.5rem);
  outline: 1px solid var(--w3p-hairline-2);
  outline-offset: 10px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 90px rgba(0, 230, 100, 0.07);
}

/* ---------- attack-class marquee (scroll-linked) ----------------------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--w3p-hairline-2);
  border-bottom: 1px solid var(--w3p-hairline-2);
  padding: var(--stx-space-4) 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--stx-space-8);
  width: max-content;
  font-family: var(--w3p-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w3p-green-dim);
  white-space: nowrap;
  will-change: transform;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
}

.marquee-track span::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: var(--stx-space-8);
  background: var(--w3p-green-dim);
  opacity: 0.6;
}

/* ---------- magnetic cluster ------------------------------------------- */

[data-magnetic] {
  will-change: transform;
}

.w3p-hero-cta {
  display: flex;
  gap: var(--stx-space-4);
  flex-wrap: wrap;
}

/* the reveal stage — the brand gesture as a component */
.reveal-stage {
  position: relative;
  border: 1px solid var(--w3p-hairline);
  background: var(--w3p-ink-2);
  overflow: hidden;
}

.reveal-bar {
  display: flex;
  align-items: center;
  gap: var(--stx-space-3);
  padding: var(--stx-space-3) var(--stx-space-4);
  border-bottom: 1px solid var(--w3p-hairline);
  font-family: var(--w3p-mono);
  font-size: 0.72rem;
  color: var(--stx-text-tertiary);
}

.reveal-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--w3p-hairline);
}

.reveal-bar .url {
  margin-left: auto;
  color: var(--stx-text-tertiary);
}

.reveal-doc {
  position: relative;
  padding: var(--stx-space-5) var(--stx-space-5) var(--stx-space-6);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--stx-text-secondary);
}

.reveal-doc .doc-h {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--stx-text-primary);
  margin: 0 0 var(--stx-space-3);
  letter-spacing: -0.01em;
}

.reveal-doc p {
  margin: 0 0 var(--stx-space-3);
}

/* the hidden instruction: revealed by the sweep */
.reveal-hidden {
  position: relative;
  margin: var(--stx-space-4) 0;
  padding: var(--stx-space-4);
  border: 1px dashed var(--w3p-green-dim);
  background: var(--w3p-green-ghost);
  font-family: var(--w3p-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--w3p-green);
  animation: w3p-lit 6s ease-in-out infinite;
}

.reveal-hidden .mark {
  position: absolute;
  top: -0.65em;
  left: var(--stx-space-3);
  padding: 0 var(--stx-space-2);
  background: var(--w3p-ink-2);
  color: var(--w3p-green);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--w3p-green) 18%,
    var(--w3p-green) 82%,
    transparent
  );
  box-shadow:
    0 0 18px rgba(0, 230, 100, 0.65),
    0 0 60px rgba(0, 230, 100, 0.25);
  animation: w3p-sweep 6s ease-in-out infinite;
  pointer-events: none;
}

.reveal-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, var(--w3p-ink-2), transparent);
  pointer-events: none;
}

@keyframes w3p-sweep {
  0% { top: 8%; opacity: 0; }
  12% { opacity: 1; }
  55% { top: 82%; opacity: 1; }
  66% { opacity: 0; }
  100% { top: 82%; opacity: 0; }
}

@keyframes w3p-lit {
  0%, 30% {
    border-color: var(--w3p-hairline);
    color: var(--stx-text-tertiary);
    background: transparent;
  }
  52%, 82% {
    border-color: var(--w3p-green-dim);
    color: var(--w3p-green);
    background: var(--w3p-green-ghost);
    box-shadow: 0 0 30px rgba(0, 230, 100, 0.12);
  }
  100% {
    border-color: var(--w3p-hairline);
    color: var(--stx-text-tertiary);
    background: transparent;
    box-shadow: none;
  }
}

.reveal-caption {
  padding: var(--stx-space-3) var(--stx-space-4);
  border-top: 1px solid var(--w3p-hairline);
  font-family: var(--w3p-mono);
  font-size: 0.7rem;
  color: var(--stx-text-tertiary);
  display: flex;
  justify-content: space-between;
  gap: var(--stx-space-4);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-beam { display: none; }
  .claim-vis-line { animation: none; }
  .marquee-track { will-change: auto; }
  .sys-acc-item,
  .sys-acc-panel {
    transition-duration: 0.01s;
  }
  .reveal-hidden {
    animation: none;
    border-color: var(--w3p-green-dim);
    color: var(--w3p-green);
    background: var(--w3p-green-ghost);
  }
}

/* ---------- two webs (editorial) ------------------------------------- */

.two-webs {
  padding: var(--stx-space-10) 0;
  border-top: 1px solid var(--w3p-hairline-2);
}

.two-webs h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 40rem;
  margin: 0 0 var(--stx-space-6);
}

.two-webs-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: var(--stx-space-6);
  max-width: 62rem;
}

.two-webs-cols p {
  color: var(--stx-text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

.two-webs-cols p strong {
  color: var(--stx-text-primary);
  font-weight: 600;
}

/* ---------- evidence ledger ------------------------------------------ */

.ledger {
  border: 1px solid var(--w3p-hairline);
  background: var(--w3p-ink-2);
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 11rem;
  gap: var(--stx-space-4);
  padding: var(--stx-space-3) var(--stx-space-4);
  align-items: baseline;
}

.ledger-head {
  font-family: var(--w3p-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stx-text-tertiary);
  border-bottom: 1px solid var(--w3p-hairline);
}

.ledger-row {
  border-bottom: 1px solid var(--w3p-hairline-2);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row:hover {
  background: var(--w3p-green-ghost);
}

.ledger-date {
  font-family: var(--w3p-mono);
  font-size: 0.75rem;
  color: var(--w3p-green-dim);
  white-space: nowrap;
}

.ledger-finding {
  font-size: 0.92rem;
  color: var(--stx-text-secondary);
  line-height: 1.55;
}

.ledger-finding b {
  color: var(--stx-text-primary);
  font-weight: 600;
}

.ledger-src {
  font-family: var(--w3p-mono);
  font-size: 0.72rem;
  color: var(--stx-text-tertiary);
  text-align: right;
}

.ledger-src a {
  color: var(--w3p-green-dim);
}

.ledger-note {
  font-family: var(--w3p-mono);
  font-size: 0.72rem;
  color: var(--stx-text-tertiary);
  margin-top: var(--stx-space-3);
}

/* ---------- record strip (cited sources, edge-faded) ------------------ */

.record-strip {
  position: relative;
  padding: var(--stx-space-6) 0;
  border-top: 1px solid var(--w3p-hairline-2);
  border-bottom: 1px solid var(--w3p-hairline-2);
  /* edge fade — the record continues off both sides */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.record-track {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--stx-space-7);
  flex-wrap: wrap;
  font-family: var(--w3p-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--stx-text-tertiary);
}

.record-track span {
  white-space: nowrap;
  opacity: 0.75;
}

.record-cap {
  margin: var(--stx-space-4) 0 0;
  font-family: var(--w3p-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w3p-green-dim);
  text-align: center;
}

/* ---------- method: pinned rail + scrolling steps ---------------------- */

.pin-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.pin-rail {
  position: sticky;
  top: clamp(6rem, 14vh, 9rem);
}

.pin-hint {
  font-size: 0.95rem;
  color: var(--stx-text-tertiary);
  line-height: 1.7;
  max-width: 24rem;
  margin: 0 0 var(--stx-space-6);
}

.pin-count {
  font-family: var(--w3p-mono);
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--w3p-green);
  margin: 0;
  line-height: 1;
}

.pin-count .pin-total {
  font-size: 0.45em;
  color: var(--stx-text-tertiary);
  letter-spacing: 0.08em;
}

.pin-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pin-step {
  padding: var(--stx-space-7) 0 var(--stx-space-8);
  border-top: 1px solid var(--w3p-hairline);
}

.pin-step:last-child {
  border-bottom: 1px solid var(--w3p-hairline);
}

.pin-verb {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--stx-space-4);
  color: var(--stx-text-primary);
}

.pin-step p:not(.pin-verb) {
  font-size: 1rem;
  color: var(--stx-text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 34rem;
}

/* ---------- product system: horizontal accordion ----------------------- */

.sys-acc {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--w3p-hairline);
  /* fixed height: collapsed panels keep zero-width text from driving
     layout height */
  height: 18rem;
  overflow: hidden;
}

.sys-acc-item {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--w3p-hairline-2);
  background: var(--w3p-ink-2);
  transition:
    flex-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}

.sys-acc-item:last-child {
  border-right: 0;
}

.sys-acc-item:hover,
.sys-acc-item:focus-within,
.sys-acc-item:has(.sys-acc-rail[aria-expanded="true"]) {
  flex-grow: 3.4;
  background: var(--w3p-ink-3);
}

.sys-acc-rail {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--stx-space-4);
  width: 4.6rem;
  flex-shrink: 0;
  padding: var(--stx-space-5) 0;
  background: none;
  border: 0;
  border-left: 1px solid transparent;
  cursor: pointer;
  font-family: var(--w3p-mono);
  text-align: left;
}

.sys-acc-rail:hover {
  border-left-color: var(--w3p-green-dim);
}

.sys-acc-num {
  font-size: 0.68rem;
  color: var(--w3p-green-dim);
  letter-spacing: 0.18em;
}

.sys-acc-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stx-text-primary);
  letter-spacing: -0.01em;
}

.sys-acc-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--stx-space-3);
  padding: var(--stx-space-5) var(--stx-space-6) var(--stx-space-6);
  opacity: 0;
  transform: translateX(14px);
  transition:
    opacity 0.45s ease 0.08s,
    transform 0.45s ease 0.08s;
}

.sys-acc-item:hover .sys-acc-panel,
.sys-acc-item:focus-within .sys-acc-panel,
.sys-acc-item:has(.sys-acc-rail[aria-expanded="true"]) .sys-acc-panel {
  opacity: 1;
  transform: none;
}

.sys-desc {
  font-size: 0.9rem;
  color: var(--stx-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 30rem;
}

.sys-status {
  font-family: var(--w3p-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stx-text-tertiary);
}

.sys-status b {
  color: var(--w3p-green-dim);
  font-weight: 500;
}

.util-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stx-space-5);
  margin-top: var(--stx-space-5);
}

.util {
  border: 1px dashed var(--w3p-hairline);
  padding: var(--stx-space-4) var(--stx-space-5);
}

.util-name {
  font-family: var(--w3p-mono);
  font-size: 0.85rem;
  color: var(--w3p-green);
}

.util p {
  font-size: 0.85rem;
  color: var(--stx-text-tertiary);
  margin: var(--stx-space-2) 0 0;
  line-height: 1.55;
}

/* ---------- category claim ------------------------------------------- */

.claim {
  padding: var(--stx-space-10) 0;
  border-top: 1px solid var(--w3p-hairline-2);
  text-align: left;
}

.claim-big {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 56rem;
  margin: 0 0 var(--stx-space-5);
}

.claim-big .grn { white-space: nowrap; }

.claim p {
  font-size: 1.05rem;
  color: var(--stx-text-secondary);
  max-width: 44rem;
  line-height: 1.7;
}

/* ---------- moat ------------------------------------------------------ */

.moat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--stx-space-6);
}

/* editorial stagger — three exhibits on a shared hairline, not a card grid */
.moat > div {
  border-top: 1px solid var(--w3p-hairline);
  padding-top: var(--stx-space-5);
}

.moat > div:nth-child(2) { transform: translateY(2.25rem); }
.moat > div:nth-child(3) { transform: translateY(4.5rem); }

.moat { padding-bottom: 4.5rem; }

.moat h3 {
  font-family: var(--w3p-mono);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--stx-space-3);
  color: var(--stx-text-primary);
}

.moat h3 .grn { font-size: 0.8em; }

.moat p {
  font-size: 0.92rem;
  color: var(--stx-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ---------- family ---------------------------------------------------- */

.family {
  border: 1px solid var(--w3p-hairline);
  background: var(--w3p-ink-2);
  padding: var(--stx-space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--stx-space-6);
}

.family h3 {
  font-family: var(--w3p-mono);
  font-size: 0.95rem;
  margin: 0 0 var(--stx-space-3);
}

.family h3 .grn { color: var(--w3p-green); }

.family p {
  font-size: 0.9rem;
  color: var(--stx-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.family-note {
  font-family: var(--w3p-mono);
  font-size: 0.72rem;
  color: var(--stx-text-tertiary);
  margin-top: var(--stx-space-4);
}

/* ---------- status (honest) ------------------------------------------- */

.status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stx-space-6);
  border-top: 1px solid var(--w3p-hairline);
  padding-top: var(--stx-space-6);
}

.status h3 {
  font-family: var(--w3p-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stx-text-tertiary);
  margin: 0 0 var(--stx-space-4);
}

.status ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.status li {
  font-size: 0.92rem;
  color: var(--stx-text-secondary);
  padding: var(--stx-space-2) 0 var(--stx-space-2) var(--stx-space-5);
  position: relative;
  line-height: 1.55;
}

.status li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--w3p-green-dim);
}

.status .building li::before {
  background: var(--stx-text-tertiary);
}

/* ---------- cta -------------------------------------------------------- */

.cta-band {
  border-top: 1px solid var(--w3p-hairline-2);
  padding: var(--stx-space-10) 0 var(--stx-space-10);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--stx-space-4);
}

.cta-band p {
  color: var(--stx-text-secondary);
  max-width: 34rem;
  margin: 0 auto var(--stx-space-6);
  line-height: 1.65;
}

.cta-band .w3p-hero-cta {
  justify-content: center;
}

.cta-meta {
  font-family: var(--w3p-mono);
  font-size: 0.72rem;
  color: var(--stx-text-tertiary);
  margin-top: var(--stx-space-5);
}

/* ---------- subpage scaffolding --------------------------------------- */

.page-head {
  padding: var(--stx-space-8) 0 var(--stx-space-7);
}

.page-head h1 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.03em;
  margin: var(--stx-space-3) 0 var(--stx-space-4);
}

.page-head .lede {
  font-size: var(--stx-size-lead);
  color: var(--stx-text-secondary);
  max-width: 46rem;
  margin: 0;
  line-height: 1.7;
}

.spec-list {
  border-top: 1px solid var(--w3p-hairline);
}

.spec-row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: var(--stx-space-6);
  padding: var(--stx-space-6) 0;
  border-bottom: 1px solid var(--w3p-hairline-2);
}

.spec-row h3 {
  font-family: var(--w3p-mono);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--stx-text-primary);
}

.spec-row h3 .dim {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: var(--stx-space-2);
  font-weight: 400;
}

.spec-body p {
  color: var(--stx-text-secondary);
  line-height: 1.65;
  margin: 0 0 var(--stx-space-3);
  max-width: 40rem;
  font-size: 0.95rem;
}

.spec-body ul {
  margin: 0;
  padding-left: var(--stx-space-5);
  color: var(--stx-text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.spec-body code {
  color: var(--w3p-green-dim);
  font-size: 0.85em;
}

/* manifesto / prose register */
.manifesto-block {
  max-width: 42rem;
  padding: var(--stx-space-7) 0;
  border-top: 1px solid var(--w3p-hairline-2);
}

.manifesto-block h2 {
  font-size: var(--stx-size-h3);
  margin: 0 0 var(--stx-space-4);
  letter-spacing: -0.02em;
}

.manifesto-block p,
.manifesto-block li {
  color: var(--stx-text-secondary);
  line-height: 1.75;
  font-size: 1rem;
}

.manifesto-block p strong {
  color: var(--stx-text-primary);
}

.manifesto-block .big {
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--stx-text-primary);
  letter-spacing: -0.01em;
}

.principle {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: var(--stx-space-6);
  padding: var(--stx-space-5) 0;
  border-bottom: 1px solid var(--w3p-hairline-2);
}

.principle:last-child {
  border-bottom: 0;
}

.principle h3 {
  font-family: var(--w3p-mono);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
}

.principle p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- responsive ------------------------------------------------- */

@media (max-width: 900px) {
  .w3p-hero {
    padding-top: var(--stx-space-8);
  }
  .w3p-hero-grid { grid-template-columns: 1fr; }
  .w3p-hero h1 { max-width: 20ch; }
  .w3p-hero .reveal-stage {
    transform: none;
    outline-offset: 6px;
    margin-top: var(--stx-space-4);
  }

  /* pin-split collapses: rail un-sticks, steps flow normally */
  .pin-split { grid-template-columns: 1fr; gap: var(--stx-space-6); }
  .pin-rail { position: static; }
  .pin-step { padding: var(--stx-space-5) 0 var(--stx-space-6); }

  .moat, .family, .status { grid-template-columns: 1fr; }
  .moat > div:nth-child(2),
  .moat > div:nth-child(3) { transform: none; }
  .moat { padding-bottom: 0; }

  /* accordion collapses to a vertical stack — all panels reachable */
  .sys-acc {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .sys-acc-item {
    flex-direction: column;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--w3p-hairline-2);
  }
  .sys-acc-item:last-child { border-bottom: 0; }
  .sys-acc-item:hover,
  .sys-acc-item:focus-within { flex-grow: 1; }
  .sys-acc-rail {
    writing-mode: horizontal-tb;
    transform: none;
    width: auto;
    padding: var(--stx-space-4) var(--stx-space-5);
    border-left: 0;
  }
  .sys-acc-num { order: -1; }
  .sys-acc-panel {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: none;
    transition:
      max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.35s ease,
      padding 0.3s ease;
  }
  .sys-acc-item:has(.sys-acc-rail[aria-expanded="true"]) .sys-acc-panel,
  .sys-acc-item:hover .sys-acc-panel,
  .sys-acc-item:focus-within .sys-acc-panel {
    max-height: 26rem;
    padding-top: 0;
    padding-bottom: var(--stx-space-5);
    opacity: 1;
  }

  .util-row { grid-template-columns: 1fr; }
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: 6rem 1fr; }
  .ledger-src { grid-column: 2; text-align: left; }
  .spec-row { grid-template-columns: 1fr; gap: var(--stx-space-3); }
  .principle { grid-template-columns: 1fr; gap: var(--stx-space-2); }

  /* overflow guards */
  .claim-big .grn { white-space: normal; }
  code, .ledger-finding, .reveal-doc { overflow-wrap: break-word; }
}

@media (max-width: 640px) {
  /* nav wraps below the logo instead of overflowing the viewport */
  .site-header-inner { flex-wrap: wrap; row-gap: var(--stx-space-2); }
  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: var(--stx-space-2) var(--stx-space-5);
    font-size: 0.85em;
  }
  .w3p-hero h1 { font-size: clamp(2rem, 9.2vw, 2.4rem); }
  .w3p-hero-cta { flex-wrap: wrap; }
  .reveal-bar .url { display: none; }
}

/* hard overflow guard — marketing surface must never scroll sideways */
html[data-stx-skin="w3p-forensic"] body { overflow-x: clip; }

/* ---------- fluid large-viewport scaling -------------------------------
   Design is rem-based; scale the root so ≥2K monitors don't read small.
   Below 1600px is pixel-identical to the baseline. */
@media (min-width: 1600px) { html { font-size: 17px; } }
@media (min-width: 1900px) { html { font-size: 18.5px; } }
@media (min-width: 2400px) { html { font-size: 20.5px; } }

/* ---------- scroll reveal (forensic register) ---------------------------
   Sections enter like a sweep line passing over them — a hairline-lit
   clip wipe, not a fade. Progressive enhancement only: browsers without
   animation-timeline get the fully-visible baseline; reduced-motion
   disables it entirely. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html[data-stx-skin="w3p-forensic"] main > section:not(.w3p-hero),
    html[data-stx-skin="w3p-forensic"] .site-main > section:not(.w3p-hero) {
      animation: w3p-reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    @keyframes w3p-reveal-in {
      from {
        clip-path: inset(0 0 82% 0);
        opacity: 0.15;
      }
      to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
      }
    }
  }
}
