/* yottar.ai: the design system and the home page.
   Tokens are yottar.tech's (.claude/skills/content-marketing/studio.md §Brand);
   the stage's product look borrows the app's (ui/src/styles/tokens.css,
   ui/src/theme.css) so the mock reads as the same designer's work.
   Refuse list: studio.md §Refuse. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url("assets/fonts/noto-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* brand */
  --paper: #f6f6f5;      /* the ground */
  --ink: #0f1112;        /* text and the dark bands; never pure black */
  --dark: #2a2f31;
  --mid: #5f6669;        /* muted text: 5.4:1 on paper, 4.8:1 on wash */
  --rule: #c9c9c4;
  --edge: #e0e0dc;
  --card: #ffffff;
  --wash: #e3ebee;       /* pale blue */
  --wash-2: #bad2d8;
  --wash-3: #7fa3c0;
  --blue: #07418e;       /* the one accent */
  --orange: #e8762c;     /* the cause or the cost, as a mark only (2.6:1: never text) */
  --on-ink: #f6f6f5;
  --on-ink-mute: #b3b8ba;

  /* the product's verdict pins (ui/src/theme.css), used only inside the stage */
  --pin-reachable: #1f8a3a;
  --pin-marginal: #c77d0a;
  --pin-unreachable: #ba1d42;
  --pin-none: #8a8a84;

  /* type */
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);   /* 40 to 72 */
  --t-h2: clamp(1.875rem, 1.4rem + 1.9vw, 3rem);       /* 30 to 48 */
  --t-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);    /* 22 to 28 */
  --t-lede: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);   /* 17 to 20 */
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-tiny: 0.8125rem;

  /* space: an 8px rhythm */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --section: clamp(72px, 9vw, 128px);

  --radius-xs: 4px; --radius-md: 12px; --radius-lg: 16px; --radius-pill: 50px;
  --shadow-stage: 0 1px 2px rgb(15 17 18 / 0.06), 0 12px 40px -8px rgb(7 65 142 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: var(--t-h2); line-height: 1.12; }
h3 { font-size: var(--t-h3); line-height: 1.25; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.band-ink :focus-visible { outline-color: var(--on-ink); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius-xs); }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: var(--t-lede); line-height: 1.5; text-wrap: pretty; color: var(--dark); max-width: 36em; }
.muted { color: var(--mid); }

/* buttons: one label per action, everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius-pill);
  font: 500 var(--t-body)/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--blue); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: var(--t-small); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.trial { display: flex; flex-direction: column; gap: 8px; }
.price { font-size: var(--t-tiny); color: var(--mid); line-height: 1.4; max-width: 17rem; }

/* header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--s3); }
.logo img { width: 88px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--s3); }
.nav a.link { font-size: var(--t-small); font-weight: 500; text-decoration: none; color: var(--dark); }
.nav a.link:hover { color: var(--blue); }
.nav .btns { display: flex; gap: 8px; }

/* hero */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 30%, var(--wash) 100%); padding-bottom: var(--section); }
.hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4) var(--s6); align-items: end; padding-top: var(--s5); }
.hero-text h1 { max-width: 11em; }
.hero-side { display: flex; flex-direction: column; gap: var(--s3); padding-bottom: 6px; }
.hero-side .lede { font-size: 1.0625rem; }
.hero .stage-slot { margin-top: var(--s6); }

/* the logo band */
.band-ink { background: var(--ink); color: var(--on-ink); }
.logos { padding: var(--s6) 0; }
.logos .wrap { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: var(--s5); }
.logos-label, .press-label { font-family: var(--sans); font-weight: 500; letter-spacing: 0; }
.logos-label { font-size: var(--t-small); color: var(--on-ink-mute); white-space: nowrap; }
.logos ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s4); }
.logos img { height: 40px; width: auto; opacity: 0.92; }
.logos img.l-tight { height: 36px; }
.logos img.l-nhs { height: 30px; }

/* the problem */
.problem { padding: var(--section) 0; }
.problem-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5) var(--s7); }
.problem-head { display: flex; flex-direction: column; gap: var(--s3); }
.problem h2 { max-width: 9em; }
.problem-body { display: flex; flex-direction: column; gap: var(--s5); }
.path { list-style: none; position: relative; display: flex; flex-direction: column; }
.path li { position: relative; padding: 0 0 var(--s3) 36px; color: var(--dark); }
.path li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--wash-3); }
.path li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 2px; width: 2px; background: var(--wash-2); }
.path li:last-child { padding-bottom: 0; }
.path li:last-child::after { display: none; }
.path li strong { display: block; font-weight: 600; color: var(--ink); }
.path li.wait::after { background: repeating-linear-gradient(to bottom, var(--wash-2) 0 4px, transparent 4px 9px); }
.path li.cost::before { background: var(--orange); border-color: var(--orange); }
.path li.cost strong { box-shadow: inset 0 -0.42em 0 rgb(232 118 44 / 0.28); display: inline; }
.aside-quote { border-left: 2px solid var(--blue); padding-left: var(--s3); font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--ink); max-width: 30em; }

/* asks: the persona sections */
.asks { padding: 0 0 var(--section); }
.asks-intro { max-width: 42rem; display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s7); }
.ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5) var(--s7); align-items: center; }
.ask + .ask { margin-top: var(--s8); }
.ask.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ask.flip .ask-text { order: 2; }
.ask-text { display: flex; flex-direction: column; gap: var(--s3); }
.ask-text h3 { font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem); line-height: 1.15; max-width: 13em; }
.ask-text p { color: var(--dark); max-width: 30em; }
.ask-who { font-size: var(--t-small); color: var(--mid); }
.ask-text blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--blue); }

/* you decide */
.decide { background: var(--wash); padding: var(--section) 0; }
.decide h2 { max-width: 14em; margin-bottom: var(--s6); }
.decide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s7); }
.decide h3 { font-family: var(--sans); font-size: var(--t-small); font-weight: 600; letter-spacing: 0; color: var(--dark); padding-bottom: var(--s2); border-bottom: 1px solid var(--ink); }
.decide ul { list-style: none; }
.decide li { padding: var(--s2) 0; border-bottom: 1px solid var(--wash-2); font-size: 1.0625rem; line-height: 1.5; }
.decide li b { font-weight: 600; }
.decide .yours h3 { border-bottom-color: var(--blue); color: var(--blue); }

/* quotes */
.quotes { padding: var(--section) 0; }
.quotes h2 { margin-bottom: var(--s6); max-width: 16em; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); padding: var(--s4); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--edge); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.5; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote.lead { grid-row: span 2; background: var(--ink); color: var(--on-ink); border-color: var(--ink); padding: var(--s5); }
.quote.lead blockquote { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.32; letter-spacing: -0.01em; }
.who { display: flex; align-items: center; gap: 14px; font-size: var(--t-small); line-height: 1.4; }
.who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.who b { display: block; font-weight: 600; }
.who-text span { display: block; color: var(--mid); }
.lead .who-text span { color: var(--on-ink-mute); }
.lead .who img { width: 56px; height: 56px; }

/* press */
.press { padding: 0 0 var(--section); }
.press .wrap > div { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: var(--s5); border-top: 1px solid var(--rule); padding-top: var(--s5); }
.press-label { font-size: var(--t-small); color: var(--mid); }
.press ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.press a { display: block; border-radius: var(--radius-xs); }
.press img { height: 40px; width: auto; filter: grayscale(1); mix-blend-mode: multiply; opacity: 0.85; transition: filter .2s, opacity .2s; }
.press a:hover img { filter: none; opacity: 1; }
.press img.p-uw { height: 30px; }

/* closing call */
.closing { background: var(--wash-2); background: linear-gradient(180deg, var(--wash) 0%, var(--wash-2) 100%); padding: var(--section) 0; }
.closing .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s4); }
.closing h2 { max-width: 13em; }

/* footer */
.site-footer { padding: var(--s6) 0 var(--s5); font-size: var(--t-small); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid #2f3537; }
.foot-top img { width: 96px; height: auto; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.foot-links a { text-decoration: none; color: var(--on-ink); }
.foot-links a:hover { text-decoration: underline; }
/* the counter's opt-out (beacon.js): a button, since it changes this browser and goes nowhere, drawn as its neighbours */
.foot-count { font: inherit; color: var(--on-ink); background: none; border: 0; padding: 0; cursor: pointer; }
.foot-count:hover { text-decoration: underline; }
.foot-count:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.foot-legal { padding-top: var(--s3); color: var(--on-ink-mute); display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }

/* ---------- the stage: a product window ---------- */
.stage-slot { position: relative; }
.stage {
  --stage-h: 600px; --convo-w: 400px;
  height: var(--stage-h); display: flex; flex-direction: column;
  background: var(--card); border: 1px solid #c9c9c4; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-stage); overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--ink);
}
.stage.small { --stage-h: 460px; --convo-w: 300px; }
.stage.small.convo-only { --stage-h: 400px; }
.stage-bar { flex: none; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 48px 0 16px; border-bottom: 1px solid var(--edge); background: var(--card); }
.stage-bar .mark { width: 18px; height: 18px; flex: none; }
.stage-bar .title { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stage-body { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--convo-w) minmax(0, 1fr); }
.stage.convo-only .stage-body { grid-template-columns: minmax(0, 1fr); }
.convo { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--edge); background: var(--card); }
.stage.convo-only .convo { border-right: 0; }
.convo-msgs.clipped { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px); mask-image: linear-gradient(to bottom, transparent 0, #000 36px); }
.convo-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 14px 14px 10px; }
.msg { max-width: 88%; padding: 8px 10px; border-radius: var(--radius-md); }
.msg-user { align-self: flex-end; background: var(--paper); border-bottom-right-radius: var(--radius-xs); }
.msg-agent { align-self: flex-start; border: 1px solid var(--edge); border-bottom-left-radius: var(--radius-xs); display: flex; flex-direction: column; gap: 6px; }
.msg-agent strong { font-weight: 600; }
.attach { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 8px; border: 1px solid var(--edge); border-radius: var(--radius-xs); background: var(--card); font-size: 12px; }
.attach svg { width: 13px; height: 13px; color: var(--pin-reachable); }
.card { align-self: stretch; border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.card-title { font-weight: 600; }
/* the batch card's rows (ui/src/theme.css .card-batch-row, its narrow cut): the number chip on the
   nearest option's band, the name and the verdict word on one line, the option chip beneath */
.batch-rows { list-style: none; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 8px; font-size: 12px; }
.batch-rows li { display: contents; }
.batch-rows .rank { grid-column: 1; grid-row: span 2; align-self: start; }
.batch-rows .head, .batch-rows .chip { grid-column: 2; }
.batch-rows .head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-width: 0; }
.batch-rows .name { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-rows .verdict { font-weight: 500; white-space: nowrap; }
.batch-rows .verdict .muted { font-weight: 400; }
.batch-rows li.on .name { color: var(--blue); }
.batch-rows .chip { justify-self: start; margin-top: -3px; }
/* a row keeps its height while its site is assessed, so nothing jumps when the verdict lands */
.batch-rows .chip[hidden] { display: inline-flex; visibility: hidden; }
.rank { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--band, var(--ink)); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 1px 5px; border-radius: var(--radius-xs); font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--band) 7%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band) 35%, transparent); }
.chip[hidden] { display: none; }
.option-rows { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.option-rows .chip { align-items: center; }
/* the places card (theme.css .card-place): name, the outline's area, the drive, which way */
.place-rows { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content max-content; gap: 4px 10px; font-size: 12px; }
.place-rows li { display: contents; }
.place-rows .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.place-rows .size, .place-rows .far { text-align: right; font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 2px; background: #ffd43b; box-shadow: inset 0 0 0 1px #b8860b; }
.swatch[hidden] { display: none; }
.card .more { font-size: 12px; }
/* published capacity (ui/src/theme.css .chip-cap, .cap-fig, .cap-ladder): the figure ends the chip after a dot,
   in the warning ink when short of the ask; the card's one caveat control at the right of its first line; the
   chain opened under its chip, a rail of nodes, the names, the figures in their own column, then the file */
.chip-cap { display: inline-flex; align-items: center; gap: 2px; }
.chip-cap::before { content: "·"; margin-right: 3px; }
.chip-cap svg, .cap-caveat svg { width: 11px; height: 11px; fill: none; stroke: var(--mid); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip.on .chip-cap .cap-fig { text-decoration: underline; text-decoration-color: var(--mid); text-underline-offset: 2px; }
.chip.on .chip-cap svg { transform: rotate(180deg); stroke: var(--ink); }
.cap-fig[data-state="short"] { color: var(--pin-unreachable); }
.cap-fig[data-state="quiet"] { color: var(--mid); }
.cap-caveat { float: right; display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 11px; font-weight: 400; color: var(--mid); line-height: 20px; }
.card-options .option-rows { display: block; }
/* a chip runs as a line of text, so a long one wraps under its own number; the figure stays whole, and goes
   under the words where the chip is narrower than both (theme.css .chip-tail) */
.card-options .option-rows > .chip { display: inline-block; margin: 0 4px 4px 0; padding: 1px 6px 1px 1px; vertical-align: top; line-height: 18px; max-width: 100%; box-sizing: border-box; }
.card-options .option-rows > .chip .rank { margin-right: 5px; vertical-align: top; }
.card-options .chip-cap { margin-left: 5px; white-space: nowrap; display: inline-flex; vertical-align: top; }
.cap-chain { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 8px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: var(--radius-md); background: var(--card); box-shadow: 0 4px 14px rgba(15, 17, 18, .06); font-size: 12px; clear: both; }
.cap-chain[hidden] { display: none; }
.cap-ladder { display: grid; grid-template-columns: 9px minmax(0, 1fr) max-content; gap: 8px 12px; align-items: baseline; }
.cap-name { min-width: 0; display: flex; flex-direction: column; gap: 1px; font-weight: 500; }
.cap-name.muted { font-weight: 400; color: var(--mid); }
.cap-context { font-size: 11px; font-weight: 400; color: var(--mid); }
.cap-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.cap-node { position: relative; align-self: stretch; }
.cap-node::before { content: ""; position: absolute; left: 0; top: 4px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--mid); background: var(--card); }
.cap-node[data-figure]::before { border-color: var(--ink); background: var(--ink); }
.cap-node[data-ask]::before { border-color: var(--ink); border-radius: 1px; background: var(--ink); }
.cap-node:not([data-last])::after { content: ""; position: absolute; left: 4.5px; top: 14px; bottom: -8px; width: 1px; background: var(--edge); }
.cap-source { margin: 0; padding-top: 8px; border-top: 1px solid var(--edge); font-size: 11px; color: var(--mid); display: flex; flex-direction: column; gap: 1px; }
/* the map's key for the marks (ui/src/map/MapKey.tsx) */
.map-key { position: absolute; left: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 2px; padding: 5px 8px; border-radius: var(--radius-xs); background: rgb(255 255 255 / 0.92); box-shadow: 0 1px 3px rgb(0 0 0 / 0.15); font-size: 11px; }
.map-key span { display: inline-flex; align-items: center; gap: 6px; }
.map-key span[hidden] { display: none; }
.map-key:not(:has(span:not([hidden]))) { display: none; }
/* the beats: what a beat brings fades in; a route draws from the site to its point of connection */
.stage .fade, .stage .view { transition: opacity 0.45s ease; }
.stage [hidden] { display: none; }
.stage .off { opacity: 0; }
.stage .late { transition-delay: 0.9s; }
.stage .late.off { transition-delay: 0s; }
.stage .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease-in-out; }
.stage .draw.off { opacity: 1; stroke-dashoffset: var(--len); transition: none; }
.stage .msg:not([hidden]), .stage .card:not([hidden]) { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.stage.still *, .stage.still .fade { transition: none !important; animation: none !important; }
/* pause and replay, over the window's bar */
.stage-play { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border: 1px solid var(--edge); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.stage-play::before { content: ""; width: 10px; height: 10px; background: currentColor; }
.stage-play.is-pause::before { width: 8px; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px); }
.stage-play.is-play::before { clip-path: polygon(15% 0, 100% 50%, 15% 100%); margin-left: 2px; }
.stage-play.is-replay::before { width: 8px; height: 8px; border-radius: 50%; background: none; border: 2px solid currentColor; border-right-color: transparent; }
.stage-play:hover { border-color: var(--rule); }
.stage-play:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.stage-play[hidden] { display: none; }
/* the composer grows with what is typed, as a real one does, so a long ask wraps inside it */
.composer { flex: none; margin: 0 12px 12px; min-height: 54px; border: 1px solid var(--ink); border-radius: var(--radius-md); padding: 9px 12px; color: var(--mid); font-size: 12px; line-height: 1.45; display: flex; justify-content: space-between; gap: 10px; }
.composer span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.composer i { align-self: flex-end; width: 22px; height: 22px; border-radius: 50%; background: #8a8a84; }
/* the ask being typed: the person's words in ink, a caret after them, the send button live */
.composer.is-typing { color: var(--ink); }
.composer.is-typing span::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--ink); animation: caret 1s steps(1) infinite; }
.composer.is-typing i { background: var(--ink); }
@keyframes caret { 50% { opacity: 0; } }
/* a charging site's card, as the product opens it beside its dot (ui/src/map/map.css .hub-card), at the stage's scale */
.hub-card { position: absolute; z-index: 3; box-sizing: border-box; padding: 9px 11px 8px; display: flex; flex-direction: column; gap: 7px;
  background: var(--card); border: 1px solid var(--edge); border-radius: 8px; box-shadow: 0 6px 20px rgb(15 17 18 / 0.16);
  font-size: 11px; line-height: 1.35; font-variant-numeric: tabular-nums; color: var(--ink); }
.hub-card[hidden] { display: none; }
.hub-card:not(.hub-sheet)::before { content: ""; position: absolute; top: calc(var(--pointer-y, 50%) - 5px); width: 9px; height: 9px; background: var(--card); border: 1px solid var(--edge); rotate: 45deg; }
.hub-card[data-side="right"]::before { left: -6px; border-top-color: transparent; border-right-color: transparent; }
.hub-card[data-side="left"]::before { right: -6px; border-bottom-color: transparent; border-left-color: transparent; }
.hub-sheet { left: 0; right: 0; bottom: 0; border-radius: 8px 8px 0 0; border-bottom: 0; }
.hub-title { display: flex; flex-direction: column; gap: 1px; }
.hub-name { font-size: 12px; font-weight: 600; }
.hub-operator, .hub-bay-label, .hub-small, .hub-foot, .hub-day figcaption { color: var(--mid); }
.hub-bays { display: grid; grid-template-columns: 15px auto minmax(0, 1fr); align-items: center; gap: 4px 8px; }
.hub-bay-group { display: contents; }
.hub-bay { display: block; color: #3a3f41; }
.hub-bay-screen { fill: var(--card); }
.hub-bay-count { font-weight: 600; white-space: nowrap; }
.hub-use { display: flex; flex-direction: column; gap: 6px; padding-top: 7px; border-top: 1px solid var(--edge); }
.hub-headline { display: flex; flex-direction: column; gap: 1px; }
.hub-big { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.hub-day { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.hub-day figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.hub-day-key { display: inline-flex; gap: 8px; white-space: nowrap; }
.hub-day-key > span { display: inline-flex; align-items: center; gap: 4px; }
.hub-day-key i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.hub-day svg { display: block; overflow: visible; }
.hub-day text { font-size: 9px; fill: var(--mid); }
.hub-day-peak rect { fill: #f0f0ee; }
.hub-day-peak text { fill: var(--ink); font-weight: 600; }
.hub-day-grid { stroke: var(--edge); stroke-dasharray: 2 2; }
.hub-day-base { stroke: var(--rule); }
.hub-chips { display: flex; gap: 6px; }
.hub-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: #f0f0ee; font-weight: 500; }
.hub-foot { font-size: 10px; }
.mapbox { position: relative; min-width: 0; min-height: 0; background: #eeeeea; overflow: hidden; }
.mapbox svg { width: 100%; height: 100%; }
.stage-static { padding: 14px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .hero-text { grid-template-columns: 1fr; align-items: start; }
  .hero-text h1 { max-width: 12em; }
  .stage { --convo-w: 340px; }
  .logos .wrap { grid-template-columns: 1fr; gap: var(--s3); }
}
@media (max-width: 900px) {
  .problem-grid, .ask, .ask.flip, .decide-cols, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .ask.flip .ask-text { order: 0; }
  .ask + .ask { margin-top: var(--s7); }
  .quote.lead { grid-row: auto; }
  .stage.small { --convo-w: 260px; }
}
@media (max-width: 720px) {
  .nav .link-hide, .nav .btn-demo { display: none; }
  .site-header .wrap { height: 64px; }
  .logo img { width: 76px; }
  .hero-text { padding-top: var(--s3); gap: var(--s3); }
  .hero .stage-slot { margin-top: var(--s4); }
  .stage, .stage.small { --stage-h: 540px; }
  .stage-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 210px minmax(0, 1fr); }
  .stage.convo-only .stage-body { grid-template-rows: minmax(0, 1fr); }
  .mapbox { order: -1; border-bottom: 1px solid var(--edge); }
  .convo { border-right: 0; }
  .logos ul { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: var(--s4) var(--s2); }
  .logos img { height: 28px; }
  .logos img.l-tight { height: 26px; }
  .logos img.l-nhs { height: 20px; }
  .logos img.l-tesla { width: 64px !important; }
  .press .wrap > div { grid-template-columns: 1fr; gap: var(--s3); }
  .press ul { gap: var(--s3) var(--s4); }
  .press img { height: 32px; }
  .quote, .quote.lead { padding: var(--s3); }
}
@media (max-width: 420px) {
  .actions .btn { flex: 1 1 auto; padding: 0 16px; }
  .actions { flex-wrap: nowrap; }
  .actions .trial { flex: 1 1 auto; }
  .actions .trial .btn { width: 100%; }
  .nav .btn-sm { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- direction C (index.html): editorial restraint. A dark full-bleed hero over the
   town at night with the logos at its foot; a two-tone statement; the agent screen floating on a
   muted, textured panel under underline tabs; capability cards with a fragment of product in each;
   customers by segment; a dark close and footer. Light serif display, quiet grotesque, hairlines,
   near-monochrome, colour only inside the product. Everything here is scoped to .dir-c. */
/* C's own type, not Modo's light serif (Peter, 2026-11-04: "diverge a little more from Modo ... Eg with the
   fonts"): Instrument Sans for display and text (wght 400 to 600, wdth 100) and DM Mono 500 for the small
   labels, both OFL with no reserved name, subset to Latin (docs/features/marketing-site.md, "Own look") */
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.dir-c svg [font-family] { font-family: var(--sans); } /* the scripts' map labels name Inter; C draws them in its own */
.dir-c { --serif: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --sans: var(--serif);
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --night: #0c0e0f; --c-ink: #141617; --c-text: #3d4245; --c-mute: #6d7376; --quiet: #868c8f;
  --c-line: #e3e3e0; --c-grey: #f1f1ef; --c-grey-2: #e9e9e6;
  background: #ffffff; color: var(--c-ink); font-size: 16px; }
.dir-c .wrap { max-width: calc(1344px + 2 * var(--gutter)); }
.dir-c h1, .dir-c h2, .dir-c h3 { font-weight: 500; letter-spacing: -0.03em; color: var(--c-ink); }
.dir-c h2 { font-size: clamp(1.875rem, 1.25rem + 2.1vw, 3.125rem); line-height: 1.08; }
.dir-c .lede { color: var(--c-text); }
/* the eyebrow: mono in network blue behind a substation's square, the mark the hero's map draws */
.c-eyebrow { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--s3); }
.c-eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }

/* buttons: square-ish, quiet */
.dir-c .btn { height: 44px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 0; }
.dir-c .btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.dir-c .btn-primary { background: var(--c-ink); color: #ffffff; }
.dir-c .btn-primary:hover { background: #2b2f31; }
.dir-c .btn-secondary { background: var(--c-grey-2); color: var(--c-ink); }
.dir-c .btn-secondary:hover { background: #dcdcd8; }
.dir-c .site-header .btn-primary, .dir-c .c-hero .btn-primary, .dir-c .c-closing .btn-primary { background: #ffffff; color: var(--c-ink); }
.dir-c .site-header .btn-primary:hover, .dir-c .c-hero .btn-primary:hover, .dir-c .c-closing .btn-primary:hover { background: #e9ecec; }
.dir-c .site-header .btn-secondary, .dir-c .c-hero .btn-secondary, .dir-c .c-closing .btn-secondary { background: rgb(255 255 255 / 0.14); color: #ffffff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dir-c .site-header .btn-secondary:hover, .dir-c .c-hero .btn-secondary:hover, .dir-c .c-closing .btn-secondary:hover { background: rgb(255 255 255 / 0.22); }
.dir-c .site-header :focus-visible, .dir-c .c-hero :focus-visible, .dir-c .c-closing :focus-visible, .dir-c .site-footer :focus-visible { outline-color: #ffffff; }

/* the header floats over the hero: logo, three links, then the actions */
.dir-c .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.dir-c .site-header .wrap { height: 72px; justify-content: flex-start; gap: var(--s6); }
.dir-c .logo img { width: 84px; }
.c-nav { gap: var(--s4); }
.dir-c .site-header a.link { font-size: 14px; font-weight: 400; color: rgb(255 255 255 / 0.86); text-decoration: none; }
.dir-c .site-header a.link:hover { color: #ffffff; }
.c-head-acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.c-demo { padding-right: 14px; margin-right: 4px; border-right: 1px solid rgb(255 255 255 / 0.2); line-height: 22px; }

/* the hero: the poster is the dark ground; the town fades in over it */
.c-hero { position: relative; min-height: max(660px, min(100svh, 980px)); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #ffffff;
  background: radial-gradient(ellipse 60% 55% at 66% 40%, #142026 0%, transparent 72%), var(--night); }
.c-town { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.c-town.is-drawn { opacity: 1; }
.c-town svg { width: 100%; height: 100%; }
/* a site's chain: everything not upstream dims; each step shows at its own --d, a line drawing over --t */
.c-base, .c-net { transition: opacity 1.2s ease; }
.is-lit .c-net { opacity: 0.38; }
.is-lit .c-base { opacity: 0.8; }
.c-places { transition: opacity 0.6s ease; }
.is-lit .c-places { opacity: 0; }
.c-chain { opacity: 0; transition: opacity 0.9s ease; }
.c-chain.on { opacity: 1; transition-duration: 0.2s; }
.c-pin, .c-show, .c-label { opacity: 0; transition: opacity 0.45s ease; }
.c-chain.on .c-pin, .c-chain.on .c-show, .c-chain.on .c-label { opacity: 1; transition-delay: var(--d); }
.c-pin { transform-box: fill-box; transform-origin: center; transform: scale(0.4); transition-property: opacity, transform; }
.c-chain.on .c-pin { transform: none; }
/* the lit chain sits back behind the headline: its own colours, see-through; the words over it stay whole */
.c-lit, .c-route { opacity: 0.55; }
.c-chain.on .c-show { opacity: 0.6; }
.c-lit path, .c-mask { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--t) cubic-bezier(0.45, 0, 0.3, 1); }
.c-chain.on .c-lit path, .c-chain.on .c-mask { stroke-dashoffset: 0; transition-delay: var(--d); }
/* off: the chain fades as a whole, then its steps reset unseen */
.c-chain:not(.on) * { transition-duration: 0s !important; transition-delay: 0.9s !important; }
.c-label text, .c-places { font-family: var(--sans); paint-order: stroke; stroke: #0c0e0f; stroke-width: 3px; stroke-linejoin: round; }
.is-still *, .is-still { transition: none !important; }
/* the headline's side darkens, so the white type always reads */
.c-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(12 14 15 / 0.9) 0%, rgb(12 14 15 / 0.66) 32%, rgb(12 14 15 / 0) 60%),
              linear-gradient(0deg, rgb(12 14 15 / 0.96) 0%, rgb(12 14 15 / 0) 36%),
              linear-gradient(180deg, rgb(12 14 15 / 0.6) 0%, rgb(12 14 15 / 0) 18%); }
.c-hero-in { position: relative; z-index: 1; padding-top: 140px; }
.c-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding-bottom: clamp(56px, 9vh, 104px); }
.dir-c .c-hero h1 { color: #ffffff; max-width: 11em; font-size: clamp(2.5rem, 1.4rem + 3.3vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; }
.dir-c .c-hero .lede { color: rgb(255 255 255 / 0.82); max-width: 30em; font-size: 18px; line-height: 1.5; }
.c-hero .actions { margin-top: var(--s1); gap: 10px; }
.c-hero .price { color: rgb(255 255 255 / 0.6); max-width: none; font-size: 0.875rem; line-height: 1.4; }
/* the logos along the hero's foot */
.c-logos { padding: var(--s4) 0 var(--s4); }
.c-logos .wrap { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: var(--s6); }
.dir-c .c-logos .logos-label { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); white-space: nowrap; }
.c-logos ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); }
.c-logos img { height: 32px; width: auto; opacity: 0.66; }
.c-logos img.l-tight { height: 28px; }
.c-logos img.l-nhs { height: 23px; }
.c-logos img.l-tesla { width: 74px; }

/* the statement: one paragraph, the second sentence quiet */
.c-quiet { color: var(--quiet); }

/* the agent screen: the centrepiece */
.c-agent { padding: clamp(80px, 9vw, 128px) 0 clamp(88px, 10vw, 144px); }
.dir-c .c-agent-h { max-width: 16em; margin: 0 0 var(--s4); }
.c-tabs { display: flex; border-bottom: 1px solid var(--c-line); margin-bottom: var(--s4); overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.c-tabs::-webkit-scrollbar { display: none; }
.c-tabs[hidden] { display: none; }
.c-tab { font: 400 1.125rem/1 var(--sans); color: #8d9396; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.c-tab { padding: 14px 0 18px; margin-right: var(--s5); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.c-tab:last-child { margin-right: 0; }
.c-tab:hover { color: var(--c-ink); }
.c-tab[aria-selected="true"] { color: var(--c-ink); font-weight: 500; border-bottom-color: var(--c-ink); }
.c-tab:focus-visible { outline-offset: -2px; }
/* the panel: muted, softly textured; the window floats in it */
.c-panel { position: relative; border-radius: 10px; padding: clamp(14px, 3.4vw, 56px) clamp(10px, 8vw, 128px) 0; overflow: hidden;
  background-color: #b9c3cb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 80% at 20% 0%, #cfd7dd 0%, transparent 70%), linear-gradient(170deg, #c3ccd3 0%, #a9b5bf 100%); }
.c-window { display: grid; grid-template-columns: 48px minmax(0, 1fr); background: #ffffff; border-radius: 10px 10px 0 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(15 17 18 / 0.06), 0 30px 70px -20px rgb(20 35 50 / 0.45); }
.c-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0; background: #fbfbfa; border-right: 1px solid #ececea; }
.c-rail .mark { width: 18px; height: 18px; margin-bottom: 12px; }
.c-rail i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: #7a8083; }
.c-rail i.on { background: #ededeb; color: var(--c-ink); }
.c-rail svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-rail b { margin-top: auto; width: 24px; height: 24px; border-radius: 50%; background: #dde1e3; }
.c-stage .stage { --stage-h: clamp(540px, 64vh, 640px); --convo-w: 420px; border: 0; border-radius: 0; box-shadow: none; }
.c-stage .stage-bar { display: none; }
.c-stage .stage-play { top: 10px; right: 10px; }
/* the workflow's steps, on the map beside the pause button: done, now, to come */
.stage-steps { position: absolute; top: 10px; right: 46px; z-index: 3; display: flex; gap: 12px; height: 28px; align-items: center; padding: 0 12px; margin: 0;
  list-style: none; background: rgb(255 255 255 / 0.94); border: 1px solid #e3e3e0; border-radius: 14px; font: 500 12px/1 var(--sans); color: #a3a8ab; pointer-events: none; }
.stage-steps li { display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .3s; }
.stage-steps b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; font: 500 10px/1 var(--mono); transition: background .3s, color .3s; }
.stage-steps .done { color: #5d6467; }
.stage-steps .now { color: var(--c-ink); }
.stage-steps .now b { background: var(--c-ink); border-color: var(--c-ink); color: #ffffff; }
/* click or tap anywhere on the platform view to pause; Space or Enter when it has focus */
.stage-slot.is-live { cursor: pointer; }
.stage-slot.is-live:focus { outline: none; }
.stage-slot.is-live:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.stage-slot.is-paused .stage-play { background: var(--c-ink, #0f1112); border-color: var(--c-ink, #0f1112); color: #ffffff; }
.c-stage .convo-msgs { padding: 22px 22px 12px; gap: 10px; }
.c-stage .msg-user { max-width: 84%; background: #f1f1ef; border-radius: 8px; }
.c-stage .msg-agent { border: 0; padding: 4px 0; max-width: 100%; }
.c-stage .card { border-color: #e3e3e0; border-radius: 8px; }
.c-stage .composer { border-color: #d9d9d5; border-radius: 8px; margin: 0 16px 16px; }


/* the problem, as an editorial path */
.dir-c .c-problem { padding: clamp(88px, 10vw, 144px) 0; background: var(--c-grey); }
.dir-c .c-problem .lede { font-size: 16px; }
.dir-c .path li::before { border-color: #a4abaf; background: var(--c-grey); }
.dir-c .path li::after { background: #cfd3d5; }
.dir-c .path li.wait::after { background: repeating-linear-gradient(to bottom, #cfd3d5 0 4px, transparent 4px 9px); }
.dir-c .path li { color: var(--c-text); }
.dir-c .path li strong { font-weight: 500; color: var(--c-ink); }
.dir-c .aside-quote { border-left-color: var(--c-ink); font-weight: 400; letter-spacing: -0.02em; font-size: 1.375rem; color: var(--c-ink); }

/* customers by segment */
.c-quotes { padding: clamp(88px, 10vw, 144px) 0 var(--s7); background: #ffffff; }
.c-quotes h2 { margin: 0 0 var(--s5); max-width: 16em; }
/* every quote at once, a row of the night cards (Peter, 2026-11-04: "more to be visible up front without people
   having to click"): the customer's mark, their words, then their face and name at the card's foot */
.c-qgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.c-q { margin: 0; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--s4); padding: var(--s4);
  border-radius: 8px; color: #ffffff; background: radial-gradient(ellipse 120% 70% at 50% 0%, #23313a 0%, var(--night) 78%); }
.c-q blockquote { margin: 0 0 auto; font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.05rem + 0.45vw, 1.5rem); line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty; }
.c-q blockquote p { margin: 0; }
.c-q blockquote p::before { content: "\201C"; }
.c-q blockquote p::after { content: "\201D"; }
.c-q figcaption { display: flex; align-items: center; gap: 12px; padding-top: var(--s3); border-top: 1px solid rgb(255 255 255 / 0.14); }
.c-q figcaption > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-q figcaption b { font-weight: 500; font-size: 15px; }
.c-q figcaption span span { color: rgb(255 255 255 / 0.62); font-size: 13px; line-height: 1.35; }
.c-q-logo { height: 26px; width: auto; align-self: flex-start; opacity: 0.85; }
.c-q-logo.l-tesla { height: 22px; }
.c-q-logo.l-nhs { height: 20px; }
.c-q-face { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18); }
.dir-c .press { padding: var(--s5) 0 clamp(72px, 8vw, 112px); background: #ffffff; }
.dir-c .press .wrap > div { border-top-color: var(--c-line); }
.dir-c .press-label { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-mute); }
.dir-c .press img { opacity: 0.7; height: 30px; max-width: 100%; object-fit: contain; object-position: left center; }
/* thirteen titles in an even grid; a long wordmark sits lower so each reads at about the same size */
.dir-c .press ul { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s4) var(--s5); }
.dir-c .press a { width: fit-content; max-width: 100%; }
.dir-c .press img.p-uw { height: 24px; }
.dir-c .press img.p-wide { height: 15px; }
.dir-c .press img.p-tall { height: 40px; }
@media (max-width: 1080px) { .dir-c .press ul { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dir-c .press ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s4); } .dir-c .press img { height: 26px; } .dir-c .press img.p-wide { height: 13px; } .dir-c .press img.p-tall { height: 34px; } }

/* the close: dark, the town still behind it */
.c-closing { position: relative; overflow: hidden; background: var(--night); color: #ffffff; padding: clamp(128px, 15vw, 220px) 0; }
.c-closing .c-town.is-drawn { opacity: 0.6; }
.c-closing::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 25% 50%, rgb(12 14 15 / 0.85) 0%, rgb(12 14 15 / 0.35) 75%), linear-gradient(0deg, var(--night) 0%, transparent 35%); }
.c-closing .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.dir-c .c-closing h2 { color: #ffffff; font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 11em; }
.c-closing .actions { gap: 10px; }
.dir-c .site-footer { background: var(--night); padding-top: var(--s5); }
.dir-c .foot-top { border-bottom-color: rgb(255 255 255 / 0.1); }
.dir-c .foot-top img { width: 84px; }
.dir-c .foot-links a, .dir-c .foot-count { color: rgb(255 255 255 / 0.86); }
.dir-c .foot-legal { color: rgb(255 255 255 / 0.55); font-size: 13px; }

@media (max-width: 1080px) {
  .c-stage .stage { --convo-w: 340px; }
  .c-nav { display: none; }
}
@media (max-width: 900px) {
  .c-qgrid { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
}
@media (max-width: 720px) {
  .dir-c .site-header .wrap { height: 60px; }
  .dir-c .logo img { width: 72px; }
  .c-demo, .c-head-acts .btn-secondary { display: none; }
  .c-hero { min-height: max(620px, 100svh); }
  .c-hero::after { background: linear-gradient(0deg, rgb(12 14 15 / 0.97) 0%, rgb(12 14 15 / 0.86) 46%, rgb(12 14 15 / 0.05) 78%), linear-gradient(180deg, rgb(12 14 15 / 0.6) 0%, rgb(12 14 15 / 0) 14%); }
  .c-hero-in { padding-top: 110px; }
  .c-hero-text { gap: var(--s2); padding-bottom: var(--s5); }
  .dir-c .c-hero .lede { font-size: 15px; }
  .c-hero .actions { flex-wrap: nowrap; width: 100%; }
  .c-hero .actions .btn { flex: 1 1 0; padding: 0 12px; }
  .c-logos { padding: var(--s3) 0; border-top: 1px solid rgb(255 255 255 / 0.08); }
  .c-logos .wrap { grid-template-columns: 1fr; gap: var(--s2); }
  .c-logos ul { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: var(--s3) var(--s2); }
  .c-logos img { height: 22px; }
  .c-logos img.l-tight { height: 20px; }
  .c-logos img.l-nhs { height: 16px; }
  .c-logos img.l-tesla { width: 52px; }
  .c-tabs { width: 100%; justify-content: space-between; }
  .c-tab { font-size: 13px; margin-right: 0; padding: 12px 0 14px; }
  /* four sectors in the width of a phone: a label wraps onto a second line where it needs to, every tab on the strip's foot */
  .c-tabs { gap: 10px; align-items: flex-end; overflow-x: visible; }
  .c-tab { white-space: normal; text-align: left; line-height: 1.25; }
  .c-panel { padding: 10px; }
  .c-window { border-radius: 8px; }
  .c-window { grid-template-columns: minmax(0, 1fr); }
  .c-rail { display: none; }
  .c-stage .stage { --stage-h: 580px; }
  .c-stage .convo-msgs { padding: 14px; }
  .stage-steps { gap: 8px; padding: 0 10px; right: 46px; left: auto; }
  .stage-steps li:not(.now) span { display: none; }
  .c-closing .actions .btn { flex: 0 1 auto; }
}

/* ---- The stack: Yottar's layers as one operating system, built as the
   visitor scrolls (stack.js). Each layer's parts, named in the list, slide
   onto its plate; then the case closes round them. The default is the
   still state (no script, or reduced motion): every plate settled, the case
   closed, every line and part shown. stack.js adds .is-live to animate.
   Paper and ink: warm off-white ground, paper plates with hairline edges
   and soft shadows, near-black for the layer in focus, a slate blue-grey
   accent. No glow. ---- */
.stack {
  --w: clamp(240px, min(28vw, 48svh), 420px);
  --gap: calc(var(--w) * 0.12);
  --th: calc(var(--w) * 0.018);
  --drop: calc(var(--w) * 0.2);
  --case-h: calc(var(--gap) * 5 + var(--w) * 0.13);
  --s-bg: #f4f3f0; --s-paper: #fbfaf8; --s-panel: #e4eaf0; --s-slate: #a3b3c3; --s-slate-d: #6b7d90;
  --s-ink: #161616; --s-text: #4a4f52; --s-mute: #75797c; --s-line: rgb(22 22 22 / 0.12);
  position: relative; overflow-x: clip; color: var(--s-ink);
  background: var(--s-bg); border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line);
}
.stack .stack-head h2 { color: var(--s-ink); max-width: 11em; }
.stack .stack-head .lede { color: var(--s-text); font-size: 16px; margin-top: var(--s3); max-width: 26em; }
.stack-grid { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: var(--s5); padding-block: clamp(88px, 10vw, 144px); }
.stack-side { display: flex; flex-direction: column; gap: var(--s5); }

/* the list: one row per layer, its line, and (still) its parts */
.stack-list { list-style: none; border-top: 1px solid var(--s-line); }
.stack-list > li { display: grid; grid-template-rows: auto 1fr; border-bottom: 1px solid var(--s-line); padding: 11px 0; }
.stack-pill { justify-self: start; display: inline-flex; align-items: center; gap: 12px; font: 400 1.0625rem/1.3 var(--sans); letter-spacing: -0.01em; color: var(--s-ink); white-space: nowrap; transition: color .3s; }
.stack-pill::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--s-ink); transition: background-color .3s, box-shadow .3s; }
.stack-list > li > p, .stack-skills { font-size: 14.5px; line-height: 1.5; color: var(--s-text); max-width: 32em; padding: 6px 0 2px 18px; overflow: hidden; min-height: 0; text-wrap: pretty; }
/* Skills: a capability list, one per line, each on a small node */
.stack-skills { list-style: none; display: grid; gap: 3px; font-size: 14px; line-height: 1.4; }
.stack-skills li { position: relative; padding-left: 14px; }
.stack-skills li::before { content: ""; position: absolute; left: 1px; top: 0.56em; width: 4px; height: 4px; border-radius: 1px; background: var(--s-slate-d); }
/* a layer's parts, still: one strip of pictures, edge to edge, each named under its picture */
.stack-parts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 24em; margin: 10px 0 4px 18px;
  border: 1px solid var(--s-line); border-radius: 4px; overflow: hidden; gap: 1px; background: var(--s-line); }
.stack-parts li { display: flex; flex-direction: column; min-width: 0; font: 500 12px/1.25 var(--sans); color: var(--s-text); background: var(--s-paper); }
.stack-parts li:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.stack-parts img { display: block; width: 100%; height: auto; }
.stack-parts span { padding: 7px 8px; }

/* the scene: an orthographic isometric stack in CSS 3D */
.stack-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; height: min(100svh, 880px); align-self: start; position: sticky; top: max(0px, calc(50svh - 440px)); }
/* the iso's own box is the bottom plate; the stack and its case rise above
   it (by about half its width), so the box is pushed down by that and a
   gap to keep the closed case whole under the title */
.stack-iso { flex: none; position: relative; width: var(--w); height: var(--w); margin-top: calc(var(--w) * 0.5 + 52px); margin-bottom: calc(var(--w) * -0.1);
  transform: rotateX(58deg) rotateZ(45deg); transform-style: preserve-3d; }
.stack-floor, .stack-shadow, .stack-plate, .stack-case { position: absolute; inset: 0; transform-style: preserve-3d; }
/* the floor: a drawing sheet's faint hairline grid, fading out */
.stack-floor { inset: -60%; transform: translateZ(-30px); pointer-events: none;
  background: linear-gradient(rgb(22 22 22 / 0.06) 1px, transparent 1px) 0 0 / calc(var(--w) / 8) calc(var(--w) / 8), linear-gradient(90deg, rgb(22 22 22 / 0.06) 1px, transparent 1px) 0 0 / calc(var(--w) / 8) calc(var(--w) / 8);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent); mask-image: radial-gradient(closest-side, #000 20%, transparent); }
.stack-shadow { inset: -6%; transform: translateZ(-14px); border-radius: 12px; background: rgb(22 22 22 / 0.05); box-shadow: 0 0 calc(var(--w) * 0.12) calc(var(--w) * 0.02) rgb(22 22 22 / 0.08); }
.stack-plate, .stack-case { --t: 1; }
.stack-plate { transform: translateZ(calc(var(--i) * var(--gap) + (1 - var(--t)) * var(--drop))); }
.stack-plate > * { opacity: calc(var(--t) * var(--t)); }
/* each plate casts a soft shadow on the one below */
.stack-plate::before { content: ""; position: absolute; inset: 2%; border-radius: 8px; opacity: var(--t);
  transform: translateZ(calc(var(--gap) * -0.85)) translate(calc(var(--w) * 0.012), calc(var(--w) * 0.012));
  background: rgb(22 22 22 / 0.035); box-shadow: 0 0 calc(var(--w) * 0.05) rgb(22 22 22 / 0.09); }
.stack-plate[data-layer="0"]::before { display: none; }
.stack-face {
  position: absolute; inset: 0;
  border-radius: 6px; border: 1px solid rgb(22 22 22 / 0.28);
  background: var(--s-paper);
  transition: border-color .3s;
}
.stack-face > b { position: absolute; z-index: 1; right: 0; bottom: 0; padding: calc(var(--w) * 0.022) calc(var(--w) * 0.03); border-radius: 4px 0 0 0;
  background: var(--s-panel); font: 600 calc(var(--w) * 0.028)/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-ink);
  transition: background-color .3s, color .3s; }
.stack-face-parts { position: absolute; inset: 0; display: grid; grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); }
.stack-face-parts i:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.stack-face > :not(b) { transition: opacity .4s; }
.stack-plate.is-under .stack-face > .stack-face-parts { opacity: 0.94; }
.stack-face-parts i { display: block; min-height: 0; --k: 1; box-shadow: inset 0 0 0 0.5px rgb(22 22 22 / 0.16); }
.stack-face-parts img { display: block; width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgb(22 22 22 / 0.1); outline-offset: -1px;
  opacity: calc(var(--k) * 4); transform: translate3d(calc((1 - var(--k)) * var(--dir, -1) * 120%), 0, calc((1 - var(--k)) * var(--w) * 0.02));
  transition: outline-color .5s; }
.stack-face-parts i.is-snap img { outline: 1.5px solid var(--s-ink); }
/* the plate's thickness: two paper edges, darker away from the light */
.stack-plate > i { position: absolute; display: block; }
.stack-plate .e1 { left: 6px; right: 0; top: 100%; height: var(--th); transform-origin: top; transform: rotateX(-90deg); background: #cfd6dd; }
.stack-plate .e2 { top: 6px; bottom: 0; left: 100%; width: var(--th); transform-origin: left; transform: rotateY(90deg); background: #b6c1cc; }
.stack-plate.is-on .stack-face { border-color: var(--s-ink); }
.stack-plate.is-on .stack-face > b { background: var(--s-ink); color: var(--s-bg); }
.stack-plate.is-on .e1 { background: var(--s-ink); }
.stack-plate.is-on .e2 { background: #3a3d40; }

/* the case: Security, round everything, closed when the last layer is in.
   A pale blue-grey glass, drawn in hairlines. */
.stack-case { inset: calc(var(--w) * -0.07); }
.stack-case > i { position: absolute; display: block; opacity: calc(var(--t) * 3); }
.stack-case > .w1, .stack-case > .w2, .stack-case > .w3, .stack-case > .w4 { border: 1px solid rgb(107 125 144 / 0.6); background: rgb(228 234 240 / 0.12); }
.stack-case .w1 { left: 0; top: 100%; width: 100%; height: var(--case-h); transform-origin: top; transform: rotateX(90deg) scaleY(var(--t)); }
.stack-case .w2 { top: 0; left: 100%; width: var(--case-h); height: 100%; transform-origin: left; transform: rotateY(-90deg) scaleX(var(--t)); }
.stack-case .w3 { left: 0; bottom: 100%; width: 100%; height: var(--case-h); transform-origin: bottom; transform: rotateX(-90deg) scaleY(var(--t)); }
.stack-case .w4 { top: 0; right: 100%; width: var(--case-h); height: 100%; transform-origin: right; transform: rotateY(90deg) scaleX(var(--t)); }
.stack-case .lid { inset: 0; border-radius: 6px; opacity: var(--t);
  transform: translateZ(calc(var(--case-h) + (1 - var(--t)) * var(--w) * 0.06));
  background: rgb(228 234 240 / 0.06); border: 1px solid var(--s-slate-d); }

/* the names (stack.js): beside the stack on dashed orthogonal leaders from
   their tiles, for the layer in focus; under the stack on a narrow screen.
   Flat, never on the tilted plate, so they stay easy to read. */
.stack-tags { position: absolute; inset: 0; pointer-events: none; }
.stack-tagset { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.stack-tagset.is-on { opacity: 1; }
.stack-leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stack-leads polyline { fill: none; stroke: var(--s-slate-d); stroke-width: 1; stroke-dasharray: 3 3; stroke-linejoin: miter; }
.stack-leads circle { fill: var(--s-paper); stroke: var(--blue); stroke-width: 1.5; }
.stack-pin-at { position: absolute; width: 0; height: 0; }
.stack-oslead { opacity: 1; }
.stack-leads g, .stack-tag { opacity: 0; }
.stack-tag { position: absolute; max-width: 200px; transform: translateY(-50%); font: 500 14px/1.3 var(--sans); color: var(--s-ink); text-wrap: balance; }
/* the title: the name of the whole, above the stack; the case's leader drops to it */
.stack-os { position: relative; z-index: 1; flex: none; font: 500 20px/1.35 var(--sans); letter-spacing: -0.01em; color: var(--s-ink); transition: color .5s; text-align: center; text-wrap: balance; padding-inline: 16px; }

.stack [data-layer="0"] { --i: 0; }
.stack [data-layer="1"] { --i: 1; }
.stack [data-layer="2"] { --i: 2; }
.stack [data-layer="3"] { --i: 3; }
.stack [data-layer="4"] { --i: 4; }
.stack [data-layer="5"] { --i: 5; }

/* live: the section pins while each layer's parts slide in */
.stack.is-live .stack-track { height: calc(100svh + 6 * 50svh); }
.stack.is-live .stack-pin { position: sticky; top: 0; height: 100svh; }
/* both columns hang from the same line, so the title above the stack sits
   level with the eyebrow and nothing above the open layer moves as layers
   open and close */
.stack.is-live { --pt: clamp(24px, calc(50svh - 350px), 112px); }
.stack.is-live .stack-grid { height: 100%; grid-template-rows: minmax(0, 1fr); padding-block: 0; align-items: stretch; }
.stack.is-live .stack-side { justify-content: flex-start; padding-top: var(--pt); }
.stack.is-live .stack-scene { position: relative; top: auto; height: 100%; align-self: stretch; justify-content: flex-start; padding-top: calc(var(--pt) - 5px); }
.stack.is-live .stack-list > li { grid-template-rows: auto 0fr; transition: grid-template-rows .4s ease; }
.stack.is-live .stack-list > li.is-on { grid-template-rows: auto 1fr; }
.stack.is-live .stack-list > li > p, .stack.is-live .stack-skills { opacity: 0; padding-block: 0; transition: opacity .3s, padding .4s ease; }
.stack.is-live .stack-list > li.is-on > p, .stack.is-live .stack-list > li.is-on .stack-skills { opacity: 1; padding-block: 6px 2px; }
.stack.is-live .stack-parts { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stack.is-live .stack-pill { color: rgb(22 22 22 / 0.4); }
.stack.is-live .stack-pill::before { background: rgb(22 22 22 / 0.2); }
.stack.is-live li.is-done .stack-pill { color: var(--s-text); }
.stack.is-live li.is-done .stack-pill::before { background: var(--s-slate); }
.stack.is-live li.is-on .stack-pill { color: var(--s-ink); font-weight: 500; }
.stack.is-live li.is-on .stack-pill::before { background: var(--s-ink); }
.stack.is-live .stack-os { translate: calc(var(--w) * -0.24) 0; }
.stack.is-live:not(.is-whole) .stack-os { color: var(--s-mute); }
.stack.is-live .stack-iso { translate: calc(var(--w) * -0.24) var(--lift, 0px); }
.stack.is-live .stack-tags { translate: 0 var(--lift, 0px); }
@media (max-height: 760px) and (min-width: 1101px) {
  .stack.is-live .stack-head .lede { display: none; }
  .stack.is-live .stack-head h2 { font-size: 2.75rem; }
  .stack.is-live .stack-side { gap: var(--s4); }
  .stack.is-live .stack-list > li { padding-block: 7px; }
  .stack.is-live .stack-skills { gap: 1px; }
}

@media (max-width: 1100px) {
  /* as large as the screen leaves after the title, the names and the open line */
  .stack { --w: clamp(170px, min(54vw, calc((100svh - 400px) / 1.5)), 300px); }
  .stack-face > b { font-size: 7px; }
  .stack-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .stack .stack-grid { max-width: calc(600px + 2 * var(--gutter)); }
  .stack-side { display: contents; }
  .stack-head { order: 0; }
  .stack-scene { order: 1; position: relative; top: auto; height: calc(var(--w) * 1.9); }
  .stack-list { order: 2; }
  .stack.is-live .stack-os, .stack.is-live .stack-tags { translate: none; }
  .stack.is-live .stack-iso { translate: 0 var(--lift, 0px); }
  .stack-tagset { inset: auto 0 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; padding: 0 8px; }
  .stack-leads { display: none; }
  .stack-tag { position: static; transform: none; max-width: none; font-size: 12px; line-height: 1.3; color: var(--s-text); }
  .stack-parts { max-width: none; }
  .stack-os { font-size: 15px; }
  /* live at narrow width: the pills wrap in rows, and the open line sits in room held under them */
  /* live at narrow width: the heading scrolls off (--head, stack.js), then the
     section holds a screen of the stack, centred in what the open line leaves */
  .stack.is-live .stack-pin { top: calc(var(--head, 0px) * -1); height: calc(100svh + var(--head, 0px)); }
  .stack.is-live .stack-grid { grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s2); padding-bottom: 16px; }
  .stack.is-live .stack-scene { justify-content: center; }
  .stack.is-live .stack-tagset.is-listed { display: none; }
  .stack.is-live .stack-head .lede { display: none; }
  .stack.is-live .stack-scene { height: auto; padding-top: 12px; }
  .stack.is-live .stack-iso { margin-top: calc(var(--w) * 0.5 + 24px); }
  .stack.is-live .stack-tags { position: relative; inset: auto; align-self: stretch; height: 68px; margin-top: 12px; }
  .stack.is-live .stack-tagset { inset: 0 0 auto 0; }
  .stack.is-live .stack-list { --room: 162px; display: flex; flex-wrap: wrap; gap: 6px 16px; border-top: 0; position: relative; padding-bottom: calc(var(--room) + 8px); }
  .stack.is-live .stack-list > li { display: block; border: 0; padding: 4px 0; }
  .stack.is-live .stack-pill { font-size: 15px; gap: 8px; }
  .stack.is-live .stack-list > li > p, .stack.is-live .stack-skills { position: absolute; left: 0; right: 0; top: calc(100% - var(--room)); height: var(--room); padding: 0; max-width: none; font-size: 14px; }
  .stack.is-live .stack-skills { font-size: 13px; line-height: 1.35; gap: 1px; }
  .stack.is-live .stack-list > li.is-on > p, .stack.is-live .stack-list > li.is-on .stack-skills { padding: 0; }
}
