/* ============================================================
   WARD OPS — Editorial Modern Refresh
   ============================================================ */

@font-face {
  font-family: 'Policemen';
  src: url('assets/fonts/Policemen.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Policemen';
  src: url('assets/fonts/Policemen-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Policemen';
  src: url('assets/fonts/Policemen-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Policemen';
  src: url('assets/fonts/Policemen-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

:root {
  /* surfaces */
  --bg:        #F4F1E9;
  --bg-elev:   #FBF9F3;
  --bg-inverse:#15171A;
  --bg-card:   #FFFFFF;

  /* ink */
  --ink:       #15171A;
  --ink-2:     #2D3231;
  --ink-3:     #6E726F;
  --ink-4:     #9A9C97;
  --ink-on-dark: #F4F1E9;

  /* rules */
  --rule:      rgba(21,23,26,0.14);
  --rule-soft: rgba(21,23,26,0.07);
  --rule-dark: rgba(244,241,233,0.16);

  /* brand */
  --mint:      #5EBBA8;
  --mint-deep: #2A7A6A;
  --mint-ink:  #1F5B4F;
  --mint-soft: #BFE2D8;
  --mint-wash: rgba(94,187,168,0.10);
  --silver:    #DFDFDF;

  /* type */
  --serif: 'Roboto', system-ui, -apple-system, sans-serif;
  --sans:  'Roboto', system-ui, -apple-system, sans-serif;
  --mono:  'Roboto Mono', 'JetBrains Mono', 'IBM Plex Mono', monospace;
  --display: 'Roboto', system-ui, -apple-system, sans-serif;

  /* metrics */
  --maxw: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);
  --nav-h: 72px;

  /* radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-card: 16px;    /* cards, panels, dropdowns */
  --r-xl:   18px;    /* large surface (megamenu, stack detail) */
  --r-2xl:  20px;    /* hero containers (quiz) */
  --r-pill: 999px;   /* buttons, badges, chips */

  /* semantic tone */
  --tone-mid: #E8A04E;
  --tone-bad: #D14F4F;

  --accent-intensity: 1;
}

[data-theme="dark"] {
  --bg:        #0E1012;
  --bg-elev:   #15171A;
  --bg-card:   #1A1D20;
  --bg-inverse:#F4F1E9;
  --ink:       #F1EEE6;
  --ink-2:     #D7D3C8;
  --ink-3:     #8C8F8B;
  --ink-4:     #5A5D5B;
  --ink-on-dark: #F4F1E9;
  --rule:      rgba(244,241,233,0.14);
  --rule-soft: rgba(244,241,233,0.07);
  --silver:    #2D3231;
}

[data-headings="sans"] {
  --display: 'Roboto', system-ui, sans-serif;
}
[data-headings="serif"] {
  --display: 'Roboto Serif', 'Roboto', Georgia, serif;
}
[data-headings="policemen"] {
  --display: 'Policemen', 'Roboto', sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--mint); color: var(--ink); }

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container--wide {
  max-width: 1640px;
}
.section {
  padding: clamp(48px, 6vw, 96px) 0;
  position: relative;
}
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }

.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-v { width: 1px; background: var(--rule); align-self: stretch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--mint);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
.serif-italic, .accent { font-style: normal; font-weight: 700; color: var(--mint-deep); }
[data-theme="dark"] .serif-italic, [data-theme="dark"] .accent { color: var(--mint); }
em { font-style: normal; }

h1.display { font-size: clamp(40px, 6.8vw, 96px); font-weight: 800; }
h2.display { font-size: clamp(32px, 5vw, 64px); font-weight: 700; line-height: 1.04; }
h3.display { font-size: clamp(22px, 3vw, 40px); font-weight: 600; line-height: 1.1; }
h4.display { font-size: clamp(18px, 2vw, 28px); font-weight: 600; line-height: 1.15; }

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

.body-lg { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.body    { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.mono    { font-family: var(--mono); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background .2s, border-color .2s;
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__left { display: flex; align-items: center; gap: 48px; }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 28px; width: auto; }
/* WARD Tech logo: the brand kit's own on-dark file (an invert filter would turn the mint mark pink) */
.nav__logo-img--dark,
[data-theme="dark"] .nav__logo-img--light { display: none; }
[data-theme="dark"] .nav__logo-img--dark { display: block; }
[data-theme="dark"] .ward-mark { filter: invert(1) brightness(1.05); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  transition: color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px;
  height: 1px; background: var(--mint);
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .15s, background .15s;
}
.status-dot { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1200px) { .status-dot { display: none; } }
.nav__cta:hover { transform: translateY(-1px); background: var(--mint-deep); color: white; }
.nav__cta__dot {
  width: 6px; height: 6px; background: var(--mint); border-radius: 50%;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Services dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: -16px;
  width: 480px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 60px -20px rgba(21,23,26,0.18), 0 2px 8px rgba(21,23,26,0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.nav__dropdown:hover .nav__dropdown-panel,
.nav__dropdown:focus-within .nav__dropdown-panel {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav__dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}
.nav__dropdown-item:hover { background: var(--mint-wash); }
.nav__dropdown-item__dot {
  width: 8px; height: 8px;
  background: var(--mint);
  margin-top: 6px;
  flex-shrink: 0;
  transform: rotate(45deg);
}
.nav__dropdown-item__sub {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
  margin-top: 2px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* Mobile nav */
.nav__menu-btn { display: none; background: transparent; border: 1px solid var(--rule); width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; }
.nav__mobile { display: none; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .nav__mobile {
    position: fixed; inset: 0; top: var(--nav-h); background: var(--bg);
    z-index: 49; padding: 32px var(--pad-x); overflow-y: auto;
    display: none; flex-direction: column; gap: 0;
  }
  .nav__mobile.open { display: flex; }
  .nav__mobile a { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-family: var(--display); font-size: 28px; }
  .nav__mobile .nav__cta { display: inline-flex; margin-top: 24px; align-self: flex-start; }
}

/* ============================================================
   Services list
   ============================================================ */
.services__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 700px) {
  .services__head { grid-template-columns: 1fr; }
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.5fr auto;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  position: relative;
  transition: background .2s;
}
.service-row::after {
  /* Background slab indents on hover via transform — no grid column reflow. */
  content: ""; position: absolute; inset: 0 -16px; background: var(--bg-elev);
  opacity: 0; transition: opacity .2s; z-index: -1; border-radius: 8px;
}
.service-row:hover::after,
.service-row:focus-visible::after { opacity: 1; }
.service-row::before {
  content: ""; position: absolute; left: -16px; top: 0; width: 3px; height: 100%;
  background: var(--mint); transition: transform .25s ease; border-radius: 0 2px 2px 0;
  transform: scaleX(0); transform-origin: left center;
}
.service-row:hover::before,
.service-row:focus-visible::before { transform: scaleX(1); }
.service-row__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.service-row__title {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.service-row__title em { font-style: normal; font-weight: 700; color: var(--mint-deep); }
[data-theme="dark"] .service-row__title em { color: var(--mint); }
.service-row__desc { font-size: 14.5px; color: var(--ink-3); line-height: 1.55; margin: 0; }
.service-row__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: gap .2s, color .2s;
  white-space: nowrap;
}
.service-row__cta svg { transition: transform .2s; }
.service-row:hover .service-row__cta { color: var(--mint-deep); }
.service-row:hover .service-row__cta svg { transform: translate(4px, -4px); }

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "num cta" "title title" "desc desc";
    gap: 12px;
    padding: 24px 0;
  }
  .service-row__num { grid-area: num; }
  .service-row__cta { grid-area: cta; }
  .service-row__title { grid-area: title; }
  .service-row__desc { grid-area: desc; }
}

/* ============================================================
   Metrics - the unit inside window.Counter (nav.jsx)
   ============================================================ */
.metric__unit { font-size: 0.4em; color: var(--mint); }

/* ============================================================
   Clients
   ============================================================ */
.clients__strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
}
@media (max-width: 900px) { .clients__strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .clients__strip { grid-template-columns: repeat(2, 1fr); } }
.clients__cell {
  padding: 32px 24px;
  border-right: 1px solid var(--rule-soft);
  display: flex; align-items: center; justify-content: center;
  height: 120px;
  transition: background .2s;
}
.clients__cell:hover { background: var(--mint-wash); }
.clients__cell img { max-height: 36px; width: auto; opacity: 0.8; transition: opacity .2s; filter: grayscale(100%); }
.clients__cell:hover img { opacity: 1; filter: grayscale(0); }
.clients__cell:nth-child(6n) { border-right: none; }
@media (max-width: 900px) {
  .clients__cell:nth-child(6n) { border-right: 1px solid var(--rule-soft); }
  .clients__cell:nth-child(3n) { border-right: none; }
}

/* ============================================================
   Approach (5 steps)
   ============================================================ */
.approach { background: var(--bg-elev); }

.steps { position: relative; }
.step {
  display: grid;
  grid-template-columns: 140px 1.2fr 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  padding-top: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.step__num span {
  display: inline-block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.step__title { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.step__title em { font-style: normal; font-weight: 700; color: var(--mint-deep); }
[data-theme="dark"] .step__title em { color: var(--mint); }
.step__desc { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

@media (max-width: 800px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .step__num span { font-size: 40px; }
}

/* ============================================================
   CTA / Project form
   ============================================================ */
.cta-band {
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.cta-band__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 900px) { .cta-band__grid { grid-template-columns: 1fr; } }

.cta-band__left {
  padding: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 72px) clamp(48px, 6vw, 96px) 0;
  border-right: 1px solid var(--rule);
}
@media (max-width: 900px) { .cta-band__left { border-right: none; border-bottom: 1px solid var(--rule); padding: 48px 0; } }
.cta-band__left h2 { font-family: var(--display); font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 24px; font-weight: 700; }
.cta-band__left h2 em { font-style: normal; font-weight: 700; color: var(--mint-deep); }
[data-theme="dark"] .cta-band__left h2 em { color: var(--mint); }
.cta-band__left p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; margin: 0; }

.cta-band__form {
  padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 96px) clamp(32px, 4vw, 72px);
  display: flex; flex-direction: column; gap: 0;
}
@media (max-width: 900px) { .cta-band__form { padding: 48px 0; } }

.field {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  background: transparent; border: none; outline: none; color: var(--ink);
  font-family: var(--sans); font-size: 18px; padding: 4px 0;
  resize: none; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 100px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-size: 14px; font-weight: 500;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); background: var(--mint-deep); color: white; }
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--mint:hover { background: var(--mint-deep); color: white; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-inverse);
  color: var(--ink-on-dark);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 0;
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 28px; width: auto; }
.footer__brand p { margin-top: 24px; font-size: 14px; color: rgba(244,241,233,0.6); max-width: 38ch; line-height: 1.55; }
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,241,233,0.5); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-on-dark); font-size: 14px; transition: color .15s; }
.footer a:hover { color: var(--mint); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--rule-dark);
  padding: 24px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(244,241,233,0.5);
}
.footer__bottom a { font-family: var(--mono); color: rgba(244,241,233,0.7); margin-left: 16px; }
.footer__bottom a:hover { color: var(--mint); }

/* ============================================================
   Service detail pages
   ============================================================ */
.svc-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.svc-hero__breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 48px;
  display: flex; gap: 12px; align-items: center;
}
.svc-hero__breadcrumb a:hover { color: var(--mint-deep); }
.svc-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: end;
}
@media (max-width: 900px) { .svc-hero__grid { grid-template-columns: 1fr; } }
.svc-hero__title { font-family: var(--display); font-size: clamp(40px, 6.5vw, 88px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.svc-hero__title em { font-style: normal; font-weight: 800; color: var(--mint-deep); }
[data-theme="dark"] .svc-hero__title em { color: var(--mint); }
.svc-hero__lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.svc-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 700px) { .svc-meta { grid-template-columns: repeat(2, 1fr); } }
.svc-meta__cell {
  padding: 24px;
  border-right: 1px solid var(--rule);
}
.svc-meta__cell:last-child { border-right: none; }
@media (max-width: 700px) {
  .svc-meta__cell:nth-child(2n) { border-right: none; }
  .svc-meta__cell { border-bottom: 1px solid var(--rule); }
  .svc-meta__cell:nth-last-child(-n+2) { border-bottom: none; }
}
.svc-meta__cell h6 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.svc-meta__cell p { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.1; font-weight: 400; letter-spacing: -0.015em; }

.svc-section {
  padding: clamp(60px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--rule);
}
.svc-section:last-of-type { border-bottom: none; }
.svc-section__head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}
@media (max-width: 800px) { .svc-section__head { grid-template-columns: 1fr; gap: 16px; } }
.svc-section__head h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.svc-section__head h2 em { font-style: normal; font-weight: 700; color: var(--mint-deep); }
[data-theme="dark"] .svc-section__head h2 em { color: var(--mint); }

.svc-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 800px) { .svc-pillars { grid-template-columns: 1fr; } }
.svc-pillar {
  padding: 32px;
  border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}
.svc-pillar:last-child { border-right: none; }
@media (max-width: 800px) {
  .svc-pillar { border-right: none; border-top: 1px solid var(--rule); }
}
.svc-pillar__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--mint-deep); margin-bottom: 24px; }
[data-theme="dark"] .svc-pillar__num { color: var(--mint); }
.svc-pillar h4 { font-family: var(--display); font-size: 24px; font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
.svc-pillar p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.55; }

.svc-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 700px) { .svc-tools { grid-template-columns: repeat(2, 1fr); } }
.svc-tool {
  padding: 32px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 180px;
}
.svc-tool img { height: 28px; width: auto; align-self: flex-start; max-width: 120px; }
.svc-tool h5 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.svc-tool p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.svc-tool:nth-child(4n) { border-right: none; }
@media (max-width: 700px) {
  .svc-tool:nth-child(4n) { border-right: 1px solid var(--rule); }
  .svc-tool:nth-child(2n) { border-right: none; }
}

.svc-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 800px) { .svc-outcomes { grid-template-columns: 1fr; } }
.svc-outcome {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
}
.svc-outcome:last-child { border-right: none; }
@media (max-width: 800px) {
  .svc-outcome { border-right: none; border-bottom: 1px solid var(--rule); }
  .svc-outcome:last-child { border-bottom: none; }
}
.svc-outcome__num {
  font-family: var(--display);
  font-size: clamp(54px, 5vw, 80px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--mint-deep);
}
[data-theme="dark"] .svc-outcome__num { color: var(--mint); }
.svc-outcome__num em { font-style: italic; }
.svc-outcome p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

/* Cursor blink for hero */
.cursor-blink { display: inline-block; width: 0.4ch; background: var(--mint); height: 0.85em; vertical-align: -0.05em; animation: blink 1s steps(2) infinite; margin-left: 4px; }
@keyframes blink { 50% { opacity: 0; } }

/* Status dot in nav */
.status-dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.status-dot__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 var(--mint);
  animation: pulse 2s infinite;
}

/* Floating "Tweaks" hint */
.tweaks-hint {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 40;
  display: flex; align-items: center; gap: 8px;
}
.tweaks-hint__dot { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; }

/* ============================================================
   ENGAGEMENTS (case-study cards)
   ============================================================ */
.engagement {
  background: var(--bg-elev);
  padding: 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
  transition: background .2s, box-shadow .2s;
  z-index: 0;
}
.engagement:hover {
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1.5px var(--mint), 0 8px 28px -10px rgba(21,23,26,0.10);
  z-index: 1;
}
.engagement__duration {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.engagement__blurb {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.engagement__metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}
.engagement__metric strong {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--mint-deep);
  line-height: 1;
}
[data-theme="dark"] .engagement__metric strong { color: var(--mint); }
.engagement__metric span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   TIERS / SLA comparison
   ============================================================ */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
}
@media (max-width: 800px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--bg-elev);
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tier:last-child { border-right: none; }
@media (max-width: 800px) {
  .tier { border-right: none; border-bottom: 1px solid var(--rule); }
  .tier:last-child { border-bottom: none; }
}
.tier--highlight {
  background: var(--ink);
  color: var(--ink-on-dark);
}
.tier--highlight * { color: inherit; }
.tier--highlight .tier__name em { color: var(--mint); }

.tier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.tier--highlight .tier__head { border-color: var(--rule-dark); }
.tier__name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.tier__name em { font-style: normal; color: var(--mint-deep); font-weight: 700; }
[data-theme="dark"] .tier__name em { color: var(--mint); }

.tier__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  padding: 4px 10px;
  border: 1px solid var(--mint);
  border-radius: 999px;
}
.tier__summary {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.tier--highlight .tier__summary { color: rgba(244,241,233,0.7); }
.tier__sla {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.tier--highlight .tier__sla { border-color: var(--rule-dark); }
.tier__sla > div {
  display: flex; flex-direction: column; gap: 4px; padding-right: 8px;
}
.tier__sla h6 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.tier--highlight .tier__sla h6 { color: rgba(244,241,233,0.5); }
.tier__sla p {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.tier__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tier__features li {
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  line-height: 1.45;
}
.tier--highlight .tier__features li { color: rgba(244,241,233,0.85); }
.tier__features li svg {
  color: var(--mint-deep); flex-shrink: 0; margin-top: 4px;
}
.tier--highlight .tier__features li svg { color: var(--mint); }

.tier__cta {
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}
.tier--highlight .tier__cta { border-color: var(--rule-dark); }

/* ============================================================
   MEGA-MENU
   ============================================================ */
.megamenu {
  position: absolute;
  top: calc(100% + 8px);
  left: -240px;
  width: 760px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 32px 80px -30px rgba(21,23,26,0.22), 0 4px 12px rgba(21,23,26,0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  /* visibility flips once the fade-out ends, so a closed menu's links leave the tab order */
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  overflow: hidden;
}
/* Open and closed follow the menu state in nav.jsx (hover, focus, click, Esc, route change).
   No CSS :hover here: it kept a closed menu showing under the pointer, and stuck after a tap. */
.megamenu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.megamenu__overview {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--mint) 8%, transparent);
  border-bottom: 1px solid var(--rule-soft);
  transition: background .15s, color .15s;
}
.megamenu__overview:hover { background: var(--mint-wash); color: var(--mint-deep); }
.megamenu__overview svg { transition: transform .2s; }
.megamenu__overview:hover svg { transform: translate(3px, -3px); }
.megamenu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 8px;
}
.megamenu__col {
  padding: 16px;
}
.megamenu__col + .megamenu__col { border-left: 1px solid var(--rule-soft); }
.megamenu__group {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 8px;
}
.megamenu__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background .15s, transform .15s;
}
.megamenu__item:hover { background: var(--mint-wash); }
.megamenu__icon {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.megamenu__icon img { width: 22px; height: 22px; object-fit: contain; }
.megamenu__text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.megamenu__name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.megamenu__short {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.35;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--bg-card);
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.testimonial__mark {
  font-family: var(--display);
  font-size: 56px;
  line-height: 0.5;
  color: var(--mint);
  font-weight: 800;
}
.testimonial__body {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.testimonial__attr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}
.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.testimonial__who {
  display: flex; flex-direction: column;
}
.testimonial__name { font-weight: 600; font-size: 14px; color: var(--ink); }
.testimonial__role { font-size: 12px; color: var(--ink-3); font-family: var(--mono); letter-spacing: 0.04em; }

/* ============================================================
   SERVICE PAGE — sticky TOC
   ============================================================ */
.svc-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 8px;
}
@media (max-width: 1000px) { .svc-body { grid-template-columns: 1fr; gap: 0; } }
.svc-toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 1000px) { .svc-toc { display: none; } }
.svc-toc h6 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.svc-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--ink-3);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: color .15s, border-color .15s;
}
.svc-toc a:hover { color: var(--ink); }
.svc-toc a.active { color: var(--mint-deep); border-color: var(--mint); }
[data-theme="dark"] .svc-toc a.active { color: var(--mint); }
.svc-toc a span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  width: 22px;
  flex-shrink: 0;
}

/* ============================================================
   CASE STUDY page
   ============================================================ */
.case-hero {
  padding: 80px 0 0;
  border-bottom: 1px solid var(--rule);
}
.case-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
  padding-bottom: 80px;
}
@media (max-width: 1000px) { .case-hero__grid { grid-template-columns: 1fr; gap: 32px; } }
.case-hero__title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 32px;
}
.case-hero__summary {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 56ch;
}
.case-hero__side {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-hero__logo-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.case-hero__logo-row img { height: 28px; width: auto; max-width: 140px; object-fit: contain; }
.case-hero__sector {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.case-hero__side dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0;
}
.case-hero__side dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.case-hero__side dd {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  margin: 4px 0 0;
}
.case-hero__chips { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.case-hero__chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-3);
}

.case-section {
  padding: clamp(60px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--rule);
}
.case-section:last-of-type { border-bottom: none; }
.case-section__head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}
@media (max-width: 900px) { .case-section__head { grid-template-columns: 1fr; gap: 16px; } }
.case-section__head h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
}
.case-section__head h2 em { font-style: normal; color: var(--mint-deep); }
[data-theme="dark"] .case-section__head h2 em { color: var(--mint); }
.case-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 70ch;
}
.case-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 800px) { .case-pillars { grid-template-columns: 1fr; } }
.case-pillar {
  padding: 28px 32px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.case-pillar:nth-child(2n) { border-right: none; }
@media (max-width: 800px) { .case-pillar { border-right: none; } }
.case-pillar__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--mint-deep); margin-bottom: 16px; }
[data-theme="dark"] .case-pillar__num { color: var(--mint); }
.case-pillar h4 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.case-pillar p { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }

.case-quote {
  padding: clamp(48px, 6vw, 96px) 0;
  background: var(--bg-inverse);
  color: var(--ink-on-dark);
  border-bottom: none;
}
.case-quote p {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: inherit;
}
.case-quote span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,241,233,0.7); }

.case-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 800px) { .case-outcomes { grid-template-columns: 1fr; } }
.case-outcome {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
}
.case-outcome:last-child { border-right: none; }
@media (max-width: 800px) {
  .case-outcome { border-right: none; border-bottom: 1px solid var(--rule); }
  .case-outcome:last-child { border-bottom: none; }
}
.case-outcome__num {
  font-family: var(--display);
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--mint-deep);
}
[data-theme="dark"] .case-outcome__num { color: var(--mint); }
.case-outcome p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ============================================================
   LEGAL / BLOG-POST long-form pages
   ============================================================ */
.longform {
  padding: 64px 0 96px;
}
.longform__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
@media (max-width: 900px) { .longform__head { grid-template-columns: 1fr; gap: 24px; } }
.longform__title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
}
.longform__title em { font-style: normal; color: var(--mint-deep); }
[data-theme="dark"] .longform__title em { color: var(--mint); }
.longform__intro { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 56ch; }
.longform__meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 16px;
}

.longform__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .longform__body { grid-template-columns: 1fr; gap: 32px; } }

.longform__toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding: 0;
}
.longform__toc h6 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.longform__toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: section;
  display: flex; flex-direction: column; gap: 6px;
}
.longform__toc a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
  transition: color .15s, border-color .15s;
}
.longform__toc a:hover { color: var(--ink); }
@media (max-width: 900px) { .longform__toc { display: none; } }

.longform__article { max-width: 70ch; }
.longform__article h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 56px 0 16px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.longform__article h2:first-child { margin-top: 0; }
.longform__article p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.longform__article ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.longform__article ul li {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
@media (max-width: 700px) { .longform__article ul li { grid-template-columns: 1fr; gap: 6px; } }
.longform__article ul li strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.longform__article ul li span {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

.longform__updated {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Post body */
.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule-soft);
}
.post-author__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--mint);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.post-author__who { display: flex; flex-direction: column; gap: 2px; }
.post-author__name { font-weight: 600; font-size: 14px; color: var(--ink); }
.post-author__role { font-size: 12px; font-family: var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }

/* ============================================================
   MODERN ENTERPRISE — accessibility, motion safety, polish
   ============================================================ */

/* Skip-to-content (visible only when focused via keyboard). */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform .18s;
  box-shadow: 0 8px 24px -8px rgba(21,23,26,0.4);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--mint); outline-offset: 2px; }
:focus { outline: none; }
main:focus { outline: none; }

/* Modern focus-visible ring for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="tab"]:focus-visible,
[role="menuitem"]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav__cta:focus-visible { outline-offset: 4px; }

/* Nav: button reset so megamenu trigger looks identical to anchor siblings. */
.nav__link--btn {
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-weight: inherit;
}

/* Nav: shrink + stronger blur on scroll for a modern enterprise feel. */
.nav {
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.nav--scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 1px 0 var(--rule), 0 8px 24px -16px rgba(21,23,26,0.12);
  border-bottom-color: transparent;
}
.nav--scrolled .nav__inner {
  height: 60px;
  transition: height .25s;
}
.nav__inner { transition: height .25s; }
.nav__right { display: flex; align-items: center; gap: 16px; }

/* Mobile nav: backdrop scrim + modern slide-down sheet. */
.nav__scrim {
  position: fixed; inset: 0;
  background: rgba(21,23,26,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 48;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav__scrim.open { opacity: 1; pointer-events: auto; }
@media (min-width: 961px) { .nav__scrim { display: none; } }

@media (max-width: 960px) {
  .nav__mobile {
    transform: translateY(-12px);
    opacity: 0;
    transition: transform .25s ease, opacity .2s ease;
    pointer-events: none;
    /* Override the legacy display:none flicker — keep flex column and just hide. */
    display: flex !important;
    visibility: hidden;
  }
  .nav__mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .nav__mobile a {
    transition: color .15s, padding-left .15s;
  }
  .nav__mobile a:hover { padding-left: 6px; color: var(--mint-deep); }
  .nav__mobile a.is-current { color: var(--mint-deep); position: relative; }
  .nav__mobile a.is-current::before {
    content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; background: var(--mint); border-radius: 50%;
  }
  .nav__mobile__group { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--rule-soft); }
  .nav__mobile__label {
    display: block;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-3);
    padding: 14px 0 8px;
  }
  .nav__mobile__sub {
    font-size: 18px !important;
    color: var(--ink-3) !important;
    padding: 10px 0 10px 16px !important;
    border-bottom: 1px solid var(--rule-soft) !important;
    font-family: var(--sans) !important;
  }
  .nav__mobile__sub.is-current { color: var(--mint-deep) !important; }
}

/* Footer — extra breakpoint so 3-up doesn't look orphaned at tablet. */
@media (max-width: 1080px) and (min-width: 901px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__top > div:last-child { grid-column: span 3; border-top: 1px solid var(--rule-dark); padding-top: 32px; }
}
.footer__brand p { font-size: 14.5px; line-height: 1.6; }
.footer ul li a { display: inline-flex; align-items: center; gap: 6px; }
.footer ul li a::before {
  content: "›"; opacity: 0; transform: translateX(-4px);
  transition: opacity .15s, transform .15s; color: var(--mint);
}
.footer ul li a:hover::before { opacity: 1; transform: translateX(0); }

/* Motion safety — honour the OS preference. Disables decorative animation
   while keeping interaction transitions snappy. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track,
  .status-dot__pulse,
  .nav__cta__dot,
  .cursor-blink {
    animation: none !important;
  }
}

/* Quiet the dark-mode footer/tier translucent labels for contrast. */
.footer h5 { color: rgba(244,241,233,0.7); }
.footer__bottom { color: rgba(244,241,233,0.65); }
.footer__bottom a { color: rgba(244,241,233,0.8); }
.tier--highlight .tier__sla h6 { color: rgba(244,241,233,0.75); }

/* ============================================================
   PARTNER ICONS — square brand glyphs.
   Simple Icons SVGs are 24x24 with brand-color fill. Place them in
   subtle white badges where the context wants a contained look.
   ============================================================ */
.megamenu__icon,
.svc-tool > img {
  /* prevent any wordmark-era stretching */
  object-fit: contain;
}
.svc-tool > img {
  width: 36px; height: 36px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
}

/* ============================================================
   TIERS — enterprise compare table
   ============================================================ */
.tiers-section { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(72px, 9vw, 140px); }
.tier {
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(21,23,26,0.18); }
.tier--highlight {
  box-shadow: 0 24px 64px -32px rgba(42,122,106,0.55);
}
.tier--highlight::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  z-index: -1; border-radius: inherit; opacity: .5;
  filter: blur(20px);
}

.tiers__compare-toggle {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  justify-content: center;
}
.tiers__compare-toggle .btn { padding: 14px 28px; font-size: 13px; }

.tiers__compare {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height .35s ease, opacity .3s ease, margin-top .3s ease;
}
.tiers__compare.is-open {
  max-height: 2400px;
  opacity: 1;
  margin-top: 32px;
}
.cmp-scroll {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow-x: auto;
  box-shadow: 0 16px 48px -32px rgba(21,23,26,0.14);
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}
.cmp caption.visually-hidden,
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cmp thead th {
  text-align: left;
  padding: 24px 20px;
  background: var(--bg-elev);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  vertical-align: bottom;
  position: relative;
}
.cmp thead th:not(:first-child) { text-align: center; }
.cmp thead th.cmp__col--hl {
  background: color-mix(in srgb, var(--mint) 14%, var(--bg-elev));
  color: var(--mint-ink);
}
[data-theme="dark"] .cmp thead th.cmp__col--hl { color: var(--mint); }
.cmp__pill {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-deep);
}
[data-theme="dark"] .cmp__pill { color: var(--mint); }
.cmp__feature-col { width: 32%; }
.cmp__group th {
  padding: 16px 20px 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-elev);
  border-top: 1px solid var(--rule-soft);
  text-align: left;
}
.cmp tbody tr:not(.cmp__group) th {
  text-align: left;
  padding: 14px 20px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  border-top: 1px solid var(--rule-soft);
}
.cmp tbody td {
  padding: 14px 20px;
  text-align: center;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-2);
  font-size: 13.5px;
}
.cmp tbody td.cmp__col--hl {
  background: color-mix(in srgb, var(--mint) 5%, transparent);
}
.cmp tbody tr:hover td,
.cmp tbody tr:hover th { background: color-mix(in srgb, var(--mint) 4%, var(--bg-card)); }
.cmp tbody tr.cmp__group:hover th { background: var(--bg-elev); }
.cmp__yes {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
}
.cmp__no { color: var(--ink-4); font-weight: 300; }
.cmp__val { font-weight: 500; color: var(--ink); }

/* ============================================================
   SERVICE DETAIL — sticky TOC also works on mobile (pill bar).
   ============================================================ */
@media (max-width: 1000px) {
  .svc-toc {
    display: block !important;
    position: sticky;
    top: var(--nav-h);
    z-index: 30;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    padding: 8px var(--pad-x);
    margin: 0 calc(var(--pad-x) * -1) 24px;
  }
  .svc-toc h6 { display: none; }
  .svc-toc ul {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .svc-toc ul::-webkit-scrollbar { display: none; }
  .svc-toc li { flex-shrink: 0; }
  .svc-toc a {
    flex-direction: row;
    padding: 8px 14px;
    margin: 0;
    border: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    background: var(--bg-card);
  }
  .svc-toc a.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
  }
  .svc-toc a span {
    width: auto;
    color: inherit;
    opacity: 0.55;
  }
}

/* ============================================================
   Consistency & beauty additions
   ============================================================ */

/* Eyebrow → heading spacing: replaces per-component inline marginTop: 24 */
.eyebrow + .display { margin-top: 24px; }
.eyebrow + h2,
.eyebrow + h3 { margin-top: 24px; }

/* Focus rings — accessible, brand-coloured */
.btn:focus-visible,
.engagement:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.nav__cta:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* Apply radius tokens to key surfaces */
.nav__dropdown-panel { border-radius: var(--r-card); }
.megamenu           { border-radius: var(--r-xl); }
.nav__cta,
.btn,
.tier__badge,
.tweaks-hint        { border-radius: var(--r-pill); }

/* ============================================================
   PRODUCTS - nav dropdown + product detail page
   ============================================================ */
/* The status pill is meant to hide at <=1200px (rule next to .nav__cta), but the later
   .status-dot block sets display again. Restore that intent so the nav, now one item
   longer, fits without squeezing the logo. */
@media (max-width: 1200px) { .nav .status-dot { display: none; } }
.nav__logo { flex-shrink: 0; }
/* Cream text on mint is 1.98:1 in the charcoal theme; dark ink on mint is 8.2:1. */
[data-theme="dark"] .btn--mint { color: var(--bg); }
/* Line the Services megamenu up with the logo (logo 99px + .nav__left gap 48px) so it
   never runs off the left edge of the screen. */
.megamenu { left: -147px; }

.prod-hero__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.prod-hero__name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.prod-hero__tagline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 8px;
}
.prod-prose { max-width: 68ch; margin: 0; }

/* Capabilities: 3 per row, rows wrap cleanly */
.prod-pillars .svc-pillar { border-right: 1px solid var(--rule); }
.prod-pillars .svc-pillar:nth-child(3n),
.prod-pillars .svc-pillar:last-child { border-right: none; }
@media (max-width: 800px) {
  .prod-pillars .svc-pillar { border-right: none; }
}

.prod-steps .step { grid-template-columns: 120px 1fr 1.2fr; }
@media (max-width: 800px) { .prod-steps .step { grid-template-columns: 1fr; } }

/* Text-only cells (audiences, data facts) */
.prod-cells .svc-tool { min-height: 0; }
.prod-cells .svc-tool h5 { font-size: 20px; }
.prod-cells--3 { grid-template-columns: repeat(3, 1fr); }
.prod-cells--3 .svc-tool:nth-child(4n) { border-right: 1px solid var(--rule); }
.prod-cells--3 .svc-tool:nth-child(3n) { border-right: none; }
@media (max-width: 700px) {
  .prod-cells, .prod-cells--3 { grid-template-columns: 1fr; }
  .prod-cells .svc-tool, .prod-cells .svc-tool:nth-child(4n) { border-right: none; }
}

/* Let grid columns shrink below their content's min-content width, so the
   horizontally scrolling TOC pill bar (<=1000px) cannot widen the page. */
.prod-body > * { min-width: 0; }

.prod-langs { margin-bottom: 40px; max-width: 68ch; }
.prod-langs .body { margin: 0 0 16px; }
.prod-langs__chips { border-top: none; padding-top: 0; }
.prod-langs__chips .case-hero__chip { font-size: 11px; padding: 6px 12px; color: var(--ink-2); }
@media (max-width: 900px) { .prod-cta-grid { grid-template-columns: 1fr !important; gap: 32px !important; } }

/* ============================================================
   PRODUCTS v2 - Strix page in the Strix app's design (dark surface,
   scoped under main.strix-page and .nav--strix) and coming-soon
   products in the Products dropdown and mobile menu
   ============================================================ */
/* ---- 1. Strix surface tokens: remap the site tokens inside the scope ---- */
.strix-page,
.nav--strix,
html[data-sx-route][data-sx-theme="dark"] {
  --bg: #0A0A0A; --bg-elev: #111111; --bg-card: #171717;
  --ink: #F2F2F2; --ink-2: #C4C4C4; --ink-3: #999999; --ink-4: #6B6B6B;
  --rule: rgba(255,255,255,0.12); --rule-soft: rgba(255,255,255,0.07);
}
/* The dark nav shares the sx-* tokens, so its menus are drawn from the same set (SERVICES v2). */
.strix-page,
.nav--strix,
html[data-sx-route][data-sx-theme="dark"] {
  --sx-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sx-mono: 'Geist Mono', ui-monospace, 'Roboto Mono', Menlo, monospace;
  --sx-surface: #111111; --sx-surface-2: #171717; --sx-card: #0F0F0F;
  --sx-border: #262626; --sx-border-2: #333333;
  --sx-mint: var(--mint);
  --sx-mint-hover: #4FA593;
  --sx-amber: #E8A04E;
  /* light plate behind dark line icons (service and menu icons); a light theme can switch it */
  --sx-plate: #F2F2F2;
  --sx-red: #F06A6E;
  --sx-grad: linear-gradient(90deg, #5DBBA8 0%, #86EAD9 50%, #8AE5C7 100%);
  /* Theme tokens (LIGHT THEME block at the end sets their light values). Dark values are the
     literals these rules used before, so the dark surface draws exactly as it did. */
  --sx-mint-text: var(--sx-mint); --sx-focus: var(--sx-mint);
  --sx-amber-text: var(--sx-amber); --sx-red-text: var(--sx-red);
  --sx-grid-line: rgba(255,255,255,0.035); --sx-dots: rgba(255,255,255,0.04); --sx-edge: rgba(102,102,102,0.6);
  --sx-card-border: #292929; --sx-glow: rgba(94,187,168,0.10); --sx-rule-mint: rgba(94,187,168,0.5);
  --sx-shadow-window: 0 16px 40px -16px rgba(94,187,168,0.10); --sx-shadow-card-hover: 0 8px 24px -8px rgba(94,187,168,0.12);
  --sx-veil: rgba(17,17,17,0.7); --sx-on-mint: #0A0A0A; --sx-ghost-bg: #0A0A0A; --sx-ghost-hover-border: #4D4D4D;
  --sx-label-border: rgba(94,187,168,0.4); --sx-chip-bg: rgba(255,255,255,0.02);
  --sx-chip-mint-bg: rgba(94,187,168,0.08); --sx-chip-mint-border: rgba(94,187,168,0.35);
  --sx-chip-amber-bg: rgba(232,160,78,0.08); --sx-chip-amber-border: rgba(232,160,78,0.35);
  --sx-chip-red-bg: rgba(240,106,110,0.08); --sx-chip-red-border: rgba(240,106,110,0.35);
  --sx-head-chip-bg: rgba(94,187,168,0.08); --sx-num-glow: 0 0 28px rgba(94,187,168,0.35);
  --sx-bar: #262626; --sx-bar-agent: rgba(94,187,168,0.18); --sx-turn-agent: rgba(94,187,168,0.35);
  --sx-track: #262626; --sx-track-fill: rgba(94,187,168,0.6); --sx-track-lo: rgba(232,160,78,0.7);
  --sx-chart-fill: 0.32; --sx-evidence-bg: rgba(232,160,78,0.06); --sx-plate-border: transparent;
  --sx-nav-bg: color-mix(in srgb, #0A0A0A 88%, transparent); --sx-nav-border: rgba(255,255,255,0.08);
  --sx-tint: color-mix(in srgb, var(--sx-mint) 8%, var(--sx-surface-2)); --sx-pager-hover: #171717;
  --sx-switch-on-bg: rgba(94,187,168,0.14);
  --sx-menu-col: color-mix(in srgb, var(--sx-mint) 4%, var(--sx-card)); --sx-menu-card: #171717;
  --sx-field-bg: #0A0A0A; --sx-field-border: #333333; --sx-field-hover: #4D4D4D;
  --sx-ward-head: #16201E; --sx-ward-col: rgba(94,187,168,0.06);
}
.strix-page {
  color-scheme: dark;
  display: block;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--sx-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sx-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  color: var(--ink);
  font-family: var(--sx-sans);
}
/* body too: the nav is 88% opaque, so an ivory body behind it would turn it grey at the top of the page.
   The Strix tokens sit on <html> on Strix routes (html[data-sx-route]), so the base html, body rule
   paints the right ground in either theme, before React runs. */

/* ---- 2. Section frame ---- */
.sx-section { position: relative; padding: 128px 0; }
.sx-section::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--sx-rule-mint) 50%, transparent 100%);
}
.sx-section--last::after { display: none; }
/* in-page jumps land below the sticky nav */
.strix-page [id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.sx-head { text-align: center; max-width: 980px; margin: 0 auto 56px; }
.sx-label {
  display: inline-flex; align-items: center; padding: 4px 12px;
  font: 600 12px/16px var(--sx-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sx-mint-text); border: 1px solid var(--sx-label-border);
}
.sx-h2 {
  font: 700 clamp(28px, 3.35vw, 48px)/1.06 var(--sx-mono); letter-spacing: -0.025em;
  text-transform: uppercase; color: var(--ink); margin: 24px 0 0; text-wrap: balance;
}
/* Keep the gradient phrase together, as staging does; it wraps inside itself only when wider than the line. */
.sx-h2 .serif-italic { display: inline-block; }
.sx-lead { font: 400 18px/28px var(--sx-sans); color: var(--ink-3); max-width: 42rem; margin: 20px auto 0; }
/* rtxt() renders {em} as .serif-italic; on the Strix surface that becomes the mint gradient */
.strix-page .serif-italic,
.sx-grad {
  color: var(--sx-mint-text);
  background: var(--sx-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .strix-page .serif-italic, .sx-grad { background: none; -webkit-text-fill-color: currentColor; }
}

/* ---- 3. Buttons ---- */
.sx-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.sx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 32px; border: 1px solid transparent; border-radius: 0;
  font: 500 12px/16px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.sx-btn svg { transition: transform .15s; }
.sx-btn:hover svg { transform: translateX(4px); }
.sx-btn--primary { background: var(--sx-mint); color: var(--sx-on-mint); }
.sx-btn--primary:hover { background: var(--sx-mint-hover); color: var(--sx-on-mint); }
.sx-btn--ghost { background: var(--sx-ghost-bg); color: var(--ink); border-color: var(--sx-border-2); }
.sx-btn--ghost:hover { background: var(--sx-surface-2); border-color: var(--sx-ghost-hover-border); }
.sx-btn:active { transform: translateY(1px); }
.strix-page .sx-btn:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 3px; border-radius: 0; }

/* ---- 4. Hero ---- */
.sx-hero { position: relative; padding: 24px 0 112px; overflow: hidden; }
.sx-hero::before {
  content: ""; position: absolute; left: 50%; top: 80px; width: 960px; height: 520px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--sx-glow), transparent);
}
.sx-crumbs {
  position: relative; display: flex; align-items: center; gap: 12px;
  font: 400 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.sx-crumbs ol { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.sx-crumbs li + li::before { content: "/"; margin-right: 12px; color: var(--ink-4); }
.sx-crumbs a:hover { color: var(--ink); }
.sx-crumbs [aria-current] { color: var(--ink); }
.sx-crumbs__right { margin-left: auto; }
.sx-hero__inner { position: relative; text-align: center; max-width: 1200px; margin: 96px auto 0; }
.sx-product { font: 600 18px/1 var(--sx-mono); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); padding-left: 0.32em; }
.sx-tagline { margin-top: 12px; font: 400 12px/18px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.sx-h1 {
  margin: 36px 0 0; font: 700 clamp(30px, 4.45vw, 64px)/1.05 var(--sx-mono);
  letter-spacing: -0.025em; text-transform: uppercase; color: var(--ink); text-wrap: balance;
}
.sx-h1 .serif-italic { display: block; }
.sx-hero .sx-lead { margin-top: 28px; max-width: 40rem; }
.sx-hero .sx-actions { margin-top: 40px; }
.sx-meta {
  margin: 72px auto 0; max-width: 960px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--sx-border); background: var(--sx-veil); text-align: left;
}
.sx-meta > div { padding: 20px 24px; }
.sx-meta > div + div { border-left: 1px solid var(--sx-border); }
.sx-meta dt { font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.sx-meta dd { margin: 6px 0 0; font: 400 15px/22px var(--sx-sans); color: var(--ink); }

/* ---- 5. Card with conic edge (static highlight, spins on hover) ---- */
@property --sx-angle { syntax: '<angle>'; initial-value: 300deg; inherits: false; }
.sx-card {
  position: relative; background-color: var(--sx-card); border: 1px solid var(--sx-card-border); padding: 24px;
  background-image: radial-gradient(circle, var(--sx-dots) 1px, transparent 1px);
  background-size: 20px 20px; transition: box-shadow .2s;
}
.sx-card::before {
  content: ""; position: absolute; inset: -1px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--sx-angle), transparent 60%, var(--sx-edge) 80%, var(--sx-mint) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.sx-card:hover { box-shadow: var(--sx-shadow-card-hover); }
.sx-card:hover::before, .sx-card:focus-within::before { animation: sx-spin 4s linear infinite; }
@keyframes sx-spin { to { --sx-angle: 660deg; } }
.sx-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(94,187,168,0.2); background: rgba(94,187,168,0.1); color: var(--sx-mint-text);
}
.sx-card h3 { margin: 20px 0 12px; font: 600 14px/20px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.sx-card p { margin: 0; font: 400 14px/22px var(--sx-sans); color: var(--ink-3); }
.sx-card__idx { font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; color: var(--sx-mint-text); }
.sx-card__idx + h3 { margin-top: 16px; }

.sx-grid { display: grid; gap: 20px; }
.sx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sx-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- 6. Product UI mock ---- */
.sx-window { background: var(--sx-surface); border: 1px solid var(--sx-border); box-shadow: var(--sx-shadow-window); overflow: hidden; }
.sx-window__bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; background: var(--sx-surface-2); border-bottom: 1px solid var(--sx-border); }
.sx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sx-border-2); }
.sx-dot:first-child { background: var(--sx-mint); }
.sx-window__tabs { display: flex; gap: 18px; margin-left: 16px; font: 500 10px/1 var(--sx-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sx-window__tabs b { color: var(--sx-mint-text); font-weight: 600; }
.sx-window__tag { margin-left: auto; font: 500 10px/1 var(--sx-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--sx-border-2); padding: 4px 8px; white-space: nowrap; }
.sx-eval { display: grid; grid-template-columns: 3fr 2fr; }
.sx-eval__convo { padding: 24px; }
.sx-eval__score { padding: 24px 24px 24px 32px; border-left: 1px solid var(--sx-border); }
.sx-mono-s { font: 500 10px/14px var(--sx-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sx-agent { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sx-avatar { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle, rgba(94,187,168,0.9) 0 5px, rgba(94,187,168,0.18) 6px); box-shadow: 0 0 0 2px rgba(94,187,168,0.2); flex-shrink: 0; }
.sx-agent__name { font: 500 12px/16px var(--sx-mono); color: var(--ink); }
.sx-agent__meta { font: 400 11px/16px var(--sx-mono); color: var(--ink-3); }
.sx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font: 500 10px/12px var(--sx-mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--sx-border-2); color: var(--ink-2); background: var(--sx-chip-bg); white-space: nowrap; }
.sx-chip--mint { color: var(--sx-mint-text); border-color: var(--sx-chip-mint-border); background: var(--sx-chip-mint-bg); }
.sx-chip--amber { color: var(--sx-amber-text); border-color: var(--sx-chip-amber-border); background: var(--sx-chip-amber-bg); }
.sx-chip--red { color: var(--sx-red-text); border-color: var(--sx-chip-red-border); background: var(--sx-chip-red-bg); }
.sx-agent .sx-chip { margin-left: auto; }
.sx-turn { padding-left: 10px; border-left: 2px solid var(--sx-border); margin-bottom: 12px; }
.sx-turn--agent { margin-left: 24px; border-left-color: var(--sx-turn-agent); }
.sx-turn .sx-mono-s { display: block; margin-bottom: 6px; }
.sx-bar { height: 8px; border-radius: 2px; background: var(--sx-bar); margin-top: 6px; }
.sx-turn--agent .sx-bar { background: var(--sx-bar-agent); }
.sx-evidence { margin: 4px 0 12px 24px; padding: 12px 14px; border-left: 2px solid var(--sx-amber); background: var(--sx-evidence-bg); }
.sx-evidence q { display: block; font: 400 13.5px/20px var(--sx-sans); color: var(--ink); quotes: "\201C" "\201D"; }
.sx-evidence__why { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font: 400 12.5px/18px var(--sx-sans); color: var(--ink-2); }
.sx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sx-score { display: flex; align-items: center; gap: 14px; margin: 8px 0 22px; flex-wrap: wrap; }
.sx-score__num { font: 700 52px/1 var(--sx-mono); color: var(--sx-mint-text); text-shadow: var(--sx-num-glow); letter-spacing: -0.02em; }
.sx-cat { margin-bottom: 12px; }
.sx-cat__row { display: flex; justify-content: space-between; font: 400 11px/14px var(--sx-mono); color: var(--ink-3); margin-bottom: 6px; }
.sx-cat__row span:last-child { color: var(--ink-2); }
.sx-track { height: 6px; border-radius: 3px; background: var(--sx-track); overflow: hidden; }
.sx-track i { display: block; height: 100%; border-radius: 3px; background: var(--sx-track-fill); }
.sx-track i.lo { background: var(--sx-track-lo); }
.sx-review { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--sx-border); }
.sx-review p { margin: 8px 0 12px; font: 400 13px/20px var(--sx-sans); color: var(--ink-2); }
.sx-mocks { margin-top: 20px; }
.sx-mockcard { background: var(--sx-surface); border: 1px solid var(--sx-border); display: flex; flex-direction: column; }
/* the window takes the spare height, so the three captions line up along the bottom */
.sx-mockcard .sx-window { flex: 1 1 auto; border: 0; box-shadow: none; border-bottom: 1px solid var(--sx-border); }
.sx-mock__body { padding: 20px; }
.sx-mock__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sx-bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; margin-bottom: 14px; }
.sx-bars i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(94,187,168,0.28); }
.sx-bars i.hi { background: rgba(94,187,168,0.45); }
.sx-bars i.lo { background: rgba(232,160,78,0.35); }
.sx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid var(--sx-border); }
.sx-stats b { display: block; font: 700 18px/24px var(--sx-mono); color: var(--ink-2); }
.sx-stats b.m { color: var(--sx-mint-text); }
.sx-rows { display: flex; flex-direction: column; gap: 8px; }
.sx-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; background: var(--sx-surface-2); border: 1px solid var(--sx-border); font: 400 12.5px/18px var(--sx-sans); color: var(--ink-2); }
.sx-row .sx-chip { flex-shrink: 0; }
.sx-mockcard__cap { padding: 20px; }
.sx-mockcard__cap h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 600 12px/16px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.sx-mockcard__cap .sx-icon { width: 28px; height: 28px; }
.sx-note { margin: 28px auto 0; text-align: center; font: 400 11px/16px var(--sx-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ---- 7. Steps ---- */
.sx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--sx-border); background: var(--sx-card); }
.sx-step { padding: 28px 24px 32px; position: relative; }
.sx-step + .sx-step { border-left: 1px solid var(--sx-border); }
.sx-step::before { content: ""; position: absolute; top: -1px; left: 24px; width: 32px; height: 2px; background: var(--sx-mint); }
.sx-step__num { font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-mint-text); }
.sx-step h3 { margin: 16px 0 12px; font: 600 14px/20px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.sx-step p { margin: 0; font: 400 14px/22px var(--sx-sans); color: var(--ink-3); }

/* ---- 8. Comparison ---- */
.sx-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1120px; margin: 0 auto; }
.sx-compare__col { padding: 32px; }
.sx-compare__col--manual { background: var(--sx-surface); border: 1px solid var(--sx-border); }
.sx-compare__col h3 { margin: 0; font: 600 14px/20px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.sx-compare__col > p { margin: 12px 0 24px; font: 400 14px/22px var(--sx-sans); color: var(--ink-3); }
.sx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sx-list li { display: flex; gap: 12px; font: 400 15px/22px var(--sx-sans); color: var(--ink-3); }
.sx-list svg { flex-shrink: 0; margin-top: 3px; }
.sx-list--x svg { color: var(--sx-red-text); }
.sx-list--check svg { color: var(--sx-mint-text); }
.sx-list--check li { color: var(--ink); }

/* ---- 9. Languages & data ---- */
.sx-langs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 28px 32px; background: var(--sx-surface); border: 1px solid var(--sx-border); margin-bottom: 20px; }
.sx-langs p { margin: 0; font: 400 16px/26px var(--sx-sans); color: var(--ink-2); }
.sx-langs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.sx-lang { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--sx-border-2); font: 500 12px/16px var(--sx-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.sx-lang--live { border-color: rgba(94,187,168,0.5); }
.sx-lang--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sx-mint); }
.sx-lang small { font: 500 10px/12px var(--sx-mono); letter-spacing: 0.1em; color: var(--ink-3); border-left: 1px solid var(--sx-border-2); padding-left: 10px; }

/* ---- 10. FAQ ---- */
.sx-faq { max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.sx-faq__item { background: var(--sx-surface); border: 1px solid var(--sx-border); }
.sx-faq__item h3 { margin: 0; }
.sx-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; background: transparent; border: 0; color: var(--ink); text-align: left; font: 500 15px/22px var(--sx-sans); cursor: pointer; transition: background .15s; }
.sx-faq__q:hover { background: var(--sx-surface-2); }
.strix-page .sx-faq__q:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: -2px; border-radius: 0; }
.sx-faq__q svg { flex-shrink: 0; color: var(--ink-3); transition: transform .2s; }
.sx-faq__q[aria-expanded="true"] svg { transform: rotate(180deg); }
.sx-faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .2s ease-out, visibility .2s; }
.sx-faq__a > div { overflow: hidden; }
.sx-faq__a p { margin: 0; padding: 0 20px 20px; font: 400 15px/24px var(--sx-sans); color: var(--ink-3); max-width: 68ch; }
.sx-faq__item.is-open .sx-faq__a { grid-template-rows: 1fr; visibility: visible; }
.sx-faq__more { text-align: center; margin-top: 48px; }
.sx-faq__more p { margin: 0 0 16px; font: 400 14px/20px var(--sx-sans); color: var(--ink-3); }

/* ---- 11. CTA panel ---- */
.sx-cta { position: relative; overflow: hidden; text-align: center; padding: 88px 48px; }
.sx-cta__grid { position: absolute; inset: 0; opacity: 0.2; pointer-events: none;
  background-image: linear-gradient(var(--sx-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--sx-grid-line) 1px, transparent 1px);
  background-size: 64px 64px; }
.sx-cta__glow { position: absolute; top: 0; left: 50%; width: 600px; height: 300px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, var(--sx-glow), transparent); }
.sx-cta > *:not(.sx-cta__grid):not(.sx-cta__glow) { position: relative; }
.sx-cta .sx-h2 { margin-top: 24px; }
/* .sx-card p (0,1,1) would otherwise beat .sx-lead: restate the lead inside the CTA panel. */
.sx-cta p.sx-lead { margin: 20px auto 0; max-width: 42rem; font: 400 18px/28px var(--sx-sans); color: var(--ink-3); }
.sx-cta .sx-actions { margin-top: 40px; }

/* ---- 12. Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .sx-card::before { animation: none !important; }
  .sx-btn svg, .sx-faq__q svg, .sx-faq__a { transition: none !important; }
  .sx-btn:hover svg { transform: none; }
}

/* ---- 13. Breakpoints ---- */
@media (max-width: 1100px) {
  .sx-section { padding: 96px 0; }
  .sx-grid--3, .sx-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .sx-mocks.sx-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sx-mocks .sx-mock__body, .sx-mocks .sx-mockcard__cap { padding: 16px; }
  .sx-steps { grid-template-columns: 1fr; }
  .sx-step { display: grid; grid-template-columns: 96px 220px 1fr; gap: 24px; align-items: baseline; padding: 24px; }
  .sx-step + .sx-step { border-left: 0; border-top: 1px solid var(--sx-border); }
  .sx-step::before { display: none; }
  .sx-step h3 { margin: 0; }
  .sx-hero__inner { margin-top: 72px; }
}
@media (max-width: 1100px) {
  /* three trust cards: stay 3-up rather than leave an orphan in a 2-up grid */
  .sx-grid--trust.sx-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sx-grid--trust .sx-card { padding: 20px; }
  /* below 1100px the three language chips no longer fit beside the text: stack them */
  .sx-langs { grid-template-columns: 1fr; gap: 20px; }
  .sx-langs ul { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .sx-mocks.sx-grid--3, .sx-grid--trust.sx-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sx-compare { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sx-section { padding: 64px 0; }
  .sx-head { margin-bottom: 40px; }
  .sx-lead, .sx-hero .sx-lead, .sx-cta p.sx-lead { font-size: 16px; line-height: 26px; }
  .sx-grid--3, .sx-grid--4 { grid-template-columns: 1fr; }
  .sx-hero { padding-bottom: 72px; }
  .sx-hero__inner { margin-top: 48px; }
  .sx-crumbs__right { display: none; }
  .sx-product { font-size: 16px; }
  .sx-tagline { font-size: 11px; }
  .sx-actions { flex-direction: column; align-items: stretch; }
  .sx-btn { width: 100%; }
  .sx-meta { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .sx-meta > div { padding: 16px; }
  .sx-meta > div + div { border-left: 0; }
  .sx-meta > div:nth-child(even) { border-left: 1px solid var(--sx-border); }
  .sx-meta > div:nth-child(n+3) { border-top: 1px solid var(--sx-border); }
  .sx-eval { grid-template-columns: 1fr; }
  .sx-eval__convo { padding: 20px 16px; }
  .sx-eval__score { border-left: 0; border-top: 1px solid var(--sx-border); padding: 20px 16px; }
  .sx-window__tabs { display: none; }
  .sx-turn--agent, .sx-evidence { margin-left: 12px; }
  .sx-step { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .sx-compare__col { padding: 24px 20px; }
  .sx-langs { padding: 24px 20px; }
  .sx-cta { padding: 56px 20px; }
}
/* Cards that also reveal: keep the reveal fade and rise alongside the hover shadow. */
.sx-card.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .2s; }
/* The footer follows the page; pin its dark tone so the charcoal tweak cannot turn it ivory here. */
main.strix-page ~ .footer { background: #0A0A0A; border-top: 1px solid #262626; }
/* dark text on the mint pill (8.6:1); the shared footer rule made it ivory (2.03:1) */
main.strix-page ~ .footer .btn--mint { color: #0A0A0A; }

/* ---- Products menu: the "Coming soon" pill (desktop cards and mobile rows) ---- */
.megamenu__soon {
  flex-shrink: 0;
  font: 500 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--r-pill);
  padding: 3px 7px; white-space: nowrap;
}

/* ---- Nav on the Strix route: existing nav + data-theme="dark" + .nav--strix ---- */
.nav.nav--strix { background: var(--sx-nav-bg); border-bottom-color: var(--sx-nav-border); }
.nav--strix .megamenu { box-shadow: 0 32px 80px -30px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.3); }
/* Service icons are dark line art: give them the light badge the PARTNER ICONS note prescribes. */
.nav--strix .megamenu__icon { background: var(--sx-plate); border-color: var(--sx-plate-border); }
/* mint-deep is 3.86:1 on #0A0A0A; on the Strix route every mint-deep text state uses mint (8.63:1). */
.nav--strix .megamenu__overview:hover { color: var(--sx-mint-text); }
.nav__mobile.nav--strix a:hover,
.nav__mobile.nav--strix a.is-current,
.nav__mobile.nav--strix .nav__mobile__sub.is-current { color: var(--sx-mint-text) !important; }
/* Text inside the dark nav and sheet: inherit the dark-scope ink, not the ivory body colour.
   The menu button needs it too: buttons do not inherit colour by default. */
.nav.nav--strix, .nav__mobile.nav--strix, .nav--strix .nav__menu-btn { color: var(--ink); }
/* Square corners on the CTA, as on the Strix buttons and menus; ivory routes keep the pill. */
.nav--strix .nav__cta { border-radius: 0; }

/* ---- Mobile menu (<=960px): one sub-link per row, fixed-size CTA pill, coming-soon rows ---- */
@media (max-width: 960px) {
  .nav__mobile__group { display: flex; flex-direction: column; }
  /* the group already draws its own bottom rule; drop the last row's to avoid a double line */
  .nav__mobile__group > :last-child { border-bottom: 0 !important; }
  .nav__mobile .nav__cta { font: 500 15px/1 var(--sans); padding: 12px 20px; }
  /* The live product reads stronger than the coming-soon rows below it. */
  .nav__mobile .nav__mobile__sub--product:not(.is-current) { color: var(--ink) !important; }
  /* Its current-page dot sits on the name line, not between the name and the short line. */
  .nav__mobile a.nav__mobile__sub--product.is-current::before { top: 24px; }
}
.nav__mobile__soon { display: block; padding: 10px 0 12px 16px; border-bottom: 1px solid var(--rule-soft); }
.nav__mobile__soon-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 400 18px/1.3 var(--sans); color: var(--ink-2); }
.nav__mobile__soon .megamenu__soon { margin-left: 0; align-self: center; }
.nav__mobile__soon-short { display: block; margin-top: 4px; font: 400 13px/1.4 var(--sans); color: var(--ink-2); }
/* The product's kind under its name, as on the desktop cards (same colour mix, so it holds 4.5:1). */
.nav__mobile__kind {
  display: block; margin-top: 3px;
  font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--mint-deep) 80%, var(--ink));
}
[data-theme="dark"] .nav__mobile__kind { color: var(--mint); }

/* ============================================================
   PRODUCTS v3 - mega menu: one column per audience
   (WARD.productGroups), each a tinted surface with a header
   (a label, not a link) above its product cards.
   Replaces the single-column Products dropdown of v1/v2.
   ============================================================ */
/* ---- 1. Anchor: the panel hangs from the nav container, not from its trigger, so it starts at
   the content edge (where the Services menu starts) and stays inside it at every width. ---- */
.nav__inner { position: relative; }
.nav__dropdown--products { position: static; }
.megamenu--products {
  /* Containing block is .nav__inner (the .container): its side padding is --pad-x. */
  left: var(--pad-x);
  width: min(960px, calc(100% - 2 * var(--pad-x)));
  /* Same drop as the Services menu: 8px below the trigger, which is 37.7px tall
     (14px x 1.55 line + 2 x 8px padding) and centred in the bar, scrolled or not. */
  top: calc(50% + 27px);
  padding: 10px;
}
/* Muted text that still clears 4.5:1 on the mint tint and the ivory sheet (--ink-3 alone is 4.3:1 there). */
.megamenu--products,
.nav__mobile { --prodmenu-muted: color-mix(in srgb, var(--ink-3) 80%, var(--ink)); }

/* ---- 2. Grid: three equal columns sharing their rows (subgrid), so the headers are one height
   and the first product cards line up across columns. ---- */
.prodmenu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
}
.prodmenu__col {
  display: grid;
  grid-row: span var(--prodmenu-rows, 2);
  grid-template-rows: subgrid;
  gap: 8px;
  align-content: start;
  /* One tinted surface per audience that holds its header and cards and runs to the panel's
     bottom, so a short column reads as a finished group, not as missing cards. */
  padding: 6px;
  border-radius: 16px;
  background: var(--mint-wash);
}

/* ---- 3. Header: the audience, on its column's tint. Not a link: no border, arrow or hover.
   17px side padding lines its text up with the card text below (1px border + 16px padding). ---- */
.prodmenu__head {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 17px;
  cursor: default;
}
.prodmenu__head-title {
  font-family: var(--display); font-size: 15px; font-weight: 500; line-height: 1.3;
  color: var(--ink);
}
.prodmenu__head-short { font-size: 12.5px; line-height: 1.45; color: var(--prodmenu-muted); }

/* ---- 4. Product cards: name, kind, one-liner. The live product is the whole card as a link. ---- */
.prodmenu__card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px 15px;
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  background: var(--bg-card);
}
.prodmenu__card-top { display: flex; align-items: center; gap: 8px; }
.prodmenu__card-name { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink); }
/* mint-deep, deepened a step so the 10px label holds 4.5:1 on the card and on its hover tint */
.prodmenu__card-kind {
  font: 500 10px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--mint-deep) 80%, var(--ink));
}
[data-theme="dark"] .prodmenu__card-kind { color: var(--mint); }
.prodmenu__card-short { margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--prodmenu-muted); }

/* Live: arrow top-right; hover and keyboard focus get the mint border, tint, a small lift and an
   arrow slide. The focus ring keeps the card's radius (the global ring would square it to 4px). */
.prodmenu__card--live { transition: background-color .15s, border-color .15s, transform .15s; }
.prodmenu__card--live:hover,
.prodmenu__card--live:focus-visible {
  background-color: color-mix(in srgb, var(--mint) 10%, var(--bg-card));
  border-color: var(--mint);
  transform: translateY(-2px);
}
.prodmenu__card--live:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 12px; }
.prodmenu__card-arrow {
  flex-shrink: 0; margin-left: auto;
  color: var(--ink-3);
  transition: transform .18s, color .18s;
}
.prodmenu__card--live:hover .prodmenu__card-arrow,
.prodmenu__card--live:focus-visible .prodmenu__card-arrow { transform: translate(2px, -2px); color: var(--mint-deep); }
[data-theme="dark"] .prodmenu__card--live:hover .prodmenu__card-arrow,
[data-theme="dark"] .prodmenu__card--live:focus-visible .prodmenu__card-arrow { color: var(--mint); }

/* Coming soon: same card, not a link and not focusable; no arrow, no hover; the pill sits by the name. */
.prodmenu__card--soon { cursor: default; }
.prodmenu__card--soon .prodmenu__card-top { flex-wrap: wrap; row-gap: 6px; }
.prodmenu__card--soon .prodmenu__card-name { color: var(--ink-2); }

/* ---- 5. Mobile menu (<=960px): each audience as a small sub-label above its products ---- */
@media (max-width: 960px) {
  .nav__mobile__sublabel {
    display: block;
    padding: 16px 0 4px 16px;
    font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--prodmenu-muted);
  }
  .nav__mobile__label + .nav__mobile__sublabel { padding-top: 2px; }
}

/* ============================================================
   PRODUCTS v4 - product pages: every product in the Strix layout
   (Coming soon pill in the hero, an Inside screen per product,
   the early-access form) and the coming-soon menu cards and
   mobile rows as links to those pages
   ============================================================ */
/* ---- 1. Hero: the menu's Coming soon pill, dark, next to the product name ---- */
.sx-product-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; }
.strix-page .sx-soon {
  font: 500 11px/1 var(--sx-mono); letter-spacing: 0.12em;
  padding: 5px 10px; color: var(--ink-2); border-color: var(--sx-border-2); background: var(--sx-soon-bg, rgba(255,255,255,0.03));
}

/* ---- 2. Optional parts: no note under a comparison column, languages without data items ---- */
.sx-compare__col h3 + .sx-list { margin-top: 24px; }
.sx-langs:last-child { margin-bottom: 0; }
/* All-planned language chips are wider than Strix's (no live mark), so give them their own column
   where they sit beside the text; below 1100px they stack as on Strix. */
@media (min-width: 1101px) {
  .sx-langs--soon { grid-template-columns: 1fr auto; }
}

/* ---- 3. Inside screens: text turns, call events, live dot, blocks, Vow's approval card,
   Signet's notes and transcript ---- */
.sx-icon--s { width: 32px; height: 32px; flex-shrink: 0; }
.sx-live {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 1px;
  border-radius: 50%; background: var(--sx-mint); box-shadow: 0 0 0 3px rgba(94,187,168,0.2);
}
@media (prefers-reduced-motion: no-preference) {
  .sx-live { animation: sx-live 1.8s ease-out infinite; }
}
@keyframes sx-live {
  from { box-shadow: 0 0 0 0 rgba(94,187,168,0.5); }
  to { box-shadow: 0 0 0 7px rgba(94,187,168,0); }
}
.sx-turn--text p { margin: 0; font: 400 14px/21px var(--sx-sans); color: var(--ink-2); }
.sx-turn--text.sx-turn--agent p { color: var(--ink); }
.sx-turn--text.sx-turn--agent > .sx-mono-s { color: var(--sx-mint-text); }
/* an event on the call or case (disclosure, verification, confirmation), between the turns */
.sx-event { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.sx-event__at { font: 500 10px/14px var(--sx-mono); letter-spacing: 0.1em; color: var(--ink-3); }
.sx-block > .sx-mono-s { display: block; }
.sx-block + .sx-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--sx-border); }
.sx-block .sx-tags, .sx-block .sx-rows, .sx-block .sx-transcript { margin-top: 10px; }
.sx-block > p { margin: 10px 0 0; font: 400 13.5px/20px var(--sx-sans); color: var(--ink-2); }
/* chips in these screens wrap rather than overflow a narrow column */
.sx-block .sx-chip, .sx-event .sx-chip { white-space: normal; }
.sx-row__ok { display: inline-flex; flex-shrink: 0; color: var(--sx-mint-text); }
/* Vow's approval card: the action and its tier, then label and value rows */
.sx-block__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.sx-block__head b { font: 600 14px/20px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.sx-kv { margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.sx-kv > div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; align-items: baseline; }
.sx-kv dt { font: 500 10px/14px var(--sx-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sx-kv dd { margin: 0; min-width: 0; font: 400 13px/19px var(--sx-sans); color: var(--ink-2); }
.sx-kv dd .sx-row__ok { margin-right: 6px; vertical-align: -2px; }
.sx-transcript .sx-turn:last-child { margin-bottom: 0; }
.sx-row--decision, .sx-row--item { align-items: center; flex-wrap: wrap; }
.sx-row--decision > span:nth-child(2), .sx-row--item > span:first-child { flex: 1 1 12rem; min-width: 0; }
.sx-row__meta { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }

/* ---- 4. Early-access form, inside the #next panel ---- */
.sx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin: 40px auto 0; text-align: left; }
.sx-form__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sx-form__field--wide, .sx-form__foot { grid-column: 1 / -1; }
.sx-form label { font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.sx-form label span { margin-left: 6px; color: var(--ink-3); }
.sx-form input,
.sx-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--sx-field-border); border-radius: 0;
  background: var(--sx-field-bg); color: var(--ink); font: 400 15px/22px var(--sx-sans);
  transition: border-color .15s;
}
.sx-form textarea { min-height: 112px; resize: vertical; }
.sx-form input::placeholder, .sx-form textarea::placeholder { color: var(--ink-3); opacity: 1; }
.sx-form input:hover, .sx-form textarea:hover { border-color: var(--sx-field-hover); }
.strix-page .sx-form input:focus-visible,
.strix-page .sx-form textarea:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 0; border-color: var(--sx-focus); border-radius: 0; }
.sx-form input:disabled, .sx-form textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.sx-form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.sx-form__note { font: 400 13px/20px var(--sx-sans); color: var(--ink-2); }
.sx-form .sx-btn { margin-left: auto; }
.sx-form .sx-btn:disabled { cursor: default; }
.sx-form .sx-btn:disabled svg { transform: none; }
@media (max-width: 700px) {
  .sx-form { grid-template-columns: 1fr; margin-top: 32px; }
}

/* ---- 5. Products menu: a coming-soon card with a page is a link, with the live card's hover,
   focus ring and arrow. Its muted name and the pill stay. ---- */
a.prodmenu__card--soon { cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
a.prodmenu__card--soon:hover,
a.prodmenu__card--soon:focus-visible {
  background-color: color-mix(in srgb, var(--mint) 10%, var(--bg-card));
  border-color: var(--mint);
  transform: translateY(-2px);
}
a.prodmenu__card--soon:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 12px; }
a.prodmenu__card--soon:hover .prodmenu__card-arrow,
a.prodmenu__card--soon:focus-visible .prodmenu__card-arrow { transform: translate(2px, -2px); color: var(--mint-deep); }
[data-theme="dark"] a.prodmenu__card--soon:hover .prodmenu__card-arrow,
[data-theme="dark"] a.prodmenu__card--soon:focus-visible .prodmenu__card-arrow { color: var(--mint); }

/* ---- 6. Mobile menu: a coming-soon row with a page is a link. It keeps the row's own size and
   indent over the sheet's large-link style, and shows the current page like the live product. ---- */
@media (max-width: 960px) {
  .nav__mobile a.nav__mobile__soon { padding: 10px 0 12px 16px; font: 400 18px/1.3 var(--sans); }
  .nav__mobile a.nav__mobile__soon:hover { padding-left: 16px; }
  .nav__mobile a.nav__mobile__soon.is-current::before { top: 22px; }
  .nav__mobile a.nav__mobile__soon.is-current .nav__mobile__soon-name { color: inherit; }
}

/* ============================================================
   HOME v2 - Strix style: the home page (#/) on the Strix surface.
   main.strix-page.hx-home reuses the sx-* system of PRODUCTS v2
   and v4 (tokens, grid surface, heads, cards, steps, windows, form,
   buttons); the hx-* parts below are home-only. The nav and the
   footer turn dark here through the product pages' own hooks
   (strixRoute in nav.jsx, main.strix-page ~ .footer).
   ============================================================ */
/* ---- 1. Focus: square mint rings, as on the product pages ---- */
.hx-home :is(a, button, select, [tabindex="0"]):focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 3px; border-radius: 0; }

/* ---- 2. Hero: meta line, headline, status window, pillars ---- */
.hx-hero { padding-bottom: 96px; }
.hx-meta {
  position: relative; display: flex; align-items: center; gap: 24px;
  font: 400 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.hx-meta__text { display: inline-flex; align-items: center; gap: 10px; }
.hx-meta__text::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; background: var(--sx-mint); }
.hx-meta__rule { flex: 1; height: 1px; background: var(--sx-border); }
.hx-meta__time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx-hero .sx-hero__inner { margin-top: 80px; }
.hx-h1 { margin-top: 0; font-size: clamp(36px, 5vw, 72px); }

.hx-status { max-width: 960px; margin: 72px auto 0; }
.hx-status__title {
  display: inline-flex; align-items: center; min-width: 0; margin-left: 10px;
  font: 500 10px/14px var(--sx-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.hx-status__body { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: end; gap: 32px; padding: 24px 24px 0; }
.hx-status__meta { padding-bottom: 24px; }
.hx-status__meta .sx-mono-s { display: block; }
.hx-status__num {
  margin: 12px 0 16px; font: 700 52px/1 var(--sx-mono); letter-spacing: -0.02em; color: var(--sx-mint-text);
  text-shadow: var(--sx-num-glow); font-variant-numeric: tabular-nums;
}
/* The svg stretches to its box (preserveAspectRatio none): keep the box at the viewBox ratio so the end dot stays round. */
.hx-status__chart { aspect-ratio: 640 / 140; }
.hx-status__chart svg { display: block; width: 100%; height: 100%; }

/* Bordered cells (pillars, metrics, standards): a 1px grid gap over the border colour draws the rules at any column count. */
.hx-cells { margin: 0; display: grid; gap: 1px; background: var(--sx-border); border: 1px solid var(--sx-border); text-align: left; }
.hx-cells > div { min-width: 0; padding: 24px; background: var(--sx-card); }
.hx-cells dt { font: 600 13px/18px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.hx-cells dd { margin: 10px 0 0; font: 400 14px/22px var(--sx-sans); color: var(--ink-3); }
.hx-pillars { max-width: 960px; margin: 20px auto 0; grid-template-columns: repeat(4, 1fr); }
.hx-pillars__idx { display: block; margin-bottom: 12px; font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; color: var(--sx-mint-text); }

/* ---- 3. Ticker; logos on light plates, as the service icons in the dark nav (several are dark artwork) ---- */
.hx-ticker {
  position: relative; padding: 24px 0;
  border-top: 1px solid var(--sx-border); border-bottom: 1px solid var(--sx-border); background: var(--sx-veil);
}
.hx-ticker__inner { display: flex; align-items: center; gap: 40px; }
.hx-ticker__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.hx-ticker__track { display: flex; width: max-content; animation: hx-ticker 60s linear infinite; }
.hx-ticker:hover .hx-ticker__track,
.hx-ticker:focus-within .hx-ticker__track { animation-play-state: paused; }
.hx-ticker__run { display: flex; align-items: center; flex-shrink: 0; gap: 24px; padding: 0 24px 0 0; margin: 0; list-style: none; }
.hx-ticker__label { display: inline-flex; align-items: center; flex-shrink: 0; font: 500 12px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
@keyframes hx-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hx-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 48px; padding: 8px 14px; background: var(--sx-plate); box-shadow: inset 0 0 0 1px var(--sx-plate-border); }
.hx-logo img { width: auto; height: 100%; max-width: 132px; object-fit: contain; }
.hx-ticker__logo { width: 168px; height: 64px; padding: 12px 22px; }
.hx-ticker__logo img { width: 100%; height: 100%; max-width: none; }
.hx-logo--s { width: 40px; height: 32px; padding: 4px; }
.hx-logo--s img { width: 24px; height: 24px; }
.hx-logo--l { width: 56px; height: 56px; padding: 10px; }
.hx-logo--l img { width: 100%; height: 100%; }

/* ---- 4. Quiz ---- */
.hx-quiz { max-width: 960px; margin: 0 auto; padding: 40px; background: var(--sx-surface); border: 1px solid var(--sx-border); }
.hx-quiz__progress { display: flex; gap: 8px; margin-bottom: 28px; }
.hx-quiz__progress > span { position: relative; flex: 1; height: 2px; overflow: hidden; background: var(--sx-border-2); }
.hx-quiz__progress > span.done { background: var(--sx-mint); }
.hx-quiz__progress > span.active::after { content: ""; position: absolute; inset: 0; background: var(--sx-mint); animation: hx-progress .6s ease; }
@keyframes hx-progress { from { width: 0; } to { width: 100%; } }
.hx-quiz__step { display: block; font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.hx-quiz__title { margin: 12px 0 28px; font: 700 clamp(20px, 2.2vw, 28px)/1.2 var(--sx-mono); letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.hx-quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hx-quiz__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 20px; text-align: left; cursor: pointer;
  background: var(--sx-field-bg); border: 1px solid var(--sx-border-2); border-radius: 0; color: var(--ink);
  font: 500 15px/22px var(--sx-sans); transition: border-color .15s, background .15s;
}
.hx-quiz__opt svg, .hx-quiz__rec > svg { flex-shrink: 0; color: var(--ink-3); transition: transform .15s, color .15s; }
.hx-quiz__opt:hover, .hx-quiz__rec:hover { border-color: var(--sx-mint); background: var(--sx-surface-2); }
.hx-quiz__opt:hover svg, .hx-quiz__rec:hover > svg { color: var(--sx-mint-text); transform: translateX(4px); }
.hx-quiz__result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.hx-quiz__result-head p { margin: 0; max-width: 40ch; font: 400 15px/24px var(--sx-sans); color: var(--ink-3); }
.hx-quiz__restart { height: 40px; margin-top: 28px; padding: 0 18px; gap: 8px; }
.hx-quiz__restart:hover svg { transform: none; }
.hx-quiz__recs { display: flex; flex-direction: column; gap: 12px; }
.hx-quiz__rec { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--sx-field-bg); border: 1px solid var(--sx-border-2); transition: border-color .15s, background .15s; }
.hx-quiz__rec-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--sx-plate); box-shadow: inset 0 0 0 1px var(--sx-plate-border); }
.hx-quiz__rec-icon img { width: 24px; height: 24px; }
.hx-quiz__rec-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hx-quiz__rec-name { font: 600 13px/18px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.hx-quiz__rec-short { font: 400 13px/20px var(--sx-sans); color: var(--ink-3); }

/* ---- 5. Services: each card is a link, "Read more" held at the bottom ---- */
.hx-service { display: flex; flex-direction: column; }
.hx-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-mint-text); }
.hx-more svg { transition: transform .15s; }
.hx-service:hover .hx-more svg { transform: translateX(4px); }

/* ---- 6. Metrics ---- */
.hx-stats { grid-template-columns: repeat(5, 1fr); }
.hx-stats > .hx-stat { position: relative; padding: 32px 28px; }
.hx-stat::before { content: ""; position: absolute; top: -1px; left: 28px; width: 32px; height: 2px; background: var(--sx-mint); }
.hx-stat__num { font: 700 clamp(40px, 4.2vw, 60px)/1 var(--sx-mono); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.hx-stat__num .metric__unit { margin-left: 4px; letter-spacing: 0; }
.hx-stat__label { margin-top: 16px; font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ---- 7. Clients ---- */
.hx-clients { grid-template-columns: repeat(2, 1fr); }
.hx-client { display: flex; flex-direction: column; padding: 28px; }
.hx-client__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--sx-border); }
.hx-client__visit { font: 500 10px/14px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; transition: color .15s; }
.hx-client:hover .hx-client__visit { color: var(--sx-mint-text); }
.hx-client h3 { margin: 24px 0 0; font-size: 16px; line-height: 22px; }
.hx-client p.hx-client__sector { margin: 8px 0 0; font: 500 11px/16px var(--sx-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hx-client__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hx-client__chips .sx-chip { white-space: normal; }

/* ---- 8. Buy vs build table; below 700px it scrolls inside its frame ---- */
.hx-table { max-width: 1120px; margin: 0 auto; overflow-x: auto; background: var(--sx-surface); border: 1px solid var(--sx-border); }
/* 560px: on phones the third column shows cut off, so the table reads as scrollable */
.hx-versus { width: 100%; min-width: 560px; border-collapse: collapse; }
.hx-versus th, .hx-versus td { padding: 18px 24px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--sx-border); }
.hx-versus th + th, .hx-versus td + td { border-left: 1px solid var(--sx-border); }
.hx-versus tbody tr:last-child td { border-bottom: 0; }
.hx-versus thead th { padding-top: 24px; padding-bottom: 20px; vertical-align: bottom; background: var(--sx-surface-2); }
.hx-versus td { font: 400 15px/22px var(--sx-sans); color: var(--ink-2); }
.hx-versus .hx-versus__axis { width: 22%; font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.hx-versus__name { display: block; font: 600 14px/20px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.hx-versus thead .sx-chip { margin-top: 10px; }
.hx-versus thead .sx-chip--mint { background: var(--sx-head-chip-bg); }
.hx-versus td.hx-versus__ward { background: var(--sx-ward-col); color: var(--ink); font-weight: 500; }
.hx-versus th.hx-versus__ward { position: relative; background: var(--sx-ward-head); }
.hx-versus th.hx-versus__ward::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--sx-mint); }
.hx-tone { display: inline-flex; align-items: center; gap: 10px; }
.hx-tone::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--ink-3); }
.hx-tone--good::before { background: var(--sx-mint-text); }
.hx-tone--mid::before { background: var(--sx-amber-text); }
.hx-tone--bad::before { background: var(--sx-red-text); }

/* ---- 9. Timeline: the product step strip at six columns ---- */
@media (min-width: 1101px) {
  .hx-steps--6 { grid-template-columns: repeat(6, 1fr); }
  .hx-steps--6 .sx-step { padding: 28px 20px 32px; }
  .hx-steps--6 .sx-step::before { left: 20px; }
}

/* ---- 10. Solutions stack: a tab list beside a window panel ---- */
.hx-stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.hx-stack__list { margin: 0; padding: 0; list-style: none; background: var(--sx-card); border: 1px solid var(--sx-border); }
.hx-stack__list li + li { border-top: 1px solid var(--sx-border); }
.hx-stack__tab {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  width: 100%; padding: 14px 20px; background: transparent; border: 0; border-radius: 0; cursor: pointer; text-align: left;
  font: 600 14px/20px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.hx-stack__tab:hover, .hx-stack__tab.is-active { background: var(--sx-surface-2); color: var(--ink); }
.hx-stack__tab.is-active::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--sx-mint); }
.hx-home .hx-stack__tab:focus-visible { outline-offset: -2px; }
.hx-stack__panel { min-height: 480px; }
.hx-stack__body { padding: 32px; }
.hx-stack__head { display: flex; align-items: center; gap: 16px; }
.hx-stack__head h3 { margin: 0; font: 700 clamp(22px, 2.2vw, 30px)/1.1 var(--sx-mono); letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.hx-stack__body > p { margin: 0; font: 400 15px/24px var(--sx-sans); color: var(--ink-3); }
.hx-stack__body > p.hx-stack__short { margin: 28px 0 12px; font-size: 18px; line-height: 28px; color: var(--ink); }
.hx-stack__features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sx-border); }
.hx-stack__cta { justify-content: flex-start; margin-top: 32px; }

/* ---- 11. Standards band ---- */
.hx-standards { padding: 96px 0; }
.hx-standards__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.hx-standards__title { margin: 20px 0 0; max-width: 34ch; font: 700 clamp(20px, 2vw, 26px)/1.25 var(--sx-mono); letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.hx-standards__count { font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.hx-cells--6 { grid-template-columns: repeat(6, 1fr); }
.hx-cells--6 > div { padding: 24px 20px; }
.hx-cells--6 dd { margin-top: 8px; font-size: 13px; line-height: 20px; }

/* ---- 12. Contact: intro and form side by side on the CTA panel's grid and glow ---- */
.hx-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; overflow: hidden; padding: clamp(32px, 4.5vw, 64px); }
.hx-contact > *:not(.sx-cta__grid):not(.sx-cta__glow) { position: relative; }
.hx-contact .sx-h2 { font-size: clamp(28px, 3vw, 44px); }
.hx-contact p.hx-contact__lead { margin: 24px 0 0; max-width: 46ch; font: 400 16px/26px var(--sx-sans); color: var(--ink-3); }
.hx-contact__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 480px; margin: 40px 0 0; }
.hx-contact__facts dt { font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.hx-contact__facts dd { margin: 8px 0 0; font: 500 17px/24px var(--sx-mono); color: var(--ink); }
.hx-contact__facts a { color: var(--sx-mint-text); transition: color .15s; }
.hx-contact__facts a:hover { color: var(--ink); }
.hx-form { max-width: none; margin: 0; }
.hx-form select {
  width: 100%; padding: 12px 40px 12px 14px; border: 1px solid var(--sx-field-border); border-radius: 0; cursor: pointer;
  background: var(--sx-field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink); font: 400 15px/22px var(--sx-sans); -webkit-appearance: none; appearance: none; transition: border-color .15s;
}
.hx-form select:hover { border-color: var(--sx-field-hover); }
.hx-home .hx-form select:focus-visible { outline-offset: 0; border-color: var(--sx-focus); }
.hx-form select:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- 13. Motion and breakpoints ---- */
@media (prefers-reduced-motion: reduce) {
  .hx-ticker__track { animation: none; }
  .hx-quiz__opt svg, .hx-quiz__rec > svg, .hx-more svg { transition: none !important; }
  .hx-quiz__opt:hover svg, .hx-quiz__rec:hover > svg, .hx-service:hover .hx-more svg { transform: none; }
}
@media (max-width: 1100px) {
  .hx-pillars { grid-template-columns: repeat(2, 1fr); }
  .hx-cells--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hx-stack { grid-template-columns: 1fr; }
  .hx-stack__panel { min-height: 0; }
  .hx-contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .hx-stats { grid-template-columns: 1fr 1fr; }
  .hx-stats > .hx-stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .hx-clients { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hx-hero { padding-bottom: 64px; }
  .hx-meta { flex-wrap: wrap; gap: 8px 16px; }
  .hx-meta__rule { display: none; }
  .hx-hero .sx-hero__inner { margin-top: 48px; }
  .hx-status { margin-top: 48px; }
  .hx-status .sx-dot { display: none; }
  .hx-status .sx-window__bar { height: auto; min-height: 40px; padding: 8px 16px; }
  .hx-status__title { margin-left: 0; }
  .hx-status__body { grid-template-columns: 1fr; gap: 0; padding: 20px 16px 0; }
  .hx-status__meta { padding-bottom: 16px; }
  .hx-status__num { font-size: 44px; }
  .hx-status__chart { margin: 0 -16px; }
  .hx-pillars { grid-template-columns: 1fr; }
  .hx-ticker { padding: 18px 0; }
  .hx-ticker__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hx-ticker__viewport { width: 100%; }
  .hx-ticker__run { gap: 16px; padding-right: 16px; }
  .hx-ticker__logo { width: 128px; height: 52px; padding: 10px 16px; }
  .hx-quiz { padding: 24px 20px; }
  .hx-quiz__options { grid-template-columns: 1fr; }
  .hx-quiz__result { grid-template-columns: 1fr; gap: 28px; }
  .hx-quiz__rec { padding: 14px 16px; gap: 12px; }
  .hx-stats > .hx-stat { padding: 24px 20px; }
  .hx-stat::before { left: 20px; }
  .hx-client { padding: 24px 20px; }
  .hx-stack__tab { padding: 12px 16px; gap: 12px; }
  .hx-stack__body { padding: 24px 20px; }
  .hx-stack__features { grid-template-columns: 1fr; }
  .hx-standards { padding: 64px 0; }
  .hx-standards__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hx-cells--6 { grid-template-columns: repeat(2, 1fr); }
  .hx-contact { padding: 40px 20px; }
  .hx-contact__facts { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   SERVICES v2 - Strix style: #/services and #/services/<slug> on
   the Strix surface (main.strix-page.svx-page), and both mega
   menus in the Strix shape on the dark nav (.nav--strix). Reuses
   the sx-* system of PRODUCTS v2 and v4 (hero, crumbs, meta strip,
   heads, cards, CTA panel, buttons); the svx-* parts below are
   services-only. Colour comes from the sx-* tokens and the remapped
   site tokens, so a light theme can switch them.
   ============================================================ */
/* ---- 1. Focus: square mint rings, as on the product pages ---- */
.svx-page :is(a, button):focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 3px; border-radius: 0; }

/* ---- 2. Hero: the service illustration (assets/illustrations: <slug>.svg moves, <slug>-still.svg is
   served under reduced motion) on a transparent ground that fades into the hero, the eyebrow. The
   light square plate carries the dark line icons on the tool cards and the services index. ---- */
.svx-art-pic { display: block; }
/* The drawing fills only the middle of its square (rows 64-249 of 320): the negative margins tuck
   the empty canvas under the crumbs gap and the eyebrow, so the H1 and lead keep the first screen. */
.svx-art { display: block; width: 320px; height: 320px; margin: -88px auto -48px; pointer-events: none; }
/* Where the hero gap is narrower than that tuck (72px at 1100px and below), the empty canvas reaches
   over the crumbs: the crumb row sits above the hero, so Home and Services stay clickable. */
.svx-page .sx-crumbs { z-index: 1; }
.svx-plate { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; background: var(--sx-plate); box-shadow: inset 0 0 0 1px var(--sx-plate-border); }
.svx-plate img { width: 24px; height: 24px; object-fit: contain; }
.svx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/18px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.svx-eyebrow::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; background: var(--sx-mint); }
.svx-eyebrow + .sx-h1 { margin-top: 28px; }
/* The overview headline keeps its gradient word inside the first line. */
.svx-h1--inline .serif-italic { display: inline; }

/* ---- 3. Principles: bordered cells (the Cells component) with an index number and a mint tick ---- */
.svx-cells { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--sx-border); border: 1px solid var(--sx-border); }
.svx-cells > div { position: relative; min-width: 0; padding: 32px 28px; background: var(--sx-card); }
.svx-cells > div::before { content: ""; position: absolute; top: -1px; left: 28px; width: 32px; height: 2px; background: var(--sx-mint); }
.svx-cells dt { font: 600 14px/20px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.svx-cells__idx { display: block; margin-bottom: 16px; font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; color: var(--sx-mint-text); }
.svx-cells dd { margin: 12px 0 0; font: 400 14px/22px var(--sx-sans); color: var(--ink-3); }

/* ---- 4. Tooling: Strix cards, each logo on a light plate ---- */
.svx-tool .svx-plate { width: 48px; height: 48px; }
.svx-tool .svx-plate img { width: 28px; height: 28px; }

/* ---- 5. Previous / next: two linked cells ---- */
.svx-pager-section { padding: 64px 0; }
.svx-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--sx-border); border: 1px solid var(--sx-border); }
.svx-pager__link { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: 28px 32px; background: var(--sx-card); transition: background-color .15s; }
.svx-pager__link--next { align-items: flex-end; text-align: right; }
.svx-pager__link:hover { background: var(--sx-pager-hover); }
.svx-pager__dir { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); transition: color .15s; }
.svx-pager__dir svg { transition: transform .15s; }
.svx-pager__link--prev .svx-pager__dir svg { transform: rotate(180deg); }
.svx-pager__link:hover .svx-pager__dir { color: var(--sx-mint-text); }
.svx-pager__link--prev:hover .svx-pager__dir svg { transform: rotate(180deg) translateX(4px); }
.svx-pager__link--next:hover .svx-pager__dir svg { transform: translateX(4px); }
.svx-pager__title { margin: 0; font: 700 clamp(18px, 1.8vw, 24px)/1.2 var(--sx-mono); letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }

/* ---- 6. Overview: the cards follow the hero; each is a link, "Read more" held at the bottom ---- */
.svx-index { padding-top: 0; }
.svx-card { display: flex; flex-direction: column; }
.svx-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.svx-card h2 { margin: 20px 0 12px; font: 600 14px/20px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.svx-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-mint-text); }
.svx-more svg { transition: transform .15s; }
.svx-card:hover .svx-more svg { transform: translateX(4px); }

/* ---- 7. Mega menus on Strix routes (.nav--strix): square panel on sx-surface with sx-border,
   Geist Mono labels, icons on light square plates. Service items and the product cards share one
   hover and focus: mint border, mint tint and a 2px lift, with a square ring. Ivory routes keep
   the rounded menus above. ---- */
.nav--strix .megamenu {
  border-radius: 0; background: var(--sx-surface); border-color: var(--sx-border);
  box-shadow: var(--sx-shadow-window);
}
/* 24px wider than on ivory, so the uppercase mono names stay on one line */
.nav--strix .megamenu:not(.megamenu--products) { width: 784px; }
.nav--strix .megamenu__overview {
  font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; color: var(--ink-2);
  background: var(--sx-surface-2); border-bottom-color: var(--sx-border);
}
.nav--strix .megamenu__overview:hover,
.nav--strix .megamenu__overview:focus-visible { color: var(--sx-mint-text); background: var(--sx-tint); }
/* the panel clips its overflow, so the full-width bar takes its ring inside */
.nav--strix .megamenu__overview:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: -2px; border-radius: 0; }
.nav--strix .megamenu__col + .megamenu__col { border-left-color: var(--sx-border); }
.nav--strix .megamenu__group { font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; color: var(--ink-3); border-bottom-color: var(--sx-border); }
.nav--strix .megamenu__item { border: 1px solid transparent; border-radius: 0; transition: background-color .15s, border-color .15s, transform .15s; }
.nav--strix .megamenu__icon { border-radius: 0; }
.nav--strix .megamenu__name { font: 600 12px/16px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.nav--strix .megamenu__short { font: 400 12.5px/18px var(--sx-sans); color: var(--ink-3); }

/* Products: the audience columns, headers and cards of rule #86, squared and in sx-* colours */
.nav--strix .prodmenu__col { border-radius: 0; border: 1px solid var(--sx-border); background: var(--sx-menu-col); }
.nav--strix .prodmenu__head-title { font: 600 13px/18px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.nav--strix .prodmenu__head-short { font-family: var(--sx-sans); }
.nav--strix .prodmenu__card { border-radius: 0; border-color: var(--sx-border-2); background: var(--sx-menu-card); }
.nav--strix .prodmenu__card-name { font: 600 13px/18px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.nav--strix .prodmenu__card--soon .prodmenu__card-name { color: var(--ink-2); }
.nav--strix .prodmenu__card-kind { font-family: var(--sx-mono); color: var(--sx-mint-text); }
.nav--strix .prodmenu__card-short { font-family: var(--sx-sans); }
.nav--strix .megamenu .megamenu__soon { border-radius: 0; border-color: var(--sx-border-2); font-family: var(--sx-mono); color: var(--ink-2); }

.nav--strix .megamenu__item:hover,
.nav--strix .megamenu__item:focus-visible,
.nav--strix .prodmenu__card--live:hover,
.nav--strix .prodmenu__card--live:focus-visible,
.nav--strix a.prodmenu__card--soon:hover,
.nav--strix a.prodmenu__card--soon:focus-visible {
  background-color: var(--sx-tint);
  border-color: var(--sx-mint);
  transform: translateY(-2px);
}
.nav--strix .megamenu__item:focus-visible,
.nav--strix .prodmenu__card--live:focus-visible,
.nav--strix a.prodmenu__card--soon:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 2px; border-radius: 0; }

/* ---- 8. Motion and breakpoints ---- */
@media (prefers-reduced-motion: reduce) {
  .svx-more svg, .svx-pager__dir svg { transition: none !important; }
  .svx-card:hover .svx-more svg, .svx-pager__link--next:hover .svx-pager__dir svg { transform: none; }
  .svx-pager__link--prev:hover .svx-pager__dir svg { transform: rotate(180deg); }
}
@media (max-width: 800px) {
  .svx-cells { grid-template-columns: 1fr; }
}
/* Short laptop windows (1366 x 650, 1536 x 740): a smaller drawing keeps the H1 and lead in view. */
@media (min-width: 701px) and (max-height: 820px) {
  .svx-art { width: 256px; height: 256px; margin: -72px auto -40px; }
}
@media (max-width: 700px) {
  .svx-art { width: 200px; height: 200px; margin: -24px auto 0; }
  .svx-eyebrow + .sx-h1 { margin-top: 20px; }
  .svx-cells > div { padding: 24px 20px; }
  .svx-cells > div::before { left: 20px; }
  .svx-pager-section { padding: 48px 0; }
  .svx-pager { grid-template-columns: 1fr; }
  .svx-pager__link { padding: 24px 20px; }
  .svx-pager__link--next { align-items: flex-start; text-align: left; }
}
/* Phones in landscape (844 x 390, 667 x 375, 640 x 360): the phone drawing, tucked tighter, so the
   H1 starts in the first screen. After the 700px block, so it holds at every width. */
@media (max-height: 500px) {
  .svx-art { width: 200px; height: 200px; margin: -56px auto -32px; }
}
/* The shortest landscape windows (740 x 360, 568 x 320): smaller again, so the H1's first line shows. */
@media (max-height: 400px) {
  .svx-art { width: 160px; height: 160px; margin: -44px auto -36px; }
}
/* Forced colours: keep the light icon plates (dark line icons would vanish on a system background)
   and redraw the 1px dividers that the cell and pager grids paint with their gap. */
@media (forced-colors: active) {
  .svx-plate, .nav--strix .megamenu__icon { forced-color-adjust: none; }
  .svx-cells > div, .svx-pager__link { outline: 1px solid CanvasText; }
}
/* A light contrast theme would show the drawing's dark ground pool as a grey disc: drop the
   decorative hero drawing there. Dark contrast themes keep it. */
@media (forced-colors: active) and (prefers-color-scheme: light) {
  .svx-art-pic { display: none; }
}

/* SERVICES v3 - four groups (services-ia) */
/* ============================================================
   The Services menu, the services index (#/services) and the
   home services section draw their columns, blocks and cards
   from WARD.serviceGroups (data.js). The parts below are added
   on top of MEGA-MENU, SERVICES v2 and HOME v2; the Products
   menu (rule #86) is not touched.
   ============================================================ */
/* ---- 1. Services mega menu, both skins: one column per group (the count comes from the data
   through --mm-cols), wide enough for four, never taller than the window. Its left edge stays
   on the logo. ---- */
.megamenu:not(.megamenu--products),
.nav--strix .megamenu:not(.megamenu--products) {
  width: min(1080px, calc(100vw - 2 * var(--pad-x)));
  max-height: calc(100vh - var(--nav-h) - 24px);
  overflow-y: auto;
}
.megamenu__grid { grid-template-columns: repeat(var(--mm-cols, 4), minmax(0, 1fr)); }

/* Column header: the group and its one-line description. A label, not a link. Two lines are
   held for the description, so the first item starts at the same height in every column. */
.megamenu__head {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 8px 12px; margin-bottom: 8px;
  border-bottom: 1px solid var(--rule-soft);
  cursor: default;
}
.megamenu__head-title { font: 500 11px/16px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.megamenu__head-short { font-size: 12px; line-height: 17px; min-height: 34px; color: var(--ink-3); text-wrap: balance; }
/* On Strix routes the header takes the type of the Products menu header. */
.nav--strix .megamenu__head { border-bottom-color: var(--sx-border); }
.nav--strix .megamenu__head-title { font: 600 13px/18px var(--sx-mono); letter-spacing: 0.05em; }
.nav--strix .megamenu__head-short { font: 400 12.5px/1.45 var(--sx-sans); min-height: 2.9em; color: color-mix(in srgb, var(--ink-3) 80%, var(--ink)); }

/* A wrapped one-liner never leaves one word alone on its last line. */
.megamenu__short { text-wrap: balance; }

/* The one cross-link to Products: a bordered card after the items of the group that carries
   productsLink. Hover and focus as the menu items of the same skin. */
.megamenu__xlink {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 8px; padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: 8px;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.megamenu__xlink-top { display: flex; align-items: center; gap: 8px; }
.megamenu__xlink-title { font-size: 13.5px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.megamenu__xlink-arrow { flex-shrink: 0; margin-left: auto; color: var(--ink-3); transition: transform .18s, color .18s; }
.megamenu__xlink-short { font-size: 11.5px; line-height: 1.35; color: var(--ink-3); text-wrap: balance; }
.megamenu__xlink:hover,
.megamenu__xlink:focus-visible { background-color: var(--mint-wash); }
.megamenu__xlink:hover .megamenu__xlink-arrow,
.megamenu__xlink:focus-visible .megamenu__xlink-arrow { transform: translate(2px, -2px); color: var(--mint-deep); }
.nav--strix .megamenu__xlink { border-radius: 0; border-color: var(--sx-border-2); }
.nav--strix .megamenu__xlink-title { font: 600 12px/16px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.nav--strix .megamenu__xlink-short { font: 400 12.5px/18px var(--sx-sans); }
.nav--strix .megamenu__xlink:hover,
.nav--strix .megamenu__xlink:focus-visible {
  background-color: var(--sx-tint);
  border-color: var(--sx-mint);
  transform: translateY(-2px);
}
.nav--strix .megamenu__xlink:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 2px; border-radius: 0; }
.nav--strix .megamenu__xlink:hover .megamenu__xlink-arrow,
.nav--strix .megamenu__xlink:focus-visible .megamenu__xlink-arrow { color: var(--sx-mint-text); }

/* 1200px and below, down to 961px where the phone menu takes over: two columns by two rows.
   A vertical rule between the two columns only, a horizontal rule above the second row. */
@media (max-width: 1200px) {
  .megamenu:not(.megamenu--products),
  .nav--strix .megamenu:not(.megamenu--products) { width: min(720px, calc(100vw - 2 * var(--pad-x))); }
  .megamenu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .megamenu__col:nth-child(odd) { border-left: 0; }
  .megamenu__col:nth-child(n + 3) { border-top: 1px solid var(--rule-soft); }
  .nav--strix .megamenu__col:nth-child(n + 3) { border-top-color: var(--sx-border); }
  /* Two rows have to fit a laptop screen without scrolling inside the panel: the items show
     their names only, the group descriptions stay and no longer hold a second line. */
  .megamenu:not(.megamenu--products) .megamenu__short { display: none; }
  .megamenu:not(.megamenu--products) .megamenu__item { align-items: center; padding-top: 6px; padding-bottom: 6px; }
  .megamenu__head-short,
  .nav--strix .megamenu__head-short { min-height: 0; }
  /* On Strix routes a description of the second row wraps: both headers of that row hold two
     lines, so its first items start at one height. */
  .nav--strix .megamenu__col:nth-child(n + 3) .megamenu__head-short { min-height: 2.9em; }
}

/* ---- 2. Services index: one block per group (its number, title and lead, left-aligned), then
   its cards in a three-column grid (no group has more than three services), so every card on
   the page has the same width. The three columns hold down to 701px, where the shared grid
   would drop to two and leave a card alone in its row. ---- */
@media (min-width: 701px) and (max-width: 1100px) {
  .svx-group__grid.sx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .svx-group__grid .sx-card { padding: 20px; }
}
.svx-group + .svx-group { margin-top: 80px; }
.svx-group__head { margin-bottom: 28px; }
.svx-group__head .sx-card__idx { display: block; }
.svx-group__title { margin: 12px 0 0; font: 700 clamp(22px, 2.2vw, 30px)/1.15 var(--sx-mono); letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.svx-group__lead { margin: 12px 0 0; max-width: 68ch; font: 400 16px/26px var(--sx-sans); color: var(--ink-2); }
/* The products card: a label where the other cards have their number. The head keeps the height
   of an icon plate, so the heading lines up with the card beside it. */
.svx-card--products .svx-card__head { justify-content: flex-end; min-height: 40px; }
.svx-card--products .sx-card__idx { text-transform: uppercase; }

/* ---- 3. Home: one card per group (not a link itself), its services as link rows, then the
   All services button under the grid. ---- */
.hx-group { display: flex; flex-direction: column; }
.hx-group__list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--sx-border); }
.hx-group__list li { border-bottom: 1px solid var(--sx-border); }
.hx-group__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
  font: 500 12px/16px var(--sx-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2);
  transition: color .15s;
}
.hx-group__list a svg { flex-shrink: 0; color: var(--ink-3); transition: transform .15s, color .15s; }
.hx-group__list a:hover,
.hx-group__list a:focus-visible { color: var(--sx-mint-text); }
.hx-group__list a:hover svg,
.hx-group__list a:focus-visible svg { color: var(--sx-mint-text); transform: translateX(4px); }
.hx-group__all { display: flex; justify-content: center; margin-top: 40px; }
/* Four across: two lines are held for the description, so the lists start at one height. */
@media (min-width: 1101px) {
  .hx-group p { min-height: 44px; }
}

/* ---- 4. Service page: a principle cell with a link to a sub-page (a pillar with href). The
   link takes the type of .svx-more and is held at the bottom, so the links of a row line up. ---- */
.svx-cells > .svx-cells__linked { display: flex; flex-direction: column; }
.svx-cells dd.svx-cells__more { margin-top: auto; padding-top: 24px; }
/* The link is the only target in its cell: the padding gives it a 44px touch height, the equal
   negative margin keeps the layout where it was. */
.svx-cells__more .svx-more { margin-block: -14px; padding-block: 14px; }
.svx-cells__more .svx-more:hover svg,
.svx-cells__more .svx-more:focus-visible svg { transform: translateX(4px); }

/* ---- 5. Motion and the phone ---- */
@media (prefers-reduced-motion: reduce) {
  .megamenu__xlink:hover .megamenu__xlink-arrow,
  .megamenu__xlink:focus-visible .megamenu__xlink-arrow,
  .hx-group__list a:hover svg,
  .hx-group__list a:focus-visible svg,
  .svx-cells__more .svx-more:hover svg,
  .svx-cells__more .svx-more:focus-visible svg { transform: none; }
}
@media (max-width: 700px) {
  /* The first group number clears the lower edge of the hero. */
  .svx-index { padding-top: 32px; }
  .svx-group + .svx-group { margin-top: 56px; }
  .svx-group__head { margin-bottom: 24px; }
  .hx-group__all { margin-top: 32px; }
  /* The four-part breadcrumb of a sub-page wraps between its parts, never inside a name. */
  .svx-crumbs--deep ol { flex-wrap: wrap; row-gap: 4px; }
  .svx-crumbs--deep li { white-space: nowrap; }
  /* The slash trails its part here, so a wrapped line starts with a name, not with a slash. */
  .svx-crumbs--deep li + li::before { content: none; }
  .svx-crumbs--deep li:not(:last-child)::after { content: "/"; margin-left: 12px; color: var(--ink-4); }
  /* A two-line eyebrow (group / service) centres as text, with the marker in the first line. */
  .svx-eyebrow { display: block; text-wrap: balance; }
  .svx-eyebrow::before { display: inline-block; margin-right: 10px; vertical-align: middle; }
  .svx-eyebrow__group { white-space: nowrap; }
}
/* The hero lead of a service page does not end on a single word. */
.svx-page .sx-hero .sx-lead { text-wrap: pretty; }

/* ============================================================
   LIGHT THEME - the Strix surface in light (variant V1: white
   ground, light product windows), with the theme switch in the
   nav and at the foot of the phone menu. Strix routes only
   (home, approach, services, the product pages). The head script
   in index.html sets html[data-sx-theme] (the visitor's choice,
   dark by default) and html[data-sx-route] before first paint;
   nav.jsx keeps both in step. Dark keeps today's values: the token
   blocks of PRODUCTS v2 hold them, also on <html> on Strix routes.
   ============================================================ */
/* ---- 1. Light tokens: on <html>, so the ground, the loader and the footer read them before
   React runs, and on the scopes that set the dark tokens themselves ---- */
html[data-sx-route][data-sx-theme="light"],
html[data-sx-theme="light"] :is(.strix-page, .nav--strix) {
  color-scheme: light;
  --bg: #FFFFFF; --bg-elev: #FFFFFF; --bg-card: #FFFFFF;
  --ink: #0A0A0A; --ink-2: #3A3A3A; --ink-3: #5A5A5A; --ink-4: #858585;
  --rule: rgba(10,10,10,0.12); --rule-soft: rgba(10,10,10,0.07);
  --sx-surface: #FFFFFF; --sx-surface-2: #F5F5F5; --sx-card: #FFFFFF;
  --sx-border: #E6E6E6; --sx-border-2: #D4D4D4;
  --sx-mint-text: #2A7A6A; --sx-focus: #2A7A6A;
  --sx-amber-text: #8A5300; --sx-red-text: #B42F33;
  --sx-grad: linear-gradient(90deg, #1B6458 0%, #1C8278 50%, #268767 100%);
  --sx-grad-s: linear-gradient(90deg, #1F6F61 0%, #1A7F72 50%, #1E805F 100%);
  --sx-grid-line: rgba(10,10,10,0.045); --sx-dots: rgba(10,10,10,0.07); --sx-edge: rgba(10,10,10,0.22);
  --sx-card-border: #E6E6E6; --sx-glow: rgba(94,187,168,0.12); --sx-rule-mint: rgba(42,122,106,0.45);
  --sx-shadow-window: 0 16px 40px -16px rgba(42,122,106,0.20); --sx-shadow-card-hover: 0 8px 24px -8px rgba(42,122,106,0.22);
  --sx-veil: rgba(255,255,255,0.8); --sx-ghost-bg: #FFFFFF; --sx-ghost-hover-border: #A3A3A3;
  --sx-label-border: rgba(42,122,106,0.4); --sx-chip-bg: #FFFFFF; --sx-soon-bg: #FFFFFF;
  --sx-chip-mint-bg: rgba(94,187,168,0.10); --sx-chip-mint-border: rgba(42,122,106,0.35);
  --sx-chip-amber-bg: rgba(232,160,78,0.10); --sx-chip-amber-border: rgba(138,83,0,0.30);
  --sx-chip-red-bg: rgba(240,106,110,0.10); --sx-chip-red-border: rgba(180,47,51,0.30);
  --sx-head-chip-bg: #FFFFFF; --sx-num-glow: none;
  --sx-bar: #EBEBEB; --sx-bar-agent: rgba(94,187,168,0.30); --sx-turn-agent: rgba(42,122,106,0.45);
  --sx-track: #EBEBEB; --sx-track-fill: #5EBBA8; --sx-track-lo: #E8A04E;
  --sx-chart-fill: 0.24; --sx-evidence-bg: rgba(232,160,78,0.10);
  --sx-plate: #F5F5F5; --sx-plate-border: #E6E6E6;
  --sx-nav-bg: rgba(255,255,255,0.88); --sx-nav-border: rgba(10,10,10,0.08);
  --sx-tint: color-mix(in srgb, #5EBBA8 8%, #FFFFFF); --sx-pager-hover: color-mix(in srgb, #5EBBA8 8%, #FFFFFF);
  --sx-switch-on-bg: rgba(94,187,168,0.14);
  --sx-menu-col: color-mix(in srgb, #5EBBA8 7%, #FFFFFF); --sx-menu-card: #FFFFFF;
  --sx-field-bg: #FFFFFF; --sx-field-border: #8A8A8A; --sx-field-hover: #5A5A5A;
  --sx-field-off-bg: #F5F5F5; --sx-field-off-ink: #5A5A5A;
  --sx-ward-head: color-mix(in srgb, #5EBBA8 14%, #FFFFFF); --sx-ward-col: rgba(94,187,168,0.08);
  --sx-footer-bg: #F5F5F5; --sx-footer-border: #E6E6E6; --sx-footer-ink: #0A0A0A;
  --sx-footer-ink-2: #5A5A5A; --sx-footer-hover: #2A7A6A;
}

/* ---- 2. Dark on <html>: the skip link and the footer sit outside the Strix scopes, so they take
   back the site tokens they read today (the :root values) ---- */
html[data-sx-route][data-sx-theme="dark"] :is(.skip-link, .footer) {
  --bg: #F4F1E9; --bg-elev: #FBF9F3; --bg-card: #FFFFFF;
  --ink: #15171A; --ink-2: #2D3231; --ink-3: #6E726F; --ink-4: #9A9C97;
  --rule: rgba(21,23,26,0.14); --rule-soft: rgba(21,23,26,0.07);
}

/* ---- 3. Mint as text reads sx-mint-text in both themes. These parts turned mint only through
   [data-theme="dark"], which the light theme drops from the nav, the sheet and the page. ---- */
.strix-page .accent { color: var(--sx-mint-text); }
.nav__mobile.nav--strix .nav__mobile__kind { color: var(--sx-mint-text); }
.nav--strix :is(.prodmenu__card--live, a.prodmenu__card--soon):is(:hover, :focus-visible) .prodmenu__card-arrow { color: var(--sx-mint-text); }
/* The gradient under 24px (card titles, pager titles, the quiz) takes the small stops in light. */
:is(.sx-card h3, .svx-card h2, .svx-pager__title, .hx-quiz__title, .hx-quiz__result-head, .hx-stack__head h3) .serif-italic { background-image: var(--sx-grad-s, var(--sx-grad)); }
@media (forced-colors: active) {
  :is(.sx-card h3, .svx-card h2, .svx-pager__title, .hx-quiz__title, .hx-quiz__result-head, .hx-stack__head h3) .serif-italic { background: none; }
}
/* The status chart fill: its top stop opacity is a token (0.32 dark, 0.24 light). */
.hx-status__chart #sparkFill stop:first-child { stop-opacity: var(--sx-chart-fill); }

/* ---- 4. The theme switch: two toggle buttons, Dark then Light. Pressed = tint, mint icon and a
   2px bar at its foot; no border, so the focus ring is the only square line around an option ---- */
.sx-theme {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px; flex-shrink: 0;
  border: 1px solid var(--sx-border-2); background: var(--bg);
}
.sx-theme__opt {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--ink-3);
  transition: color .15s, background-color .15s;
}
.sx-theme__opt svg { flex-shrink: 0; }
.sx-theme__opt:hover { color: var(--ink); background: var(--sx-surface-2); }
.sx-theme__opt[aria-pressed="true"] { color: var(--sx-mint-text); background: var(--sx-switch-on-bg); cursor: default; }
.sx-theme__opt[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--sx-mint-text);
}
.nav--strix .sx-theme__opt:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 3px; border-radius: 0; }
/* Phone menu: 44px buttons with their visible names */
.sx-theme--lg .sx-theme__opt {
  width: auto; height: 44px; padding: 0 16px;
  font: 500 11px/16px var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.sx-theme--lg .sx-theme__opt[aria-pressed="true"]::after { left: 0; right: 0; }
@media (prefers-reduced-motion: reduce) {
  .sx-theme__opt { transition: none; }
}
/* The bar holds the switch from 961px; on phones it sits only at the foot of the menu sheet. */
@media (max-width: 960px) {
  .nav__right .sx-theme { display: none; }
}
.nav__mobile__theme { display: none; }
@media (max-width: 960px) {
  /* Pinned under the scrolling list: the negative margins take it to the sheet's edges and its
     bottom padding, so it sits flush at the foot while the list scrolls. */
  .nav__mobile__theme {
    position: sticky; bottom: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin: auto calc(-1 * var(--pad-x)) -32px; padding: 14px var(--pad-x) 18px;
    border-top: 1px solid var(--rule); background: var(--bg);
  }
  .nav__mobile .nav__mobile__theme .nav__mobile__label { padding: 0; }
  .nav__mobile .nav__cta + .nav__mobile__theme { margin-top: 24px; }
}
/* Forced colours, after every switch rule: the pressed option in Highlight, the ring in CanvasText. */
@media (forced-colors: active) {
  .sx-theme .sx-theme__opt[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .sx-theme .sx-theme__opt[aria-pressed="true"]::after { background: HighlightText; }
  .nav--strix .sx-theme .sx-theme__opt:focus-visible { outline-color: CanvasText; }
}

/* ---- 5. Footer: dark on every route except the light Strix theme, where it is a light band with
   the dark-artwork logo. The logo follows the footer's ground, not the theme. ---- */
.footer__logo--light { display: none; }
html[data-sx-route][data-sx-theme="light"] main.strix-page ~ .footer {
  background: var(--sx-footer-bg); border-top: 1px solid var(--sx-footer-border); color: var(--sx-footer-ink);
}
html[data-sx-route][data-sx-theme="light"] main.strix-page ~ .footer .footer__logo--dark { display: none; }
html[data-sx-route][data-sx-theme="light"] main.strix-page ~ .footer .footer__logo--light { display: block; }
html[data-sx-route][data-sx-theme="light"] main.strix-page ~ .footer a { color: var(--sx-footer-ink); }
html[data-sx-route][data-sx-theme="light"] main.strix-page ~ .footer :is(.footer__brand p, h5, .footer__bottom, .footer__bottom a) { color: var(--sx-footer-ink-2); }
html[data-sx-route][data-sx-theme="light"] main.strix-page ~ .footer :is(a:hover, .footer__bottom a:hover) { color: var(--sx-footer-hover); }
html[data-sx-route][data-sx-theme="light"] main.strix-page ~ .footer ul li a::before { color: var(--sx-footer-hover); }
html[data-sx-route][data-sx-theme="light"] main.strix-page ~ .footer :is(.footer__bottom, .footer__top > div) { border-top-color: var(--sx-footer-border); }
html[data-sx-route][data-sx-theme="light"] main.strix-page ~ .footer .btn--mint:hover { color: #FFFFFF; }

/* ---- 6. Light-only states: disabled fields stay readable without the 60% fade (dark keeps it),
   and the select chevron in ink-3 ---- */
html[data-sx-theme="light"] .strix-page :is(.sx-form input, .sx-form textarea, .hx-form select):disabled {
  opacity: 1; background-color: var(--sx-field-off-bg); color: var(--sx-field-off-ink); border-color: var(--sx-border);
}
html[data-sx-theme="light"] .strix-page :is(.sx-form input, .sx-form textarea):disabled::placeholder { color: var(--sx-field-off-ink); }
html[data-sx-theme="light"] .strix-page .hx-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ---- 7. Interim, pending light artwork: the service drawings carry a dark ground pool that reads
   as a grey disc on white, so light shows them inverted (hue kept). Remove once light files exist. ---- */
html[data-sx-theme="light"] .svx-art { filter: invert(1) hue-rotate(180deg); }
/* The hidden skip link's shadow peeks over the top edge on the white ground. */
html[data-sx-route][data-sx-theme="light"] .skip-link:not(:focus) { box-shadow: none; }
