/* ==========================================================================
   Xelwel Corporate renderer — site.css
   Built from the approved HTML prototype (since removed). Design tokens
   come from Theme & Branding through SiteView::themeCss() (--c-* variables,
   --radius, --btn-radius, --container, --font-body, --font-heading, --shadow);
   the dark palette is derived and applied with html[data-theme="dark"].
   ========================================================================== */
:root {
  color-scheme: light;
  --brand: var(--c-primary, #1f4fd6);
  --brand-hover: color-mix(in srgb, var(--c-primary, #1f4fd6) 85%, #000);
  --brand-soft: color-mix(in srgb, var(--c-primary, #1f4fd6) 9%, transparent);
  --brand-soft-2: color-mix(in srgb, var(--c-primary, #1f4fd6) 18%, transparent);
  --brand-100: color-mix(in srgb, var(--c-primary, #1f4fd6) 14%, #fff);
  --brand-200: color-mix(in srgb, var(--c-primary, #1f4fd6) 28%, #fff);
  --brand-800: color-mix(in srgb, var(--c-primary, #1f4fd6) 70%, #000);
  --on-brand: var(--c-on-primary, #fff);
  --navy-900: var(--c-secondary, #0b1736);
  --navy-950: color-mix(in srgb, var(--c-secondary, #0b1736) 80%, #000);
  --amber-400: color-mix(in srgb, var(--c-accent, #e39a00) 85%, #fff);
  --amber-500: var(--c-accent, #e39a00);
  --amber-600: color-mix(in srgb, var(--c-accent, #e39a00) 80%, #000);
  --accent: var(--c-accent, #e39a00);
  --accent-soft: color-mix(in srgb, var(--c-accent, #e39a00) 14%, #fff);
  --teal-500: #0e9f8f;
  --green-500: #1b9a5a;
  --red-500: #d7363f;
  --bg: var(--c-bg, #fff);
  --bg-soft: var(--c-surface, #f5f7fb);
  --bg-muted: color-mix(in srgb, var(--c-surface, #f5f7fb) 70%, var(--c-border, #e2e7f0));
  --surface: var(--c-card, #fff);
  --surface-2: var(--c-surface, #f8fafd);
  --surface-raised: var(--c-card, #fff);
  --border: var(--c-border, #e2e7f0);
  --border-strong: color-mix(in srgb, var(--c-border, #e2e7f0) 70%, var(--c-muted, #6b7790));
  --text: var(--c-heading, #0f1a33);
  --text-2: var(--c-text, #3f4b63);
  --text-3: var(--c-muted, #6b7790);
  --text-inverse: #fff;
  --link: var(--c-link, var(--c-primary, #1f4fd6));
  --link-hover: var(--brand-hover);
  --focus: var(--c-primary, #1f4fd6);
  --dark-section-bg: var(--c-secondary, #0b1736);
  --dark-section-text: #e8edf8;
  --dark-section-muted: #a9b6d2;
  --dark-section-border: rgba(255, 255, 255, 0.12);
  --header-bg: color-mix(in srgb, var(--c-header-bg, #fff) 86%, transparent);
  --header-solid: var(--c-header-bg, #fff);
  --header-border: rgba(15, 26, 51, 0.08);
  --nav: var(--c-nav, var(--c-text, #3f4b63));
  --nav-hover: var(--c-nav-hover, var(--c-heading, #0f1a33));
  --footer-bg: var(--c-footer-bg, #0b1736);
  --footer-text: var(--c-footer-text, #c7d0e3);
  --overlay: rgba(11, 23, 54, 0.48);
  --shadow-xs: 0 1px 2px rgba(15, 26, 51, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 26, 51, 0.06), 0 1px 2px rgba(15, 26, 51, 0.04);
  --shadow-md: var(--shadow, 0 8px 24px rgba(15, 26, 51, 0.08));
  --shadow-lg: 0 24px 56px rgba(15, 26, 51, 0.14), 0 6px 16px rgba(15, 26, 51, 0.06);
  --font-display: var(--font-heading, "Sora", "Inter", system-ui, sans-serif);
  --font-body: var(--font-body, "Inter", system-ui, sans-serif);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 0.78rem; --fs-sm: 0.875rem; --fs-base: 1rem; --fs-md: 1.0625rem; --fs-lg: 1.1875rem; --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); --fs-3xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.375rem);
  --fs-4xl: clamp(2rem, 1.4rem + 2.6vw, 3rem); --fs-hero: clamp(2.25rem, 1.5rem + 3.4vw, 3.9rem);
  --lh-tight: 1.12; --lh-snug: 1.3; --lh-body: 1.65;
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;
  --section-y: var(--section-pad, clamp(3.5rem, 3rem + 3vw, 6rem));
  --container: var(--container, 1200px);
  --container-wide: calc(var(--container, 1200px) + 160px);
  --container-narrow: 820px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-xs: 4px; --radius-sm: max(4px, calc(var(--radius, 10px) * 0.6)); --radius: var(--radius, 10px);
  --radius-lg: calc(var(--radius, 10px) + 4px); --radius-xl: calc(var(--radius, 10px) * 2); --radius-pill: 999px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms; --dur: 240ms; --dur-slow: 480ms;
  --theme-transition: background-color 240ms ease, border-color 240ms ease, color 160ms ease;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --brand: color-mix(in srgb, var(--c-primary, #1f4fd6) 70%, #fff);
  --brand-hover: color-mix(in srgb, var(--c-primary, #1f4fd6) 55%, #fff);
  --brand-soft: color-mix(in srgb, var(--c-primary, #1f4fd6) 18%, transparent);
  --brand-soft-2: color-mix(in srgb, var(--c-primary, #1f4fd6) 30%, transparent);
  --brand-100: color-mix(in srgb, var(--c-primary, #1f4fd6) 30%, #0b1120);
  --brand-200: color-mix(in srgb, var(--c-primary, #1f4fd6) 45%, #0b1120);
  --bg: #0b1120; --bg-soft: #0f172a; --bg-muted: #141d33;
  --surface: #111a2e; --surface-2: #162038; --surface-raised: #182340;
  --border: #223050; --border-strong: #2f3f66;
  --text: #e7ecf7; --text-2: #b4bed4; --text-3: #8591ad; --text-inverse: #0f1a33;
  --link: color-mix(in srgb, var(--c-primary, #1f4fd6) 45%, #fff); --link-hover: #fff;
  --accent-soft: color-mix(in srgb, var(--c-accent, #e39a00) 16%, transparent);
  --focus: color-mix(in srgb, var(--c-primary, #1f4fd6) 45%, #fff);
  --dark-section-bg: #070f26;
  --header-bg: rgba(11, 17, 32, 0.82); --header-solid: #0b1120; --header-border: rgba(255, 255, 255, 0.08);
  --nav: #b4bed4; --nav-hover: #fff;
  --footer-bg: #070d1f; --footer-text: #c7d0e3;
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4); --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--theme-transition);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
h5 { font-size: var(--fs-base); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lg); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.text-2 { color: var(--text-2); }
strong { font-weight: 600; }

a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) ease; }
a:hover { color: var(--link-hover); }
a.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 0.35em; }
a.link-arrow .icon { transition: transform var(--dur) var(--ease); }
a.link-arrow:hover .icon { transform: translateX(3px); }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { color: var(--text-3); font-size: var(--fs-xs); }
figure { margin: 0; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
code, kbd { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--bg-muted); padding: 0.1em 0.4em; border-radius: var(--radius-xs); }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--brand-soft-2); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-xs); }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--brand); color: var(--on-brand); padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: 1rem; color: var(--on-brand); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.2em; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: calc(var(--section-y) * 0.6); }
.section-soft { background: var(--bg-soft); }
.section-muted { background: var(--bg-muted); }
.section-border { border-top: 1px solid var(--border); }
.section-dark { background: var(--dark-section-bg); color: var(--dark-section-text); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .muted, .section-dark .text-2, .section-dark .lead { color: var(--dark-section-muted); }
.section-dark a:not(.btn) { color: #c7d6ff; }
.section-dark .eyebrow { color: var(--amber-400); }

.section-head { max-width: var(--heading-width, 720px); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head .lead { margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head-row .section-head { margin-bottom: 0; flex: 1 1 20rem; min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.is-plain::before { display: none; }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 2rem + 2vw, 4.5rem); align-items: center; }
.split-wide { grid-template-columns: 1.15fr 0.85fr; }
.split-narrow { grid-template-columns: 0.85fr 1.15fr; }
.split-start { align-items: start; }
.split > .is-first { order: -1; }

.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.flow > * + * { margin-top: 1em; }

/* --------------------------------------------------------------------------
   4. Buttons & badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); line-height: 1.2;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-3); color: var(--text); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--brand); padding-inline: 0.75rem; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-hover); }
.btn-accent { background: var(--amber-400); color: #1b1300; }
.btn-accent:hover { background: #ffc233; color: #1b1300; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: #eef2ff; color: var(--navy-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: var(--fs-base); min-height: 50px; }
.btn-sm { padding: 0.45rem 0.85rem; min-height: 36px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; border-radius: var(--radius-pill);
  background: var(--bg-muted); color: var(--text-2); line-height: 1.5; white-space: nowrap;
}
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-accent { background: var(--accent-soft); color: var(--amber-600); }
.badge-green { background: rgba(27, 154, 90, 0.12); color: var(--green-500); }
.badge-red { background: rgba(215, 54, 63, 0.12); color: var(--red-500); }
.badge-outline { background: transparent; border: 1px solid var(--border-strong); }
html[data-theme="dark"] .badge-accent { color: var(--amber-400); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.tag-list li { margin: 0; }

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--header-border);
  box-shadow: 0 6px 24px rgba(15, 26, 51, 0.06);
}
.header-inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); font-family: var(--font-display); }
.brand:hover { color: var(--text); }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: static; }
.nav-link { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.55rem 0.8rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--text-2);
  border-radius: var(--radius-sm); background: transparent; border: 0; cursor: pointer;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-active { color: var(--text); background: var(--bg-muted); }
.nav-link .icon { width: 0.9em; height: 0.9em; opacity: 0.7; transition: transform var(--dur) var(--ease); }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 0.35rem; margin-left: var(--space-2); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.icon-btn:hover { background: var(--bg-muted); color: var(--text); }
.icon-btn .icon { width: 1.25rem; height: 1.25rem; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { position: absolute; transition: opacity var(--dur) ease, transform var(--dur-slow) var(--ease-out); }
.theme-toggle { position: relative; }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
html[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
html[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: none; }
.header-cta { margin-left: 0.35rem; }
.nav-toggle { display: none; }

/* Mega menus and dropdowns */
.mega, .dropdown {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface-raised); border: 1px solid var(--border); border-top: 0;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  z-index: 90;
}
.dropdown { left: auto; right: auto; min-width: 260px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 0.6rem; }
.mega { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
li.has-menu { position: relative; }
li.has-menu.is-mega { position: static; }
.has-menu.is-open > .mega, .has-menu.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.mega-inner { display: grid; grid-template-columns: 240px 1fr; gap: 0; max-width: var(--container); margin-inline: auto; }
.mega-aside { background: var(--bg-soft); padding: 1.75rem 1.5rem; border-right: 1px solid var(--border); border-radius: 0 0 0 var(--radius-xl); }
.mega-aside h3 { font-size: var(--fs-md); margin-bottom: 0.4rem; }
.mega-aside p { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 1rem; }
.mega-body { padding: 1.5rem 1.75rem 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.mega-body.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-group h4 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 0.6rem 0.6rem; }
.mega-group ul { list-style: none; margin: 0; padding: 0; }
.mega-group li { margin: 0; }
.mega-link {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.55rem 0.6rem; border-radius: var(--radius-sm);
  color: var(--text); transition: background-color var(--dur-fast) ease;
}
.mega-link:hover { background: var(--bg-muted); color: var(--text); }
.mega-link .icon { width: 1.25rem; height: 1.25rem; color: var(--brand); margin-top: 0.1rem; }
.mega-link strong { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.mega-link span { display: block; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.4; margin-top: 0.1rem; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); color: var(--text); font-size: var(--fs-sm); font-weight: 500; }
.dropdown a:hover { background: var(--bg-muted); color: var(--text); }
.dropdown a small { display: block; color: var(--text-3); font-weight: 400; font-size: var(--fs-xs); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 200; display: none;
}
.nav-drawer.is-open { display: block; }
.nav-drawer-backdrop { position: absolute; inset: 0; background: var(--overlay); }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 400px);
  background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-drawer.is-open .nav-drawer-panel { transform: none; }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); }
.nav-drawer-body { overflow-y: auto; padding: 0.5rem 1rem 1.5rem; flex: 1; }
.nav-drawer-foot { padding: 1rem; border-top: 1px solid var(--border); display: grid; gap: 0.6rem; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list li { margin: 0; border-bottom: 1px solid var(--border); }
.drawer-list > li > a, .drawer-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0.95rem 0.25rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--text); background: none; border: 0; cursor: pointer; text-align: left;
}
.drawer-toggle .icon { transition: transform var(--dur) var(--ease); }
.drawer-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer-sub { display: none; list-style: none; margin: 0; padding: 0 0 0.75rem 0.5rem; }
.drawer-toggle[aria-expanded="true"] + .drawer-sub { display: block; }
.drawer-sub li { border: 0; }
.drawer-sub h5 { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 0.75rem 0 0.25rem 0.5rem; }
.drawer-sub a { display: block; padding: 0.55rem 0.5rem; color: var(--text-2); font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.drawer-sub a:hover { background: var(--bg-muted); color: var(--text); }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 300; display: none; }
.search-overlay.is-open { display: block; }
.search-overlay-backdrop { position: absolute; inset: 0; background: var(--overlay); }
.search-panel {
  position: relative; margin: 8vh auto 0; width: min(92vw, 680px); background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden;
}
.search-input-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); }
.search-input-row .icon { color: var(--text-3); width: 1.25rem; height: 1.25rem; }
.search-input { flex: 1; border: 0; background: transparent; font-size: 1.05rem; color: var(--text); outline: none; min-width: 0; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 0.5rem; }
.search-results ul { list-style: none; margin: 0; padding: 0; }
.search-results li { margin: 0; }
.search-results a { display: flex; gap: 0.8rem; align-items: center; padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); color: var(--text); }
.search-results a:hover, .search-results a.is-active { background: var(--bg-muted); color: var(--text); }
.search-results .badge { margin-left: auto; }
.search-results strong { font-weight: 600; font-size: var(--fs-sm); }
.search-results span.desc { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.search-empty { padding: 1.5rem; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
.search-hint { padding: 0.6rem 1rem; font-size: var(--fs-xs); color: var(--text-3); border-top: 1px solid var(--border); display: flex; gap: 1rem; }
.search-hint kbd { background: var(--bg-muted); border: 1px solid var(--border); padding: 0 0.35em; border-radius: 4px; font-size: 0.75em; }

/* --------------------------------------------------------------------------
   6. Page hero / breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: var(--fs-sm); color: var(--text-3); margin: 0 0 1.25rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 0.35rem; }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text-2); font-weight: 500; }

.page-hero { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); background: var(--bg-soft); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero h1 { margin-bottom: 0.75rem; max-width: var(--heading-width, 20ch); }
.page-hero .lead { max-width: var(--heading-width, 60ch); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 2rem + 2vw, 4rem); align-items: center; }
.page-hero.is-dark { background: var(--dark-section-bg); color: var(--dark-section-text); border-bottom: 0; }
.page-hero.is-dark h1 { color: #fff; }
.page-hero.is-dark .lead { color: var(--dark-section-muted); }
.page-hero.is-dark .breadcrumb, .page-hero.is-dark .breadcrumb a { color: var(--dark-section-muted); }
.page-hero.is-dark .breadcrumb [aria-current] { color: #fff; }
.page-hero.is-dark .breadcrumb li + li::before { color: rgba(255,255,255,0.3); }
.page-hero.is-dark .eyebrow { color: var(--amber-400); }
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; background-image: url("../images/grid.svg"); background-size: 48px 48px; opacity: 0.5; -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%); }
html[data-theme="dark"] .page-hero-bg, .page-hero.is-dark .page-hero-bg { background-image: url("../images/grid-dark.svg"); opacity: 0.6; }

/* --------------------------------------------------------------------------
   7. Cards & lists
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; position: relative;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) var(--ease), background-color var(--dur) ease;
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-link { color: inherit; display: block; }
.card-link:hover { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-2); font-size: var(--fs-sm); }
.card-icon {
  width: 46px; height: 46px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem;
}
.card-icon .icon { width: 1.4rem; height: 1.4rem; }
.card-icon.is-accent { background: var(--accent-soft); color: var(--amber-600); }
.card-icon.is-teal { background: rgba(14, 159, 143, 0.12); color: var(--teal-500); }
.card-icon.is-green { background: rgba(27, 154, 90, 0.12); color: var(--green-500); }
html[data-theme="dark"] .card-icon.is-accent { color: var(--amber-400); }
.card-footer { margin-top: auto; padding-top: 1rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.card-flex { display: flex; flex-direction: column; }
.card-sm { padding: 1.1rem 1.25rem; }
.card-dark { background: var(--navy-900); border-color: rgba(255,255,255,0.08); color: var(--dark-section-text); }
.card-dark h3, .card-dark h4 { color: #fff; }
.card-dark p { color: var(--dark-section-muted); }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0; }
.feature-list .icon { color: var(--brand); width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; }
.feature-list strong { display: block; font-weight: 600; }
.feature-list span { color: var(--text-2); font-size: var(--fs-sm); }
.feature-list.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.5rem; }
.section-dark .feature-list .icon { color: var(--amber-400); }
.section-dark .feature-list span { color: var(--dark-section-muted); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.6rem; position: relative; margin: 0 0 0.45rem; color: var(--text-2); font-size: var(--fs-sm); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--brand-soft); }
.check-list li::after { content: ""; position: absolute; left: 0.27rem; top: 0.62em; width: 0.32rem; height: 0.18rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

.numbered { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.numbered > li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; margin: 0; }
.numbered > li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  color: var(--brand); border: 1px solid var(--border-strong); border-radius: 50%; width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center; background: var(--surface);
}
.numbered strong { display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.2rem; }
.numbered p { font-size: var(--fs-sm); color: var(--text-2); }

/* Process steps (horizontal) */
.process { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 1.25rem; position: relative; counter-reset: p; }
.process-step { position: relative; padding-top: 1.25rem; counter-increment: p; }
.process-step::before { content: ""; position: absolute; top: 0; left: 0; right: -1.25rem; height: 2px; background: var(--border); }
.process-step:last-child::before { right: 0; }
.process-step::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--bg); }
.process-num { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; color: var(--brand); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.process-step h3 { font-size: var(--fs-md); margin-bottom: 0.35rem; }
.process-step p { font-size: var(--fs-sm); color: var(--text-2); }
.section-soft .process-step::after { box-shadow: 0 0 0 4px var(--bg-soft); }
.section-dark .process-step::before { background: var(--dark-section-border); }
.section-dark .process-step::after { background: var(--amber-400); box-shadow: 0 0 0 4px var(--dark-section-bg); }
.section-dark .process-num { color: var(--amber-400); }
.section-dark .process-step p { color: var(--dark-section-muted); }

/* Timeline (vertical) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.55rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-left: 2.25rem; margin: 0 0 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline time, .timeline .t-label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.25rem; }
.timeline h3 { font-size: var(--fs-md); margin-bottom: 0.3rem; }
.timeline p { font-size: var(--fs-sm); color: var(--text-2); }

/* Logo strip */
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; align-items: center; }
.logo-item {
  display: flex; align-items: center; justify-content: center; height: 92px; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.logo-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.logo-item img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
html[data-theme="dark"] .logo-item { background: #fff; border-color: rgba(255,255,255,0.1); }
.logo-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }
.logo-row img { max-height: 44px; width: auto; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0.25rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 1.25rem; height: 1.25rem; color: var(--text-3); transition: transform var(--dur) var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--brand); }
.faq summary:hover { color: var(--brand); }
.faq .faq-body { padding: 0 0.25rem 1.25rem; color: var(--text-2); font-size: var(--fs-sm); max-width: 70ch; }
.section-dark .faq, .section-dark .faq details { border-color: var(--dark-section-border); }
.section-dark .faq summary { color: #fff; }
.section-dark .faq .faq-body { color: var(--dark-section-muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { font-size: var(--fs-sm); min-width: 560px; }
.table th, .table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td strong { font-weight: 600; }

/* Alerts / notices */
.notice {
  display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2); color: var(--text); font-size: var(--fs-sm);
}
.notice .icon { color: var(--brand); flex: none; margin-top: 0.15rem; width: 1.2rem; height: 1.2rem; }
.notice-warn { background: var(--accent-soft); border-color: rgba(227, 154, 0, 0.35); }
.notice-warn .icon { color: var(--amber-600); }
.notice-success { background: rgba(27, 154, 90, 0.1); border-color: rgba(27, 154, 90, 0.3); }
.notice-success .icon { color: var(--green-500); }
.notice-error { background: rgba(215, 54, 63, 0.08); border-color: rgba(215, 54, 63, 0.3); }
.notice-error .icon { color: var(--red-500); }
.notice p { margin: 0; }
.notice strong { display: block; margin-bottom: 0.15rem; }
html[data-theme="dark"] .notice-warn .icon { color: var(--amber-400); }

/* Demo content label */
.demo-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 600; color: var(--amber-600); background: var(--accent-soft); padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); }
html[data-theme="dark"] .demo-label { color: var(--amber-400); }

/* Stat / fact tiles (only for verified facts) */
.fact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.fact-tile { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.fact-tile .fact-k { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); color: var(--text); line-height: 1.1; letter-spacing: -0.02em; }
.fact-tile .fact-v { font-size: var(--fs-sm); color: var(--text-2); margin-top: 0.35rem; }

/* Article cards */
.article-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.article-media { aspect-ratio: 16 / 9; background: var(--bg-muted); overflow: hidden; position: relative; }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.article-card:hover .article-media img { transform: scale(1.03); }
.article-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.article-meta { display: flex; gap: 0.6rem; align-items: center; font-size: var(--fs-xs); color: var(--text-3); flex-wrap: wrap; }
.article-meta time { font-weight: 500; }
.article-card h3 { font-size: var(--fs-lg); margin: 0.1rem 0 0.2rem; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--brand); }
.article-card p { margin: 0; }
.article-card .link-arrow { margin-top: auto; padding-top: 0.75rem; font-size: var(--fs-sm); }

/* Graphic placeholders for articles / portfolio (generated, not photos) */
.art-cover { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 1rem; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.02em; position: relative; }
.art-cover::before { content: ""; position: absolute; inset: 0; background-image: url("../images/grid-dark.svg"); background-size: 32px 32px; opacity: 0.35; }
.art-cover span { position: relative; }
.art-1 { background: linear-gradient(135deg, #0f2354, #1f4fd6); }
.art-2 { background: linear-gradient(135deg, #0b1736, #0e9f8f); }
.art-3 { background: linear-gradient(135deg, #15327f, #c48200); }
.art-4 { background: linear-gradient(135deg, #1a3fb0, #5a84f5); }
.art-5 { background: linear-gradient(135deg, #0b1736, #4a3fb0); }
.art-6 { background: linear-gradient(135deg, #0f2354, #1b9a5a); }

/* Prose for article pages */
.prose { max-width: 70ch; font-size: var(--fs-md); }
.prose h2 { font-size: var(--fs-2xl); margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--text-2); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { margin: 0; color: var(--text); }
.prose img { border-radius: var(--radius); }
.article-header { max-width: var(--heading-width, 820px); margin-bottom: 2rem; }
.article-header h1 { font-size: var(--fs-4xl); }
.article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; }
.toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--surface); }
.toc h4 { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); }
.toc li { margin: 0 0 0.35rem; }
.toc a { color: var(--text-2); }

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.field .req { color: var(--red-500); margin-left: 0.15em; }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; padding: 0.7rem 0.9rem; min-height: 46px; font: inherit; font-size: var(--fs-sm);
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur) ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft-2); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7790' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.4rem; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(215, 54, 63, 0.15); }
.field-error { font-size: var(--fs-xs); color: var(--red-500); display: none; align-items: center; gap: 0.3rem; }
.field.has-error .field-error { display: flex; }
.field-error .icon { width: 0.95rem; height: 0.95rem; }
.choice-group { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.choice { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); margin: 0; }
.checkbox-field { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.checkbox-field input { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); margin-top: 0.15rem; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { font-size: var(--fs-xs); color: var(--text-3); }
.file-input { font-size: var(--fs-sm); color: var(--text-2); }
.file-input::file-selector-button { font: inherit; font-weight: 600; padding: 0.45rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); margin-right: 0.75rem; cursor: pointer; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-success { display: none; }
.form-success.is-visible { display: block; }
.form.is-submitted { display: none; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(27, 154, 90, 0.12); color: var(--green-500); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.success-icon .icon { width: 2rem; height: 2rem; }
.summary-list { display: grid; gap: 0.35rem; font-size: var(--fs-sm); margin: 1rem 0; padding: 1rem; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--border); }
.summary-list div { display: grid; grid-template-columns: 160px 1fr; gap: 0.75rem; }
.summary-list dt { color: var(--text-3); margin: 0; }
.summary-list dd { margin: 0; color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #c7d0e3; margin-top: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
html[data-theme="dark"] .site-footer { background: #070d1f; border-top: 1px solid var(--border); }
.footer-top { padding: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0 2.5rem; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-sub { color: #93a1c2; }
.footer-brand p { font-size: var(--fs-sm); color: #a9b6d2; max-width: 36ch; margin-top: 1rem; }
.footer-brand .brand img { background: #fff; border-radius: 8px; padding: 2px; }
.footer-col h4 { color: #fff; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.5rem; }
.footer-col a { color: #b6c1da; font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: #b6c1da; }
.footer-contact .icon { color: var(--amber-400); margin-top: 0.25rem; flex: none; }
.footer-contact a { color: #e6ebf7; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.14); align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: rgba(255,255,255,0.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: #93a1c2; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: #b6c1da; }
.footer-bottom a:hover { color: #fff; }

/* Back to top */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 80;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  box-shadow: var(--shadow-md); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.back-to-top:hover { color: var(--brand); border-color: var(--brand); }

/* --------------------------------------------------------------------------
   10. Homepage sections
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: url("../images/grid.svg"); background-size: 48px 48px; opacity: 0.55; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 60%); }
.hero-bg::after { content: ""; position: absolute; right: -10%; top: -20%; width: 55%; height: 120%; background: radial-gradient(closest-side, var(--brand-soft), transparent 70%); opacity: 0.9; }
html[data-theme="dark"] .hero-bg::before { background-image: url("../images/grid-dark.svg"); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 2rem + 2vw, 4rem); align-items: center; position: relative; }
.hero h1 { font-size: var(--fs-hero); margin-bottom: 1.25rem; letter-spacing: -0.03em; max-width: var(--heading-width, 14ch); }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero .lead { max-width: var(--heading-width, 52ch); margin-bottom: 1.75rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; font-size: var(--fs-sm); color: var(--text-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta .icon { color: var(--brand); }

/* Hero collage of product mock windows */
.hero-visual { position: relative; min-height: 460px; }
.hero-visual .mock-window { position: absolute; box-shadow: var(--shadow-lg); }
.hero-visual .mw-main { left: 0; top: 2rem; width: 78%; z-index: 2; }
.hero-visual .mw-side { right: 0; top: 0; width: 42%; z-index: 3; }
.hero-visual .mw-bottom { right: 4%; bottom: 0; width: 50%; z-index: 4; }
.hero-caption { position: absolute; left: 0; bottom: -1.75rem; font-size: var(--fs-xs); color: var(--text-3); }

/* Product group layout on homepage */
.product-feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 2rem + 2vw, 4rem); align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
.product-feature.is-reverse { grid-template-columns: 0.9fr 1.1fr; }
.product-feature.is-reverse .product-feature-visual { order: -1; }
.product-feature h3 { font-size: var(--fs-2xl); }
.product-feature .lead { font-size: var(--fs-base); }
.product-list-compact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.product-list-compact li { margin: 0; }
.product-list-compact a { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border-radius: var(--radius); border: 1px solid var(--border); color: var(--text); background: var(--surface); font-weight: 600; font-size: var(--fs-sm); transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.product-list-compact a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.product-list-compact .icon { color: var(--brand); width: 1.2rem; height: 1.2rem; }
.product-list-compact small { display: block; font-weight: 400; color: var(--text-3); font-size: var(--fs-xs); }

/* Services overview list */
.service-rows { border-top: 1px solid var(--border); }
.service-row { display: grid; grid-template-columns: 56px 1.1fr 1.4fr auto; gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--border); color: inherit; transition: background-color var(--dur-fast) ease; }
.service-row:hover { color: inherit; }
.service-row:hover h3 { color: var(--brand); }
.service-row h3 { font-size: var(--fs-lg); margin: 0; transition: color var(--dur-fast) ease; }
.service-row p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.service-row .icon-wrap { width: 48px; height: 48px; border-radius: var(--radius); background: var(--bg-muted); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.service-row .icon-wrap .icon { width: 1.35rem; height: 1.35rem; }
.service-row .link-arrow { font-size: var(--fs-sm); }

/* Why Xelwel */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.why-item { padding-top: 1.25rem; border-top: 2px solid var(--amber-400); }
.why-item h3 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.why-item p { font-size: var(--fs-sm); color: var(--dark-section-muted); margin: 0; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.industry-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.industry-item .icon-wrap { width: 44px; height: 44px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.industry-item h3 { font-size: var(--fs-md); margin-bottom: 0.25rem; }
.industry-item p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }

/* Case study feature */
.case-feature { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.case-feature-visual { background: var(--navy-900); padding: 2.5rem; display: flex; align-items: center; justify-content: center; position: relative; min-height: 360px; }
.case-feature-visual::before { content: ""; position: absolute; inset: 0; background-image: url("../images/grid-dark.svg"); background-size: 40px 40px; opacity: 0.4; }
.case-feature-visual .mock-window { position: relative; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.case-feature-body { padding: clamp(1.75rem, 1.5rem + 1.5vw, 3rem); }
.case-feature-body h3 { font-size: var(--fs-2xl); }
.case-points { display: grid; gap: 1rem; margin: 1.5rem 0; }
.case-points div { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; font-size: var(--fs-sm); }
.case-points dt { font-weight: 700; font-family: var(--font-display); color: var(--brand); margin: 0; }
.case-points dd { margin: 0; color: var(--text-2); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--brand-800); color: #fff; border-radius: var(--radius-xl); padding: clamp(2.5rem, 2rem + 2vw, 4rem); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: url("../images/grid-dark.svg"); background-size: 40px 40px; opacity: 0.25; }
.cta-band::after { content: ""; position: absolute; right: -8rem; top: -8rem; width: 24rem; height: 24rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 176, 0, 0.35), transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: var(--fs-3xl); margin-bottom: 0.75rem; }
.cta-band p { color: #d7e0f5; max-width: var(--heading-width, 50ch); }
.cta-band .btn-group { justify-content: flex-end; }
.cta-band.is-simple { grid-template-columns: 1fr; text-align: center; }
.cta-band.is-simple p { margin-inline: auto; }
.cta-band.is-simple .btn-group { justify-content: center; }
.cta-band.is-navy { background: var(--navy-900); }
.cta-steps { list-style: none; counter-reset: s; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.cta-steps li { counter-increment: s; display: flex; gap: 0.75rem; align-items: baseline; font-size: var(--fs-sm); color: #d7e0f5; margin: 0; }
.cta-steps li::before { content: counter(s); flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Contact strip */
.contact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.contact-item { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.contact-item .icon-wrap { width: 44px; height: 44px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.contact-item h3 { font-size: var(--fs-md); margin-bottom: 0.2rem; }
.contact-item p, .contact-item a { font-size: var(--fs-sm); }
.contact-item p { color: var(--text-2); margin: 0; }

/* --------------------------------------------------------------------------
   11. Product mock interfaces (illustrative, built with HTML/CSS)
   -------------------------------------------------------------------------- */
.mock-window {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  font-family: var(--font-body); color: var(--text); box-shadow: var(--shadow-md); font-size: 12px; line-height: 1.4;
}
.mock-titlebar { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.mock-titlebar span { font-weight: 600; font-size: 11px; color: var(--text-3); margin-left: 0.25rem; }
.mock-titlebar .mock-pill { margin-left: auto; }
.mock-pill { font-size: 10px; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--bg-muted); color: var(--text-2); }
.mock-pill.ok { background: rgba(27, 154, 90, 0.14); color: var(--green-500); }
.mock-pill.warn { background: var(--accent-soft); color: var(--amber-600); }
.mock-pill.bad { background: rgba(215, 54, 63, 0.12); color: var(--red-500); }
.mock-pill.info { background: var(--brand-soft); color: var(--brand); }
.mock-body { padding: 0.9rem; display: grid; gap: 0.75rem; }
.mock-body.with-side { grid-template-columns: 120px 1fr; }
.mock-side { border-right: 1px solid var(--border); padding-right: 0.75rem; display: grid; gap: 0.3rem; align-content: start; }
.mock-side i { display: block; height: 20px; border-radius: 5px; background: var(--bg-muted); }
.mock-side i.active { background: var(--brand-soft); border-left: 3px solid var(--brand); }
.mock-side b { display: block; font-size: 10px; font-weight: 700; color: var(--text-3); letter-spacing: 0.06em; margin: 0.3rem 0 0.1rem; }
.mock-main { display: grid; gap: 0.75rem; min-width: 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.mock-head b { font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.mock-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 0.5rem; }
.mock-kpi { padding: 0.55rem 0.65rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.mock-kpi small { display: block; font-size: 10px; color: var(--text-3); margin-bottom: 0.15rem; }
.mock-kpi b { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.mock-kpi em { font-style: normal; font-size: 10px; color: var(--green-500); margin-left: 0.25rem; }
.mock-kpi em.down { color: var(--red-500); }
.mock-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.mock-table th { text-align: left; font-weight: 600; color: var(--text-3); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--border); }
.mock-table td { padding: 0.4rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 0.25rem 0 0; border-bottom: 1px solid var(--border); }
.mock-bars i { flex: 1; display: block; background: var(--brand-soft-2); border-radius: 3px 3px 0 0; min-width: 6px; }
.mock-bars i.hi { background: var(--brand); }
.mock-bars i.acc { background: var(--amber-400); }
.mock-bars i.ok { background: var(--green-500); }
.mock-bars.is-stacked i { background: linear-gradient(to top, var(--brand) 0 var(--p, 50%), var(--brand-soft-2) var(--p, 50%) 100%); }
.mock-line { height: 90px; position: relative; border-bottom: 1px solid var(--border); }
.mock-line svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-axis { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-3); padding-top: 0.25rem; }
.mock-card { border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.7rem; background: var(--surface); }
.mock-card b { display: block; font-size: 11px; margin-bottom: 0.3rem; font-weight: 600; }
.mock-progress { height: 6px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; }
.mock-progress i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.mock-progress i.warn { background: var(--amber-400); }
.mock-progress i.bad { background: var(--red-500); }
.mock-progress i.ok { background: var(--green-500); }
.mock-row { display: flex; align-items: center; gap: 0.5rem; justify-content: space-between; font-size: 11px; }
.mock-row + .mock-row { margin-top: 0.35rem; }
.mock-row small { color: var(--text-3); font-size: 10px; }
.mock-ring { width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--brand) 0 var(--v, 72%), var(--bg-muted) var(--v, 72%) 100%); display: inline-grid; place-items: center; position: relative; }
.mock-ring::after { content: attr(data-v); width: 54px; height: 54px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 12px; }
.mock-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.mock-col { background: var(--bg-soft); border-radius: 8px; padding: 0.45rem; display: grid; gap: 0.4rem; align-content: start; }
.mock-col > b { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); display: flex; justify-content: space-between; }
.mock-col .mock-card { padding: 0.45rem 0.55rem; }
.mock-col .mock-card b { font-size: 10.5px; margin-bottom: 0.15rem; }
.mock-col .mock-card small { font-size: 9.5px; color: var(--text-3); }
.mock-steps { display: grid; gap: 0.35rem; }
.mock-step { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 0.5rem; padding: 0.45rem 0.55rem; border: 1px solid var(--border); border-radius: 8px; font-size: 11px; }
.mock-step i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); display: block; }
.mock-step.done i { background: var(--green-500); border-color: var(--green-500); }
.mock-step.now i { border-color: var(--brand); background: var(--brand-soft-2); }
.mock-step.done { color: var(--text-3); }
.mock-step.now { border-color: var(--brand); background: var(--brand-soft); }
.mock-grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.mock-thumb { height: 54px; border-radius: 6px; background: linear-gradient(135deg, var(--bg-muted), var(--border)); margin-bottom: 0.35rem; }
.mock-thumb.a { background: linear-gradient(135deg, #dbe5ff, #86a5ff); }
.mock-thumb.b { background: linear-gradient(135deg, #fff4d6, #f5b000); }
.mock-thumb.c { background: linear-gradient(135deg, #d8f3ee, #0e9f8f); }
.mock-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mock-calendar i { aspect-ratio: 1; border-radius: 4px; background: var(--bg-muted); display: grid; place-items: center; font-size: 9px; font-style: normal; color: var(--text-3); }
.mock-calendar i.p { background: rgba(27, 154, 90, 0.18); color: var(--green-500); }
.mock-calendar i.l { background: var(--accent-soft); color: var(--amber-600); }
.mock-calendar i.a { background: rgba(215, 54, 63, 0.12); color: var(--red-500); }
.mock-calendar i.h { background: var(--brand-soft); color: var(--brand); }
.mock-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft-2); display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--brand); }
.mock-tag { display: inline-block; font-size: 9.5px; padding: 0.05rem 0.4rem; border-radius: 4px; background: var(--bg-muted); color: var(--text-2); }
.mock-gantt { display: grid; gap: 0.3rem; }
.mock-gantt div { display: grid; grid-template-columns: 90px 1fr; gap: 0.5rem; align-items: center; font-size: 10.5px; }
.mock-gantt span { position: relative; height: 12px; background: var(--bg-muted); border-radius: 4px; }
.mock-gantt span i { position: absolute; top: 0; bottom: 0; left: var(--l, 0); width: var(--w, 30%); background: var(--brand); border-radius: 4px; display: block; }
.mock-gantt span i.acc { background: var(--amber-400); }
.mock-gantt span i.ok { background: var(--green-500); }
.mock-doc { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 0.5rem 0.6rem; font-size: 10.5px; display: flex; justify-content: space-between; gap: 0.5rem; }
.mock-list { display: grid; gap: 0.35rem; }
.mock-list div { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; }
.mock-list div span:last-child { margin-left: auto; }
.mock-note { font-size: var(--fs-xs); color: var(--text-3); margin-top: 0.75rem; text-align: center; }
.mock-mobile { width: 190px; border-radius: 22px; border: 6px solid #1a2238; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-lg); font-size: 10.5px; }
.mock-mobile .mock-body { padding: 0.65rem; }
.mock-mobile .mock-titlebar { justify-content: center; }
.mock-stage { position: relative; min-height: 380px; display: grid; place-items: center; padding: 0 3.5rem 2rem 0; }
.mock-stage .mock-window { width: 100%; max-width: 560px; }
.mock-stage .mock-mobile { position: absolute; right: 0; bottom: 0; }
.mock-stage.is-plain { min-height: 0; padding: 0; }

/* --------------------------------------------------------------------------
   12. Product page compositions
   -------------------------------------------------------------------------- */
.product-hero { padding: clamp(2.5rem, 2rem + 2vw, 4.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); position: relative; overflow: hidden; }
.product-hero .hero-bg::after { right: -20%; top: -10%; }
/*
 * Product pages: heading and visual sized down from the home hero. Overridden per site from
 * Theme & Branding → Website → Product pages (product.blade.php prints the variables).
 * The illustrative interface keeps its 560px design layout and is scaled with zoom
 * (--product-mock-zoom = visual width / 560), so its text never squeezes into narrow columns;
 * its height is capped so a tall dashboard cannot stretch the hero.
 */
.product-hero { --product-hero-h1: clamp(1.85rem, 1.35rem + 2vw, 2.85rem); --product-hero-visual: 480px; --product-hero-img-h: 420px; --product-mock-zoom: 0.86; }
.product-hero h1 { font-size: var(--product-hero-h1); max-width: var(--heading-width, 20ch); letter-spacing: -0.025em; }
.product-hero .mock-stage:not(.is-image) { zoom: var(--product-mock-zoom); }
.product-hero .mock-stage .mock-window { max-height: calc(var(--product-hero-img-h) / var(--product-mock-zoom)); }
.product-hero .product-hero-img { width: auto; max-width: min(100%, var(--product-hero-visual)); max-height: var(--product-hero-img-h); object-fit: contain; margin-inline: auto; display: block; }
/* Dashboard + phone (HRMS, ecommerce): the pair is scaled a little further so it takes the same room as a single interface, and the phone sits lower and further out so it covers less of the dashboard. */
.product-hero .mock-stage.has-phone:not(.is-plain) { zoom: var(--product-pair-zoom, 0.66); padding: 0 4.5rem 3rem 0; }
.product-hero .mock-stage.has-phone .mock-mobile { width: 170px; right: 0; bottom: 0; }
.product-hero.is-visual-left .hero-copy { order: 2; }
.product-hero.is-align-top .product-hero-grid { align-items: start; }
.product-hero.no-visual .product-hero-grid { grid-template-columns: minmax(0, 1fr); }
.product-hero.no-visual h1 { max-width: var(--heading-width, 26ch); }
.product-hero.no-visual .lead { max-width: var(--heading-width, 68ch); }
.product-hero .lead { max-width: var(--heading-width, 54ch); }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 2rem + 2vw, 4rem); align-items: center; position: relative; }
.product-hero .mock-window { box-shadow: var(--shadow-lg); }
.product-hero.is-split-dark { background: var(--dark-section-bg); color: var(--dark-section-text); }
.product-hero.is-split-dark h1 { color: #fff; }
.product-hero.is-split-dark .lead { color: var(--dark-section-muted); }
.product-hero.is-split-dark .breadcrumb a, .product-hero.is-split-dark .breadcrumb { color: var(--dark-section-muted); }
.product-hero.is-split-dark .breadcrumb [aria-current] { color: #fff; }
.product-hero.is-split-dark .eyebrow { color: var(--amber-400); }
.product-hero.is-split-dark .hero-bg::before { background-image: url("../images/grid-dark.svg"); }
.product-hero.is-soft { background: var(--bg-soft); }
.product-hero.is-center { text-align: center; }
.product-hero.is-center .product-hero-grid { grid-template-columns: 1fr; }
.product-hero.is-center h1, .product-hero.is-center .lead { margin-inline: auto; }
.product-hero.is-center .btn-group { justify-content: center; }
.product-hero.is-center .mock-stage { margin-top: 2.5rem; }
.product-hero.is-center .mock-stage .mock-window { max-width: 900px; }
.product-hero.is-center .product-hero-img { max-width: min(100%, calc(var(--product-hero-visual) * 1.6)); }
.product-hero .btn-group { margin-top: 1.5rem; }
.product-hero .hero-meta { margin-top: 1.5rem; }
.product-hero.is-split-dark .hero-meta { color: var(--dark-section-muted); }
.product-hero.is-split-dark .hero-meta .icon { color: var(--amber-400); }
.product-hero .hero-bg { background-image: none; }
.product-hero .hero-bg::before { background-image: url("../images/grid.svg"); }
html[data-theme="dark"] .product-hero .hero-bg::before { background-image: url("../images/grid-dark.svg"); }

.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.module { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.module .icon { color: var(--brand); width: 1.4rem; height: 1.4rem; margin-bottom: 0.75rem; }
.module h3 { font-size: var(--fs-md); margin-bottom: 0.3rem; }
.module p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 2rem; }
.module-list .module { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 1rem 0 0.5rem; background: transparent; }
.module-list .module .icon { margin: 0.1rem 0 0; }

.benefit-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 2rem + 2vw, 4rem); align-items: start; }
.benefit-band .sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.benefit-list { display: grid; gap: 1rem; }
.benefit { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.benefit .icon-wrap { width: 44px; height: 44px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.benefit h3 { font-size: var(--fs-md); margin-bottom: 0.25rem; }
.benefit p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }

.usecase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.usecase { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.usecase .badge { margin-bottom: 0.75rem; }
.usecase h3 { font-size: var(--fs-md); }
.usecase p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }

.audience { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.audience span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: var(--fs-sm); font-weight: 500; background: var(--surface); }
.audience .icon { color: var(--brand); }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-card { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); color: inherit; background: var(--surface); display: flex; flex-direction: column; gap: 0.35rem; transition: border-color var(--dur) ease, box-shadow var(--dur) ease; }
.related-card:hover { color: inherit; border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.related-card .badge { align-self: flex-start; }
.related-card h3 { font-size: var(--fs-md); margin: 0.4rem 0 0; }
.related-card p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.related-card .link-arrow { margin-top: auto; padding-top: 0.5rem; font-size: var(--fs-sm); }

.product-cta { border-radius: var(--radius-xl); padding: clamp(2rem, 1.5rem + 2vw, 3rem); background: var(--navy-900); color: #fff; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.product-cta::before { content: ""; position: absolute; inset: 0; background-image: url("../images/grid-dark.svg"); background-size: 40px 40px; opacity: 0.3; }
.product-cta > * { position: relative; }
.product-cta h2 { color: #fff; }
.product-cta p { color: #d7e0f5; }
.product-cta .btn-group { justify-content: flex-end; }
.product-cta.is-index { grid-template-columns: 1fr; }

/* Product directory (products.html) */
.product-dir { display: grid; gap: 3rem; }
.product-cat { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.product-cat-head { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.product-cat-head h2 { font-size: var(--fs-2xl); }
.product-cat-head p { font-size: var(--fs-sm); color: var(--text-2); }
.product-cat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.product-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); position: relative; transition: border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) var(--ease); }
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card .card-icon { margin-bottom: 0.5rem; }
.product-card h3 { font-size: var(--fs-lg); margin: 0; }
.product-card h3 a { color: var(--text); }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card h3 a:hover { color: var(--brand); }
.product-card p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.product-card .card-footer { padding-top: 0.75rem; z-index: 1; }
.product-card .card-footer .btn { position: relative; }

/* Compare table */
.compare .table th:first-child, .compare .table td:first-child { position: sticky; left: 0; background: var(--surface); }
.compare .table th:first-child { background: var(--surface-2); }
.compare .table td .icon { color: var(--green-500); }

/* --------------------------------------------------------------------------
   13. Service page compositions
   -------------------------------------------------------------------------- */
.service-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: clamp(2.5rem, 2rem + 2vw, 4.5rem) 0; position: relative; overflow: hidden; }
.service-hero h1 { max-width: var(--heading-width, 16ch); }
.service-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.service-visual { position: relative; }
.service-visual .mock-window { box-shadow: var(--shadow-lg); }
.deliverables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.deliverable { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-sm); }
.deliverable .icon { color: var(--brand); flex: none; margin-top: 0.15rem; }
.deliverable strong { display: block; font-weight: 600; }
.deliverable span { color: var(--text-2); }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.problem { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber-400); }
.problem h3 { font-size: var(--fs-md); margin-bottom: 0.3rem; }
.problem p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.tech-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-strip span { padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-sm); font-weight: 500; font-family: var(--font-mono); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.portfolio-item { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.portfolio-visual { aspect-ratio: 4 / 3; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 1.5rem; overflow: hidden; border-bottom: 1px solid var(--border); }
.portfolio-visual img { max-height: 100%; object-fit: contain; }
.portfolio-visual .mock-window { width: 100%; font-size: 10px; }
.portfolio-body { padding: 1.25rem 1.5rem 1.5rem; }
.portfolio-body h3 { font-size: var(--fs-lg); margin-bottom: 0.25rem; }
.portfolio-body p { font-size: var(--fs-sm); color: var(--text-2); margin: 0 0 0.75rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-btn { padding: 0.45rem 0.9rem; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.filter-btn:hover { border-color: var(--text-3); color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
html[data-theme="dark"] .filter-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); }
.is-filtered-out { display: none !important; }

/* Client / partner page */
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.client-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.client-card .logo-item { height: 110px; }
.client-card h3 { font-size: var(--fs-md); margin: 0; }
.client-card p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.client-card a.small { font-weight: 600; }

/* Career */
.job-empty { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem); border: 1px dashed var(--border-strong); border-radius: var(--radius-xl); text-align: center; background: var(--surface); }
.job-empty .icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-muted); color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.job-empty h3 { font-size: var(--fs-xl); }
.job-empty p { max-width: 52ch; margin-inline: auto; color: var(--text-2); }
.job-list { display: grid; gap: 1rem; }
.job-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.job-item h3 { font-size: var(--fs-lg); margin-bottom: 0.25rem; }
.job-item .meta { display: flex; gap: 1rem; font-size: var(--fs-sm); color: var(--text-3); flex-wrap: wrap; }

/* Support */
.support-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: start; }
.support-channel { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.support-channel .icon-wrap { width: 44px; height: 44px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.support-channel h3 { font-size: var(--fs-md); margin-bottom: 0.2rem; }
.support-channel p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.severity-table .table td:first-child { white-space: nowrap; }
.sev { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.4rem; vertical-align: middle; }
.sev-1 { background: var(--red-500); } .sev-2 { background: var(--amber-500); } .sev-3 { background: var(--brand); } .sev-4 { background: var(--text-3); }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
.map-placeholder { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-soft); min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; gap: 0.5rem; position: relative; overflow: hidden; }
.map-placeholder::before { content: ""; position: absolute; inset: 0; background-image: url("../images/grid.svg"); background-size: 32px 32px; opacity: 0.6; }
html[data-theme="dark"] .map-placeholder::before { background-image: url("../images/grid-dark.svg"); }
.map-placeholder > * { position: relative; }
.map-placeholder .icon { width: 2rem; height: 2rem; color: var(--brand); }
.map-placeholder p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }

/* About */
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.value-item { padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.value-item .icon { color: var(--brand); width: 1.5rem; height: 1.5rem; margin-bottom: 0.75rem; }
.value-item h3 { font-size: var(--fs-md); }
.value-item p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius-xl); }
.about-visual .mock-window { position: absolute; left: -1.5rem; bottom: -1.5rem; width: 60%; font-size: 11px; }
.quote-block { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-xl); background: var(--bg-soft); border: 1px solid var(--border); }
.quote-block blockquote { margin: 0; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.quote-block cite { display: block; margin-top: 1rem; font-style: normal; font-size: var(--fs-sm); color: var(--text-3); }

/* 404 */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--section-y) 0; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 10vw, 8rem); line-height: 1; letter-spacing: -0.04em; color: var(--brand-soft-2); }
.error-page h1 { font-size: var(--fs-3xl); }

/* Legal pages */
.legal .prose h2 { font-size: var(--fs-xl); }

/* Inline product-request bar on product pages */
.product-sticky-bar { position: sticky; top: var(--header-h); z-index: 60; background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.product-sticky-inner { display: flex; align-items: center; gap: 1rem; min-height: 54px; }
.product-sticky-inner strong { font-family: var(--font-display); font-size: var(--fs-sm); }
.product-sticky-inner nav { display: flex; gap: 0.25rem; margin-left: 1rem; }
.product-sticky-inner nav a { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); }
.product-sticky-inner nav a:hover { color: var(--text); background: var(--bg-muted); }
.product-sticky-inner .btn-group { margin-left: auto; }

/* Print */
@media print {
  .site-header, .site-footer .footer-top, .back-to-top, .nav-drawer, .search-overlay, .product-sticky-bar, .cta-band, .product-cta, .hero-bg, .page-hero-bg { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding-block: 1.5rem; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Responsive rules — desktop-first overrides on top of the fluid base.
   Breakpoints: 1200 / 1024 / 860 / 640 / 420
   ========================================================================== */

@media (max-width: 1200px) {
  .mega-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-top .footer-col:nth-child(4), .footer-top .footer-col:nth-child(5) { grid-column: auto; }
  .process { --cols: 3; }
  .process-step:nth-child(3n)::before { right: 0; }
}

@media (max-width: 1140px) {
  :root { --header-h: 64px; }

  /* Navigation collapses to the drawer */
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .hero-grid, .product-hero-grid, .page-hero-grid, .service-hero-grid, .split, .split-wide, .split-narrow, .benefit-band, .article-layout, .support-grid, .contact-grid, .cta-band, .product-cta, .case-feature, .product-feature, .product-feature.is-reverse { grid-template-columns: minmax(0, 1fr); }
  .product-feature.is-reverse .product-feature-visual { order: 0; }
  .split > .is-first { order: 0; }
  /* Product hero in one column: text first, the interface at a readable scale below it. */
  .product-hero.is-visual-left .hero-copy { order: 0; }
  .product-hero .mock-stage:not(.is-image), .product-hero .mock-stage.has-phone:not(.is-plain) { zoom: 1; }
  .product-hero .mock-stage .mock-window { max-height: var(--product-hero-img-h); }
  .hero h1 { max-width: var(--heading-width, 18ch); }
  .hero-visual { min-height: 420px; margin-top: 1rem; }
  .cta-band .btn-group, .product-cta .btn-group { justify-content: flex-start; }
  .article-aside, .benefit-band .sticky, .product-cat-head, .sticky-aside { position: static; }
  .product-cat { grid-template-columns: 1fr; gap: 1rem; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .industry-grid, .module-grid, .related-grid, .problem-grid, .portfolio-grid, .client-grid, .values-grid, .contact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row p { grid-column: 2; }
  .service-row .link-arrow { grid-column: 2; }
  .case-feature-visual { min-height: 280px; }
  .product-sticky-inner nav { display: none; }
  .brand-sub { display: none; }
}

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .hero-visual { min-height: 0; display: grid; gap: 1rem; }
  .hero-visual .mock-window { position: static; width: 100%; }
  .hero-visual .mw-side, .hero-visual .mw-bottom { display: none; }
  .hero-caption { position: static; margin-top: 0.75rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .feature-list.is-2col { grid-template-columns: minmax(0, 1fr); }
  .product-list-compact, .product-cat-list, .usecase-grid, .deliverables, .module-list { grid-template-columns: minmax(0, 1fr); }
  .process { --cols: 1; gap: 1.5rem; }
  .process-step::before { right: 0; }
  .mock-stage .mock-mobile { display: none; }
  .about-visual .mock-window { position: static; width: 100%; margin-top: 1rem; }
  .summary-list div { grid-template-columns: 1fr; gap: 0.1rem; }
  .job-item { grid-template-columns: minmax(0, 1fr); }
  .table { min-width: 520px; }
  .hero { padding-top: 2.5rem; }
  .product-hero.is-center .mock-stage { margin-top: 1.5rem; }
  .product-hero .mock-stage.has-phone:not(.is-plain) { padding: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 1rem; }
  .grid-4, .why-grid, .industry-grid, .module-grid, .related-grid, .problem-grid, .portfolio-grid, .client-grid, .values-grid, .contact-strip { grid-template-columns: minmax(0, 1fr); }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .btn-group .btn { flex: 1 1 auto; }
  .hero .btn-group .btn, .product-hero .btn-group .btn { width: 100%; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .section-head-row .section-head { flex: none; width: 100%; }
  .mock-body.with-side { grid-template-columns: minmax(0, 1fr); }
  .mock-side { display: none; }
  .mock-kanban { grid-template-columns: minmax(0, 1fr); }
  .mock-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .case-points div { grid-template-columns: 1fr; gap: 0.2rem; }
  .product-sticky-inner strong { display: none; }
  .product-sticky-inner .btn-group { margin-left: 0; width: 100%; }
  .product-sticky-inner .btn { flex: 1; }
  .numbered > li { grid-template-columns: 2rem 1fr; gap: 0.75rem; }
  .numbered > li::before { width: 2rem; height: 2rem; font-size: var(--fs-xs); }
  .search-panel { margin-top: 4vh; width: calc(100vw - 2rem); }
  .back-to-top { right: 0.9rem; }
  .brand img { height: 36px; }
  .error-code { font-size: 5rem; }
}

@media (max-width: 420px) {
  .logo-strip { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .logo-item { height: 72px; padding: 0.75rem; }
  .logo-item img { max-height: 44px; }
  .choice-group { flex-direction: column; gap: 0.6rem; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .btn-lg { padding-inline: 1.1rem; }
}

/* Large monitors: slightly wider rhythm */
@media (min-width: 1600px) {
  :root { --section-y: 7rem; }
}

/* Coarse pointers: enlarge touch targets */
@media (pointer: coarse) {
  .nav-link, .drawer-sub a, .footer-col a { padding-block: 0.7rem; }
  .filter-btn { min-height: 44px; }
}

/* Guard against min-content expansion from mock tables inside grids */
.grid > *, .split > *, .hero-grid > *, .product-hero-grid > *, .page-hero-grid > *, .service-hero-grid > *, .product-feature > *, .case-feature > *, .benefit-band > *, .article-layout > *, .support-grid > *, .contact-grid > *, .mock-body > *, .mock-main > * { min-width: 0; }
.mock-window { min-width: 0; max-width: 100%; }
.mock-table { display: block; overflow-x: auto; }
.mock-table thead, .mock-table tbody { display: table; width: 100%; }
@media (max-width: 640px) { .mock-table td, .mock-table th { white-space: normal; } .hero-bg::after { display: none; } }

/* ==========================================================================
   Motion — section reveals, staggered cards, micro-interactions.
   Content is always visible without JS (`html.js` gates the hidden state)
   and when the user prefers reduced motion.
   ========================================================================== */

/* Reveal: only hidden once JS has confirmed it can observe */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="left"] { transform: translateX(-24px); }
html.js [data-reveal="right"] { transform: translateX(24px); }
html.js [data-reveal="scale"] { transform: translateY(12px) scale(0.985); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Staggered groups: each direct child is revealed with a delay set by JS */
html.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms var(--ease-out), transform 640ms var(--ease-out);
  transition-delay: var(--stagger, 0ms);
}
html.js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }

/* Hero entrance (runs once on load, no observer needed) */
html.js .hero-visual .mock-window { opacity: 0; transform: translateY(20px); animation: mockIn 800ms var(--ease-out) forwards; }
html.js .hero-visual .mw-main { animation-delay: 150ms; }
html.js .hero-visual .mw-side { animation-delay: 380ms; }
html.js .hero-visual .mw-bottom { animation-delay: 560ms; }
html.js .hero-copy > * { opacity: 0; transform: translateY(14px); animation: copyIn 640ms var(--ease-out) forwards; }
html.js .hero-copy > *:nth-child(1) { animation-delay: 40ms; }
html.js .hero-copy > *:nth-child(2) { animation-delay: 120ms; }
html.js .hero-copy > *:nth-child(3) { animation-delay: 200ms; }
html.js .hero-copy > *:nth-child(4) { animation-delay: 280ms; }
html.js .hero-copy > *:nth-child(5) { animation-delay: 360ms; }
@keyframes mockIn { to { opacity: 1; transform: none; } }
@keyframes copyIn { to { opacity: 1; transform: none; } }

/* Header on scroll already transitions via styles.css; drawer, search use transforms */
.search-overlay.is-open .search-panel { animation: panelIn 220ms var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px) scale(0.985); } to { opacity: 1; transform: none; } }

/* Mock chart bars grow when revealed */
html.js .mock-bars i { transform-origin: bottom; transform: scaleY(0.2); transition: transform 700ms var(--ease-out); }
html.js .is-visible .mock-bars i, html.js .hero-visual .mock-bars i, html.js .mock-bars.is-static i { transform: none; }
html.js .mock-bars i:nth-child(2) { transition-delay: 60ms; }
html.js .mock-bars i:nth-child(3) { transition-delay: 120ms; }
html.js .mock-bars i:nth-child(4) { transition-delay: 180ms; }
html.js .mock-bars i:nth-child(5) { transition-delay: 240ms; }
html.js .mock-bars i:nth-child(6) { transition-delay: 300ms; }
html.js .mock-bars i:nth-child(7) { transition-delay: 360ms; }
html.js .mock-bars i:nth-child(8) { transition-delay: 420ms; }

/* Form feedback */
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { animation: shake 320ms var(--ease); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.form-success.is-visible { animation: successIn 480ms var(--ease-out); }
@keyframes successIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.success-icon .icon { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 600ms 200ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Buttons: tiny lift */
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* Mega menu link hover underline for product names */
.mega-link strong { position: relative; }

/* Reduced motion: everything visible, no transforms, no transitions */
/* Reduced motion (html.reduced-motion: set by js/site.js when animations are turned off in the theme, or when the
   theme is set to follow the visitor's operating-system preference): everything visible, no transforms, no transitions */
html.reduced-motion { scroll-behavior: auto; }
html.reduced-motion *, html.reduced-motion *::before, html.reduced-motion *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
html.reduced-motion [data-reveal], html.reduced-motion [data-reveal-group] > *, html.reduced-motion .hero-visual .mock-window, html.reduced-motion .hero-copy > * { opacity: 1 !important; transform: none !important; }
html.reduced-motion .mock-bars i { transform: none !important; }
html.reduced-motion .success-icon .icon { stroke-dashoffset: 0; }

/* Reduced-motion toggle class (set by JS when the OS prefers it) also disables transforms */
html.reduced-motion [data-reveal], html.reduced-motion [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   Renderer additions: header pieces, theme-driven colours, section frame,
   logo slider, tabs, team, map, product directory tweaks, builder preview.
   ========================================================================== */
.site-header { background: var(--header-solid); }
.nav-link { color: var(--nav); }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-active { color: var(--nav-hover); }
.brand-logo { height: 42px; width: auto; }
.topbar { background: var(--navy-900); color: #d7e0f5; font-size: var(--fs-sm); }
.topbar-inner { display: flex; gap: 1rem; align-items: center; justify-content: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.lang-switch { display: inline-flex; gap: 0.25rem; margin-right: 0.25rem; }
.lang-switch a { padding: 0.35rem 0.5rem; border-radius: var(--radius-sm); font-size: var(--fs-xs); font-weight: 700; color: var(--text-3); }
.lang-switch a.is-active { background: var(--bg-muted); color: var(--text); }
.mega-group { list-style: none; margin: 0; padding: 0; }
.mega-group li { margin: 0; }
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-col a, .footer-contact li, .footer-bottom a { color: color-mix(in srgb, var(--footer-text) 85%, transparent); }
.footer-brand p { color: color-mix(in srgb, var(--footer-text) 80%, transparent); }
.footer-bottom { color: color-mix(in srgb, var(--footer-text) 70%, transparent); }

/* Section frame from SiteView::sectionAttrs (design background, colour overrides) */
.sec { position: relative; }
.sec.has-bg { background-color: var(--c-bg-override, transparent); }
.sec.has-image { color: #fff; --text: #fff; --text-2: #e8edf8; --text-3: #c7d0e3; }
.sec.has-image h1, .sec.has-image h2, .sec.has-image h3 { color: #fff; }
.sec.align-center { text-align: center; }
.sec.align-center .section-head, .sec.align-center .section-head-row { margin-inline: auto; justify-content: center; text-align: center; }
.sec.align-right { text-align: right; }
.hide-mobile, .hide-tablet, .hide-desktop { display: revert; }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) and (max-width: 1139px) { .hide-tablet { display: none !important; } }
@media (min-width: 1140px) { .hide-desktop { display: none !important; } }
.anchor-target { position: relative; top: calc(-1 * var(--header-h) - 1rem); display: block; height: 0; visibility: hidden; }
.sec-unsupported { padding: 1rem 0; }
.sec-unsupported p { border: 1px dashed var(--border-strong); padding: 0.75rem 1rem; font-size: var(--fs-sm); color: var(--text-3); border-radius: var(--radius); }
.anim-none [data-reveal], .anim-none [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
html.js .anim-fade [data-reveal] { transform: none; }
html.js .anim-zoom [data-reveal] { transform: scale(0.97); }

/* Section modifiers */
.section-head-row.is-plain { display: block; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow::before { display: none; }
.split.is-single { grid-template-columns: minmax(0, 1fr); }
.split.is-wide { grid-template-columns: 0.7fr 1.3fr; }
.about-img { border-radius: var(--radius-xl); }
.about-visual img { border-radius: var(--radius-xl); background: var(--surface); }
.hero-visual.is-image { min-height: 0; }
.hero-visual.is-image img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.hero-caption { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--text-3); text-align: center; }
.page-hero.has-photo { background-image: linear-gradient(rgba(11, 23, 54, 0.78), rgba(11, 23, 54, 0.78)), var(--hero-photo); background-size: cover; background-position: center; color: #fff; }
.page-hero.has-photo h1, .page-hero.has-photo .lead, .page-hero.has-photo .breadcrumb a, .page-hero.has-photo .breadcrumb { color: #fff; }
.page-hero-img, .product-hero-img, .service-hero-img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; }
.mock-stage.is-centered { display: flex; justify-content: center; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
.card-badge { position: absolute; top: 1.25rem; right: 1.25rem; }
.benefit-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tech-strip.is-dark span { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); color: #fff; }
.industry-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.industry-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-cat-list.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card.is-compact { padding: 1.1rem 1.25rem; }
.fact-list { display: grid; gap: 0.5rem; margin: 1.25rem 0 0; font-size: var(--fs-sm); }
.fact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--border); }
.fact-list dt { color: var(--text-3); margin: 0; }
.fact-list dd { margin: 0; color: var(--text); font-weight: 500; }
.prose-wide { max-width: none; }
.prose-wide h2 { margin-top: 1.5rem; }
.prose-cards h2 { font-size: var(--fs-xl); margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.prose-cards h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
.prose-cards ul, .prose-cards ol { padding-left: 1.2em; }
.prose-cards li { margin-bottom: 0.5rem; }
.prose-cards > p:first-child { font-size: var(--fs-lg); color: var(--text-2); }
.article-media.is-single { border-radius: var(--radius-lg); margin-bottom: 2rem; max-width: 820px; aspect-ratio: auto; }
.article-media.is-single img { width: 100%; height: auto; }
.case-feature-visual.is-media { padding: 0; min-height: 260px; }
.case-feature-visual.is-media img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.case-feature-visual.is-media .art-cover { position: relative; min-height: 260px; border-radius: 0; }
.case-feature-visual > img { position: relative; max-width: 100%; border-radius: var(--radius-lg); }
.portfolio-visual img { max-width: 100%; max-height: 100%; }
.record-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.record-gallery img { border-radius: var(--radius); width: 100%; }
.product-links { padding-left: 1.1em; margin: 0; color: var(--dark-section-muted); }
.logos-caption { text-align: center; margin-bottom: 1.25rem; }
.logos-sec .section-head-row { margin-bottom: 1.25rem; }
.logos-sec.is-gray .logo-item img { filter: grayscale(1); opacity: 0.8; transition: filter var(--dur) ease, opacity var(--dur) ease; }
.logos-sec.is-gray .logo-item:hover img { filter: none; opacity: 1; }
.logo-name { font-family: var(--font-display); font-weight: 700; color: var(--text-2); }
.form-off { padding: 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); font-size: var(--fs-sm); }
.icon-yes { color: var(--green-500); }
.table.is-striped tbody tr:nth-child(even) td { background: var(--surface-2); }
.severity-table { min-width: 0; font-size: var(--fs-xs); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }
.team-card { text-align: center; }
.team-photo { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-block cite, .quote-block figcaption { margin-top: 1rem; font-style: normal; font-size: var(--fs-sm); }
.after-grid { margin-top: 1.5rem; }

/* Logo slider (continuous marquee; pauses on hover / focus; static when reduced motion) */
.logo-slider { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 1rem; width: max-content; animation: logo-marquee var(--marquee-duration, 40s) linear infinite; }
.logo-track .logo-item { flex: 0 0 auto; width: 180px; }
.logo-slider:hover .logo-track, .logo-slider:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html.reduced-motion .logo-slider .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } html.reduced-motion .logo-slider .logo-item[aria-hidden="true"] { display: none; } html.reduced-motion .logo-slider { mask-image: none; -webkit-mask-image: none; }

/* Tabs */
.tab-list { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.tab-btn { padding: 0.65rem 1rem; border: 0; background: none; font-family: var(--font-display); font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btn[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

/* Builder preview selection outline (preview-bridge.js) */
[data-section-id].is-selected { outline: 3px solid var(--brand); outline-offset: -3px; }

@media (max-width: 1140px) {
  .split.is-wide { grid-template-columns: 1fr; }
  .industry-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-cat-list.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-switch { display: none; }
}
@media (max-width: 860px) {
  .benefit-list.is-grid, .product-cat-list.is-3, .industry-grid.cols-2, .industry-grid.cols-4 { grid-template-columns: 1fr; }
  .record-gallery { grid-template-columns: 1fr; }
  .logo-track .logo-item { width: 150px; }
}

/* Fixes after preview review */
[hidden] { display: none !important; }
.page-hero.is-dark h2, .page-hero.is-dark h3, .page-hero.is-dark .cta-steps li { color: #fff; }
.page-hero.is-dark .cta-steps li { color: #d7e0f5; }
.page-hero.is-dark .notice, .page-hero.is-dark .notice strong { color: #0f1a33; }
html[data-theme="dark"] .page-hero.is-dark .notice { color: #0f1a33; }
.form-note.is-error { color: var(--red-500); }
.form-note.is-ok { color: var(--green-500); }

/* ---- Section rhythm: renderer sections carry .sec (from sectionAttrs), the prototype used .section ---- */
.sec { padding-block: var(--section-y); }
.sec.section-tight { padding-block: calc(var(--section-y) * 0.55); }
.sec.hero, .sec.page-hero, .sec.product-hero, .sec.service-hero { padding-block: 0; }
.sec.hero { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.sec.page-hero { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.sec.product-hero { padding: clamp(2.5rem, 2rem + 2vw, 4.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); }
.sec.service-hero { padding: clamp(2.5rem, 2rem + 2vw, 4.5rem) 0; }
.sec.cta-sec { padding-block: calc(var(--section-y) * 0.5); }
.sec.logos-sec { padding-block: calc(var(--section-y) * 0.6); }
.sec .section-head-row, .sec .section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.sec .section-head-row .section-head { margin-bottom: 0; }
.product-feature + .grid, .grid + .product-feature { margin-top: 1.5rem; }

/* ---- Logo carousel: 6–7 logos visible, slides continuously, arrows step, no tiles ---- */
.logo-carousel { position: relative; padding: 0 3rem; }
.logo-carousel .logo-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-carousel .logo-track { display: flex; align-items: center; gap: 0; width: max-content; will-change: transform; animation: none; }
.logo-carousel .logo-item { flex: 0 0 var(--logo-w, 176px); width: var(--logo-w, 176px); height: 80px; padding: 0 1.25rem; background: transparent; border: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; }
.logo-carousel .logo-item img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
html[data-theme="dark"] .logo-carousel .logo-item { background: transparent; }
html[data-theme="dark"] .logo-carousel .logo-item img { background: #fff; border-radius: 8px; padding: 6px; }
.logo-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 2; transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.logo-nav:hover { color: var(--brand); border-color: var(--brand); }
.logo-nav.is-prev { left: 0; } .logo-nav.is-next { right: 0; }
@media (max-width: 640px) { .logo-carousel { padding: 0 2.25rem; } .logo-carousel .logo-item { --logo-w: 140px; height: 64px; } .logo-nav { width: 34px; height: 34px; } }

/* ---- Reveal: a clearer rise-in while scrolling ---- */
html.js:not(.reduced-motion) [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out); }
html.js:not(.reduced-motion) [data-reveal="right"] { transform: translateX(40px); }
html.js:not(.reduced-motion) [data-reveal="left"] { transform: translateX(-40px); }
html.js:not(.reduced-motion) [data-reveal="scale"] { transform: translateY(24px) scale(0.97); }
html.js:not(.reduced-motion) [data-reveal].is-visible { opacity: 1; transform: none; }
html.js:not(.reduced-motion) [data-reveal-group] > * { opacity: 0; transform: translateY(30px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
html.js:not(.reduced-motion) [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
html.reduced-motion [data-reveal], html.reduced-motion [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   Intro layouts — text alignment / width and an optional column on the right
   (image, illustrative interface or the buttons). See Site::intro().
   ========================================================================== */
.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 2rem + 2vw, 4rem); align-items: center; }
.intro.has-side { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.intro.has-side.side-buttons { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }
.intro-copy { max-width: var(--heading-width, 760px); min-width: 0; }
.intro.is-full .intro-copy, .intro.has-side .intro-copy { max-width: none; }
.intro.is-center .intro-copy { margin-inline: auto; text-align: center; }
.intro.is-center .intro-copy .breadcrumb, .intro.is-center .btn-group, .intro.is-center .product-list-compact a { justify-content: center; }
.intro.is-center .intro-copy .check-list { display: inline-grid; text-align: left; }
.intro.is-center .intro-notice { margin-inline: auto; }
.intro.is-right .intro-copy { margin-left: auto; text-align: right; }
.intro.is-right .intro-copy .breadcrumb, .intro.is-right .btn-group { justify-content: flex-end; }
.intro-actions:empty { display: none; }
.intro-actions .btn-group { margin-top: 1.5rem; }
.intro-notice { margin-top: 1.5rem; max-width: 720px; }
.intro-side { display: flex; justify-content: flex-end; align-items: center; min-width: 0; }
.intro-side.is-image img { max-width: 100%; width: 100%; height: auto; border-radius: var(--radius-xl); object-fit: cover; }
.intro-side.is-mock { font-size: 11px; }
.intro-side.is-mock .mock-window { width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); }
.intro-side.is-mock .hero-visual { width: 100%; min-height: 340px; }
.intro-side.is-buttons .btn-group { flex-direction: column; align-items: stretch; width: min(100%, 280px); margin: 0; }
.intro-side.is-buttons .btn { justify-content: center; }
.page-hero .intro-copy h1 { max-width: none; }
.page-hero .intro:not(.is-full):not(.has-side) .intro-copy h1 { max-width: var(--heading-width, 22ch); }
.page-hero .intro.is-center .intro-copy h1, .page-hero .intro.is-center .intro-copy .lead { margin-inline: auto; }
.page-hero .intro.is-full .intro-copy .lead { max-width: none; }
.page-hero .intro.has-side .intro-copy .lead { max-width: none; }
.page-hero .intro-side.is-image img { max-height: 380px; width: auto; }
.product-feature.intro .intro-copy { max-width: none; }
.product-list-compact.is-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intro-plain .intro-copy h3 { font-size: var(--fs-2xl); }
.intro-stacked { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.intro-stacked.is-center .intro-copy { max-width: var(--heading-width, 760px); }
@media (max-width: 960px) {
  .intro.has-side, .intro.has-side.side-buttons { grid-template-columns: minmax(0, 1fr); }
  .intro-side { justify-content: flex-start; }
  .intro.is-center .intro-side { justify-content: center; }
  .intro-side.is-buttons .btn-group { flex-direction: row; width: auto; }
  .product-list-compact.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .product-list-compact.is-wide { grid-template-columns: minmax(0, 1fr); } }

/* FAQ — stacked layout: questions in one or two full-width columns */
.faq-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(2rem, 2rem + 2vw, 4rem); align-items: start; }
.faq-columns.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-columns .faq-group { margin-bottom: 1.5rem; }
.faq-columns .faq-group .eyebrow { margin-bottom: 0.5rem; }
.faq-columns .faq .faq-body { max-width: none; }
@media (max-width: 960px) { .faq-columns.cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* Step cards (timeline layout "cards") — numbered, connected cards */
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 1rem; }
.step-card { position: relative; margin: 0; padding: 1.5rem 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.step-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--amber-500, #e39a00)); opacity: 0.9; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.step-card-num { position: absolute; right: 1rem; top: 0.75rem; font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -0.04em; color: var(--brand); opacity: 0.1; }
.step-card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step-card h3 { font-size: var(--fs-md); margin-bottom: 0.4rem; }
.step-card p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.step-card-meta { display: inline-block; margin-top: 0.75rem; font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.section-dark .step-card { background: rgba(255,255,255,0.04); border-color: var(--dark-section-border); }
.section-dark .step-card h3 { color: #fff; }
.section-dark .step-card p { color: var(--dark-section-muted); }
.section-dark .step-card-icon { background: rgba(255,255,255,0.1); color: var(--amber-400); }
.section-dark .step-card-num { color: #fff; opacity: 0.12; }
@media (max-width: 1100px) { .step-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .step-cards { grid-template-columns: minmax(0, 1fr); } }

/* Fact tiles — icon, accent bar, hover lift; the numbers count up (js/site.js) */
.fact-tiles.is-animated .fact-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.25rem; padding: 1.5rem 1.5rem 1.4rem; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.fact-tiles.is-animated .fact-tile::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--brand), var(--amber-500, #e39a00)); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out) 300ms; }
.fact-tiles.is-animated.is-visible .fact-tile::after { transform: scaleX(1); }
.fact-tiles.is-animated .fact-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.fact-tiles .fact-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.6rem; }
.fact-tiles .fact-k { font-variant-numeric: tabular-nums; }
.section-dark .fact-tile { background: rgba(255,255,255,0.04); border-color: var(--dark-section-border); }
.section-dark .fact-tile .fact-k { color: #fff; }
.section-dark .fact-tile .fact-v { color: var(--dark-section-muted); }
.section-dark .fact-icon { background: rgba(255,255,255,0.1); color: var(--amber-400); }

/* Capability chips (cards layout "tags") */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.85rem; }
.tech-chip { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.tech-chip:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.tech-chip-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.tech-chip-body { display: flex; flex-direction: column; min-width: 0; }
.tech-chip-body strong { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.tech-chip-body small { font-size: var(--fs-xs); color: var(--text-3); }
.tech-grid.is-dark .tech-chip { background: rgba(255,255,255,0.05); border-color: var(--dark-section-border); backdrop-filter: blur(4px); }
.tech-grid.is-dark .tech-chip:hover { border-color: var(--amber-400); background: rgba(255,255,255,0.08); }
.tech-grid.is-dark .tech-chip-icon { background: rgba(255,255,255,0.1); color: var(--amber-400); }
.tech-grid.is-dark .tech-chip-body strong { color: #fff; }
.tech-grid.is-dark .tech-chip-body small { color: var(--dark-section-muted); }

/* Reveal timing: a short pause after an element scrolls into view, so sections "arrive" rather than pop */
html.js:not(.reduced-motion) [data-reveal].is-visible { transition-delay: var(--reveal-delay, 0ms); }

/* Service desk (services layout "desk") — two columns of title + lead + arrow, one highlighted card */
.desk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 2rem + 2vw, 4rem); }
.desk-item { display: block; padding: 1.4rem 0; border-bottom: 1px solid var(--border); color: inherit; }
.desk-item:hover { color: inherit; }
.desk-head { display: flex; align-items: center; gap: 0.85rem; }
.desk-head .icon-wrap { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.desk-item h3 { font-size: var(--fs-lg); margin: 0; flex: 1; transition: color var(--dur-fast) ease; }
.desk-item:hover h3 { color: var(--brand); }
.desk-item p { margin: 0.6rem 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.desk-arrow { color: var(--text-3); transition: transform var(--dur) var(--ease), color var(--dur-fast) ease; }
.desk-item:hover .desk-arrow { transform: translateX(4px); color: var(--brand); }
.desk-item.is-highlight { position: relative; margin: 0.9rem 0; padding: 1.5rem 3.5rem 1.5rem 1.5rem; border: 0; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: #fff; box-shadow: var(--shadow-md); }
.desk-item.is-highlight h3, .desk-item.is-highlight:hover h3 { color: #fff; }
.desk-item.is-highlight p { color: rgba(255,255,255,0.82); }
.desk-item.is-highlight .desk-arrow { position: absolute; right: 1.25rem; top: 1.5rem; color: var(--amber-400); }
.desk-label { display: inline-block; margin-bottom: 0.6rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(255,255,255,0.14); color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.section-dark .desk-item { border-color: var(--dark-section-border); }
.section-dark .desk-item h3 { color: #fff; }
.section-dark .desk-item p { color: var(--dark-section-muted); }
@media (max-width: 760px) { .desk-grid { grid-template-columns: minmax(0, 1fr); } }

/* Value points (cards layout "strip") — accent line, title, one sentence, no borders */
.value-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.value-strip.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.value-strip.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-point { position: relative; padding-top: 1rem; }
.value-point::before { content: ""; position: absolute; left: 0; top: 0; width: 2.25rem; height: 3px; border-radius: 3px; background: var(--brand); }
.value-point-icon { display: inline-flex; color: var(--brand); margin-bottom: 0.5rem; }
.value-point h3 { font-size: var(--fs-md); margin-bottom: 0.35rem; }
.value-point p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.section-dark .value-point::before { background: var(--amber-400); }
.section-dark .value-point h3 { color: #fff; }
.section-dark .value-point p { color: var(--dark-section-muted); }
@media (max-width: 960px) { .value-strip, .value-strip.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .value-strip, .value-strip.cols-2, .value-strip.cols-3 { grid-template-columns: minmax(0, 1fr); } }

/* Sector table (logos layout "sectors") — organizations grouped by sector with counts */
.sector-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.sector-col { padding: 1.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sector-col:nth-child(3n) { border-right: 0; }
.sector-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.sector-head .eyebrow { margin: 0; }
.sector-count { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: var(--fs-md); }
.sector-col ul { list-style: none; margin: 0; padding: 0; }
.sector-col li { padding: 0.5rem 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text); }
.sector-col li a { color: inherit; }
.sector-col li a:hover { color: var(--brand); }
@media (max-width: 960px) { .sector-table { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sector-col:nth-child(3n) { border-right: 1px solid var(--border); } .sector-col:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) { .sector-table { grid-template-columns: minmax(0, 1fr); } .sector-col, .sector-col:nth-child(2n) { border-right: 0; } }

/* Header refresh — no filled background on the active / hovered item; a thin brand-coloured
   underline slides in instead, the actions sit behind a hairline divider, the CTA is a pill. */
.site-header { border-bottom: 1px solid var(--header-border, var(--border)); }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(15, 26, 51, 0.07); }
.nav-list { gap: 0.1rem; }
.nav-link { position: relative; padding: 0.6rem 0.85rem; font-weight: 500; font-size: 0.94rem; letter-spacing: 0.005em; border-radius: 0; }
.nav-link::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-active { background: transparent; color: var(--text); }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--brand); font-weight: 600; }
.nav-link.is-active::after { background: var(--brand); }
.nav-link[aria-expanded="true"] { color: var(--brand); }
.nav-link .icon { opacity: 0.55; }
.header-actions { margin-left: var(--space-3); padding-left: var(--space-3); border-left: 1px solid var(--border); gap: 0.25rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.header-cta { margin-left: 0.5rem; }
.header-cta .btn { border-radius: 999px; padding-inline: 1.15rem; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 28%, transparent); }
.header-cta .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 32%, transparent); }
.brand img, .brand-logo { height: 40px; }
html[data-theme="dark"] .site-header { border-bottom-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .header-actions { border-left-color: rgba(255,255,255,0.1); }
html[data-theme="dark"] .nav-link.is-active, html[data-theme="dark"] .nav-link[aria-expanded="true"] { color: #fff; }
html[data-theme="dark"] .nav-link.is-active::after { background: var(--amber-400); }
@media (max-width: 1140px) { .header-actions { border-left: 0; padding-left: 0; } }

/* --------------------------------------------------------------------------
   Product pricing plans (product.blade.php #pricing)
   -------------------------------------------------------------------------- */
#use-cases + .pricing-sec { border-top: 1px solid var(--border); }
.pricing-grid { display: grid; gap: 1.25rem; align-items: stretch; grid-template-columns: repeat(var(--pricing-cols, 3), minmax(0, 1fr)); }
.pricing-cols-1 { --pricing-cols: 1; max-width: 420px; margin-inline: auto; }
.pricing-cols-2 { --pricing-cols: 2; max-width: 860px; margin-inline: auto; }
.pricing-cols-3 { --pricing-cols: 3; }
.pricing-cols-4 { --pricing-cols: 4; }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-md); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pricing-card.is-highlighted { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); background: linear-gradient(180deg, var(--brand-soft), transparent 9rem), var(--surface); }
.pricing-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 0.3rem 0.85rem; border-radius: var(--radius-pill); background: var(--brand); color: var(--c-on-primary, #fff); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pricing-card:not(.is-highlighted) .pricing-badge { background: var(--accent-soft); color: var(--amber-600); }
.pricing-name { font-size: var(--fs-xl); margin: 0 0 0.35rem; }
.pricing-desc { font-size: var(--fs-sm); color: var(--text-2); margin: 0 0 1.1rem; min-height: 2.8em; }
.pricing-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1.25rem; }
.pricing-price strong { font-family: var(--font-heading); font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1.1; color: var(--text); letter-spacing: -0.02em; }
.pricing-price span { font-size: var(--fs-sm); color: var(--text-3); }
.pricing-list-title { margin: 0.25rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.pricing-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pricing-features li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-size: var(--fs-sm); color: var(--text-2); }
.pricing-features .icon { margin-top: 0.15rem; padding: 2px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); box-sizing: content-box; }
.pricing-features li.is-excluded { color: var(--text-3); }
.pricing-features li.is-excluded > span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 50%, transparent); }
.pricing-features li.is-excluded .icon { color: var(--text-3); background: var(--bg-soft); }
.pricing-note { margin: 1.75rem auto 0; max-width: 60ch; text-align: center; font-size: var(--fs-sm); color: var(--text-3); }
@media (max-width: 1140px) { .pricing-cols-4 { --pricing-cols: 2; } }
@media (max-width: 860px) { .pricing-cols-3 { --pricing-cols: 2; } }
@media (max-width: 640px) { .pricing-grid { --pricing-cols: 1 !important; max-width: 460px; margin-inline: auto; } .pricing-card.is-highlighted { order: -1; } }
html.reduced-motion .pricing-card:hover, .anim-none .pricing-card:hover { transform: none; }

/* --------------------------------------------------------------------------
   Team page groups and gallery (sections/team.blade.php, sections/gallery.blade.php)
   -------------------------------------------------------------------------- */
.team-group-title { font-size: var(--fs-lg); margin: 2.5rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.team-group-title:first-of-type { margin-top: 0; }
.team-grid + .team-group-title { margin-top: 2.75rem; }
.team-card .team-photo { width: 104px; height: 104px; }
.team-bio { font-size: var(--fs-sm); color: var(--text-3); margin: 0.5rem 0 0.75rem; }
.filter-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; margin-left: 0.3rem; padding: 0 0.35rem; border-radius: var(--radius-pill); background: var(--bg-soft); color: var(--text-3); font-size: var(--fs-xs); }
.filter-btn[aria-pressed="true"] .filter-count { background: rgba(255, 255, 255, 0.18); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery-item { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-soft); cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; }
.gallery-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover .gallery-open img { transform: scale(1.04); }
.gallery-open:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.gallery-item figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.85rem 1rem; font-size: var(--fs-sm); }
.gallery-item figcaption strong { color: var(--text); font-weight: 600; }
.gallery-item figcaption span { color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; }
.lightbox { width: min(100vw - 2rem, 1100px); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius-xl); background: #0b1120; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 10, 25, 0.82); }
.lightbox-figure { margin: 0; }
.lightbox-figure img { display: block; width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: #0b1120; }
.lightbox-figure figcaption { padding: 0.85rem 1.25rem; font-size: var(--fs-sm); color: #d7e0f5; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #0f1a33; cursor: pointer; box-shadow: var(--shadow-md); }
.lightbox-btn:hover { background: #fff; }
.lightbox-close { top: -14px; right: -14px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: -22px; }
.lightbox-next { right: -22px; }
.lightbox-prev .icon { transform: rotate(180deg); }
.lightbox[data-single] .lightbox-prev, .lightbox[data-single] .lightbox-next { display: none; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; } .lightbox-close { top: 6px; right: 6px; }
}
html.reduced-motion .gallery-item:hover, html.reduced-motion .gallery-item:hover .gallery-open img { transform: none; }
