/* Rowan Global design system.
   Layout idea: a dark "control room" built on the logo's own pixel grid. Rounded square tiles
   are the motif (backgrounds, bullets, the hub diagram); one plum/berry accent from the brand;
   everything else is quiet glass on near black. Dark is a deliberate single look. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 500 700; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-var.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --void: #0A070D;          /* page */
  --deck: #120D17;          /* raised surfaces */
  --deck-2: #1A1321;        /* cards */
  --glass: rgb(26 19 33 / .62);
  --rule: #2A2031;          /* hairlines */
  --rule-hi: #3D2F47;
  --ink: #F4EEF7;
  --ink-2: #BDB0C4;         /* secondary text, 9.69:1 on void */
  --ink-3: #8D7F95;         /* labels, 5.34:1 on void */
  --berry: #FF5C86;         /* brand accent, from the plum and mauve of the current site */
  --berry-deep: #B8284A;
  --on-berry: #1A0A11;       /* text on berry, 6.51:1 */
  --plum: #7B4E8C;
  --violet: #9C7BFF;        /* second beam colour, only inside gradients */
  --aqua: #3FD9E0;          /* contrast accent: tabs, chapter marks, figures, icons. Berry stays for actions */
  --ok: #5FD39B;            /* done or passing state */
  --warn: #F5C25B;
  --note-bg: #3B3410;
  --note-ink: #F6E9A8;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-label: "Geist", "Helvetica Neue", Arial, sans-serif; /* small caps labels and figures, tabular */

  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 2.4vw, 1.9rem);
  --t-2xl: clamp(2rem, 4.2vw, 3.1rem);
  --t-3xl: clamp(2.6rem, 6.6vw, 5.2rem);

  --r: 12px;                /* buttons, inputs, small panels */
  --r-lg: 22px;             /* cards, consoles */
  --sh-dot: 0 0 12px currentColor;                 /* 1: small lit pixels and lines */
  --sh-glow: 0 10px 40px -10px rgb(255 92 134 / .65); /* 2: primary button, hub, lamp line */
  --sh-depth: 0 40px 120px -40px rgb(255 92 134 / .35), 0 30px 60px -30px rgb(0 0 0 / .9); /* 3: consoles and menus */
  --surface: linear-gradient(180deg, #19121F 0%, #120D17 100%);          /* cards: lit from above */
  --surface-hi: linear-gradient(180deg, #221829 0%, #160F1C 100%);       /* open or chosen cards */
  --edge: rgb(255 255 255 / .07);                                         /* card hairline */
  --edge-hi: rgb(255 255 255 / .12);
  --sh-card: inset 0 1px 0 rgb(255 255 255 / .05), 0 24px 48px -28px rgb(0 0 0 / .85);
  --grad-brand: linear-gradient(135deg, #FF7A9C 0%, #FF5C86 45%, #D24F82 100%);
  --ease: cubic-bezier(.2,.7,.2,1);
  --max: 1200px;
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
/* pages with the sticky chapter bar: keep focused and anchored items clear of both bars (WCAG 2.4.11) */
html:has(.chap-bar) { scroll-padding-top: calc(var(--nav-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-variant-numeric: tabular-nums;
  margin: 0; background: var(--void); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: var(--r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--berry); color: var(--on-berry); padding: 10px 14px; border-radius: var(--r); z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(72px, 10vw, 128px); position: relative; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-stretch: 112%; letter-spacing: -.025em; line-height: 1; font-weight: 600; }
.h1 { font-size: var(--t-3xl); }
.h2 { font-size: var(--t-2xl); line-height: 1.04; }
.h3 { font-family: var(--f-display); font-stretch: 108%; font-size: var(--t-xl); letter-spacing: -.015em; line-height: 1.12; }
.grad {
  background: linear-gradient(100deg, var(--ink) 10%, var(--berry) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.label {
  font-family: var(--f-label); font-size: var(--t-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.label.accent { color: var(--berry); }
.label.cool { color: var(--aqua); }
.label .px { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent), 0 0 10px currentColor; }
.lede { font-size: var(--t-lg); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }
.mono { font-family: var(--f-label); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

.sec-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* concept annotation: content the client must supply */
.note {
  display: inline-flex; gap: 8px; align-items: baseline; background: rgb(245 194 91 / .07); color: #E9D9A6;
  border: 1px solid rgb(245 194 91 / .22); font: 400 .8rem/1.5 var(--f-body); padding: 6px 12px; border-radius: var(--r); max-width: 56ch;
}
.note b { font-weight: 600; color: var(--warn); white-space: nowrap; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid var(--rule-hi);
  font: 600 .97rem/1 var(--f-body); text-decoration: none; color: var(--ink); background: var(--bg); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
  cursor: pointer; transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); border-color: var(--edge-hi); background: var(--bg, transparent); }
.btn:not(.btn-primary):hover { background: rgb(255 255 255 / .04); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary {
  --bg: var(--grad-brand); color: var(--on-berry); border-color: transparent;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), var(--sh-glow);
}
.btn-primary:hover { border-color: transparent; filter: brightness(1.06); }

/* ---------- nav (glass bar, sliding indicator) ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 61; background: var(--void); }
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; height: var(--nav-h);
  background: rgb(10 7 13 / .72); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { width: auto; height: 60px; } /* room for the mark and a readable GLOBAL */
.nav-menu { display: flex; align-items: center; gap: 6px; position: relative; }
.nav-menu > a, .nav-menu > .dd > button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  color: var(--ink-2); text-decoration: none; font: 500 .94rem/1 var(--f-body); background: none; border: 0; cursor: pointer; border-radius: var(--r);
}
.nav-menu > a:hover, .nav-menu > .dd > button:hover, .nav-menu > a[aria-current="page"] { color: var(--ink); }
.nav-ind {
  position: absolute; top: 50%; height: 36px; transform: translateY(-50%); border-radius: var(--r); z-index: 0;
  background: rgb(255 255 255 / .06); border: 1px solid var(--rule-hi); pointer-events: none; opacity: 0;
  transition: left .3s var(--ease), width .3s var(--ease), opacity .2s;
}
.nav-ind::after { content: ""; position: absolute; left: 20%; right: 20%; top: -1px; height: 2px; border-radius: var(--r); background: var(--berry); color: var(--berry); box-shadow: var(--sh-dot); }
.nav-menu > a.nav-cta { margin-left: 8px; min-height: 44px; padding: 0 16px; background: var(--berry); color: var(--on-berry); justify-content: center; font-weight: 600; }
.nav-menu > a.nav-cta:hover { color: var(--on-berry); }

.dd { position: relative; }
.dd button svg { width: 10px; height: 10px; transition: transform .2s; }
.dd[data-open="true"] button svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(640px, 92vw);
  background: rgb(18 13 23 / .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--rule-hi); border-radius: var(--r-lg); padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  box-shadow: var(--sh-depth);
}
.dd-panel[hidden] { display: none !important; }
.dd-panel a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--r); text-decoration: none; }
.dd-panel a:hover, .dd-panel a[aria-current="page"] { background: rgb(255 255 255 / .05); }
.dd-panel .ico { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--deck-2); border: 1px solid var(--rule-hi); }
.dd-panel .ico svg { width: 18px; height: 18px; }
.dd-panel b { display: block; font-weight: 600; font-size: .95rem; }
.dd-panel span { display: block; color: var(--ink-3); font-size: .84rem; line-height: 1.4; margin-top: 2px; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--rule-hi); background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 920px) {
  /* backdrop-filter would make the bar the containing block for the fixed menu */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--void); }
  .menu-btn { display: grid; place-items: center; }
  .nav-menu {
    position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 59;
    background: var(--void); flex-direction: column; align-items: stretch; gap: 2px; overflow-y: auto;
    padding: 16px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--rule);
  }
  .nav-menu:not(.open) { display: none; }
  .nav-menu > a, .nav-menu > .dd > button { min-height: 52px; font-size: 1.05rem; padding: 0 8px; width: 100%; justify-content: space-between; }
  .nav-ind { display: none; }
  .dd-panel { position: static; transform: none; width: 100%; grid-template-columns: 1fr; background: transparent; border: 0; box-shadow: none; padding: 0 0 8px; }
  .nav-cta { margin: 12px 0 0; }
}

/* ---------- backgrounds ---------- */
.pixel-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.pixel-field canvas { width: 100%; height: 100%; display: block; }
.pixel-field::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 30%, rgb(255 92 134 / .16), transparent 70%),
    radial-gradient(45% 50% at 15% 85%, rgb(156 123 255 / .10), transparent 70%),
    linear-gradient(to bottom, transparent 60%, var(--void));
}
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.above { position: relative; z-index: 1; }

/* ---------- spotlight card (pointer glow on fill and border) ---------- */
.spot {
  --x: 50%; --y: 50%; --o: 0;
  position: relative; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-lg);
  box-shadow: var(--sh-card); isolation: isolate; overflow: hidden; min-width: 0;
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: var(--o); transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x) var(--y), rgb(255 92 134 / .12), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  opacity: var(--o); transition: opacity .3s;
  background: radial-gradient(300px circle at var(--x) var(--y), rgb(255 92 134 / .8), rgb(156 123 255 / .35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}

/* ---------- border beam (light travelling round a panel) ---------- */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.beam { position: relative; isolation: isolate; }
.beam::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 78%, var(--violet) 86%, var(--berry) 94%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: beam 6s linear infinite;
}
@keyframes beam { to { --beam: 360deg; } }
@media (prefers-reduced-motion: reduce) { .beam::before { animation: none; } }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 400 var(--t-xs)/1.4 var(--f-label); color: var(--ink-3); letter-spacing: .06em; }
.crumbs a { text-decoration: none; color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

/* ---------- service hero ---------- */
.s-hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 104px); overflow: hidden; }
.s-hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.s-hero-grid > * { min-width: 0; }
.s-hero-copy { display: grid; gap: 24px; align-content: start; }
.s-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.s-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: var(--r);
  border: 1px solid var(--rule-hi); background: rgb(255 255 255 / .03); font: 500 .8rem/1 var(--f-label); color: var(--ink-2);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); color: var(--ok); box-shadow: var(--sh-dot); font-style: normal; }
@media (max-width: 960px) { .s-hero-grid { grid-template-columns: 1fr; } }

/* ---------- console (mock product UI) ---------- */
.console { background: linear-gradient(180deg, var(--deck-2), var(--deck)); border: 1px solid var(--rule-hi); border-radius: var(--r-lg); box-shadow: var(--sh-depth); }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-hi); }
.console-bar .ttl { font-weight: 600; font-size: .95rem; }
.console-bar .ttl small { display: block; font: 400 max(12px, .72rem)/1.3 var(--f-label); color: var(--ink-3); }
.console-body { padding: 18px; display: grid; gap: 14px; }
.console-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--rule); font: 400 max(12px, .72rem)/1.3 var(--f-label); color: var(--ink-3); flex-wrap: wrap; }
.console-foot button { font: 600 .82rem/1 var(--f-body); min-height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--rule-hi); background: var(--void); color: var(--ink); cursor: pointer; }
.console-foot button:hover { border-color: var(--berry); }
.pill { font: 500 max(12px, .74rem)/1 var(--f-label); padding: 6px 10px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; border: 1px solid transparent; }
.pill.ok { color: var(--ok); background: rgb(95 211 155 / .1); border-color: rgb(95 211 155 / .25); }
.pill.live { color: var(--berry); background: rgb(255 92 134 / .1); border-color: rgb(255 92 134 / .3); }
.pill.wait { color: var(--ink-3); background: rgb(255 255 255 / .03); border-color: var(--rule-hi); }
.pill.warn { color: var(--warn); background: rgb(245 194 91 / .1); border-color: rgb(245 194 91 / .25); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--void); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.kpi .k { font: 400 max(12px, .68rem)/1.2 var(--f-label); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.kpi .v { font-family: var(--f-display); font-stretch: 110%; font-size: 1.35rem; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 460px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis .kpi:last-child { grid-column: 1 / -1; } }

.rows { display: grid; gap: 2px; }
.row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-radius: var(--r); transition: background .3s; }
.row.live { background: rgb(255 92 134 / .06); }
.row .tick { width: 22px; height: 22px; border-radius: var(--r); border: 1.5px solid var(--rule-hi); display: grid; place-items: center; transition: all .3s; }
.row .tick svg { width: 12px; height: 12px; opacity: 0; transition: opacity .3s; }
.row.done .tick { background: var(--ok); border-color: var(--ok); }
.row.done .tick svg { opacity: 1; }
.row.live .tick { border-color: var(--berry); color: var(--berry); box-shadow: var(--sh-dot); }
.row .t { font-weight: 600; font-size: .93rem; line-height: 1.3; }
.row .t small { display: block; font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.row .d { font: 400 max(12px, .72rem)/1 var(--f-label); color: var(--ink-3); white-space: nowrap; }
@media (max-width: 460px) { .row { grid-template-columns: 24px 1fr; } .row .d { grid-column: 2; } }

.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 12px; align-items: center; font-size: .86rem; }
.bar .track { height: 10px; border-radius: 999px; background: var(--void); border: 1px solid var(--rule); overflow: hidden; }
.bar .fill { height: 100%; width: var(--w); background: linear-gradient(90deg, var(--plum), var(--berry)); transform-origin: left; }
.bar .n { font: 500 .78rem/1 var(--f-label); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- stat strip ---------- */
.strip { border-block: 1px solid var(--rule); background: var(--deck); padding-block: 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 28px 24px; border-right: 1px solid var(--rule); display: grid; gap: 6px; min-width: 0; }
.strip-item:last-child { border-right: 0; }
.strip-item .v { font-family: var(--f-display); font-stretch: 112%; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.strip-item .k { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 860px) { .strip-grid { grid-template-columns: 1fr 1fr; } .strip-item:nth-child(2) { border-right: 0; } .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); gap: 14px; }
.tile { padding: 26px; display: grid; gap: 12px; align-content: start; grid-column: span 2; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile .num { font: 500 max(12px, .72rem)/1 var(--f-label); color: var(--berry); letter-spacing: .1em; }
.tile h3 { font-family: var(--f-display); font-stretch: 108%; font-size: 1.32rem; line-height: 1.15; letter-spacing: -.01em; }
.tile p { color: var(--ink-2); font-size: .96rem; }
.tile .glyph { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: var(--deck-2); border: 1px solid var(--rule-hi); color: var(--berry); }
.tile .glyph svg { width: 22px; height: 22px; }
.tile ul { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.tile li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: .93rem; color: var(--ink-2); }
.tile li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--berry); margin-top: 8px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.w3, .tile.w4 { grid-column: span 1; } .tile.w4 { grid-column: 1 / -1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile.w4 { grid-column: auto; } }

/* ---------- connections (animated beams to linked services) ---------- */
.link-stage { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 6vw, 100px); align-items: center; }
.link-stage > * { min-width: 0; position: relative; z-index: 1; }
.link-col { display: grid; gap: 14px; }
.link-card { padding: 18px; display: grid; gap: 6px; text-decoration: none; }
.link-card b { font-family: var(--f-display); font-stretch: 108%; font-size: 1.1rem; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.link-card span { color: var(--ink-2); font-size: .92rem; }
.link-card:hover b .arr { transform: translateX(3px); }
.link-card .arr { transition: transform .2s; color: var(--berry); }
.link-hub {
  width: clamp(130px, 16vw, 180px); aspect-ratio: 1; border-radius: 25%; display: grid; place-items: center; text-align: center; padding: 16px;
  background: radial-gradient(circle at 50% 35%, rgb(255 92 134 / .35), transparent 70%), var(--deck-2);
  border: 1px solid rgb(255 92 134 / .45); box-shadow: var(--sh-glow); max-width: 100%;
}
.link-hub b { font-family: var(--f-display); font-stretch: 110%; font-size: 1.15rem; line-height: 1.1; }
.link-hub small { display: block; font: 400 max(12px, .66rem)/1.3 var(--f-label); color: var(--ink-3); letter-spacing: .12em; margin-top: 6px; text-transform: uppercase; }
.link-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.link-svg path { fill: none; stroke: var(--rule-hi); stroke-width: 1.5; }
.link-svg path.flow { stroke: url(#beamGrad); stroke-width: 2; stroke-dasharray: 60 400; animation: flow 3.2s linear infinite; }
@keyframes flow { from { stroke-dashoffset: 460; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .link-svg path.flow { animation: none; stroke-dasharray: none; opacity: .5; } }
@media (max-width: 860px) {
  .link-stage { grid-template-columns: 1fr; }
  .link-hub { order: -1; margin-inline: auto; }
  .link-svg { display: none; }
}

/* ---------- timeline (scroll fill) ---------- */
.tl { position: relative; display: grid; gap: 0; max-width: 880px; --p: 0; }
.tl::before, .tl::after { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; border-radius: var(--r); }
.tl::before { background: var(--rule); }
.tl::after { background: linear-gradient(var(--berry), var(--violet)); color: var(--berry); box-shadow: var(--sh-dot); bottom: auto; height: calc(var(--p) * (100% - 16px)); }
.tl-step { display: grid; grid-template-columns: 32px 1fr; gap: 22px; padding-bottom: 38px; position: relative; z-index: 1; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--void); border: 1.5px solid var(--rule-hi); display: grid; place-items: center; font: 500 max(12px, .72rem)/1 var(--f-label); color: var(--ink-3); transition: all .4s; }
.tl-step.lit .tl-dot { border-color: var(--berry); color: var(--ink); background: var(--deck-2); box-shadow: var(--sh-dot); }
.tl-body { display: grid; gap: 8px; padding-top: 4px; }
.tl-when { font: 500 max(12px, .74rem)/1 var(--f-label); color: var(--berry); letter-spacing: .08em; text-transform: uppercase; }
.tl-body h3 { font-family: var(--f-display); font-stretch: 108%; font-size: 1.4rem; }
.tl-body p { color: var(--ink-2); max-width: 64ch; }
.tl-body .out { font-size: .9rem; color: var(--ink-3); }
.tl-body .out b { color: var(--ink-2); font-weight: 600; }

/* ---------- compare table ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--deck); }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .96rem; }
.cmp th, .cmp td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font: 500 max(12px, .72rem)/1.2 var(--f-label); color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; background: var(--deck-2); }
.cmp thead th.us { color: var(--berry); }
.cmp td:first-child { color: var(--ink-2); width: 28%; }
.cmp td.us { background: rgb(255 92 134 / .05); color: var(--ink); }
.src { font: 400 max(12px, .74rem)/1.5 var(--f-label); color: var(--ink-3); margin-top: 12px; }
.src a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- fit ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fit > div { padding: 28px; display: grid; gap: 16px; align-content: start; }
.fit h3 { font-family: var(--f-display); font-stretch: 108%; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.fit h3 i { width: 10px; height: 10px; border-radius: 50%; font-style: normal; }
.fit .yes h3 i { background: var(--ok); color: var(--ok); box-shadow: var(--sh-dot); }
.fit .no h3 i { background: var(--ink-3); }
.fit ul { list-style: none; display: grid; gap: 12px; }
.fit li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); }
.fit li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--c) center / 11px no-repeat; }
.fit .yes li::before { --c: rgb(95 211 155 / .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%235FD39B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fit .no li::before { --c: rgb(255 255 255 / .06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 6h5' fill='none' stroke='%238D7F95' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* ---------- packages ---------- */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.pkg { padding: 28px; display: grid; gap: 18px; align-content: start; }
.pkg.feat { border-color: rgb(255 92 134 / .45); background: linear-gradient(180deg, rgb(255 92 134 / .08), var(--deck) 40%); }
.pkg .lvl { font: 500 max(12px, .72rem)/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--berry); display: flex; justify-content: space-between; gap: 8px; }
.pkg h3 { font-family: var(--f-display); font-stretch: 110%; font-size: 1.6rem; line-height: 1.08; letter-spacing: -.015em; }
.pkg ul { list-style: none; display: grid; gap: 10px; }
.pkg li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.pkg li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--berry); margin-top: 8px; }
.pkg .best { border-top: 1px solid var(--rule); padding-top: 16px; color: var(--ink-2); font-size: .92rem; }
.pkg .price { font: 500 .82rem/1.4 var(--f-label); color: var(--ink-3); }
@media (max-width: 960px) { .pkgs { grid-template-columns: 1fr; } }

/* ---------- bundle builder ---------- */
.bundle { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.bundle > div { padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.bundle-out { background: var(--deck-2); border-left: 1px solid var(--rule); }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.picks label {
  position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; min-height: 52px; padding: 10px 12px;
  border: 1px solid #6E5E78; border-radius: var(--r); cursor: pointer; color: var(--ink-2); font-size: .94rem; transition: border-color .2s, background .2s;
}
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks .box { width: 22px; height: 22px; border-radius: 25%; border: 1.5px solid #8D7F95; display: grid; place-items: center; }
.picks .box svg { width: 12px; height: 12px; opacity: 0; }
.picks label:has(input:checked) { border-color: var(--berry); color: var(--ink); background: rgb(255 92 134 / .07); }
.picks label:has(input:checked) .box { background: var(--berry); border-color: var(--berry); }
.picks label:has(input:checked) .box svg { opacity: 1; }
.picks label:has(input:focus-visible) { outline: 2px solid var(--berry); outline-offset: 2px; }
.picks label.locked { cursor: default; }
.bundle-big { font-family: var(--f-display); font-stretch: 112%; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.bundle-list { list-style: none; display: grid; gap: 10px; }
.bundle-list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; color: var(--ink-2); font-size: .94rem; }
.bundle-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-top: 8px; }
.bundle-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 860px) { .bundle { grid-template-columns: 1fr; } .bundle-out { border-left: 0; border-top: 1px solid var(--rule); } }
@media (max-width: 420px) { .picks { grid-template-columns: 1fr; } .bundle-kpis { grid-template-columns: 1fr 1fr; } }

/* ---------- proof slot ---------- */
.proof { border: 1.5px dashed var(--rule-hi); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.proof > * { min-width: 0; }
.proof .q { font-family: var(--f-display); font-stretch: 106%; font-size: var(--t-xl); line-height: 1.25; color: var(--ink-2); }
.proof .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proof .metrics div { border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }
.proof .metrics b { display: block; font-family: var(--f-display); font-size: 1.8rem; color: var(--ink-3); }
.proof .metrics span { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border: 1px solid var(--rule); border-radius: var(--r); background: var(--deck); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: var(--rule-hi); background: var(--deck-2); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 600; font-size: 1.02rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: var(--r); border: 1px solid var(--rule-hi); position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink-2); border-radius: 999px; transition: transform .25s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq details[open] summary .pm { border-color: var(--berry); }
.faq .ans { padding: 0 22px 22px; color: var(--ink-2); max-width: 72ch; display: grid; gap: 10px; }

/* ---------- lamp CTA ---------- */
.lamp { overflow: hidden; text-align: center; padding-block: clamp(90px, 12vw, 150px); }
.lamp::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 120%); height: 420px; transform: translateX(-50%); pointer-events: none;
  background:
    conic-gradient(from 180deg at 50% 0%, transparent 140deg, rgb(255 92 134 / .38) 170deg, rgb(156 123 255 / .2) 180deg, rgb(255 92 134 / .38) 190deg, transparent 220deg);
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
  filter: blur(6px);
}
.lamp::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(420px, 70%); height: 2px; background: var(--berry); box-shadow: var(--sh-glow); }
.lamp .inner { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; max-width: 760px; margin-inline: auto; }
.lamp .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- other services rail ---------- */
.rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rail a { padding: 18px; display: grid; gap: 10px; text-decoration: none; min-height: 120px; align-content: space-between; }
.rail .ico { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--deck-2); border: 1px solid var(--rule-hi); color: var(--berry); }
.rail .ico svg { width: 18px; height: 18px; }
.rail b { font-weight: 600; font-size: .96rem; line-height: 1.3; }
@media (max-width: 960px) { .rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .rail { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
/* ---------- footer: compact band, one line of legal, a glow that rises at the end of the page ---------- */
.foot { position: relative; isolation: isolate; border-top: 1px solid var(--rule); background: var(--void); color: var(--ink-2); font-size: .9rem;
  padding-bottom: calc(var(--glow-h) + env(safe-area-inset-bottom, 0px)); --glow-h: clamp(96px, 18vh, 180px); }
.foot-in { position: relative; z-index: 1; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; padding-block: 40px 28px; }
.foot-brand { display: grid; gap: 10px; max-width: 42ch; }
.foot-brand p { margin: 0; }
.foot .brand img { height: 54px; width: auto; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-3); }
.foot-contact a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 32px; }
.foot-brand .brand { justify-self: start; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot h4, .foot .foot-h { font: 500 max(12px, .72rem)/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.foot-cols ul { list-style: none; display: grid; gap: 0; padding: 0; margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-cols a { display: inline-flex; align-items: center; min-height: 32px; }
.foot-cta { justify-self: end; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 16px; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--ink-3); }
.foot-base p { margin: 0; }
.foot-base .legal-links { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; padding: 0; margin: 0; }
.foot-base .legal-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); }
.foot-note { flex-basis: 100%; }
/* the glow: fixed to the bottom of the screen, scaled up from the floor by site.js as the page ends */
.foot-glow { position: fixed; left: 0; right: 0; bottom: 0; height: var(--glow-h); z-index: -1; pointer-events: none;
  transform-origin: bottom; transform: scaleY(var(--rise, 0)); will-change: transform; opacity: .9; }
.foot-glow svg { display: block; width: 100%; height: 100%; }
/* paused or reduced motion: no rising, the glow simply sits in the footer's own floor */
html.still .foot-glow { position: absolute; transform: none; }
@media (prefers-reduced-motion: reduce) { .foot-glow { position: absolute; transform: none; } }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr; padding-block: 28px 16px; }
  .foot { --glow-h: 88px; }
  .foot-cta { justify-self: start; }
}
/* touch screens: links back to full 44px targets */
@media (pointer: coarse), (max-width: 860px) { .foot-cols a, .foot-base .legal-links a, .foot-contact a { min-height: 44px; min-width: 44px; } .foot-contact a { display: inline-flex; align-items: center; } }

/* ---------- entrance from a visible resting state ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
  @keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
}

/* ---------- motion control (WCAG 2.2.2) ---------- */
.motion-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--rule-hi); background: rgb(10 7 13 / .6); color: var(--ink-2); font: 500 .8rem/1 var(--f-label); cursor: pointer;
}
.motion-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.motion-btn svg { width: 14px; height: 14px; }
.hero-tools { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 20px; z-index: 2; }
html.still *, html.still *::before, html.still *::after { animation-play-state: paused !important; }

/* ---------- data flow (technology page) ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; position: relative; counter-reset: none; }
.flow::before { content: ""; position: absolute; left: 4%; right: 4%; top: 34px; height: 2px; background: var(--rule-hi); }
.flow::after {
  content: ""; position: absolute; top: 31px; left: 4%; width: 10%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--berry)); color: var(--berry); box-shadow: var(--sh-dot);
  animation: flowrun 5s linear infinite;
}
@keyframes flowrun { from { left: 4%; } to { left: 86%; } }
@media (prefers-reduced-motion: reduce) { .flow::after { animation: none; display: none; } }
.flow-step { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; min-width: 0; }
.flow-node { display: grid; gap: 6px; justify-items: start; padding: 14px; min-height: 68px; border-radius: var(--r); background: var(--deck-2); border: 1px solid var(--rule-hi); }
.flow-node b { font-family: var(--f-display); font-stretch: 108%; font-size: 1rem; line-height: 1.2; }
.flow-n { font: 500 max(12px, .7rem)/1 var(--f-label); color: var(--berry); letter-spacing: .1em; }
.flow-d { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
@media (max-width: 1060px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { left: 22px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .flow::after { display: none; }
  .flow-step { grid-template-columns: minmax(150px, 34%) 1fr; align-items: center; gap: 16px; padding-block: 6px; }
}
@media (max-width: 520px) { .flow::before { display: none; } .flow-step { grid-template-columns: 1fr; gap: 6px; padding-bottom: 14px; } .flow-d { padding-left: 14px; } }

/* ---------- security and systems ---------- */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-card { padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.sec-card h3 { font-family: var(--f-display); font-stretch: 108%; font-size: 1.35rem; }
.checks-list { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.checks-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checks-list .tick { width: 22px; height: 22px; border-radius: 25%; background: var(--ok); display: grid; place-items: center; margin-top: 2px; }
.checks-list .tick svg { width: 12px; height: 12px; }
.checks-list b { display: block; font-weight: 600; }
.checks-list span span { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; } }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slot-sys { border: 1.5px dashed var(--rule-hi); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 8px; min-width: 0; }
.slot-sys b { font-family: var(--f-display); font-stretch: 108%; font-size: 1.15rem; color: var(--ink-3); }
.slot-sys span:last-child { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 860px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stack-grid { grid-template-columns: 1fr; } }
.rail.rail-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1060px) { .rail.rail-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .rail.rail-6 { grid-template-columns: 1fr 1fr; } }

/* ---------- Insights index ---------- */
.b-hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 72px); overflow: hidden; }
.b-hero-copy { display: grid; gap: 22px; max-width: 900px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters .chip { min-height: 44px; cursor: pointer; font-size: .82rem; }
.filters .chip[aria-pressed="true"] { border-color: var(--berry); color: var(--ink); background: rgb(255 92 134 / .08); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.post-card[hidden] { display: none; }
.post-card img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; border-bottom: 1px solid var(--rule); }
.post-card-body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.post-card b { font-family: var(--f-display); font-stretch: 106%; font-size: 1.22rem; line-height: 1.2; font-weight: 600; }
.post-card .meta { font: 400 max(12px, .74rem)/1.3 var(--f-label); color: var(--ink-3); margin-top: 4px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- post ---------- */
.post-head { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.post-col { max-width: 820px; }
.post-head .post-col { display: grid; gap: 20px; }
.post-h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; font: 400 .82rem/1.4 var(--f-label); color: var(--ink-3); }
.post-meta a { color: var(--ink-2); }
.qa { border: 1px solid rgb(255 92 134 / .45); background: linear-gradient(180deg, rgb(255 92 134 / .08), var(--deck)); border-radius: var(--r-lg); padding: 20px 22px; display: grid; gap: 10px; }
.qa p { font-size: 1.08rem; line-height: 1.6; }
.post-cover { margin: 0 0 clamp(28px, 4vw, 44px); }
.post-cover img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--rule); }
.post-cover figcaption { font: 400 max(12px, .72rem)/1.4 var(--f-label); color: var(--ink-3); margin-top: 8px; }
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--f-display); font-stretch: 108%; font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.2; color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: 1.15rem; color: var(--ink); margin-top: 1.6em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--berry); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose li::marker { color: var(--berry); }
.prose .cmp-wrap { margin-top: 1.4em; }
.prose .cmp { min-width: 480px; }
.post-sec { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 16px; }
.post-sec h2 { font-family: var(--f-display); font-stretch: 108%; font-size: 1.5rem; }
.sources { padding-left: 1.3em; display: grid; gap: 8px; color: var(--ink-2); }
.sources a { color: var(--ink-2); text-underline-offset: 3px; display: inline-block; padding-block: 11px; }
.sources a:hover { color: var(--ink); }
.author { margin-top: clamp(40px, 6vw, 64px); margin-bottom: clamp(24px, 4vw, 40px); padding: 20px 22px; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; }
.author-mark { width: 52px; height: 52px; border-radius: 25%; display: grid; place-items: center; background: var(--deck-2); border: 1px solid var(--rule-hi); font-family: var(--f-display); font-weight: 600; color: var(--berry); font-size: 1.3rem; }
.author b a { text-decoration: none; }
.author > span:last-child { display: grid; gap: 4px; }

/* ---------- chapter breakers: give the page a story ---------- */
.chapter { padding-block: clamp(56px, 8vw, 96px) clamp(28px, 4vw, 44px); border-top: 1px solid var(--rule); background: radial-gradient(520px 200px at 10% 45%, rgb(63 217 224 / .08), transparent 70%), linear-gradient(180deg, var(--deck), var(--void)); overflow: hidden; }
.chapter + section { padding-top: clamp(24px, 3vw, 40px); }
.chapter-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: end; }
.chapter-grid > * { min-width: 0; }
.chapter-num {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: clamp(4.5rem, 13vw, 10rem); line-height: .8; letter-spacing: -.06em;
  background: linear-gradient(180deg, rgb(63 217 224 / .6) 0%, rgb(156 123 255 / .22) 48%, transparent 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums;
}
.chapter-copy { display: grid; gap: 12px; padding-bottom: 6px; }
.chapter-copy h2 { font-family: var(--f-display); font-stretch: 112%; font-size: var(--t-2xl); line-height: 1.04; letter-spacing: -.02em; }
.chapter-copy p { color: var(--ink-2); font-size: var(--t-lg); max-width: 56ch; }
.chapter-track { display: flex; gap: 4px; margin-top: 16px; }
.chapter-track i { width: 28px; height: 3px; border-radius: 999px; background: rgb(255 255 255 / .1); }
.chapter-track i.on { width: 44px; background: var(--aqua); color: var(--aqua); box-shadow: 0 0 10px rgb(63 217 224 / .6); }
.chapter-track i.done { background: rgb(63 217 224 / .35); }
@media (max-width: 640px) { .chapter-grid { grid-template-columns: 1fr; gap: 8px; } .chapter-num { font-size: 4.5rem; } }
.chapter.sm { padding-block: clamp(40px, 6vw, 64px) clamp(16px, 3vw, 28px); }
.chapter.sm .chapter-num { font-size: clamp(3.4rem, 8vw, 6rem); }

/* ---------- accordions (exclusive groups use the native details name attribute) ---------- */
.acc { display: grid; gap: 10px; }
.acc details { border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-card); transition: border-color .2s var(--ease), background .2s var(--ease); }
.acc details[open] { border-color: rgb(255 92 134 / .32); background: var(--surface-hi); box-shadow: var(--sh-card), 0 0 0 1px rgb(255 92 134 / .06), 0 30px 60px -40px rgb(255 92 134 / .45); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 28px; gap: 14px; align-items: center; padding: 18px 20px; min-height: 44px; }
.acc summary::-webkit-details-marker { display: none; }
.acc .acc-ico { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: linear-gradient(180deg, rgb(63 217 224 / .16), rgb(63 217 224 / .03)); border: 1px solid rgb(63 217 224 / .24); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); color: var(--aqua); font: 500 max(12px, .74rem)/1 var(--f-label); }
.acc .acc-ico svg { width: 20px; height: 20px; }
.acc .acc-t { display: grid; gap: 2px; }
.acc .acc-t b { font-family: var(--f-display); font-stretch: 106%; font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.acc .acc-t span { color: var(--ink-3); font-size: .9rem; }
.acc summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--edge-hi); background: rgb(255 255 255 / .03); position: relative; transition: border-color .2s var(--ease), background .2s var(--ease); }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink-2); border-radius: 999px; transition: transform .25s var(--ease); }
.acc summary .pm::after { transform: rotate(90deg); }
.acc details[open] summary .pm::after { transform: rotate(0deg); }
.acc details[open] summary .pm { border-color: var(--berry); }
.acc .acc-body { padding: 0 20px 22px calc(20px + 44px + 14px); color: var(--ink-2); display: grid; gap: 12px; }
.acc .acc-body ul { list-style: none; display: grid; gap: 8px; }
.acc .acc-body li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; }
.acc .acc-body li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--berry); margin-top: 9px; }
.acc .acc-body .src { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .acc details[open] .acc-body { animation: accIn .35s var(--ease); } @keyframes accIn { from { transform: translateY(-6px); } to { transform: none; } } }
@media (max-width: 560px) { .acc summary { grid-template-columns: 36px 1fr 28px; gap: 12px; padding: 16px; } .acc .acc-ico { width: 36px; height: 36px; } .acc .acc-body { padding: 0 16px 18px; } }

/* ---------- testimonials: vertical marquee, columns drift in alternate directions ---------- */
.vm-head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.vm-head h2 { font-family: var(--f-display); font-stretch: 112%; font-size: var(--t-2xl); line-height: 1.04; letter-spacing: -.02em; }
.vm-head h2 .w { display: inline-block; margin-right: .22em; }
@media (prefers-reduced-motion: no-preference) {
  .vm-head h2 .w { animation: wordUp .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
  @keyframes wordUp { from { transform: translateY(12px); } to { transform: none; } }
}
.vm { --vm-h: 600px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; height: var(--vm-h); overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.vm-col { min-width: 0; overflow: hidden; }
.vm-track { display: grid; gap: 14px; animation: vmUp var(--dur, 46s) linear infinite; }
.vm-col.down .vm-track { animation-name: vmDown; }
@keyframes vmUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes vmDown { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }
.vm:hover .vm-track, .vm:focus-within .vm-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .vm-track { animation: none; } }
.vm-card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--sh-card); display: grid; gap: 16px; }
.vm-card blockquote { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.vm-card blockquote b { color: var(--ink); font-weight: 600; }
.vm-who { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.vm-who .mark { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(255 92 134 / .3); background: linear-gradient(180deg, rgb(255 92 134 / .2), rgb(156 123 255 / .1)); display: grid; place-items: center; color: var(--ink); font: 500 max(12px, .74rem)/1 var(--f-label); }
.vm-who b { display: block; font-size: .92rem; }
.vm-who span span { color: var(--ink-3); font-size: .82rem; }
.vm-tag { justify-self: start; font: 500 max(12px, .68rem)/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--berry); }
@media (max-width: 1060px) { .vm { grid-template-columns: repeat(3, 1fr); } .vm-col:nth-child(4) { display: none; } }
@media (max-width: 720px) { .vm { --vm-h: 520px; grid-template-columns: repeat(2, 1fr); } .vm-col:nth-child(3) { display: none; } }
@media (max-width: 420px) { .vm { grid-template-columns: 1fr; } .vm-col:nth-child(2) { display: none; } }

/* ---------- board report (sample) ---------- */
.report-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.report-wrap > * { min-width: 0; }
.report { background: linear-gradient(180deg, var(--deck-2), var(--deck)); border: 1px solid var(--rule-hi); border-radius: var(--r-lg); box-shadow: var(--sh-depth); overflow: hidden; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.report-head b { font-family: var(--f-display); font-stretch: 108%; font-size: 1.15rem; }
.report-head small { display: block; font: 400 max(12px, .72rem)/1.3 var(--f-label); color: var(--ink-3); }
.report-sec { padding: 16px 20px; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
.report-sec:last-child { border-bottom: 0; }
.report-sec h3 { font: 500 max(12px, .72rem)/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rag { list-style: none; display: grid; gap: 6px; }
.rag li { display: grid; grid-template-columns: minmax(110px, 30%) 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.rag li span:nth-child(2) { color: var(--ink-2); }
.decisions { list-style: none; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.decisions li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.decisions li::before { content: "?"; width: 22px; height: 22px; border-radius: 25%; display: grid; place-items: center; background: rgb(245 194 91 / .12); color: var(--warn); font: 600 .75rem/1 var(--f-label); }
@media (max-width: 960px) { .report-wrap { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .rag li { grid-template-columns: 1fr auto; } .rag li span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- reporting lines ---------- */
.lines { display: grid; gap: 0; justify-items: center; text-align: center; }
.lines-node { padding: 14px 18px; border-radius: var(--r); background: var(--deck-2); border: 1px solid var(--rule-hi); display: grid; gap: 2px; min-width: min(260px, 100%); }
.lines-node b { font-family: var(--f-display); font-stretch: 106%; font-size: 1rem; }
.lines-node span { color: var(--ink-3); font-size: .82rem; }
.lines-node.lead { border-color: rgb(255 92 134 / .55); box-shadow: var(--sh-glow); }
.lines-link { width: 2px; height: 26px; background: linear-gradient(var(--berry), var(--rule-hi)); }
.lines-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 14px; border-top: 2px solid var(--rule-hi); width: 100%; }
.lines-row .chip { min-height: 38px; }
.cadence { list-style: none; display: grid; gap: 10px; margin-top: 22px; width: 100%; text-align: left; }
.cadence li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--deck); font-size: .92rem; color: var(--ink-2); }
.cadence b { font: 500 max(12px, .74rem)/1.5 var(--f-label); color: var(--berry); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- compliance year ribbon ---------- */
.ribbon-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--deck); padding: 22px 20px 18px; margin-bottom: 18px; }
.ribbon-year { position: relative; min-width: 760px; display: grid; grid-template-columns: repeat(12, 1fr); }
.ribbon-year .m { border-left: 1px solid var(--rule); padding: 0 0 0 8px; font: 500 max(12px, .72rem)/1 var(--f-label); color: var(--ink-3); letter-spacing: .08em; height: 168px; position: relative; }
.ribbon-year .m::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 10px; height: 6px; border-radius: 999px; background: rgb(255 255 255 / .05); }
.ribbon-year .m .monthly { position: absolute; left: 8px; bottom: 26px; display: flex; gap: 4px; }
.ribbon-year .m .monthly i { width: 8px; height: 8px; border-radius: 50%; background: var(--plum); }
.pin { position: absolute; top: 22px; display: grid; gap: 2px; font-size: .78rem; line-height: 1.25; max-width: 150px; white-space: nowrap; padding-left: 10px; border-left: 2px solid var(--berry); }
.pin b { font: 600 max(12px, .74rem)/1.2 var(--f-label); color: var(--berry); }
.pin span { color: var(--ink-2); }
.ribbon-key { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .8rem; color: var(--ink-3); }
.ribbon-key span { display: inline-flex; align-items: center; gap: 8px; }
.ribbon-key i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- homepage hub and before/after ---------- */
.home-hero .s-hero-grid { grid-template-columns: 1fr 1fr; }
.sys-wrap { display: grid; gap: 8px; justify-items: center; }
.sys-wrap svg { width: 100%; max-width: 540px; height: auto; overflow: visible; }
.sys-ring { fill: none; stroke: rgb(255 255 255 / .07); stroke-width: 1; }
.sys-spoke { stroke: rgb(255 255 255 / .1); stroke-width: 1.25; transition: stroke .25s var(--ease); }
.sys-spoke.on { stroke: var(--berry); }
.sys-node circle { fill: url(#sysNode); stroke: rgb(255 255 255 / .12); stroke-width: 1; transition: fill .25s var(--ease), stroke .25s var(--ease); }
.sys-node text { fill: var(--ink); font-family: var(--f-body); font-size: 15px; font-weight: 600; text-anchor: middle; pointer-events: none; }
.sys-node text.k { font-family: var(--f-label); font-size: 12px; font-weight: 400; fill: var(--ink-3); letter-spacing: .1em; }
.sys-node:hover circle, .sys-node.on circle { stroke: var(--berry); stroke-width: 1.5; }
/* keyboard focus: a thick aqua ring, clearly different from the hover and linked states */
.sys-node:focus-visible circle { stroke: var(--aqua); stroke-width: 3.5; }
.sys-node:focus { outline: none; }
.sys-core circle { fill: url(#sysCore); }
.sys-core .sys-core-hi { fill: none; stroke: rgb(255 255 255 / .35); stroke-width: 1; }
.sys-core text { fill: #1A0A11; font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: 28px; text-anchor: middle; }
.sys-core text.s { font-family: var(--f-label); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; }
.sys-pulse { fill: #FFC2D2; filter: drop-shadow(0 0 4px #FF5C86); }
.sys-caption { max-width: 440px; text-align: center; color: var(--ink-2); font-size: .95rem; min-height: 3.2em; }
.sys-caption b { color: var(--ink); }
@media (max-width: 960px) { .home-hero .s-hero-grid { grid-template-columns: 1fr; } }

.ba { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.ba > * { min-width: 0; }
.toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; border: 1px solid var(--edge-hi); background: rgb(255 255 255 / .03); box-shadow: inset 0 1px 2px rgb(0 0 0 / .5); }
.toggle button { min-height: 44px; padding: 0 20px; border-radius: 999px; transition: background .3s var(--ease), color .3s var(--ease); border: 0; background: transparent; color: var(--ink-2); font: 600 .9rem/1 var(--f-body); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--grad-brand); color: var(--on-berry); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 6px 18px -6px rgb(255 92 134 / .7); }
.ba-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-variant-numeric: tabular-nums; }
.ba-table th { text-align: left; font: 500 max(12px, .72rem)/1.3 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 10px; }
.ba-table td { padding: 14px 0; border-top: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.ba-table td.v { font-family: var(--f-display); font-stretch: 110%; font-size: 1.4rem; font-weight: 600; color: var(--ink); transition: color .3s var(--ease); padding-left: 12px; }
[data-mode="one"] .ba-table td.v { color: var(--aqua); }
/* the diagram: nodes sit at --x/--y with separate suppliers and glide to --x1/--y1 inside Rowan */
.ba-viz { padding: clamp(14px, 2vw, 22px); background: radial-gradient(120% 80% at 50% 0%, rgb(255 92 134 / .07), transparent 60%), var(--surface); }
.ba-stage { position: relative; aspect-ratio: 1 / .86; }
.ba-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ba-wire { fill: none; stroke: rgb(255 255 255 / .16); stroke-width: 1; vector-effect: non-scaling-stroke; transition: opacity .3s var(--ease); }
.ba-bond { fill: none; stroke: rgb(255 92 134 / .5); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .5s var(--ease) .35s; }
.ba-flow { fill: none; stroke: #FFD1DD; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 14 86; opacity: 0; transition: opacity .5s var(--ease) .5s; filter: drop-shadow(0 0 4px #FF5C86); }
.ba-rowan {
  position: absolute; left: 11%; right: 11%; top: 4%; height: 40%; border-radius: var(--r-lg);
  border: 1px solid rgb(255 92 134 / .38); background: linear-gradient(180deg, rgb(255 92 134 / .16), rgb(255 92 134 / .04));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 30px 70px -30px rgb(255 92 134 / .6);
  display: grid; justify-items: center; align-content: start; gap: 2px; padding-top: 14px;
  opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.ba-rowan b { font-family: var(--f-display); font-stretch: 110%; font-size: 1.15rem; letter-spacing: -.01em; }
.ba-rowan small { font-size: .78rem; color: var(--ink-2); }
.ba-node, .ba-you { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); transition: left .8s var(--ease), top .8s var(--ease); }
.ba-node { display: grid; justify-items: center; transition-delay: calc(var(--i) * 40ms); }
.ba-tile {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-2);
  background: var(--surface-hi); border: 1px solid var(--edge-hi); box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 14px 30px -14px rgb(0 0 0 / .9);
  transition: color .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}
.ba-tile svg { width: 22px; height: 22px; }
.ba-name { position: absolute; top: calc(100% + 8px); white-space: nowrap; font-size: .8rem; color: var(--ink-2); transition: opacity .3s var(--ease); }
.ba-you {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
  font: 600 .95rem/1 var(--f-body); color: var(--void); background: linear-gradient(180deg, #FFFFFF, #E7DCEE);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .08), 0 0 0 6px rgb(255 255 255 / .04), 0 18px 40px -12px rgb(255 255 255 / .25);
}
[data-mode="one"] .ba-node, [data-mode="one"] .ba-you { left: var(--x1); top: var(--y1); }
[data-mode="one"] .ba-tile { color: var(--berry); background: rgb(10 7 13 / .55); border-color: rgb(255 92 134 / .3); }
[data-mode="one"] .ba-name, [data-mode="one"] .ba-wire { opacity: 0; }
[data-mode="one"] .ba-rowan { opacity: 1; transform: none; }
[data-mode="one"] .ba-bond, [data-mode="one"] .ba-flow { opacity: 1; }
[data-mode="one"] .ba-you { box-shadow: inset 0 -2px 0 rgb(0 0 0 / .08), 0 0 0 6px rgb(255 92 134 / .12), 0 18px 44px -10px rgb(255 92 134 / .55); }
@media (prefers-reduced-motion: no-preference) {
  [data-mode="one"] .ba-flow { animation: baFlow 2.4s linear infinite; }
  @keyframes baFlow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  html.still .ba-flow { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .ba-node, .ba-you, .ba-rowan { transition: none; } }
@media (max-width: 560px) {
  /* narrow screens: a squarer stage, and the separate suppliers pulled in so their names stay inside the card */
  .ba-stage { aspect-ratio: 1 / 1.05; }
  [data-mode="many"] .ba-node { left: calc(19% + var(--x) * .62); }
  .ba-lines { transform-origin: 0 0; transform: translateX(19%) scaleX(.62); } /* same squeeze, so wires still meet the nodes */
  .ba-name { font-size: max(12px, .72rem); } .ba-tile { width: 40px; height: 40px; } .ba-you { width: 58px; height: 58px; border-radius: 17px; }
}
@media (max-width: 860px) { .ba { grid-template-columns: 1fr; } }

.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-card { padding: 24px; display: grid; gap: 12px; align-content: start; text-decoration: none; }
.svc-card .glyph { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: linear-gradient(180deg, rgb(63 217 224 / .16), rgb(63 217 224 / .03)); border: 1px solid rgb(63 217 224 / .24); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); color: var(--aqua); }
.svc-card .glyph svg { width: 22px; height: 22px; }
.svc-card b { font-family: var(--f-display); font-stretch: 108%; font-size: 1.25rem; line-height: 1.15; display: flex; justify-content: space-between; gap: 8px; }
.svc-card b .arr { color: var(--berry); transition: transform .2s var(--ease); }
.svc-card:hover b .arr { transform: translateX(3px); }
.svc-card p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 960px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-cards { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-lines { display: grid; gap: 14px; margin-top: 26px; }
.contact-lines .k { display: block; font: 500 max(12px, .7rem)/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.enq { padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.enq .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enq .row2 > * { min-width: 0; }
.enq .fld { display: grid; gap: 6px; }
.enq label, .enq legend { font-size: .88rem; color: var(--ink-2); }
.enq input[type="text"], .enq input[type="email"], .enq input[type="tel"], .enq textarea { font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--void); border: 1px solid var(--ink-3); border-radius: var(--r); padding: 12px 14px; width: 100%; }
.enq input:focus, .enq textarea:focus { outline: 2px solid var(--berry); outline-offset: 1px; }
.enq fieldset { border: 0; padding: 0; margin: 0; }
.enq .consent { font-size: .82rem; color: var(--ink-3); }
.enq .msg { font-size: .92rem; color: var(--ink-2); min-height: 1.4em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .enq .row2 { grid-template-columns: 1fr; } }

/* ---------- column FAQ: quiet header, grouped questions on soft cards ---------- */
.fq-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(32px, 5vw, 52px); }
.fq-head-copy { display: grid; gap: 14px; max-width: 640px; }
.fq-cta { flex: none; }
.fq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px); }
.fq-group { display: grid; gap: 16px; align-content: start; min-width: 0; }
.fq-group-head h3 { font-family: var(--f-display); font-stretch: 106%; font-size: 1.08rem; font-weight: 600; }
.fq-group-head p { color: var(--ink-3); font-size: .9rem; margin-top: 2px; }
.fq-list { display: grid; gap: 8px; }
.fq-item { border-radius: var(--r); background: var(--surface); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgb(255 255 255 / .04); transition: border-color .2s var(--ease), background .2s var(--ease); }
.fq-item[open] { background: var(--deck-2); border-color: var(--rule-hi); }
.fq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 16px; gap: 12px; align-items: center; min-height: 48px; padding: 12px 16px; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:hover, .fq-item[open] summary { color: var(--ink); }
.fq-item summary:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; border-radius: var(--r); }
.fq-chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.fq-item[open] .fq-chev { transform: rotate(180deg); color: var(--berry); }
.fq-ans { padding: 0 16px 16px; color: var(--ink-2); font-size: .93rem; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) { .fq-item[open] .fq-ans { animation: accIn .3s var(--ease); } }
.fq-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.fq-split .fq-head { flex-direction: column; align-items: flex-start; margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 1060px) { .fq-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .fq-split { grid-template-columns: 1fr; } .fq-split .fq-head { position: static; } }
@media (max-width: 640px) { .fq-grid { grid-template-columns: 1fr; } }

.vm:focus-visible { outline: 2px solid var(--berry); outline-offset: 6px; border-radius: var(--r-lg); }
@media (prefers-reduced-motion: reduce) {
  .vm { height: auto; -webkit-mask-image: none; mask-image: none; }
  .vm-card[aria-hidden="true"] { display: none; }
}

/* ---------- legal pages ---------- */
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.legal-links a:hover { color: var(--ink); }
.legal-prose .cmp th[scope="row"] { width: 28%; color: var(--ink-2); font: 500 .9rem/1.4 var(--f-body); text-transform: none; letter-spacing: 0; background: transparent; }
.legal-prose .note { margin-top: 4px; }

/* ---------- Earth horizon hero (homepage) ---------- */
.earth-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 86vh, 860px); display: flex; align-items: center;
  padding-block: clamp(72px, 10vw, 120px);
  background: var(--void) url("/assets/img/earth-still.webp") right bottom / cover no-repeat;
}
.earth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; opacity: 0; transition: opacity .8s var(--ease); }
.earth-live .earth-canvas { opacity: 1; }
.earth-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(10 7 13 / .82) 0%, rgb(10 7 13 / .55) 38%, transparent 66%),
              linear-gradient(to top, var(--void) 0%, transparent 22%);
}
.earth-copy { display: grid; gap: 24px; justify-items: start; width: 100%; }
.earth-copy > * { max-width: 640px; }
.earth-copy .h1 { max-width: 12ch; }
.earth-credit { position: absolute; left: max(20px, env(safe-area-inset-left, 0px)); bottom: 20px; z-index: 2; font: 400 max(12px, .7rem)/1 var(--f-label); color: var(--ink-3); letter-spacing: .06em; }
@media (max-width: 899px) {
  .earth-hero { min-height: 0; background-position: 70% bottom; padding-block: 56px 160px; }
  .earth-shade { background: linear-gradient(to bottom, rgb(10 7 13 / .85) 0%, rgb(10 7 13 / .55) 55%, transparent 85%),
                              linear-gradient(to top, rgb(10 7 13 / .9) 0%, transparent 96px); }
  /* the credit sits above the Pause motion button so the two never overlap on narrow screens */
  .earth-credit { bottom: 76px; left: auto; right: max(20px, env(safe-area-inset-right, 0px)); color: var(--ink-2); }
}

/* hub diagram beside the six service cards (chapter 02) */
.hub-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hub-row .svc-cards { grid-template-columns: 1fr 1fr; }
@media (max-width: 1060px) { .hub-row { grid-template-columns: 1fr; } .hub-row .sys-wrap svg { max-width: 460px; } }
@media (max-width: 600px) { .hub-row .svc-cards { grid-template-columns: 1fr; } }

/* ---------- chapter bar: sticky under the nav, the chapter in view lit in aqua ---------- */
.chap-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); z-index: 55; background: rgb(10 7 13 / .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.chap-scroll { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.chap-scroll::-webkit-scrollbar { display: none; }
.chap-scroll a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: .9rem; font-weight: 500; color: var(--ink-3); text-decoration: none; transition: color .2s var(--ease); }
.chap-scroll a:hover, .chap-scroll a[aria-current="true"] { color: var(--ink); }
.chap-scroll a:focus-visible { outline-offset: -4px; }
.chap-ink { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 999px; background: var(--aqua); box-shadow: 0 0 12px rgb(63 217 224 / .7); opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .chap-ink { transition: none; } }

/* ---------- tabs inside chapters ---------- */
.tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 36px); } /* wide panels scroll inside themselves */
.tab-list { position: relative; display: none; gap: 4px; justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 999px; border: 1px solid var(--edge-hi); background: rgb(255 255 255 / .03); box-shadow: inset 0 1px 2px rgb(0 0 0 / .5); }
.tab-list::-webkit-scrollbar { display: none; }
.tabs.ready .tab-list { display: flex; }
.tab-list button { position: relative; z-index: 1; flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 .92rem/1 var(--f-body); cursor: pointer; transition: color .25s var(--ease); }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { color: #061A1C; font-weight: 600; }
.tab-ink { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px; background: linear-gradient(180deg, #6BE6EC, var(--aqua)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 6px 20px -6px rgb(63 217 224 / .7); transition: transform .35s var(--ease), width .35s var(--ease); }
@media (prefers-reduced-motion: reduce) { .tab-ink { transition: none; } }
.tab-panel:focus-visible { outline-offset: 6px; }
.tabs:not(.ready) .tab-panel + .tab-panel { margin-top: clamp(32px, 5vw, 56px); }
/* not under Pause motion: a paused fade would hold its invisible first frame */
@media (prefers-reduced-motion: no-preference) { html:not(.still) .tabs.ready .tab-panel:not([hidden]) { animation: tabIn .45s var(--ease); } @keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } }
.tab-head { margin-bottom: 24px; }
.tab-solo { max-width: 860px; }
@media (max-width: 560px) {
  .tab-list { justify-self: stretch; }
  .tab-list button { flex: 1 0 auto; padding: 0 11px; font-size: .82rem; }
  .chap-scroll a { padding: 0 11px; font-size: .86rem; }
}

/* ---------- phones: no label smaller than 12px, every standalone link a full tap target ---------- */
@media (max-width: 640px) {
  .kpi .k, .console-bar .ttl small, .pill, .ba-table th, .cmp thead th, .legal-prose th, .foot h4, .foot .foot-h,
  .post-card .meta, .post-cover figcaption, .earth-credit, .row .d, .report-head small, .report-sec h3, .src { font-size: .78rem; }
  .sys-node text.k { font-size: 13px; }
  .feed-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* phones: the hub diagram's labels would render near 9px once scaled to the screen; the six
   service cards beside it carry the same content as full tap targets */
@media (max-width: 560px) { .hub-row .sys-wrap { display: none; } }
/* bylines on posts: full tap targets */
@media (max-width: 640px) { .post-meta a, .author b a { display: inline-flex; align-items: center; min-height: 44px; } }


.fld label .opt { color: var(--ink-3); font-weight: 400; }
/* phones: a slightly shorter bar, the logo still large enough for GLOBAL to read */
@media (max-width: 640px) { :root { --nav-h: 72px; } .nav .brand img { height: 56px; } }

/* client confidentiality note (testimonials) */
.conf-note { display: flex; gap: 12px; align-items: flex-start; max-width: 62ch; color: var(--muted, #B9AEC0); font-size: .98rem; line-height: 1.6; margin: 0; }
.conf-lock { flex: 0 0 auto; width: 14px; height: 14px; margin-top: .3em; border: 1.5px solid var(--aqua, #3FD9E0); border-radius: 3px; position: relative; }
.conf-lock::before { content: ""; position: absolute; left: 2px; right: 2px; top: -7px; height: 7px; border: 1.5px solid var(--aqua, #3FD9E0); border-bottom: 0; border-radius: 5px 5px 0 0; }
