/* =========================================================================
   netex · pages/ai-hub.css · /ai/ (design bible §7.2, S4, S12)
   Role tokens only. Engine CSS (tuesday-lens, verb-index, doc-reader, qc-conveyor, call-replay,
   demand-forecast) lives in assets/css/engines/ and is enqueued in <head> by the template.
   ========================================================================= */
@layer reset, tokens, base, components, layout, pages, utilities;

@layer pages {

/* ---- s1 · hero ----------------------------------------------------------- */
.ai-hero { --hero-pad: var(--s-6); min-height: 0; }
.ai-hero__head { row-gap: var(--s-5); margin-bottom: var(--s-7); }
.ai-hero__display {
	margin: 0;
	font-size: clamp(2.375rem, 1.2rem + 4.2vw, 5.5rem);
	font-weight: var(--w-display);
	line-height: var(--lh-display);
	letter-spacing: var(--tr-display);
	color: var(--fg);
	text-wrap: balance;
	max-width: 11.4em; /* = 17ch of Commissioner 820 (1ch = .673em), in em: «ch» changes while the Greek and Latin subsets load one after the other (CLS) */
}
.ai-hero__d1, .ai-hero__d2 { display: block; }
.ai-hero__d2 { margin-top: .06em; }
.ai-hero__h1 {
	margin-top: var(--s-5);
	max-width: 30.3em; /* = 46ch of Commissioner 560 (1ch = .659em), font-independent */
	font-size: var(--t-h4);
	font-weight: var(--w-ui);
	line-height: 1.3;
	letter-spacing: 0;
	color: var(--fg-2);
}
.ai-hero__sub { align-self: end; }
@media (min-width: 1024px) {
	.ai-hero__text { grid-column: 1 / span 8; }
	.ai-hero__sub { grid-column: 9 / -1; grid-row: 1; align-self: end; padding-bottom: .4em; }
}

/* the Tuesday instrument scaffold (the board itself: engines/tuesday-lens.css) */
.ai-tuesday { position: relative; display: grid; gap: var(--s-5); }
.ai-tuesday__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.ai-tuesday__roles { margin: 0; padding: 0; border: 0; min-width: 0; }
.ai-tuesday__q { padding: 0; margin-bottom: var(--s-3); font: var(--w-h3) 1.25rem/1.25 var(--f-sans); color: var(--fg); }
html:not(.js) .ai-tuesday__roles { display: none; }
/* No JS: no instrument (the day table carries the content). With JS, the controls, hint and legend are
   in the layout from the first paint and the board's exact height is reserved before the engine draws
   it (328 px across, 606 px as day columns under 640 px): nothing moves when it boots (CLS 0). */
html:not(.js) :is(.ai-tuesday__ctl, .ai-board, .ai-tuesday__hint, .ai-tuesday__legend) { display: none; }
.ai-tuesday[data-engine-state="error"] :is(.ai-tuesday__ctl, .ai-board, .ai-tuesday__hint, .ai-tuesday__legend) { display: none; }
.ai-tuesday__boardwrap { container-type: inline-size; min-width: 0; }
html.js .ai-board:empty { min-height: 328px; }
@container (max-width: 641.98px) { html.js .ai-board:empty { min-height: 606px; } } /* engine: clientWidth (box − 2 px border) < 640 */
.ai-tuesday__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.ai-tuesday__off { font: var(--w-ui) .9375rem/1.2 var(--f-sans); color: var(--fg-2); }
.ai-tuesday__grid { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) {
	.ai-tuesday__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 25%); align-items: start; }
}
.ai-tuesday__title { margin-bottom: var(--s-3); font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.ai-tuesday__hint { margin-top: var(--s-3); font: 500 .6875rem/1.4 var(--f-mono); color: var(--fg-2); }
.ai-tuesday__legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-3) 0 0; padding: 0; list-style: none; font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: .02em; color: var(--fg-2); }
.ai-tuesday__legend li { display: inline-flex; align-items: center; gap: var(--s-2); }
/* swatches drawn exactly like the blocks on the film (the board shows them on Ink) */
.ai-tuesday__legend i { display: inline-block; width: 24px; height: 14px; background: var(--ink-2); border: var(--bw-2) solid var(--ink-2); }
.ai-tuesday__legend .is-leak i { background: var(--hatch), var(--ink-2); color: var(--molten); border-color: var(--molten); }
.ai-tuesday__legend .is-review i { background: var(--ink-3); border-color: var(--cyan); }
.ai-tuesday__legend .is-back i { background: var(--hatch), var(--ink-2); color: var(--cyan); border-color: var(--cyan); }

/* readout column */
.ai-tuesday__readout { display: grid; gap: var(--s-5); align-content: start; }
.ai-readout { display: grid; gap: var(--s-3); }
.ai-readout__who { display: flex; align-items: center; gap: var(--s-3); font: var(--w-ui) .9375rem/1.35 var(--f-sans); }
.nx-glyph { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.ai-readout__big { font: 600 clamp(1.0625rem, .95rem + .45vw, 1.3125rem)/1.3 var(--f-mono); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ai-readout__big.is-leak { color: var(--leak); }
.ai-readout__big.is-sig { color: var(--sig); }
.ai-readout__month { font: 500 .875rem/1.4 var(--f-mono); }
.ai-readout__review, .ai-readout__note { font-size: var(--t-small); line-height: 1.5; color: var(--fg-2); }
.ai-readout__where { font-size: 1rem; line-height: 1.45; }
.ai-readout__where .nx-mono-label { display: block; margin-bottom: var(--s-1); }
.ai-readout__method { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: var(--bw) solid var(--rule); }
.ai-readout__formula { font: 400 .8125rem/1.5 var(--f-mono); }
.ai-readout__formula .nx-mono-label { display: block; margin-bottom: var(--s-1); }
html.js .ai-tuesday:not([data-engine-state="error"]) [data-out="ai"] { display: none; }
html.js .ai-tuesday.is-ai [data-out="ai"] { display: grid; gap: var(--s-2); }
html.js .ai-tuesday.is-ai [data-out="before"] { display: none; }
.ai-readout__log:empty { display: none; }

/* Nobody lane (server-rendered; the engine opens it after a full scan) */
.ai-nobody { display: grid; gap: var(--s-3); margin-top: var(--s-5); padding: var(--s-4) 0 0; border-top: var(--bw) dashed var(--fg-3); }
.ai-nobody__name { font: 500 var(--t-label)/1 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.ai-nobody__ghosts { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .ai-nobody__ghosts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ai-nobody__ghost { padding: var(--s-3) var(--s-4); border: 1.5px dashed var(--fg-3); font: italic 400 .9375rem/1.45 var(--f-serif); color: var(--fg); }
.ai-nobody__verdict { font-size: var(--t-lead); line-height: var(--lh-lead); max-width: 40ch; }
html.js .ai-tuesday:not([data-engine-state="error"]) .ai-nobody:not(.is-open) { display: none; }

.ai-tuesday__cta { margin-top: var(--s-2); }
.ai-tuesday__scroll { font-size: var(--t-small); }

/* the day as a table: no-JS, reduced motion, and "see it as text" */
.ai-tuesday__text { display: grid; gap: var(--s-6); }
.ai-daytable caption { color: var(--fg); }
.ai-daytable td { font-size: var(--t-small); line-height: 1.5; width: 50%; }
.ai-daytable .is-nobody td { color: var(--fg-2); border-top-style: dashed; }
html.js .ai-tuesday[data-engine-state="ready"] .ai-tuesday__text:not(.is-visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.rm .ai-tuesday[data-engine-state="ready"] .ai-tuesday__text:not(.is-visible) { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
html.rm .ai-tuesday__astext { display: none; }
/* reduced motion: the table follows the role chips (one role at a time, like the board's readout) */
html.rm .ai-tuesday[data-engine-state="ready"] .ai-daytable.is-other { display: none; }
@media (max-width: 767px) { .ai-daytable td { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); } }

/* ---- s2 · evidence -------------------------------------------------------- */
.ai-stats { margin: 0; padding: 0; list-style: none; border-bottom: var(--bw) solid var(--rule); }
.ai-stat { display: grid; gap: var(--s-3) var(--gutter); padding: var(--s-6) 0; border-top: var(--bw) solid var(--rule); }
.ai-stat__value { font: 600 var(--t-readout)/.95 var(--f-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--fg); }
.ai-sep { display: inline-block; margin-inline: -.24em; }
.ai-stat__text { font-size: var(--t-lead); line-height: 1.4; font-weight: 500; max-width: 46ch; }
.ai-stat__note { margin-top: var(--s-2); font-family: var(--f-serif); font-style: italic; color: var(--fg-2); max-width: 52ch; }
.ai-stat__src { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); font-size: .75rem; line-height: 1.45; color: var(--fg-3); }
@media (min-width: 1024px) {
	.ai-stat { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; }
	.ai-stat__value { grid-column: 1 / span 4; }
	.ai-stat__body { grid-column: 5 / -1; }
}
.ai-gap__body { margin-top: var(--s-8); margin-left: auto; max-width: 40ch; }

/* ---- s3 · five frames ------------------------------------------------------ */
.ai-frames { display: grid; gap: clamp(var(--s-8), 8vw, var(--s-10)); margin: 0; padding: 0; list-style: none; }
.ai-frame { display: grid; gap: var(--s-5) var(--gutter); align-items: center; }
@media (min-width: 1024px) {
	.ai-frame { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.ai-frame__fig { grid-column: 1 / span 7; }
	.ai-frame__text { grid-column: 9 / -1; }
	.ai-frame.is-flip .ai-frame__fig { grid-column: 6 / -1; grid-row: 1; }
	.ai-frame.is-flip .ai-frame__text { grid-column: 1 / span 4; grid-row: 1; }
}
.ai-frame__fig { position: relative; margin: 0; overflow: hidden; clip-path: var(--clip-sheet); }
.ai-frame__title { margin: var(--s-3) 0 var(--s-4); font-size: var(--t-h3); }
.ai-frame__line { font-size: var(--t-lead); line-height: var(--lh-lead); max-width: 34ch; }
.ai-frame__proof { margin-top: var(--s-4); font-size: var(--t-small); line-height: 1.55; color: var(--fg-2); max-width: 46ch; }
.ai-frame__proof .nx-source { margin-left: var(--s-1); }

.ai-marks { position: absolute; inset: 0; pointer-events: none; }
.ai-mark { position: absolute; left: var(--x); top: var(--y); }
.ai-mark--stamp {
	transform: translate(-50%, -50%) rotate(-4deg);
	padding: 3px 8px;
	background: var(--ink);
	color: var(--molten);
	border: 1.5px solid var(--molten);
	font: 600 .75rem/1.2 var(--f-mono);
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.ai-mark--box {
	width: var(--w);
	height: var(--h);
	transform: translate(-50%, -50%);
	border: 1.5px solid var(--cyan);
}
.ai-mark--box b {
	position: absolute;
	left: -1.5px;
	bottom: 100%;
	padding: 2px 6px;
	background: var(--ink);
	color: var(--cyan);
	font: 600 .6875rem/1.2 var(--f-mono);
	letter-spacing: var(--tr-label);
	text-transform: uppercase;
	white-space: nowrap;
}
.ai-scanline {
	position: absolute;
	left: 0;
	top: -25%;
	width: 2px;
	height: 150%;
	background: var(--n-grad);
	transform-origin: 50% 50%;
	transform: translateX(-60px) rotate(43deg);
	opacity: 0;
	pointer-events: none;
}
html.js:not(.rm) .ai-frame__fig[data-scan] .ai-mark { opacity: 0; }
html.js:not(.rm) .ai-frame__fig.is-scanned .ai-mark { animation: ai-mark-in var(--dur-stamp) var(--ease-stamp) both; animation-delay: calc(var(--dx, .5) * 1400ms + 120ms); }
html.js:not(.rm) .ai-frame__fig.is-scanned .ai-scanline { animation: ai-scan 1600ms linear both; }
@keyframes ai-scan {
	0% { opacity: 1; transform: translateX(-80px) rotate(43deg); }
	92% { opacity: 1; }
	100% { opacity: 0; transform: translateX(calc(var(--fig-w, 900px) + 80px)) rotate(43deg); }
}
@keyframes ai-mark-in { from { opacity: 0; scale: 1.08; } to { opacity: 1; scale: 1; } }
.ai-frame__fig .nx-band { opacity: 0; transition: opacity var(--dur-cut) var(--ease-cut); }
.ai-frame__fig.is-scanned .nx-band, html:not(.js) .ai-frame__fig .nx-band, html.rm .ai-frame__fig .nx-band { opacity: 1; }
@media (max-width: 599px) {
	.ai-mark--stamp { font-size: .625rem; padding: 2px 5px; }
	.ai-mark--box b { font-size: .5625rem; padding: 1px 4px; }
}

/* ---- s4 · verb index (the rows; motion in engines/verb-index.css) --------- */
.ai-verbs { display: grid; gap: var(--s-8); }
.ai-verbs__hemi { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.ai-verbs__brain { width: 44px; height: auto; color: var(--fg-3); flex: none; }
.ai-verbs__brain.is-left .bm-l, .ai-verbs__brain.is-right .bm-r { color: var(--sig); }
.ai-verbs__brain .bm-const { display: none; } /* the constellation is noise at 44 px */
.ai-verbs__brain :is(path, line, circle) { vector-effect: non-scaling-stroke; stroke-width: 1.25; } /* the root attribute does not inherit: without this the 1.5 stroke scales to ~0.1 px */
.ai-verbs__brain .bm-l > g + g, .ai-verbs__brain .bm-r > g + g { opacity: .55; }
.ai-verbs__list { margin: 0; padding: 0; list-style: none; border-bottom: var(--bw) solid var(--rule); }
.ai-verbs__myth { max-width: 52ch; font-size: 1rem; color: var(--fg-2); }

/* ---- s4b · atlas ----------------------------------------------------------- */
.ai-atlas__honest { margin-top: var(--s-4); font-size: var(--t-small); line-height: 1.55; color: var(--fg-2); }
.ai-atlas__filters { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.ai-atlas__fgroup { display: grid; gap: var(--s-2); }
.ai-atlas__count { font-size: .75rem; color: var(--fg-2); }
@media (min-width: 1024px) {
	.ai-atlas__filters { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: var(--s-6); }
}
.ai-atlas__list { margin: 0; padding: 0; list-style: none; border-bottom: var(--bw) solid var(--rule); }
.ai-case { border-top: var(--bw) solid var(--rule); }
.ai-case[hidden] { display: none; }
.ai-case__row {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	grid-template-areas: "thumb head" "flip flip";
	gap: var(--s-2) var(--s-4);
	padding: var(--s-4) var(--s-2) var(--s-4) 0;
	cursor: pointer;
	list-style: none;
	transition: background-color var(--dur-ui) var(--ease-mech), padding var(--dur-ui) var(--ease-mech);
}
.ai-case__row::-webkit-details-marker { display: none; }
.ai-case__row::marker { content: ""; }
.ai-case__thumbwrap { grid-area: thumb; position: relative; display: block; width: 72px; height: 72px; }
.ai-case__thumbwrap::after { content: attr(data-ai); position: absolute; left: 3px; bottom: 3px; padding: 1px 3px; background: var(--ink-2); color: var(--paper); font: 600 .5rem/1.2 var(--f-mono); letter-spacing: .06em; }
.ai-case__thumb { display: block; width: 72px; aspect-ratio: 1; overflow: hidden; }
.ai-case__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-case__head { grid-area: head; display: grid; gap: var(--s-1); min-width: 0; }
.ai-case__sector { font: var(--w-h3) var(--t-h4)/1.25 var(--f-sans); }
.ai-case__scene { font-size: 1rem; line-height: 1.45; color: var(--fg); }
.ai-case__tags { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); margin-top: var(--s-1); }
.ai-case__flip { grid-area: flip; display: inline-flex; align-items: center; gap: var(--s-2); justify-self: start; font-size: .75rem; color: var(--link); }
.ai-case__flip .nx-faq__sign { position: relative; width: 14px; height: 14px; }
.ai-case__d[open] .ai-case__flip .is-closed, .ai-case__d:not([open]) .ai-case__flip .is-open { display: none; }
@media (min-width: 1024px) {
	.ai-case__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head flip"; padding-left: 0; }
	.ai-case__thumbwrap { display: none; }
	.ai-case__flip { justify-self: end; align-self: start; padding-top: .25em; }
}
@media (hover: hover) { .ai-case__row:hover { background: var(--bg-2); padding-left: var(--s-3); } }
.ai-case__row:focus-visible { outline: var(--bw-focus) solid var(--focus); outline-offset: -2px; }
.ai-case__back { padding: 0 0 var(--s-6); }
.ai-case__dl { display: grid; gap: var(--s-3); margin: 0; }
.ai-case__dl > div { display: grid; align-content: start; gap: var(--s-1); padding-top: var(--s-3); border-top: var(--bw) dashed var(--rule); }
.ai-case__dl dt { font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.ai-case__dl dd { margin: 0; font-size: .9375rem; line-height: 1.55; max-width: 62ch; }
.ai-case__dl dd.nx-mono { font-size: .8125rem; }
.ai-case__anchor { display: block; margin-bottom: var(--s-2); }
.ai-case__alabel { display: inline-flex; font: 500 .6875rem/1.2 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.ai-case__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); }
.ai-case__label { margin-top: var(--s-3); }
@media (min-width: 768px) {
	.ai-case__dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
	.ai-case__dl > div:first-child { grid-column: 1 / -1; }
}
.ai-atlas__viewer { --iv-ar: 4 / 5; }
.ai-atlas__item .nx-media { height: 100%; }
/* stamps sit on the artefact they name (per-photo --x / --y from the dataset) */
.ai-atlas__stamp {
	position: absolute;
	z-index: 2;
	top: var(--y);
	max-width: calc(100% - var(--x) - 4%);
	padding: 3px 8px;
	background: var(--ink);
	font: 600 .75rem/1.25 var(--f-mono);
	letter-spacing: .03em;
	text-transform: uppercase;
}
.ai-atlas__stamp.is-l { left: var(--x); }
.ai-atlas__stamp.is-r { right: var(--x); }
.ai-atlas__stamp.is-sig { color: var(--cyan); border: 1.5px solid var(--cyan); }
.ai-atlas__stamp.is-leak { color: var(--molten); border: 1.5px solid var(--molten); transform: rotate(-4deg); }
.ai-atlas__sector { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: var(--s-2) var(--s-4); background: color-mix(in srgb, var(--ink) 72%, transparent); color: var(--paper); font-size: .6875rem; letter-spacing: .04em; }
.ai-atlas__empty { padding: var(--s-5) 0; border-block: var(--bw) solid var(--rule); font-family: var(--f-serif); font-style: italic; font-size: var(--t-lead); }
/* nothing matches: no orphan photo beside an empty list */
.ai-atlas__iv.is-empty { display: none; }
.ai-atlas__missing { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-8); }
.ai-atlas__q { font: var(--w-h3) var(--t-h4)/1.3 var(--f-sans); }

/* ---- s5 · feed the machine ----------------------------------------------- */
.ai-feed__honest { margin-top: var(--s-4); font-size: var(--t-small); line-height: 1.55; color: var(--fg-2); }
.ai-bench { display: grid; gap: var(--s-6); }
.ai-bench__tabs { gap: var(--s-2) var(--s-6); }
.ai-bench__tabs [role="tab"] { font: 600 1rem/1.2 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; }
.ai-station { display: grid; gap: var(--s-6); }
.ai-station[hidden] { display: none; }
.ai-station:focus-visible { outline: var(--bw-focus) solid var(--focus); outline-offset: 6px; }
.ai-station__head { display: grid; gap: var(--s-3); max-width: 64ch; }
.ai-station__title { font-size: var(--t-h3); }
.ai-station__lead { font-family: var(--f-serif); font-size: var(--t-lead); line-height: var(--lh-lead); }
.ai-station__decode { margin-top: var(--s-5); font-size: var(--t-lead); max-width: 40ch; }
.ai-station__cta { display: grid; gap: var(--s-3); justify-items: start; padding-top: var(--s-5); border-top: var(--bw) solid var(--rule); }
.ai-station__q { font: var(--w-h3) var(--t-h4)/1.3 var(--f-sans); }
html:not(.js) .ai-station[hidden] { display: grid; }
html:not(.js) .ai-bench__tabs { display: none; }

.ai-calls { display: grid; gap: var(--s-4); }
.ai-calls__persona { display: grid; gap: var(--s-2); }
.ai-calls__persona .nx-seg > * { min-height: 44px; }
.ai-calls__note { font-family: var(--f-serif); font-style: italic; color: var(--fg-2); max-width: 60ch; }
.ai-calls__disclosure { font-size: .8125rem; color: var(--sig); }
.ai-calls__voices { font-size: var(--t-small); color: var(--fg-2); }
.ai-calls__end { max-width: 70ch; font-size: .9375rem; line-height: 1.55; }
html:not(.js) .ai-calls__call[hidden] { display: block; }

/* ---- s6 · meter fallback ------------------------------------------------- */
.ai-meter__fallback { display: grid; gap: var(--s-4); max-width: 820px; }
.ai-meter__formula { font-size: .8125rem; line-height: 1.6; }

/* ---- s7 · services --------------------------------------------------------- */
.ai-services__list { border-bottom: var(--bw) solid var(--rule); }
.ai-svc .nx-index__title { font-size: var(--t-h4); }
@container (min-width: 640px) {
	.ai-svc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; grid-template-areas: "title value arrow" "meta value arrow"; align-items: start; }
	.ai-svc .nx-index__meta { max-width: 46ch; }
	.ai-svc .nx-index__value { align-self: center; }
}
.ai-svc .nx-index__value { display: grid; gap: 2px; color: var(--sig); }
.ai-svc__rl { font: 500 .625rem/1.2 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-3); }
.ai-svc__badge { display: block; margin-top: var(--s-1); font-size: .75rem; color: var(--fg); }
.ai-services__viewer { --iv-ar: 4 / 5; }
.ai-services__viewer .nx-media { height: 100%; }
@media (min-width: 1024px) {
	.ai-services__iv .nx-iv__list { grid-column: 1 / span 7; }
	.ai-services__iv .nx-iv__viewer { grid-column: 9 / -1; }
}

/* ---- s8 · method ------------------------------------------------------------ */
.ai-path { position: relative; display: grid; gap: var(--s-6) var(--gutter); margin: 0; padding: 0; list-style: none; }
.ai-path__step { display: grid; gap: var(--s-2); align-content: start; }
.ai-path__letter { font: 880 var(--t-mega)/var(--lh-mega) var(--f-sans); letter-spacing: var(--tr-mega); color: var(--fg); --flar: 0; }
.ai-path__title { font-size: var(--t-h4); font-weight: var(--w-strong); }
.ai-path__text { color: var(--fg-2); font-size: .9375rem; line-height: 1.55; }
@media (min-width: 768px) { .ai-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.ai-path { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: var(--s-6); }
	.ai-path::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--n-grad); clip-path: polygon(2px 0, 100% 0, calc(100% - 2px) 100%, 0 100%); }
	.ai-path__step:nth-child(2) { padding-top: var(--s-6); }
	.ai-path__step:nth-child(3) { padding-top: var(--s-9); }
	.ai-path__step:nth-child(4) { padding-top: calc(var(--s-9) + var(--s-6)); }
}
.ai-method__rules { display: grid; gap: var(--s-2); margin: var(--s-8) 0 var(--s-6); font-family: var(--f-serif); font-size: var(--t-lead); line-height: 1.45; max-width: 52ch; }
.ai-method__guarantee { font-weight: 600; }
.ai-tiers { max-width: 980px; }
.ai-tiers th { width: 26%; color: var(--fg); font-size: .8125rem; }
@media (max-width: 767px) { .ai-tiers :is(th, td) { width: auto; } .ai-tiers td { grid-template-columns: minmax(0, 1fr); } .ai-tiers__price { text-align: left; } }
.ai-tiers__price { white-space: nowrap; font-weight: 600; color: var(--fg); }
.ai-tiers__vat { margin-top: var(--s-3); color: var(--fg-2); }
.ai-method__cta { margin-top: var(--s-7); }

/* ---- s9 · trust -------------------------------------------------------------- */
.ai-trustbox__grid { row-gap: var(--s-8); }
@media (min-width: 1024px) {
	.ai-trustbox__a { grid-column: 1 / span 6; }
	.ai-trustbox__b { grid-column: 8 / -1; padding-top: var(--s-6); }
}
.ai-spec { margin: var(--s-6) 0 var(--s-5); padding: 0; list-style: none; border-bottom: var(--bw) solid var(--rule); }
.ai-spec li { position: relative; padding: var(--s-3) 0 var(--s-3) var(--s-6); border-top: var(--bw) solid var(--rule); font-size: 1.0625rem; line-height: 1.45; }
.ai-spec li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 14px; height: 1.5px; background: var(--fg); transform: rotate(-47deg); }
.ai-trustbox__erp { margin-bottom: var(--s-4); font: var(--w-h2) var(--t-h3)/1.1 var(--f-sans); letter-spacing: var(--tr-h3); text-wrap: balance; }
.ai-trustbox__b > p + p { margin-top: var(--s-4); }
.ai-trustbox__proof { display: grid; gap: var(--s-3); margin: var(--s-5) 0; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.5; }
.ai-trustbox__proof .nx-mono { font-size: .6875rem; color: var(--fg-2); }
.ai-trustbox__sys { padding: var(--s-4) 0; border-block: var(--bw) solid var(--rule); font: 500 .8125rem/1.7 var(--f-mono); }
.ai-trustbox__sys .nx-mono-label { display: block; margin-bottom: var(--s-2); }

/* ---- s10 · proof ------------------------------------------------------------- */
.ai-proof__empty { margin-top: var(--s-4); font-family: var(--f-serif); font-style: italic; color: var(--fg-2); }
.ai-evidence { margin: 0; padding: 0; list-style: none; border-bottom: var(--bw) solid var(--rule); }
.ai-evidence__row { display: grid; gap: var(--s-3) var(--gutter); padding: var(--s-6) 0; border-top: var(--bw) solid var(--rule); }
.ai-evidence__q { font-size: var(--t-lead); line-height: 1.45; max-width: 60ch; }
.ai-evidence__src { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: baseline; font-size: .75rem; color: var(--fg-2); }
@media (min-width: 1024px) {
	.ai-evidence__row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.ai-evidence__q { grid-column: 1 / span 8; }
	.ai-evidence__src { grid-column: 9 / -1; justify-content: flex-end; text-align: right; }
}
.ai-proof__more { margin-top: var(--s-6); }

/* ---- s11 · FAQ ----------------------------------------------------------------- */
.ai-faq .nx-grid { row-gap: var(--s-6); }
@media (min-width: 1024px) {
	.ai-faq__head { grid-column: 1 / span 5; }
	.ai-faq__list { grid-column: 7 / -1; }
}

/* ---- ambient corner tag ----------------------------------------------------- */
.ai-chip { bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); }
/* bottom-right, as on /ai/industrial/: the language notice keeps the bottom-left corner */
@media (min-width: 768px) { .ai-chip { left: auto; right: var(--margin); } }
.ai-chip span { max-width: 28ch; }
.ai-chip .nx-link { color: var(--cyan); white-space: nowrap; }
.ai-chip[hidden] { display: none; }
@media (max-width: 767px) { .ai-chip, .ai-chip[hidden] { display: none; } }

} /* end @layer pages */
