/* Jervex Technologies website stylesheet (rebuilt 22 Oct 2026 in the round 4.1 language).
   One bold idea: the logo's slanted stroke fills the background, scattered at the top of each page and lined up into
   flowing lanes as you read down. Everything else is quiet. Colour has a job: cobalt for things you can act on, money
   green for good outcomes, navy for text and structure. Every colour is a token, so light and dark cover every page.
   No inline styles or scripts (the site's security policy forbids them); motion stops for reduced motion or Pause. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
/* the naira glyph lives in its own small file; the same width range keeps it in expanded figures */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-naira.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+20A6; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

/* ---------- tokens: light (default) ---------- */
:root {
  --navy: #10243a; --cobalt: #2563eb;
  --bg: #eceff3; --surface: #ffffff; --panel: #f5f7f9; --line: #d3d9e1; --line-strong: #9aa6b5; --field-line: #6b7787;
  --ink: #10243a; --ink-soft: #2f3f52; --muted: #4f5b6a;
  --link: #1d4ed8; --accent: #2563eb; --green: #0f7a52; --green-ink: #0b5c3d; --green-soft: #dcefe5; --ask-soft: #fff4d6;
  --ok: #0b5c3d; --ok-tint: #dcefe5; --warn: #7a4b00; --warn-tint: #fff4d6; --bad: #a3261b; --bad-tint: #fbe4e1; --info: #1d4ed8; --info-tint: #e3ebfd;
  --button-bg: #10243a; --button-fg: #ffffff; --button-hover: #1d4ed8; --button-hover-fg: #ffffff;
  --result-bg: #10243a; --result-fg: #ffffff; --result-soft: #c7d1dd; --result-hot: #8ff0c2; --result-line: rgba(255, 255, 255, 0.18);
  --amb-1: #2563eb; --amb-2: #0f7a52; --amb-alpha: 0.14;
  --wire: #0f7a52; --dot: #2563eb; --row: #f3f5f8; --me-bg: #1d4ed8; --me-fg: #ffffff;
  --display: "Newsreader", Georgia, serif; --body: "Archivo", system-ui, sans-serif;
  --stroke-cut: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px); --header-h: 72px; --measure: 66ch;
  --r: 4px; --r-ctl: 6px;
  color-scheme: light;
}
/* ---------- tokens: dark (the device's setting, or the toggle) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1520; --surface: #122133; --panel: #18293e; --line: #24384f; --line-strong: #4a6280; --field-line: #7d8da3;
    --ink: #eef2f7; --ink-soft: #c7d1dd; --muted: #9eacbd;
    --link: #8ab0fa; --accent: #8ab0fa; --green: #5fd3a0; --green-ink: #7fe0b4; --green-soft: #143528; --ask-soft: #33290f;
    --ok: #7fe0b4; --ok-tint: #143528; --warn: #f2c66b; --warn-tint: #33290f; --bad: #ff9c8f; --bad-tint: #3a1a17; --info: #8ab0fa; --info-tint: #16294a;
    --button-bg: #eef2f7; --button-fg: #10243a; --button-hover: #8ab0fa; --button-hover-fg: #10243a;
    --result-bg: #18293e; --result-fg: #eef2f7; --result-soft: #b5c2d1; --result-hot: #5fd3a0; --result-line: rgba(238, 242, 247, 0.16);
    --amb-1: #8ab0fa; --amb-2: #5fd3a0; --amb-alpha: 0.2;
    --wire: #5fd3a0; --dot: #8ab0fa; --row: #18293e; --me-bg: #8ab0fa; --me-fg: #10243a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1520; --surface: #122133; --panel: #18293e; --line: #24384f; --line-strong: #4a6280; --field-line: #7d8da3;
  --ink: #eef2f7; --ink-soft: #c7d1dd; --muted: #9eacbd;
  --link: #8ab0fa; --accent: #8ab0fa; --green: #5fd3a0; --green-ink: #7fe0b4; --green-soft: #143528; --ask-soft: #33290f;
  --ok: #7fe0b4; --ok-tint: #143528; --warn: #f2c66b; --warn-tint: #33290f; --bad: #ff9c8f; --bad-tint: #3a1a17; --info: #8ab0fa; --info-tint: #16294a;
  --button-bg: #eef2f7; --button-fg: #10243a; --button-hover: #8ab0fa; --button-hover-fg: #10243a;
  --result-bg: #18293e; --result-fg: #eef2f7; --result-soft: #b5c2d1; --result-hot: #5fd3a0; --result-line: rgba(238, 242, 247, 0.16);
  --amb-1: #8ab0fa; --amb-2: #5fd3a0; --amb-alpha: 0.2;
  --wire: #5fd3a0; --dot: #8ab0fa; --row: #18293e; --me-bg: #8ab0fa; --me-fg: #10243a;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.014em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.35rem + 3.7vw, 4.5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); line-height: 1.05; max-width: 22ch; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; font-weight: 600; }
h4 { font-size: 1.05rem; line-height: 1.3; font-weight: 650; }
.h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; font-weight: 600; max-width: none; }
a { color: var(--link); text-underline-offset: 0.22em; }
img, svg { max-width: 100%; display: block; }
strong, b { font-weight: 650; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
/* author display rules (grid, flex) must never un-hide a [hidden] element */
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.stack { display: grid; gap: 1rem; align-content: start; }
.lead { font-size: clamp(1.12rem, 1.04rem + 0.35vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 48ch; }
.small, .note, .grid-label, .legal-meta, .after-note { font-size: 0.92rem; color: var(--muted); }
.grid-label, .after-note { margin-top: 1.4rem; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 0.75rem 1rem; border-radius: var(--r-ctl); background: var(--button-bg); color: var(--button-fg); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.badge, .tag { display: inline-flex; align-items: center; justify-self: start; gap: 0.4rem; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.badge::before, .tag::before { content: ""; flex: none; width: 1.1rem; height: 0.38rem; background: var(--green); clip-path: var(--stroke-cut); }
.tag { color: var(--green-ink); font-size: 0.95rem; }
.pending { background: var(--warn-tint); color: var(--warn); border: 1px dashed var(--warn); border-radius: 3px; padding: 0 0.3rem; font-size: 0.9em; font-weight: 600; }

/* ---------- the moving background: drawn by site.js on one canvas; the cap sits on the whole layer ---------- */
.ambient { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; opacity: var(--amb-alpha); }

/* ---------- review banner (review builds only) ---------- */
.review-banner { background: var(--warn-tint); color: var(--warn); border-bottom: 1px solid var(--warn); font-size: 0.92rem; }
.review-inner { padding-block: 0.55rem; display: grid; gap: 0.3rem; }
.review-banner summary { cursor: pointer; font-weight: 650; }
.review-banner ol { padding-left: 1.2rem; list-style: decimal; display: grid; gap: 0.2rem; margin: 0.4rem 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 0.4rem; min-height: var(--header-h); }
.brand { margin-right: auto; display: inline-flex; border-radius: var(--r); }
.logo-plate { display: inline-flex; border-radius: var(--r); }
.brand-logo { height: 44px; width: auto; }
.site-nav ul { display: flex; gap: 0.1rem; }
.site-nav a:not(.button) { display: block; padding: 0.55rem 0.62rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: var(--r-ctl); }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .nav-cta { display: none; }
.icon-button, .menu-button { min-width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; border-radius: var(--r-ctl); border: 1.5px solid var(--field-line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; }
.icon-button:hover, .menu-button:hover { border-color: var(--ink); }
.icon-button svg, .menu-button svg { width: 20px; height: 20px; fill: currentColor; }
.icon-button .i-sun, .icon-button .i-moon { fill: none; }
.i-play, .i-moon { display: none !important; }
[data-motion-toggle][aria-pressed="true"] .i-pause { display: none; }
[data-motion-toggle][aria-pressed="true"] .i-play { display: block !important; }
[data-theme-toggle][aria-pressed="true"] .i-sun { display: none; }
[data-theme-toggle][aria-pressed="true"] .i-moon { display: block !important; }
.still [data-motion-toggle] { display: none; }
.menu-button { display: none; padding: 0 0.85rem; }
.header-cta { margin-left: 0.4rem; }
.header-cta.button { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.98rem; }
@media (max-width: 1179px) {
  .site-nav { display: none; }
  .menu-button { display: inline-flex; }
  .nav-open .site-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.4rem var(--gutter) 1.4rem; box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.5); }
  .nav-open .site-nav ul { flex-direction: column; }
  .site-nav a:not(.button) { padding: 0.75rem 0.1rem; min-height: 48px; font-size: 1.12rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 719px) {
  :root { --header-h: 64px; }
  .header-cta { display: none !important; }
  .nav-open .site-nav .nav-cta { display: inline-flex; margin-top: 1.1rem; }
  .brand-logo { height: 36px; }
}
@media (max-width: 380px) { .menu-button { padding: 0 0.6rem; } .brand-logo { height: 32px; } }
/* the approved logo is for light backgrounds only, so in dark mode it sits on a white plate */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-plate { background: #ffffff; padding: 4px 9px; } }
:root[data-theme="dark"] .logo-plate { background: #ffffff; padding: 4px 9px; }

/* ---------- buttons and links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 0.75rem 1.35rem; border-radius: var(--r-ctl); border: 2px solid var(--button-bg); background: var(--button-bg); color: var(--button-fg); font: inherit; font-weight: 700; font-size: 1.04rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.button:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--button-hover-fg); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.button-small { min-height: 44px; padding: 0.5rem 0.95rem; font-size: 0.95rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.text-link { font-weight: 700; color: var(--link); }
.copy-button { min-height: 44px; padding: 0.4rem 0.8rem; font: inherit; font-size: 0.95rem; font-weight: 650; color: var(--link); background: transparent; border: 1.5px solid var(--field-line); border-radius: var(--r-ctl); cursor: pointer; }
.copy-button:hover { border-color: var(--link); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(3.6rem, 2.2rem + 4.6vw, 6.8rem); }
.section-tint, .ai-band { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(1.8rem, 1.3rem + 2vw, 3rem); max-width: 48rem; }
.section-head .lead { font-size: 1.18rem; }
.split { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 4rem); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } .split > .section-head { margin-bottom: 0; } }
.two-col { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3.4rem); }
@media (min-width: 860px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.three-col { display: grid; gap: 0 2.4rem; }
@media (min-width: 760px) { .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- inner page heads: the h1 over the moving background ---------- */
.page-head { padding-block: clamp(2.4rem, 1.4rem + 4vw, 5.2rem) clamp(2.4rem, 1.6rem + 3vw, 4.4rem); border-bottom: 1px solid var(--line); }
.page-head .stack { gap: 1.2rem; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 52ch; }
.page-head .button-row { margin-top: 0.6rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.92rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line-strong); }
.breadcrumb a { display: inline-block; padding-block: 0.2rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--link); }

/* ---------- components ---------- */
.card { position: relative; display: grid; gap: 0.7rem; align-content: start; min-width: 0; padding: clamp(1.2rem, 1rem + 1vw, 1.7rem); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); }
.card p { color: var(--ink-soft); }
.card-actions { margin-top: 0.5rem; }
a.card { color: var(--ink); text-decoration: none; transition: border-color 0.2s ease; }
a.card:hover { border-top-color: var(--accent); }
a.card:hover h2, a.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.path-grid, .sector-grid, .demo-grid, .article-list { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .demo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sector-card .sector-tag { font-weight: 700; font-size: 0.95rem; color: var(--green-ink); }
.sector-card ul { display: grid; gap: 0.3rem; font-size: 0.97rem; color: var(--ink-soft); }
.sector-card .text-link { margin-top: auto; }
.sector-card.sector-other { background: transparent; border-style: dashed; border-top-style: solid; }
.path-card .path-number { font-weight: 700; color: var(--green-ink); }

/* lists marked with the logo stroke */
.check-list { display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 1.25rem; height: 0.42rem; background: var(--green); clip-path: var(--stroke-cut); }
.problem-grid { display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 720px) { .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.4rem; } }
.problem-grid li { position: relative; padding: 1rem 0 1rem 1.9rem; border-bottom: 1px solid var(--line); font-size: 1.04rem; }
.problem-grid li::before { content: ""; position: absolute; left: 0; top: 1.62rem; width: 1.1rem; height: 0.38rem; background: var(--accent); clip-path: var(--stroke-cut); }
.module-list { display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 720px) { .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.4rem; } }
.stack .module-list, .two-col .module-list { grid-template-columns: minmax(0, 1fr); }
.module-list li { display: grid; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.module-list strong { font-weight: 650; }
.module-list span { color: var(--ink-soft); font-size: 0.98rem; }
.mini { display: grid; gap: 0.45rem; align-content: start; padding: 1.3rem 0 1.5rem; border-top: 1px solid var(--line); }
.mini h3 { font-size: 1.22rem; }
.mini p { color: var(--ink-soft); font-size: 1rem; }
.mini h2 a, .mini h3 a { display: inline-block; padding-block: 0.15rem; }

/* numbered steps: a real sequence, numbered in the figures' expanded voice */
.steps { display: grid; border-top: 1px solid var(--ink); counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step); grid-row: span 3; font-stretch: 125%; font-weight: 700; font-size: 2rem; line-height: 1; color: var(--green-ink); }
.steps h3, .steps h4 { margin-bottom: 0.35rem; }
.steps h4 { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.steps p { color: var(--ink-soft); max-width: var(--measure); }
.steps .deliverable { margin-top: 0.55rem; font-size: 0.96rem; color: var(--muted); }
.steps .deliverable strong { color: var(--ink-soft); }
@media (min-width: 900px) { .steps-wide > li { grid-template-columns: 3.4rem minmax(0, 0.95fr) minmax(0, 1.05fr); column-gap: 2rem; } .steps-wide > li::before { grid-row: auto; } .steps-wide .deliverable { margin-top: 0; } }

.principles { display: grid; gap: 1.6rem 2.4rem; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .principles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .principles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principle { position: relative; display: grid; gap: 0.45rem; align-content: start; padding-top: 1.4rem; }
.principle::before { content: ""; position: absolute; top: 0; left: 0; width: 1.6rem; height: 0.5rem; background: var(--green); clip-path: var(--stroke-cut); }
.principle h3 { font-size: 1.22rem; }
.principle p { color: var(--ink-soft); font-size: 1rem; }

.callout { display: grid; gap: 0.4rem; max-width: 56rem; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--r); }
.callout p { color: var(--ink-soft); }
.offer { display: grid; gap: clamp(1.6rem, 1rem + 2vw, 3rem); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); }
@media (min-width: 900px) { .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.offer-price { padding-top: 0.9rem; border-top: 1px dashed var(--line-strong); font-size: 0.96rem; color: var(--muted); }
.decision-table { display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 860px) { .decision-table { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; } }
.decision { display: grid; gap: 0.4rem; align-content: start; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .decision { border-bottom: 0; } }
.decision .verb { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--ink); }
.decision .when { font-weight: 650; font-size: 0.95rem; color: var(--green-ink); }
.decision p { color: var(--ink-soft); font-size: 1rem; }

/* prose: guides and legal pages */
.prose { max-width: var(--measure); display: grid; gap: 1rem; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-top: 1.6rem; max-width: none; }
.prose h3 { margin-top: 0.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--green-ink); }
.prose .lead { max-width: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 650; color: var(--ink); background: var(--panel); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.draft-note { padding: 0.85rem 1rem; border: 1px dashed var(--warn); background: var(--warn-tint); color: var(--warn); border-radius: var(--r); font-size: 0.96rem; }
.draft-note strong { color: inherit; }
.article-list { max-width: 56rem; }
.article-card .meta { font-size: 0.92rem; color: var(--muted); }

/* before and after, with made-up figures */
.ba-grid { display: grid; gap: 1.2rem 2.4rem; margin-top: 2rem; border-top: 1px solid var(--ink); padding-top: 1.4rem; }
@media (min-width: 820px) { .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ba-item { display: grid; gap: 0.5rem; align-content: start; }
.ba-item h3 { font-family: var(--body); font-size: 1rem; font-weight: 650; }
.ba-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.8rem; }
.ba-values small { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.ba-before { color: var(--muted); }
.ba-after { color: var(--green-ink); font-weight: 700; }
.ba-arrow { color: var(--muted); }

/* founder */
.founder { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 760px) { .founder:has(.founder-photo) { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); column-gap: clamp(2rem, 1rem + 3vw, 4rem); } }
.founder-photo { width: min(100%, 360px); }
.reach-label { display: flex; align-items: center; gap: 0.65rem; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.founder-body { display: grid; gap: 1rem; max-width: var(--measure); }
.founder-body p { color: var(--ink-soft); }
.reach { display: grid; gap: 0.3rem; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); max-width: 34rem; }
.reach .label { font-weight: 650; color: var(--muted); font-size: 0.95rem; }
.reach .value { font-stretch: 125%; font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); letter-spacing: -0.01em; }
.reach .value a { color: var(--ink); text-decoration-thickness: 2px; }

/* questions */
.faq { display: grid; max-width: 58rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; padding: 1.15rem 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.18rem, 1.1rem + 0.3vw, 1.32rem); line-height: 1.3; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 1.4rem; height: 0.45rem; background: var(--green); clip-path: var(--stroke-cut); transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(-90deg); }
.faq .answer { display: grid; gap: 0.8rem; padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 62ch; }

/* closing call to action on every page */
.cta-band { border-top: 1px solid var(--line); }
.cta-grid { display: grid; gap: 1.6rem; align-items: end; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.cta-band h2 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem); max-width: 18ch; }
.cta-band .lead { max-width: 46ch; }
.contact-lines { display: grid; gap: 0.5rem; font-size: 1rem; }
.contact-lines li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.5rem; align-items: baseline; overflow-wrap: anywhere; }
.contact-lines .label, .footer-contact .label { color: var(--muted); font-weight: 600; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.4rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.channel-list { display: grid; gap: 0.9rem; }
.channel { display: grid; gap: 0.4rem; padding: 1.15rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.channel .label { font-weight: 650; font-size: 0.95rem; color: var(--green-ink); }
.channel h3 { font-size: 1.2rem; }
.channel .value { font-stretch: 112%; font-weight: 650; font-size: 1.1rem; overflow-wrap: anywhere; }
.channel-founder { border-top: 3px solid var(--green); }
.copy-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.3rem; }
.form { display: grid; gap: 1.2rem; padding: clamp(1.3rem, 0.9rem + 2vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); }
.form h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field label, .field legend { font-weight: 650; font-size: 1rem; padding: 0; }
.field .hint { font-size: 0.94rem; color: var(--muted); }
.optional { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 0.6rem 0.8rem; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--panel);
  border: 2px solid var(--field-line); border-radius: var(--r-ctl);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.45rem 0.9rem; border: 1.5px solid var(--field-line); border-radius: var(--r-ctl); background: var(--panel); font-size: 0.97rem; cursor: pointer; }
.choice input:checked + span { background: var(--info-tint); border-color: var(--link); color: var(--ink); font-weight: 650; box-shadow: inset 0 -3px 0 var(--link); }
.choice input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; font-size: 0.97rem; color: var(--ink-soft); }
.consent input { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; accent-color: var(--green); }
.form-error { color: var(--bad); font-weight: 650; }
.form-result { display: grid; gap: 0.8rem; margin-top: 1.2rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); }
.form-result h3:focus { outline: none; }
.form-result pre { white-space: pre-wrap; font-family: var(--body); font-size: 0.95rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 0.8rem; max-height: 260px; overflow: auto; color: var(--ink); }

/* ---------- demonstrations ---------- */
.demo-block { display: grid; gap: 1.6rem; }
.demo-intro { display: grid; gap: 0.9rem; max-width: 52rem; }
.demo-intro p { color: var(--ink-soft); }
.demo-shell { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.demo-bar { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.demo-bar .demo-title { font-weight: 650; }
.demo-body { display: grid; gap: 1.2rem; padding: clamp(0.9rem, 0.6rem + 1.2vw, 1.4rem); }
.demo-cols { display: grid; gap: 1.2rem; }
@media (min-width: 960px) { .demo-cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.demo-cols > * { min-width: 0; }
.demo-cols .label { font-family: var(--body); font-size: 1rem; font-weight: 650; }
.demo-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.demo-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.demo-table-wrap .demo-table { min-width: 520px; }
.demo-table th, .demo-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.demo-table th { font-weight: 650; font-size: 0.9rem; color: var(--ink-soft); background: var(--panel); }
.demo-table td.num, .demo-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.demo-table tr:last-child td, .demo-table tr:last-child th { border-bottom: 0; }
.demo-table tr.flash td { animation: flash 1.2s ease; }
@keyframes flash { from { background: var(--green-soft); } to { background: transparent; } }
.demo-table .id { font-size: 0.85rem; color: var(--muted); }
.table-wrap .demo-table { min-width: 0; }
.table-wrap .demo-table th { background: var(--panel); width: 38%; }
.alert-list { display: grid; gap: 0.5rem; }
.alert-item { display: grid; gap: 0.3rem; padding: 0.7rem 0.8rem; font-size: 0.95rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.alert-item .narration { font-size: 0.86rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.alert-item .alert-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.alert-item .amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.alert-item .alert-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0.1rem 0.55rem; border-radius: var(--r); font-size: 0.84rem; font-weight: 650; background: var(--panel); color: var(--ink-soft); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--ok-tint); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-tint); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-tint); color: var(--bad); border-color: transparent; }
.pill.info { background: var(--info-tint); color: var(--info); border-color: transparent; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; }
.demo-controls .field { min-width: 140px; flex: 1 1 140px; }
.demo-controls select, .demo-controls input { min-height: 44px; padding: 0.45rem 0.65rem; }
.demo-log { display: grid; gap: 0.3rem; max-height: 9.5rem; overflow: auto; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.demo-notes { display: grid; gap: 1.4rem; }
@media (min-width: 760px) { .demo-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo-notes > div { display: grid; gap: 0.4rem; align-content: start; }
.demo-notes p, .demo-notes li { color: var(--ink-soft); font-size: 0.98rem; }
.demo-notes ul { padding-left: 1.1rem; list-style: disc; display: grid; gap: 0.25rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stat { display: grid; gap: 0.1rem; min-width: 7.5rem; padding: 0.55rem 0.8rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.stat b { font-stretch: 125%; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.84rem; color: var(--muted); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 0.6rem; }
.room { display: grid; gap: 0.25rem; min-height: 92px; padding: 0.65rem 0.7rem; font: inherit; text-align: left; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.room:hover { border-color: var(--link); }
.room .room-no { font-stretch: 125%; font-weight: 700; font-size: 1.05rem; }
.room .room-type { font-size: 0.82rem; color: var(--muted); }
.room[data-status="clean"] { background: var(--ok-tint); }
.room[data-status="occupied"] { background: var(--info-tint); }
.room[data-status="dirty"] { background: var(--warn-tint); }
.room[data-status="out"] { background: var(--bad-tint); }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.night-report { white-space: pre; overflow-x: auto; margin: 0; padding: 0.8rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; color: var(--ink-soft); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.demo-thumb { display: grid; gap: 0.35rem; padding: 0.7rem; font-size: 0.82rem; color: var(--ink-soft); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.demo-thumb .row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 0.5rem; align-items: center; padding: 0.35rem 0.5rem; background: var(--surface); border-radius: 3px; }
.room-thumb { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.3rem; }
.room-thumb i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--ok-tint); border: 1px solid var(--line); }
.room-thumb i.o { background: var(--info-tint); } .room-thumb i.d { background: var(--warn-tint); } .room-thumb i.x { background: var(--bad-tint); }

/* ---------- home: hero ---------- */
.hero { padding-block: clamp(2.8rem, 1.4rem + 5vw, 6.5rem) clamp(2.4rem, 1.4rem + 3vw, 4rem); }
.hero h1 { font-size: clamp(2.6rem, 1.15rem + 5.2vw, 5.9rem); line-height: 0.99; letter-spacing: -0.024em; max-width: 12.4em; }
.hero .lead { margin-top: clamp(1.3rem, 1rem + 1vw, 2rem); font-size: clamp(1.14rem, 1.04rem + 0.45vw, 1.36rem); max-width: 40ch; }
.hero .button-row { margin-top: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); }
.hero .for { margin-top: 1.3rem; font-size: 1rem; color: var(--ink-soft); max-width: 60ch; }
.promises { margin-top: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem); padding-top: 1.3rem; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 2.6rem; }
.promises li { color: var(--ink-soft); font-size: 1rem; }
.promises b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
/* the second focal point: an illustrative yearly figure, exactly the calculator's starting result */
.hero-figure { container-type: inline-size; margin-top: 2.4rem; padding-top: 1.1rem; border-top: 3px solid var(--green); max-width: 24rem; }
@media (min-width: 900px) {
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); column-gap: clamp(2.5rem, 1rem + 4vw, 5.5rem); }
  .hero h1, .hero .promises { grid-column: 1 / -1; }
  .hero .lead, .hero .button-row, .hero .for { grid-column: 1; }
  .hero-figure { grid-column: 2; grid-row: 2 / span 3; align-self: start; margin-top: clamp(1.3rem, 1rem + 1vw, 2rem); }
}
.hf-lead { display: grid; }
.hf-upto { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.hf-lead b { font-stretch: 125%; font-weight: 700; font-size: 3.6rem; font-size: clamp(2.6rem, 19.5cqi, 5.6rem); line-height: 0.95; letter-spacing: -0.035em; color: var(--green-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hf-unit { margin-top: 0.4rem; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.hf-second { margin-top: 0.5rem; font-size: 1.06rem; color: var(--ink-soft); }
.hf-second b { font-stretch: 125%; font-weight: 700; color: var(--green-ink); }
.hf-note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); }
/* the one load moment: the first screen arrives in order */
.moving .hero h1, .moving .hero .lead, .moving .hero .button-row, .moving .hero .for, .moving .hero .hero-figure, .moving .hero .promises { animation: rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.moving .hero .lead { animation-delay: 0.14s; } .moving .hero .button-row { animation-delay: 0.26s; }
.moving .hero .hero-figure { animation-delay: 0.3s; }
.moving .hero .for { animation-delay: 0.36s; } .moving .hero .promises { animation-delay: 0.46s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- home: the three problem types ---------- */
.picker { margin-top: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pick { position: relative; display: grid; gap: 0.55rem; align-content: start; padding: 1.4rem 1.4rem 1.5rem 0; font: inherit; text-align: left; color: var(--ink-soft); background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick + .pick { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.pick b { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; }
.pick span { font-weight: 700; font-size: 1rem; color: var(--link); }
.pick::before { content: ""; position: absolute; top: -4px; left: 0; width: 0; height: 7px; background: var(--accent); clip-path: var(--stroke-cut); transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pick + .pick::before { left: 1.4rem; }
.pick:hover::before { width: 2rem; }
.pick[aria-selected="true"] { color: var(--ink); }
.pick[aria-selected="true"]::before { width: 4.6rem; }
@media (max-width: 819px) {
  .picker { grid-template-columns: minmax(0, 1fr); }
  .pick, .pick + .pick { padding: 1.15rem 0 1.2rem 1.4rem; border-left: 0; }
  .pick::before, .pick + .pick::before { top: 1.45rem; left: 0; width: 7px; height: 0; clip-path: none; transition-property: height; }
  .pick:hover::before { width: 7px; height: 1rem; }
  .pick[aria-selected="true"]::before { width: 7px; height: 1.6rem; }
}
.case { display: grid; gap: clamp(2rem, 1.4rem + 2vw, 4rem); padding-top: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
@media (min-width: 960px) { .case { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } }
.case:focus-visible { outline-offset: 8px; }
.case h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.08; max-width: 18ch; font-weight: 560; }
.case p { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 44ch; }
.case .example { margin-top: 1.4rem; padding-left: 1.1rem; border-left: 3px solid var(--line-strong); font-size: 1.04rem; }
.case .example b { color: var(--ink); }
.case .text-link { display: inline-block; margin-top: 1.2rem; }
.moving .case.enter > * { animation: caseIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.moving .case.enter > *:nth-child(2) { animation-delay: 0.08s; }
.moving .case.enter .ledger li { animation: caseIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.moving .case.enter .ledger li:nth-child(2) { animation-delay: 0.16s; } .moving .case.enter .ledger li:nth-child(3) { animation-delay: 0.24s; }
.moving .case.enter .ledger li:nth-child(4) { animation-delay: 0.32s; } .moving .case.enter .ledger li:nth-child(5) { animation-delay: 0.4s; }
@keyframes caseIn { from { opacity: 0; transform: translateY(14px); } }
.ledger { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); padding: 1.3rem 1.4rem 0.6rem; }
.ledger-title { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.72rem 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger li b { flex: none; font-weight: 700; color: var(--green-ink); text-align: right; }
.ledger .ended span { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.ledger .ended b { color: var(--muted); }

/* ---------- home: the scroll story, pinned while the diagram connects ---------- */
.pin { position: relative; height: 360vh; }
.pin-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); display: grid; align-items: center; }
.scene { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "art" "st" "fig" "note"; gap: 0.9rem; align-content: center; }
.scene h2 { grid-area: h; font-size: clamp(1.9rem, 1.3rem + 2vw, 3.1rem); }
.scene-art { grid-area: art; }
.stages { grid-area: st; border-top: 1px solid var(--ink); }
.figures { grid-area: fig; display: flex; gap: 2.4rem; }
.figures-note { grid-area: note; }
@media (min-width: 980px) {
  .scene { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-areas: "h art" "st art" "fig art" "note art"; grid-template-rows: auto auto auto 1fr; column-gap: 3.5rem; row-gap: 1.3rem; align-items: start; }
  .scene-art { align-self: center; }
}
.stages li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.5rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); transition: color 0.4s ease; }
.stages .num { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; color: var(--green-ink); transition: color 0.4s ease; }
.stages b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.22rem; line-height: 1.3; color: var(--ink); transition: color 0.4s ease; }
.stages .desc { display: block; font-size: 1rem; }
.js .pin:not(.pin-still) .stages li:not(.on), .js .pin:not(.pin-still) .stages li:not(.on) b, .js .pin:not(.pin-still) .stages li:not(.on) .num { color: var(--muted); }
.js .pin:not(.pin-still) .stages li.now b::after { content: ""; display: inline-block; width: 1.5rem; height: 0.45rem; margin-left: 0.7rem; vertical-align: 0.18em; background: var(--green); clip-path: var(--stroke-cut); }
.figures p { display: grid; }
.figures b { font-stretch: 125%; font-weight: 700; font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.figures span { font-size: 0.95rem; color: var(--ink-soft); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--line); }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--green); }
@media (max-width: 979px) {
  .scene-art svg { max-height: 34vh; max-height: 34svh; width: auto; margin-inline: auto; }
  .stages li { padding: 0.45rem 0; }
  .figures b { font-size: 2rem; }
  .js .pin:not(.pin-still) .scene { row-gap: 0.6rem; }
  .js .pin:not(.pin-still) .scene h2 { font-size: 1.7rem; }
  .js .pin:not(.pin-still) .scene-art svg { max-height: 28vh; max-height: 28svh; }
  .js .pin:not(.pin-still) .stages li { padding: 0.3rem 0; }
  .js .pin:not(.pin-still) .stages b { font-size: 1.05rem; }
  .js .pin:not(.pin-still) .stages .num { font-size: 1.1rem; }
  .js .pin:not(.pin-still) .stages .desc { font-size: 0.96rem; line-height: 1.45; }
  .js .pin:not(.pin-still) .stages li:not(.now) .desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .js .pin:not(.pin-still) .figures b { font-size: 1.7rem; }
  .js .pin:not(.pin-still) .figures span { font-size: 0.86rem; }
  .js .pin:not(.pin-still) .figures-note { font-size: 0.82rem; }
}
/* laptops with short screens (768 px tall and similar): a tighter two-column scene so the story still pins */
@media (min-width: 980px) and (max-height: 880px) {
  .js .pin:not(.pin-still) .scene { row-gap: 0.75rem; }
  .js .pin:not(.pin-still) .scene h2 { font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.5rem); }
  .js .pin:not(.pin-still) .stages li { padding: 0.4rem 0; }
  .js .pin:not(.pin-still) .stages li:not(.now) .desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .js .pin:not(.pin-still) .figures b { font-size: 2.3rem; }
  .js .pin:not(.pin-still) .scene-art svg { max-height: calc(100svh - var(--header-h) - 4rem); width: auto; margin-inline: auto; }
}
.js .pin:not(.pin-still) { --w: clamp(0, calc((var(--p, 0) - 0.2) * 4), 1); --d: clamp(0, calc((var(--p, 0) - 0.45) * 6), 1); --h: clamp(0, calc((var(--p, 0) - 0.66) * 5), 1); }
.pin-still { height: auto; }
.pin-still .pin-stage { position: relative; top: 0; height: auto; min-height: 0; padding-block: clamp(4rem, 2.4rem + 5vw, 7rem); }
.pin-still .progress { display: none; }
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram .box { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.diagram .lbl { font-family: var(--body); font-size: 15px; font-weight: 600; fill: var(--ink); }
.diagram .sub { font-family: var(--body); font-size: 12px; fill: var(--muted); }
.diagram .wire { fill: none; stroke: var(--wire); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--w, 1)); }
.diagram .dots { opacity: var(--d, 1); }
.diagram .dot { fill: var(--dot); }
.diagram .hubbox { fill: var(--surface); stroke: var(--ink); stroke-width: 2; opacity: calc(0.3 + var(--w, 1) * 0.7); }
.diagram .hubtop { fill: var(--green); opacity: var(--w, 1); }
.diagram .hublbl { font-family: var(--display); font-size: 22px; font-weight: 600; fill: var(--ink); opacity: var(--w, 1); }
.diagram .hubagent { font-family: var(--body); font-size: 12.5px; font-weight: 600; fill: var(--green-ink); opacity: var(--d, 1); }
.diagram .hubrows { opacity: var(--h, 1); }
.diagram .hubrow { fill: var(--row); }
.diagram .hubtxt { font-family: var(--body); font-size: 13px; fill: var(--ink); }
.diagram .hubval { font-family: var(--body); font-size: 13px; font-weight: 700; fill: var(--green-ink); }

/* ---------- home: the estimate ---------- */
.calc { display: grid; gap: 1.8rem; }
@media (min-width: 940px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.calc-group { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.calc-group h3 { font-size: 1.3rem; }
.calc-group > p { margin-top: 0.3rem; font-size: 0.96rem; color: var(--muted); }
.calc .field { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.calc .field:last-child { border-bottom: 0; }
.calc .field > label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 650; }
.echo { font-stretch: 125%; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* sliders drawn by hand so the track is visible (3:1 or more) in both themes; --fill is set by site.js */
.calc input[type="range"] { display: block; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--green), var(--green)) 0 0 / var(--fill, 50%) 100% no-repeat, var(--field-line); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--green); }
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--field-line); }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--green); }
.calc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--green); }
.calc .hint { margin-top: 0.35rem; font-size: 0.94rem; color: var(--muted); }
.result { container-type: inline-size; display: grid; gap: 0.35rem; padding: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); border-radius: var(--r); background: var(--result-bg); color: var(--result-fg); border: 1px solid var(--line); }
@media (min-width: 940px) { .result { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.r-label { font-family: var(--body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--result-soft); }
.r-big { font-stretch: 125%; font-weight: 700; font-size: 3rem; font-size: clamp(2.2rem, 10.5cqi, 4.4rem); line-height: 0.98; letter-spacing: -0.03em; color: var(--result-hot); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.r-sub { font-size: 1.04rem; color: var(--result-fg); }
.r-hours { margin-top: 0.9rem; font-size: 1.1rem; }
.r-hours b { font-stretch: 125%; font-weight: 700; color: var(--result-hot); font-size: 1.5rem; }
.r-lines { margin-top: 1rem; }
.r-lines div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--result-line); font-size: 1rem; }
.r-lines dt { color: var(--result-soft); }
.r-lines dd { margin: 0; font-weight: 700; text-align: right; }
.fine { margin-top: 0.7rem; font-size: 0.92rem; color: var(--result-soft); }
.button-result { justify-self: start; margin-top: 0.9rem; background: var(--result-hot); border-color: var(--result-hot); color: #10243a; }
.button-result:hover { background: #ffffff; border-color: #ffffff; color: #10243a; }

/* ---------- home: AI agents at work (the chat plays in site.js) ---------- */
#agents h2 { max-width: none; }
.demo { margin: 0; display: grid; gap: 2.4rem; justify-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: 340px minmax(0, 27rem); justify-content: center; align-items: center; column-gap: clamp(3rem, 1rem + 5vw, 7rem); } }
.phone { width: min(340px, 100%); display: grid; gap: 10px; padding: 14px 12px 12px; background: var(--surface); border: 2px solid var(--ink); border-radius: 34px; }
.phone::before { content: ""; justify-self: center; width: 64px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.phone-head { display: grid; padding: 2px 10px 10px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.phone-head b { font-size: 1rem; }
.phone-head span { font-size: 0.84rem; color: var(--muted); }
/* the log grows rather than clips: bubbles stack from the bottom, and nothing is ever cut off at the top */
.chat-log { min-height: 480px; display: flex; flex-direction: column; gap: 12px; padding: 4px 6px; }
.chat-log > :first-child { margin-top: auto; }
.msg { box-sizing: border-box; width: fit-content; max-width: 84%; min-width: 0; padding: 10px 13px 8px; border-radius: 16px; font-size: 0.95rem; line-height: 1.42; overflow-wrap: anywhere; white-space: normal; opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; }
.msg.in { opacity: 1; transform: none; }
.msg.me { align-self: flex-end; background: var(--me-bg); color: var(--me-fg); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .who { display: block; margin-bottom: 2px; font-size: 0.78rem; line-height: 1.3; font-weight: 700; color: var(--green-ink); }
.msg .meta { display: block; margin-top: 2px; text-align: right; font-size: 0.76rem; line-height: 1.2; }
.msg.typing { padding: 13px 15px; }
.msg.typing i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; } .msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: 0.5; } }
.chat-input { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 6px 6px 14px; border: 1.5px solid var(--field-line); border-radius: 23px; font-size: 0.95rem; }
.chat-field { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-field:empty::before { content: "Message"; color: var(--muted); }
.chat-send { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--me-bg); transition: transform 0.2s ease; }
.chat-send.pulse { transform: scale(1.18); }
.chat-send svg { width: 16px; height: 16px; fill: var(--me-fg); }
.record-col { width: 100%; display: grid; gap: 0.9rem; }
.record { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); padding: 1.3rem 1.4rem 0.7rem; }
.record-title { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.3rem; }
.record [data-rec] { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0.5rem; margin-inline: -0.5rem; border-bottom: 1px solid var(--line); border-radius: var(--r); transition: background-color 0.8s ease; }
.record [data-rec]:last-child { border-bottom: 0; }
.record dt { font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.record dd { margin: 0; font-weight: 600; transition: color 0.4s ease; }
.record [data-rec]:not(.filled) dd { color: transparent; background: linear-gradient(var(--line), var(--line)) 0 50% / 70% 0.55em no-repeat; }
.record [data-rec].flash { background: var(--green-soft); }

/* ---------- home: your people stay in charge ---------- */
.agent { display: grid; gap: 2.6rem; }
@media (min-width: 980px) { .agent { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; } }
.rules { margin-top: 2rem; display: grid; gap: 1.2rem; }
.rules li { position: relative; padding-left: 2.4rem; color: var(--ink-soft); }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 1.5rem; height: 0.45rem; background: var(--green); clip-path: var(--stroke-cut); }
.rules b { display: block; font-size: 1.12rem; color: var(--ink); }
.console { display: grid; gap: 0.6rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); }
.console-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; }
.console-head > span { color: var(--muted); font-weight: 600; }
.crows { display: grid; gap: 0.5rem; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.75rem 0.85rem; border-radius: var(--r); background: var(--panel); font-size: 0.96rem; transition: background-color 0.4s ease; }
.crow .what b { display: block; font-weight: 600; }
.crow .what small { display: block; font-size: 0.9rem; color: var(--muted); }
.crow .state { font-weight: 700; font-size: 0.9rem; color: var(--green-ink); white-space: nowrap; }
.crow.ask { grid-template-columns: minmax(0, 1fr); background: var(--ask-soft); }
.crow.ask .state { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crow button { min-height: 44px; padding: 0.45rem 0.85rem; border-radius: var(--r-ctl); border: 2px solid var(--button-bg); background: var(--button-bg); color: var(--button-fg); font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; }
.crow button:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--button-hover-fg); }
.crow button.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.crow button.alt:hover { background: var(--ink); color: var(--bg); }
.crow.done { background: var(--green-soft); }
.crow .state:focus-visible { outline-offset: 4px; }
@media (max-width: 560px) { .crow { grid-template-columns: minmax(0, 1fr); } .crow .state { white-space: normal; } }

/* ---------- home: how an engagement runs (a real sequence, so it is numbered) ---------- */
.process { margin-top: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); display: grid; border-top: 1px solid var(--ink); counter-reset: step; }
.process li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 0.6rem; align-content: start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.process li::before { content: counter(step); grid-row: span 2; font-stretch: 125%; font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--green-ink); }
.process b { font-size: 1.14rem; }
.process span { color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 1000px) {
  .process { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .process li { grid-template-columns: minmax(0, 1fr); gap: 0.45rem; padding: 1.3rem 1.4rem 1.5rem 0; border-bottom: 0; }
  .process li::before { grid-row: auto; }
}
.section-more { margin-top: 1.8rem; }

/* ---------- work: a ruled list, not a row of cards ---------- */
.work-list { margin-top: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); border-top: 1px solid var(--ink); }
.work-row { display: grid; gap: 0.5rem 2.6rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .work-row { grid-template-columns: 13rem minmax(0, 1fr) 15rem; align-items: baseline; } }
.work-row .tag { font-weight: 700; font-size: 1rem; }
.work-row .tag::before { display: none; }
.work-row.in-progress .tag { color: var(--muted); }
.work-row h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem); line-height: 1.2; font-weight: 600; }
.work-row p:not(.tag) { margin-top: 0.4rem; color: var(--ink-soft); max-width: 56ch; }
.work-row .go { font-weight: 700; }

/* ---------- work: the case-study template (sample-data visuals only) ---------- */
.case-study { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3.4rem); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); }
@media (min-width: 980px) { .case-study { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } }
.case-study h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 560; line-height: 1.1; }
.case-facts { display: grid; margin-top: 1.4rem; border-top: 1px solid var(--line); }
.case-facts div { display: grid; gap: 0.2rem 1.4rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .case-facts div { grid-template-columns: 9rem minmax(0, 1fr); } }
.case-facts dt { font-weight: 650; color: var(--muted); }
.case-facts dd { color: var(--ink-soft); }
.case-status { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: 700; color: var(--green-ink); }
.case-visual { display: grid; gap: 0.6rem; }
.inbox { display: grid; gap: 0.5rem; padding: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.inbox-head { display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; font-weight: 650; }
.inbox-head span { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.inbox-row { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 0.2rem 0.8rem; padding: 0.65rem 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 0.95rem; }
.inbox-row .ch { font-weight: 700; color: var(--green-ink); }
.inbox-row .st { grid-column: 2; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 560px) { .inbox-row { grid-template-columns: minmax(0, 1fr); } .inbox-row .st { grid-column: 1; } }
/* the sample staff inbox on the retailer case study: drawn in HTML, sample data, no script */
.inbox-app { overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.35); }
.ia-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.75rem 1rem; background: var(--button-bg); color: var(--button-fg); }
.ia-sample { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--warn-tint); color: var(--warn); font-size: 0.85rem; font-weight: 650; }
.ia-body { display: grid; }
@media (min-width: 900px) { .ia-body { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.ia-queue { display: grid; align-content: start; gap: 0.5rem; padding: 0.9rem; background: var(--panel); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .ia-queue { border-bottom: 0; border-right: 1px solid var(--line); } }
.ia-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; font-weight: 650; color: var(--muted); }
.ia-filters span { padding: 0.2rem 0.65rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.ia-filters .on { border-color: var(--ink); color: var(--ink); }
.ia-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.1rem 0.6rem; padding: 0.6rem 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 0.92rem; line-height: 1.4; }
.ia-row.is-open { border-color: var(--link); box-shadow: inset 3px 0 0 var(--link); }
.ia-ch { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-ink); }
.ia-text { color: var(--ink-soft); }
.ia-state { grid-column: 1 / -1; font-size: 0.84rem; color: var(--muted); }
.ia-state.ok { color: var(--green-ink); }
.ia-state.wait { color: var(--warn); font-weight: 650; }
.ia-thread { display: grid; align-content: start; gap: 0.7rem; padding: 0.9rem 1rem 1.2rem; }
.ia-thread-head { display: grid; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); line-height: 1.35; }
.ia-thread-head span { font-size: 0.86rem; color: var(--muted); }
.ia-log { display: flex; flex-direction: column; gap: 10px; }
.ia-log .msg { display: block; max-width: 88%; }
.ia-log .msg.me .who { color: inherit; opacity: 0.85; }
.ia-log .msg.staff { background: var(--button-bg); color: var(--button-fg); }
.ia-event { align-self: center; max-width: 94%; padding: 0.25rem 0.75rem; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: 0.8rem; line-height: 1.35; text-align: center; color: var(--muted); }
.ia-quote { align-self: flex-end; display: grid; gap: 0.2rem; width: min(100%, 22rem); padding: 0.75rem 0.9rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); font-size: 0.9rem; }
.ia-total { font-stretch: 125%; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.ia-approved { font-size: 0.82rem; font-weight: 650; color: var(--green-ink); }
.case-study .button-row { margin-top: 1.4rem; }
.case-empty { max-width: 48rem; color: var(--ink-soft); }

/* ---------- home: closing ---------- */
.closing h2 { font-size: clamp(2.4rem, 1.3rem + 3.8vw, 4.8rem); line-height: 1.02; max-width: 15ch; }
.closing p { margin-top: 1.4rem; font-size: 1.2rem; color: var(--ink-soft); max-width: 48ch; }
.closing .button-row { margin-top: 2rem; }
.closing .note { margin-top: 1.4rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) { .site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); } }
.footer-grid { display: grid; gap: 2rem 2.4rem; padding-block: clamp(2.6rem, 2rem + 2vw, 3.6rem); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand > p { color: var(--ink-soft); max-width: 40ch; font-size: 0.98rem; }
.footer-contact { display: grid; gap: 0.35rem; font-size: 0.96rem; color: var(--ink-soft); }
.footer-contact li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.4rem; overflow-wrap: anywhere; }
.footer-links h2 { font-family: var(--body); font-size: 0.98rem; font-weight: 700; letter-spacing: 0; color: var(--ink); margin-bottom: 0.7rem; max-width: none; }
.footer-links ul { display: grid; gap: 0.2rem; }
.footer-links a { display: inline-block; padding-block: 0.25rem; color: var(--ink-soft); text-decoration: none; font-size: 0.98rem; }
.footer-links a:hover { color: var(--link); text-decoration: underline; }
.footer-legal { display: grid; gap: 0.5rem; padding-block: 1.2rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.footer-legal p { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.footer-legal .legal-entity strong { color: var(--ink); font-weight: 650; }
.footer-legal a { color: var(--muted); display: inline-block; padding-block: 0.15rem; }
.footer-legal a:hover { color: var(--link); }

/* ---------- pictures (image-brief/README.md): opaque, never behind text, no motion of their own. The AI scenes carry
   the caption from site.json (ai_image_caption); the founder photos are real and carry none. ---------- */
figure { margin: 0; }
.founder-photo img, .story-photo img, .side-photo img, .head-media img, .sector-tile img { display: block; width: 100%; height: auto; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.founder-photo img, .story-photo img, .side-photo img { aspect-ratio: 4 / 5; }
.story-photo { width: min(100%, 320px); margin-top: 0.6rem; }
.side-photo { display: grid; gap: 0.55rem; width: min(100%, 340px); margin-top: 0.6rem; }
.split .principles-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .split .principles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 01: the band after the home hero, full width, no frame */
.band { display: grid; gap: 0.6rem; }
.band img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; background: var(--panel); }
@media (min-width: 700px) { .band img { aspect-ratio: auto; height: clamp(220px, 32vw, 460px); } }
/* 02-06 and 08: the picture beside an inner page's heading; on phones it sits between the lead and the buttons */
.page-head-media { display: grid; gap: 1.2rem; grid-template-areas: "text" "media" "buttons"; }
.page-head-media .head-text { grid-area: text; }
.page-head-media .head-media { grid-area: media; display: grid; gap: 0.55rem; align-content: start; }
.page-head-media > .button-row { grid-area: buttons; margin-top: 0; }
.head-media img { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .page-head-media { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-rows: auto 1fr; grid-template-areas: "text media" "buttons media"; column-gap: clamp(2rem, 1rem + 3vw, 4rem); row-gap: 1.8rem; }
  .page-head-media .head-media { margin-top: 2.2rem; }
}
.head-media .art-dark { display: none; }
/* the home sector strip: a navy band (a quieter panel in dark mode); on phones the tiles scroll sideways */
.sectors { background: #10243a; color: var(--ink); --ink: #ffffff; --ink-soft: #d3dbe6; --muted: #b5c2d1; --link: #a9c4fb; --line: rgba(255, 255, 255, 0.2); }
.sector-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 0.9rem; margin-bottom: 0.4rem; }
.sector-strip li { scroll-snap-align: start; }
@media (max-width: 899px) { .sector-strip { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
@media (min-width: 560px) { .sector-strip { grid-auto-columns: minmax(200px, 38%); } }
@media (min-width: 900px) { .sector-strip { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; margin-bottom: 1.2rem; } }
.sector-tile { display: grid; gap: 0.3rem; align-content: start; color: var(--ink); text-decoration: none; }
.sector-tile img { aspect-ratio: 4 / 5; margin-bottom: 0.55rem; }
.sector-tile b { font-size: 1.06rem; font-weight: 700; line-height: 1.3; }
.sector-tile span { font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); }
.sector-tile:hover b { color: var(--link); text-decoration: underline; }
/* dark mode: photos a touch quieter against the navy page, the other illustration, the strip on a panel */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .photo { filter: brightness(0.9) saturate(0.95); }
  :root:not([data-theme="light"]) .art-light { display: none; }
  :root:not([data-theme="light"]) .art-dark { display: block; }
  :root:not([data-theme="light"]) .sectors { background: var(--panel); --ink: inherit; --ink-soft: inherit; --muted: inherit; --link: inherit; --line: inherit; border-block: 1px solid var(--line); }
}
:root[data-theme="dark"] .photo { filter: brightness(0.9) saturate(0.95); }
:root[data-theme="dark"] .art-light { display: none; }
:root[data-theme="dark"] .art-dark { display: block; }
:root[data-theme="dark"] .sectors { background: var(--panel); --ink: inherit; --ink-soft: inherit; --muted: inherit; --link: inherit; --line: inherit; border-block: 1px solid var(--line); }

/* ---------- "Talk to us": a floating button on every page that opens a small panel of plain links (WhatsApp, phone,
   email, booking). No chat service and no script from anyone else. It steps aside while the footer's contact details
   are on screen or it would cover a page button or an "illustrative" note (site.js), but never while it is open or
   has focus. On phones it is a 56px circle with the label hidden. ---------- */
.talk { position: fixed; z-index: 35; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
html:not(.js) .talk { display: none; }
.talk.is-tucked:not(.is-open):not(:focus-within) { opacity: 0; visibility: hidden; transform: translateY(12px); }
.talk-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 56px; min-height: 56px; padding: 0 1.3rem 0 1.05rem; border: 0; border-radius: 999px; background: var(--button-bg); color: var(--button-fg); font: inherit; font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 85%, transparent), 0 14px 30px -14px rgba(0, 0, 0, 0.6); transition: background-color 0.2s ease, color 0.2s ease; }
.talk-button:hover { background: var(--button-hover); color: var(--button-hover-fg); }
.talk-button svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.talk-button .dots { stroke-width: 2.6; }
.talk-button .i-down, .talk-button[aria-expanded="true"] .i-chat { display: none; }
.talk-button[aria-expanded="true"] .i-down { display: block; }
.talk-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow: auto; padding: 0.9rem 1rem 1rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transform: translateY(8px); transform-origin: bottom right; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s; }
.talk.is-open .talk-panel { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s; }
.talk-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.talk-title { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.1; }
.talk-title::before { content: ""; width: 1.05rem; height: 0.32rem; background: var(--accent); clip-path: var(--stroke-cut); }
.talk-close { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -0.35rem -0.45rem -0.35rem 0; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink); cursor: pointer; }
.talk-close:hover { background: var(--panel); }
.talk-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.talk-list { display: grid; gap: 0.45rem; }
.talk-option { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 0.75rem; min-height: 56px; padding: 0.5rem 0.65rem; border: 1px solid var(--line); border-radius: var(--r-ctl); color: var(--ink); text-decoration: none; transition: border-color 0.2s ease, background-color 0.2s ease; }
.talk-option:hover { border-color: var(--link); background: var(--panel); }
.talk-option strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.talk-option small { display: block; font-size: 0.9rem; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.talk-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl); background: var(--info-tint); color: var(--link); }
.talk-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.talk-hours span { white-space: nowrap; }
.talk-hours { margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
@media (max-width: 559px) {
  .talk-button { width: 56px; padding: 0; }
  .talk-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* arrives once, then one soft ring; none of it with reduced motion, ?still or the Pause button */
@keyframes talk-in { from { opacity: 0; transform: translateY(18px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes talk-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } to { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 0%, transparent); } }
.moving .talk-button { animation: talk-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s both; }
.moving .talk-button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: talk-ring 1.5s ease-out 1.5s both; }
.paused .talk-button, .paused .talk-button::after { animation: none; }

/* ---------- scroll reveals on inner pages: section heads and first-level items rise in, once ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.r2 { transition-delay: 0.08s; } .reveal.r3 { transition-delay: 0.16s; } .reveal.r4 { transition-delay: 0.24s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- reduced motion, ?still, the pause button and screenshot mode ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.paused .hero * { animation: none !important; }
.paused .reveal, .shot .reveal { opacity: 1; transform: none; transition: none; }
.shot .hero * { animation: none !important; }
.shot *, .shot *::before, .shot *::after { transition: none !important; }

@media print {
  .site-header, .site-footer nav, .talk, .ambient, .review-banner, .button-row, .skip-link { display: none !important; }
  body { background: #ffffff; color: #000000; }
  .section, .page-head { padding-block: 1.2rem; }
}
