/* The page: a light, quiet palette around dark stages (stage.css). One accent, near-black ink, soft grey bands. */
:root {
  --bg: #f4f5f7; --band: #eceef2; --surface: #ffffff; --surface-2: #f7f8fa;
  --ink: #0f1419; --ink-2: #39424e; --ink-3: #5f6975; --line: #e1e4e9; --line-2: #cfd5dc;
  --accent: #2456e6; --accent-2: #1c45bd; --accent-soft: #e9effd;
  --ok: #138a4a; --warn: #a86400; --bad: #c43a3a;
  --radius: 16px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -18px rgba(16, 24, 40, .22);
  color-scheme: light;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
code, kbd { font-family: var(--mono); font-size: .86em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; }
kbd { background: var(--surface); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 .4em; color: var(--ink); }
h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.04; font-weight: 680; letter-spacing: -.035em; max-width: 20ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); line-height: 1.1; font-weight: 650; letter-spacing: -.03em; max-width: 24ch; }
h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 620; letter-spacing: -.01em; }
body { font-feature-settings: "cv11", "ss03"; }
p { margin: 0 0 .8em; }
sup a { font-size: .75em; padding: 0 1px; }
.muted { color: var(--ink-3); }
.fineprint { color: var(--ink-3); font-size: .82rem; margin: 0; }
.fineprint.wide { max-width: 980px; margin-top: 16px; }
button { font: inherit; color: inherit; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font: 600 .98rem var(--sans); letter-spacing: -.01em; }

/* ----- header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 26px; padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(244, 245, 247, .78); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(15, 20, 25, .06); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 680; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; font-size: .82rem; }
.top nav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.top nav a { color: var(--ink-3); font-size: .9rem; white-space: nowrap; } .top nav a:hover { color: var(--ink); text-decoration: none; }
.gh { margin-left: auto; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .88rem; font-weight: 600; }
.gh:hover { text-decoration: none; background: #262d36; }
.top nav { gap: 16px; }
@media (max-width: 1120px) { .top nav { display: none; } }

/* ----- sections */
section { padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 40px); max-width: 1280px; margin: 0 auto; }
section.band { max-width: none; background: var(--band); }
section.band > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 1200px; margin: 0 auto 32px; }
.section-head > p:not(.eyebrow) { color: var(--ink-3); font-size: 1.08rem; max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }

/* ----- buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 620; font-size: .96rem; text-decoration: none !important; transition: background .15s, border-color .15s, transform .1s; }
.button:hover { border-color: #b4bcc6; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-2); }
.button.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.button.ghost:hover { background: rgba(15, 20, 25, .05); }
.button.light { background: #fff; color: var(--ink); border-color: #fff; }
.button:disabled { opacity: .45; cursor: not-allowed; }

/* ----- hero and the demo slot */
.hero { padding-top: clamp(36px, 6vw, 84px); padding-bottom: 20px; text-align: center; display: grid; justify-items: center; }
.hero h1 { max-width: 22ch; }
.lede { font-size: clamp(1.04rem, 1.6vw, 1.22rem); color: var(--ink-3); max-width: 700px; }
.lede b, .section-head > p:not(.eyebrow) b { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.slot { padding-top: 12px; max-width: 1360px; }
.slot-note { max-width: 860px; margin: 16px auto 0; text-align: center; color: var(--ink-3); font-size: .88rem; }
.slot-note b { color: var(--ink-2); font-weight: 600; }

/* ----- highlights */
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 20px; box-shadow: var(--shadow); }
.hl > b { display: block; font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.hl h3 { margin-bottom: .4em; }
.hl p { color: var(--ink-3); font-size: .94rem; margin: 0; }
.tour { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.video { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; background: #000; }
.tour-side { padding: 8px 10px; }
.tour-side p { color: var(--ink-3); font-size: .92rem; }
.tour-side .note { font-size: .84rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.chapters { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chapters button { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; cursor: pointer; font-size: .82rem; color: var(--ink-2); }
.chapters button:hover { border-color: var(--line-2); color: var(--ink); }
.chapters button span { font-family: var(--mono); color: var(--accent); margin-right: 6px; }
@media (max-width: 960px) { .highlights { grid-template-columns: 1fr; } .tour { grid-template-columns: 1fr; } }

/* ----- closer look */
.chips { max-width: 1200px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) { .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .chips button { flex: none; } }
.chips button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; font-weight: 600; font-size: .92rem; }
.chips button small { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button[aria-pressed="true"] small { color: rgba(255, 255, 255, .65); }
.closer-slot { max-width: 1200px; margin: 0 auto; }
.split-caption { max-width: 860px; margin: 14px auto 0; color: var(--ink-3); font-size: .92rem; text-align: center; min-height: 3em; }
.split-caption b { color: var(--ink); }
.poster.small .poster-body { gap: 8px; }

/* ----- how it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; overflow-x: auto; box-shadow: var(--shadow); }
.diagram svg { display: block; width: 100%; min-width: 820px; height: auto; }
.diagram .node rect { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.2; rx: 12; transition: stroke .15s, fill .15s; }
.diagram .node { cursor: pointer; }
.diagram .node:hover rect, .diagram .node.on rect { stroke: var(--accent); fill: var(--accent-soft); }
.diagram .node text { fill: var(--ink); font: 650 15px var(--sans); }
.diagram .node text.sub { fill: var(--ink-3); font: 12px var(--mono); }
.diagram .zone { fill: none; stroke: var(--line-2); stroke-dasharray: 4 5; }
.diagram .zone-label { fill: var(--ink-3); font: 600 12px var(--mono); letter-spacing: .1em; }
.diagram .edge { fill: none; stroke: #9aa5b1; stroke-width: 1.6; }
.diagram .edge.flow { stroke-dasharray: 3 7; }
.diagram.animate .edge.flow { animation: flow 1.2s linear infinite; }
.diagram .edge.studio-write { stroke: var(--accent); stroke-width: 2.2; }
.diagram .edge.motor { stroke: #c98a1e; stroke-width: 2.2; }
.diagram .edge.operator { stroke: var(--ok); stroke-width: 2.2; }
.diagram .edge.never { stroke: var(--bad); stroke-dasharray: 5 5; opacity: .8; }
.diagram .elabel { fill: var(--ink-3); font: 13px var(--mono); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.diagram .elabel.studio { fill: var(--accent); } .diagram .elabel.never { fill: var(--bad); }
.diagram .arrow-flow { fill: #9aa5b1; } .diagram .arrow-motor { fill: #c98a1e; } .diagram .arrow-studio-write { fill: var(--accent); } .diagram .arrow-operator { fill: var(--ok); } .diagram .arrow-never { fill: var(--bad); }
@keyframes flow { to { stroke-dashoffset: -20; } }
#pipeline-detail h3 { color: var(--accent); font-size: 1.15rem; }
#pipeline-detail p { color: var(--ink-2); font-size: .94rem; }
#pipeline-detail dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: .86rem; }
#pipeline-detail dt { color: var(--ink-3); } #pipeline-detail dd { margin: 0; overflow-wrap: anywhere; }
.who-sends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
ul.yes, ul.no, ul.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; color: var(--ink-2); }
ul.yes li, ul.no li, ul.people li { position: relative; padding-left: 24px; }
ul.yes li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
ul.no li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }
ul.people li::before { content: "●"; position: absolute; left: 2px; color: #c98a1e; font-size: .8em; top: .15em; }
@media (max-width: 1020px) { .how-grid { grid-template-columns: 1fr; } .who-sends { grid-template-columns: 1fr; } }
.scroll-hint { display: none; margin-top: 6px; }
@media (max-width: 860px) { .scroll-hint { display: block; } }

/* ----- robot day: light panels around a dark Studio screen */
.day { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.steps button { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 46px; position: relative; cursor: pointer; }
.steps button::before { counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 11px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: var(--ink-3); font-size: .78rem; font-weight: 700; }
.steps button b { display: block; font-size: .93rem; } .steps button span { color: var(--ink-3); font-size: .8rem; }
.steps button[aria-current="step"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.steps button[aria-current="step"]::before, .steps button.done::before { background: var(--accent); color: #fff; }
.day-main { display: grid; gap: 12px; min-width: 0; }
.day-view { position: relative; background: #fbfcfd; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 16 / 10; overflow: hidden; box-shadow: var(--shadow); }
.day-view canvas { width: 100%; height: 100%; display: block; }
.day-view .tag { position: absolute; left: 10px; top: 10px; font: 600 .74rem var(--sans); background: rgba(255, 255, 255, .9); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; color: var(--ink-2); }
.term { background: #f6f8fa; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: .82rem/1.55 var(--mono); color: var(--ink); overflow-x: auto; white-space: pre; margin: 0; }
.term .c { color: var(--ink-3); } .term .ok { color: #17824a; } .term .bad { color: #c23434; } .term .p { color: #0b7a86; }
.step-text h3 { font-size: 1.15rem; }
.step-text p { color: var(--ink-2); font-size: .95rem; }
.day .ready { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.day .ready li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: .88rem; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.day .ready li .icon { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; margin-top: 1px; }
.day .ready li.pass .icon { background: var(--ok); } .day .ready li.warn .icon { background: #c98a1e; } .day .ready li.block .icon { background: var(--bad); }
.day .ready li.idle .icon { background: var(--line-2); color: var(--ink-3); }
.day .ready li small { display: block; color: var(--ink-3); font-family: var(--mono); font-size: .75rem; overflow-wrap: anywhere; }
.ready-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.ready-head h3 { margin: 0; }
.verdict { display: block; font-size: .88rem; font-weight: 650; margin-bottom: 4px; }
.verdict.pass { color: var(--ok); } .verdict.warn { color: var(--warn); } .verdict.block { color: var(--bad); } .verdict.idle { color: var(--ink-3); }
.faults { display: grid; gap: 8px; margin-top: 12px; }
.faults h3 { margin-top: 14px; }
.switch { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; font-size: .88rem; }
.switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; margin: 2px 0 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--bad); } .switch input:checked::after { transform: translateX(14px); }
.switch small { display: block; color: var(--ink-3); font-size: .78rem; }
.keys { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.keycap { font: 700 1.1rem var(--mono); width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--line-2); border-bottom-width: 4px; background: var(--surface); cursor: pointer; color: var(--ink); }
.keycap:disabled { opacity: .35; cursor: not-allowed; }
.keycap.armed { border-color: var(--ok); color: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(19, 138, 74, .35); } 50% { box-shadow: 0 0 0 8px rgba(19, 138, 74, 0); } }
.alert { background: #fdecec; border: 1px solid #f1c2c2; color: #8c2323; border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 10px 0 0; }
.day .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.day .button { height: 38px; padding: 0 16px; font-size: .9rem; }
.day .button.go { background: var(--ok); border-color: var(--ok); color: #fff; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: .9rem; }
.link:hover { text-decoration: underline; }
@media (max-width: 1180px) { .day { grid-template-columns: 1fr; } .steps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }

/* ----- findings */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.finding { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.finding .shot { position: relative; display: block; aspect-ratio: 16 / 9; background: #eef1f4; overflow: hidden; }
.finding .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.finding .shot:hover img { transform: scale(1.03); }
.finding .shot .play { position: absolute; right: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .8rem; font-weight: 650; }
.finding .shot.blank { display: grid; place-items: center; background: linear-gradient(135deg, #e9eef8, #f4f5f7); }
.finding .shot.blank > span:not(.play) { font: 600 .78rem var(--mono); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.finding .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.finding .kind { font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.finding .kind.robot { color: #a86400; } .finding .kind.studio { color: var(--accent); } .finding .kind.policy { color: #7b3fb0; }
.finding .num { font-size: 2.2rem; line-height: 1; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.finding .num small { font-size: .95rem; font-weight: 550; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.finding h3 { margin: 0; font-size: 1.08rem; }
.finding p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.finding details { font-size: .86rem; color: var(--ink-3); }
.finding details summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.finding details p { color: var(--ink-3); font-size: .86rem; margin-top: 6px; }
.finding .watch { margin-top: auto; align-self: flex-start; font-weight: 620; font-size: .92rem; }
.table-card { margin-top: 20px; }
.table-wrap { overflow-x: auto; }
table.outcomes { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.outcomes th, .outcomes td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.outcomes th:first-child, .outcomes td:first-child { text-align: left; }
.outcomes thead th { color: var(--ink-3); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.outcomes thead th i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.outcomes td.zero { color: #b7bec7; }
.outcomes tfoot td { font-weight: 700; border-bottom: 0; }
.outcomes td.hotcell { color: var(--warn); font-weight: 650; } .outcomes td.badcell { color: var(--bad); font-weight: 650; }
.outcomes button.cell { font: inherit; color: inherit; background: none; border: 0; padding: 2px 6px; margin: -2px -6px; border-radius: 6px; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.outcomes button.cell:hover { background: var(--accent-soft); }

/* ----- faq */
.faq-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 500; font-size: 1.2em; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); font-size: .95rem; margin: 0 0 14px; }
.footnotes { margin: 0; padding: 18px 22px 18px 40px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; color: var(--ink-2); font-size: .88rem; }
.footnotes li:target { background: var(--accent-soft); border-radius: 6px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ----- the next step, a dark band */
.next-band { max-width: none; background: linear-gradient(180deg, var(--bg) 0%, #e9edf2 100%); text-align: center; display: grid; justify-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-band h2 { max-width: 24ch; }
.next-band p { color: var(--ink-3); max-width: 680px; }

/* ----- use */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 778; object-fit: cover; }
.gallery figcaption { padding: 12px 16px 16px; font-size: .86rem; color: var(--ink-3); }
.gallery figcaption b { color: var(--ink); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } }
.use-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.use-grid > * { min-width: 0; }
.use pre, #use pre { background: #f6f8fa; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .84rem; margin: 0 0 12px; }
#use pre code { background: none; border: 0; padding: 0; color: inherit; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; color: var(--ink-3); }
@media (max-width: 860px) { .use-grid { grid-template-columns: minmax(0, 1fr); } }

footer { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 40px) 44px; color: var(--ink-3); font-size: .85rem; max-width: 1280px; margin: 0 auto; }
.noscript { text-align: center; color: var(--warn); }

/* ----- lazily built sections keep their space so links land where they should */
#pipeline { min-height: 420px; } #day { min-height: 620px; } #findings-cards { min-height: 300px; }
@media (max-width: 1180px) { #day { min-height: 900px; } }

/* ----- the next-step page */
h1.wide { max-width: 26ch; font-size: clamp(2rem, 4.2vw, 3.3rem); }
.wide-notes { max-width: 1200px; margin: 0 auto; }
.trackers td.measure { color: var(--ink-3); text-align: left; white-space: normal; }
.local-h { max-width: 1200px; margin: 28px auto 12px; }
.ladder { list-style: none; max-width: 1200px; margin: 0 auto; padding: 0; display: grid; gap: 10px; }
.ladder li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.ladder .rung { display: grid; place-items: center; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 .9rem var(--mono); }
.ladder p { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
.ladder .status { padding: 4px 10px; border-radius: 999px; background: var(--band); color: var(--ink-3); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.ladder .status.done { background: #e3f4ea; color: var(--ok); } .ladder .status.active { background: var(--accent-soft); color: var(--accent); }
#local { border-top: 3px dashed #c98a1e; }
.trackers th:nth-child(2) { text-align: left; }

/* ----- every walk, one dot (atlas.js) */
.atlas { max-width: 1200px; margin: 0 auto; padding: 16px 18px 18px; }
.atlas-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.atlas-bar .chips { margin: 0; }
.atlas-bar .chips button { height: 32px; padding: 0 13px; font-size: .86rem; }
.atlas-plot { width: 100%; }
.atlas-plot svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.atlas-plot svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.atlas .grid { stroke: var(--line); stroke-width: 1; }
.atlas .grid.v { stroke-dasharray: 2 4; }
.atlas .tick { fill: var(--ink-3); font: 12px var(--mono); }
.atlas .axis { fill: var(--ink-3); font: 12.5px var(--sans); }
.atlas .rule { stroke: #b4bcc6; stroke-width: 1.2; stroke-dasharray: 6 4; }
.atlas .rule-label { fill: var(--ink-3); font: 12px var(--sans); }
.atlas .dot { stroke: #fff; stroke-width: 1; cursor: pointer; opacity: .85; }
.atlas .dot.ok { fill: #2fae6a; } .atlas .dot.warn { fill: #e2a03a; opacity: .95; } .atlas .dot.bad { fill: #d64545; opacity: 1; }
.atlas .focus-ring { fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.atlas-read { height: 98px; overflow: hidden; margin: 4px 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; }
.atlas-read p { margin: 0 0 2px; }
.atlas-read .watch { font-weight: 620; font-size: .9rem; }
.atlas-legend { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.atlas-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; }
.atlas-legend i:first-child { margin-left: 0; }
.atlas-legend i.ok { background: #2fae6a; } .atlas-legend i.warn { background: #e2a03a; } .atlas-legend i.bad { background: #d64545; }
.atlas-legend i.sq { border-radius: 1px; transform: rotate(45deg); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- small tools: the phone menu, an instruction above a tool, a copy button */
.menu { display: none; position: relative; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.menu nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); }
.menu nav a:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 1120px) { .menu { display: block; } .menu + .gh { margin-left: 8px; } }
.tool-hint { max-width: 860px; margin: 0 auto 12px; text-align: center; color: var(--ink-2); font-size: .95rem; }
.code { position: relative; }
.code .copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #e6edf3; font-size: .78rem; cursor: pointer; }
.code .copy:hover { background: rgba(255, 255, 255, .16); }
.faq details p b:first-child { color: var(--ink); }
@media (max-width: 480px) { .top { gap: 10px; padding-left: 14px; padding-right: 14px; } .gh { padding: 6px 11px; } .menu summary { padding: 6px 10px; } .brand { font-size: .95rem; } }

/* ----- the next-step page: the trace under the split view, the pending column */
.trace { max-width: 1200px; margin: 12px auto 0; padding: 12px 16px; }
.trace-title { margin: 0 0 6px; font-size: .86rem; color: var(--ink-3); }
.trace-title b { color: var(--ink); } .trace-title .hot { color: var(--bad); }
.trace svg { display: block; width: 100%; height: 120px; cursor: pointer; border-radius: 6px; }
.trace svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trace .lag { fill: none; stroke: #d0408a; stroke-width: 2; vector-effect: non-scaling-stroke; }
.trace .axis { stroke: var(--line-2); vector-effect: non-scaling-stroke; } .trace .grid { stroke: var(--line); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.trace .hit { fill: rgba(196, 58, 58, .22); }
.trace .cursor { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.trace text { fill: var(--ink-3); font: 11px var(--mono); }
.outcomes td.pending { text-align: left; white-space: normal; color: var(--ink-3); background: var(--surface-2); max-width: 260px; font-size: .86rem; vertical-align: middle; }

/* ----- phones: long lists of cards become swipeable rows */
@media (max-width: 700px) {
  .cards, .gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin-right: -16px; padding-right: 16px; }
  .cards > *, .gallery > * { scroll-snap-align: start; }
  #findings-cards { min-height: 0; }
}

/* ----- round 4: quieter labels, a shorter phone hero */
.finding .kind { font: 600 .82rem var(--sans); letter-spacing: 0; text-transform: none; }
.outcomes thead th { text-transform: none; letter-spacing: 0; font-size: .84rem; }
.finding.fixed .body { gap: 6px; }
.finding .fixed-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #e3f4ea; color: var(--ok); font-weight: 650; font-size: .85rem; }
h1.wide { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
@media (max-width: 700px) {
  .hero { padding-top: 24px; padding-bottom: 10px; }
  .hero h1 { font-size: 2.05rem; }
  .lede { font-size: 1rem; }
  .cta { margin-top: 6px; }
  .tool-hint { display: none; }
  .slot { padding-top: 4px; }
}
@media (max-width: 700px) { .atlas-read { height: 150px; } }

.section-status { margin: 14px auto; max-width: 860px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink-2); }
.section-status .button { margin-left: 8px; }

/* The research story: the existing Studio palette, with motion and evidence given room to breathe. */
.hero { padding-top: clamp(54px, 7.4vw, 106px); padding-bottom: 36px; }
.hero h1 { max-width: 23ch; font-size: clamp(2.65rem, 6.1vw, 4.85rem); font-weight: 620; line-height: 1.06; letter-spacing: -.055em; }
.hero h1 > span { color: #48617f; }
.hero .lede { max-width: 660px; margin-top: 12px; }
.hero-sub { color: var(--ink-3); font-size: .98rem; max-width: 640px; }
.hero-sub b { color: var(--ink-2); font-weight: 550; }
.hero-signal { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-sequence { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; align-items: center; margin-top: 32px; font: 500 .78rem var(--mono); color: #53647b; }
.hero-sequence span { padding: 5px 9px; border-radius: 6px; background: #e8ecf2; }
.hero-sequence i { font-style: normal; color: #8c9aaa; }
.hero-evidence { color: var(--ink-3); font-size: .73rem; margin: 10px 0 0; }
.showcase { padding-top: 34px; padding-bottom: clamp(44px, 6vw, 76px); }
.showcase-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 24px; }
.showcase-head h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.showcase-head > p { max-width: 460px; margin: 0; font-size: .96rem !important; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.showcase-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.showcase-shot { position: relative; display: block; aspect-ratio: 8 / 5; color: var(--ink); overflow: hidden; background: #e6edf4; }
.showcase-shot::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(12, 28, 48, .34)); pointer-events: none; }
.showcase-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.showcase-shot:hover img { transform: scale(1.025); }
.showcase-shot:focus-visible { outline-offset: -4px; }
.showcase-fallback { position: absolute; inset: 0; display: grid; align-content: center; text-align: center; font-size: 3rem; font-weight: 650; color: #91a4be; background: radial-gradient(ellipse at 70% 20%, #f4f7fc, #dbe5f2); }
.showcase-fallback > span { font-size: .9rem; font-weight: 500; color: #546c8b; }
.showcase-number { position: absolute; z-index: 1; left: 13px; top: 12px; font: 600 .72rem var(--mono); color: #2a3d54; background: rgba(255,255,255,.85); padding: 4px 7px; border-radius: 6px; }
.showcase-play { position: absolute; z-index: 1; bottom: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 13px; border: 1px solid rgba(255,255,255,.7); border-radius: 10px; background: rgba(255,255,255,.91); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .84rem; font-weight: 600; }
.showcase-play small { margin-left: auto; font: 500 .75rem var(--mono); color: var(--ink-3); }
.showcase-copy { padding: 17px 18px 15px; }
.showcase-tag { font-size: .65rem; text-transform: uppercase; letter-spacing: .045em; color: #347453; margin: 0 0 5px; font-weight: 650; }
.showcase-card h3 { font-size: 1.13rem; font-weight: 620; }
.showcase-metrics { display: grid; grid-template-columns: 1.2fr 1.25fr 1fr; gap: 6px; margin: 18px 0 16px; }
.showcase-metrics dt { color: var(--ink-3); font-size: .64rem; }
.showcase-metrics dd { margin: 3px 0 0; font: 600 1.09rem var(--mono); color: var(--ink-2); }
.showcase-metrics dd small { font-size: .72rem; color: var(--ink-3); font-weight: 450; }
.showcase-inspect { display: flex; justify-content: space-between; font-size: .82rem; border-top: 1px solid var(--line); padding-top: 12px; }
.showcase-context { display: flex; gap: 24px; justify-content: space-between; align-items: start; margin-top: 18px; color: var(--ink-3); font-size: .78rem; }
.showcase-context p { max-width: 760px; margin: 0; }
.showcase-context > a { flex: none; font-size: .82rem; }
.evidence-label { font: 600 .64rem var(--mono); text-transform: uppercase; color: #53647b; border: 1px solid #c8d4e3; border-radius: 4px; padding: 2px 5px; margin-right: 5px; white-space: nowrap; }
.showcase-criteria { font-size: .78rem; color: var(--ink-3); margin-top: 12px; }
.showcase-criteria summary { cursor: pointer; width: fit-content; color: var(--ink-2); padding: 4px 0; }
.showcase-criteria p { max-width: 900px; margin-top: 8px; }
.learning { padding-top: clamp(45px, 6vw, 84px); }
.learning .section-head { max-width: 1200px; }
.learning .section-head > p:not(.eyebrow) { max-width: 780px; }
.lfh-explainer { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.lfh-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding: 8px; gap: 4px; }
.lfh-steps button { border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; text-align: left; padding: 12px 10px; font-size: .78rem; font-weight: 550; }
.lfh-steps button span { display: block; color: #8a9aad; font: 500 .7rem var(--mono); margin-bottom: 4px; }
.lfh-steps button[aria-pressed=true] { color: var(--accent); background: #edf3ff; }
.lfh-steps button[aria-pressed=true] span { color: var(--accent); }
.lfh-steps button:hover { background: #f0f3f8; }
.lfh-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; }
.lfh-picture { min-width: 0; padding: 18px 18px 20px; background: linear-gradient(160deg,#fbfcff,#f3f6fa); }
.lfh-proof { display: flex; justify-content: space-between; gap: 12px; padding: 0 4px; font: .65rem var(--mono); color: #748298; }
.lfh-proof span:first-child { color: #536a8d; }
.lfh-picture svg { display: block; width: 100%; height: auto; margin: 8px 0 3px; }
.lfh-picture svg text { font: 13px var(--sans); }
.lfh-picture svg .lfh-svg-kicker { font: 600 12px var(--mono); fill: #526781; letter-spacing: .07em; }
.lfh-picture svg .lfh-svg-note { font: 12px var(--sans); fill: #64768d; }
.lfh-picture svg .lfh-right { text-anchor: end; }
.lfh-obstacle { fill: #c7d1dd; stroke: #a4b4c6; stroke-width: 1; }
.lfh-map rect { fill: #dce2e9; stroke: #c2cdda; }
.lfh-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 6px 0; }
.lfh-controls > label { display: flex; flex: 1 1 150px; align-items: center; gap: 9px; font-size: .73rem; color: #53647b; }
.lfh-controls input { min-width: 60px; width: 100%; accent-color: var(--accent); cursor: pointer; }
.lfh-controls > div { display: flex; gap: 3px; }
.lfh-controls button { min-height: 36px; padding: 0 10px; font-size: .73rem; background: white; border: 1px solid #d5dfea; border-radius: 7px; cursor: pointer; }
.lfh-controls button[aria-pressed=true] { border-color: #6e96ed; background: #eaf1ff; color: #2456e6; }
.lfh-controls button:disabled { opacity: .45; cursor: default; }
.lfh-detail { padding: 27px 26px; border-left: 1px solid var(--line); align-self: stretch; display: flex; flex-direction: column; }
.lfh-phase { font: .65rem var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lfh-detail h3 { font-size: 1.35rem; line-height: 1.22; font-weight: 600; letter-spacing: -.035em; }
.lfh-detail > p { font-size: .87rem; color: var(--ink-3); line-height: 1.65; margin-bottom: 20px; }
.lfh-key { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: #60738c; font: .68rem/1.8 var(--mono); }
.lfh-detail .button { margin-top: 16px; align-self: start; font-size: .8rem; padding: 0 14px; height: 38px; }
.lfh-caveat { margin: 0; padding: 13px 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .74rem; background: #fafbfd; }
.lfh-context { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 26px; }
.lfh-context h3 { font-size: .96rem; }
.lfh-context p { font-size: .84rem; color: var(--ink-3); }
.lfh-sources { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 12px; }
@media (max-width: 920px) { .lfh-workspace { grid-template-columns: minmax(0, 1fr) 265px; } .lfh-detail { padding: 22px 18px; } .showcase-metrics { grid-template-columns: 1fr 1fr; } .showcase-metrics > div:last-child { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; } }
@media (max-width: 700px) {
  .hero { padding-top: 42px; } .hero h1 { font-size: clamp(2.4rem, 8.4vw, 3.6rem); }
  .hero-sequence { gap: 5px; font-size: .61rem; margin-top: 25px; } .hero-sequence span { padding: 4px 5px; }
  .hero-evidence { font-size: .64rem; max-width: 280px; }
  .showcase-head { display: block; } .showcase-head > p { margin-top: 14px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 16px; }
  .showcase-shot { aspect-ratio: 16/9; }
  .showcase-copy { padding: 17px 20px; }
  .showcase-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase-metrics > div:last-child { grid-column: auto; display: block; }
  .showcase-context { flex-direction: column; gap: 12px; }
  .lfh-workspace { grid-template-columns: 1fr; } .lfh-detail { border-left: 0; border-top: 1px solid var(--line); }
  .lfh-steps { grid-template-columns: repeat(3, minmax(0,1fr)); } .lfh-steps button { padding: 8px; font-size: .7rem; }
  .lfh-picture { padding: 14px 8px; } .lfh-proof { font-size: .56rem; } .lfh-proof span:last-child { display: none; }
  .lfh-detail { padding: 22px; } .lfh-detail h3 { font-size: 1.4rem; max-width: 28ch; } .lfh-detail > p { max-width: 58ch; }
  .lfh-context { grid-template-columns: 1fr; gap: 18px; } .lfh-controls { gap: 8px; }
}
.showcase-film { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 28px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 22px; box-shadow: var(--shadow); }
.showcase-film .video { background: #e9eef4; }
.showcase-film-copy { padding: 12px 16px 12px 0; }
.showcase-film-copy .eyebrow { font-size: .75rem; }
.showcase-film-copy h3 { font-size: clamp(1.55rem,2.6vw,2.15rem); font-weight: 600; line-height: 1.15; letter-spacing: -.04em; }
.showcase-film-copy p { color: var(--ink-3); font-size: .87rem; }
.showcase-film-copy .fineprint { font-size: .72rem; margin: 12px 0; }
.showcase-film-copy > a { font-size: .78rem; }
@media (max-width: 700px) { .showcase-film { grid-template-columns: 1fr; gap: 10px; padding: 10px; } .showcase-film-copy { padding: 12px; } .showcase-film-copy h3 br { display:none; } .showcase-film-copy h3 { font-size: 1.65rem; } }
.research-film { margin-top: 44px; padding: 24px; border: 1px solid #cbd7e7; border-radius: 20px; background: linear-gradient(125deg,#f0f5fd,#f9fbff); }
.research-film-head { max-width: 770px; margin-bottom: 20px; }
.research-film-head .eyebrow { font-size: .76rem; }
.research-film-head h3 { font-size: clamp(1.65rem,3vw,2.35rem); font-weight: 600; line-height: 1.15; letter-spacing: -.04em; }
.research-film-head > p:last-child { color: var(--ink-3); font-size: .91rem; }
.research-film-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 26px; align-items: center; }
.research-film .video { background: #e4ebf5; }
.research-film-copy h4 { font-size: 1.24rem; letter-spacing: -.025em; margin: 14px 0; font-weight: 600; }
.research-film-copy .evidence-label { display:inline-block; white-space: normal; font-size: .6rem; }
.research-cases { margin: 0 0 14px; display: grid; gap: 12px; }
.research-cases dt { font-size: .8rem; font-weight: 600; }
.research-cases dd { margin: 3px 0 0; font-size: .76rem; color: #62748b; }
.research-cases b { color: #3f5775; font-family: var(--mono); font-weight: 550; }
.research-film-copy .fineprint { font-size: .69rem; }
.research-film-copy > a { display: inline-block; margin-top: 12px; font-size: .75rem; }
.research-setup { margin: 18px 0 0; padding-top: 15px; border-top: 1px solid #d8e1ed; color: #62748b; font-size: .76rem; }
.research-setup b { color: #3f5775; font-weight: 600; }
@media (max-width:700px) { .research-film { padding: 16px; } .research-film-layout { grid-template-columns: 1fr; gap: 18px; } .research-cases { grid-template-columns: 1fr 1fr; gap: 10px; } }
/* Primary destinations fit without a concealed horizontal scroller; Menu keeps every section reachable. */
.top > nav { overflow: visible; }
.top .menu { display: block; }
.top .menu + .gh { margin-left: 0; }
.top .menu nav { max-height: calc(100dvh - 90px); overflow-y: auto; }
.top .menu nav a { white-space: normal; }
@media (max-width:700px) { .top .menu nav { position: fixed; top: 58px; left: 14px; right: 14px; min-width: 0; } }
.showcase-film video { object-fit: cover; }
.top .menu nav { gap: 0; }
.top .menu nav a { min-height: 40px; }
@media (pointer:coarse) { .top .menu nav a { min-height:44px; } }
