/*
 * Shared stylesheet for the TurboEmbed technology pages.
 * Derived from the parser-suite and ProtoMolt page design system so the
 * TurboEmbed pages read as siblings within the Pipestream AI site.
 */

:root {
    --bg: #f7f8f6;
    --surface: #ffffff;
    --surface-soft: #f0f3f4;
    --ink: #17202a;
    --ink-soft: #4d5965;
    --ink-faint: #707b86;
    --rule: #dce1e3;
    --accent: #315d72;
    --accent-dark: #244858;
    --accent-soft: #e8f0f3;
    --code: #172027;
    --code-ink: #e8eef1;
    --merged: #4a7c59;
    --open: #9a6a3a;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); }

.skip-link {
    position: absolute; top: -60px; left: 16px; z-index: 100;
    padding: 8px 12px; color: #fff; background: var(--accent-dark); border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 780px; }

/* Header */
header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(247, 248, 246, 0.96);
    border-bottom: 1px solid var(--rule);
    backdrop-filter: blur(10px);
}
.header-inner {
    min-height: 64px; display: flex; align-items: center;
    justify-content: space-between; gap: 28px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--ink); font-family: var(--serif); font-size: 1.08rem;
    font-weight: 600; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--ink-faint); font-weight: 400; }
nav { display: flex; align-items: center; gap: 24px; font-size: 0.89rem; }
nav a { color: var(--ink-soft); }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--rule); }
.eyebrow {
    margin-bottom: 18px; color: var(--accent); font-family: var(--mono);
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 600; }
h1 {
    max-width: 900px; font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.04; letter-spacing: -0.04em;
}
.hero-copy {
    max-width: 760px; margin-top: 26px; color: var(--ink-soft);
    font-size: 1.18rem; line-height: 1.7;
}
.actions {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 14px 22px; margin-top: 30px;
}
.button {
    display: inline-flex; align-items: center; min-height: 42px; padding: 9px 17px;
    color: #fff; background: var(--accent); border: 1px solid var(--accent);
    border-radius: 5px; font-size: 0.91rem; font-weight: 650;
}
.button:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.text-link { font-size: 0.91rem; font-weight: 600; }
.facts {
    display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px;
    color: var(--ink-faint); font-size: 0.84rem;
}
.facts span:not(:last-child)::after {
    content: ""; display: inline-block; width: 3px; height: 3px;
    margin-left: 20px; vertical-align: 3px; background: #aeb6bc; border-radius: 50%;
}

/* Sections */
section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section-heading {
    display: grid; grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 56px; align-items: start; margin-bottom: 42px;
}
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; }
.section-heading p, .lede { color: var(--ink-soft); font-size: 1.05rem; }
.prose { max-width: 760px; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

/* Terminal / code */
.terminal {
    overflow-x: auto; padding: 21px 24px; color: var(--code-ink); background: var(--code);
    border: 1px solid #0d1419; border-radius: 7px; font-family: var(--mono);
    font-size: 0.86rem; line-height: 1.7; box-shadow: 0 10px 30px rgba(25, 35, 42, 0.08);
}
.terminal .comment { color: #8da0aa; }
pre.code {
    overflow-x: auto; padding: 20px 22px; color: var(--code-ink); background: var(--code);
    border-radius: 7px; font-family: var(--mono); font-size: 0.8rem; line-height: 1.65;
}
.note { margin-top: 18px; color: var(--ink-faint); font-size: 0.88rem; }
.quickstart, .capabilities { background: var(--surface); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.pillar { padding: 28px 30px 8px 0; }
.pillar + .pillar { padding-left: 30px; border-left: 1px solid var(--rule); }
.number { display: block; margin-bottom: 22px; color: var(--ink-faint); font-family: var(--mono); font-size: 0.75rem; }
h3 { margin-bottom: 10px; font-size: 1.2rem; line-height: 1.25; }
.pillar p, .capability p { color: var(--ink-soft); font-size: 0.94rem; }

/* Proof cards */
.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
.proof {
    display: block; padding: 24px 26px; color: var(--ink); background: var(--surface);
    border: 1px solid var(--rule); border-radius: 7px;
}
.proof:hover { border-color: #bdc8cd; text-decoration: none; }
.proof-label {
    display: block; margin-bottom: 12px; color: var(--accent); font-family: var(--mono);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.proof strong { display: block; margin-bottom: 7px; font-family: var(--serif); font-size: 1.16rem; font-weight: 600; }
.proof p { color: var(--ink-soft); font-size: 0.9rem; }

/* Capability list */
.capability-list { border-top: 1px solid var(--rule); }
.capability {
    display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 48px; padding: 25px 0; border-bottom: 1px solid var(--rule);
}
.capability h3 { font-family: var(--sans); font-size: 1rem; font-weight: 680; }
.capability a { color: var(--ink); }

/* Service comparison matrix (suite index) */
.matrix-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; }
table.matrix { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--surface); }
table.matrix th, table.matrix td {
    padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--rule);
    vertical-align: top; color: var(--ink-soft);
}
table.matrix thead th {
    color: var(--ink); font-weight: 650; font-family: var(--sans);
    background: var(--surface-soft); white-space: nowrap;
}
table.matrix tbody tr:last-child td { border-bottom: none; }
table.matrix td:first-child, table.matrix th:first-child { color: var(--ink); }
table.matrix .svc { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
table.matrix .svc a { color: var(--ink); }

/* Spec / config tables */
table.spec { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 4px; }
table.spec th, table.spec td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
table.spec th { color: var(--ink); font-weight: 600; }
table.spec td:first-child { font-family: var(--mono); font-size: 0.82rem; color: var(--ink); white-space: nowrap; }
table.spec .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Streaming-event list (the response oneof) */
.events { list-style: none; border-top: 1px solid var(--rule); }
.events li {
    display: grid; grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr);
    gap: 28px; padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.events .ev { font-family: var(--mono); font-size: 0.84rem; color: var(--accent); }
.events .desc { color: var(--ink-soft); font-size: 0.93rem; }

/* Badges */
.badge {
    display: inline-block; padding: 2px 9px; border-radius: 999px;
    font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.03em; border: 1px solid var(--rule); color: var(--ink-soft);
    background: var(--surface); white-space: nowrap;
}
.badge.rust { color: #9a4a2f; border-color: #e6ccc0; background: #faf1ec; }
.badge.cpp { color: #2f5a7a; border-color: #c6d6e2; background: #eef4f9; }
.badge.java { color: #7a5a1f; border-color: #e2d6bc; background: #faf5ea; }
.badge.gpu { color: var(--merged); border-color: #cfe0d4; background: #f3f8f4; }

/* Topology diagram (coordinator + collectors) */
.topology { display: grid; gap: 14px; }
.topo-node {
    padding: 16px 20px; background: var(--surface); border: 1px solid var(--rule);
    border-radius: 8px;
}
.topo-node.coord { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.topo-node strong { display: block; font-family: var(--mono); font-size: 0.9rem; color: var(--ink); margin-bottom: 3px; }
.topo-node span { color: var(--ink-soft); font-size: 0.88rem; }
.topo-collectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* Video placeholder */
.video-frame {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 320px; padding: 40px; text-align: center;
    background: #10151a; border: 1px solid #cbd2d5; border-radius: 8px;
    color: #c5cdd2; box-shadow: 0 18px 46px rgba(34, 45, 52, 0.12);
}
.video-frame .vp-eyebrow {
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: #7f9099; margin-bottom: 12px;
}
.video-frame strong { font-family: var(--serif); font-size: 1.3rem; color: #e8eef1; font-weight: 600; }
.video-frame p { margin-top: 8px; font-size: 0.9rem; color: #9fb0b9; max-width: 460px; }
.video-frame.has-video { min-height: 0; padding: 14px; align-items: stretch; }
.video-frame.has-video .vp-eyebrow { align-self: flex-start; }
.video-frame video { width: 100%; height: auto; display: block; border-radius: 5px; }

/* Verification */
.verification { background: var(--accent-soft); }
.verification-inner {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 72px; align-items: center;
}
.verification p { max-width: 680px; margin-top: 18px; color: var(--ink-soft); font-size: 1.04rem; }
.verification .actions { margin-top: 0; justify-content: flex-end; }

/* Footer */
footer { padding: 42px 0 54px; color: var(--ink-faint); font-size: 0.86rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 860px) {
    nav a:not(:last-child) { display: none; }
    .section-heading, .surfaces, .verification-inner { grid-template-columns: 1fr; gap: 22px; }
    .pillars { grid-template-columns: 1fr; }
    .pillar { padding: 24px 0; }
    .pillar + .pillar { padding-left: 0; border-top: 1px solid var(--rule); border-left: none; }
    .capability { grid-template-columns: 1fr; gap: 6px; }
    .events li { grid-template-columns: 1fr; gap: 4px; }
    .verification .actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .wrap { width: min(100% - 32px, 1080px); }
    .hero { padding: 58px 0 52px; }
    section { padding: 56px 0; }
    h1 { font-size: 2.5rem; }
    .proofs { grid-template-columns: 1fr; }
    .facts span::after { display: none !important; }
}

/* ------------------------------------------------------------------ */
/* TurboEmbed additions                                                */
/* ------------------------------------------------------------------ */

:root {
    --te-cpu: #4d5965;
    --te-cuda: #4a7c59;
    --te-lz: #2f5a7a;
    --te-npu: #5b5b9a;
    --te-metal: #7a6a5a;
    --te-hailo: #9a4a2f;
    --te-gold: #9a6a3a;
}

/* Breadcrumbs */
.crumbs {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px;
    color: var(--ink-faint); font-family: var(--mono); font-size: 0.76rem;
}
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-hidden] { color: #aeb6bc; }
.crumbs [aria-current] { color: var(--accent); font-weight: 700; }

/* Section sub-navigation (Overview, Backends, Analysis, Serving) */
.subnav { background: var(--surface); border-bottom: 1px solid var(--rule); padding: 0; }
.subnav-inner { display: flex; flex-wrap: wrap; gap: 4px 30px; align-items: stretch; }
.subnav a {
    display: inline-flex; align-items: center; gap: 8px; padding: 15px 0 13px;
    color: var(--ink-soft); font-size: 0.9rem; font-weight: 600;
    border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--rule); }
.subnav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.subnav .num { color: var(--ink-faint); font-family: var(--mono); font-size: 0.7rem; font-weight: 500; }

/* Technology diagrams */
.diagram {
    position: relative; margin-top: 8px; padding: 22px 22px 14px;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
    box-shadow: 0 18px 46px rgba(34, 45, 52, 0.07);
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram-caption {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
    align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule);
    color: var(--ink-faint); font-size: 0.86rem;
}
.motion-toggle {
    padding: 5px 11px; color: var(--ink-soft); background: var(--surface-soft);
    border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em;
}
.motion-toggle:hover { color: var(--ink); border-color: #bdc8cd; }
.motion-toggle[hidden] { display: none; }

/* SVG vocabulary */
.d-box { fill: #fff; stroke: var(--rule); stroke-width: 1.2; }
.d-box.soft { fill: var(--surface-soft); }
.d-box.accent { fill: var(--accent-soft); stroke: #b8ccd6; }
.d-box.core { fill: #f4f8fa; stroke: var(--accent); stroke-width: 1.6; }
.d-title { font-family: var(--sans); font-size: 14px; font-weight: 700; fill: var(--ink); }
.d-label { font-family: var(--sans); font-size: 12px; fill: var(--ink-soft); }
.d-small { font-family: var(--sans); font-size: 10.5px; fill: var(--ink-faint); }
.d-mono { font-family: var(--mono); font-size: 11px; fill: var(--ink-soft); }
.d-mono.strong { fill: var(--ink); font-weight: 700; }
.d-eyebrow { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; fill: var(--accent); text-transform: uppercase; }
.d-rail { fill: none; stroke: #cfd7da; stroke-width: 1.6; }
.d-flow { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 7 93; }
.d-flow.alt { stroke: var(--te-gold); }
.d-flow.green { stroke: var(--te-cuda); }
.d-chip { fill: var(--accent-soft); stroke: #b8ccd6; stroke-width: 1; }
.d-chip-text { font-family: var(--mono); font-size: 10.5px; fill: var(--accent-dark); }
.d-bar { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 100%; }
.d-dot { fill: var(--accent); }
.d-check { fill: none; stroke: var(--te-cuda); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Animation keyframes (all disabled under prefers-reduced-motion) */
@keyframes te-flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes te-blink { 0%, 100% { opacity: 0.18; } 8%, 22% { opacity: 1; } 32% { opacity: 0.18; } }
@keyframes te-cycle6 { 0%, 17.5% { opacity: 1; } 19%, 100% { opacity: 0; } }
@keyframes te-cycle7 { 0%, 14.5% { opacity: 1; } 16%, 100% { opacity: 0; } }
@keyframes te-rise { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes te-reveal { 0%, 6% { opacity: 0; transform: translateY(6px); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes te-draw { 0%, 20% { stroke-dashoffset: 100; } 45%, 88% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 100; } }
@keyframes te-grow { 0%, 45% { transform: scaleX(0); } 62%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes te-glow { 0%, 100% { opacity: 0; } 10%, 30% { opacity: 1; } 40% { opacity: 0; } }

.anim .d-flow { animation: te-flow 2.6s linear infinite; }
.anim .d-flow.slow { animation-duration: 3.4s; }
.anim .blink { animation: te-blink 6s ease-in-out infinite; }
.anim .cycle6 { opacity: 0; animation: te-cycle6 9s linear infinite; }
.anim .cycle7 { opacity: 0; animation: te-cycle7 10.5s linear infinite; }
.anim .d-bar.rise { animation: te-rise 2.8s ease-in-out infinite; }
.anim .reveal { opacity: 0; animation: te-reveal 10s ease-out infinite; transform-box: fill-box; }
.anim .draw { stroke-dasharray: 100; animation: te-draw 10s ease-in-out infinite; }
.anim .grow { transform-box: fill-box; transform-origin: 0 50%; animation: te-grow 10s ease-out infinite; }
.anim .glow { opacity: 0; animation: te-glow 9s ease-in-out infinite; }
.anim.paused *, .anim.paused { animation-play-state: paused !important; }

.d-0 { animation-delay: 0s !important; }
.d-1 { animation-delay: 1.5s !important; }
.d-2 { animation-delay: 3s !important; }
.d-3 { animation-delay: 4.5s !important; }
.d-4 { animation-delay: 6s !important; }
.d-5 { animation-delay: 7.5s !important; }
.d-6 { animation-delay: 9s !important; }
.s-1 { animation-delay: 0.3s !important; }
.s-2 { animation-delay: 0.6s !important; }
.s-3 { animation-delay: 0.9s !important; }
.s-4 { animation-delay: 1.2s !important; }
.s-5 { animation-delay: 1.5s !important; }
.s-6 { animation-delay: 1.8s !important; }
.s-7 { animation-delay: 2.1s !important; }
.s-8 { animation-delay: 2.4s !important; }
.s-9 { animation-delay: 2.7s !important; }
.s-10 { animation-delay: 3s !important; }
.s-11 { animation-delay: 3.3s !important; }

@media (prefers-reduced-motion: reduce) {
    .anim *, .anim { animation: none !important; }
    .anim .reveal, .anim .glow { opacity: 1; transform: none; }
    .anim .cycle6, .anim .cycle7 { opacity: 0; }
    .anim .cycle6.first, .anim .cycle7.first { opacity: 1; }
    .anim .draw { stroke-dashoffset: 0; }
    .anim .grow { transform: none; }
    .anim .d-flow { stroke-dasharray: none; opacity: 0.35; }
    .motion-toggle { display: none; }
}

/* Screenshots */
.shot {
    overflow: hidden; background: var(--surface); border: 1px solid #cbd2d5;
    border-radius: 9px; box-shadow: 0 18px 46px rgba(34, 45, 52, 0.11);
}
.shot-bar {
    display: flex; align-items: center; gap: 7px; padding: 10px 14px;
    background: var(--surface-soft); border-bottom: 1px solid var(--rule);
    color: var(--ink-faint); font-family: var(--mono); font-size: 0.72rem;
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3d9dc; display: inline-block; }
.shot-bar b { margin-left: 8px; font-weight: 500; }
.shot a.shot-img { display: block; }
.shot img { display: block; width: 100%; height: auto; }
.shot.tall a.shot-img { max-height: 760px; overflow: hidden; position: relative; }
.shot.tall a.shot-img::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
    background: linear-gradient(rgba(255,255,255,0), #fff);
}
.shot figcaption {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
    padding: 14px 18px; color: var(--ink-soft); font-size: 0.87rem;
    border-top: 1px solid var(--rule); background: #fbfcfb;
}
.shot figcaption a { white-space: nowrap; font-weight: 600; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.shot-pair .shot img { max-height: none; }
.shot + .shot, .shot + .shot-pair, .shot-pair + .shot { margin-top: 28px; }

/* Workbench gallery (tabs) */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gallery-tabs button {
    padding: 7px 14px; color: var(--ink-soft); background: var(--surface);
    border: 1px solid var(--rule); border-radius: 6px; cursor: pointer;
    font-family: var(--sans); font-size: 0.86rem; font-weight: 600;
}
.gallery-tabs button:hover { color: var(--ink); border-color: #bdc8cd; }
.gallery-tabs button[aria-selected="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.gallery.js .shot[hidden] { display: none; }
.gallery .shot + .shot { margin-top: 28px; }
.gallery.js .shot + .shot { margin-top: 0; }

/* Explore cards */
.proofs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof .more { display: block; margin-top: 14px; color: var(--accent); font-size: 0.86rem; font-weight: 650; }
.pillars.four { grid-template-columns: repeat(4, 1fr); }

/* Backend table extras */
.dot-key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
table.matrix code, table.spec code, .prose code, .capability code, .pillar code, .proof code {
    font-size: 0.86em; padding: 1px 4px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-dark);
}
table.spec td:first-child code { background: none; padding: 0; color: inherit; }
.terminal code { background: none; padding: 0; color: inherit; }
.prose ul { margin: 0 0 16px 1.2em; color: var(--ink-soft); }
.prose li { margin: 6px 0; }
.prose h3 { margin-top: 30px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* Sibling footer navigation */
.next-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

@media (max-width: 860px) {
    .proofs.three, .next-pages, .shot-pair, .split { grid-template-columns: 1fr; }
    .pillars.four { grid-template-columns: 1fr; }
    .subnav-inner { gap: 4px 20px; }
    .shot figcaption { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 860px) {
    .subnav a, .subnav a:not(:last-child) { display: inline-flex; }
}
