/* Autodesk Artifakt typefaces (Element for text, Legend for headings), as used on autodesk.com and in Fusion */
@font-face { font-family: "Artifakt Element"; font-weight: 400; font-display: swap;
  src: url("https://swc.autodesk.com/pharmacopeia/fonts/ArtifaktElement/v1.0/WOFF2/Artifakt%20Element%20Regular.woff2") format("woff2"); }
@font-face { font-family: "Artifakt Element"; font-weight: 600; font-display: swap;
  src: url("https://swc.autodesk.com/pharmacopeia/fonts/ArtifaktElement/v1.0/WOFF2/Artifakt%20Element%20Semi%20Bold.woff2") format("woff2"); }
@font-face { font-family: "Artifakt Element"; font-weight: 700; font-display: swap;
  src: url("https://swc.autodesk.com/pharmacopeia/fonts/ArtifaktElement/v1.0/WOFF2/Artifakt%20Element%20Bold.woff2") format("woff2"); }
@font-face { font-family: "Artifakt Legend"; font-weight: 700; font-display: swap;
  src: url("https://swc.autodesk.com/pharmacopeia/fonts/ArtifaktLegend/v1.0/WOFF2/Artifakt%20Legend%20Bold.woff2") format("woff2"); }
@font-face { font-family: "Artifakt Legend"; font-weight: 800; font-display: swap;
  src: url("https://swc.autodesk.com/pharmacopeia/fonts/ArtifaktLegend/v1.0/WOFF2/Artifakt%20Legend%20Extra%20Bold.woff2") format("woff2"); }

:root {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --ink: #000000;
  --muted: #666666;
  --line: #dcdcdc;
  --accent: #0696d7;
  --yellow: #ffff00;        /* Autodesk Hello Yellow: on black, or as a fill under black text, never as text on white */
  --yellow-600: #eee410;
  --yellow-200: #fdfda1;
  --downskin: #0078ff;
  --volume: #19c42d;
  --highlight: #e8202a;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
  --heading: "Artifakt Legend", "Artifakt Element", "Segoe UI", system-ui, sans-serif;
  font-family: "Artifakt Element", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
h1, h2, .wide-title { font-family: var(--heading); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: .88em; background: #eeeeee; padding: 1px 5px; border-radius: 2px; }

/* ---------- header */
.top {
  display: flex; align-items: center; gap: 24px; min-height: 56px;
  padding: 10px 28px; background: #000; color: #fff; border-bottom: 3px solid var(--yellow);
}
.top a { color: inherit; }
.top .brand { font-family: var(--heading); font-weight: 700; font-size: 1.05rem; letter-spacing: .1px; }
.top .brand span { color: #bdbdbd; font-family: "Artifakt Element", "Segoe UI", sans-serif; font-weight: 400; margin-left: 8px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: .92rem; color: #e6e6e6; }
.top nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { text-decoration: none; border-bottom-color: var(--yellow); }

/* ---------- feature page */
.feature-head { max-width: 1200px; margin: 22px auto 6px; padding: 0 28px; }
.feature-head .crumb { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.feature-head .crumb code { text-transform: none; letter-spacing: 0; }
.feature-head h1 { margin: 4px 0 6px; font-size: 2rem; font-weight: 800; line-height: 1.15; }
.feature-head .lead { margin: 0; max-width: 900px; color: #3c3c3c; font-size: 1rem; }

.stack { max-width: 1200px; margin: 16px auto 40px; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
/* keep the viewer short enough that its sliders fit on screen below it */
.stack .viewer { aspect-ratio: 2 / 1; max-height: max(220px, 40vh); }
.stack .controls { gap: 5px 12px; margin-top: 10px; }
.stack #explainer .body > p, .stack #explainer .body > h3, .stack .guide .body > p { max-width: 900px; }
.stack .card > h2 { padding: 10px 18px; }
.stack .card .body { padding: 14px 18px 18px; }

/* the video (16:9) is at most about half the window high; the chapter list takes the rest of the width */
.media .body { display: grid; gap: 20px; align-items: start;
  grid-template-columns: minmax(0, min(66%, calc(50vh * 16 / 9))) minmax(240px, 1fr); }
.media .steps { margin-top: 0; }
.media-side { contain: size; align-self: stretch; overflow-y: auto; padding-right: 6px; }
.media-side > :first-child { margin-top: 0; }
/* getting started: a short clip under every step heading, as wide as the text (and at most ~55% of the window
   high), its chapter list right below it */
.step-video { max-width: min(900px, calc(55vh * 16 / 9)); margin: 10px 0 16px; }
.step-video .steps { margin: 6px 0 0; display: grid; gap: 0 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.step-video .steps li { grid-template-columns: 1fr auto; }
.step-video .steps li::before { display: none; }
@media (max-width: 700px) {
  .media .body { grid-template-columns: minmax(0, 1fr); }
  .media-side { contain: none; overflow: visible; }
}

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > h2 { margin: 0; padding: 12px 18px; font-size: 1.1rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.card .body { padding: 18px; }
.card .body > :first-child { margin-top: 0; }
.guide h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-top: 28px; }
.guide h3 .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #000;
  font-size: .85rem; display: grid; place-items: center; }
.start-link { max-width: 1200px; margin: 22px auto 0; padding: 0 28px; }
.start-link a { display: flex; align-items: center; gap: 18px; background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid #000; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 18px;
  color: inherit; }
.start-link a:hover { text-decoration: none; border-color: #999; border-left-color: #000; }
.start-link img { width: 200px; border-radius: 2px; flex: none; }
.start-link b { font-size: 1.1rem; }
.start-link small { display: block; color: var(--muted); margin-top: 4px; font-size: .92rem; }
.card h3 { font-size: .98rem; margin: 22px 0 6px; }
.card p, .card li { font-size: .95rem; }

/* ---------- animation */
.viewer { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(#fdfdfd, #c8d0d8); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.viewer canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer .hint { position: absolute; right: 10px; bottom: 8px; font-size: .75rem; color: #6b7480; pointer-events: none; }
.viewer .layer-tag { position: absolute; left: 10px; top: 8px; font-size: .8rem; color: #3c444d; background: rgba(255,255,255,.75); padding: 2px 8px; border-radius: 6px; }

.modes { display: inline-flex; border: 1px solid #bdbdbd; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.modes button { border: 0; background: #fff; padding: 6px 16px; font: inherit; font-size: .9rem; cursor: pointer; color: #3c3c3c; }
.modes button + button { border-left: 1px solid #bdbdbd; }
.modes button:hover { background: #f0f0f0; }
.modes button[aria-pressed="true"] { background: #000; color: #fff; }

.controls { display: grid; grid-template-columns: max-content 1fr 4.5em; gap: 8px 12px; align-items: center; margin-top: 14px; font-size: .92rem; }
.controls label { color: var(--muted); }
.controls output { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; white-space: nowrap; }
.controls input[type="range"] { width: 100%; accent-color: var(--accent); }
.controls .row-buttons { grid-column: 1 / -1; display: flex; gap: 8px; }
.controls button.small { border: 1px solid #000; background: #000; color: #fff; border-radius: var(--radius); padding: 4px 14px; font: inherit; font-size: .88rem; cursor: pointer; }
.controls button.small:hover { background: #3c3c3c; }
.controls select { justify-self: start; border: 1px solid #bdbdbd; background: #fff; border-radius: var(--radius); padding: 3px 8px; font: inherit; }
.controls [hidden] { display: none; }
.controls .check { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.controls .check input { accent-color: var(--accent); }
.controls .check[hidden] { display: none; }

.viewer.flat { background: linear-gradient(#f4f6f8, #e7ebf0); }
.viewer.flat canvas { cursor: default; }
.modes { flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: .82rem; color: var(--muted); }
.stats b { display: block; color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.verdicts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.verdicts li { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: .85rem; transition: background .2s, border-color .2s; }
.verdicts li b { display: block; font-size: .9rem; }
.verdicts li.on { border-color: var(--downskin); background: #eaf3ff; }
.verdicts li.on span::before { content: "downskin"; color: var(--downskin); font-weight: 600; }
.verdicts li:not(.on) span::before { content: "self-supporting"; color: var(--muted); }

/* ---------- video */
.video-wrap { position: relative; }
.video-wrap video { width: 100%; display: block; border-radius: 2px; background: #000; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 14px 0 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2em 1fr auto; gap: 8px; align-items: baseline;
  padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: .92rem; }
.steps li::before { content: counter(step); color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.steps li time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.steps li:hover { background: #f1f3f5; }
.steps li.current { background: #fdecec; }
.steps li.current::before { color: var(--highlight); font-weight: 700; }

/* ---------- tables */
table.params { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 6px 0 4px; }
table.params th, table.params td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.params th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .3px; }
table.params td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }

.note { border-left: 3px solid var(--accent); background: #eef7fc; padding: 8px 12px; border-radius: 0 6px 6px 0; font-size: .9rem; color: #2b3440; }
.code-refs { font-size: .9rem; padding-left: 18px; }

/* ---------- export formats */
.export-text figure.code { margin-top: 14px; }
.export-text pre { max-height: 300px; overflow: auto; position: relative; }
.export-text .ln.pick { cursor: pointer; }
.export-text .ln.pick:hover { background: rgba(255, 255, 255, .06); }
.export-text figure.code .ln.hl { background: rgba(232, 32, 42, .22); box-shadow: inset 3px 0 0 #e8202a; }
.export-text figcaption .lines { margin-left: auto; }
.pkg-title { margin: 12px 0 4px; font-size: .85rem; color: var(--muted); }
.pkg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pkg li { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font: .78rem "Cascadia Code", Consolas, monospace; color: var(--muted); }
.pkg li.hit { border-color: #e8202a; color: var(--ink); background: #fdecec; }
.pkg li.current { background: #e8202a; color: #fff; }
.hint-text { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.downloads { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.downloads li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.downloads a { font-family: "Cascadia Code", Consolas, monospace; font-size: .85rem; }
.downloads span { color: var(--muted); font-size: .85rem; }

/* ---------- code walkthrough */
.wide { max-width: 1500px; margin: 0 auto 48px; padding: 0 28px; }
.wide-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; }
.wide-lead { color: var(--muted); max-width: 900px; margin: 0 0 18px; }

.walk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.walk-view { position: sticky; top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px; }
.walk-caption { margin-top: 10px; font-weight: 600; font-size: .95rem; }
.walk-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.walk-step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  opacity: .55; transition: opacity .25s, border-color .25s, box-shadow .25s; }
.walk-step.active { opacity: 1; border-color: #b9c7d8; box-shadow: var(--shadow); }
.walk-step h3 { margin: 0 0 8px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.walk-step.active { box-shadow: inset 3px 0 0 #000, var(--shadow); }
.walk-step .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #000; color: #fff; font-size: .82rem; }
.walk-step.active .num { background: var(--yellow); color: #000; box-shadow: inset 0 0 0 1px #000; }
.walk-step p { font-size: .95rem; margin: 0 0 10px; }
@media (max-width: 1100px) {
  .walk { grid-template-columns: minmax(0, 1fr); }
  .walk-view { position: sticky; top: 0; z-index: 2; }
  .walk-view .viewer { aspect-ratio: 16 / 7; }
}
/* drawings of a square plate: taller on phones */
@media (max-width: 700px) {
  .stack .viewer.square { aspect-ratio: 1 / 1; max-height: 70vh; }
  .walk-view .viewer.square { aspect-ratio: 16 / 10; }
}

figure.code { margin: 12px 0 0; border-radius: 8px; overflow: hidden; background: #1e2329; color: #d7dde4; }
figure.code figcaption { display: flex; gap: 12px; align-items: baseline; padding: 7px 12px; background: #2a3038;
  font-size: .8rem; color: #9aa6b2; }
figure.code figcaption .file { color: #e6edf3; font-family: "Cascadia Code", Consolas, monospace; }
figure.code figcaption a.file:hover { color: #fff; }
figure.code figcaption .copy { margin-left: auto; border: 1px solid #47505b; background: transparent; color: #c9d1d9;
  border-radius: 5px; padding: 1px 9px; font: inherit; cursor: pointer; }
figure.code pre { margin: 0; padding: 10px 0; overflow-x: auto; font: .8rem/1.55 "Cascadia Code", Consolas, monospace; }
figure.code .ln { display: block; padding: 0 14px 0 0; white-space: pre; }
figure.code .ln::before { content: attr(data-n); display: inline-block; width: 3.6em; padding-right: 1em; text-align: right;
  color: #5d6873; user-select: none; }
figure.code .ln.hl { background: rgba(255, 214, 102, .13); box-shadow: inset 3px 0 0 #ffd666; }
.tok-c { color: #7d8b99; font-style: italic; }
.tok-s { color: #a5d6a7; }
.tok-n { color: #f2b880; }
.tok-k { color: #82aaff; }

/* ---------- recipes */
.workflow { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #000; border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 18px; font-size: .95rem; }
.workflow ol { margin: 6px 0 0; padding-left: 20px; }
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 18px; }
.recipe { min-width: 0; }
.recipe { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.recipe h3 { margin: 0 0 4px; font-size: 1.05rem; }
.recipe .why { margin: 0; color: var(--muted); font-size: .92rem; }
.recipe .result { font-size: .92rem; margin: 12px 0 8px; }
.recipe .change { margin: 12px 0 -4px; font-size: .92rem; }
.recipe .change code { padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.recipe .change .del { background: rgba(248, 81, 73, .15); color: #b42318; text-decoration: line-through; }
.recipe .change .add { background: rgba(63, 185, 80, .18); color: #1a7f37; }
figure.code.diff .del, figure.code.diff .add { display: block; white-space: pre; padding: 0 14px 0 0; }
figure.code.diff .del { background: rgba(248, 81, 73, .12); }
figure.code.diff .add { background: rgba(63, 185, 80, .14); }
figure.code.diff .sign { display: inline-block; width: 2em; text-align: center; color: #8b949e; user-select: none; }
figure.code.diff .del mark { background: rgba(248, 81, 73, .45); color: #fff; border-radius: 2px; }
figure.code.diff .add mark { background: rgba(63, 185, 80, .5); color: #fff; border-radius: 2px; }
.atu-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: s; }
.atu-steps li { counter-increment: s; font-size: .8rem; color: #2b3440; background: #eef3f8; border-radius: 12px; padding: 2px 10px; }
.atu-steps li::before { content: counter(s) ". "; color: var(--muted); }

/* ---------- build with AI */
figure.code[data-copy] { max-width: 900px; }
figure.code[data-copy] pre { padding: 10px 14px; }
.placeholder { display: flex; flex-direction: column; justify-content: center; gap: 4px; max-width: 900px;
  margin: 14px 0; padding: 16px 18px; border: 2px dashed #c4c4c4; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #fafafa 0 12px, #f2f2f2 12px 24px); color: var(--muted); font-size: .92rem; }
.placeholder b { color: var(--ink); font-size: 1rem; }
.prompt { margin: 12px 0; padding: 10px 14px; background: var(--yellow-200); border-left: 3px solid #000;
  border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; color: var(--ink); }
.recipe .prompt { font-size: .92rem; }
.recipe .atu-steps { margin-top: 4px; }
.start-link a + a { margin-top: 12px; }
.start-link .badge { flex: none; width: 200px; aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 2px;
  background: #000; color: var(--yellow); font-family: var(--heading); font-weight: 800; font-size: 1.6rem; letter-spacing: .04em; }

/* ---------- index */
/* centred under the headline, 16:9, at most 880 px wide and about 55% of the window high */
.intro-video { width: 100%; max-width: min(880px, calc(55vh * 16 / 9)); margin: 24px auto 8px; }
.intro-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0;
  border-radius: var(--radius); background: #000; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
/* Wistia embeds elsewhere: 16:9 at the width of their column */
iframe.wistia { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius);
  background: #000; }
.deep-dive-video { max-width: min(900px, calc(55vh * 16 / 9)); }
.hero { max-width: 1200px; margin: 40px auto 10px; padding: 0 28px; text-align: center; }
.hero p { margin-left: auto !important; margin-right: auto !important; }
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin: 0 0 12px; }
.hero p { color: #3c3c3c; max-width: 820px; font-size: 1.12rem; margin: 0; }
.grid { max-width: 1200px; margin: 24px auto 60px; padding: 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: inherit; }
.tile { transition: border-color .15s, box-shadow .15s; }
.tile:hover { text-decoration: none; border-color: #000; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.tile:hover .t b { box-shadow: inset 0 -.45em 0 var(--yellow); }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9ecef; border-bottom: 1px solid var(--line); }
.tile .ph { aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, #eceeef 0 10px, #f4f5f5 10px 20px); }
.tile .t { padding: 12px 14px 14px; }
.tile .t b { display: block; font-size: 1rem; }
.tile .t small { color: var(--muted); font-size: .86rem; }
.tile .t .soon { display: inline-block; margin-top: 6px; font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; }
.tile.disabled { opacity: .75; pointer-events: none; }
.section-title { max-width: 1200px; margin: 36px auto 0; padding: 0 28px; font-size: .85rem; font-weight: 700; color: #3c3c3c; text-transform: uppercase; letter-spacing: .8px; }

footer { margin: 0; padding: 18px 28px; background: #000; color: #bdbdbd; font-size: .82rem; }
.top nav a.current { border-bottom-color: var(--yellow); color: #fff; }

/* ---------- overview and partner pages */
.page-head { max-width: 1200px; margin: 30px auto 0; padding: 0 28px; }
.page-head h1 { margin: 0 0 6px; font-size: 2.2rem; font-weight: 800; line-height: 1.15; }
.page-head p { margin: 0; max-width: 820px; color: #3c3c3c; font-size: 1.05rem; }

.m-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 0, .16), transparent 60%),
  linear-gradient(180deg, #0b0b0b, #161a1e); color: #fff; }
.m-hero-in { max-width: 1200px; margin: 0 auto; padding: 64px 28px 56px; display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.eyebrow, .kicker { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #000; margin: 0 0 12px; }
.eyebrow::before, .kicker::before { content: ""; flex: none; width: 22px; height: 2px; background: currentColor; }
.m-hero .eyebrow, .cta-band .eyebrow { color: var(--yellow); }
.m-hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.06; margin: 0 0 16px; }
.m-hero .sub { font-size: 1.15rem; color: #d0d4d8; margin: 0 0 26px; max-width: 560px; }
.m-hero .intro-video { margin: 0; max-width: none; }
.hv-stage video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000;
  border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.hv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hv-tabs button { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border: 1px solid #3a3a3a;
  border-radius: 6px; background: rgba(255, 255, 255, .04); color: #fff; font: inherit; cursor: pointer; }
.hv-tabs button:hover { border-color: #8a8a8a; }
.hv-tabs button[aria-selected="true"] { border-color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow); }
.hv-tabs b { font-size: .92rem; }
.hv-tabs small { color: #b4b8bc; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-weight: 600;
  font-size: .98rem; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--yellow); color: #000; }
.btn-primary:hover { background: var(--yellow-600); }
.btn-ghost { border-color: #5b6168; color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-line { border-color: #000; color: #000; }
.btn-line:hover { background: #000; color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.band { padding: 64px 0; }
.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-in { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.band h2 { font-size: 2rem; font-weight: 800; line-height: 1.15; margin: 0 0 8px; }
.band .lead { color: #3c3c3c; font-size: 1.05rem; max-width: 780px; margin: 0 0 30px; }

.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.prop { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.band.alt .prop { background: var(--bg); box-shadow: none; }
.prop .ico { width: 42px; height: 42px; border-radius: 10px; background: #000; color: var(--yellow); display: grid; place-items: center;
  margin-bottom: 14px; }
.prop h3 { margin: 0 0 6px; font-size: 1.1rem; }
.prop p { margin: 0; color: #3c3c3c; font-size: .95rem; }

/* spotlight: heading across the top, then two equal columns (image | text); .flip mirrors the columns */
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; align-items: start; }
.spotlight + .spotlight { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.spotlight.flip .shot { grid-column: 2; grid-row: 2; }
.spotlight.flip .spot-text { grid-column: 1; grid-row: 2; }
.spot-head { grid-column: 1 / -1; }
.spot-head h2 { margin: 0; }
.spot-text .lead { margin: 0; }
.spotlight .shot { display: block; position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); }
.spotlight .shot img, .spotlight .shot video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.spotlight .shot.natural img { aspect-ratio: auto; height: auto; background: #fff; }
.spotlight .shot .tag { position: absolute; right: 14px; top: 14px; background: rgba(0, 0, 0, .85); color: var(--yellow); font-weight: 700;
  font-size: .78rem; letter-spacing: .5px; text-transform: uppercase; padding: 3px 10px; border-radius: 12px; }
.spotlight ul.checks { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.spotlight ul.checks li { position: relative; padding-left: 28px; color: #2b2b2b; }
.spotlight ul.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 0 22px 0 0; }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #000; color: #fff; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
.flow li::after { content: ""; position: absolute; left: 36px; right: 0; top: 18px; height: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow li.ours::before { background: var(--yellow); color: #000; }
.flow b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.flow span { color: #3c3c3c; font-size: .93rem; }

.highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.highlights .tile .t b { font-size: 1.05rem; }

.partner-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.partner { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; color: inherit; }
a.partner:hover { text-decoration: none; border-color: #000; }
.partner .logo { height: 64px; display: flex; align-items: center; margin-bottom: 16px; }
.logo-ph { display: grid; place-items: center; height: 64px; min-width: 200px; padding: 0 16px; border: 2px dashed #c4c4c4;
  border-radius: var(--radius); color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.partner-logo { display: block; height: 64px; width: auto; }
.partner-logo.wordmark { height: 30px; }
.partner-feature .partner-logo { height: 110px; }
.partner-feature .partner-logo.wordmark { height: 40px; }
.partner-logo.scanlab { height: 46px; }
.partner-feature .partner-logo.scanlab { height: 60px; }
.partner-logo.visiotech { height: 20px; max-width: 100%; }
.partner-feature .partner-logo.visiotech { height: 30px; }
.partner-feature .partner-logo.apex { height: 34px; }
.partner-feature .partner-logo.aconity { height: 60px; }
.product-shot { display: block; width: 100%; height: auto; }
.partner .kicker { font-size: .72rem; margin: 0 0 4px; }
.partner h3 { margin: 4px 0 8px; font-size: 1.25rem; }
.partner p { margin: 0 0 16px; color: #3c3c3c; font-size: .95rem; }
.partner .more { margin-top: auto; font-weight: 600; }

.partner-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.partner-feature.video-first { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.partner-feature video.product-shot { aspect-ratio: 16 / 9; background: #000; border-radius: 4px; }
.partner-feature + .partner-feature { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.partner-feature .visual { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 28px;
  display: grid; gap: 18px; justify-items: start; }
.partner-feature h2 { font-size: 1.7rem; }
.partner-feature ul { padding-left: 20px; margin: 12px 0 20px; }
.partner-feature li { margin-bottom: 6px; }
.partner-feature:has(> .visual.dark) { align-items: stretch; }
.partner-feature .visual.dark { background: #000; border-color: #000; color: #fff; padding: 20px 28px; display: flex; flex-direction: column; }
.pipeline { --icon: 44px; --line-gap: 6px; list-style: none; margin: 0; padding: 0; width: 100%; flex: 1 0 auto; display: flex; flex-direction: column; }
.pipeline li { position: relative; flex: 1 0 auto; display: grid; grid-template-columns: var(--icon) minmax(0, 1fr); gap: 18px; align-items: center; margin: 0; padding: 12px 0; }
/* Each row draws the top and bottom half of the connector, so the line stays continuous when rows grow to fill the panel. */
.pipeline li::before, .pipeline li::after { content: ""; position: absolute; left: calc(var(--icon) / 2 - 1px); width: 2px;
  height: calc(50% - var(--icon) / 2 - var(--line-gap)); background: #666666; }
.pipeline li::before { top: 0; }
.pipeline li::after { bottom: 0; }
.pipeline li:first-child::before, .pipeline li:last-child::after, .pipeline li.ours::before, .pipeline li.ours::after { content: none; }
.pipeline img { display: block; width: var(--icon); height: var(--icon); }
.pipeline b { display: block; font-family: var(--heading); font-size: 1.05rem; line-height: 1.3; }
.pipeline small { display: block; margin-top: 2px; color: #a3a3a3; font-size: .85rem; line-height: 1.4; }
.pipeline li.ours { margin: 0 -16px; padding: 12px 16px; background: var(--yellow); color: #000; border-radius: 6px; }
.pipeline .ours small { color: #000; }

.cta-band { background: #000; color: #fff; }
.cta-band .band-in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: #c9cdd1; }

/* ---------- blog article: a 720px reading column; the hero and wide figures break out to 1120px */
.post { background: #fff; padding: 48px 28px 64px; }
.post-head, .post-body { max-width: 720px; margin: 0 auto; }
.post-cat { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.post-cat span { padding: 4px 10px; border-radius: var(--radius); background: #000; color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.post-cat span + span { background: var(--yellow); color: #000; }
.post-head h1 { margin: 0 0 16px; font-size: 2.75rem; font-weight: 800; line-height: 1.1; }
.post-dek { margin: 0 0 24px; font-size: 1.25rem; line-height: 1.5; color: #3c3c3c; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; }
.post-author b { display: block; }
.post-author small, .post-date { color: var(--muted); }
.post-hero { max-width: 1120px; margin: 40px auto; }
.post-hero img, .post-body figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.post-body { font-size: 1.125rem; line-height: 1.7; }
.post-body h2 { margin: 48px 0 12px; font-size: 1.75rem; line-height: 1.2; }
.post-body h3 { margin: 32px 0 8px; font-family: var(--heading); font-size: 1.25rem; line-height: 1.3; }
.post-body p { margin: 0 0 20px; }
.post-body ul { margin: 0 0 24px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body li ul { margin: 8px 0 0; }
.post-body a:not(.btn) { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.post-body figure { margin: 32px 0; }
.post-body figure.wide { width: min(1120px, calc(100vw - 56px)); margin-left: 50%; transform: translateX(-50%); }
.post-body figcaption { max-width: 720px; margin: 12px auto 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.post-body figcaption b { margin-right: 6px; color: #000; }
.post-points { margin: 8px 0 24px; }
.post-points > div { padding: 20px 0; border-top: 1px solid var(--line); }
.post-points > div:last-child { border-bottom: 1px solid var(--line); }
.post-points h3 { margin: 0 0 4px; }
.post-points p { margin: 0; }
.post-pull { margin: 32px 0; font-family: var(--heading); font-size: 1.5rem; font-weight: 700; line-height: 1.35; }
.post-cta { display: grid; gap: 20px; margin: 48px 0 0; padding: 32px; border-radius: 8px; background: #000; color: #fff; }
.post-cta h2 { margin: 0 0 8px; font-size: 1.5rem; }
.post-cta p { margin: 0; color: #d5d5cb; font-size: 1rem; }
.post-foot { display: grid; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.post-share span { font-weight: 700; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 16px; font-size: .82rem; color: #3c3c3c; }
@media (max-width: 700px) {
  .post { padding: 32px 14px 48px; }
  .post-head h1 { font-size: 2rem; }
  .post-dek { font-size: 1.1rem; }
  .post-body { font-size: 1.05rem; }
  .post-body figure.wide { width: auto; margin-left: 0; transform: none; }
  .post-hero { margin: 24px auto; }
  .post-cta { padding: 24px; }
}

@media (max-width: 900px) {
  .m-hero-in, .spotlight, .partner-feature, .partner-feature.video-first { grid-template-columns: minmax(0, 1fr); }
  .spotlight.flip .shot, .spotlight.flip .spot-text { grid-column: auto; grid-row: auto; }
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 0; }
  .flow li:nth-child(2)::after { display: none; }
}
@media (max-width: 700px) {
  .m-hero-in { padding: 40px 14px; }
  .m-hero h1 { font-size: 2.1rem; }
  .band { padding: 44px 0; }
  .band-in, .page-head { padding-left: 14px; padding-right: 14px; }
  .band h2 { font-size: 1.6rem; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li::after { display: none; }
}

/* ---------- small screens (phones, narrow windows) */
@media (max-width: 700px) {
  .top { flex-wrap: wrap; gap: 4px 18px; padding: 10px 14px; }
  /* one row of links that scrolls sideways instead of wrapping */
  .top nav { margin-left: 0; width: 100%; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .feature-head, .stack, .wide, .hero, .grid, .start-link, .section-title { padding-left: 14px; padding-right: 14px; }
  footer { padding: 16px 14px; }
  .feature-head h1 { font-size: 1.6rem; }
  .hero { margin-top: 24px; }
  .hero h1 { font-size: 1.9rem; }
  .card .body, .stack .card .body { padding: 12px; }
  .card > h2, .stack .card > h2 { padding: 10px 12px; }
  .start-link a { flex-direction: column; align-items: stretch; }
  .start-link img { width: 100%; }
  .start-link .badge { width: auto; aspect-ratio: auto; padding: 10px; font-size: 1.2rem; }
  /* label on its own row, slider and value below it */
  .controls { grid-template-columns: minmax(0, 1fr) 4.5em; }
  .controls > label:not(.check) { grid-column: 1 / -1; margin-top: 4px; }
  table.params { display: block; overflow-x: auto; }
  .stats, .verdicts { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .walk-step { padding: 12px; }
}
