/* JBRH Digital Solutions — V3 design system.
   Tokens first, then base, chrome (utility bar, header, mega menu, footer), components, page sections, responsive.
   Documented in docs/v3/03-DESIGN-SYSTEM.md. Keep class names stable: inner pages share them. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* neutrals: warm parent territory */
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #f0f0eb;
  --surface-3: #e7e7e1;
  --text: #0d1321;
  --muted: #4a5163;
  --line: #dddcd5;
  --line-strong: #a9abb0;
  /* ink: the near-black graphite used for the hero, bands and utility bar */
  --ink: #0b1220;
  --ink-2: #121b2e;
  --ink-3: #1b263d;
  --ink-text: #eef1f6;
  --ink-muted: #a9b3c6;
  --ink-line: rgba(238, 241, 246, .14);
  /* JBRH brand (sampled from the official logo) */
  --brand: #0154ae;
  --brand-deep: #013d95;
  --brand-sky: #03b2fd;
  --brand-ink: #ffffff;
  --orbit: #a1a3a8;
  /* product territories: used only inside each product's own sections */
  --connect: #a5561a;
  --connect-soft: #f6ebe1;
  --maya: #0f766e;
  --maya-soft: #e2f1ef;
  --tobo: #4338ca;
  --tobo-soft: #e8e7fa;
  /* status */
  --positive: #127a43;
  --warning: #8a5a00;
  --planned: #5b6275;
  /* shape + depth */
  --radius-xs: .375rem;
  --radius-s: .625rem;
  --radius-m: 1rem;
  --radius-l: 1.5rem;
  --radius-sheet: 2rem;
  --shadow-s: 0 1px 2px rgba(13, 19, 33, .06), 0 2px 8px rgba(13, 19, 33, .05);
  --shadow: 0 2px 6px rgba(13, 19, 33, .05), 0 18px 44px rgba(13, 19, 33, .09);
  --shadow-l: 0 30px 80px rgba(13, 19, 33, .18);
  /* layout */
  --max: 1240px;
  --narrow: 820px;
  --gutter: 1rem;
  --header-h: 68px;
  /* spacing (4/8 scale) */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 5rem; --space-10: 6rem; --space-11: 8rem;
  /* type */
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f1a;
  --surface: #111827;
  --surface-2: #162034;
  --surface-3: #1c2840;
  --text: #eef1f6;
  --muted: #a9b3c6;
  --line: #243049;
  --line-strong: #4a5874;
  --ink: #060a13;
  --ink-2: #0e1626;
  --ink-3: #172238;
  --brand: #4d9bff;
  --brand-deep: #9cc7ff;
  --brand-sky: #4cc6ff;
  --brand-ink: #04122b;
  --connect: #e3a56a;
  --connect-soft: #2a1d12;
  --maya: #3fd0bf;
  --maya-soft: #0f2826;
  --tobo: #a9b4ff;
  --tobo-soft: #1b1d3d;
  --positive: #4fd18b;
  --warning: #f0b54a;
  --planned: #a9b3c6;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 18px 44px rgba(0, 0, 0, .38);
  --shadow-l: 0 30px 80px rgba(0, 0, 0, .55);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; background: var(--ink); color: var(--ink-text); padding: .8rem 1rem; border-radius: var(--radius-s); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }
.container.narrow, .narrow { width: min(calc(100% - 2 * var(--gutter)), var(--narrow)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-compact { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-surface { background: var(--surface); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.028em; line-height: 1.05; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); max-width: 16ch; margin-bottom: 1.5rem; letter-spacing: -.035em; }
h2 { font-size: clamp(1.95rem, 3.6vw, 3.15rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -.018em; line-height: 1.15; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.microcopy { font-size: .875rem; color: var(--muted); }
.eyebrow, .product-kicker, .mono { font-family: var(--font-mono); font-size: .75rem; line-height: 1.3; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 1rem; color: var(--brand); }
.product-kicker { margin: 0 0 .75rem; color: var(--muted); }
.accent { color: var(--brand); }
.connect-accent { color: var(--connect); }
.maya-accent { color: var(--maya); }
.tobo-accent { color: var(--tobo); }
.tagline { font-weight: 600; color: var(--connect); }
.code-chip { font-family: var(--font-mono); font-size: .85em; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: .1rem .4rem; }

/* ---------- buttons + links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; background: var(--text); color: var(--bg); border: 1px solid var(--text); text-decoration: none; font-weight: 600; font-size: .975rem; line-height: 1.2; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.button:hover { transform: translateY(-1px); background: var(--brand); border-color: var(--brand); color: #fff; }
.button-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.button-brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
html[data-theme="dark"] .button-brand:hover { color: var(--brand-ink); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button-secondary:hover { background: transparent; color: var(--text); border-color: var(--text); }
.button-small { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.arrow-link::after { content: "→"; transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translateX(3px); }
.arrow-link[target="_blank"]::after { content: "↗"; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.link-list { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.link-list a { font-weight: 600; color: var(--brand); }

/* ---------- status badges (mono, never colour alone: text is always the status) ---------- */
.status { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: .3rem .6rem; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .06em; white-space: nowrap; color: var(--muted); background: var(--surface); }
.status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; flex: none; }
.status-available, .status-running { color: var(--positive); border-color: color-mix(in srgb, var(--positive) 45%, transparent); }
.status-development { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.status-planned { color: var(--planned); }
.status-planned::before { background: transparent; border: 1px solid currentColor; }

/* ---------- utility bar + header ---------- */
.utility-bar { background: var(--ink); color: var(--ink-muted); font-size: .8125rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.utility-inner p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility-inner p strong { color: var(--ink-text); font-weight: 600; }
.utility-links { display: flex; gap: 1.25rem; flex: none; }
.utility-links a { color: var(--ink-text); text-decoration: none; }
.utility-links a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid transparent; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); box-shadow: var(--shadow-s); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; white-space: nowrap; flex: none; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; flex: none; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: .95rem; letter-spacing: .06em; font-weight: 700; color: var(--text); }
.brand-copy small { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .2em; color: var(--muted); margin-top: .2rem; }
.site-nav { flex: 1; display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav-list > li > a, .nav-trigger { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .4rem .7rem; border: 0; border-radius: var(--radius-s); background: transparent; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--text); }
.nav-list > li > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--surface-2); }
.nav-list a[aria-current="page"] { color: var(--brand); }
.nav-list .nav-connect { color: var(--connect); }
.nav-trigger svg { width: 12px; height: 12px; fill: currentColor; transition: transform .2s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-mobile-only { display: none; }
.header-actions { display: flex; gap: .5rem; align-items: center; margin-left: auto; flex: none; }
.theme-toggle, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; min-width: 40px; padding: .4rem .7rem; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; font-size: .875rem; font-weight: 500; }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--line-strong); }
.menu-toggle { display: none; }
.theme-toggle svg, .menu-toggle svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* mega menu */
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-l); }
.mega[hidden] { display: none; }
.mega-inner { display: grid; grid-template-columns: 1.9fr 1fr; gap: 2.5rem; padding-block: 2rem 2.25rem; }
.mega-label { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.mega-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mega-product { display: grid; gap: .35rem; align-content: start; padding: 1rem 1.1rem 1.15rem; border: 1px solid var(--line); border-top: 3px solid var(--territory, var(--brand)); border-radius: var(--radius-m); text-decoration: none; background: var(--bg); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.mega-product:hover { transform: translateY(-2px); border-color: var(--territory); }
.mega-product strong { font-size: 1.05rem; }
.mega-product span { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.mega-product .mono { color: var(--territory); font-size: .6875rem; margin-top: .35rem; }
.mega-side { display: grid; gap: .1rem; align-content: start; }
.mega-side a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .9375rem; }
.mega-side a:hover { color: var(--brand); }
.mega-side a span { color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .05em; align-self: center; }
.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .9375rem; }
[data-territory="connect"] { --territory: var(--connect); --territory-soft: var(--connect-soft); }
[data-territory="maya"] { --territory: var(--maya); --territory-soft: var(--maya-soft); }
[data-territory="tobo"] { --territory: var(--tobo); --territory-soft: var(--tobo-soft); }
[data-territory="jbrh"] { --territory: var(--brand); --territory-soft: var(--surface-2); }

/* breadcrumbs */
.breadcrumbs { padding-top: 1.5rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text); }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: clip; background: var(--ink); color: var(--ink-text); padding-block: clamp(3.5rem, 7vw, 6rem) clamp(7rem, 11vw, 9.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60rem 30rem at 82% 10%, rgba(3, 178, 253, .10), transparent 65%),
  linear-gradient(180deg, transparent 70%, rgba(1, 84, 174, .14)); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .eyebrow { color: #7cc8ff; }
.hero h1 { color: #fff; }
.hero .lede { color: var(--ink-muted); }
.hero-lines { margin: 0 0 1.25rem; font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: #fff; font-weight: 500; }
.hero-lines span { color: var(--ink-muted); }
.hero .button { background: #fff; color: var(--ink); border-color: #fff; }
.hero .button:hover { background: var(--brand-sky); border-color: var(--brand-sky); color: var(--ink); }
.hero .button-secondary { background: transparent; color: #fff; border-color: rgba(238, 241, 246, .4); }
.hero .button-secondary:hover { background: rgba(238, 241, 246, .08); border-color: #fff; color: #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; padding: 0; list-style: none; font-size: .875rem; color: var(--ink-muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-sky); }

/* system map: JBRH at the centre, three product territories in orbit */
.hero [data-territory="maya"] { --territory: #3fd0bf; }
.hero [data-territory="tobo"] { --territory: #a9b4ff; }
.hero [data-territory="connect"] { --territory: #e3a56a; }

/* curved sheet that rises over the hero (section transition) */
.sheet { position: relative; z-index: 2; margin-top: calc(-1 * clamp(4.5rem, 8vw, 6.5rem)); background: var(--bg); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: 0; }
.section-head > p, .section-head > div > p:not(.eyebrow) { color: var(--muted); margin: 0; }
.section-head.stacked { grid-template-columns: 1fr; max-width: 52rem; }

/* ---------- product explorer (intent-led tabs) ---------- */
.explorer { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 2fr); gap: 1.25rem; align-items: stretch; }
.explorer-intent { margin: 0 0 .75rem; font-size: 1.05rem; color: var(--muted); }
.explorer-tabs { display: grid; gap: .6rem; align-content: start; }
.explorer-tab { display: grid; gap: .3rem; text-align: left; padding: 1.05rem 1.15rem; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius-m); background: var(--surface); color: var(--text); transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.explorer-tab:hover { border-color: var(--line-strong); border-left-color: var(--territory); }
.explorer-tab[aria-selected="true"] { border-color: var(--territory); border-left-color: var(--territory); background: var(--territory-soft); box-shadow: var(--shadow-s); }
.explorer-tab .need { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.explorer-tab .who { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; color: var(--territory); }
.explorer-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); min-height: 100%; }
.explorer-panel[hidden] { display: none; }
.explorer-copy { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; }
.explorer-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .75rem; }
.explorer-copy > p { color: var(--muted); }
.explorer-media { position: relative; background: var(--territory-soft); display: grid; place-items: center; padding: 1.5rem; overflow: hidden; }
.explorer-media img { width: auto; max-height: 420px; border-radius: var(--radius-m); box-shadow: var(--shadow); }
.explorer-media.cover { padding: 0; }
.explorer-media.cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; box-shadow: none; }
.kicker-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; }
.kicker-row .product-kicker { margin: 0; }
.check-list { list-style: none; margin: .25rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; font-size: .95rem; }
.check-list li { display: flex; gap: .55rem; align-items: baseline; }
.check-list li::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 2px; background: var(--territory, var(--brand)); transform: translateY(-1px); }
.domain-line { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; font-size: .9rem; }
.domain-line .mono { color: var(--muted); }

/* ---------- Connect showcase (ink band, copper territory) ---------- */
.band { background: var(--ink); color: var(--ink-text); }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #7cc8ff; }
.band .lede, .band p, .band .section-head > p { color: var(--ink-muted); }
.band .button { background: #fff; color: var(--ink); border-color: #fff; }
.band .button:hover { background: var(--brand-sky); border-color: var(--brand-sky); color: var(--ink); }
.band .button-secondary { background: transparent; color: #fff; border-color: rgba(238, 241, 246, .4); }
.band .button-secondary:hover { border-color: #fff; background: rgba(238, 241, 246, .06); color: #fff; }
.band .status { background: transparent; }
.band .status-available, .band .status-running { color: #4fd18b; border-color: rgba(79, 209, 139, .45); }
.band .status-development { color: #f0b54a; border-color: rgba(240, 181, 74, .45); }
.band .status-planned { color: var(--ink-muted); border-color: var(--ink-line); }
.band .arrow-link { color: #7cc8ff; }
.band .microcopy { color: var(--ink-muted); }
.connect-band { --territory: #e3a56a; background:
  radial-gradient(50rem 26rem at 100% 0%, rgba(227, 165, 106, .10), transparent 60%), var(--ink); }
.connect-band .eyebrow { color: #e3a56a; }
.connect-brand { display: inline-flex; align-items: center; gap: .65rem; }
.connect-brand img { width: 36px; height: 36px; border-radius: 10px; }
.lifecycle { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: 1.25rem; }
.lifecycle-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; counter-reset: stage; align-content: start; }
.lifecycle-steps li { counter-increment: stage; }
.stage-tab { width: 100%; display: grid; grid-template-columns: 2.25rem 1fr; gap: .25rem .5rem; align-items: baseline; text-align: left; padding: .8rem .9rem; border: 1px solid transparent; border-radius: var(--radius-s); background: transparent; color: var(--ink-muted); transition: background-color .2s var(--ease), color .2s var(--ease); }
.stage-tab::before { content: counter(stage, decimal-leading-zero); font-family: var(--font-mono); font-size: .75rem; color: var(--ink-muted); }
.stage-tab strong { color: var(--ink-text); font-weight: 500; }
.stage-tab:hover { background: rgba(238, 241, 246, .05); }
.stage-tab[aria-selected="true"] { background: var(--ink-2); border-color: var(--ink-line); }
.stage-tab[aria-selected="true"]::before { color: var(--territory); }
.stage-tab[aria-selected="true"] strong { color: #fff; font-weight: 600; }
.stage-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--ink-line); border-radius: var(--radius-l); background: var(--ink-2); }
.stage-panel[hidden] { display: none; }
.stage-panel h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.stage-caps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.stage-caps li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-top: .5rem; border-top: 1px solid var(--ink-line); font-size: .9375rem; color: var(--ink-text); }
.stage-caps .status { font-size: .625rem; }
/* illustrative interface mock (HTML, not a screenshot) */
.mock { border-radius: var(--radius-m); background: #0d1424; border: 1px solid rgba(238, 241, 246, .12); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); overflow: hidden; font-size: .8125rem; color: #d8deea; }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid rgba(238, 241, 246, .08); font-family: var(--font-mono); font-size: .6875rem; color: var(--ink-muted); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(238, 241, 246, .18); }
.mock-bar span { margin-left: .4rem; }
.mock-body { padding: .9rem; display: grid; gap: .55rem; }
.mock-row { display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: center; padding: .6rem .7rem; border-radius: var(--radius-s); background: rgba(238, 241, 246, .04); border: 1px solid rgba(238, 241, 246, .06); }
.mock-row b { font-weight: 600; color: #fff; }
.mock-row small { display: block; color: var(--ink-muted); font-size: .75rem; }
.mock-chip { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .05em; padding: .2rem .45rem; border-radius: 999px; border: 1px solid rgba(238, 241, 246, .18); color: var(--ink-muted); white-space: nowrap; }
.mock-chip.hot { color: #e3a56a; border-color: rgba(227, 165, 106, .5); }
.mock-chip.ok { color: #4fd18b; border-color: rgba(79, 209, 139, .45); }
.mock-dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .625rem; font-weight: 600; background: rgba(227, 165, 106, .16); color: #e3a56a; }
.mock-dot.wa { background: rgba(37, 211, 102, .14); color: #4ddc8a; }
.mock-dot.ph { background: rgba(3, 178, 253, .14); color: #59c8ff; }
.mock-note { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 0 .9rem .8rem; }
.channel-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.channel-tile { position: relative; margin: 0; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--ink-line); aspect-ratio: 4 / 3.4; background: var(--ink-2); }
.channel-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .6s var(--ease); }
.channel-tile:hover img { transform: scale(1.03); }
.channel-tile figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1rem; background: linear-gradient(transparent, rgba(6, 10, 19, .92)); display: grid; gap: .15rem; }
.channel-tile figcaption strong { color: #fff; font-size: 1.05rem; }
.channel-tile figcaption span { color: var(--ink-muted); font-size: .875rem; }
.fact-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1rem; border-top: 1px solid var(--ink-line); }
.fact { padding: 1.25rem 1.25rem 0 0; }
.fact + .fact { padding-left: 1.25rem; border-left: 1px solid var(--ink-line); }
.fact strong { display: block; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.fact span { font-size: .875rem; color: var(--ink-muted); }

/* ---------- Maya + Agent TOBO showcases ---------- */
.territory-section { position: relative; }
.territory-section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--territory); opacity: .9; }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.showcase.reverse .showcase-media { order: 2; }
.showcase-media { position: relative; border-radius: var(--radius-l); background: var(--territory-soft, var(--surface-2)); padding: clamp(1.25rem, 3vw, 2.5rem); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.showcase-media img { width: auto; max-height: 460px; border-radius: var(--radius-m); box-shadow: var(--shadow-l); }
.showcase-media .media-caption { position: absolute; left: 1rem; bottom: 1rem; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); padding: .3rem .55rem; border-radius: var(--radius-xs); border: 1px solid var(--line); }
.flow { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0; }
.flow li { position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; padding: .7rem 0; align-items: start; }
.flow li::before { content: ""; width: .85rem; height: .85rem; margin: .35rem 0 0 .55rem; border-radius: 50%; border: 2px solid var(--territory, var(--brand)); background: var(--bg); z-index: 1; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: .95rem; top: 1.5rem; bottom: -.4rem; width: 2px; background: color-mix(in srgb, var(--territory, var(--brand)) 35%, transparent); }
.flow li:last-child::before { background: var(--territory, var(--brand)); }
.flow strong { display: block; }
.flow span { color: var(--muted); font-size: .9375rem; }
.flow-step { border-left: 3px solid var(--territory, var(--text)); padding: .5rem .8rem; background: var(--surface); margin-bottom: .5rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.platforms { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.platform-acc { border-top: 1px solid var(--line); }
.platform-acc details { border-bottom: 1px solid var(--line); }
.platform-acc summary { list-style: none; display: grid; grid-template-columns: 3.25rem 1fr auto; gap: 1rem; align-items: center; padding: 1.15rem 0; cursor: pointer; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -.01em; }
.platform-acc summary::-webkit-details-marker { display: none; }
.platform-acc summary .num { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; color: var(--territory); }
.platform-acc summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--muted); transition: transform .2s var(--ease); }
.platform-acc details[open] summary::after { transform: rotate(45deg); }
.platform-acc details p { margin: 0 0 1.25rem 4.25rem; color: var(--muted); max-width: 52ch; }
.support-apps { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.support-apps li { font-size: .8125rem; padding: .35rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.platform-list { counter-reset: platform; display: grid; border-top: 1px solid var(--line); }
.platform-row { counter-increment: platform; display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.platform-row::before { content: "0" counter(platform); font-family: var(--font-mono); font-size: .9rem; color: var(--tobo); }
.platform-row h3 { margin: 0; }
.platform-row p { margin: .35rem 0 0; color: var(--muted); }

/* ---------- Built by JBRH gallery (snap scroller) ---------- */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.gallery-head h2 { margin: 0; }
.gallery-controls { display: flex; align-items: center; gap: .5rem; padding: .3rem; border-radius: 999px; background: var(--ink); color: var(--ink-text); }
.gallery-controls button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 1.1rem; display: grid; place-items: center; }
.gallery-controls button:hover { background: rgba(238, 241, 246, .12); }
.gallery-controls button:disabled { opacity: .35; cursor: default; }
.gallery-controls output { font-family: var(--font-mono); font-size: .75rem; min-width: 3.5rem; text-align: center; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: 1rem; scrollbar-width: thin; overscroll-behavior-x: contain; }
.gallery:focus-visible { outline-offset: 6px; }
.proof-tile { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
a.proof-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--territory, var(--line-strong)); }
.proof-tile figure { margin: 0; aspect-ratio: 4 / 3.2; background: var(--territory-soft, var(--surface-2)); overflow: hidden; display: grid; place-items: center; }
.proof-tile figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.proof-tile figure.contain img { width: auto; height: 88%; object-fit: contain; border-radius: var(--radius-s); box-shadow: var(--shadow); }
.proof-body { padding: 1.1rem 1.15rem 1.25rem; display: grid; gap: .45rem; align-content: start; }
.proof-body h3 { font-size: 1.15rem; margin: 0; }
.proof-body p { font-size: .9rem; color: var(--muted); margin: 0; }
.proof-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .35rem; }
.proof-tags .mono { font-size: .625rem; color: var(--muted); padding: .28rem .5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-xs); }
/* legacy proof grid (built-by-jbrh page) */
.proof-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.proof-card { grid-column: span 4; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-l); overflow: hidden; }
.proof-card.wide { grid-column: span 8; }
.proof-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; background: var(--surface-2); }
.proof-copy { padding: 1.15rem 1.25rem 1.35rem; }
.proof-meta { font-family: var(--font-mono); font-size: .6875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- developers + trust ---------- */
.dev-trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); }
.panel h3 { margin-bottom: .5rem; }
.panel > p { color: var(--muted); }
.api-list { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; border-top: 1px solid var(--line); }
.api-list li { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.api-list li small { grid-column: 1; color: var(--muted); font-size: .85rem; }
.api-list li .status { grid-row: 1 / span 2; grid-column: 2; }
.pillars { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.pillars li { background: var(--surface); padding: 1rem 1.1rem; }
.pillars strong { display: block; margin-bottom: .2rem; }
.pillars span { font-size: .875rem; color: var(--muted); }

/* ---------- official properties ---------- */
.official-list { display: grid; border-top: 1px solid var(--line); }
.official-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: .5rem 1.5rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.official-row strong a { text-decoration: none; }
.official-row strong a:hover { text-decoration: underline; color: var(--brand); }
.official-row > span:not(.status) { color: var(--muted); font-size: .9375rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.075rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details > div { margin: 0 0 1.25rem; color: var(--muted); max-width: 70ch; }

/* ---------- final CTA lanes ---------- */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.5rem; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius-l); overflow: hidden; }
.lane { display: grid; gap: .5rem; align-content: start; padding: clamp(1.4rem, 3vw, 2rem); background: var(--ink); text-decoration: none; color: var(--ink-text); transition: background-color .2s var(--ease); }
.lane:hover { background: var(--ink-2); }
.lane .mono { color: var(--territory); }
.lane strong { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; color: #fff; }
.lane span:last-child { color: var(--ink-muted); }
.lane[data-territory="maya"] { --territory: #3fd0bf; }
.lane[data-territory="tobo"] { --territory: #a9b4ff; }
.lane[data-territory="connect"] { --territory: #e3a56a; }

/* ---------- inner-page components (shared) ---------- */
.page-hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
.page-hero .container.narrow { margin-inline: auto; }
.hero-grid .hero-copy .lede { max-width: 54ch; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 3rem; }
.content-card { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.content-card h2, .content-card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.product-panel { border: 1px solid var(--line); border-top: 3px solid var(--territory, var(--line)); background: var(--surface); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-s); }
.product-panel .product-media { height: 280px; background: var(--territory-soft, var(--surface-2)); border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.product-panel .product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.product-copy { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex: 1; flex-direction: column; }
.product-copy .button { margin-top: auto; align-self: flex-start; }
.product-copy > p:not(.product-kicker):not(.microcopy) { color: var(--muted); }
.product-panel.featured { box-shadow: var(--shadow); }
.capability-list { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.capability-list li { border: 1px solid var(--line); background: var(--bg); padding: .3rem .6rem; border-radius: var(--radius-xs); font-size: .8125rem; }
.band .capability-list li { border-color: var(--ink-line); background: transparent; color: var(--ink-text); }
.system-grid, .trust-grid, .tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.system-card, .trust-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-l); overflow: hidden; }
.system-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.system-copy, .trust-card { padding: 1.35rem 1.4rem 1.5rem; }
.system-copy h2, .system-copy h3, .trust-card h2, .trust-card h3 { font-size: 1.3rem; }
.tool-card { border-top: 2px solid var(--text); padding-top: 1.2rem; }
.tool-card h2, .tool-card h3 { font-size: 1.3rem; }
.band .tool-card { border-top-color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.stat { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-m); padding: 1.1rem 1.2rem; }
.stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; font-weight: 600; color: var(--text); letter-spacing: -.03em; }
.stat span { font-size: .875rem; color: var(--muted); }
.operating-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius-l); overflow: hidden; }
.operating-panel { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.4rem); }
.operating-panel .product-kicker { color: #7cc8ff; }
.connect-hero { background: radial-gradient(60rem 30rem at 95% 0%, color-mix(in srgb, var(--connect) 12%, transparent), transparent 60%), var(--bg); }
.connect-hero.hero { color: var(--text); padding-block: clamp(3rem, 6vw, 5rem); }
.connect-hero.hero::before { display: none; }
.connect-hero.hero h1 { color: var(--text); }
.connect-hero.hero .lede { color: var(--muted); }
.connect-hero.hero .eyebrow { color: var(--connect); }
.connect-hero.hero .button { background: var(--text); color: var(--bg); border-color: var(--text); }
.connect-hero.hero .button:hover { background: var(--connect); border-color: var(--connect); color: #fff; }
.connect-hero.hero .button-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.connect-hero.hero .button-secondary:hover { border-color: var(--text); background: transparent; color: var(--text); }
.connect-hero-media { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.connect-hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.connect-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0; }
.connect-node { min-height: 0; padding: .55rem .9rem; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s); font-weight: 600; font-size: .9375rem; }
.connect-arrow { color: var(--connect); }
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.job-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-l); padding: clamp(1.4rem, 3vw, 2rem); }
.job-card .num { font-family: var(--font-mono); font-weight: 500; color: var(--connect); font-size: .75rem; letter-spacing: .1em; }
.job-card p { color: var(--muted); }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.channel-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.channel-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; background: var(--surface-2); }
.channel-copy { padding: 1.3rem 1.4rem 1.5rem; }
.channel-copy ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.channel-copy li { margin: .25rem 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-m); padding: .9rem 1rem; font-weight: 600; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); color: var(--connect); font-size: .75rem; font-weight: 500; margin-bottom: .2rem; }
.cap-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cap-group { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-l); padding: 1.4rem 1.5rem; }
.cap-group h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.cap-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.cap-row .status { flex: none; font-size: .625rem; }
.legend { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.5rem; color: var(--muted); font-size: .875rem; }
.split-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.split-media figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media figcaption { padding: 1rem 1.2rem 1.2rem; }
.split-media figcaption strong { display: block; }
.split-media figcaption span { color: var(--muted); font-size: .9rem; }
.media-card { border: 1px solid var(--line); background: var(--surface); padding: .6rem; border-radius: var(--radius-l); }
.media-card img { border-radius: var(--radius-m); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-logo { width: clamp(150px, 22vw, 240px); }
.hero-banner { width: 100%; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.contact-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-l); padding: 1.4rem; }
.contact-card h3 { font-size: 1.2rem; }
.contact-card a { color: var(--brand); font-weight: 600; overflow-wrap: anywhere; }
.asset-note { border: 1px dashed var(--line-strong); padding: .7rem; color: var(--muted); font-size: .8rem; background: var(--surface-2); }

/* ---------- social + share ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.social-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; font-size: .875rem; transition: border-color .15s ease, transform .15s ease; }
.social-link:hover { border-color: var(--text); transform: translateY(-1px); }
.social-link svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.social-link.icon-only { padding: 0; width: 44px; justify-content: center; }
[data-net="youtube"] svg { color: #ff0000; }
[data-net="whatsapp"] svg { color: #25d366; }
[data-net="linkedin"] svg { color: #0a66c2; }
[data-net="facebook"] svg { color: #1877f2; }
[data-net="telegram"] svg { color: #229ed9; }
.share-section { padding-block: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.share-bar { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; }
.share-bar p { margin: 0; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.follow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.follow-card { display: grid; gap: .4rem; align-content: start; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-l); padding: 1.35rem; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.follow-card:hover { border-color: var(--text); transform: translateY(-2px); }
.follow-card svg { width: 28px; height: 28px; fill: currentColor; margin-bottom: .25rem; }
.follow-card strong { font-size: 1.1rem; }
.follow-card span { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.follow-card span:last-child { color: var(--brand); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-muted); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.6fr); gap: clamp(2rem, 5vw, 4rem); }
.footer-brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 700; letter-spacing: .06em; }
.footer-brand img { width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-statement { margin: 1.1rem 0 .5rem; color: var(--ink-text); font-size: 1.125rem; max-width: 30ch; }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.footer-grid > div { min-width: 0; }
.footer-grid h2 { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .9rem; }
.footer-grid a { display: block; margin: .5rem 0; font-size: .9rem; color: var(--ink-text); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { text-decoration: underline; }
.site-footer .microcopy { color: var(--ink-muted); }
.site-footer .microcopy a { color: var(--ink-text); }
.footer-social { margin-top: 1.25rem; }
.site-footer .social-link { background: transparent; border-color: var(--ink-line); color: var(--ink-text); }
.site-footer .social-link:hover { border-color: #fff; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--ink-line); padding: 1.25rem 0 2rem; font-size: .8125rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; }

/* ---------- progressive reveal (only when JS + motion allowed) ---------- */
html.motion [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.motion [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* ---- photography (tools/site-build/photos.json; illustrative, never presented as customers) ---- */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--surface-2); aspect-ratio: var(--ratio, 3 / 2); }
.photo picture { display: block; width: 100%; height: 100%; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-label { position: absolute; left: .9rem; bottom: .9rem; padding: .35rem .6rem; border-radius: var(--radius-xs); background: rgba(6, 10, 19, .68); color: #fff; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; }
.photo-band { padding-top: clamp(1.5rem, 4vw, 3rem); }
.photo-wide { --ratio: 21 / 8; }
.media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.media-split h2 { margin-bottom: 1rem; }
.pillars.pillars-2 { grid-template-columns: repeat(2, 1fr); margin: 0; }
.platform-acc details .photo { margin: 0 0 1.25rem 4.25rem; }
/* home hero: photograph with an ink scrim on the text side */
.hero.has-photo { display: grid; align-items: center; min-height: clamp(560px, 80vh, 780px); }
.hero.has-photo::before { display: none; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo picture { display: block; height: 100%; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, color-mix(in srgb, var(--ink) 96%, transparent) 0%, color-mix(in srgb, var(--ink) 88%, transparent) 36%, color-mix(in srgb, var(--ink) 35%, transparent) 64%, color-mix(in srgb, var(--ink) 5%, transparent) 100%),
  linear-gradient(0deg, color-mix(in srgb, var(--ink) 80%, transparent) 0%, transparent 34%); }
/* closing call to action: copy sits in the photo's dark negative space */
.cta-visual { position: relative; }
.cta-visual .photo { --ratio: 21 / 9; border: 1px solid var(--ink-line); }
.cta-visual .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 60%, transparent) 40%, transparent 68%); }
.cta-copy { position: absolute; right: clamp(1.5rem, 4vw, 3.5rem); top: 50%; transform: translateY(-50%); width: min(30rem, 42%); }
.cta-copy h2 { margin-bottom: .9rem; }
@media (max-width: 1060px) {
  .media-split { grid-template-columns: 1fr; }
  .hero.has-photo { display: block; min-height: 0; padding-top: 0; }
  .hero-photo { position: relative; height: clamp(240px, 46vw, 420px); }
  .hero-photo::after { background: linear-gradient(180deg, transparent 45%, var(--ink) 100%); }
  .hero-photo img { object-position: 80% 50% !important; }
  .hero.has-photo .hero-grid { margin-top: -1.5rem; }
  .cta-visual .photo { --ratio: 16 / 9; }
  .cta-visual .photo::after { display: none; }
  .cta-copy { position: static; transform: none; width: auto; margin-top: 1.75rem; }
}
@media (max-width: 720px) {
  .photo-wide { --ratio: 4 / 3; }
  .pillars.pillars-2 { grid-template-columns: 1fr; }
  .platform-acc details .photo { margin-left: 0; }
}

@media (max-width: 1180px) {
  .nav-list > li > a, .nav-trigger { padding-inline: .5rem; font-size: .9rem; }
  .brand-copy small { display: none; }
}
@media (max-width: 1060px) {
  :root { --header-h: 62px; }
  .menu-toggle { display: inline-flex; }
  .header-actions .button { display: none; }
  .site-nav { position: fixed; inset: calc(var(--header-h) + 36px) 0 0 0; display: none; background: var(--bg); overflow-y: auto; padding: 1rem var(--gutter) 2rem; border-top: 1px solid var(--line); }
  .site-header[data-scrolled="true"] .site-nav { top: var(--header-h); }
  .site-nav[data-open="true"] { display: block; }
  /* backdrop-filter would make the header the containing block of the fixed sheet */
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .nav-trigger { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.125rem; padding-inline: .25rem; border-radius: 0; }
  .nav-list > li > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: transparent; }
  .mega { position: static; box-shadow: none; border: 0; background: transparent; }
  .mega-inner { grid-template-columns: 1fr; gap: 1rem; padding: 0 0 1.25rem; width: 100%; }
  .mega-products { grid-template-columns: 1fr; }
  .mega-foot { gap: 1rem; }
  .nav-mobile-only { display: block; padding-top: 1.25rem; border: 0 !important; }
  .nav-mobile-only .button { width: 100%; }
  .hero-grid, .showcase, .platforms, .split { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { grid-template-columns: repeat(3, 1fr); }
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle-steps { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: .5rem; }
  .stage-tab { grid-template-columns: auto auto; }
  .product-grid, .system-grid, .trust-grid, .tool-grid, .jobs-grid, .channel-grid, .split-media { grid-template-columns: 1fr 1fr; }
  .product-panel:last-child:nth-child(odd) { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid, .fact-row { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--ink-line); margin-top: 1rem; }
  .cap-groups, .dev-trust { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: minmax(260px, 40%); }
}
@media (max-width: 720px) {
  :root { --gutter: 1rem; }
  body { font-size: 1rem; }
  .utility-links { display: none; }
  .brand-copy strong { font-size: .875rem; }
  .theme-toggle .label { display: none; }
  .section-head { grid-template-columns: 1fr; gap: .75rem; }
  .hero { padding-bottom: 7rem; }
  .explorer-tabs { grid-template-columns: 1fr; }
  .explorer-panel { grid-template-columns: 1fr; }
  .explorer-media { order: -1; max-height: 300px; }
  .explorer-media img { max-height: 260px; }
  .check-list { grid-template-columns: 1fr; }
  .stage-panel { grid-template-columns: 1fr; }
  .channel-strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .channel-tile { scroll-snap-align: start; }
  .fact-row { grid-template-columns: 1fr 1fr; }
  .showcase.reverse .showcase-media { order: 0; }
  .showcase-media img { max-height: 340px; }
  .platform-acc summary { grid-template-columns: 2.5rem 1fr auto; }
  .platform-acc details p { margin-left: 3.5rem; }
  .gallery { grid-auto-columns: 80%; }
  .pillars { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: 1fr; }
  .official-row { grid-template-columns: 1fr auto; }
  .official-row > span:not(.status) { grid-column: 1; grid-row: 2; }
  .official-row .status { grid-row: 1 / span 2; grid-column: 2; }
  .product-grid, .system-grid, .trust-grid, .tool-grid, .jobs-grid, .channel-grid, .split-media { grid-template-columns: 1fr; }
  .product-panel:last-child:nth-child(odd) { grid-column: auto; }
  .proof-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .proof-card, .proof-card.wide { min-width: 84%; scroll-snap-align: start; }
  .operating-grid { grid-template-columns: 1fr; }
  .platform-row { grid-template-columns: 2.5rem 1fr; }
  .platform-row .status { grid-column: 2; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .share-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .brand-copy { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
@media print {
  .utility-bar, .site-header, .share-section, .site-footer .social-row { display: none; }
  .hero, .band, .site-footer { background: #fff !important; color: #000 !important; }
}
