/* ==========================================================================
   Chevron Activate: one stylesheet for every page.

   1. Design tokens (spacing, palettes, type options)
   2. Base elements
   3. Layout helpers
   4. Components (logo, header, buttons, cards, phases, footer ...)
   5. Brand preview bar (dev only)

   Every colour and font comes from a token, so a brand option is just a
   different set of token values. Nothing below section 1 names a colour.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */

/* Fonts: self-hosted from /fonts/ (latin subset, variable weight). No Google Fonts
   requests. Licences (SIL OFL 1.1) sit beside the files. A face only downloads
   when a page actually uses it. */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }


:root {
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;   --s7: 3rem;    --s8: 4.5rem;
  --radius: 10px;
  --container: 70rem;
  --measure: none; /* text runs the full width of its container */

  /* Palette: Harbor (default). Navy and deep teal with sand and clay. */
  --bg: #FBFAF7;        --surface: #FFFFFF;   --tint: #EDF2F3;
  --ink: #10222E;       --ink-soft: #465C69;  --line: #D5DDE1;
  --brand: #0F6470;     --on-brand: #FFFFFF;  --brand-text: #0F6470;
  --deep: #0C2C3E;      --on-deep: #F2F6F7;   --on-deep-soft: #B9CBD3;
  --accent: #B9703F;    --accent-soft: #F3E8DA;

  /* Type: Clean (default) */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-weight: 700;
  --head-tracking: -0.02em;
}

/* Palette: Tidewater. Blue leads, teal is the accent. */
html[data-palette="tidewater"] {
  --bg: #F8FAFC;        --surface: #FFFFFF;   --tint: #E8EFF6;
  --ink: #132238;       --ink-soft: #475870;  --line: #D3DCE7;
  --brand: #1F5C99;     --on-brand: #FFFFFF;  --brand-text: #1F5C99;
  --deep: #12304F;      --on-deep: #F1F5FA;   --on-deep-soft: #B7C7DA;
  --accent: #2B7F86;    --accent-soft: #DDEDEE;
}

/* Palette: Estuary. Earth tones lead, deep teal for action. */
html[data-palette="estuary"] {
  --bg: #F7F2EA;        --surface: #FFFDF9;   --tint: #EDE4D5;
  --ink: #1F2A2B;       --ink-soft: #535F5B;  --line: #DBCFBC;
  --brand: #1E5B5E;     --on-brand: #FFFFFF;  --brand-text: #1E5B5E;
  --deep: #1B3A3C;      --on-deep: #F7F2EA;   --on-deep-soft: #C4D2CF;
  --accent: #B5652F;    --accent-soft: #EAD9C3;
}

/* Palette: Night. Dark navy with a soft, muted teal and sand. */
html[data-palette="night"] {
  color-scheme: dark;
  --bg: #0D1C28;        --surface: #142939;   --tint: #0A1620;
  --ink: #EAF1F4;       --ink-soft: #A9BBC6;  --line: #27414F;
  --brand: #78B4BA;     --on-brand: #08202A;  --brand-text: #8CC3C8;
  --deep: #071018;      --on-deep: #EAF1F4;   --on-deep-soft: #A9BBC6;
  --accent: #D7A56C;    --accent-soft: #1D3545;
  --cta-bg: #1D3545;    /* Night brand teal is too light under light text */
}

/* Palette: Rust (exploration). Harbor with a rust lead chevron in place of clay.
   Rust clears 4.8:1 on the page, so unlike clay it can carry text. On the deep
   footer the lead chevron uses the lighter rust so it still reads. */
html[data-palette="rust"] { --accent: #B4532A; --accent-soft: #F5E4DA; }
html[data-palette="rust"] .site-footer .logo-mark .m1 { stroke: #E0845A; }

/* Palette: Harbor, muted (exploration). Warm stone page, dark teal brand, today's
   deep blue for dark areas, clay #C1917F on the lead chevron everywhere, and the
   14-step Fog ramp for departments and phases. Clay is too light for small text,
   so card numbers and hints use deep rust #8E4F3E. */
html[data-palette="muted"] {
  --bg: #F0EBE1;        --surface: #FFFFFF;   --tint: #E6ECEC;
  --ink: #13263A;       --ink-soft: #4D5E66;  --line: #D8D3C8;
  --brand: #1F5A63;     --on-brand: #FFFFFF;  --brand-text: #1F5A63;
  --deep: #0C2C3E;      --on-deep: #F0F3F2;   --on-deep-soft: #BCC9CA;
  --accent: #C1917F;    --accent-soft: #F3E3DA;
  --accent-text: #8E4F3E; --corner-3: #4F7FA8; --brain-back: #B4C3D0;
  --clay: #C1917F; /* the brand clay, even where a department page repaints --accent */
}
html[data-palette="muted"] .card-num { color: var(--accent-text); }
/* On deep-blue areas the darkest ramp steps disappear, so use each department's lighter partner. */
html[data-palette="muted"] .activation [data-seg] { --c: var(--segn) !important; }
html[data-palette="muted"] .site-footer .seg-dot[data-seg] { background: var(--segn) !important; }
html[data-palette="muted"] .seg-dot[data-seg] { background: var(--seg) !important; }
html[data-palette="muted"] [data-seg="management"] { --seg: #2E4A6B !important; --segc: #2E4A6B !important; --c: #2E4A6B !important; --segn: #7A92B0; }
html[data-palette="muted"] [data-seg="marketing"] { --seg: #4A6688 !important; --segc: #4A6688 !important; --c: #4A6688 !important; --segn: #8FA3B8; }
html[data-palette="muted"] [data-seg="sales"] { --seg: #7A92B0 !important; --segc: #7A92B0 !important; --c: #7A92B0 !important; --segn: #B4C3D0; }
html[data-palette="muted"] [data-seg="customer-support"] { --seg: #8FA3B8 !important; --segc: #6C8095 !important; --c: #6C8095 !important; --segn: #A9C4C2; }
html[data-palette="muted"] [data-seg="operations"] { --seg: #2B5F66 !important; --segc: #2B5F66 !important; --c: #2B5F66 !important; --segn: #7FA8A7; }
html[data-palette="muted"] [data-seg="finance"] { --seg: #3F7579 !important; --segc: #3F7579 !important; --c: #3F7579 !important; --segn: #94B4B0; }
html[data-palette="muted"] [data-seg="human-resources"] { --seg: #C9A9A1 !important; --segc: #A9807A !important; --c: #A9807A !important; --segn: #C9A9A1; }
html[data-palette="muted"] [data-seg="recruiting"] { --seg: #CDB496 !important; --segc: #A68A62 !important; --c: #A68A62 !important; --segn: #CDB496; }
html[data-palette="muted"] [data-seg="information-technology"] { --seg: #C1917F !important; --segc: #A86F5C !important; --c: #A86F5C !important; --segn: #C1917F; }
html[data-palette="muted"] [data-seg="analytics"] { --seg: #8E4F3E !important; --segc: #8E4F3E !important; --c: #8E4F3E !important; --segn: #C1917F; }
html[data-palette="muted"] :is(.phase-strip li, .journey-chip, .journey-panels li):nth-child(1) { --pc: #4A6688; --pt: #FFFFFF; }
html[data-palette="muted"] :is(.phase-strip li, .journey-chip, .journey-panels li):nth-child(2) { --pc: #8FA3B8; --pt: #0B1E2B; }
html[data-palette="muted"] :is(.phase-strip li, .journey-chip, .journey-panels li):nth-child(3) { --pc: #7FA8A7; --pt: #0B1E2B; }
html[data-palette="muted"] :is(.phase-strip li, .journey-chip, .journey-panels li):nth-child(4) { --pc: #2B5F66; --pt: #FFFFFF; }
html[data-palette="muted"] :is(.phase-strip li, .journey-chip, .journey-panels li):nth-child(5) { --pc: #9A5D49; --pt: #FFFFFF; }
html[data-palette="muted"] .phase-strip .phase-chip,
html[data-palette="muted"] .journey-chip.is-on { color: var(--pt); }
/* Corner brackets on plain cards, as on the live coming-soon site: teal, clay, blue in turn. */
html[data-palette="muted"] .card:not(.card--seg) { position: relative; padding-right: 3rem; }
html[data-palette="muted"] .card:not(.card--seg)::after {
  content: ""; position: absolute; top: 0.85rem; right: 0.85rem; width: 1.5rem; height: 1.5rem;
  border-top: 5px solid var(--oc, var(--brand)); border-right: 5px solid var(--oc, var(--brand));
}
html[data-palette="muted"] .card:not(.card--seg):nth-child(3n+2) { --oc: var(--accent); }
html[data-palette="muted"] .card:not(.card--seg):nth-child(3n) { --oc: var(--corner-3); }
/* Industry chips: corner bracket instead of the coloured left edge. Industries carry no chevron mark. */
html[data-palette="muted"] .seg-chip:not([data-seg]) {
  position: relative; border-left-width: 1px; border-left-color: var(--line); padding-right: 3rem; --oc: var(--brand);
}
html[data-palette="muted"] .seg-chip:not([data-seg])::after {
  content: ""; position: absolute; top: 0.7rem; right: 0.7rem; width: 1.1rem; height: 1.1rem;
  border-top: 4px solid var(--oc); border-right: 4px solid var(--oc);
}
html[data-palette="muted"] .seg-chip:not([data-seg]):nth-child(3n+2) { --oc: var(--accent); }
html[data-palette="muted"] .seg-chip:not([data-seg]):nth-child(3n) { --oc: var(--corner-3); }
/* Industry corners step through the 14-colour ramp in list order. Colours
   belong to the position, not the industry, so adding or reordering
   industries never needs a colour change. */
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+1) { --oc: #2E4A6B; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+2) { --oc: #4A6688; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+3) { --oc: #7A92B0; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+4) { --oc: #8FA3B8; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+5) { --oc: #B4C3D0; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+6) { --oc: #A9C4C2; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+7) { --oc: #7FA8A7; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+8) { --oc: #3F7579; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+9) { --oc: #2B5F66; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+10) { --oc: #CDB496; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+11) { --oc: #C9A9A1; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+12) { --oc: #C1917F; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+13) { --oc: #9A5D49; }
html[data-palette="muted"] :is(.center-grid > .card--link:not(.card--seg), .seg-chip:not([data-seg])):nth-child(14n+14) { --oc: #8E4F3E; }

html[data-type="editorial"] {
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-weight: 600;
  --head-tracking: -0.015em;
}

html[data-type="technical"] {
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-weight: 600;
  --head-tracking: -0.025em;
}

/* Heading options: only the heading face changes; Inter stays for reading.
   Manrope (Option A) is the working default, set in config.py. */
html[data-type="manrope"] {
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-weight: 800;
  --head-tracking: -0.025em;
  --logo-weight: 800;
}

html[data-type="bricolage"] {
  --font-head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-weight: 700;
  --head-tracking: -0.02em;
}

html[data-type="newsreader"] {
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --head-weight: 600;
  --head-tracking: -0.01em;
}

/* 2. BASE ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.15;
  margin: 0 0 var(--s4);
  text-wrap: wrap;
}
h1 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s4); max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

img, svg { max-width: 100%; }

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

.skip-link {
  position: absolute; left: var(--s4); top: -4rem; z-index: 100;
  background: var(--deep); color: var(--on-deep); padding: var(--s3) var(--s4);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 3. LAYOUT ---------------------------------------------------------------- */

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--tint { background: var(--tint); }
/* A plain section straight after a page header shares its background, so it
   doesn't need its own top padding. */
.page-hero + .section:not(.section--tint):not(.section--deep) { padding-top: 0; }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep p { color: var(--on-deep-soft); }
.section--deep a:not(.btn) { color: var(--on-deep); }

.section-head { margin-bottom: var(--s5); }
.section-head p { font-size: 1.15rem; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-text); margin-bottom: var(--s3);
}
.section--deep .eyebrow { color: var(--on-deep-soft); }

.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); }
.small { font-size: 0.95rem; color: var(--ink-soft); }

.grid { display: grid; gap: var(--s5); }
@media (min-width: 44rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 5fr 6fr; gap: var(--s8); }
  /* Start the list level with the heading, not the small label above it. */
  .split > .chev-list { margin-top: 1.6rem; }
}

/* 4. COMPONENTS ------------------------------------------------------------ */

/* Logo: "Chevron >>> Activate", three chevrons between the words. */
.logo {
  font-family: var(--font-head); font-weight: var(--logo-weight, 700); font-size: 1.15rem;
  color: var(--ink); line-height: 1; white-space: nowrap;
}
.logo-lockup { display: inline-flex; align-items: center; gap: 0.35em; }
.logo { letter-spacing: -0.01em; }
.site-header .logo { font-size: 1.5rem; } /* larger in the header bar */
@media (min-width: 40rem) { .site-header .logo { font-size: 1.7rem; } }
.logo-word--accent { color: var(--brand-text); }
.logo-mark { width: 1.5em; height: 1.125em; flex: none; fill: none; stroke-width: 4; stroke-linejoin: miter; }
.logo-mark .m0 { opacity: 0.45; }
.logo-mark .m1 { stroke: var(--accent); }
.logo-mark .m2 { stroke: var(--brand-text); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line); background: var(--surface);
  transition: transform 0.3s ease;
}
/* Hidden while scrolling down, back as soon as the visitor scrolls up (site.js). */
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s3) var(--s5); padding-block: var(--s4);
}
.logo-link { text-decoration: none; padding-block: var(--s2); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; padding: var(--s2) 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; font: inherit; font-weight: 600; color: var(--ink);
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s2) var(--s4); cursor: pointer;
}

@media (max-width: 64rem) {
  /* The menu only collapses when JavaScript is running (html.js). */
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: var(--s3); }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li a { display: block; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .js .site-nav .btn { margin-top: var(--s3); text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  background: var(--brand); color: var(--on-brand); text-decoration: none;
  padding: 0.8em 1.4em; border-radius: var(--radius); border: 2px solid var(--brand);
  cursor: pointer; transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--small { padding: 0.55em 1em; font-size: 0.95rem; }
.btn--ghost { background: transparent; color: var(--brand-text); }
.section--deep .btn { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
.hero-art { display: block; width: 9rem; order: -1; overflow: visible; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 6fr 5fr; gap: var(--s7); }
  .hero-art { width: 100%; max-width: 27rem; justify-self: end; order: 0; }
}
/* Each chevron slides in and lights up in turn, then the row ripples forward. */
.hero-art path {
  fill: none; stroke-width: 44; stroke-linejoin: miter; opacity: var(--o, 1);
  animation: chev-on 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both, chev-wave 3.6s ease-in-out infinite;
}
.hero-art .a3 { stroke: var(--brand); --o: 0.3; animation-delay: 0.15s, 1.6s; }
.hero-art .a2 { stroke: var(--brand); animation-delay: 0.4s, 1.75s; }
.hero-art .a1 { stroke: var(--accent); animation-delay: 0.65s, 1.9s; }
@keyframes chev-on {
  from { opacity: 0.06; transform: translateX(-32px); }
  to { opacity: var(--o, 1); transform: none; }
}
@keyframes chev-wave {
  0%, 100% { transform: none; }
  50% { transform: translateX(10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-art path { animation: none; } }
/* The headline is always two lines: one sentence over the other. */
.hero-title { font-size: clamp(1.65rem, 7.8vw, 3.25rem); text-wrap: initial; }
.hero-title span { display: block; white-space: nowrap; }
.hero-title-accent { color: var(--brand-text); }
@media (min-width: 56rem) { .hero-title { font-size: clamp(1.95rem, 4.1vw, 3.25rem); } }
/* Phones and tablets: the chevrons sit beside the headline instead of
   floating above it on their own. */
@media (max-width: 55.99rem) {
  .hero-grid { grid-template-columns: 1fr auto; column-gap: var(--s3); row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { grid-column: 1 / -1; }
  .hero-copy > h1 { grid-column: 1; grid-row: 2; margin: 0; }
  .hero-art { grid-column: 2; grid-row: 2; order: 0; width: clamp(3.5rem, 23vw, 10rem); align-self: start; }
  .hero-title { font-size: clamp(1.4rem, 7.6vw, 3.25rem); }
}
.hero .lead { margin-top: var(--s5); }
.hero-note {
  margin-top: var(--s5); padding-left: var(--s4); border-left: 3px solid var(--accent);
  color: var(--ink-soft); font-size: 1rem;
}
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.card--link { display: block; color: inherit; text-decoration: none; transition: border-color 0.12s ease; }
.card--link:hover { border-color: var(--brand); }
.card--link h3 { color: var(--brand-text); }
.card--link h3::after { content: " \203A"; }
.card--accent { background: var(--accent-soft); border-color: transparent; }
.card-num {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: var(--s2);
}
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 99px; padding: 0.15em 0.7em; margin-bottom: var(--s3);
}

/* Department colours. A department's colour arrives as --seg on its card,
   chip or page, and is used for decoration only (never for body text). */
.card--seg { border-top: 4px solid var(--segc); }
.card--seg .logo-mark { width: 2.1rem; height: 1.575rem; margin-bottom: var(--s3); }
.card--seg .logo-mark path, .seg-chip .logo-mark path { stroke: var(--segc); }
/* Phones: chevrons beside the department name, and a shorter card. */
@media (max-width: 47.99rem) {
  .card--seg { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--s3); padding: var(--s4); }
  .card--seg .logo-mark { margin: 0; width: 1.75rem; height: 1.3rem; }
  .card--seg h3 { margin: 0; }
  .card--seg p { grid-column: 1 / -1; margin-top: var(--s2); }
}
/* The colours are tuned for dark backgrounds; on the light palettes they
   are deepened so they still show clearly. */
[style*="--seg"] { --segc: color-mix(in srgb, var(--seg) 72%, #10222E); }
html[data-palette="night"] [style*="--seg"] { --segc: var(--seg); }

/* Boxes for departments and industries: equal widths, and any short last
   row is centred rather than left-aligned. --n is the boxes per row. */
.seg-chips, .center-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); --n: 1; }
.seg-chips { --gap: var(--s3); }
.center-grid { --gap: var(--s5); }
.seg-chips > *, .center-grid > * { flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); min-width: 0; }
/* Phones: two boxes side by side, with smaller type so long names fit. */
.seg-chips { --n: 2; }
.seg-chip .name-phone { display: none; }
@media (max-width: 47.99rem) {
  /* Two across: pair boxes whose names take the same number of lines (pages.py PHONE_ORDER). */
  .seg-chips > [style*="--po"] { order: var(--po); }
  .seg-chips > :not([style*="--po"]) { order: 99; }
  .seg-chip .name-full { display: none; }
  .seg-chip .name-phone { display: inline; }
}
@media (max-width: 29.99rem) {
  .seg-chips .seg-chip { gap: var(--s2); padding: 0.7rem 0.65rem; min-height: 3.6rem; font-size: 0.9rem; }
  .seg-chips .seg-chip .logo-mark { width: 1.3rem; height: 0.975rem; }
  .seg-chips .seg-chip--more { display: none; } /* fewer industries on phones */
}
@media (min-width: 48rem) { .seg-chips { --n: 3; } .center-grid { --n: 2; } }
@media (min-width: 64rem) { .seg-chips { --n: 4; } .center-grid { --n: 3; } }
.seg-chip {
  display: flex; align-items: center; gap: var(--s3); padding: 0.85rem 1rem; min-height: 4.25rem; line-height: 1.25;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--segc, var(--accent));
  border-radius: var(--radius); color: var(--ink); font-family: var(--font-head); font-weight: 700;
  text-decoration: none; transition: transform 0.12s ease, border-color 0.12s ease;
}
.seg-chip:hover { transform: translateX(3px); border-color: var(--segc, var(--brand)); }
.seg-chip .logo-mark { width: 1.6rem; height: 1.2rem; }
/* On a department page the accent colour becomes that department's colour. */
.seg-page { --accent: var(--segc); }
.seg-page :focus-visible { outline-color: var(--brand-text); }
.seg-page .hero-art .a2 { stroke: var(--segc); --o: 0.6; }
.seg-page .hero-art .a3 { stroke: var(--segc); }
.seg-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.5rem; }

/* The audit */
.audit { max-width: 46rem; margin-inline: auto; }
.audit-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.audit-progress, .audit-meter { display: flex; gap: 3px; }
.audit-progress { margin-bottom: var(--s5); }
.audit-progress span, .audit-meter span {
  flex: 1; height: 0.7rem; background: var(--line);
  clip-path: polygon(0 0, calc(100% - 0.35rem) 0, 100% 50%, calc(100% - 0.35rem) 100%, 0 100%, 0.35rem 50%);
  transition: background 0.3s ease;
}
.audit-progress span.is-on { background: var(--brand); }
.audit-meter { width: 6.5rem; flex: none; }
.audit-meter span { height: 0.9rem; }
.audit-meter span.is-on { background: var(--accent); }
.audit-kicker { color: var(--ink-soft); margin-bottom: var(--s2); }
.audit-q { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: var(--s5); }
/* Results: link down to the form, and the form itself. */
.audit-privacy { margin: var(--s3) 0 0; font-size: 0.875rem; color: var(--ink-soft); text-align: center; }
.audit-jump { display: inline-block; margin: 0 0 var(--s4); font-weight: 700; color: var(--brand-text); }
.audit-lead { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.audit-lead .form { margin-top: var(--s4); }
.audit-q:focus { outline: none; }
.audit-options { display: grid; gap: var(--s3); }
.audit-options--team { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.audit-option {
  font: inherit; font-weight: 600; text-align: left; color: var(--ink); cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--segc, var(--brand));
  border-radius: var(--radius); padding: 0.9rem 1rem;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.audit-option:hover, .audit-option.is-picked { border-color: var(--segc, var(--brand)); transform: translateX(4px); }
.audit-option.is-picked { background: var(--tint); }
.audit-option--check { display: flex; align-items: center; gap: 0.6rem; }
.audit-option--check::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 4px;
  border: 2px solid var(--ink-soft); background: transparent;
}
.audit-option--check.is-picked::before {
  border-color: var(--segc, var(--brand)); background: var(--segc, var(--brand));
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%); border-radius: 0;
}
.audit .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.audit-sub { margin: var(--s5) 0 var(--s2); }
.audit-teams { display: flex; flex-wrap: wrap; gap: var(--s2); }
.audit-team {
  display: inline-block; padding: 0.4rem 0.8rem; border-radius: var(--radius); font-weight: 600;
  color: var(--ink); text-decoration: none; background: var(--bg);
  border: 1px solid var(--line); border-left: 4px solid var(--segc, var(--brand));
}
a.audit-team:hover { border-color: var(--segc, var(--brand)); }
.audit-matrix { display: grid; gap: var(--s2); }
.audit-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4);
  padding: 0.6rem 0.8rem; background: var(--bg); border: 1px solid var(--line);
  border-left: 4px solid var(--segc, var(--brand)); border-radius: var(--radius);
}
.audit-row-name { font-family: var(--font-head); font-weight: 700; }
.audit-row-options { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.audit-pill {
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); cursor: pointer;
  background: transparent; border: 1px solid var(--ink-soft); border-radius: 99px; padding: 0.35rem 0.8rem;
}
.audit-pill[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.audit-back {
  font: inherit; font-weight: 600; color: var(--brand-text); background: none; border: 0;
  padding: var(--s2) 0; margin-top: var(--s5); cursor: pointer; text-decoration: underline;
}
.audit-note { border-left: 3px solid var(--accent); padding-left: var(--s4); color: var(--ink-soft); }
.audit-areas { display: grid; gap: var(--s3); margin-block: var(--s5); }
.audit-area { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); }
.audit-area.is-hot { border-color: var(--accent); background: var(--accent-soft); }
.audit-area-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.audit-area h3 { margin: 0; }
.audit-level { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: var(--s1) 0 0; }
.audit-help { margin: var(--s3) 0 0; }

/* Lists with chevron markers */
.chev-list li { position: relative; padding-left: 1.6rem; margin-bottom: var(--s3); max-width: var(--measure); }
.chev-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 0.7rem; height: 0.8rem;
  background: var(--cc, var(--accent));
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}
/* Chevron bullets take teal, clay and blue in turn (as on the coming-soon site). */
.chev-list li:nth-child(3n+1) { --cc: var(--brand); }
.chev-list li:nth-child(3n+2) { --cc: var(--clay, var(--accent)); }
.chev-list li:nth-child(3n) { --cc: var(--corner-3, #4F8DBA); }

/* Phase colours: each of the five arrows takes the next colour on the
   brand ramp (blue, teal, sage, sand, clay), so the row reads as a gradient. */
.phase-strip li:nth-child(1), .journey-chip:nth-child(1), .journey-panels li:nth-child(1) { --pc: #6C93D6; }
.phase-strip li:nth-child(2), .journey-chip:nth-child(2), .journey-panels li:nth-child(2) { --pc: #6DB7B0; }
.phase-strip li:nth-child(3), .journey-chip:nth-child(3), .journey-panels li:nth-child(3) { --pc: #A3B98C; }
.phase-strip li:nth-child(4), .journey-chip:nth-child(4), .journey-panels li:nth-child(4) { --pc: #D7A56C; }
.phase-strip li:nth-child(5), .journey-chip:nth-child(5), .journey-panels li:nth-child(5) { --pc: #CC7A5E; }
.phase-strip .phase-chip { background: var(--pc); color: #0B1E2B; }
.is-live .journey-panels .card-num { color: var(--pc); }
.is-live .journey-panels h3 { border-left: 6px solid var(--pc); padding-left: var(--s3); }

/* The five phases as a row of chevrons */
.phase-strip { display: grid; gap: var(--s5); counter-reset: phase; }
.phase-chip {
  display: flex; align-items: center; gap: var(--s3); min-height: 3.75rem;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  padding: var(--s3) 2.2rem var(--s3) 1.6rem; margin-bottom: var(--s3);
  clip-path: polygon(0 0, calc(100% - 1.1rem) 0, 100% 50%, calc(100% - 1.1rem) 100%, 0 100%, 1.1rem 50%);
}
.phase-strip li:first-child .phase-chip {
  clip-path: polygon(0 0, calc(100% - 1.1rem) 0, 100% 50%, calc(100% - 1.1rem) 100%, 0 100%);
  padding-left: var(--s4);
}
.phase-chip .n { opacity: 0.75; font-size: 0.85rem; }
.phase-strip p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; padding-inline: var(--s1); }
@media (min-width: 60rem) {
  .phase-strip { grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
  /* Every arrow the same height: the chips share one row, the descriptions the next. */
  .phase-strip { grid-template-rows: auto auto; row-gap: 0; }
  .phase-strip li { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .phase-strip .phase-chip { height: 100%; padding-right: 1.9rem; }
}
@media (max-width: 59.99rem) {
  .phase-chip { max-width: 24rem; }
}

/* The five phases in detail (How it works page) */
.phase-list > li {
  display: grid; gap: var(--s2) var(--s5); padding-block: var(--s6);
  border-top: 1px solid var(--line);
}
.phase-list > li:last-child { border-bottom: 1px solid var(--line); }
.phase-list h3 { font-size: 1.45rem; margin-bottom: var(--s3); }
.phase-list .card-num { margin-bottom: 0; padding-top: 0.35rem; }
.result {
  margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--accent-soft);
  border-radius: var(--radius); max-width: var(--measure);
}
.result strong { font-family: var(--font-head); }
@media (min-width: 44rem) {
  .phase-list > li { grid-template-columns: 7rem 1fr; }
}

/* Without / with comparison */
.compare .card h3 { display: flex; align-items: center; gap: var(--s2); }
.compare .card--with { border-color: var(--brand); border-width: 2px; }

/* Questions */
.qa h3 { font-size: 1.3rem; }

/* Call-to-action band */
.cta-band { text-align: left; background: var(--cta-bg, var(--brand)); } /* its own colour, so it doesn't merge into the footer */
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--on-deep); }

.cta-split { display: grid; gap: var(--s5); margin-top: var(--s5); }
.cta-split > div {
  display: grid; gap: var(--s2); align-content: start; justify-items: start; padding: var(--s5);
  border: 1px solid rgb(255 255 255 / 0.2); border-radius: calc(var(--radius) * 1.5); background: rgb(255 255 255 / 0.05);
}
.cta-split h3 { margin: 0; font-size: 1.3rem; }
.cta-split .btn { margin-top: var(--s3); }
@media (min-width: 44rem) { .cta-split { grid-template-columns: 1fr 1fr; } }

/* Forms */
.form { display: grid; gap: var(--s4); max-width: 36rem; }
.form label { display: grid; gap: var(--s1); font-weight: 600; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--ink-soft); border-radius: var(--radius); padding: 0.7em 0.8em; width: 100%;
}
.form textarea { min-height: 9rem; resize: vertical; }
.notice {
  border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: var(--radius);
  padding: var(--s3) var(--s4); max-width: 36rem; margin-bottom: var(--s5);
}
.form-status { font-weight: 600; margin: 0; }
.form-status.is-error, .form [aria-invalid="true"] { color: #A4402A; }
.form [aria-invalid="true"] { border-color: #A4402A; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.form legend { font-weight: 600; margin-bottom: var(--s2); padding: 0; }
.form .check { display: flex; align-items: center; gap: var(--s2); font-weight: 400; }
.form .check input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.optional { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-row--center { justify-content: center; margin-top: var(--s6); }
/* Department and industry pages: chevrons line up with the top of the headline. */
@media (min-width: 56rem) {
  .hero--seg .hero-grid { align-items: start; }
  .hero--seg .hero-art { margin-top: 2rem; }
}

/* Department and industry pages: a row of every sibling page, scrolling
   sideways on small screens. The current page is filled in. */
.seg-hop { border-bottom: 1px solid var(--line); background: var(--surface); }
.seg-hop .container { display: flex; align-items: center; gap: var(--s3); }
.seg-hop-all { flex: none; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; padding-right: var(--s3); border-right: 1px solid var(--line); }
.seg-hop ul {
  display: flex; gap: var(--s2); overflow-x: auto; padding-block: var(--s3); scrollbar-width: thin;
  mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
}
.seg-hop li { flex: none; }
.seg-hop ul a {
  display: inline-block; padding: 0.35rem 0.8rem; border-radius: 99px; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.seg-hop ul a[data-seg] { border-left: 4px solid var(--segc, var(--seg)); }
.seg-hop ul a:hover { border-color: var(--brand); }
.seg-hop ul a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.seg-hop ul a[aria-current="page"][data-seg] { border-left-color: var(--segc, var(--seg)); }

/* Cookie banner (static/consent.js): a small card in the bottom-left corner. */
.consent {
  position: fixed; left: var(--s4); bottom: var(--s4); z-index: 60; max-width: min(26rem, calc(100% - 2rem));
  padding: var(--s4); background: var(--deep); color: var(--on-deep); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.25); font-size: 0.92rem;
}
.consent p { margin: 0 0 var(--s3); }
.consent a { color: var(--on-deep); }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.consent .btn { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.consent .btn--ghost { background: transparent; color: var(--on-deep); }
/* Opt-out notice and preferences: one big, obvious primary button. */
.consent-actions .consent-ok { flex: 1 1 10rem; text-align: center; font-size: 1.05rem; padding: 0.7em 1.2em; box-shadow: 0 2px 0 rgb(0 0 0 / 0.25); }
.consent-actions .consent-ok:hover { box-shadow: 0 4px 10px rgb(0 0 0 / 0.3); }
.consent--out .consent-actions { align-items: center; }
.consent-link {
  background: none; border: 0; padding: 0.55em 0.4em; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--on-deep-soft); text-decoration: underline; text-underline-offset: 3px;
}
.consent-link:hover { color: var(--on-deep); }
.consent-title { font-size: 1.05rem; margin: 0 0 var(--s3); color: var(--on-deep); }
.consent-option {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3); margin-bottom: var(--s3); border: 1px solid rgb(255 255 255 / 0.22); border-radius: var(--radius); cursor: pointer;
}
.consent-option strong { display: block; }
.consent-hint { display: block; color: var(--on-deep-soft); font-size: 0.85rem; margin-top: 0.15rem; }
.consent--prefs p { font-size: 0.85rem; color: var(--on-deep-soft); }
/* On/off switch */
.consent-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0; cursor: pointer;
  width: 2.9rem; height: 1.6rem; border-radius: 1rem; background: rgb(255 255 255 / 0.25); transition: background 0.15s ease;
}
.consent-switch::after {
  content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--on-deep); transition: transform 0.15s ease;
}
.consent-switch:checked { background: var(--accent); }
.consent-switch:checked::after { transform: translateX(1.3rem); }

/* Privacy and terms pages */
.prose h2 { margin-top: var(--s6); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: var(--s4); margin-bottom: var(--s2); }
.prose ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose .notice { margin-bottom: var(--s6); }
.prose .linklike { color: var(--brand-text); }

/* Analytics and Marketing pages: "Looking for Chevron Analytics?" */
.legacy { padding-top: 0; }
.legacy-grid { display: grid; gap: var(--s5); align-items: center; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.legacy-logo { width: 100%; max-width: 16rem; height: auto; }
.legacy h2 { margin-bottom: var(--s3); }
.legacy p:last-child { margin-bottom: 0; }
@media (min-width: 48rem) { .legacy-grid { grid-template-columns: 16rem 1fr; gap: var(--s7); padding: var(--s6); } }

/* 404 page: a little "new chat" that starts from zero. */
.lost-chat {
  display: grid; gap: var(--s2); max-width: 30rem; margin: var(--s5) 0; padding: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.lost-chat .chat-head { font-family: var(--font-head); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.lost-chat .bubble { justify-self: end; max-width: 85%; padding: 0.5rem 0.75rem; border-radius: 12px 12px 2px 12px; background: var(--tint); font-size: 0.95rem; }
.lost-chat .bubble--ai { justify-self: start; border-radius: 12px 12px 12px 2px; background: var(--accent-soft); }

/* Hub pages: "Don't see yours?" sits right under the list. */
.hub-more { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); text-align: center; }
.hub-more h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
.hub-more .btn-row { justify-content: center; }

/* Consultants page (from the live site): three opportunities with corner brackets. */
.stacked > div:first-child { margin-bottom: var(--s5); }
.opp-list { display: grid; gap: var(--s4); }
@media (min-width: 56rem) { .opp-list { grid-template-columns: repeat(3, 1fr); } }
.opp-list li {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s4) calc(var(--s5) + 1.75rem) var(--s4) var(--s5);
}
.opp-list li::after {
  content: ""; position: absolute; top: 0.85rem; right: 0.85rem; width: 1.5rem; height: 1.5rem;
  border-top: 5px solid var(--oc, var(--accent)); border-right: 5px solid var(--oc, var(--accent));
}
.opp-list li:nth-child(1) { --oc: var(--brand); }
.opp-list li:nth-child(2) { --oc: var(--accent); }
.opp-list li:nth-child(3) { --oc: var(--corner-3, #4F8DBA); }
.opp-list li:nth-child(3) .tag { color: var(--corner-3, #3C7AA6); border-color: var(--corner-3, #4F8DBA); }
.opp-list h3 { margin-bottom: var(--s1); }
.opp-list p { margin: 0; color: var(--ink-soft); }
.opp-list .tag { margin: var(--s3) 0 0; }

/* Department and industry pages: their titles are sentences, so the H1 runs smaller. */
.hero--seg h1 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); line-height: 1.15; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep-soft); padding-block: var(--s7) var(--s6); font-size: 0.98rem; }
.site-footer .logo { color: var(--on-deep); }
.site-footer .logo-word--accent, .site-footer .logo-mark .m2 { color: var(--on-deep); stroke: var(--on-deep); }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h2 {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-deep-soft); margin-bottom: var(--s3);
}
.footer-grid li { margin-bottom: var(--s2); }
.footer-grid p { margin-top: var(--s4); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5);
  margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgb(255 255 255 / 0.15); font-size: 0.9rem;
}
.footer-base p { margin: 0; }
/* Footer email: a lighter teal from the ramp (5.6:1 on deep blue) with an envelope icon. */
.site-footer .footer-email { display: inline-flex; align-items: center; gap: 0.5em; color: #7FA8A7; font-weight: 600; text-decoration: none; }
.site-footer .footer-email:hover { text-decoration: underline; }
.footer-email svg { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
/* Room for the floating "Lost in AI jargon?" button, so it never covers these links. */
.footer-base { padding-bottom: 4rem; }
.footer-base ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.linklike { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.site-footer .linklike { color: var(--on-deep); }

/* Activation switch: loose chats (off) versus a full structure (on).
   The activated look is the default; ".is-ready:not(.is-active)" is the
   switched-off look, which only exists once the script is running. */
.activation {
  --a-bg: var(--deep); --a-ink: var(--on-deep); --a-soft: var(--on-deep-soft); --a-eyebrow: var(--on-deep-soft);
  --a-card: rgb(255 255 255 / 0.07); --a-card-line: rgb(255 255 255 / 0.26); --a-line: rgb(255 255 255 / 0.4);
  position: relative; overflow: hidden;
  background: var(--a-bg); color: var(--a-ink);
  transition: background 0.7s ease, color 0.7s ease;
}
.activation.is-ready:not(.is-active) {
  --a-bg: var(--tint); --a-ink: var(--ink); --a-soft: var(--ink-soft); --a-eyebrow: var(--brand-text);
}
.activation .eyebrow { color: var(--a-eyebrow); }
.activation p { color: var(--a-soft); transition: color 0.7s ease; }
.state h3 { font-size: 1.35rem; margin-bottom: var(--s2); }
/* A small dot before each heading: clay when activated, grey when not (as on the coming-soon site). */
.state h3 .tag-dot {
  display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.5rem;
  vertical-align: 0.15em; background: var(--accent);
}
.state--off h3 .tag-dot { background: var(--ink-soft); }
/* Layout: on phones the switch sits right above the picture, with the
   description under it (as on the live site). On desktop the text column
   sits beside the picture. */
.act-grid { display: grid; gap: var(--s4); }
.act-head h2 { margin-bottom: 0; }
@media (min-width: 56rem) {
  .act-grid {
    grid-template: "head stage" auto "toggle stage" auto "states stage" 1fr / 5fr 6fr;
    column-gap: var(--s8); row-gap: var(--s4);
  }
  .act-head { grid-area: head; }
  .act-controls { grid-area: toggle; padding-top: var(--s2); }
  .stage { grid-area: stage; align-self: center; }
  .states { grid-area: states; }
}
@media (max-width: 55.99rem) {
  /* As on the coming-soon site: the loose chats scatter less, and the heading is smaller. */
  .activation { --k: 0.8; }
  .act-head h2 { font-size: 1.5rem; }
  .activation.section { padding-block: 2rem 2.5rem; }
  .act-grid { gap: var(--s3); }
  .act-head .eyebrow { margin-bottom: var(--s2); }
}

/* The toggle: two buttons in a pill, as on the coming-soon site. A clay
   highlight slides under the chosen one. */
.act-controls { display: none; }
.is-ready .act-controls { display: grid; gap: var(--s2); justify-items: start; }
.act-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px;
  background: rgb(255 255 255 / 0.1); border: 2px solid var(--a-card-line);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.is-ready:not(.is-active) .act-toggle { background: var(--surface); border-color: var(--line); }
.act-toggle::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px;
  background: var(--accent); box-shadow: 0 3px 10px rgb(0 0 0 / 0.25); transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), background 0.3s;
}
.is-ready:not(.is-active) .act-toggle::before { transform: none; background: var(--ink-soft); }
.act-toggle button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  min-height: 2.9rem; padding: 0 1.15rem; border: 0; border-radius: 99px; cursor: pointer;
  font: inherit; color: var(--a-soft); background: none; white-space: nowrap; transition: color 0.3s;
}
.act-toggle button[aria-pressed="true"] { color: #FFFFFF; }
.act-toggle .logo-mark { width: 1.3em; height: 0.975em; }
.act-toggle .logo-mark path { stroke: currentColor; }
.act-toggle .logo-mark .m0 { opacity: 0.55; }
.act-toggle button:focus-visible { outline-offset: 2px; }
.act-hint { font-size: 0.95rem; font-weight: 600; margin: 0; }
.activation .act-hint { color: var(--a-soft); }
.act-hint b { color: var(--accent); }
/* Switched off the background is light, where clay is too faint to read. */
.activation.is-ready:not(.is-active) .act-hint b { color: var(--accent-text, var(--accent)); }
@media (max-width: 30rem) {
  .act-toggle { font-size: 0.95rem; width: 100%; }
  .act-toggle button { padding: 0 0.6rem; }
  .is-ready .act-controls { justify-items: stretch; }
}

/* The picture: brain, context, connectors, four cards */
.stage {
  position: relative; display: grid; justify-items: center; gap: var(--s3);
  width: 100%; max-width: 36rem; margin-inline: auto; padding-block: var(--s4);
}
/* Label inside the picture saying which state is showing (as on the live site). */
.stage-label {
  position: relative; z-index: 3; justify-self: center; display: none;
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 99px; border: 1px solid var(--a-card-line); color: var(--a-soft);
}
.is-ready .stage-label { display: inline-block; }
.stage-label .on { color: var(--accent); }
.stage-label .off, .is-ready:not(.is-active) .stage-label .on { display: none; }
.is-ready:not(.is-active) .stage-label .off { display: inline; }
@media (max-width: 55.99rem) {
  .activation.is-ready .stage-label { display: none; } /* the switch already says which is showing */
}
.stage::after {
  content: ""; position: absolute; top: 2.6rem; left: 50%; width: 6rem; height: 6rem;
  margin: -3rem 0 0 -3rem; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; pointer-events: none;
}
.is-active .stage::after { animation: burst 1.1s ease-out 0.1s; }
@keyframes burst { from { opacity: 0.9; transform: scale(0.3); } to { opacity: 0; transform: scale(8); } }

.s-brain {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.4rem; border-radius: 99px;
  background: var(--brand); color: var(--on-brand); border: 1px solid rgb(255 255 255 / 0.3);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.s-brain .logo-mark { width: 1.5em; height: 1.125em; }
.s-brain .logo-mark .m2 { stroke: currentColor; }
/* The back chevron at 45% white turns teal on the teal pill, so give it its own solid colour. */
.s-brain .logo-mark .m0 { stroke: var(--brain-back, var(--on-deep-soft)); opacity: 1; }
.is-active .s-brain::before {
  content: ""; position: absolute; inset: -5px; border-radius: 99px; border: 2px solid var(--accent);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { opacity: 0.85; transform: scale(1); } to { opacity: 0; transform: scale(1.3, 1.9); } }

/* Each row of chips stays on one line: the type scales with the picture's
   width (cqi = 1% of .stage) instead of wrapping. */
.stage { container-type: inline-size; }
.s-chips {
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: center;
  font-size: min(0.8rem, 2.3cqi); gap: 0.45em; max-width: 100%;
}
/* Systems: outlined in the accent colour, the same as in each department box. */
.s-chips--systems { margin-top: calc(var(--s3) * -0.5); }
.s-chips.s-chips--systems span { border-color: var(--accent); }
.s-chips em {
  font-style: normal; font-size: 0.875em; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--a-soft); margin-right: 0.2rem; transition: opacity 0.4s ease 0.25s;
}
.s-chips span {
  font-size: 1em; font-weight: 600; padding: 0.35em 0.75em; white-space: nowrap; border-radius: 99px;
  background: var(--a-card); border: 1px solid var(--a-card-line);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
  transition-delay: calc(0.3s + var(--i) * 70ms);
}

.s-lines { width: 100%; height: 3rem; overflow: visible; transition: opacity 0.5s ease 0.55s; }
.s-lines path {
  fill: none; stroke: var(--a-line); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 5 7; animation: flow 1.1s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -24; } }

.s-cards { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: var(--s3); width: 100%; }
.s-card {
  container-type: inline-size;
  position: relative; display: grid; min-height: 7.6rem; padding: 0.8rem; border-radius: var(--radius);
  background: var(--a-card); border: 1px solid var(--a-card-line); color: var(--a-ink);
  transition: transform 0.85s cubic-bezier(0.2, 1.15, 0.3, 1), background 0.5s ease,
              border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
  transition-delay: calc(var(--i) * 80ms);
}
/* A short connector between the first and second row of cards. */
.s-card:nth-child(n+3)::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; height: var(--s3);
  border-left: 2px dashed var(--a-line); transition: opacity 0.4s ease 0.7s;
}
.face { grid-area: 1 / 1; display: grid; gap: 0.45rem; align-content: start; transition: opacity 0.35s ease; }
.face--chat { opacity: 0; }

.chat-head {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.chat-head::before {
  content: "+"; display: grid; place-items: center; width: 1.1rem; height: 1.1rem;
  border: 1px solid currentColor; border-radius: 50%; font-size: 0.85rem; line-height: 1;
}
.bubble {
  justify-self: end; max-width: 95%; padding: 0.4rem 0.6rem; border-radius: 10px 10px 2px 10px;
  background: var(--tint); color: var(--ink); font-size: 0.8rem; line-height: 1.3;
}
.skel { height: 0.45rem; width: 80%; border-radius: 99px; background: var(--line); }
.skel--short { width: 55%; }

.proj-title { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
/* Each department's chevrons, status light and bubble use its own colour (--c). */
.proj-title .logo-mark { width: 1.3em; height: 0.975em; }
.proj-title .logo-mark path { stroke: var(--c); }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.proj-tags span {
  font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 99px;
  border: 1px solid var(--a-card-line);
}
/* Title on the left, the blinking "Connected" light in the top-right corner. */
.proj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.4rem; }
.proj-status { display: flex; align-items: center; gap: 0.35rem; flex: none; padding-top: 0.3rem; font-size: 0.68rem; color: var(--a-soft); }
/* The systems this department's project connects to (plain names, no logos). */
.proj-systems {
  --ph: 0.68rem; display: flex; flex-wrap: wrap; gap: 0.25rem;
  /* One line only: any pill that would wrap is cut off, so list the most important first. */
  height: calc(var(--ph) * 1.2 + var(--ph) * 0.6 + 2px); overflow: hidden;
}
.proj-systems span {
  font-size: var(--ph); font-weight: 600; line-height: 1.2; padding: 0.3em 0.7em; border-radius: 99px;
  border: 1px solid var(--accent); color: var(--a-ink); white-space: nowrap;
}
.proj-status::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c, var(--accent));
  animation: blink 2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.3s);
}
/* Right-aligned, like the chats in the "not activated" state. */
.face--project { display: flex; flex-direction: column; }
/* Every box is laid out the same: the exchange always sits at the bottom.
   The request is on the right; the AI's answer on the left, in the department's colour,
   with its text set to the right so the trailing "..." meets the bubble's edge. */
.proj-convo { display: flex; flex-direction: column; gap: 0.3rem; margin-top: auto; padding-top: 0.15rem; }
.proj-ask, .proj-bubble { max-width: 88%; padding: 0.4rem 0.6rem; font-size: 0.78rem; line-height: 1.3; }
.proj-bubble .ans-short { display: none; }
.proj-ask {
  align-self: flex-end; text-align: right; border-radius: 10px 10px 2px 10px;
  background: rgb(255 255 255 / 0.16);
}
.proj-bubble {
  align-self: flex-start; text-align: right; border-radius: 10px 10px 10px 2px;
  /* Always two lines that run edge to edge: a fixed width, and type that
     scales with the box (cqi = 1% of the card), so the text breaks in the same
     places at every screen size. Phones get a shorter answer (pages: CONVO). */
  width: 92%; max-width: none;
  font-size: min(0.78rem, 4.9cqi); padding: 0.5em 0.77em;
  background: rgb(255 255 255 / 0.07); border-left: 3px solid var(--c);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Script running: stack the two descriptions. */
.is-ready .states { display: grid; }
.is-ready .state { grid-area: 1 / 1; transition: opacity 0.4s ease, transform 0.4s ease; }
.is-ready:not(.is-active) .state--on,
.is-ready.is-active .state--off { opacity: 0; visibility: hidden; transform: translateY(8px); }

/* Switched off: the structure disappears and the cards scatter into loose chats. */
.is-ready:not(.is-active) .s-brain { opacity: 0; transform: scale(0.5); }
.is-ready:not(.is-active) .s-chips em { opacity: 0; transition-delay: 0s; }
.is-ready:not(.is-active) .s-chips span { opacity: 0; transform: translateY(-10px) scale(0.8); transition-delay: 0s; }
.is-ready:not(.is-active) .s-lines { opacity: 0; transition-delay: 0s; }
.is-ready:not(.is-active) .s-card::before { opacity: 0; transition-delay: 0s; }
.is-ready:not(.is-active) .s-card {
  transform: translate(calc(var(--tx) * var(--k, 1)), calc(var(--ty) * var(--k, 1))) rotate(var(--r));
  background: var(--surface); border-color: var(--line); color: var(--ink-soft);
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.1);
  animation: drift 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s);
}
.is-ready:not(.is-active) .face--chat { opacity: 1; }
.is-ready:not(.is-active) .face--project { opacity: 0; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

@media (prefers-reduced-motion: reduce) {
  .s-lines path, .s-card, .proj-status::before,
  .is-active .s-brain::before, .is-active .stage::after { animation: none !important; }
}

/* The principle, as a statement band */
.principle-quote {
  font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; max-width: 26ch;
  color: var(--on-deep) !important; margin-bottom: var(--s5); text-wrap: wrap;
}
.principle p:last-child { font-size: 1.1rem; margin-bottom: 0; }
/* On desktop the band is compact: statement on the left, explanation beside it. */
@media (min-width: 56rem) {
  .principle { padding-block: var(--s7); }
  .principle .container { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s8); align-items: center; }
  .principle .eyebrow { grid-column: 1 / -1; }
  .principle-quote { margin-bottom: 0; }
}

/* Scroll sequence for the five phases */
.journey { background: var(--tint); }
.journey-sticky { padding-block: clamp(2.5rem, 5vw, 4rem); }
.journey-track { display: none; }
.journey-panels { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.journey-panels li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5);
}
.journey-panels p { color: var(--ink-soft); }
.journey-panels li p:last-child { margin-bottom: 0; }
.journey-result { font-size: 0.95rem; }
.section-head .journey-sub {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--brand-text); margin-bottom: var(--s2);
}

/* Live mode: the section pins while the visitor scrolls through the phases. */
.journey.is-live { height: 380vh; }
.is-live .journey-sticky {
  position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding-block: var(--s6) 5rem;
}
.is-live .journey-sticky > .container { width: min(100% - 2rem, var(--container)); }
.is-live .section-head { margin-bottom: var(--s5); }
.is-live .journey-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.2rem; margin-bottom: var(--s5); }
.journey-chip {
  --f: 0;
  display: flex; align-items: center; gap: var(--s2); min-height: 4rem;
  padding: var(--s2) 1.6rem var(--s2) 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; line-height: 1.15;
  color: var(--ink-soft);
  background: linear-gradient(90deg, var(--pc) calc(var(--f) * 100%), var(--line) calc(var(--f) * 100%));
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 50%, calc(100% - 1rem) 100%, 0 100%, 1rem 50%);
  transition: color 0.2s ease;
}
.journey-chip:first-child { clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 50%, calc(100% - 1rem) 100%, 0 100%); padding-left: var(--s4); }
.journey-chip.is-on { color: #0B1E2B; }
.journey-chip span { display: none; }
@media (min-width: 60rem) { .journey-chip span { display: inline; } }
.is-live .journey-panels { display: grid; grid-template-columns: 1fr; }
.is-live .journey-panels li {
  grid-area: 1 / 1; background: none; border: 0; padding: 0;
  opacity: 0; visibility: hidden; transform: translateX(28px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
}
.is-live .journey-panels li.is-current { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.is-live .journey-panels h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.1; margin-bottom: var(--s3); }
.is-live .journey-panels p { font-size: 1.1rem; }
.is-live .journey-result { font-size: 1rem; }

/* Small phones: the live site's tighter picture, so the whole thing fits on one screen. */
@media (max-width: 30rem) {
  .stage { gap: var(--s2); padding-block: 0; }
  .stage::after { top: 1.4rem; }
  .s-cards { gap: var(--s2); }
  .s-card { min-height: 5.9rem; padding: 0.55rem 0.6rem; }
  .s-card:nth-child(n+3)::before { height: var(--s2); }
  .face { gap: 0.3rem; }
  .proj-tags, .skel--short, .s-chips em { display: none; }
  .proj-title { font-size: 0.95rem; }
  .proj-status { font-size: 0.7rem; }
  .bubble, .proj-ask, .proj-bubble { font-size: 0.7rem; padding: 0.3rem 0.5rem; }
  .proj-ask, .proj-bubble { max-width: 94%; }
  .proj-bubble .ans-full { display: none; }
  .proj-bubble .ans-short { display: inline; }
  .proj-bubble { font-size: min(0.7rem, 7.2cqi); padding: 0.43em 0.71em; }
  .proj-convo { gap: 0.25rem; }
  .s-chips { font-size: min(0.63rem, 2.8cqi); gap: 0.3em; }
  .s-chips span { padding: 0.25em 0.62em; }
  .s-brain { font-size: 0.98rem; padding: 0.5rem 1rem; }
  .s-lines { height: 1.25rem; }
  .s-chips--systems { margin-top: 0; }
  /* The "Connected" light stays in the corner; the word itself is left out to save room. */
  .proj-status { font-size: 0; gap: 0; padding-top: 0.35rem; }
  .proj-systems { --ph: 0.6rem; gap: 0.2rem; }
}

/* Fade-up on scroll. Only switched on by the script, so content is never
   hidden if the script fails or the visitor prefers reduced motion. */
.reveal-ready .rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0s);
}
.reveal-ready .rv.is-in { opacity: 1; transform: none; }

/* AI jargon pop-up. Uses the site's own colours and fonts; bubble colours
   come from the department ramp via --seg / --segc. */
.jx-launch {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 2px solid var(--accent); border-radius: 99px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); transition: transform 0.12s ease;
}
.jx-launch:hover { transform: translateY(-2px); }
.jx-launch .logo-mark { width: 1.4rem; height: 1.05rem; }
.has-brandbar .jx-launch { bottom: 8.5rem; }
@media (min-width: 60rem) { .has-brandbar .jx-launch { bottom: 4.25rem; } }

dialog.jx {
  width: min(100% - 1.5rem, 62rem); max-height: min(92vh, 92dvh); overflow: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: calc(var(--radius) * 2);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.5);
}
dialog.jx::backdrop { background: rgb(5 12 18 / 0.7); }
.jx p, .jx h2, .jx h3 { margin: 0; max-width: none; }
.jx-close {
  position: sticky; top: 0; float: right; z-index: 2; width: 2.5rem; height: 2.5rem; margin: -0.5rem -0.5rem 0 0.5rem;
  font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
}
.jx-head { display: grid; gap: 0.5rem; margin-bottom: var(--s6); }
.jx-head h2 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; }
.jx-sub { font-size: 1.1rem; color: var(--ink-soft); }
.jx-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s6); align-items: start; }
.jx-left { display: grid; gap: var(--s5); min-width: 0; }

.jx-cloud { display: flex; flex-wrap: wrap; gap: 1.6rem 0.9rem; align-items: center; }
.jx-bubble {
  position: relative; appearance: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.2;
  color: var(--ink); background: var(--surface);
  border: 2px solid var(--segc); border-radius: 999px; padding: 0.6em 1.15em;
  rotate: var(--rot, 0deg);
  animation: jx-bob var(--dur, 3.4s) ease-in-out var(--delay, 0s) infinite alternate;
  transition: transform 0.12s ease, background-color 0.2s ease, color 0.2s ease;
}
.jx-bubble[data-size="s"] { font-size: 0.98rem; }
.jx-bubble[data-size="l"] { font-size: 1.35rem; }
.jx-bubble::after {
  content: ""; position: absolute; left: 1.3em; bottom: -9px; width: 14px; height: 14px;
  background: inherit; border-right: 2px solid var(--segc); border-bottom: 2px solid var(--segc);
  transform: rotate(45deg) skew(8deg, 8deg);
}
.jx-bubble:nth-child(even)::after { left: auto; right: 1.3em; }
.jx-bubble:hover { transform: translateY(-2px); animation-play-state: paused; }
.jx-bubble[aria-pressed="true"] { background: var(--segc); color: #0B1E2B; animation-play-state: paused; }
html:not([data-palette="night"]) .jx-bubble[aria-pressed="true"] { color: #FFFFFF; }
.jx-bubble.is-seen:not([aria-pressed="true"]) { color: var(--ink-soft); background: var(--tint); }
.jx-bubble.is-seen::before { content: "\2713"; margin-right: 0.4em; font-weight: 800; }
@keyframes jx-bob { from { translate: 0 -3px; } to { translate: 0 3px; } }
.jx-count { font-size: 0.92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.jx-reply {
  min-width: 0; min-height: 17rem; display: grid; align-content: center; padding: var(--s5);
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--segc, var(--accent));
  border-radius: calc(var(--radius) * 1.5);
}
.jx-empty { display: grid; gap: 0.5rem; }
.jx-empty-big { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1.1; }
.jx-empty-small { color: var(--ink-soft); }
.jx-answer { display: grid; gap: var(--s4); align-content: start; }
.jx-answer.is-popping { animation: jx-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes jx-pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.jx-asked { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.jx-tag {
  font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.jx-term {
  font-family: var(--font-head); font-weight: 700; border: 2px solid var(--segc, var(--accent));
  border-radius: 999px; padding: 0.15em 0.75em;
}
.jx-tease {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  line-height: 1.2; letter-spacing: -0.01em; text-wrap: wrap;
}
.jx-plain { display: grid; gap: 0.25rem; background: var(--accent-soft); border-radius: var(--radius); padding: 0.85rem 1rem; }
.jx-plain p:last-child { font-weight: 500; }
.jx-later { display: grid; gap: 0.25rem; }

.jx-cta {
  margin-top: var(--s6); padding: var(--s5); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s4) var(--s6);
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: calc(var(--radius) * 1.5);
  animation: jx-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.jx [hidden] { display: none !important; }
.jx-cta > div { display: grid; gap: 0.4rem; flex: 1 1 20rem; min-width: 0; }
.jx-cta h3 { font-size: 1.5rem; line-height: 1.15; }
.jx .jx-skip { margin-top: var(--s5); font-size: 0.92rem; color: var(--ink-soft); }
.jx-skip a { font-weight: 600; }

@media (max-width: 47.5rem) {
  .jx-main { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .jx-reply { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .jx-bubble, .jx-answer.is-popping, .jx-cta { animation: none; }
}

/* 5. BRAND PREVIEW BAR (dev only; remove via show_brand_switcher) ---------- */

.has-brandbar { padding-bottom: 7.5rem; }
.brandbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  background: #111820; color: #F4F6F8; border-top: 3px solid #E0A85A;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem;
}
.brandbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  width: min(100% - 2rem, var(--container)); margin-inline: auto; padding-block: 0.6rem;
}
.brandbar strong { letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; color: #E0A85A; }
.brandbar label { display: flex; align-items: center; gap: 0.4rem; }
.brandbar select {
  font: inherit; color: #F4F6F8; background: #1E2A36; border: 1px solid #44556A;
  border-radius: 6px; padding: 0.3rem 0.4rem; max-width: 15rem;
}
@media (min-width: 60rem) { .has-brandbar { padding-bottom: 3.5rem; } }
