/* Layout concept: a midnight "dune night" hero band with layered parallax contours,
   then calm porcelain reading sections; one sticky product index; brand green used sparingly. */
:root {
  /* Color — light */
  --bg: #F3F5F8;            /* porcelain */
  --surface: #FFFFFF;
  --surface-2: #E9EDF2;
  --fg: #0C1B2E;            /* midnight lapis ink */
  --fg-muted: #4A5A6E;
  --line: #D3DAE3;
  --accent: #007952;        /* brand green, the logo colour, AA on porcelain */
  --accent-soft: #DDF1E7;
  --interactive: #2347C9;   /* lapis */
  --signal: #1F8A6E;        /* data up */
  --signal-down: #B5473A;
  --focus: #2347C9;
  --shadow: 0 1px 2px rgba(12, 27, 46, .06), 0 12px 32px -12px rgba(12, 27, 46, .18);
  /* Chart categorical order (validated: scripts/validate_palette.js, light vs #FFFFFF) */
  --c1: #2F5BD3; --c2: #007952; --c3: #8E5BB5; --c4: #D9531E;

  /* The hero band is deliberately dark in both themes */
  --night: #07111D;
  --night-2: #0E2440;
  --night-fg: #EEF2F6;
  --night-muted: #A7B6C8;
  --night-line: rgba(43, 196, 138, .22);
  --glow: #2BC48A;

  /* Type */
  --font-display: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1.02rem, .99rem + .15vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);
  --step-5: clamp(3rem, 2rem + 4.8vw, 6rem);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08131F; --surface: #0F1F31; --surface-2: #142941; --fg: #E8EDF2; --fg-muted: #9AAABD;
    --line: #22364D; --accent: #2BC48A; --accent-soft: #0F2B22; --interactive: #8EA8FF; --signal: #45C69F;
    --signal-down: #E9826F; --focus: #8EA8FF; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6); --c1: #5E86D6; --c2: #1E9A6E; --c3: #9172CC; --c4: #D06A3A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08131F; --surface: #0F1F31; --surface-2: #142941; --fg: #E8EDF2; --fg-muted: #9AAABD;
  --line: #22364D; --accent: #2BC48A; --accent-soft: #0F2B22; --interactive: #8EA8FF; --signal: #45C69F;
  --signal-down: #E9826F; --focus: #8EA8FF; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6); --c1: #5E86D6; --c2: #1E9A6E; --c3: #9172CC; --c4: #D06A3A;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--interactive); text-underline-offset: .18em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--fg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.tnum { font-variant-numeric: lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { padding-top: 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section--tint + .section, .section + .section--tint, .section + .cta-band { padding-top: clamp(64px, 9vw, 128px); }
.lede { font-size: var(--step-1); color: var(--fg-muted); max-width: 60ch; line-height: 1.55; }
.measure { max-width: 64ch; }
.kicker { color: var(--accent); font-weight: 600; font-size: var(--step--1); letter-spacing: .02em; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section-head h2 { font-size: var(--step-4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--step-0)/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--glow); color: #0C1B2E; }
.btn--gold:hover { background: #5AD6A6; }
.btn--ink { background: var(--fg); color: var(--bg); }
.btn--ink:hover { opacity: .9; }
.btn--line { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--line:hover { border-color: var(--fg); }
.btn--night-line { border-color: rgba(238, 242, 246, .35); color: var(--night-fg); background: rgba(255,255,255,.03); }
.btn--night-line:hover { border-color: var(--night-fg); background: rgba(255,255,255,.08); }
.btn--wa { background: #1DA851; color: #fff; }
.btn--wa:hover { background: #178F44; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 600; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.textlink:hover { color: var(--accent); }

/* ---------- header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--glow); transform-origin: 0 50%; transform: scaleX(0); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--night-fg);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
/* the header stays dark in both themes, so the logo and nav read the same on every page */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--night) 95%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  color: var(--night-fg); box-shadow: 0 1px 0 rgba(238, 242, 246, .1);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand svg { width: 34px; height: 34px; }
.brand b { font: 600 1.42rem/1 var(--font-display); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.navlink {
  color: inherit; text-decoration: none; font: 500 .95rem/1 var(--font-body); padding: 10px 12px; border-radius: 999px;
  background: none; border: 0; cursor: pointer; opacity: .86;
}
.nav a:hover, .nav button.navlink:hover, .nav a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(560px, 90vw); padding: 10px; border-radius: var(--radius-m);
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 12px; border-radius: 10px; opacity: 1; }
.menu a:hover { background: var(--surface-2); }
.menu a .glyph { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.menu a .glyph svg { width: 20px; height: 20px; }
.menu a strong { font-weight: 600; font-size: .98rem; }
.menu a span { color: var(--fg-muted); font-size: .86rem; line-height: 1.35; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer;
}
.iconbtn:hover { border-color: currentColor; }
.iconbtn svg { width: 18px; height: 18px; }
.header-cta { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
}

/* mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 70; background: var(--bg); color: var(--fg);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 24px) var(--gutter);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sheet.open { transform: none; opacity: 1; visibility: visible; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 8px; }
.sheet a.big { font: 600 var(--step-2)/1.2 var(--font-display); color: var(--fg); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sheet a.big small { display: block; font: 400 .9rem/1.4 var(--font-body); color: var(--fg-muted); margin-top: 4px; }
.sheet .btn-row { margin-top: 20px; }

/* ---------- hero (night band) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 80% 0%, #17375E 0%, transparent 60%),
    radial-gradient(90% 70% at 0% 100%, #0B2038 0%, transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--night-fg);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(48px, 9vw, 120px));
  padding-bottom: clamp(72px, 10vw, 140px);
}
.hero .wrap { position: relative; z-index: 3; }
.hero-layer { position: absolute; inset: -10% -5%; z-index: 0; pointer-events: none; will-change: transform; }
.hero-layer svg { width: 100%; height: 100%; display: block; }
.hero-stars { z-index: 0; }
.hero-contours.back { z-index: 1; opacity: .55; }
.hero-contours.front { z-index: 2; opacity: .9; }
.hero-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .08;
  background-image: radial-gradient(rgba(255,255,255,.7) .6px, transparent .7px); background-size: 4px 4px; }
.hero h1 { font-size: var(--step-5); font-weight: 600; max-width: 15ch; letter-spacing: -.03em; line-height: 1.04; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .lede { color: var(--night-muted); margin-top: 24px; }
.hero .btn-row { margin-top: 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-meta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--night-muted); font-size: var(--step--1); }
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); }

/* floating instrument chips in the hero */
.instruments { position: relative; min-height: 470px; }
.chip {
  position: absolute; color: var(--night-fg);
  background: linear-gradient(180deg, rgba(20, 44, 74, .82), rgba(10, 26, 46, .82));
  border: 1px solid rgba(43, 196, 138, .22); border-radius: var(--radius-m);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
  padding: 16px 18px; will-change: transform;
}
.chip h4 { font-size: .8rem; font-weight: 500; color: var(--night-muted); margin-bottom: 8px; }
.chip .big { font: 600 1.9rem/1 var(--font-display); }
.chip small { color: var(--night-muted); font-size: .78rem; }
.chip--ladder { top: 0; left: 0; width: 240px; }
.chip--donut { top: 36px; right: 0; width: 200px; }
.chip--net { top: 262px; left: 0; width: 196px; }
.chip--news { bottom: 0; right: 0; width: 268px; }
.ladder { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: 10px 0 6px; }
.ladder i { flex: 1; background: rgba(43, 196, 138,.22); border-radius: 3px 3px 0 0; }
.ladder i.on { background: var(--glow); }
.news-line { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; line-height: 1.4; }
.news-line .tick { font-weight: 700; color: var(--glow); font-variant-numeric: tabular-nums; }
.news-line + .news-line { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.ar { font-family: var(--font-arabic); direction: rtl; }
@media (max-width: 960px) {
  .instruments { min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
  .chip { position: relative; inset: auto; width: auto; }
}

/* ---------- transition note ---------- */
.note-bar { background: var(--accent-soft); color: var(--fg); font-size: var(--step--1); }
.note-bar .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-block: 12px; }
.note-bar p { display: flex; gap: 10px; align-items: center; }
.note-bar button { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 6px; }

/* ---------- product scrollytelling ---------- */
.suite { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.suite-index { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 24px; }
.suite-index h2 { font-size: var(--step-4); }
.suite-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.suite-index li a {
  display: block; padding: 12px 0 12px 20px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--fg-muted); text-decoration: none; font-weight: 500; transition: color .2s ease, border-color .2s ease;
}
.suite-index li a:hover { color: var(--fg); }
.suite-index li a.active { color: var(--fg); border-left-color: var(--accent); }
.suite-index li a small { display: block; font-weight: 400; font-size: .85rem; }
.suite-panels { display: grid; gap: clamp(56px, 8vw, 120px); }
.panel { display: grid; gap: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.panel-visual {
  position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%;
  background: linear-gradient(160deg, var(--night-2), var(--night)); color: var(--night-fg);
  border: 1px solid var(--line);
}
.panel-visual > .pv-inner { position: absolute; inset: -6% 0; padding: calc(6% + clamp(10px, 2vw, 24px)) clamp(10px, 2vw, 24px); display: grid; place-items: center; will-change: transform; }
.panel h3 { font: 600 var(--step-3)/1.1 var(--font-display); }
.panel p { color: var(--fg-muted); max-width: 60ch; }
.panel ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; }
@media (max-width: 960px) {
  .suite { grid-template-columns: minmax(0, 1fr); }
  .suite-index { position: static; }
  .suite-index ol { display: none; }
}
ul.ticks li { position: relative; padding-left: 26px; line-height: 1.45; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- money flow diagram ---------- */
.flow-scroll { overflow-x: auto; padding-bottom: 8px; }
.flow { min-width: 860px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.flow-step { position: relative; padding: 22px 16px 0 0; }
.flow-step::before { content: ""; position: absolute; top: 9px; left: 18px; right: 0; height: 1px; background: var(--line); }
.flow-step:last-child::before { display: none; }
.flow-step .node { width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); position: absolute; top: 0; left: 0; }
.flow-step strong { display: block; margin-top: 18px; font-weight: 600; }
.flow-step span { display: block; color: var(--fg-muted); font-size: .9rem; line-height: 1.45; margin-top: 4px; }
.flow-id {
  margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--fg-muted);
}
.flow-id code { font-family: var(--font-body); font-variant-numeric: tabular-nums; background: var(--accent-soft); color: var(--fg); padding: 4px 10px; border-radius: 6px; font-weight: 600; }

/* ---------- capability list (not cards) ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.cap { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.cap:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.cap:not(:nth-child(3n+1)) { padding-left: 28px; }
.cap h3 { font-size: 1.12rem; }
.cap p { color: var(--fg-muted); font-size: .97rem; }
.cap .glyph { width: 40px; height: 40px; color: var(--accent); }
@media (max-width: 900px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
  .cap, .cap:not(:nth-child(3n+1)) { padding: 24px 0; border-right: 0 !important; }
}

/* ---------- services split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.svc { display: grid; gap: 0; }
.svc-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row b { font: 600 1.25rem/1.2 var(--font-display); color: var(--accent); }
.svc-row p { color: var(--fg-muted); }
.svc-row h3 { margin-bottom: 6px; }
@media (max-width: 520px) { .svc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { list-style: none; counter-increment: s; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 var(--step-3)/1 var(--font-display); color: var(--accent); }
.steps li p { color: var(--fg-muted); font-size: .97rem; }
.steps { padding: 0; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- parallax quote band ---------- */
.band { position: relative; overflow: hidden; background: var(--night); color: var(--night-fg); padding-block: clamp(80px, 12vw, 160px); isolation: isolate; }
.band .hero-layer { inset: -30% -5%; }
.band .wrap { position: relative; z-index: 2; }
.band blockquote { margin: 0; font: 600 var(--step-4)/1.12 var(--font-display); max-width: 20ch; letter-spacing: -.01em; }
.band p { color: var(--night-muted); margin-top: 24px; max-width: 56ch; }

/* ---------- contact / CTA ---------- */
.cta-band { background: var(--surface); border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
.cta-grid h2 { font-size: var(--step-4); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; background: var(--bg); }
.contact-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact-line .val { font: 600 1.3rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; user-select: all; }
.contact-line small { color: var(--fg-muted); display: block; font-size: .85rem; }
.contact-line .val a { color: var(--accent); text-underline-offset: 3px; }   /* same as .prose a */
.copy { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 8px 14px; font: 500 .85rem/1 var(--font-body); cursor: pointer; }
.copy:hover { border-color: var(--fg); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .94rem; }
.site-footer a { color: var(--night-fg); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { color: var(--night-fg); font-size: .9rem; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand .brand { color: var(--night-fg); }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- floating dock ---------- */
.dock {
  position: fixed; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}
.fab {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 24px; height: 24px; flex: none; }
.fab--wa { background: #1DA851; color: #fff; }
.fab--meet { background: var(--fg); color: var(--bg); height: 46px; font-size: .9rem; }
.fab--meet svg { width: 18px; height: 18px; }
.fab .lbl { white-space: nowrap; }
.dock.compact .fab .lbl { display: none; }
.dock.compact .fab { padding: 0; width: 54px; justify-content: center; }
.dock.compact .fab--meet { width: 46px; }
.dock .totop { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s; box-shadow: var(--shadow); }
.dock .totop.show { opacity: 1; visibility: visible; }
.dock .totop svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .dock .fab .lbl { display: none; } .dock .fab { padding: 0; width: 54px; justify-content: center; } .dock .fab--meet { width: 46px; } }

/* ---------- scheduler dialog ---------- */
/* Header and footer stay put; only the body scrolls, so the next action is
   always on screen. On phones it becomes a full-height sheet. */
dialog.sched {
  width: min(780px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 32px)); max-height: none; max-width: none;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--fg);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); overflow: hidden;
}
dialog.sched::backdrop { background: rgba(7, 17, 29, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.sched[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.sched-shell, .sched-form { display: flex; flex-direction: column; min-height: 0; }
.sched-shell { height: 100%; }
.sched-form { flex: 1; }
.sched-head { flex: none; background: var(--night); color: var(--night-fg); padding: 18px 22px 16px; display: grid; gap: 14px; }
.sched-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sched-title h2 { font-size: 1.35rem; }
.sched-close { position: static; color: var(--night-fg); }
.sched-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sched-steps li { display: grid; gap: 7px; font-size: .8rem; color: var(--night-muted); }
.sched-steps li::before { content: ""; height: 3px; border-radius: 3px; background: rgba(238, 242, 246, .16); transition: background-color .25s ease; }
.sched-steps li.done::before, .sched-steps li.on::before { background: var(--glow); }
.sched-steps li.on { color: var(--night-fg); font-weight: 600; }
.sched-steps i { display: none; }
.sched-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.sched-body > * { flex-shrink: 0; }
.sched-body h3 { font-size: 1.15rem; }
.sched-body .hint, .sched-foot .hint { color: var(--fg-muted); font-size: .88rem; }
.sched-foot { flex: none; display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; min-height: 66px; }
.sched-foot .btn { min-height: 42px; }
.sched-foot .hint { flex: 1; min-width: 0; }

/* choices already made, shown as chips you can tap to change */
.picked { display: flex; flex-wrap: wrap; gap: 8px; }
.pickchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 6px 8px 6px 12px; font: 500 .85rem/1.2 var(--font-body); cursor: pointer; max-width: 100%; }
.pickchip span { color: var(--accent); font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); }
.textbtn { border: 0; background: none; padding: 0 0 0 6px; color: var(--accent); font: 600 .82rem var(--font-body); cursor: pointer; }

/* topics: grouped, icon tiles */
.tgroup { display: grid; gap: 10px; }
.tgroup-h { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.topic { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; text-align: start; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.topic:hover { border-color: var(--accent); }
.topic:active { transform: scale(.985); }
.topic[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.topic-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.topic[aria-pressed="true"] .topic-ico { background: var(--accent); color: var(--bg); }
.topic-txt { display: grid; gap: 2px; min-width: 0; }
.topic-txt b { font: 600 .95rem/1.25 var(--font-body); }
.topic-txt small { color: var(--fg-muted); font-size: .8rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* dates: a scrolling strip; times: grouped by part of the day */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: none; scroll-snap-align: start; width: 64px; padding: 10px 0; text-align: center; display: grid; gap: 2px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 12px; cursor: pointer; font-family: var(--font-body); }
.day b { font: 600 1.3rem/1 var(--font-display); }
.day small { font-size: .72rem; color: var(--fg-muted); }
.day:hover { border-color: var(--accent); }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.day[aria-pressed="true"] small { color: inherit; opacity: .85; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { padding: 11px 6px; text-align: center; font: 500 .92rem/1 var(--font-body); font-variant-numeric: tabular-nums; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.sched-actions .btn { min-height: 44px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .9rem; }
.field input, .field textarea, .field select {
  font: 400 1rem/1.4 var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field .err { color: var(--signal-down); font-size: .82rem; min-height: 1em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.summary { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; background: var(--bg); font-size: .95rem; }
.summary div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.summary dt, .summary .k { color: var(--fg-muted); }
@media (max-width: 680px) {
  dialog.sched { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  dialog.sched[open] { animation: sheet .26s ease; }
  .sched-head { padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px; }
  .sched-steps li span { font-size: .72rem; }
  .sched-body { padding: 18px 16px; }
  .sched-foot { padding-inline: 16px; }
  .topics, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@keyframes sheet { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (max-width: 380px) { .sched-steps li span { display: none; } }
}

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 90; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: .92rem; opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- product pages ---------- */
.p-hero h1 { font-size: var(--step-5); max-width: 16ch; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--night-muted); font-size: .9rem; margin-bottom: 22px; }
.crumbs a { color: var(--night-fg); text-decoration: none; opacity: .8; }
.crumbs a:hover { opacity: 1; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.feature { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--fg-muted); font-size: .98rem; }
@media (max-width: 820px) { .feature-list { grid-template-columns: minmax(0, 1fr); } }

.demo { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.demo-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-head h3 { font-size: 1.05rem; }
.demo-head small { color: var(--fg-muted); }
.demo-body { padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 44px); }
@media (max-width: 860px) { .demo-body { grid-template-columns: minmax(0, 1fr); } }
.controls { display: grid; gap: 18px; align-content: start; }
.range { display: grid; gap: 8px; }
.range label { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 500; gap: 8px; }
.range output { color: var(--accent); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.readout div { border-top: 1px solid var(--line); padding-top: 10px; }
.readout b { display: block; font: 600 clamp(1.25rem, 1.05rem + .7vw, 1.65rem)/1.15 var(--font-display); white-space: nowrap; }
.readout small { color: var(--fg-muted); font-size: .82rem; }
@media (max-width: 520px) { .readout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.demo .chart text { fill: var(--fg-muted); font: 500 11px var(--font-body); }
.demo .chart .grid line { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--fg-muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.disclaimer { color: var(--fg-muted); font-size: .82rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; background: var(--bg); }
.seg button { border: 0; background: none; color: var(--fg-muted); padding: 7px 14px; border-radius: 999px; font: 500 .86rem/1 var(--font-body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--fg); }
.pill.good { background: color-mix(in srgb, var(--signal) 16%, transparent); color: var(--signal); }
.pill.warn { background: var(--accent-soft); color: var(--accent); }

.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.who div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--fg); }
.who p { color: var(--fg-muted); font-size: .97rem; }
@media (max-width: 820px) { .who { grid-template-columns: minmax(0, 1fr); } }

.next-product { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 40px; border-top: 1px solid var(--line); }
.next-product a { text-decoration: none; color: var(--fg); }
.next-product a b { display: block; font: 600 var(--step-3)/1.1 var(--font-display); }
.next-product a small { color: var(--fg-muted); }
.next-product a:hover b { color: var(--accent); }

/* chart tooltip + table view */
.chart-wrap { position: relative; }
.tip { position: absolute; pointer-events: none; background: var(--fg); color: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: .82rem; line-height: 1.45; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .12s ease; z-index: 3; }
.tip.show { opacity: 1; }
.tip b { font-weight: 600; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
details.tableview { font-size: .88rem; }
details.tableview summary { cursor: pointer; color: var(--fg-muted); }
details.tableview .tv-scroll { overflow-x: auto; margin-top: 10px; }
details.tableview table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
details.tableview th, details.tableview td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
details.tableview th:first-child, details.tableview td:first-child { text-align: left; }

/* ---------- brand page ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .logo-grid { grid-template-columns: minmax(0, 1fr); } }
.logo-card { border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr); }
.logo-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 200px; }
@media (max-width: 560px) { .logo-stage { grid-template-columns: minmax(0, 1fr); min-height: 0; } .logo-stage > div { padding: 22px; } }
.logo-stage > div { display: grid; place-items: center; padding: 28px; }
.logo-stage .on-light { background: #F3F5F8; color: #0C1B2E; }
.logo-stage .on-dark { background: #07111D; color: #EEF2F6; }
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.lockup svg { width: 52px; height: 52px; }
.lockup b { font: 600 1.9rem/1 var(--font-display); letter-spacing: .01em; }
.logo-meta { padding: 20px 22px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.logo-meta h3 { font-size: 1.05rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.logo-meta p { color: var(--fg-muted); font-size: .95rem; }
.logo-meta .btn-row { margin-top: 6px; }
.logo-meta .btn { min-height: 38px; font-size: .86rem; padding: 0 14px; }
.favicons { display: flex; gap: 14px; align-items: end; }
.favicons span { display: grid; place-items: center; border-radius: 8px; background: #07111D; color: #EEF2F6; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.swatch i { display: block; height: 84px; }
.swatch div { padding: 12px 14px; font-size: .88rem; }
.swatch code { font-family: var(--font-body); color: var(--fg-muted); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-layer, .chip, .pv-inner, [data-speed] { transform: none !important; }
}

/* logo accent per surface */
.site-header, .site-footer, .sheet .brand { --mark-accent: var(--glow); }
.sheet .brand { --mark-accent: var(--accent); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.summary dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 600px) {
  .dock .fab--meet, .dock .totop { display: none; }
  .dock .fab--wa { width: 50px; height: 50px; }
}
/* Stacked hero cards on narrow screens sit in a grid; parallax offsets would make them collide. */
@media (max-width: 960px) { .instruments .chip { transform: none !important; } }
.chip--donut small { display: block; margin-top: 8px; }

/* ---------- generated product and service pages ---------- */
.hero-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--glow); font-weight: 600; margin-bottom: 14px; }
.hero-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(43, 196, 138, .14); border: 1px solid rgba(43, 196, 138, .3); }
.chip-spec { font: 600 1.15rem/1.3 var(--font-display); }
.cap-panel { border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 32px); background: var(--surface); display: grid; gap: 18px; align-content: start; }
.cap-panel h3 { font-size: 1.1rem; }
ul.ticks--stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; font-size: 1.05rem; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.spec { display: grid; gap: 12px; align-content: start; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.spec:not(:nth-child(4n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.spec b { font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.spec-mark { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
@media (max-width: 900px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec, .spec:not(:nth-child(4n+1)) { padding: 20px 16px 20px 0; border-left: 0; }
  .spec:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
}
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.rel { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.rel-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.rel b { display: block; font-weight: 600; }
.rel small { display: block; color: var(--fg-muted); font-size: .9rem; line-height: 1.45; margin-top: 2px; }
.rel:hover b { color: var(--accent); }
@media (max-width: 900px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* nav: wide menus, sheet lists, current logo */
.menu--wide { width: min(640px, 92vw); }
.menu-all { grid-column: 1 / -1; display: block !important; text-align: center; padding: 12px !important; font-weight: 600; color: var(--accent) !important; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; }
.nav button.navlink[data-current] { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.sheet-h { margin: 18px 0 6px; color: var(--fg-muted); font-size: .85rem; font-weight: 600; }
.sheet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.sheet-list a { color: var(--fg); text-decoration: none; padding: 8px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.brand img.logo-current { width: auto; height: 34px; background: #fff; border-radius: 6px; padding: 2px 4px; }
.brand:has(img.logo-current) b { display: none; }
.foot-soon { font-size: .75rem; color: var(--glow); margin-left: 4px; }
@media (max-width: 1100px) { .nav a, .nav button.navlink { padding: 10px 9px; font-size: .9rem; } }

/* ---------- home: ecosystem list, Crestline band, offices ---------- */
.eco { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.eco-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.eco-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; transition: background-color .2s ease, color .2s ease; }
.eco-ico svg { width: 24px; height: 24px; }
.eco-body { display: grid; gap: 4px; }
.eco-body small { color: var(--accent); font-weight: 600; font-size: .85rem; }
.eco-body b { font: 600 1.3rem/1.25 var(--font-display); letter-spacing: -.01em; }
.eco-body > span { color: var(--fg-muted); }
.eco-body em { font-style: normal; font-weight: 600; font-size: .92rem; margin-top: 6px; color: var(--fg); }
.eco-body em::after { content: ""; display: inline-block; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: 8px; vertical-align: 1px; transition: transform .2s ease; }
.eco-item:hover .eco-ico { background: var(--accent); color: var(--bg); }
.eco-item:hover em::after { transform: translateX(3px) rotate(45deg); }
.eco-item:hover b { color: var(--accent); }
.eco--services .eco-item { grid-template-columns: 40px minmax(0, 1fr); padding: 22px 0; }
.eco--services .eco-ico { width: 40px; height: 40px; border-radius: 12px; }
.eco--services .eco-body b { font-size: 1.12rem; }
@media (max-width: 820px) { .eco { grid-template-columns: minmax(0, 1fr); } }

.band--crest { padding-block: clamp(72px, 10vw, 128px); }
.band--crest h2 { font-size: var(--step-4); color: var(--night-fg); }
.band--crest p { margin-top: 0; }
.crest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; position: relative; z-index: 2; }
.crest-intro { display: grid; gap: 18px; }
.crest-intro .btn-row { margin-top: 8px; }
.crest-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid rgba(255,255,255,.14); }
.crest-pillars div { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: grid; gap: 6px; }
.crest-pillars h3 { color: var(--glow); font-size: 1.05rem; }
.crest-pillars p { color: var(--night-muted); font-size: .97rem; margin: 0; }
.crest-facts { position: relative; z-index: 2; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid rgba(43, 196, 138,.25); border-radius: var(--radius-l); overflow: hidden; background: rgba(255,255,255,.03); }
.crest-facts div { padding: 20px 18px; display: grid; gap: 4px; align-content: start; }
.crest-facts div + div { border-left: 1px solid rgba(43, 196, 138,.18); }
.crest-facts dt { color: var(--night-muted); font-size: .82rem; }
.crest-facts dd { margin: 0; color: var(--night-fg); font: 600 1.2rem/1.25 var(--font-display); }
.crest-facts small { color: var(--glow); font-size: .8rem; }
@media (max-width: 1000px) {
  .crest-grid { grid-template-columns: minmax(0, 1fr); }
  .crest-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crest-facts div:nth-child(4) { border-left: 0; }
  .crest-facts div:nth-child(n+4) { border-top: 1px solid rgba(43, 196, 138,.18); }
}
@media (max-width: 560px) {
  .crest-pillars { grid-template-columns: minmax(0, 1fr); }
  .crest-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crest-facts div:nth-child(odd) { border-left: 0; }
  .crest-facts div:nth-child(4) { border-left: 1px solid rgba(43, 196, 138,.18); }
  .crest-facts div:nth-child(n+3) { border-top: 1px solid rgba(43, 196, 138,.18); }
}

.offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.office { border-top: 2px solid var(--fg); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.office-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.office-time { color: var(--fg-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.office h3 { font-size: 1.3rem; }
.office p { color: var(--fg-muted); font-size: .95rem; }
@media (max-width: 900px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .offices { grid-template-columns: minmax(0, 1fr); } }
.section-head--compact h2 { font-size: var(--step-3); }

/* ---------- interactive effects ---------- */
.rv-pending { opacity: 0; transform: translateY(22px); }
.rv-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--rv-delay, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--rv-delay, 0ms); }
.section-head .kicker { position: relative; display: inline-block; width: fit-content; }
.section-head .kicker::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(1); transition: transform .8s cubic-bezier(.2,.7,.2,1) .15s; }
.section-head.rv-pending .kicker::after { transform: scaleX(0); }
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.spot:hover::before { opacity: 1; }
.tilt { transition: transform .25s ease, box-shadow .25s ease; transform-style: preserve-3d; will-change: transform; }
.tilt:hover { box-shadow: var(--shadow); }
.btn, .fab { transition: translate .25s cubic-bezier(.2,.7,.2,1), transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.cursor-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(43, 196, 138, .16), transparent 70%); }
.cursor-glow.on { opacity: 1; }
.textlink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s ease, color .2s ease; }
.textlink:hover { background-size: 100% 2px; }
.eco-item .eco-ico { transition: background-color .2s ease, color .2s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.eco-item:hover .eco-ico { transform: rotate(-6deg) scale(1.08); }
.feature, .spec, .rel, .svc-row { transition: transform .25s ease; }
.feature:hover, .rel:hover { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .rv-pending { opacity: 1; transform: none; }
  .tilt, .feature:hover, .rel:hover { transform: none !important; }
  .cursor-glow { display: none; }
}

/* ---------- FAQ (every page with questions) ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 0 22px; color: var(--fg-muted); max-width: 68ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Insights ---------- */
.p-hero--slim { min-height: 0; }
.insight-hero { display: grid; gap: 18px; position: relative; z-index: 2; }
.insight-hero--article { max-width: 820px; }
.insight-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); }
.insight-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--night-muted); font-size: .92rem; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.insight-card { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--fg); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.insight-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.insight-card time { color: var(--fg-muted); font-size: .85rem; }
.insight-card h3 { font-size: 1.25rem; line-height: 1.3; }
.insight-card p { color: var(--fg-muted); font-size: .97rem; }
.insight-more { color: var(--accent); font-weight: 600; font-size: .92rem; margin-top: 4px; }
.prose { max-width: 820px; margin-inline: auto; font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 600 var(--step-2)/1.2 var(--font-display); letter-spacing: -.01em; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; display: grid; gap: .45em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose blockquote { border-inline-start: 3px solid var(--accent); padding: 4px 0 4px 18px; color: var(--fg-muted); }
.prose code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.prose strong { font-weight: 600; }

/* plain links for crawlers; site.js replaces them with the real footer */
.static-links { padding: 32px var(--gutter); font-size: .9rem; color: var(--fg-muted); }
.static-links ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.static-links a { color: inherit; }

/* product video, beside its introduction */
.video-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 5vw, 80px); align-items: center; }
.video-wrap .section-head { margin-bottom: 0; }
.video-note { color: var(--fg-muted); font-size: .9rem; }
.video-frame { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #07111D; aspect-ratio: 9 / 16; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .video-wrap { grid-template-columns: minmax(0, 1fr); } .video-frame { max-width: 360px; width: 100%; margin-inline: auto; } }

/* Newsroom: press kit table, release cards, Arabic releases */
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { color: var(--fg-muted); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
.prose tbody th { font-weight: 600; white-space: nowrap; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.insight-card h3 a { color: inherit; text-decoration: none; }
.insight-card .insight-more a { color: var(--accent); }
[lang="ar"][dir="rtl"] { font-family: var(--font-arabic); }

/* Partner registration */
.register-wrap { max-width: 880px; }
.partner-form { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.picks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.picks legend { font-weight: 500; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.pick { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; cursor: pointer; }
.pick input { accent-color: var(--accent); }
.pick.consent { border-radius: var(--radius-m, 12px); align-items: flex-start; }
.field select { width: 100%; }
.partner-review { margin-top: 20px; padding: 24px; border: 1px solid var(--accent); border-radius: var(--radius-l); background: var(--surface); display: grid; gap: 12px; }
.partner-summary { white-space: pre-wrap; font: inherit; font-size: .92rem; background: var(--bg-soft, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; max-height: 320px; overflow: auto; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .partner-form { padding: 18px; } }

/* Crestline report library (crestline-reports.html) */
.rtools { display: grid; gap: 14px; margin-bottom: 28px; }
.rsearch input { width: 100%; max-width: 520px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 7px 14px; font: 500 .9rem/1.2 inherit; font-family: inherit; cursor: pointer; }
.rchip b { color: var(--fg-muted); font-weight: 600; margin-inline-start: 4px; }
.rchip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rchip[aria-pressed="true"] b { color: inherit; opacity: .75; }
.rgroups { columns: 3 300px; column-gap: 24px; }
.rgroup { break-inside: avoid; margin: 0 0 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.rgroup h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.1rem; margin-bottom: 4px; }
.rgroup > p { color: var(--fg-muted); font-size: .9rem; margin-bottom: 12px; }
.rcount { font: 600 .85rem/1 var(--font-display); color: var(--accent); }
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.rtag { flex: none; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--fg-muted); }
.rempty { margin-top: 8px; }
.rteaser { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rteaser a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-decoration: none; }
.rteaser a:hover { border-color: var(--accent); }
.rteaser b { color: var(--accent); font-family: var(--font-display); }
