/* Multi-page mock: components for the inner pages. Layered over
   /css/styles.css, so everything here uses the same tokens. */

/* Current page in the menu */
.nav a[aria-current="page"] { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 2px; }

/* Placeholder for facts still to come (company number etc.) */
.tbc { background: rgba(39, 71, 196, 0.1); outline: 1px dashed var(--pencil); border-radius: 2px; padding: 0 0.25em; color: var(--pencil); font-family: var(--mono); font-size: 0.9em; }

.section--paper { background: var(--paper); }
.section-foot { margin-top: 2rem; }

/* Photos: greyscale with a faint ink tint, like the section backgrounds. */
.photo { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: var(--ink); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.photo::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0.12; mix-blend-mode: multiply; pointer-events: none; }
/* A margin note pinned to a photo */
.photo__note { position: absolute; left: 1rem; bottom: 1rem; z-index: 1; margin: 0; max-width: 16rem; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 0.8rem 1rem; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); font-size: 0.875rem; transform: rotate(-1.5deg); }
.photo__note strong { display: block; font: 600 1.5rem/1.1 var(--display); letter-spacing: -0.02em; }
.photo__note .note-label { margin-bottom: 0.3rem; }

/* ------------------------------------------------------------ Page heads */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.04; max-width: 20ch; }
.page-head .lede { max-width: 38rem; margin-top: 1.5rem; }
.page-head .note-label { margin-bottom: 1rem; }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.page-head__grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
@media (max-width: 58rem) { .page-head__grid--split { grid-template-columns: minmax(0, 1fr); } }

/* Dark: continues the header */
.page-head--dark { background: radial-gradient(60rem 28rem at 85% 30%, #22423A, transparent 70%), var(--ink); color: var(--on-ink-muted); }
.page-head--dark h1, .page-head--photo h1 { color: var(--on-ink); }
.page-head--dark .lede, .page-head--photo .lede { color: #CFDAD5; }
.page-head--dark .note-label, .page-head--photo .note-label { color: var(--marker); }
.page-head--dark .marker, .page-head--photo .marker { --hl-h: 100%; --hl-y: 0; --hl-in: 0.26em; color: var(--ink); padding: 0 0.38em; margin: 0 -0.2em; }
.page-head--dark .button, .page-head--photo .button { background: var(--marker); color: var(--ink); }
.page-head--dark .button:hover, .page-head--photo .button:hover { box-shadow: 0 4px 0 var(--paper); }
.page-head--dark .link-arrow, .page-head--photo .link-arrow { color: var(--on-ink); text-decoration-color: var(--marker); }
.page-head--dark :focus-visible, .page-head--photo :focus-visible { outline-color: var(--marker); }

/* Light: the page colour, highlighter as in the body */
.page-head--light { background: var(--ground); border-bottom: 1px solid var(--rule); }
.page-head--light h1 { max-width: 22ch; font-size: clamp(2.6rem, 5.4vw, 4.5rem); }

/* Full-bleed photo with the text over it */
.page-head--photo { --photo-pos: center 35%; color: var(--on-ink-muted); min-height: min(40rem, 82vh); display: flex; align-items: flex-end; padding-top: clamp(6rem, 14vw, 10rem); }
.page-head--photo::after { background: linear-gradient(90deg, rgba(18, 36, 31, 0.94), rgba(18, 36, 31, 0.6) 60%, rgba(18, 36, 31, 0.35)), linear-gradient(transparent 40%, rgba(18, 36, 31, 0.85)); }
.page-head--photo .wrap { width: 100%; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(241, 244, 242, 0.25); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: 0.875rem; color: var(--on-ink-muted); }
.hero-stats dd { margin: 0; font: 600 2.25rem/1.1 var(--display); color: var(--on-ink); letter-spacing: -0.02em; }

/* Photo bleeding off the right edge, text on paper */
.page-head--split-photo { background: var(--paper); padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 34rem; }
.page-head--split-photo .page-head__text { align-self: center; padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.page-head--split-photo .photo { border-radius: 0; height: 100%; min-height: 20rem; }
@media (max-width: 58rem) { .page-head--split-photo { grid-template-columns: minmax(0, 1fr); } .page-head--split-photo .page-head__text { padding: 3rem var(--gutter); } }

/* Highlighter yellow */
.page-head--marker { background: var(--marker); color: var(--ink); }
.page-head--marker .note-label { color: var(--ink); }
.page-head--marker .lede { color: var(--ink); }
.case-index { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 2rem; max-width: 56rem; }
@media (max-width: 40rem) { .case-index { grid-template-columns: minmax(0, 1fr); } }
.case-index a { display: block; padding: 0.9rem 0; border-top: 2px solid var(--ink); color: var(--ink); text-decoration: none; font: 600 1.1rem/1.3 var(--display); }
.case-index a:hover { text-decoration: underline; }
.case-index span { display: block; font: 500 0.6875rem/1.6 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }

/* Dictionary entry */
.page-head--dict { background: var(--paper); border-bottom: 1px solid var(--rule); }
.dict { max-width: 52rem; }
.dict__word { font: 600 clamp(3.5rem, 11vw, 8rem)/0.95 var(--display); letter-spacing: -0.04em; color: var(--ink); margin: 0; }
.dict__dot { color: var(--pencil); font-weight: 500; padding: 0 0.04em; }
.dict__say { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.25rem; margin: 1.25rem 0 1.75rem; font: 400 1.125rem/1.4 var(--mono); color: var(--muted); }
.dict__say em { font-style: normal; color: var(--pencil); }
.dict__def { list-style: none; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--rule); counter-reset: d; display: grid; gap: 1rem; }
.dict__def li { counter-increment: d; display: grid; grid-template-columns: 2rem 1fr; font-size: 1.375rem; line-height: 1.45; color: var(--ink); }
.dict__def li::before { content: counter(d) "."; font: 600 1.375rem/1.45 var(--display); }
.dict__def q { display: block; font-size: 1.0625rem; color: var(--muted); margin-top: 0.35rem; quotes: "\201C" "\201D"; }
.dict__origin { margin: 1.75rem 0 0; padding-left: 1rem; border-left: 3px solid var(--pencil); color: var(--text); }
.dict__origin b { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-right: 0.5rem; }

/* ------------------------------------------------------------ Home: one section per service */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.feature--flip > :first-child { order: 2; }
@media (max-width: 58rem) { .feature { grid-template-columns: minmax(0, 1fr); } .feature--flip > :first-child { order: 0; } }
.feature .note-label { margin-bottom: 0.9rem; }
.feature h2 { margin-bottom: 1.25rem; }
.feature__text > p:not(.note-label) { font-size: 1.125rem; }
.feature .ticks { margin: 1.5rem 0 1.75rem; }
.feature .photo { aspect-ratio: 5 / 4; }
.section--ink .feature .note-label { color: var(--marker); }
.section--ink .ticks strong, .section--ink .feature__text > p { color: var(--on-ink-muted); }
.section--ink .link-arrow { color: var(--on-ink); text-decoration-color: var(--marker); }
.section--ink .ticks li { color: var(--on-ink-muted); }

/* Home: the agents' morning, as a live log */
.log { background: var(--paper); border-radius: 10px; box-shadow: 0 30px 60px -36px rgba(18, 36, 31, 0.45); overflow: hidden; }
.log__head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.25rem; background: var(--sage); font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.log__live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--pencil); }
.log__live::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--pencil); animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.25; } }
.log ol { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem; }
.log li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--rule); font-size: 0.9375rem; color: var(--ink); }
.log li:last-child { border-bottom: 0; }
.log time { font: 500 0.75rem/1.9 var(--mono); color: var(--muted); }
.log b { display: block; font: 500 0.6875rem/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--pencil); font-weight: 500; }
.log .pill { margin-left: 0.4rem; }

/* ------------------------------------------------------------ Demos: shared step states */
[data-demo] [data-at] { opacity: 0; transition: opacity 0.35s; }
[data-demo] [data-at].is-in { opacity: 1; }
[data-demo] .slot { position: relative; }
[data-demo] .slot[data-at] { opacity: 1; }
[data-demo] .slot > * { opacity: 0; transition: opacity 0.3s; }
[data-demo] .slot.is-in > * { opacity: 1; animation: msg-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
[data-demo] .slot.is-typing::before { content: attr(data-pending); position: absolute; left: 0; top: 0; z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem 0.5rem 1.6rem; border-radius: 999px; background: var(--paper); box-shadow: 0 1px 0 var(--rule); font: 500 0.75rem/1 var(--mono); color: var(--muted); }
[data-demo] .slot.is-typing::after { content: ""; position: absolute; left: 0.75rem; top: 0.95rem; z-index: 2; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--pencil); animation: pulse-dot 0.8s ease-in-out infinite; }
.log li[data-at].is-in { animation: slide 0.45s ease-out both; }

/* ------------------------------------------------------------ Agents: the deck */
/* One component: the examples on the left (one open at a time), the open
   example's demo on the right. */
.deck { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); background: var(--paper); border-radius: 12px; box-shadow: 0 30px 60px -36px rgba(18, 36, 31, 0.45); overflow: hidden; }
@media (max-width: 58rem) { .deck { grid-template-columns: minmax(0, 1fr); } }
.deck__list { padding: 0.75rem 0; border-right: 1px solid var(--rule); }
@media (max-width: 58rem) { .deck__list { border-right: 0; border-bottom: 1px solid var(--rule); } }
.deck__item { position: relative; border-bottom: 1px solid var(--ground); }
.deck__item:last-child { border-bottom: 0; }
.deck__item.is-open::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink); }
.deck__item h3 { margin: 0; }
.deck__toggle { width: 100%; display: grid; gap: 0.25rem; text-align: left; background: none; border: 0; padding: 1.1rem 1.75rem; cursor: pointer; font: inherit; color: inherit; }
.deck__item.is-open .deck__toggle { cursor: default; padding-bottom: 0.4rem; }
.deck__title { font: 600 1.2rem/1.25 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.deck__item:not(.is-open) .deck__title { color: var(--text); }
.deck__item:not(.is-open) .deck__title::after { content: " \2192"; color: var(--pencil); }
.deck__item:not(.is-open) .deck__toggle:hover .deck__title { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pencil); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.deck__panel { padding: 0 1.75rem 1.4rem; font-size: 0.9375rem; }
.deck__panel[hidden] { display: none; }
.deck__panel .example__desc { margin-bottom: 1rem; }
.deck__panel .flow li { font-size: 0.9rem; }
.deck__stage { display: grid; padding: 1.5rem; background: var(--ground); }
.deck__demo { grid-area: 1 / 1; visibility: hidden; }
.deck__demo.is-active { visibility: visible; }
.deck__stage .demo { background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
.deck__stage .demo .thread .msg { background: var(--ground); }
.deck__stage .ledger, .deck__stage .checks, .deck__stage .tender, .deck__stage .draft-progress, .deck__stage .demo__sum { background: var(--ground); }
.deck__stage .ledger th, .deck__stage .ledger td, .deck__stage .checks th, .deck__stage .checks td { border-bottom-color: var(--paper); }
.deck__stage .score__track { background: var(--paper); }

/* Demo frame shared by the four examples */
.demo { background: var(--ground); border-radius: 8px; padding: 1rem; font-size: 0.9375rem; align-self: start; }
.demo__head { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 0.75rem; font: 500 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.demo__sum { margin: 0.9rem 0 0; padding: 0.75rem 0.9rem; background: var(--paper); border-left: 3px solid var(--pencil); border-radius: 0 6px 6px 0; color: var(--ink); font-size: 0.9375rem; }
.demo .thread { background: none; padding: 0; }

/* Credit control: ledger rows whose status moves on */
.ledger { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 6px; overflow: hidden; }
.ledger th, .ledger td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--ground); vertical-align: middle; }
.ledger thead th { font: 500 0.6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ledger tbody th { color: var(--ink); font-weight: 600; }
.ledger td.num { font: 500 0.875rem/1.4 var(--mono); color: var(--ink); white-space: nowrap; }
.ledger td.days { font: 400 0.8125rem/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.status { display: grid; }
.status > * { grid-area: 1 / 1; align-self: center; justify-self: start; }
.status > span { font-size: 0.8125rem; color: var(--ink); padding: 0.25rem 0.45rem; border-radius: 3px; background: var(--ground); white-space: nowrap; }
.status > .is-overdue { background: #F6E0DA; }
.status > .is-good { background: #DDEBE3; }
[data-demo] .status > [data-at] { transform: translateY(4px); transition: opacity 0.3s, transform 0.3s; }
[data-demo] .status > [data-at].is-in { transform: none; }
.status > *:has(~ .is-in) { opacity: 0 !important; }

/* Invoice financing: checks tick off, one invoice drops out */
.checks { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 6px; overflow: hidden; }
.checks th, .checks td { padding: 0.6rem 0.6rem; border-bottom: 1px solid var(--ground); text-align: left; }
.checks thead th { font: 500 0.625rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.checks thead th.c, .checks td.c { text-align: center; width: 3.25rem; }
.checks tbody th { font: 500 0.8125rem/1.3 var(--mono); color: var(--ink); }
.checks tbody th span { display: block; font: 400 0.8125rem/1.3 var(--body); color: var(--muted); }
.checks td.num { font: 500 0.875rem/1.3 var(--mono); color: var(--ink); text-align: right; white-space: nowrap; }
.tick, .cross { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; font-size: 0.75rem; font-weight: 700; }
.tick { background: var(--ink); color: var(--marker); }
.tick::before { content: "\2713"; }
.cross { background: #B4412E; color: #fff; }
.cross::before { content: "\2715"; }
[data-demo] .tick[data-at], [data-demo] .cross[data-at] { transform: scale(0.4); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
[data-demo] .tick.is-in, [data-demo] .cross.is-in { transform: none; }
.checks tr.is-out { transition: opacity 0.4s; }
[data-demo] .row-out.is-in ~ * { }
.checks .out-note { display: block; font: 500 0.6875rem/1.3 var(--mono); color: #B4412E; text-transform: uppercase; letter-spacing: 0.03em; }
.drawdown { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.9rem; }
.drawdown__total { margin: 0; color: var(--ink); }
.drawdown__total strong { font: 600 1.5rem/1 var(--display); display: block; letter-spacing: -0.02em; }
.drawdown__total span { font-size: 0.8125rem; color: var(--muted); }
.drawdown__marks { display: flex; gap: 0.5rem; align-items: center; margin: 0; }
[data-demo] .stamp[data-at] { transform: rotate(-6deg) scale(1.8); transition: opacity 0.2s, transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
[data-demo] .stamp.is-in { transform: rotate(-6deg) scale(1); }

/* Tenders: opportunities scored, a shortlist emerges */
.tenders { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.tender { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 0.25rem 1rem; align-items: center; background: var(--paper); border-radius: 6px; padding: 0.65rem 0.8rem; border-left: 3px solid transparent; transition: border-color 0.3s, opacity 0.3s; }
.tender__name { color: var(--ink); font-weight: 500; font-size: 0.9rem; line-height: 1.3; }
.tender__name span:not(.pill) { display: block; font: 400 0.75rem/1.4 var(--mono); color: var(--muted); }
.score { display: grid; grid-template-columns: 1fr 2rem; align-items: center; gap: 0.5rem; }
.score__track { height: 0.5rem; background: var(--ground); border-radius: 4px; overflow: hidden; }
.score__bar { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.score__bar.is-in { width: var(--score); }
.score__num { font: 500 0.8125rem/1 var(--mono); color: var(--ink); text-align: right; }
.tenders[data-at] { opacity: 1; }
.tender__pick { display: none; }
.tenders.is-in .tender--pick { border-left-color: var(--ink); }
.tenders.is-in .tender__pick { display: inline-block; margin-left: 0.4rem; }
.tenders.is-in .tender:not(.tender--pick) .score__bar { background: #8FA39B; }
.demo__row { display: grid; gap: 0.6rem; margin-top: 0.9rem; }
.draft-progress { background: var(--paper); border-radius: 6px; padding: 0.75rem 0.9rem; }
.draft-progress p { margin: 0; color: var(--ink); font-size: 0.9rem; }
.draft-progress__bar { height: 0.4rem; margin: 0.6rem 0; background: var(--ground); border-radius: 4px; overflow: hidden; }
.draft-progress__bar i { display: block; height: 100%; width: 0; background: var(--pencil); border-radius: 4px; transition: width 2.4s linear; }
.draft-progress__bar i.is-in { width: 100%; }
.flags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.flag { font: 500 0.6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; padding: 0.35rem 0.5rem; border-radius: 3px; border: 1.5px solid var(--pencil); color: var(--pencil); }

/* ------------------------------------------------------------ Engineering: maturity chart */
.chart { background: #1A322C; border: 1px solid rgba(241, 244, 242, 0.1); border-radius: 12px; padding: 1.25rem 1.25rem 1rem; color: var(--on-ink-muted); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: 0.5rem; }
.chart__title { margin: 0; font: 600 1.05rem/1.3 var(--body); color: var(--on-ink); }
.chart__title span { display: block; font: 400 0.75rem/1.5 var(--mono); color: var(--on-ink-muted); letter-spacing: 0.02em; }
.legend-keys { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--on-ink); }
.legend-keys li { display: inline-flex; align-items: center; gap: 0.4rem; }
.key { display: inline-block; width: 1.25rem; height: 0; border-top: 2px solid var(--marker); }
.key--muted { border-top: 2px dashed #8FA39B; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: rgba(241, 244, 242, 0.1); stroke-width: 1; }
.chart .axis text { fill: #AFC0B9; font: 400 11px var(--mono); }
.chart .axis .lvl { fill: #F1F4F2; font: 500 11px var(--body); }
.chart .band { fill: rgba(247, 227, 106, 0.06); }
.chart .band-label { fill: var(--marker); font: 500 10px var(--mono); letter-spacing: 0.06em; }
.line-plan { fill: none; stroke: var(--marker); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 0; animation: line-draw 1.8s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.line-drift { fill: none; stroke: #8FA39B; stroke-width: 2; stroke-dasharray: 5 5; animation: appear 0.8s 0.3s both; }
@keyframes line-draw { from { stroke-dashoffset: 600; } }
.pt circle.dot { fill: var(--marker); stroke: #1A322C; stroke-width: 2; }
.pt circle.hit { fill: transparent; }
.pt { cursor: pointer; outline: none; animation: pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) both; transform-box: fill-box; transform-origin: center; }
.pt:nth-of-type(1) { animation-delay: 0.6s; } .pt:nth-of-type(2) { animation-delay: 0.95s; } .pt:nth-of-type(3) { animation-delay: 1.3s; } .pt:nth-of-type(4) { animation-delay: 1.65s; } .pt:nth-of-type(5) { animation-delay: 2s; }
.pt .tip { opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.pt:hover .tip, .pt:focus .tip, .pt:focus-visible .tip { opacity: 1; }
.pt:focus-visible circle.dot { stroke: var(--paper); }
.tip rect { fill: var(--paper); }
.tip text { fill: var(--ink); font: 400 11.5px var(--body); }
.tip text .t { font: 600 11.5px var(--body); }
.end-label { font: 500 12px var(--body); fill: var(--on-ink); }
.end-label--muted { fill: #AFC0B9; }
.chart__note { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--on-ink-muted); }

/* Engineering: legacy modernisation */
.legacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 58rem) { .legacy__grid { grid-template-columns: minmax(0, 1fr); } }
.legacy__grid h3 { font: 600 1.4rem/1.2 var(--display); color: var(--on-ink); margin-bottom: 1.25rem; }
.deliver { list-style: none; margin: 0; padding: 0; counter-reset: l; display: grid; gap: 0; }
.deliver li { counter-increment: l; display: grid; grid-template-columns: 2.75rem 1fr; padding: 1rem 0; border-top: 1px solid rgba(241, 244, 242, 0.15); }
.deliver li::before { content: counter(l, decimal-leading-zero); font: 500 1.35rem/1.2 var(--display); color: var(--marker); grid-row: span 2; }
.deliver b { color: var(--on-ink); font-weight: 600; display: block; margin-bottom: 0.2rem; }
.slices { background: #1A322C; border: 1px solid rgba(241, 244, 242, 0.1); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; }
.slices__rows { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.slices__rows li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; align-items: center; font-size: 0.8125rem; color: var(--on-ink); }
.bar { display: flex; gap: 2px; height: 1.4rem; }
.bar span { display: flex; align-items: center; justify-content: flex-end; padding: 0 0.4rem; font: 500 0.6875rem/1 var(--mono); border-radius: 0; }
.bar span:first-child { border-radius: 4px 0 0 4px; }
.bar span:last-child { border-radius: 0 4px 4px 0; }
.bar span:only-child { border-radius: 4px; }
.bar .old { background: repeating-linear-gradient(45deg, #5D7068 0 3px, #485A53 3px 7px); color: var(--on-ink); justify-content: flex-start; }
.bar .new { background: var(--marker); color: var(--ink); }
.assure { background: rgba(241, 244, 242, 0.06); border-left: 3px solid var(--marker); border-radius: 0 10px 10px 0; padding: 1.25rem 1.5rem; }
.assure h3 { margin-bottom: 0.6rem; }
.assure ul { margin: 0.75rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.legacy .section-head p { color: var(--on-ink-muted); }
#legacy { --photo: url("/images/photos/servers.webp"); --photo-contrast: 1.2; }
#legacy::after { background: linear-gradient(rgba(18, 36, 31, 0.86), rgba(18, 36, 31, 0.97) 40%); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
@media (max-width: 64rem) { .steps { grid-template-columns: minmax(0, 1fr); gap: 0; } .steps li { display: grid; grid-template-columns: 3rem 1fr; padding: 1rem 0; } .steps li > * { grid-column: 2; } .steps li::before { grid-row: span 2; grid-column: 1; } }
.steps li { counter-increment: s; padding-top: 1rem; border-top: 2px solid var(--ink); font-size: 0.9375rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 2rem/1 var(--display); color: var(--pencil); margin-bottom: 0.75rem; }
.steps h3 { font: 600 1.15rem/1.3 var(--display); margin-bottom: 0.4rem; }

/* ------------------------------------------------------------ Training */
.course-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 64rem) { .course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .course-cards { grid-template-columns: minmax(0, 1fr); } }
.course { background: var(--paper); border-radius: 10px; padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.course__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.course__meta span { font: 500 0.6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.35rem 0.5rem; border-radius: 3px; background: var(--ground); color: var(--ink); }
.course__meta span:first-child { background: var(--marker); }
.course h3 { font: 600 1.3rem/1.2 var(--display); letter-spacing: -0.01em; }
.course__outcome { color: var(--text); font-size: 0.9375rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px dashed var(--rule); }
.course__outcome::before { content: "You'll leave able to "; color: var(--muted); }
.course--wide { grid-column: span 2; background: var(--ink); color: var(--on-ink-muted); }
@media (max-width: 40rem) { .course--wide { grid-column: auto; } }
.course--wide h3 { color: var(--on-ink); }
.course--wide .course__outcome { color: var(--on-ink-muted); border-top-color: rgba(241, 244, 242, 0.2); }
.course--wide .course__outcome::before { content: ""; }
.course--wide .course__meta span { background: rgba(241, 244, 242, 0.12); color: var(--on-ink); }
.course--wide .course__meta span:first-child { background: var(--marker); color: var(--ink); }

.stages { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: st; }
@media (max-width: 52rem) { .stages { grid-template-columns: minmax(0, 1fr); } }
.stages li { counter-increment: st; position: relative; background: var(--ground); border-radius: 10px; padding: 1.5rem; }
.stages li::before { content: counter(st); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--marker); font: 600 0.9rem/1 var(--display); margin-bottom: 0.9rem; }
.stages li:not(:last-child)::after { content: "\2192"; position: absolute; right: -1.05rem; top: 1.6rem; font-size: 1.25rem; color: var(--pencil); }
@media (max-width: 52rem) { .stages li:not(:last-child)::after { display: none; } }
.stages h3 { font: 600 1.2rem/1.25 var(--display); margin-bottom: 0.4rem; }
.reach { margin: 0 0 3rem; }
.reach__bar { display: flex; gap: 2px; height: 2.25rem; margin: 0.75rem 0 0.6rem; }
.reach__bar span { display: flex; align-items: center; padding: 0 0.75rem; font: 500 0.8125rem/1 var(--mono); color: var(--ink); white-space: nowrap; }
.reach__bar .us { flex: 2; background: var(--marker); border-radius: 4px 0 0 4px; }
.reach__bar .them { flex: 3; background: repeating-linear-gradient(45deg, #DCE4E0 0 3px, #C6D1CC 3px 7px); border-radius: 0 4px 4px 0; }
.reach__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--muted); }
.reach__legend i { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; margin-right: 0.4rem; vertical-align: -0.1em; background: var(--marker); box-shadow: inset 0 0 0 1px var(--ink); }
.reach__legend li + li i { background: repeating-linear-gradient(45deg, #DCE4E0 0 2px, #C6D1CC 2px 4px); }

/* ------------------------------------------------------------ Experience: case studies */
.case-study { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); scroll-margin-top: 5.5rem; }
@media (max-width: 52rem) { .case-study { grid-template-columns: minmax(0, 1fr); } }
.case-facts { margin: 0; align-self: start; position: sticky; top: 6rem; display: grid; gap: 0.9rem; border-left: 3px solid var(--pencil); padding-left: 1rem; font-size: 0.9375rem; }
@media (max-width: 52rem) { .case-facts { position: static; } }
.case-facts dt { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: 0.15rem 0 0; color: var(--ink); }
.case-study h2 { font: 600 clamp(1.7rem, 3vw, 2.4rem)/1.12 var(--display); letter-spacing: -0.02em; margin-bottom: 1.25rem; color: var(--ink); }
.case-study__body { max-width: 46rem; }
.case-study__body h3 { font: 600 1.05rem/1.3 var(--body); color: var(--ink); margin: 1.75rem 0 0.5rem; }
.case-study__body > p:not(.note-label) { font-size: 1.0625rem; }
.case-study__body ul.plain { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.outcomes { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.outcomes li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.4rem; color: var(--ink); }
.outcomes li::before { content: "\2713"; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; border-radius: 50%; background: var(--ink); color: var(--marker); font-size: 0.7rem; font-weight: 700; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0 0; padding: 1.25rem 0; border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 0.875rem; color: var(--muted); }
.stats dd { margin: 0; font: 600 2.25rem/1.1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.case-photo { margin: 0 0 clamp(2.5rem, 5vw, 4rem); aspect-ratio: 21 / 8; }

/* Selected work cards on the home page */
.work-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 64rem) { .work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .work-cards { grid-template-columns: minmax(0, 1fr); } }
.work-card { position: relative; background: var(--ground); border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: transform 0.15s, box-shadow 0.15s; }
.work-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(18, 36, 31, 0.5); }
.work-card h3 { font: 600 1.2rem/1.25 var(--display); letter-spacing: -0.01em; }
.work-card h3 a { color: inherit; text-decoration: none; }
.work-card h3 a::after { content: ""; position: absolute; inset: 0; }
.work-card__fact { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--rule); font-size: 0.9rem; color: var(--ink); }
.work-card__fact strong { font: 600 1.5rem/1 var(--display); display: block; margin-bottom: 0.3rem; }

/* About */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 52rem) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principles > div { background: var(--ground); border-radius: 10px; padding: 1.75rem; }
.principles h3 { font: 600 1.35rem/1.2 var(--display); margin-bottom: 0.6rem; }
.company { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 2rem; max-width: 44rem; }
.company dt { font: 500 0.75rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.company dd { margin: 0; color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-grid > div { background: var(--paper); border-radius: 10px; padding: 2rem; }
.contact-grid h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.contact-grid .button, .contact-grid .link-big { margin-top: 1.25rem; }
.link-big { display: inline-block; font: 600 1.25rem/1.3 var(--display); color: var(--ink); text-decoration-color: var(--pencil); text-decoration-thickness: 2px; }

/* The footer nav wraps rather than squeezing the line beside it. */
.site-footer__inner { grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr); }
@media (max-width: 40rem) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__company { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(241, 244, 242, 0.12); font-size: 0.8125rem; color: var(--on-ink-muted); }
.site-footer .tbc { color: var(--marker); outline-color: var(--marker); background: rgba(247, 227, 106, 0.1); }

/* Values as classes, not inline styles: the CSP allows no inline style. */
.page-head--training { --photo: url("/images/photos/training.webp"); }
.reach .chart__title { color: var(--ink); margin-bottom: 0.25rem; }
.reach .chart__title span { color: var(--muted); }
.f20 { flex: 20; } .f50 { flex: 50; } .f80 { flex: 80; } .f100 { flex: 100; }
.s41 { --score: 41%; } .s64 { --score: 64%; } .s72 { --score: 72%; } .s78 { --score: 78%; } .s86 { --score: 86%; }
[data-demo] tr.dim[data-at] { opacity: 1; }
[data-demo] tr.dim.is-in th, [data-demo] tr.dim.is-in td { background: var(--ground); }
[data-demo] tr.dim.is-in th, [data-demo] tr.dim.is-in th span { color: var(--muted); }
[data-demo] tr.dim.is-in td.num { text-decoration: line-through; }

/* Engineering: chart first, text second, so it doesn't mirror the home hero. */
.page-head__grid--flip { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.page-head__grid--flip h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); }
@media (max-width: 58rem) { .page-head__grid--flip > .chart { order: 2; } }

/* Demo additions: lookups, a quote, a source line, and replay. */
.demo-notes { margin: 0; padding: 0.25rem 0.25rem 0; border: 0; }
.demo-notes li[data-at].is-in { animation: slide 0.45s ease-out both; }
.quote { background: var(--paper); border-radius: 6px; padding: 0.9rem 1.1rem; box-shadow: 0 1px 0 var(--rule); }
.deck__stage .quote { background: var(--ground); }
.quote__head { display: flex; justify-content: space-between; margin: 0 0 0.5rem; font: 500 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.quote table { width: 100%; border-collapse: collapse; font-size: 0.9rem; color: var(--ink); }
.quote td { padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
.quote td.num { text-align: right; font: 500 0.875rem/1.4 var(--mono); white-space: nowrap; padding-left: 1rem; }
.quote__total td { border-bottom: 0; font-weight: 600; padding-top: 0.6rem; }
.demo__source { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--ink); }
.demo__source strong { font-weight: 600; }
.demo__head { justify-content: flex-start; align-items: center; }
.demo__head > span:first-child { margin-right: auto; }
.demo__replay, .log__head .demo__replay { margin-left: 0.9rem; display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: 1.5px solid var(--pencil); color: var(--pencil); border-radius: 999px; padding: 0.3rem 0.65rem; font: 500 0.6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.demo__replay::before { content: "\21BB"; font-size: 0.85rem; line-height: 1; }
.demo__replay:hover { background: var(--pencil); color: var(--paper); }
.log__head { gap: 0; }
.log__head > span:first-child { margin-right: auto; }

/* Deck as tabs: unselected examples are shaded; the selected one is white
   and opens into the white stage, with no divider between them. */
.deck__list { padding: 0; background: var(--ground); border-right: 1px solid var(--rule); }
.deck__item { border-bottom: 1px solid var(--rule); background: var(--ground); transition: background-color 0.2s; }
.deck__item:last-child { border-bottom: 1px solid var(--rule); }
.deck__item.is-open { background: var(--paper); margin-right: -1px; z-index: 1; }
.deck__item:not(.is-open) .deck__title, .deck__item:not(.is-open) .note-label { color: var(--muted); }
.deck__item:not(.is-open):hover { background: #F1F4F2; }
.deck__item:not(.is-open):hover .deck__title { color: var(--ink); }
.deck__stage { background: var(--paper); }
.deck__stage .demo { box-shadow: none; padding: 0.25rem 0 0; }
@media (max-width: 58rem) {
  .deck__list { border-right: 0; border-bottom: 0; }
  .deck__item.is-open { margin-right: 0; border-bottom-color: transparent; }
}

/* Build: bespoke AI */
.builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 52rem) { .builds { grid-template-columns: minmax(0, 1fr); } }
.build { background: var(--ground); border-radius: 10px; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.build h3 { font: 600 1.35rem/1.2 var(--display); letter-spacing: -0.01em; }
.build p { margin: 0; }
.build__eg { margin-top: auto !important; padding-top: 0.9rem; border-top: 1px dashed var(--rule); color: var(--ink); font-size: 0.9375rem; }
.build__eg span { display: block; font: 500 0.6875rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--pencil); }

/* Engineering: productivity bars */
.chart .vbar { fill: var(--marker); transform-box: fill-box; transform-origin: bottom; animation: bar-grow 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes bar-grow { from { transform: scaleY(0); } }
.chart .anno path { fill: none; stroke: #AFC0B9; stroke-width: 1.5; }
.chart .anno text { fill: #F1F4F2; font: 400 11px var(--mono); }
.chart .axis text { font-size: 14px; }
.chart .axis .lvl { font-size: 14px; }
.chart .anno text { font-size: 13px; }
.chart .baseline { stroke: #AFC0B9; stroke-width: 1; }
.tip text, .tip text .t { font-size: 13px; }
.chart .vbar.b0 { animation-delay: 0.30s; }
.chart .vbar.b1 { animation-delay: 0.48s; }
.chart .vbar.b2 { animation-delay: 0.66s; }
.chart .vbar.b3 { animation-delay: 0.84s; }
.chart .vbar.b4 { animation-delay: 1.02s; }
.chart .arrow, .chart .arrow-head { fill: none; stroke: #AFC0B9; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .arrow-label { fill: #F1F4F2; font: 500 14px var(--body); }
.page-head .chart { margin: 0; }
.chart .axis .lvl { font-size: 12.5px; }
.page-head__grid--flip h1 { font-size: clamp(2.2rem, 3.6vw, 3.1rem); }

/* Engineering: legacy modernisation, the oracle diagram */
.legacy__head { max-width: 50rem; }
.legacy__head p + p { margin-top: 1rem; }
.oracle-diagram { margin: 0 0 2.5rem; }
.oracle-diagram svg { display: block; width: 100%; height: auto; }
@media (max-width: 52rem) { .oracle-diagram { display: none; } }
.od-box { fill: #1A322C; stroke: rgba(241, 244, 242, 0.18); stroke-width: 1; }
.od-box--loop { fill: rgba(26, 50, 44, 0.85); }
.od-num { fill: var(--marker); font: 600 26px var(--display); }
.od-title { fill: var(--on-ink); font: 600 22px var(--display); letter-spacing: -0.01em; }
.od-sub { fill: var(--on-ink-muted); font: 400 15px var(--body); }
.od-chip { fill: rgba(247, 227, 106, 0.12); stroke: var(--marker); stroke-width: 1; }
.od-chip-t { fill: var(--marker); font: 500 12px var(--mono); letter-spacing: 0.03em; }
.od-oracle { fill: var(--marker); }
.od-oracle-l { fill: var(--ink); font: 500 11px var(--mono); letter-spacing: 0.06em; }
.od-oracle-t { fill: var(--ink); font: 600 26px var(--display); letter-spacing: -0.02em; }
.od-oracle-s { fill: var(--ink); font: 400 15px var(--body); }
.od-transform { fill: none; stroke: var(--marker); stroke-width: 1.5; stroke-dasharray: 5 4; }
.od-transform-t { fill: var(--on-ink); font: 600 16px var(--body); }
.od-transform-s { fill: var(--on-ink-muted); font: 400 13px var(--body); }
.od-arrow { fill: none; stroke: #AFC0B9; stroke-width: 1.6; }
.od-loop { fill: none; stroke: var(--marker); stroke-width: 2.2; stroke-dasharray: 7 6; animation: od-flow 1.4s linear infinite; }
@keyframes od-flow { to { stroke-dashoffset: -26; } }
.od-node { fill: var(--ink); stroke: rgba(241, 244, 242, 0.35); stroke-width: 1.5; }
.od-node-t { fill: var(--on-ink); font: 600 16px var(--display); }
.od-steps { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: od; }
@media (max-width: 52rem) { .od-steps { grid-template-columns: minmax(0, 1fr); } }
.od-steps li { counter-increment: od; background: rgba(241, 244, 242, 0.06); border-top: 3px solid var(--marker); border-radius: 0 0 10px 10px; padding: 1.25rem 1.4rem 1.5rem; color: var(--on-ink-muted); font-size: 0.9375rem; }
.od-steps li::before { content: counter(od); display: block; font: 600 1.6rem/1 var(--display); color: var(--marker); margin-bottom: 0.6rem; }
.od-steps h3 { font: 600 1.25rem/1.25 var(--display); color: var(--on-ink); margin-bottom: 0.5rem; }
.assure--wide { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1rem 2.5rem; align-items: start; }
@media (max-width: 52rem) { .assure--wide { grid-template-columns: minmax(0, 1fr); } }
.assure--wide ul { margin: 0; }

/* Advisory */
.page-head--paper { background: var(--paper); border-bottom: 1px solid var(--rule); }
.compare { margin: 0; background: var(--ground); border-radius: 12px; padding: 1.25rem; box-shadow: 0 30px 60px -36px rgba(18, 36, 31, 0.45); }
.compare__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 0.75rem; }
.compare__title { margin: 0; font: 600 1.05rem/1.3 var(--body); color: var(--ink); }
.compare__title span { display: block; font: 400 0.75rem/1.5 var(--mono); color: var(--muted); }
.compare table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 8px; overflow: hidden; font-size: 0.9375rem; }
.compare th, .compare td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--ground); vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 600 0.95rem/1.25 var(--display); color: var(--ink); }
.compare thead th span:not(.visually-hidden) { display: block; font: 400 0.75rem/1.4 var(--body); color: var(--muted); }
.compare tbody th { font-weight: 500; color: var(--muted); font-size: 0.875rem; }
.compare td { color: var(--ink); white-space: nowrap; }
.meter { display: inline-flex; gap: 2px; margin-right: 0.5rem; vertical-align: 0.05em; }
.meter i { width: 0.45rem; height: 0.7rem; border-radius: 1px; background: var(--rule); }
.meter.g1 i:nth-child(-n+1), .meter.g2 i:nth-child(-n+2), .meter.g3 i { background: var(--ink); }
.compare__rec { margin: 0.9rem 0 0; padding: 0.75rem 0.9rem; background: var(--paper); border-left: 3px solid var(--pencil); border-radius: 0 6px 6px 0; font-size: 0.9375rem; color: var(--ink); }
.compare__rec .pill { margin-right: 0.35rem; }
.questions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 52rem) { .questions { grid-template-columns: minmax(0, 1fr); } }
.questions li { background: var(--paper); border-radius: 10px; padding: 1.4rem 1.5rem 1.4rem 3.25rem; position: relative; font: 600 1.25rem/1.3 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.questions li::before { content: "?"; position: absolute; left: 1.25rem; top: 1.2rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); color: var(--marker); font: 600 0.9rem/1 var(--display); }
.independent { margin-top: 2.5rem; padding: 1.5rem 1.75rem; background: var(--ink); color: var(--on-ink); border-radius: 10px; font-size: 1.125rem; max-width: 52rem; }
.independent .note-label { color: var(--marker); margin-bottom: 0.4rem; }
.compare .report__tag { margin: 0; font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--pencil); border: 1.5px solid var(--pencil); border-radius: 3px; padding: 0.3rem 0.45rem; transform: rotate(-3deg); white-space: nowrap; }
/* Advisory: three-option comparison and answered questions */
.compare th, .compare td { padding: 0.6rem 0.65rem; }
.compare tbody th { width: 34%; }
.compare thead th { font-size: 0.9rem; }
.compare__key { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.questions li { padding: 1.5rem 1.6rem 1.6rem 3.4rem; font: inherit; letter-spacing: 0; }
.questions li h3 { font: 600 1.25rem/1.3 var(--display); color: var(--ink); letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.questions li p { margin: 0; padding-top: 0.75rem; border-top: 1px dashed var(--rule); color: var(--text); font-size: 0.9375rem; }
.questions li p span { display: block; font: 500 0.6875rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--pencil); margin-bottom: 0.2rem; }
.questions li::before { top: 1.45rem; }
.compare thead th { vertical-align: top; }
/* Advisory: ongoing review */
.ongoing__price { margin-top: 1.5rem; color: var(--on-ink) !important; font-weight: 500; }
.feed { margin: 0; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.feed__head { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0.9rem 1.25rem; background: var(--sage); font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.feed__head .report__tag { font: 500 0.6875rem/1 var(--mono); color: var(--pencil); border: 1.5px solid var(--pencil); border-radius: 3px; padding: 0.3rem 0.45rem; transform: rotate(-3deg); }
.feed ol { list-style: none; margin: 0; padding: 0.4rem 1.25rem 0.9rem; }
.feed li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--rule); font-size: 0.9375rem; color: var(--ink); }
.feed li:last-child { border-bottom: 0; }
.feed time { font: 500 0.75rem/1.9 var(--mono); color: var(--muted); }
.feed b { display: block; font: 500 0.6875rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--pencil); }
/* Advisory hero: a working desk, washed almost to white behind the text. */
.page-head--advisory { --photo: url("/images/photos/desk.webp"); --photo-contrast: 1.15; }
.page-head--advisory::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.7) 100%), linear-gradient(transparent 75%, rgba(232, 237, 234, 0.6)); }
@media (max-width: 58rem) { .page-head--advisory::after { background: rgba(255, 255, 255, 0.92); } }
.page h1 + .note-label { margin: 0.75rem 0 2rem; }
.context-list h3 { margin-top: 0; }
@media (max-width: 58rem) { .page-head__grid--flip { grid-template-columns: minmax(0, 1fr); } }
