/* Page CSS: only what sits inside a visual, and one --p-h per card group (Taste system.md). */

/* the records app-frame (sections-library.md, app-frame) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.app > .app__pane--open > .ui-doc { padding: var(--s-6); }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .app > .app__pane--open > .ui-doc { padding: var(--s-4); }
}

/* blacked-out personal details inside the record */
.ui-doc .rd { display: inline-block; width: 5.5em; height: .9em; vertical-align: -.08em; border-radius: 2px; background: currentColor; opacity: .82; }
.ui-doc .rd--l { width: 8em; }
.ui-doc .rd--s { width: 2.6em; }

/* card groups */
#services .panel { --p-h: 336px; }
.menu-card .panel { --p-h: 160px; }
@media (max-width: 639px) { #services .panel { --p-h: 220px; } }


/* the kit's pause buttons sit on the hero's mesh ground: a two-tone ring that reads on any part of it */
.hero__window .loop-pause:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 5px #0a0e13; }

/* the FAQ's photograph under its words; the map frame grows on a phone so the band ends on it */
.faq-photo { aspect-ratio: 10 / 9; margin-top: var(--s-5); }


/* section heights where the cards stack (layout-v4.md: the one page-CSS rule on a section) */
@media (min-width: 1024px) and (max-width: 1279px) { #services .panel { --p-h: 216px; } }
@media (min-width: 640px) and (max-width: 1023px) { #faq { --h: 2; } }
@media (max-width: 639px) {
  #services .panel { --p-h: 156px; }
  #ground .rows { display: none; }
}

/* the hero's assistant window (the centred hero's own piece: layout/demo.css draws the d-* parts) */
.d-win--dark .d-win__body { grid-template-columns: 250px 1fr; min-height: 420px; }
.d-win--dark .d-win__bar b { color: #eceef0; font-weight: 500; } .d-win--dark .d-win__bar .sp { flex: 1; }
.hero__window .d-chat { padding: 14px 18px; gap: 8px; }
.hero__window .d-msg--me small { display: none; }
.hero__window .d-msg--bot { max-width: 86%; }
.hero__window .d-msg--bot small { display: inline; margin: 0 0 0 8px; white-space: nowrap; }
.inbox { border-right: 1px solid rgb(255 255 255 / .07); padding: 10px; display: grid; align-content: start; gap: 2px; }
.inbox .q { height: 34px; margin-bottom: 6px; border-radius: 9px; background: rgb(255 255 255 / .06); display: flex; align-items: center; padding: 0 10px; color: #7d8389; font-size: 13px; }
.inbox .t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; }
.inbox .t.is-on { background: rgb(255 255 255 / .07); }
.inbox .t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-text); font-style: normal; color: #0a0e13; }
.inbox .t b { font-weight: 500; color: #eceef0; } .inbox .t time { color: #7d8389; font-size: 13px; }
.inbox .t span { grid-column: 2 / -1; color: #8d9399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo { display: grid; min-width: 0; align-content: start; }
.d-msg--bot { background: #1c232d; color: #e9ecee; }
.acts { display: flex; gap: 8px; } .acts span { height: 30px; padding: 0 12px; border-radius: var(--r-btn, 8px); display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: var(--p-action); color: var(--p-action-ink); }
.acts span + span { background: color-mix(in oklab, var(--p-ink) 8%, var(--p-bg)); color: #e9ecee; }
@media (max-width: 639px) {
  .hero__window .d-win__bar .sp ~ span { display: none; }
  .d-win--dark .d-win__body { grid-template-columns: 1fr; } .inbox { display: none; }
  .hero__window .d-chat { font-size: 13px; padding: 12px 14px; }
  .hero__window .d-msg--bot small, .hero__window .d-tool { display: none; }
}

/* the open record fills its pane */
@media (min-width: 640px) { .app > .app__pane--open > .ui-doc { width: 100%; padding-right: 252px; } }

/* the records tour: the step list beside the stage that holds each step's Hairline figure */
.journey__side { display: flex; flex-direction: column; gap: var(--s-5); }
.journey__steps { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 0; }
.journey__step {
  width: 100%; min-height: 52px; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center;
  padding: 0; border: 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); border-radius: 0; background: transparent;
  color: var(--p-muted); font: 500 16px/1.3 var(--font-text); text-align: left; cursor: pointer;
  transition: color .2s cubic-bezier(.23, 1, .32, 1), background-color .2s cubic-bezier(.23, 1, .32, 1), border-color .2s cubic-bezier(.23, 1, .32, 1);
}
.journey__step:hover { color: var(--p-ink); }
.journey__step[aria-current] { color: var(--p-ink); border-bottom-color: var(--p-accent); }
.journey__n { font: 500 13px/1 var(--font-mono); color: var(--p-muted); }
.journey__step[aria-current] .journey__n { color: var(--p-accent); }
.journey__stage {
  --hairline-plate: #0e141b; --hairline-hi: #8db8ff; --hairline-edge: #9aa6b6; --hairline-mid: #3b4655; --hairline-lo: #222b37; --hairline-stroke: 1;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); min-width: 0;
  padding: var(--s-5) var(--s-6); background: #0e141b; border: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); border-radius: var(--r-lg);
}
.journey__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); min-width: 0; font: 500 13px/1.4 var(--font-mono); color: var(--p-muted); }
.journey__bar [data-journey-read] { color: var(--p-ink); font-variant-numeric: tabular-nums; }
.journey__figs { position: relative; width: min(100%, 560px); aspect-ratio: 5 / 4; margin: 0 auto; }
.journey__fig { position: absolute; inset: 0; }
.journey__fig[hidden] { display: none; }
.journey__foot { display: grid; gap: var(--s-3); }
.journey__foot p { margin: 0; color: var(--p-ink); font-size: 16px; line-height: 1.5; min-height: 3em; }
.journey__status { justify-self: start; padding: 6px 10px; border-radius: var(--r-sm); font: 500 13px/1.2 var(--font-mono); color: var(--p-accent); background: color-mix(in oklab, var(--p-accent) 12%, var(--p-bg)); }

/* the DRC network figure on the light band */
.net-frame { position: relative; display: flex; align-items: center; justify-content: center; }
.net-frame { --hairline-plate: #dadde1; --hairline-hi: #1f6bf0; --hairline-edge: #4d5662; --hairline-mid: #8e97a3; --hairline-lo: #b4bbc5; --hairline-stroke: 1; }
.net-fig { width: 100%; max-width: 560px; }
.net-frame > .net-read { position: absolute; top: var(--s-4); right: var(--s-5); font: 500 13px/1 var(--font-mono); color: #2b3138; }
@media (max-width: 639px) { .journey__steps { gap: 0; } .journey__stage { padding: var(--s-4); } }

/* the hero reel: photographs of the DRC behind the words, each cut in behind a scan line */
.hero--reel { position: relative; isolation: isolate; }
.hero--reel > .wrap { position: relative; z-index: 1; height: 100%; }
.hero--reel .hero-text { height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-reel { position: absolute; inset: calc(var(--nav) + 8px) 8px 8px; z-index: 0; overflow: hidden; border-radius: 20px; background: #05070a; transform-origin: 50% 0; }
.hero-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: transform 3s cubic-bezier(.23, 1, .32, 1); }
.hero-reel img.is-on { opacity: 1; transform: scale(1); }
.hero-reel img.is-in { opacity: 1; z-index: 1; animation: reel-in .76s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes reel-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.hero-reel__scan { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 2px; background: var(--p-accent); box-shadow: 0 0 16px 2px color-mix(in oklab, var(--p-accent) 70%, transparent); opacity: 0; }
.hero-reel__scan.is-run { animation: reel-scan .76s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes reel-scan { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.hero-reel::after { content: ""; position: absolute; inset: 0; z-index: 3; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgb(10 14 19 / .58), rgb(10 14 19 / .3) 70%, rgb(10 14 19 / .5)); }
.hero--reel .hero__lead { color: #d5dbe3; }
.hero--reel .hero-text { position: relative; }
.hero-reel__pause {
  position: absolute; right: 0; bottom: 24px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; background: rgb(10 14 19 / .5); color: #eceff3; cursor: pointer;
  transition: background-color .2s cubic-bezier(.23, 1, .32, 1), transform .16s cubic-bezier(.23, 1, .32, 1);
}
.hero-reel__pause:hover { background: rgb(10 14 19 / .75); }
.hero-reel__pause:active { transform: scale(.96); }
.hero-reel__pause[aria-pressed="true"] svg path { d: path("M5.5 3.5 12 8l-6.5 4.5z"); fill: currentColor; }
@media (max-width: 639px) { .hero-reel { inset: calc(var(--nav) + 6px) 6px 6px; border-radius: 16px; } .hero-reel__pause { bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .hero-reel img { transition: none; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .journey__steps { grid-template-columns: 1fr 1fr; }
  .journey__figs { width: min(100%, 380px); }
}
@media (min-width: 1024px) and (max-width: 1279px) { .journey__figs { width: min(100%, 380px); } }

/* the COVA method: four letters across the wrap, a line that fills to the stage, the stage's text beside its figure */
.cova__lead { margin: 0; }
.cova__left { display: grid; gap: var(--s-7); align-content: start; }
.cova__rail { --k: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); padding-top: var(--s-5); }
.cova__track { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); }
.cova__track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc((var(--k) + 1) * 25%); background: var(--p-accent); transition: width .32s cubic-bezier(.23, 1, .32, 1); }
.cova__btn {
  display: grid; justify-items: start; gap: var(--s-2); padding: 0 0 var(--s-2); border: 0; background: transparent; text-align: left; cursor: pointer;
  color: color-mix(in oklab, var(--p-ink) 46%, var(--p-bg));
  transition: color .2s cubic-bezier(.23, 1, .32, 1);
}
.cova__letter { font: var(--display-weight) clamp(48px, 5.6vw, 88px)/.9 var(--font-display); letter-spacing: var(--display-tracking-xl); }
.cova__word { font: 500 18px/1.2 var(--font-text); color: var(--p-muted); }
.cova__btn:hover, .cova__btn:has(~ [aria-current]) { color: color-mix(in oklab, var(--p-ink) 72%, var(--p-bg)); }
.cova__btn[aria-current] { color: var(--p-ink); }
.cova__btn[aria-current] .cova__word { color: var(--p-accent); }
.cova__panel { margin-top: var(--s-7); align-items: stretch; }
.cova__text { display: grid; gap: var(--s-4); align-content: start; }
.cova__title { margin: 0; color: var(--p-ink); font: var(--display-weight) clamp(26px, 2.2vw, 32px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.cova__text p { margin: 0; }
.cova__n { font: 500 13px/1 var(--font-mono); color: var(--p-muted); }
.cova__outs { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.cova__outs li { font: 500 13px/1.6 var(--font-mono); color: var(--p-accent); }
.cova__outs li:not(:last-child)::after { content: "·"; margin-left: var(--s-3); color: var(--p-muted); }
.cova__frame {
  --hairline-plate: #0e141b; --hairline-hi: #8db8ff; --hairline-edge: #9aa6b6; --hairline-mid: #3b4655; --hairline-lo: #222b37; --hairline-stroke: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: center; gap: var(--s-3); min-width: 0;
  padding: var(--s-4) var(--s-5); background: #0e141b; border: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); border-radius: var(--r-lg);
}
.cova__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); font: 500 13px/1.4 var(--font-mono); color: var(--p-muted); }
.cova__bar [data-cova-read] { color: var(--p-ink); font-variant-numeric: tabular-nums; }
.cova__figs { position: relative; width: min(100%, 560px); aspect-ratio: 5 / 4; margin: 0 auto; }
.cova__fig { position: absolute; inset: 0; }
.cova__fig[hidden] { display: none; }
@media (max-width: 1023px) { .cova__panel { row-gap: var(--s-6); } }
@media (max-width: 639px) {
  .cova__rail { gap: var(--s-2); }
  .cova__word { font-size: 14px; }
  .cova__panel { margin-top: var(--s-6); }
}
@media (max-width: 1279px) { .cova__panel { margin-top: var(--s-6); } .cova__left { gap: var(--s-6); } }
@media (min-width: 640px) and (max-width: 1023px) {
  .cova__panel > .cova__left { grid-column: 1 / span 6; }
  .cova__panel > .cova__frame { grid-column: 7 / span 6; }
}
@media (max-width: 639px) { .cova__bar { order: 2; } }
@media (min-width: 640px) and (max-width: 1023px) { .cova__figs { width: 100%; } .cova__letter { font-size: 7vw; } }
@media (min-width: 640px) and (max-width: 1023px) { .cova__frame { min-height: 520px; } }

/* ───────── the layered stack: one picture taken apart into its layers (stack.js) ───────── */
.lstack { --rx: 0deg; --ry: 0deg; --spread: 0; --draw: 1; --answer: 0; --shade: .25; --radius: 14px; --gap: 64px;
  position: absolute; transform-style: preserve-3d; transform: translateZ(var(--lift, 0px)) rotateX(var(--rx)) rotateY(var(--ry)); }
.ls-layer { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  transform: translateZ(calc((var(--z) - var(--zmid, 2)) * var(--gap) * var(--spread))); backface-visibility: hidden; }
.ls-layer--photo { background: #05070a; }
.ls-layer--photo :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ls-layer--photo::after { content: ""; position: absolute; inset: 0; z-index: 3; background: rgb(10 14 19 / var(--shade)); }
.ls-layer--ghost { border: 1px solid rgb(236 239 243 / .32); opacity: calc(var(--spread) * 2); }
.ls-layer--dash { border-style: dashed; }
.ls-layer--paper { background: #e8e4da; opacity: min(.94, calc(var(--spread) * 1.8 - .15)); box-shadow: 0 0 0 1px rgb(10 14 19 / .1); }
.ls-layer--paper svg { width: 100%; height: 100%; display: block; }
.paper .p-ink { fill: #2a2f36; } .paper .p-soft { fill: #b9b4a8; } .paper .p-box { fill: none; stroke: #8b8578; stroke-width: 1.5; }
.paper .p-rule { stroke: #cfc9bc; stroke-width: 1; fill: none; }
.paper .p-hand { fill: none; stroke: #2b3a6b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.paper .p-stamp { fill: none; stroke: #b0413e; stroke-width: 2.5; opacity: .75; }
.ls-layer--data { background: rgb(214 220 228 / .76); color: #0a0e13; opacity: calc(var(--spread) * 2 - .5); }
.ls-layer--map { background: rgb(236 239 243 / .92); opacity: calc(var(--spread) * 2 - .5); display: grid; place-items: center; }
.ls-layer--map img { width: 70%; height: auto; }
.data { padding: 4.2% 5%; font: 500 clamp(8px, .78vw, 12px)/1 var(--font-mono); }
.data__head, .data__row { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .7fr; gap: 4%; padding: .85em 0; border-bottom: 1px solid rgb(10 14 19 / .14); }
.data__head { color: rgb(10 14 19 / .55); }
.data__st[data-st="verified"], .data__st[data-st="paid"] { color: #116b3c; }
.data__st[data-st="review"] { color: #9a5a00; }
.ls-layer--wire { border: 1px solid rgb(236 239 243 / .6); opacity: calc(var(--spread) * 2); overflow: visible; }
.ls-layer--wire svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire .w-link { fill: none; stroke: rgb(236 239 243 / .8); stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); vector-effect: non-scaling-stroke; }
.wire .w-mark { fill: none; stroke: #eceff3; stroke-width: 1.2; opacity: var(--draw); vector-effect: non-scaling-stroke; }
.wire .w-tick { stroke: rgb(236 239 243 / .45); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.ls-layer--ai { overflow: visible; opacity: var(--answer); }
.ai-card { position: absolute; right: -6%; top: 12%; width: min(320px, 56%); padding: 14px 16px; border-radius: 12px; display: grid; gap: 6px;
  background: #121922; border: 1px solid rgb(236 239 243 / .18); box-shadow: 0 24px 48px -16px rgb(0 0 0 / .7);
  transform: translateY(calc((1 - var(--answer)) * 14px)); }
.ai-card p { margin: 0; }
.ai-card__q { font: 500 13px/1.35 var(--font-text); color: #93a0b1; }
.ai-card__a { font: 500 15px/1.4 var(--font-text); color: #eceff3; }
.ai-card__src { font: 500 12px/1.2 var(--font-mono); color: #5c9bff; }
.ls-layer--plus { display: grid; place-items: center; opacity: calc(var(--spread) * 2); }
.ls-layer--plus span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(236 239 243 / .5); position: relative; }
.ls-layer--plus span::before, .ls-layer--plus span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: #eceff3; transform: translate(-50%, -50%); }
.ls-layer--plus span::after { transform: translate(-50%, -50%) rotate(90deg); }

/* ───────── the hero scene (scene.js): a sticky stage over three screens of scroll ───────── */
.hero.hero--scene { height: 300svh; padding: 0; display: block; }
.scene__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 2400px; perspective-origin: 50% 38%; }
.lstack--scene { left: 8px; top: calc(var(--nav) + 8px); width: calc(100% - 16px); height: calc(100% - var(--nav) - 16px); --radius: 20px; --gap: 54px; }
.lstack--scene .ls-layer--photo :is(img, video) { opacity: 0; transform: scale(1.06); transition: transform 3s cubic-bezier(.23, 1, .32, 1); }
.lstack--scene .ls-layer--photo :is(img, video).is-on { opacity: 1; transform: scale(1); }
.lstack--scene .ls-layer--photo :is(img, video).is-in { opacity: 1; z-index: 1; animation: reel-in .76s cubic-bezier(.23, 1, .32, 1) both; }
/* in the scene the footage stays in front and keeps playing; the data reads over it as a dark glass sheet */
.lstack--scene .ls-layer--data { background: linear-gradient(100deg, rgb(10 14 19 / .78), rgb(10 14 19 / .42) 70%); color: #eceff3; box-shadow: inset 0 0 0 1px rgb(236 239 243 / .16); }
.lstack--scene .data__head { color: rgb(236 239 243 / .55); }
.lstack--scene :is(.data__head, .data__row) { border-bottom-color: rgb(236 239 243 / .14); }
.lstack--scene .data__st:is([data-st="verified"], [data-st="paid"]) { color: #6ad49b; }
.lstack--scene .data__st[data-st="review"] { color: #f2b766; }
.scene__scan { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 2px; background: var(--p-accent); box-shadow: 0 0 16px 2px color-mix(in oklab, var(--p-accent) 70%, transparent); opacity: 0; }
.scene__scan.is-run { animation: reel-scan .76s cubic-bezier(.23, 1, .32, 1) both; }
.scene__copy { position: absolute; inset: var(--nav) 0 0; z-index: 2; display: flex; align-items: center; justify-content: center; will-change: transform, opacity; }
.scene__copy .hero-text { width: 100%; }
.scene__copy .hero__lead { color: #d5dbe3; }
.scene__caps { position: absolute; left: 0; right: 0; bottom: 7svh; z-index: 2; display: grid; pointer-events: none; }
.scene__cap { grid-area: 1 / 1; max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: var(--s-3); opacity: 0; transform: translateY(12px);
  transition: opacity .4s cubic-bezier(.23, 1, .32, 1), transform .4s cubic-bezier(.23, 1, .32, 1); }
.scene__cap.is-on { opacity: 1; transform: none; }
.scene__cap .t-label { color: var(--p-accent); justify-self: center; }
.scene__say { margin: 0; font: var(--display-weight) clamp(30px, 3.6vw, 48px)/1.08 var(--font-display); letter-spacing: var(--display-tracking); }
.scene__say .w { color: color-mix(in oklab, var(--p-ink) 32%, var(--p-bg)); transition: color .25s linear; }
.scene__say .w.is-lit { color: var(--p-ink); }
.scene__sub { margin: 0; color: var(--p-muted); font-size: 17px; line-height: 1.5; }
.scene__pause { position: absolute; right: 24px; bottom: 24px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; background: rgb(10 14 19 / .5); color: #eceff3; cursor: pointer; }
.scene__pause[aria-pressed="true"] svg path { d: path("M5.5 3.5 12 8l-6.5 4.5z"); fill: currentColor; }
@media (max-width: 639px) {
  .lstack--scene { left: 6px; width: calc(100% - 12px); --radius: 16px; --gap: 36px; }
  .ai-card { right: 2%; top: 64%; width: 78%; }
  .scene__caps { bottom: 6svh; }
  .scene__sub { font-size: 15px; }
  .scene__pause { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.hero--scene { height: 100svh; }
  .scene__caps { display: none; }
}

/* ───────── the work gallery and the project header ───────── */
.work__lead { margin: 0; }
.work__grid { margin-top: var(--s-7); row-gap: var(--s-7); }
.work-card { display: grid; gap: var(--s-3); align-content: start; color: var(--p-ink); text-decoration: none; }
.work-card__stage { position: relative; aspect-ratio: 16 / 10; max-width: 100%; perspective: 1400px; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 50% 100%, #121a24, #0b1016 70%); border: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); overflow: hidden; }
.lstack--card { left: 18%; top: 17%; width: 64%; height: 60%; --rx: 12deg; --ry: -32deg; --spread: .7; --gap: 58px; --radius: 10px; --shade: .1; }
.lstack--empty .ls-layer--ghost { opacity: 1; }
.work-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-2); font: 500 13px/1.3 var(--font-mono); color: var(--p-muted); }
.work-card h3 { margin: 0; font: var(--display-weight) clamp(24px, 2.2vw, 30px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.work-card p { margin: 0; color: var(--p-muted); max-width: 46ch; }
.work-card .link { justify-self: start; }
/* project status, set the way a spec sheet sets it: a small square and a word, in the meta row's own type */
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1.3 var(--font-mono); color: var(--p-ink); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 1px; background: currentColor; }
.status[data-state="pending"] i { background: #f2c14e; }
.status[data-state="open"] i { background: none; box-shadow: inset 0 0 0 1.5px var(--p-accent); }
.work-card__meta .status + span { padding-left: var(--s-3); border-left: 1px solid color-mix(in oklab, var(--p-ink) 18%, var(--p-bg)); }
.project-head__kicker { margin: 0; }
.project-head__text { display: grid; gap: var(--s-4); align-content: start; justify-items: start; }
.project-head__text h1 { margin: 0; font: var(--display-weight) clamp(40px, 4.4vw, 64px)/1.02 var(--font-display); letter-spacing: var(--display-tracking-xl); }
.project-head__text .t-lead { margin: 0; }
.project-head__meta { margin: var(--s-3) 0 0; display: grid; width: 100%; }
.project-head__meta > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); }
.project-head__meta dt { font: 500 13px/1.5 var(--font-mono); color: var(--p-muted); }
.project-head__meta dd { margin: 0; }
.project-head__visual { position: relative; aspect-ratio: 16 / 11; max-width: 100%; perspective: 1400px; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 50% 100%, #121a24, #0b1016 70%); border: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); overflow: hidden; }
::view-transition-group(drc-stack), ::view-transition-group(svc-automation) { animation-duration: .55s; animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
@media (min-width: 640px) and (max-width: 1023px) { #work { --h: 2; } }
#work { --hm: 2; }

/* ───────── service pages (#automation): header, items, the invoice flow, where it fits ───────── */
.svc-head__label { margin: 0; color: var(--p-accent); }
.project-head__text > .btn-row { margin-top: var(--s-3); }
.svc-head__visual { position: relative; min-width: 0; }
.svc-head__visual > .panel { --p-h: 0px; aspect-ratio: 5 / 4; max-width: 100%; border-radius: var(--r-lg); }
.approve { position: absolute; z-index: 3; right: 20px; bottom: 20px; width: min(372px, calc(100% - 40px)); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px;
  padding: 14px; border-radius: 12px; background: #121922; color: #eceff3; border: 1px solid rgb(236 239 243 / .14); box-shadow: 0 24px 48px -16px rgb(0 0 0 / .6); }
.approve__ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgb(46 125 255 / .16); color: #8db5ff; }
.approve__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.approve__text { display: grid; gap: 3px; min-width: 0; }
.approve__t { font: 500 14px/1.35 var(--font-text); }
.approve__s { font: 500 12px/1.3 var(--font-mono); color: #93a0b1; }
.approve__btns { grid-column: 2; display: flex; gap: 8px; }
.approve__btn { padding: 8px 12px; border-radius: 8px; font: 500 13px/1 var(--font-text); border: 1px solid rgb(236 239 243 / .18); color: #d5dbe3; }
.approve__btn--yes { background: var(--p-accent); border-color: transparent; color: #0a0e13; }
.svc-head:not([hidden]) .approve { animation: approve-in .7s .45s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes approve-in { from { opacity: 0; transform: translateY(16px); } }
.svc-lead { margin: 0; }

.svc-items { list-style: none; padding: 0; margin: var(--s-7) 0 0; row-gap: var(--s-7); }
.svc-item { display: grid; align-content: start; gap: var(--s-3); }
/* a small picture of each kind of work, on the same dark ground as the project cards */
.mini { height: 176px; margin-bottom: var(--s-3); display: grid; place-items: center; padding: 16px; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 50% 100%, #121a24, #0b1016 70%); border: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); }
.mini__card { width: 100%; max-width: 260px; padding: 12px 14px; border-radius: 10px; background: #121922; border: 1px solid rgb(236 239 243 / .12); display: grid; gap: 10px;
  font: 500 12px/1.3 var(--font-mono); color: #93a0b1; box-shadow: 0 16px 32px -16px rgb(0 0 0 / .7); }
.mini__card b { font: 500 13px/1.3 var(--font-text); color: #eceff3; }
.mini__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mini__chain { display: grid; gap: 7px; }
.mini__chain span { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; }
.mini__chain span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.mini__chain .is-done { color: #eceff3; }
.mini__chain .is-done::before { background: var(--p-accent); border-color: var(--p-accent); }
.mini__chain .is-now { color: #f2c14e; }
.mini__ok { color: #6ad49b; }
.mini__bars { display: flex; align-items: flex-end; gap: 5px; height: 48px; }
.mini__bars i { flex: 1; height: var(--b); border-radius: 2px 2px 0 0; background: rgb(236 239 243 / .2); }
.mini__bars i:last-child { background: var(--p-accent); }
.mini__msg { padding: 9px 11px; border-radius: 10px 10px 10px 3px; background: rgb(46 125 255 / .14); color: #d5dbe3; font: 500 13px/1.35 var(--font-text); }
.svc-item__ico { margin-top: var(--s-2); }
.svc-item__ico { width: 28px; height: 28px; fill: none; stroke: var(--p-accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.svc-item h3 { margin: var(--s-2) 0 0; font: var(--display-weight) 24px/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.svc-item p { margin: 0; color: var(--p-muted); }
.svc-item .svc-path { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; margin-top: var(--s-2); font: 500 12px/1.4 var(--font-mono); color: var(--p-ink); }
.svc-path span + span::before { content: ""; display: inline-block; vertical-align: middle; width: 16px; height: 1px; margin: 0 8px 2px; background: color-mix(in oklab, var(--p-ink) 35%, var(--p-bg)); }
@media (min-width: 640px) and (max-width: 1023px) { .svc-items > li { grid-column: auto / span 6; } }

/* the invoice flow: a sticky stage over its own stretch of scroll (flow.js sets --t, 0 to 1) */
main > section.flow:not(.hero) { height: 380svh; padding: 0; }
.flow__stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: flex-start; padding-top: calc(var(--nav) + clamp(24px, 6vh, 64px)); overflow: hidden; }
.flow__grid { align-items: start; }
.flow__side { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.flow__side > * { margin: 0; }
.flow__side .t-label { color: var(--p-accent); }
.flow__intro { max-width: 44ch; }
.flow__steps { list-style: none; padding: 0; margin-top: var(--s-2); border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); }
.flow__step { display: grid; grid-template-columns: 36px minmax(0, 1fr); width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg));
  background: none; color: var(--p-muted); text-align: left; font: inherit; cursor: pointer; transition: color .2s; }
.flow__step:hover { color: var(--p-ink); }
.flow__n { font: 500 13px/1.6 var(--font-mono); }
.flow__t { font: 500 16px/1.5 var(--font-text); }
.flow__b { grid-column: 2; display: none; padding-top: 4px; font-size: 15px; line-height: 1.5; color: var(--p-muted); }
.flow__step[aria-current] { color: var(--p-ink); }
.flow__step[aria-current] .flow__n { color: var(--p-accent); }
.flow__step[aria-current] .flow__b { display: block; }
.flow__board { display: grid; gap: var(--s-5); min-width: 0; padding: var(--s-5); border-radius: var(--r-lg); background: #0f151d; border: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); }
.flow__bar { display: flex; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-4); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); font: 500 13px/1.3 var(--font-mono); color: var(--p-muted); }
.flow__amt { color: var(--p-ink); }
.flow__track { --t: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: 58px; }
.flow__line { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 65px; height: 2px; background: color-mix(in oklab, var(--p-ink) 14%, var(--p-bg)); }
.flow__line i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--t)); background: var(--p-accent); }
.flow__node { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; }
.flow__node b { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #0f151d; border: 2px solid color-mix(in oklab, var(--p-ink) 30%, var(--p-bg)); transition: background .25s, border-color .25s, box-shadow .25s; }
.flow__node em { font: normal 500 12px/1.2 var(--font-mono); color: var(--p-muted); transition: color .25s; }
.flow__node.is-done b { background: var(--p-accent); border-color: var(--p-accent); }
.flow__node.is-done em { color: var(--p-ink); }
.flow__node--person b { width: 28px; height: 28px; margin-top: -6px; color: var(--p-ink); }
.flow__node--person svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.flow__node--person.is-done b { color: #0a0e13; }
.flow__node.is-wait b { border-color: #f2c14e; box-shadow: 0 0 0 6px rgb(242 193 78 / .16); }
.flow__token { position: absolute; top: 0; left: calc((var(--t) * 5 + .5) * 100% / 6); transform: translateX(calc(-14px - var(--t) * (100% - 28px)));
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: #eceff3; color: #0a0e13; font: 500 12px/1 var(--font-mono); white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / .7); transition: background .25s; }
.flow__token svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.flow__token::after { content: ""; position: absolute; top: 100%; left: calc(14px + var(--t) * (100% - 28px)); width: 2px; height: 22px; margin-left: -1px; background: inherit; }
.flow__track.is-wait .flow__token { background: #f2c14e; }
.flow__log { list-style: none; margin: 0; padding: 0; font: 500 13px/1.4 var(--font-mono); }
.flow__log li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-3); padding: 9px 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); color: var(--p-ink); opacity: .2; transition: opacity .3s; }
.flow__log li.is-in { opacity: 1; }
.flow__log time { color: var(--p-muted); }
@media (max-width: 1023px) {
  main > section.flow:not(.hero) { height: 420svh; }
  .flow__grid { row-gap: var(--s-5); }
  .flow__intro { display: none; }
  .flow__steps { border-top: 0; margin-top: 0; min-height: 6.4em; }
  .flow__steps li:not(.is-on) { display: none; }
  .flow__step { border-bottom: 0; padding: 0; }
}
@media (max-width: 639px) {
  .flow__stage { padding-top: calc(var(--nav) + 16px); }
  .flow__board { padding: var(--s-4); gap: var(--s-4); }
  .flow__node em { display: none; }
  .flow__track { padding-top: 50px; }
  .flow__line { top: 57px; }
  .flow__token::after { height: 14px; }
  .flow__log li { grid-template-columns: 44px minmax(0, 1fr); padding: 7px 0; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  main > section.flow:not(.hero) { height: auto; }
  .flow__stage { position: static; height: auto; padding-block: var(--section); }
  .flow__steps li:not(.is-on) { display: list-item; }
  .flow__step .flow__b { display: block; }
}

/* where it fits: sectors beside one picture */
.fit { margin-top: var(--s-7); align-items: start; }
.fit__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); }
.fit__row { position: relative; display: grid; gap: 4px; width: 100%; padding: var(--s-4) 0 var(--s-4) var(--s-4); border: 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg));
  background: none; color: var(--p-muted); text-align: left; font: inherit; cursor: pointer; }
.fit__row::before { content: ""; position: absolute; left: 0; top: var(--s-4); bottom: var(--s-4); width: 2px; background: var(--p-accent); transform: scaleY(0); transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
.fit__row[aria-current]::before { transform: none; }
.fit__name { font: var(--display-weight) 22px/1.25 var(--font-display); letter-spacing: var(--display-tracking); color: var(--p-muted); transition: color .2s; }
.fit__row:hover .fit__name, .fit__row[aria-current] .fit__name { color: var(--p-ink); }
.fit__line { font-size: 15px; line-height: 1.5; }
.fit__media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; background: #0b1016; border: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); }
.fit__media > [data-show] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.fit__media > .is-on { opacity: 1; }
.fit__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgb(10 14 19 / .55), transparent 30%); }
.fit__tag { position: absolute; left: 16px; bottom: 16px; z-index: 2; font: 500 12px/1 var(--font-mono); color: #eceff3; }
.fit__ui { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 100%, #121a24, #0b1016 70%); }
.permit { width: min(400px, 86%); padding: 6px 16px 10px; }
.permit__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 44px; border-bottom: 1px solid var(--u-line); }
.permit__route { margin-top: 6px !important; }
.permit__route li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; font: 500 13px/1.3 var(--font-text); color: var(--u-muted); }
.permit__route li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.permit__route li.is-done { color: var(--u-ink); }
.permit__route li.is-done::before { background: var(--p-accent); border-color: var(--p-accent); }
.permit__route li.is-now { color: var(--u-ink); }
.permit__route li.is-now::before { border-color: #f2c14e; box-shadow: 0 0 0 4px rgb(242 193 78 / .18); }
.permit__route time { font: 500 12px/1 var(--font-mono); color: var(--u-muted); }
.permit__route li.is-now time { color: #f2c14e; }
@media (max-width: 1023px) {
  .fit { row-gap: var(--s-5); }
  .fit__media { order: -1; aspect-ratio: 16 / 10; }
}
/* a service card that opens its page: the title is the link and covers the whole card */
.card:has(.card__go) { position: relative; }
.card__go { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; }
.card__go svg { width: 13px; height: 13px; flex: none; align-self: center; color: var(--p-accent); transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.card__go::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; }
.card:has(.card__go:hover) .card__go svg, .card__go:focus-visible svg { transform: translateX(3px); }
.card:has(.card__go:focus-visible) { outline: 2px solid var(--p-accent); outline-offset: 3px; }
/* short laptop screens (720 to 800 tall): a little less air so each service section keeps to its screen */
@media (min-width: 1024px) and (max-height: 800px) {
  .svc-head .project-head__meta > div { padding-block: var(--s-2); }
  .svc-head .project-head__text { gap: var(--s-3); }
  .svc-head__visual > .panel { aspect-ratio: 16 / 12; }
  .fit__row { padding-block: 12px; }
  .fit__media { aspect-ratio: 16 / 11; }
}

/* ───────── Hairline figures in a frame (the Questions mark, the AI relay, the digitization cabinet) ───────── */
.fig-frame { --hairline-plate: #0e141b; --hairline-hi: #8db8ff; --hairline-edge: #9aa6b6; --hairline-mid: #3b4655; --hairline-lo: #222b37; --hairline-stroke: 1;
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3); min-width: 0; padding: var(--s-5);
  background: #0e141b; border: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); border-radius: var(--r-lg); }
.fig-frame__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); font: 500 13px/1.4 var(--font-mono); color: var(--p-muted); }
.fig-frame__bar [data-fig-read], .fig-frame__read { color: var(--p-ink); font-variant-numeric: tabular-nums; }
.fig-frame__fig { width: min(100%, 520px); aspect-ratio: 5 / 4; margin: 0 auto; }
.faq-fig { margin-top: var(--s-5); grid-template-rows: minmax(0, 1fr); padding: var(--s-4); }
.faq-fig .fig-frame__fig { width: min(100%, 400px); }
.fig-frame__read { position: absolute; top: var(--s-4); right: var(--s-5); z-index: 1; font: 500 13px/1 var(--font-mono); }

/* ───────── the onboarding workflow graph ───────── */
.graph { margin: var(--s-7) 0 0; border-radius: var(--r-lg); background: #0e141b; border: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); overflow: hidden; }
.graph__scroll { overflow-x: auto; padding: var(--s-4) var(--s-4) 0; }
.graph__svg { display: block; width: 100%; min-width: 860px; height: auto; max-height: calc(100svh - 420px); margin: 0 auto; overflow: visible; }
.graph__edges path { fill: none; stroke: #2c3643; stroke-width: 1.5; }
.graph__edges .graph__loop { stroke-dasharray: 4 5; stroke: #3b4655; }
.gnode { cursor: pointer; outline: none; }
.gnode rect, .gnode > path { fill: #121922; stroke: #3b4655; stroke-width: 1.2; transition: stroke .25s, fill .25s; }
.gnode text { fill: #eceff3; font: 500 13px var(--font-text); text-anchor: middle; }
.gnode .gnode__sub { fill: #93a0b1; font: 500 11px var(--font-mono); }
.gnode--rule text { font: 500 12px var(--font-mono); fill: #eceff3; }
.gnode.is-hit rect, .gnode.is-hit > path { stroke: var(--p-accent); }
.gnode.is-on rect, .gnode.is-on > path, .gnode:focus-visible rect, .gnode:focus-visible > path { stroke: var(--p-accent); fill: #15233a; }
.gnode--wait.is-busy rect { stroke: #f2c14e; fill: #2a2412; }
.gnode--person.is-busy rect { stroke: #f2c14e; fill: #2a2412; }
.gnode--person .gnode__sub { fill: #f2c14e; }
.gtoken { fill: var(--p-accent); stroke: #0e141b; stroke-width: 2; }
.graph__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); padding: var(--s-4) var(--s-5); border-top: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg));
  font: 500 13px/1.45 var(--font-mono); color: var(--p-muted); }
.graph__name { color: var(--p-ink); }
.graph__say { flex: 1 1 320px; color: var(--p-ink); font: 400 15px/1.45 var(--font-text); }
.graph__key { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.graph__k { display: inline-block; }
.graph__k--case { width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); }
.graph__k--loop { width: 18px; height: 0; margin-left: 10px; border-top: 1.5px dashed #5b6878; }
@media (max-width: 639px) { .graph__scroll::after { content: "Scroll sideways to follow the workflow"; display: block; padding: 8px 0 4px; font: 500 12px var(--font-mono); color: var(--p-muted); } }

/* ───────── ask your records ───────── */
.ask { align-items: start; }
.ask__side { display: grid; gap: var(--s-4); align-content: start; }
.ask__side > * { margin: 0; }
.ask__qs { list-style: none; margin: var(--s-2) 0 0 !important; padding: 0; display: grid; gap: var(--s-2); }
.ask__q { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--p-ink) 14%, var(--p-bg)); background: none;
  color: var(--p-muted); font: 500 15px/1.4 var(--font-text); text-align: left; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.ask__q:hover { color: var(--p-ink); }
.ask__q[aria-current] { color: var(--p-ink); border-color: var(--p-accent); background: color-mix(in oklab, var(--p-accent) 8%, var(--p-bg)); }
.ask__board { display: grid; gap: var(--s-4); align-content: start; min-width: 0; padding: var(--s-5); border-radius: var(--r-lg); background: #0f151d; border: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); }
.ask__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); font: 500 13px/1.3 var(--font-mono); color: var(--p-muted); }
.ask__set { display: grid; gap: var(--s-4); }
.ask__set[hidden] { display: none; }
.ask__you { justify-self: end; max-width: 80%; margin: 0; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: color-mix(in oklab, var(--p-accent) 22%, var(--p-bg)); color: var(--p-ink); font: 500 15px/1.4 var(--font-text); }
.ask__ans { margin: 0; color: var(--p-ink); font: 400 17px/1.55 var(--font-text); min-height: 4.65em; }
.ask__ans .w { opacity: .12; transition: opacity .25s; }
.ask__ans .w.is-in { opacity: 1; }
.ask__set.is-thinking .ask__ans { opacity: .6; }
.ask__docs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.ask__docs li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); opacity: .35; transition: opacity .3s, border-color .3s; }
.ask__docs li.is-in { opacity: 1; border-color: color-mix(in oklab, var(--p-accent) 55%, var(--p-bg)); }
.ask__doc { font: 500 13px/1.3 var(--font-mono); color: #8db8ff; }
.ask__line { font-size: 14px; line-height: 1.45; color: var(--p-muted); }

/* ───────── a page becomes a record ───────── */
.scan { margin-top: var(--s-7); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: start; }
.scan__page { --y: 0; position: relative; aspect-ratio: 720 / 446; border-radius: var(--r-lg); overflow: hidden; background: #e8e4da; }
.scan__paper, .scan__boxes { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan__paper svg { width: 100%; height: 100%; display: block; }
.scan__box { fill: rgb(46 125 255 / .08); stroke: #2e7dff; stroke-width: 1.5; opacity: 0; transition: opacity .25s; vector-effect: non-scaling-stroke; }
.scan__box.is-on { opacity: 1; }
.scan__box.is-flag { fill: rgb(242 193 78 / .18); stroke: #c58a00; }
.scan__line { position: absolute; left: 0; right: 0; top: calc(var(--y) * 100%); height: 2px; background: var(--p-accent); box-shadow: 0 0 18px 3px rgb(46 125 255 / .55); opacity: 0; transition: opacity .3s; }
.scan__page.is-sweep .scan__line { opacity: 1; }
.scan__tag { position: absolute; left: 12px; bottom: 10px; padding: 5px 8px; border-radius: 6px; background: rgb(10 14 19 / .78); color: #eceff3; font: 500 12px/1 var(--font-mono); }
.scan__record { position: relative; display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: #0f151d; border: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); }
.scan__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); }
.scan__head b { font: 500 15px/1.3 var(--font-text); }
.scan__state { font: 500 12px/1.3 var(--font-mono); color: var(--p-muted); }
.scan__state[data-s="2"] { color: #f2c14e; }
.scan__state[data-s="3"] { color: #6ad49b; }
.scan__fields { margin: 0; display: grid; gap: 0; }
.scan__fields > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-3); padding: 6px 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 7%, var(--p-bg)); font-size: 14px; line-height: 1.4; }
.scan__fields dt { font: 500 12px/1.6 var(--font-mono); color: var(--p-muted); }
.scan__fields dd { margin: 0; color: var(--p-ink); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.scan__fields > div.is-in dd { opacity: 1; transform: none; }
.scan__fields > div.is-flag dd { color: #f2c14e; }
.scan__fields > div.is-flag dd::after { content: "  · needs a person"; font: 500 11px var(--font-mono); }
.scan__fields > div.is-ok dd::after { content: "  · checked by staff"; font: 500 11px var(--font-mono); color: #6ad49b; }
.scan__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font: 500 12px/1 var(--font-mono); }
.scan__steps li { padding-top: 10px; border-top: 2px solid color-mix(in oklab, var(--p-ink) 14%, var(--p-bg)); color: var(--p-muted); transition: color .25s, border-color .25s; }
.scan__steps li.is-done { border-color: color-mix(in oklab, var(--p-accent) 60%, var(--p-bg)); }
.scan__steps li.is-on { border-color: var(--p-accent); color: var(--p-ink); }
.scan__pause { position: absolute; right: var(--s-4); bottom: var(--s-4); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--p-ink) 20%, var(--p-bg)); background: none; color: var(--p-ink); cursor: pointer; }
.scan__pause[aria-pressed="true"] svg path { d: path("M5.5 3.5 12 8l-6.5 4.5z"); fill: currentColor; }
.scan__steps { padding-right: 44px; }
.scan.is-out .scan__fields dd, .scan.is-out .scan__box { opacity: 0; }
@media (max-width: 1023px) { .scan { grid-template-columns: minmax(0, 1fr); } }

/* ───────── numbered steps (how we set it up) and plain rows ───────── */
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); }
.svc-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, var(--p-bg)); }
.svc-steps__n { grid-row: span 2; font: 500 13px/1.7 var(--font-mono); color: var(--p-accent); }
.svc-steps h3 { margin: 0; font: 500 17px/1.4 var(--font-text); }
.svc-steps p { margin: 4px 0 0; color: var(--p-muted); font-size: 15px; line-height: 1.5; }

/* ───────── more of the small previews ───────── */
.mini__q { justify-self: end; margin: 0; padding: 7px 10px; border-radius: 10px 10px 3px 10px; background: rgb(46 125 255 / .2); color: #eceff3; font: 500 12px/1.35 var(--font-text); }
.mini__a { margin: 0; padding: 7px 10px; border-radius: 10px 10px 10px 3px; background: rgb(236 239 243 / .08); color: #eceff3; font: 500 12px/1.35 var(--font-text); justify-self: start; }
.mini__src { color: #8db8ff; }
.mini__lines { display: grid; gap: 6px; }
.mini__lines i { display: block; width: var(--w); height: 6px; border-radius: 3px; background: rgb(236 239 243 / .16); }
.mini__lines--hand i { height: 2px; background: rgb(141 184 255 / .5); }
.mini__btn { padding: 5px 9px; border-radius: 6px; background: var(--p-accent); color: #0a0e13; font: 500 11px/1 var(--font-text); }
.mini__dots { display: flex; gap: 4px; }
.mini__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(236 239 243 / .2); }
.mini__hero { height: 34px; border-radius: 6px; background: linear-gradient(120deg, rgb(46 125 255 / .45), rgb(46 125 255 / .1)); }
.mini__img { height: 46px; border-radius: 6px; background: radial-gradient(120% 120% at 30% 20%, rgb(242 193 78 / .35), transparent 60%), linear-gradient(140deg, #1d2a3b, #121922); }
@media (min-width: 1024px) and (max-height: 800px) {
  .svc-head .project-head__text h1 { font-size: clamp(34px, 3.4vw, 48px); }
  .svc-head .t-lead { font-size: 16px; line-height: 1.5; }
  .svc-head .project-head__meta { margin-top: 0; }
  .svc-head .project-head__meta dd { font-size: 15px; line-height: 1.4; }
  .svc-head .project-head__text > .btn-row { margin-top: 0; }
  .mini { height: 132px; margin-bottom: 0; }
  .svc-item h3 { font-size: 21px; }
  .svc-item .svc-path { margin-top: 0; }
  .work__grid { margin-top: var(--s-5); }
  .work-card__stage { aspect-ratio: 16 / 8; }
  .work-card { gap: var(--s-2); }
}

/* ───────── the language switch, and the words CSS writes ───────── */
.nav__lang { display: inline-flex; align-items: center; gap: 2px; flex: none; margin-left: var(--s-4); padding: 3px; border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--p-ink) 14%, var(--p-bg)); font: 500 12px/1 var(--font-mono); }
.nav__lang > * { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 7px; color: var(--p-muted); text-decoration: none; }
.nav__lang a:hover { color: var(--p-ink); }
.nav__lang [aria-current] { background: color-mix(in oklab, var(--p-ink) 10%, var(--p-bg)); color: var(--p-ink); }
.nav__actions .nav__lang { margin-left: 0; }
@media (max-width: 1023px) { .nav.is-open .nav__lang { justify-self: center; order: 3; } .nav.is-open .nav__lang > * { min-width: 56px; height: 36px; font-size: 13px; } }
.footer__lang a { color: inherit; }
.footer__lang [aria-current] { color: var(--p-ink); }
:lang(fr) .scan__fields > div.is-flag dd::after { content: "  · à vérifier"; }
:lang(fr) .scan__fields > div.is-ok dd::after { content: "  · vérifié par le personnel"; }
@media (max-width: 639px) { :lang(fr) .graph__scroll::after { content: "Faites défiler sur le côté pour suivre le flux"; } }
.fig-frame { grid-template-columns: minmax(0, 1fr); }
.fig-frame__bar > * { min-width: 0; }
/* French runs about a fifth longer than English: on short laptop screens its service sections set a little tighter */
@media (min-width: 1024px) and (max-height: 800px) {
  :lang(fr) .svc-item p { font-size: 15px; line-height: 1.45; }
  :lang(fr) .faq > .faq__item { padding-block: var(--s-4); }
  :lang(fr) .faq > .faq__item p { font-size: 15px; line-height: 1.45; }
}
