/* Harness engineering graphics for the home page and the AI Station page.
   Built on the IndexHalo tokens in site.css. Layer colours: violet = context and memory,
   blue = tools and engines, teal = permissions and checks passed, amber = checks and budget. */

.harness-stats { max-width: 780px; }
.project-study header .harness-stats { margin-top: 28px; }
.harness-chapter .chapter-intro > div p + p { margin-top: 12px; }
.harness-chapter h3 { letter-spacing: -.02em; }
.sub-heading { margin: 48px 0 6px; font-size: clamp(21px, 2vw, 26px); font-weight: 620; }

/* Graphic 1: the same model alone and inside a harness */
.harness-contrast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 8px 0 0; }
.harness-panel { margin: 0; padding: 22px 24px 10px; border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; min-width: 0; }
.harness-panel.harnessed { background: radial-gradient(120% 90% at 38% 55%, #f3f6ff 0%, #fbfcff 55%, #fff 100%); border-color: #d6defc; }
.harness-panel figcaption h3, .harness-panel figcaption h2 { margin: 0; font-size: 19px; font-weight: 640; }
.harness-panel figcaption p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.harness-panel svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.harness-panel svg text { font-family: var(--sans); font-size: 17px; fill: var(--ink-2); }
.harness-panel .reach { fill: none; stroke: #98a2b3; stroke-width: 1.6; stroke-dasharray: 5 6; }
.harness-panel .cross circle { fill: #fff; stroke: #d0d5dd; }
.harness-panel .cross path { stroke: #98a2b3; stroke-width: 1.8; stroke-linecap: round; }
.harness-panel .unreachable rect { fill: #fff; stroke: #c4cad4; stroke-dasharray: 4 4; }
.harness-panel .unreachable text { fill: #8a94a6; font-size: 16px; }
.harness-panel .core-alone { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.harness-panel .core-label-dark { fill: var(--ink); font-weight: 620; font-size: 18px; }
.harness-panel .reply-line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.harness-panel .reply { fill: var(--surface-muted); stroke: #d0d5dd; }
.harness-panel .reply-label { fill: var(--ink-2); }
.harness-panel .ring { stroke-width: 1.6; }
.harness-panel .ring-amber { fill: rgba(154, 52, 18, .045); stroke: rgba(154, 52, 18, .5); }
.harness-panel .ring-teal { fill: rgba(0, 127, 115, .055); stroke: rgba(0, 127, 115, .55); }
.harness-panel .ring-blue { fill: rgba(23, 75, 255, .065); stroke: rgba(23, 75, 255, .55); }
.harness-panel .ring-violet { fill: rgba(109, 40, 217, .075); stroke: rgba(109, 40, 217, .55); }
.harness-panel .core { fill: var(--ink); }
.harness-panel .core-label { fill: #fff; font-weight: 620; }
.harness-panel .ring-tag rect { fill: #fff; stroke-width: 1.2; }
.harness-panel .ring-tag text { font-size: 14px; font-weight: 600; }
.harness-panel .tag-amber rect { stroke: rgba(154, 52, 18, .5); } .harness-panel .tag-amber text { fill: var(--amber); }
.harness-panel .tag-teal rect { stroke: rgba(0, 127, 115, .55); } .harness-panel .tag-teal text { fill: var(--teal); }
.harness-panel .tag-blue rect { stroke: rgba(23, 75, 255, .55); } .harness-panel .tag-blue text { fill: var(--action); }
.harness-panel .tag-violet rect { stroke: rgba(109, 40, 217, .55); } .harness-panel .tag-violet text { fill: var(--violet); }
.harness-panel .out-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.harness-panel .file-chip rect { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.harness-panel .file-chip circle { fill: var(--teal); }
.harness-panel .file-chip .tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.harness-panel .file-chip text { font-size: 15px; font-weight: 560; fill: var(--ink); }

.harness-layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; margin: 26px 0 0; }
.harness-layers > div { border-top: 3px solid var(--line); padding-top: 12px; }
.harness-layers dt { font-weight: 640; letter-spacing: -.015em; }
.harness-layers dd { margin: 5px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.harness-layers .layer-violet { border-color: var(--violet); }
.harness-layers .layer-blue { border-color: var(--action); }
.harness-layers .layer-teal { border-color: var(--teal); }
.harness-layers .layer-amber { border-color: var(--amber); }

/* Graphics 2 and 3: the loop and the design process, both real sequences */
.harness-loop-figure { margin: 8px 0 0; }
.harness-loop, .harness-process { display: grid; list-style: none; margin: 0; padding: 0; gap: 0; }
.harness-loop { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.harness-process { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 8px; }
.harness-loop li, .harness-process li { position: relative; padding: 0 20px 0 0; min-width: 0; }
.harness-loop li::before, .harness-process li::before { content: ""; position: absolute; top: 17px; left: 40px; right: 6px; height: 2px; background: var(--line-control); }
.harness-loop li:last-child::before, .harness-process li:last-child::before { display: none; }
.harness-loop .step, .harness-process .step { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font: 650 15px/1 var(--sans); color: var(--ink); position: relative; }
.harness-process .step { background: var(--action); border-color: var(--action); color: #fff; }
.harness-loop .checks .step { background: var(--teal); border-color: var(--teal); color: #fff; }
.harness-loop h3, .harness-process h3 { margin: 14px 0 6px; font-size: 16.5px; font-weight: 640; }
.harness-loop p, .harness-process p { font-size: 14.5px; line-height: 1.55; }
.harness-loop .repeat { margin-top: 8px; color: var(--teal); font-weight: 560; font-size: 13.5px; }
.harness-loop-figure figcaption { margin-top: 18px; color: var(--faint); font-size: 13.5px; }
.harness-abilities { margin-top: 36px; }

.use-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.use-cases > div { border-top: 1px solid var(--line); padding: 18px 0; }
.use-cases h3 { font-size: 17px; font-weight: 640; }
.use-cases p { margin-top: 5px; font-size: 15px; }
.use-cases ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.use-cases li { padding: 3px 9px; border-radius: 6px; background: var(--surface-muted); color: var(--ink-2); font: 500 12.5px/1.5 var(--sans); }

/* Graphic 5: one core, modules on demand */
.module-board-figure { margin: 8px 0 0; }
.module-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .82fr) minmax(0, 1fr); gap: 14px 48px; }
.module { grid-row: var(--row); position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.module.left { grid-column: 1; }
.module.right { grid-column: 3; }
.module h3 { font-size: 16px; font-weight: 640; }
.module h3 a { color: inherit; text-decoration-color: var(--line-control); }
.module h3 a:hover { color: var(--action); }
.module p { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.module::after { content: ""; position: absolute; top: 50%; width: 48px; height: 2px; background: var(--line-control); }
.module::before { content: ""; position: absolute; top: calc(50% - 4px); width: 10px; height: 10px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 3px #fff; z-index: 1; }
.module.left::after { right: -49px; }
.module.left::before { right: -53px; }
.module.right::after { left: -49px; }
.module.right::before { left: -53px; }
.module-core { grid-column: 2; grid-row: 1 / span 4; display: flex; flex-direction: column; justify-content: center; padding: 28px 26px; border-radius: var(--radius-3); background: radial-gradient(130% 100% at 50% 0%, #1c2b55 0%, var(--ink) 62%); color: #fff; box-shadow: var(--shadow-3); }
.module-core .core-name { font: 650 24px/1.15 var(--sans); letter-spacing: -.035em; }
.module-core p { margin-top: 6px; color: #c3cbe0; font-size: 15px; }
.module-core ul { list-style: none; margin: 18px 0 0; padding: 0; }
.module-core li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; color: #e9edf5; }
.module-core li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7d9bff; flex: none; }
.module-board-figure figcaption { margin-top: 18px; color: var(--faint); font-size: 13.5px; }

.module-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 44px; margin-top: 40px; }
.module-details section { scroll-margin-top: 88px; border-top: 1px solid var(--line); padding-top: 18px; }
.module-details h3 { font-size: 20px; font-weight: 640; margin-bottom: 8px; }
.module-details ul { list-style: none; margin: 14px 0; padding: 0; }
.module-details li { position: relative; padding: 0 0 8px 24px; color: var(--muted); line-height: 1.55; }
.module-details li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* Studio engine families */
.engine-families { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px 26px; margin: 4px 0 28px; }
.engine-families h3 { font-size: 16px; font-weight: 640; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.engine-families ul { list-style: none; margin: 0; padding: 0; }
.engine-families li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.engine-families small { flex: none; color: var(--action); font: 550 12.5px/1.4 var(--sans); }

/* The file wall */
.file-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; margin-top: 8px; }
.file-wall figure { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: #fff; }
.file-wall a { display: block; aspect-ratio: 4 / 3; overflow: hidden; min-height: 0; padding: 14px; background: var(--surface-subtle); border-bottom: 1px solid var(--line); cursor: zoom-in; }
.file-wall img { width: 100%; height: 100%; object-fit: contain; }
.file-wall figcaption { padding: 12px 14px 16px; }
.file-wall strong { display: block; font-size: 15.5px; font-weight: 640; letter-spacing: -.015em; }
.file-wall code { display: inline-block; margin: 6px 0 7px; padding: 2px 7px; border-radius: 5px; background: #eef2ff; color: var(--action); font: 500 12.5px/1.5 var(--mono); }
.file-wall p { font-size: 14px; line-height: 1.5; }
.file-wall span { display: block; margin-top: 9px; color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* Graphic 6: the token economy */
.token-figure { margin: 8px 0 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; }
.token-row + .token-row { margin-top: 24px; }
.token-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.token-head strong { font: 650 22px/1.2 var(--sans); letter-spacing: -.035em; }
.token-head span { color: var(--muted); font-size: 14.5px; }
.token-track { display: flex; height: 20px; margin-top: 10px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.token-track i { display: block; height: 100%; min-width: 4px; }
.token-track .cached { background: linear-gradient(90deg, #3a63ff, var(--action)); }
.token-track .fresh { background: #a9bbff; }
.token-track .output { background: var(--teal); }
.token-key { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 10px 0 0; padding: 0; color: var(--muted); font-size: 13.5px; }
.token-key li { display: inline-flex; align-items: center; gap: 8px; }
.token-key li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.token-key .cached::before { background: var(--action); }
.token-key .fresh::before { background: #a9bbff; }
.token-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.token-figures dt { font: 650 clamp(24px, 2.6vw, 32px)/1.1 var(--sans); letter-spacing: -.045em; color: var(--ink); }
.token-figures dd { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.tool-funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 24px 0 0; padding: 0; }
.tool-funnel li { position: relative; padding: 14px 16px; border-radius: 10px; background: var(--surface-subtle); border: 1px solid var(--line); }
.tool-funnel li:not(:last-child)::after { content: ""; position: absolute; right: -21px; top: calc(50% - 6px); width: 10px; height: 10px; border-top: 2px solid var(--faint); border-right: 2px solid var(--faint); transform: rotate(45deg); }
.tool-funnel strong { display: block; font: 650 24px/1.15 var(--sans); letter-spacing: -.035em; }
.tool-funnel li:last-child strong { color: var(--action); }
.tool-funnel span { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; }
.savings { margin-top: 32px; }

/* The proof table */
.proof-table table { min-width: 780px; }
.proof-table caption { caption-side: top; text-align: left; padding: 12px 14px; font: 600 13px/1.5 var(--sans); color: var(--muted); border-bottom: 1px solid var(--line); }
.proof-table tbody th { font-weight: 600; color: var(--ink); text-align: left; }
.proof-table td { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.proof-table code { font: 500 12.5px/1.5 var(--mono); color: var(--action); }
.proof-table tfoot th, .proof-table tfoot td { background: var(--surface-subtle); font-weight: 650; color: var(--ink); border-top: 1px solid var(--line); text-align: left; padding: 11px 14px; }

/* Home page section */
.harness-home { scroll-margin-top: 76px; }
.harness-home-intro { max-width: 820px; }
.harness-home h2 { margin: 0 0 18px; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.harness-home-intro > p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 72ch; }
.harness-home .stats { margin-top: 26px; }
.harness-home .opportunities-actions { margin-top: 26px; }
.harness-home .harness-contrast { margin-top: 36px; }

@media (max-width: 1080px) {
  .harness-loop { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .harness-loop li:nth-child(3)::before { display: none; }
  .harness-process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .harness-process li:nth-child(3)::before { display: none; }
  .harness-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .harness-contrast, .module-details, .use-cases { grid-template-columns: 1fr; }
  .module-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .module-core { grid-column: 1 / -1; grid-row: auto; }
  .module, .module.left, .module.right { grid-column: auto; grid-row: auto; }
  .module::before, .module::after { display: none; }
  .tool-funnel, .token-figures { grid-template-columns: 1fr; gap: 12px; }
  .tool-funnel li:not(:last-child)::after { right: auto; left: 22px; top: auto; bottom: -11px; transform: rotate(135deg); }
}
@media (max-width: 620px) {
  .harness-panel { padding: 18px 14px 6px; }
  .harness-layers, .module-board { grid-template-columns: 1fr; }
  .harness-loop, .harness-process { grid-template-columns: 1fr; row-gap: 22px; }
  .harness-loop li, .harness-process li { padding: 0 0 0 52px; }
  .harness-loop .step, .harness-process .step { position: absolute; left: 0; top: 0; }
  .harness-loop h3, .harness-process h3 { margin-top: 6px; }
  .harness-loop li::before, .harness-process li::before, .harness-loop li:nth-child(3)::before, .harness-process li:nth-child(3)::before { display: block; top: 40px; bottom: -18px; left: 17px; right: auto; width: 2px; height: auto; }
  .harness-loop li:last-child::before, .harness-process li:last-child::before { display: none; }
  .token-figure { padding: 20px 18px; }
}

/* ------------------------------------------------------------------ shared by the Web App and Academy pages */

/* Two ways of working, side by side */
.contrast-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.contrast-cards > div { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; }
.contrast-cards > div.with { border-color: #d6defc; background: radial-gradient(120% 100% at 30% 0%, #f3f6ff 0%, #fff 70%); }
.contrast-cards h3 { font-size: 19px; font-weight: 640; }
.contrast-cards > div > p { margin-top: 4px; font-size: 15px; }
.contrast-cards ul { list-style: none; margin: 16px 0 0; padding: 0; }
.contrast-cards li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.contrast-cards li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 16px; border-radius: 50%; }
.contrast-cards .without li { color: var(--faint); }
.contrast-cards .without li::before { border: 1.5px dashed #b4bcc8; }
.contrast-cards .with li::before { background: var(--teal); }
.contrast-cards .with li::after { content: ""; position: absolute; left: 7px; top: 17px; width: 6px; height: 3.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* Where each part runs: three tiers joined by labelled links */
.tier-figure { margin: 8px 0 0; }
.tier-diagram { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.1fr) 150px minmax(0, 1fr); align-items: center; }
.tier { padding: 20px 20px 16px; border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; min-width: 0; }
.tier h3 { font-size: 17px; font-weight: 640; }
.tier > p { margin-top: 3px; font-size: 14px; }
.tier ul { list-style: none; margin: 12px 0 0; padding: 0; }
.tier li { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.tier li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--action); flex: none; }
.tier.core { background: radial-gradient(130% 100% at 50% 0%, #1c2b55 0%, var(--ink) 62%); border-color: transparent; color: #fff; box-shadow: var(--shadow-3); }
.tier.core h3 { color: #fff; }
.tier.core > p { color: #c3cbe0; }
.tier.core li { color: #e9edf5; border-color: rgba(255, 255, 255, .12); }
.tier.core li::before { background: #7d9bff; }
.tier.local li::before { background: var(--teal); }
.tier-links { display: grid; gap: 22px; padding: 0 10px; }
.tier-link { position: relative; padding-top: 12px; text-align: center; font: 550 12.5px/1.35 var(--sans); color: var(--muted); }
.tier-link::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--line-control); }
.tier-link::after { content: ""; position: absolute; top: 0; width: 8px; height: 8px; border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2); }
.tier-link.right::after { right: 0; transform: rotate(45deg); }
.tier-link.left::after { left: 0; transform: rotate(-135deg); }
.tier-figure figcaption { margin-top: 18px; color: var(--faint); font-size: 13.5px; }

/* Curriculum phases as one proportional track */
.phase-track { margin: 8px 0 0; }
.phase-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; gap: 3px; background: #fff; }
.phase-bar i { display: block; height: 100%; flex: var(--n) 1 0; background: var(--tone); }
.phase-list { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 16px 22px; list-style: none; margin: 18px 0 0; padding: 0; }
.phase-list li { border-top: 3px solid var(--tone); padding-top: 10px; }
.phase-list strong { display: block; font-size: 15.5px; font-weight: 640; letter-spacing: -.015em; }
.phase-list span { display: block; margin-top: 2px; color: var(--action); font: 600 13px/1.4 var(--sans); }
.phase-list p { margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.phase-track figcaption { margin-top: 16px; color: var(--faint); font-size: 13.5px; }

/* Live softmax demonstration */
.softmax-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px 44px; align-items: center; margin: 8px 0 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; }
.softmax-demo h3 { font-size: 20px; font-weight: 640; }
.softmax-demo .lede { margin-top: 6px; font-size: 15px; }
.softmax-controls { margin-top: 18px; }
.softmax-controls[hidden] { display: none; }
.softmax-controls label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14.5px; }
.softmax-controls output { font-variant-numeric: tabular-nums; color: var(--action); }
.softmax-controls input { width: 100%; margin-top: 10px; accent-color: var(--action); min-height: 32px; }
.softmax-controls small { display: flex; justify-content: space-between; color: var(--faint); font-size: 12.5px; }
.softmax-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.softmax-bars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 58px; align-items: center; gap: 12px; font-size: 14.5px; }
.softmax-bars span { color: var(--ink-2); }
.softmax-bars span small { display: block; color: var(--faint); font-size: 12.5px; }
.softmax-bars .track { height: 18px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.softmax-bars .track i { display: block; height: 100%; width: var(--share); border-radius: 999px; background: linear-gradient(90deg, #3a63ff, var(--action)); transition: width .18s ease; }
.softmax-bars li output { text-align: right; font-variant-numeric: tabular-nums; font-weight: 640; }

@media (max-width: 900px) {
  .contrast-cards, .softmax-demo { grid-template-columns: 1fr; }
  .tier-diagram { grid-template-columns: 1fr; gap: 0; }
  .tier-links { grid-template-columns: 1fr 1fr; padding: 14px 0; gap: 10px; }
  .tier-link { padding: 0 0 0 26px; text-align: left; }
  .tier-link::before { left: 10px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tier-link.right::after { left: 7px; right: auto; top: auto; bottom: 0; transform: rotate(135deg); }
  .tier-link.left::after { left: 7px; top: 0; transform: rotate(-45deg); }
  .phase-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .phase-list { grid-template-columns: 1fr; }
  .softmax-bars li { grid-template-columns: 84px minmax(0, 1fr) 52px; }
  .softmax-demo { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { .softmax-bars .track i { transition: none; } }

/* Model teams: request, principal model and specialists */
.team-board .request { align-self: center; background: var(--surface-subtle); }
.team-board .request p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.team-board .specialist span { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 6px; background: #e7f4f2; color: var(--teal); font: 600 12.5px/1.5 var(--sans); }
.team-board .module-core li::before { background: #9fb4ff; }
.team-detail { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 28px 40px; align-items: start; margin-top: 32px; }
.team-detail .team-features { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-shot { margin-top: 0; }
.team-shot figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-3); overflow: hidden; background: #fff; }
.team-shot a { display: block; cursor: zoom-in; background: var(--surface-subtle); }
.team-shot img { width: 100%; height: auto; }
.team-shot figcaption { padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.team-shot figcaption strong { display: block; font-size: 15.5px; }
.team-shot figcaption p { margin-top: 3px; font-size: 14.5px; }
@media (max-width: 900px) { .team-board .request { order: -1; grid-column: 1 / -1; } .team-detail { grid-template-columns: 1fr; } .team-shot figure { max-width: 420px; } }
@media (max-width: 620px) { .team-detail .team-features { grid-template-columns: 1fr; } }

/* Course chips, proof lists and the eight-step learning loop */
.course-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.course-chips li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: 550 14px/1.4 var(--sans); }
.proof-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 8px 0 0; }
.proof-list > div { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.proof-list dt { font: 650 clamp(20px, 2vw, 26px)/1.15 var(--sans); letter-spacing: -.035em; color: var(--ink); }
.proof-list dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.harness-loop.steps-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 30px; }
.harness-loop.steps-8 li:nth-child(4)::before { display: none; }
.lab-grid, .security-grid { margin-top: 32px; }
@media (max-width: 1080px) {
  .harness-loop.steps-8 li:nth-child(3)::before { display: block; }
}
@media (max-width: 900px) {
  .proof-list { grid-template-columns: 1fr; }
  .harness-loop.steps-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .harness-loop.steps-8 li:nth-child(2n)::before { display: none; }
  .harness-loop.steps-8 li:nth-child(3)::before { display: block; }
}
@media (max-width: 620px) {
  .proof-list > div { grid-template-columns: 1fr; gap: 4px; }
  .harness-loop.steps-8 { grid-template-columns: 1fr; }
  .harness-loop.steps-8 li::before, .harness-loop.steps-8 li:nth-child(2n)::before, .harness-loop.steps-8 li:nth-child(4)::before { display: block; }
  .harness-loop.steps-8 li:last-child::before { display: none; }
}

/* ------------------------------------------------------------------ landing page */
.home-products .section-heading, .home-method .section-heading, .home-services .section-heading { max-width: 760px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-3); overflow: hidden; background: #fff; min-width: 0; }
.product-media { display: block; padding: 16px 16px 10px; background: var(--surface-subtle); border-bottom: 1px solid var(--line); text-decoration: none; }
.product-media > span { display: block; margin-top: 10px; color: var(--faint); font-size: 12.5px; line-height: 1.4; }
.product-visual { aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; border-radius: 10px; }
.product-visual img { width: 100%; height: 100%; object-fit: contain; }
.file-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; place-items: stretch; }
.file-mosaic img { min-height: 0; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.product-body h3 { margin: 4px 0 6px; font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body h3 a:hover { color: var(--action); }
.product-line { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.product-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-figures dt { font: 650 21px/1.15 var(--sans); letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.product-figures dd { margin: 4px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.35; }
.product-points { list-style: none; margin: 14px 0 0; padding: 0; }
.product-points li { position: relative; padding: 5px 0 5px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.product-points li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.product-link { margin-top: auto; padding-top: 16px; font-weight: 650; text-decoration: none; }
.product-link:hover { text-decoration: underline; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.service-list > div { display: flex; flex-direction: column; padding: 20px 0 8px; border-top: 1px solid var(--line); }
.service-list h3 { font-size: 18px; font-weight: 640; letter-spacing: -.02em; }
.service-list p { margin: 6px 0 4px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.service-list .text-link { margin-top: auto; }
.home-consulting { padding-top: 0; }
.home-consulting .consulting-offer { margin-top: 0; }
.section + .home-consulting { border-top: 0; }
.growth-stats { margin: 0 0 30px; }
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .product-grid, .service-list { grid-template-columns: 1fr; }
}

/* Graphic 7: harness quality × model quality × token efficiency */
.sweet-spot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 36px; align-items: center; margin: 40px 0 0; padding: 28px 30px 30px; border: 1px solid var(--line); border-radius: var(--radius-3); background: radial-gradient(90% 80% at 25% 60%, #f5f7ff 0%, #fff 70%); }
.harness-chapter .sweet-spot { margin: 8px 0 28px; }
.sweet-head { grid-column: 1 / -1; }
.sweet-head h3, .sweet-head h2 { margin: 0; font-size: clamp(21px, 2.2vw, 27px); font-weight: 650; letter-spacing: -.03em; }
.sweet-head p { margin: 6px 0 0; color: var(--muted); font-size: 16px; max-width: 80ch; }
.sweet-venn svg { display: block; width: 100%; height: auto; max-width: 620px; margin: 0 auto; }
.sweet-venn text { font-family: var(--sans); fill: var(--muted); }
.sweet-venn .venn { stroke-width: 1.8; }
.sweet-venn .venn-harness { fill: rgba(0, 127, 115, .10); stroke: rgba(0, 127, 115, .75); }
.sweet-venn .venn-model { fill: rgba(109, 40, 217, .09); stroke: rgba(109, 40, 217, .7); }
.sweet-venn .venn-tokens { fill: rgba(154, 52, 18, .08); stroke: rgba(154, 52, 18, .65); }
.sweet-venn .venn-core { stroke: #fff; stroke-width: 2.5; }
.sweet-venn .v-title { font-size: 18px; font-weight: 660; letter-spacing: -.02em; }
.sweet-venn .v-harness { fill: var(--teal); } .sweet-venn .v-model { fill: var(--violet); } .sweet-venn .v-tokens { fill: var(--amber); }
.sweet-venn .v-sub { font-size: 14px; }
.sweet-venn .v-alone { font-size: 14px; font-style: italic; fill: var(--ink-2); }
.sweet-venn .v-pair { font-size: 16px; font-weight: 640; fill: var(--ink); }
.sweet-venn .v-core-title { font-size: 17px; font-weight: 680; fill: #fff; letter-spacing: -.015em; }
.sweet-venn .v-core-sub { font-size: 13.5px; fill: #c9d4ff; }
.sweet-notes { display: grid; gap: 14px; min-width: 0; }
.sweet-spot p.sweet-callout { margin: 0; padding: 18px 20px; border-radius: 12px; background: var(--ink); color: #d7def0; font-size: 15.5px; line-height: 1.6; }
.sweet-spot p.sweet-callout strong { color: #fff; }
.sweet-notes ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sweet-notes li { padding: 14px 16px 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 10px; background: #fff; }
.sweet-notes li strong { display: block; color: var(--ink); font-size: 15.5px; font-weight: 640; letter-spacing: -.015em; }
.sweet-notes li span { display: block; margin-top: 3px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 1000px) {
  .sweet-spot { grid-template-columns: 1fr; }
  .sweet-notes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sweet-spot { padding: 20px 16px 22px; }
  .sweet-venn { margin: 0 -10px; }
  .sweet-venn .v-title { font-size: 21px; }
  .sweet-venn .v-sub, .sweet-venn .v-alone { font-size: 16.5px; }
  .sweet-venn .v-pair { font-size: 17.5px; }
  .sweet-venn .v-core-title { font-size: 19px; }
  .sweet-venn .v-core-sub { font-size: 14.5px; }
  .sweet-notes ul { grid-template-columns: 1fr; }
}
