/* The deep-dive page: an article, so its sections size to their content instead of the kit's one-screen box. */
body.deep main > section { height: auto !important; min-height: 0 !important; padding: clamp(72px, 9vw, 120px) 0 !important; display: block !important; }
body.deep main > section > .wrap { height: auto !important; display: block !important; }
.deep__hero { padding-top: calc(var(--nav) + 64px) !important; background: radial-gradient(60% 60% at 85% 0%, rgba(21,88,201,.35), transparent 70%); }
.deep__back { display: inline-block; margin-bottom: var(--s-6); color: var(--p-muted); }
.deep__eyebrow { color: var(--lime); margin: 0 0 var(--s-4); }
.deep__hero h1 { font-size: clamp(48px, 8.5vw, 132px); line-height: .95; letter-spacing: -.045em; margin: 0; max-width: 12ch; }
.deep__lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; max-width: 62ch; margin: var(--s-6) 0 0; color: #d6d9e0; }
.deep__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-8) 0 0; padding: 0; }
.deep__facts div { border-top: 2px solid var(--lime); padding-top: var(--s-4); }
.deep__facts dt { font-family: var(--font-mono); font-size: 13px; color: var(--lime); }
.deep__facts dd { margin: 8px 0 0; font-size: 18px; line-height: 1.4; }
.deep__sec h2 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.03em; margin: 0 0 var(--s-5); max-width: 22ch; }
.deep__sec p { font-size: 18px; line-height: 1.65; color: #d6d9e0; max-width: 62ch; }
.deep__split { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.deep__head p { max-width: 62ch; }
.deep__fails { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deep__fails li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); font-size: 16px; color: #d6d9e0; }
.deep__fails span { font-family: var(--font-mono); font-size: 13px; color: #ff7a7a; }
.deep__sec--system { background: radial-gradient(70% 50% at 50% 55%, rgba(21,88,201,.18), transparent 70%); }

/* the animated system */
.flow { position: relative; margin: var(--s-7) 0 0; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, #0a0d14, #05060a); padding: clamp(14px, 2vw, 28px); }
.flow__svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow__wires path { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2.5; stroke-linecap: round; }
.flow__wires path.is-lit { stroke: url(#fg); stroke-width: 3.5; }
.flow__wires .w-alt { stroke-dasharray: 6 8; }
.flow__wires .w-loop { stroke-dasharray: 3 9; }
.flow__ghost { fill: none; stroke: none; }
.fn rect { fill: #0e121b; stroke: rgba(255,255,255,.16); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.fn text { fill: #e9ebef; font-size: 19px; text-anchor: middle; }
.fn text.sub { fill: #8e94a0; font-size: 14px; }
.fn--alt rect { stroke-dasharray: 5 6; }
.fn.is-on rect { fill: #d4ff24; stroke: #d4ff24; }
.fn.is-on text { fill: #030407; }
.fn.is-bad rect { fill: #3a0e12; stroke: #ff5a5a; }
.fn.is-bad text { fill: #ffd0d0; }
.flow__tag { font: 500 17px "DM Mono", monospace; fill: #ff6b6b; text-anchor: middle; opacity: 0; }
.flow__tag--amber { fill: #ffc145; }
.flow__packet { fill: #fff; }
.flow__console { display: flex; gap: 14px; align-items: center; margin-top: var(--s-4); padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); font-family: var(--font-mono); font-size: 14px; min-height: 46px; }
.flow__clock { color: var(--p-bg); background: var(--lime); padding: 3px 8px; border-radius: 6px; flex: 0 0 auto; }
.flow__console code { color: var(--p-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow__pause { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(3,4,7,.6); color: var(--p-ink); display: grid; place-items: center; cursor: pointer; }
.flow__pause svg { width: 12px; height: 12px; }
.flow__steps { list-style: none; counter-reset: s; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.flow__steps li { counter-increment: s; font-size: 16px; line-height: 1.55; color: #c9cdd6; padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.12); }
.flow__steps li::before { content: "0" counter(s); display: block; font-family: var(--font-mono); font-size: 13px; color: var(--lime); margin-bottom: 8px; }
.flow__steps b { color: var(--p-ink); font-weight: 500; }

/* mechanisms */
.mech { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.mech__card { grid-column: span 2; border-radius: 18px; padding: clamp(20px, 2.4vw, 32px); border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(21,88,201,.12), rgba(255,255,255,.02) 40%); transition: transform .35s var(--ease-out), border-color .35s; }
.mech__card:nth-child(4), .mech__card:nth-child(5) { grid-column: span 3; }
.mech__card:hover { transform: translateY(-3px); border-color: rgba(212,255,36,.45); }
.mech__n { font-family: var(--font-mono); font-size: 13px; color: var(--lime); }
.mech__card h3 { font-size: 22px; line-height: 1.25; margin: 10px 0 12px; }
.mech__card p { font-size: 16px; margin: 0 0 10px; }
.mech__note { color: var(--p-muted) !important; font-size: 15px !important; border-left: 2px solid var(--lime); padding-left: 12px; }

/* proof */
.deep__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.deep__list li { font-size: 18px; line-height: 1.6; color: #d6d9e0; padding-left: 22px; position: relative; }
.deep__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.deep__list b { color: var(--p-ink); font-weight: 500; }
.deep__aside { border-radius: 18px; padding: clamp(20px, 2.6vw, 36px); background: var(--cobalt); }
.deep__aside .t-label { color: rgba(255,255,255,.8) !important; }
.deep__quote { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px) !important; line-height: 1.35 !important; color: #fff !important; margin: 8px 0 var(--s-6); }
.deep__stack { font-family: var(--font-mono); font-size: 14px !important; color: #fff !important; line-height: 1.7 !important; }
.deep__stack-label { margin-top: var(--s-5); }
.deep__close h2 { max-width: 20ch; }
.deep__foot { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.deep__foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; color: var(--p-muted); font-size: 15px; }
.deep__foot .link { color: var(--p-ink); }

@media (max-width: 1023px) {
  .deep__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deep__split { grid-template-columns: 1fr; }
  .flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mech { grid-template-columns: 1fr; } .mech__card, .mech__card:nth-child(4), .mech__card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 639px) {
  .deep__facts, .flow__steps { grid-template-columns: 1fr; }
  .deep__fails li { grid-template-columns: 1fr; gap: 4px; }
  .flow__console { font-size: 12px; }
}
