/* ==========================================================================
   GoBeeVir — Business Operations Partner
   Design system. Brand colours sampled from the logo mark:
     Orange #E77133   Navy #0E2F40
   Direction: editorial / operational field-notes. Warm paper ground, hairline
   rules, numbered indices, one serif voice for emphasis. Nothing decorative
   that does not carry meaning.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — the two values from the brand sheet: navy #0E2F40, orange
     #E77133. The app surface (assets/css/styles.css and the brief/onboarding
     pages) already runs them, so both halves of the site now read as the same
     company. --orange-700/-800 are derived rather than given: the brand
     orange measures 2.4-3.1:1 on these warm grounds, under the 4.5:1 floor
     for text, so the text and fill steps are darkened to clear it. The brand
     orange itself is used only as a fill, a rule or display colour. */
  --navy:        #0E2F40;
  /* The colour of emphasis text - headings, bold, labels - on a light ground.
     The same value as --navy in this theme, but a separate token, because the
     dark theme has to keep the navy surfaces dark while this goes light. */
  --strong:      #0E2F40;
  --navy-800:    #0A2431;
  --navy-700:    #0A4256;
  --navy-600:    #1E5570;
  --navy-050:    #F4F8FA;
  --navy-100:    #E3EDF1;

  --orange:      #E77133;   /* brand accent — never small text on light */
  --orange-br:   #F86813;   /* brighter: small orange text on a dark ground */
  --orange-700:  #B14C12;   /* AA text on every ground here, and white on fill */
  --orange-800:  #8F3C0A;   /* hover / pressed */
  --orange-050:  #FEF6F1;
  --orange-100:  #FBE4D5;

  /* Ground — the live site's warm neutrals */
  --paper:       #FBFAF8;
  --paper-2:     #F2EEE7;
  --paper-3:     #E7E2D9;
  --white:       #FFFFFF;

  /* Ink */
  --ink:         #0E2F40;
  --ink-2:       #123A4B;
  --muted:       #4A6472;   /* 6.27 on white, 5.42 on paper-2 */
  --faint:       #8AA0AB;   /* 2.75 — decorative icons only, never text */

  /* Rules */
  --line:        #E7E2D9;
  --line-2:      #F2EEE7;
  --line-soft:   #F2EEE7;
  --line-dark:   rgba(255,255,255,.14);

  /* The honeycomb blueprint. Read by hero-honeycomb.js rather than hardcoded
     there, so the dark theme can lift it off its own ground. */
  --comb-line:   rgba(14, 47, 64, .075);

  /* Support */
  --ok:          #1F7A5C;
  --ok-050:      #EDF7F3;
  --warn:        #B4720B;
  --danger:      #C0392B;

  /* Type
     Cormorant sets the whole page, per the brand sheet. Garamond is the
     text-fitted cut of that family - the one drawn for running text rather
     than display - and the one the client-area pages load too.
     Fraunces is kept for exactly one job: the orange half of a two-tone
     headline, the cursive-looking italic the brand runs there. */
  --font:   "Cormorant Garamond", "Cormorant", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --script: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* The two older names, kept pointing at the one face so every rule written
     against them still resolves. Nothing on the page is set in a sans now. */
  --sans:   var(--font);
  --serif:  var(--font);

  /* Tells the browser which way round this theme runs, so form controls,
     scrollbars and the like are drawn to match rather than fighting it. */
  color-scheme: light;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 9px;
  --r:    13px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Elevation — low and warm, never a generic grey blur */
  --sh-sm: 0 1px 2px rgba(14,47,64,.05);
  --sh:    0 2px 4px rgba(14,47,64,.04), 0 8px 24px rgba(14,47,64,.05);
  --sh-md: 0 4px 10px rgba(14,47,64,.05), 0 18px 44px rgba(14,47,64,.08);
  --sh-lg: 0 10px 20px rgba(14,47,64,.06), 0 32px 70px rgba(14,47,64,.12);
  --sh-or: 0 8px 24px rgba(231,113,51,.26);

  /* Space scale (4 / 8 rhythm) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Layout */
  /* Fluid rather than a fixed cap. A flat 1200px left 352px of dead gutter
     each side at 1920; a flat 1360px fixed that but squeezed a 1440 laptop
     to a 32px gutter. 92vw keeps the margin proportional on normal screens
     and the 1400px ceiling stops the grids stretching on very wide ones. */
  --max:   min(1400px, 92vw);
  --max-n: 880px;      /* narrow reading measure */
  --gutter: 24px;
  --nav-h: 72px;

  /* Motion */
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in:  cubic-bezier(.5, 0, .75, 0);
  --t-fast:   140ms;
  --t:        240ms;
  --t-slow:   520ms;

  --z-base: 1;
  --z-sticky: 50;
  --z-header: 900;
  --z-overlay: 1000;
  --z-modal: 1100;
}

@media (min-width: 768px) { :root { --gutter: 40px; --nav-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  /* 19px root, set as a percentage so a reader who has raised their browser's
     default text size still gets it - a px value here would silently override
     that preference. Cormorant's x-height is about three quarters of a
     grotesque's, so a 16px root reads a size and a half small. Lifting the
     root scales every rem in the sheet together and leaves the px-based
     spacing and layout untouched. */
  font-size: 118.75%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  /* 500, not 400: Cormorant's regular is a light stroke and reads grey in a
     paragraph. 500 gives it the colour on the page Inter 400 had. */
  font-weight: 500;
  line-height: 1.6;
  /* brand navy rather than the softer ink, which a lighter face needs to hold
     its contrast against the paper */
  color: var(--ink);
  background: var(--paper);
  /* no antialiased smoothing here. It thins the stroke, which a sans can
     absorb and a light serif cannot. */
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
/* <picture> wraps the images that offer a WebP. It is a source-selection
   element, not a box: display:contents keeps the <img> itself as the child
   the layout and every existing img rule on this page already expect. */
picture { display: contents; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--orange-100); color: var(--strong); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
/* The tight negative tracking below belonged to a grotesque. A serif carries
   its own rhythm in the serifs themselves, and pulling the letters together
   closes the counters, so these are all near zero now. */
h1, h2, h3, h4, h5 {
  color: var(--strong);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.004em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.25rem + 4.3vw, 4.1rem); letter-spacing: -0.012em; line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 1.15rem + 2.5vw, 2.85rem); letter-spacing: -0.009em; line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); letter-spacing: -0.004em; line-height: 1.22; }
h4 { font-size: 1.0625rem; letter-spacing: -0.002em; line-height: 1.35; }
h5 { font-size: .9375rem; letter-spacing: 0; }

p { text-wrap: pretty; }
strong, b { color: var(--strong); font-weight: 700; }

/* Serif voice — reserved for emphasis inside a heading. Never a whole block.
   This is the two-tone headline the brand runs on: the sentence is navy and
   the phrase that carries the point is orange, exactly as on the live site.
   The tone is --orange-700 rather than the #E77133 the brand sheet gives,
   because brand orange measures 2.4-3.1:1 on these warm grounds — under the
   3:1 floor even for display sizes. --orange-700 clears 4.5:1 on every one of
   them, so the accent holds at any heading size, including the small 22px
   form heading. Dark bands restate it as brand orange further down, where the
   ground is navy and the full-strength colour is already past AA. */
.sr {
  /* Fraunces, not the Cormorant the rest of the page runs. This is the one
     place the brand uses the cursive italic, and keeping it here is what
     makes the two halves of the headline read as two voices.
     The size step down is not decoration: Fraunces' x-height is far larger
     than Cormorant's, so at a shared font-size it would sit visibly bigger
     than the navy half it follows. */
  font-family: var(--script);
  font-weight: 400;
  font-style: italic;
  font-size: 0.92em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
  letter-spacing: -0.012em;
  color: var(--orange-700);
}
/* kept as an explicit opt-in for anywhere the accent is not a .sr span */
.sr-or { color: var(--orange-700); }

/* Hand-drawn underline — SVG stroke, draws in on reveal */
.mark { position: relative; white-space: nowrap; }
.mark svg {
  position: absolute;
  /* -.3em, not -.22em: the accent now sets at .92em of the heading, which
     lifts this stroke relative to the glyphs. At -.22em it clipped the
     descenders of p and y at phone sizes. */
  left: -2%; bottom: -.3em;
  width: 104%; height: .42em;
  overflow: visible;
  pointer-events: none;
}
.mark svg path {
  fill: none;
  /* var(--orange-700), not var(--orange): the word above this stroke is
     .sr-or, which resolves to --orange-700 (#B14C12 on light). Drawing the
     line in --orange made it a LIGHTER orange than the word it underlines,
     which is what read as washed out on the light hero. The token flips per
     theme, so the dark rule below restates --orange to leave dark exactly as
     it was. */
  stroke: var(--orange-700);
  stroke-width: 6;
  stroke-linecap: round;
  /* .5 washed the stroke out on the light hero. .8 of the darker token
     reads as a drawn mark without becoming a rule. This base value serves
     light and any unset theme: there is no prefers-color-scheme fallback in
     this sheet, the theme is data-theme only. */
  opacity: .8;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 900ms var(--ease) 180ms;
}
.is-in .mark svg path, .mark.is-in svg path { stroke-dashoffset: 0; }

/* a heading that sits low in the document outline but reads as a card title */
.h-sm {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: 18px;
}
/* a short stub of a rule rather than a hairline: it reads as a mark beside
   the label instead of a line trailing off it */
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--orange);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: var(--orange); }
.eyebrow--light::before { background: rgba(231,113,51,.7); }

.idx {
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
}

.small { font-size: .875rem; line-height: 1.6; }
.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-n { max-width: var(--max-n); }

.sec { padding-block: clamp(72px, 8vw, 118px); position: relative; }
.sec-sm { padding-block: clamp(48px, 5vw, 76px); }
.sec-paper { background: var(--paper-2); }
.sec-white { background: var(--white); }
.sec-navy  { background: var(--navy); color: rgba(255,255,255,.76); }
.sec-navy h1, .sec-navy h2, .sec-navy h3, .sec-navy h4, .sec-navy h5 { color: #fff; }
.sec-navy strong { color: #fff; }
.sec-navy .lede { color: rgba(255,255,255,.76); }
/* the serif emphasis word inherits navy, which is invisible on a navy ground —
   every dark surface must restate it */
.sec-navy .sr,
.cta-band .sr,
.ftr .sr { color: var(--orange); }

/* hairline between stacked sections of the same ground */
.sec-rule { border-top: 1px solid var(--line); }

.sec-head { max-width: 640px; margin-bottom: clamp(40px, 4.5vw, 56px); }
.sec-head .lede { margin-top: 16px; }
.sec-head--wide { max-width: 820px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
/* centred, the rule is lopsided - one mark on the left of a symmetrical
   block - so it comes off entirely */
.sec-head--center .eyebrow::before { display: none; }
.sec-head--center .lede { margin-inline: auto; }

/* split head: title left, supporting copy right */
.head-split {
  display: grid;
  gap: 20px 56px;
  margin-bottom: clamp(40px, 4.5vw, 62px);
  align-items: end;
}
@media (min-width: 900px) {
  .head-split { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
  .head-split .lede { margin-top: 0; padding-bottom: 4px; }
}

.grid { display: grid; gap: var(--s-5); }
.g-2 { grid-template-columns: 1fr; }
.g-3 { grid-template-columns: 1fr; }
.g-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .g-2, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 980px) {
  .g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: 0;
  line-height: 1;
  min-height: 44px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              transform var(--t) var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform var(--t) var(--ease); }
.btn:active { transform: translateY(1px) scale(.988); }

.btn-lg { min-height: 52px; padding: 16px 30px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 10px 17px; font-size: .875rem; border-radius: var(--r-xs); }

.btn-or { background: var(--orange-700); color: #fff; box-shadow: 0 1px 2px rgba(149,64,11,.24); }
.btn-or:hover { background: var(--orange-800); box-shadow: var(--sh-or); }
.btn-or:hover svg { transform: translateX(3px); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); box-shadow: 0 8px 24px rgba(14,47,64,.26); }
.btn-navy:hover svg { transform: translateX(3px); }

.btn-ghost { border: 1.5px solid var(--line); color: var(--strong); background: var(--white); }
.btn-ghost:hover { border-color: var(--strong); background: var(--navy-050); }

.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.btn-white:hover svg { transform: translateX(3px); }

.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.46); color: #fff; }
.btn-ghost-light:hover { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.07); }

/* text link with a rule that grows */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--orange-700);
  padding-block: 4px;
}
.tlink svg { width: 15px; height: 15px; transition: transform var(--t) var(--ease); }
.tlink::after {
  content: "";
  position: absolute;
}
.tlink:hover svg { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   6. Focus + skip link (accessibility floor)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--orange-700);
  outline-offset: 3px;
  border-radius: 5px;
}
.sec-navy :focus-visible, .cta-band :focus-visible { outline-color: #FFB27A; }

/* Headings and sections the router focuses so screen readers announce a new
   context. tabindex="-1" keeps them out of the Tab order, so a ring here can
   only ever come from a mouse click on the text — noise, not a focus cue.
   Scoped to this one class, so every real control keeps its ring. */
.is-focus-target:focus,
.is-focus-target:focus-visible { outline: none; }

.skip {
  position: fixed;
  left: 16px; top: -80px;
  z-index: var(--z-modal);
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top var(--t) var(--ease);
}
.skip:focus { top: 16px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: rgba(252,251,249,.82);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              background var(--t) var(--ease), transform 340ms var(--ease);
}
.hdr.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(14,47,64,.05);
}
.hdr.is-hidden { transform: translateY(-100%); }

.hdr-in {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* The logo sits on a light rectangle in dark mode. Padding and the cancelling negative
   margin are set in BOTH themes so switching theme only adds a background -
   the logo never moves. The pill colour is literal, not var(--paper): that
   token flips to #0D212C in dark mode and would erase the navy half of the
   artwork on exactly the theme that needs the pill. */
.brand {
  display: flex;
  align-items: center;
  flex: none;
  padding: 6px 11px;
  margin-inline-start: -11px;
  border-radius: var(--r-xs);
}
:root[data-theme="dark"] .brand { background: #FBFAF8; }
.brand img { height: 34px; width: auto; transition: transform var(--t) var(--ease); }
.brand:hover img { transform: scale(1.03); }


.nav { display: none; align-items: center; gap: 2px; }
/* 1180, not 1024. At a 19px root the seven links plus both buttons no
   longer fit on one line at 1024 and "How We Work" wrapped, which pushed the
   header taller than the sticky offset expects. */
@media (min-width: 1180px) { .nav { display: flex; } }

.nav a {
  position: relative;
  font-size: .9063rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: var(--r-xs);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav a:hover { color: var(--strong); background: var(--navy-050); }
.nav a.is-on { color: var(--strong); font-weight: 700; }
.nav a.is-on::after { transform: scaleX(1); }

.hdr-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr-cta .btn-ghost { display: none; }
@media (min-width: 560px) { .hdr-cta .btn-ghost { display: inline-flex; } }

/* scroll progress hairline */
.hdr-prog {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--orange), var(--orange-700));
  pointer-events: none;
}

/* burger */
.burger {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xs);
  flex: none;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger i {
  position: relative;
  display: block;
  width: 20px; height: 1.9px;
  background: var(--strong);
  border-radius: 2px;
  transition: background var(--t-fast) var(--ease);
}
.burger i::before, .burger i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 1.9px;
  background: var(--strong);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), top var(--t) var(--ease);
}
.burger i::before { top: -6.5px; }
.burger i::after  { top:  6.5px; }
.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] i::after  { top: 0; transform: rotate(-45deg); }

/* mobile sheet */
.msheet {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: calc(var(--z-header) - 1);
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 20px var(--gutter) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.msheet.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1024px) { .msheet { display: none; } }

.msheet a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 4px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--strong);
  border-bottom: 1px solid var(--line-soft);
  min-height: 56px;
}
.msheet a.m-link .idx { color: var(--faint); }
.msheet a.m-link.is-on { color: var(--orange-700); }
.msheet .m-foot { margin-top: 26px; display: grid; gap: 10px; }
.msheet .m-meta { margin-top: 26px; font-size: .875rem; color: var(--muted); }
.msheet .m-meta a { color: var(--strong); font-weight: 500; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 112px));
  padding-bottom: clamp(68px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(880px 520px at 76% -16%, rgba(231,113,51,.085), transparent 60%),
    radial-gradient(720px 460px at 6% 2%, rgba(14,47,64,.05), transparent 58%),
    var(--paper);
}

/* the honeycomb lattice the builders trace — drawn by hero-honeycomb.js.
   Purely atmospheric, so it is aria-hidden and never takes a pointer event. */
#heroCanvas,
canvas[data-honeycomb] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* vignette so the lattice never fights the headline */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 50% at 50% 46%,
    rgba(252,251,249,.88) 0%,
    rgba(252,251,249,.62) 44%,
    rgba(252,251,249,.22) 74%,
    rgba(252,251,249,.52) 100%);
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(40px, 5vw, 56px);
  align-items: center;
}

/* centred hero: the lattice is symmetrical, so the type sits on its axis */
.hero-head {
  text-align: center;
  max-width: min(940px, 100%);
  margin-inline: auto;
  /* a grid item defaults to min-width:auto (min-content); without this an
     unbreakable headline widens the column and knocks the hero off-centre */
  min-width: 0;
}

/* The emphasis line is .mark, which is white-space: nowrap so the hand-drawn
   underline stays on one line. That makes the longest line the hero's real
   width floor, so the scale is tuned to keep it inside the gutter on a 375px
   phone rather than dragging the whole column wider. */
.hero h1 {
  font-size: clamp(2rem, .5rem + 5.6vw, 4.9rem);
  margin-bottom: 24px;
}
.hero .lede {
  max-width: 62ch;
  margin-inline: auto;
  font-size: clamp(1.0625rem, .98rem + .45vw, 1.25rem);
}
.hero .btn-row { justify-content: center; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 10px;
  padding: 7px 8px 7px 7px;
  margin-bottom: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--sh-sm);
}
.hero-kicker b {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--navy);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-kicker span { padding-left: 10px; }

/* the acronym links through to its own explainer, so mark it as a link
   rather than leaving it to read as plain text inside the pill */
.hero-kicker .acr {
  color: var(--orange-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  border-radius: 3px;
  transition: color var(--t-fast) var(--ease);
}
.hero-kicker .acr:hover { color: var(--orange-800); }

/* on a narrow phone the pill becomes two lines rather than overflowing */
@media (max-width: 420px) {
  .hero-kicker { flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 8px 10px; }
  .hero-kicker span { padding-left: 2px; }
}

.hero-cta { margin-top: 32px; }

/* the four disciplines, as a typeset rail rather than four more cards */
.hero-rail {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  align-items: center;
  justify-content: center;
}
.hero-rail span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--strong);
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid var(--line);
  transition: color var(--t) var(--ease);
}
.hero-rail span:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-rail span:hover { color: var(--orange-700); }

/* row list — used by the contact page's direct-contact rail */
.brow {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--t) var(--ease);
}
.brow:last-child { border-bottom: 0; }
.brow:hover { background: var(--paper); }

.brow-ic {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: var(--navy-050);
  color: var(--strong);
}
.brow-ic svg { width: 14px; height: 14px; }
.brow-ic.or { background: var(--orange-050); color: var(--orange-700); }

.brow-t { min-width: 0; }
.brow-t b {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--strong);
  letter-spacing: -.008em;
}
.brow-t span {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. Stat strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { background: var(--white); padding: 26px 24px; transition: background var(--t) var(--ease); }
.stat:hover { background: var(--paper); }
.stat b {
  display: block;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 9px;
}
.stat b em { font-style: normal; color: var(--orange); }
.stat span { display: block; font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: #D8D1C4;
  box-shadow: var(--sh-md);
}
.card h4, .card h3.h-sm { margin-bottom: 9px; }
.card p { font-size: .9375rem; line-height: 1.62; color: var(--ink-2); }

/* top accent that wipes in on hover */
.card--accent::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px; width: 100%;
  background: var(--orange);
  border-radius: var(--r) var(--r) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}
.card--accent:hover::before { transform: scaleX(1); }

/* dark counterpart to .card — used for an "is / is not" pair, so every colour
   it inherits from .card has to be restated for a navy ground */
.card--navy {
  background: var(--navy);
  border-color: var(--navy);
}
.card--navy:hover { border-color: var(--navy-700); }
.card--navy h3, .card--navy h4 { color: #fff; }
.card--navy p { color: rgba(255,255,255,.76); }
.card--navy .card-n { color: var(--orange); }
.card--navy .ticks li { color: rgba(255,255,255,.78); }
.card--navy .ticks li::before { border-color: var(--orange); }

.card-n {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--orange-700);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.ic {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--navy-050);
  color: var(--strong);
  margin-bottom: 18px;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              transform var(--t) var(--ease);
}
.ic svg { width: 21px; height: 21px; }
.ic.or { background: var(--orange-050); color: var(--orange-700); }
.card:hover .ic { transform: translateY(-2px) rotate(-3deg); }
.card:hover .ic:not(.or) { background: var(--navy); color: #fff; }
.card:hover .ic.or { background: var(--orange); color: #fff; }

/* bordered list inside a card */
.ticks { margin-top: 16px; }
.ticks li {
  position: relative;
  padding-left: 25px;
  font-size: .9063rem;
  line-height: 1.58;
  color: var(--ink-2);
}
.ticks li + li { margin-top: 10px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .54em;
  width: 11px; height: 6px;
  border-left: 1.8px solid var(--orange-700);
  border-bottom: 1.8px solid var(--orange-700);
  transform: rotate(-45deg);
}
.ticks--navy li::before { border-color: var(--navy-600); }
.sec-navy .ticks li { color: rgba(255,255,255,.76); }

/* --------------------------------------------------------------------------
   11. Pillars (the four connected pillars)
   -------------------------------------------------------------------------- */
.pillars {
  position: relative;
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pillars { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.pillar {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #D8D1C4; }

.pillar-n {
  position: absolute;
  right: 18px; top: 14px;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -.05em;
  color: #E9E3D7;        /* ornamental watermark, aria-hidden; the <h3> carries the meaning */
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color var(--t) var(--ease);
  pointer-events: none;
}
.pillar:hover .pillar-n { color: var(--orange-100); }

.pillar h3 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--strong);
  margin: 0 0 10px;
}
.pillar p { font-size: .9063rem; line-height: 1.58; color: var(--ink-2); }

/* connective tissue between the four — draws in on reveal, desktop only */
.pillar-link {
  display: none;
  position: absolute;
  top: 46px;
  width: 20px; height: 2px;
  pointer-events: none;
}
@media (min-width: 1040px) { .pillar-link { display: block; } }
.pillar-link span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 8px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms var(--ease);
}
.is-in .pillar-link span { transform: scaleX(1); }
.is-in .pillar-link:nth-of-type(1) span { transition-delay: 300ms; }
.is-in .pillar-link:nth-of-type(2) span { transition-delay: 440ms; }
.is-in .pillar-link:nth-of-type(3) span { transition-delay: 580ms; }

/* --------------------------------------------------------------------------
   12. Services — tabbed detail
   -------------------------------------------------------------------------- */
.svc-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.svc-tabs::-webkit-scrollbar { display: none; }

/* Two lines: the pillar the service belongs to over the service's own name.
   The long names say what the work is; on their own they gave no clue that
   the four are a sequence, which is how the rest of the site presents them. */
.svc-tab {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  flex: none;
  padding: 9px 18px;
  min-height: 48px;
  font-size: .9063rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  white-space: nowrap;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.svc-tab-top { display: inline-flex; align-items: baseline; gap: 8px; }
.svc-tab-k {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-tab-n { line-height: 1.2; }
.svc-tab .idx,
.svc-tab .svc-tab-k { transition: color var(--t) var(--ease); }
.svc-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.svc-tab:hover { color: var(--strong); background: var(--paper-2); }
.svc-tab[aria-selected="true"] { color: var(--strong); font-weight: 600; }
.svc-tab[aria-selected="true"] .idx,
.svc-tab[aria-selected="true"] .svc-tab-k { color: var(--orange-700); }
.svc-tab[aria-selected="true"]::after { transform: scaleX(1); }

.svc-panel {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  animation: panelIn 440ms var(--ease) both;
}
@media (min-width: 940px) { .svc-panel { grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); } }
/* full-width variant (the six run-with-our-team cards) */
.svc-panel--full { display: block; grid-template-columns: none; }
@media (min-width: 940px) { .svc-panel--full { grid-template-columns: none; } }
/* must outrank both variants above */
.svc-panel[hidden] { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.svc-aside h3 { margin-bottom: 12px; }
.svc-aside .svc-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.4;
  color: var(--orange-700);
  margin-bottom: 18px;
}
.svc-aside p { font-size: .9375rem; color: var(--ink-2); }
.svc-aside .ic { margin-bottom: 20px; }

.svc-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 620px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }

.svc-item {
  background: var(--white);
  padding: 17px 19px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background var(--t) var(--ease);
}
.svc-item:hover { background: var(--paper); }
.svc-item svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--orange); }
.svc-item span { font-size: .9063rem; line-height: 1.5; color: var(--ink-2); }

/* run-with-our-team sub-service cards */
.run-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.run-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: #D8D1C4; }
.run-card h4 { margin-bottom: 7px; }
.run-card > p { font-size: .875rem; color: var(--muted); line-height: 1.55; }
.run-card .ticks { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.run-card .ticks li { font-size: .875rem; }

/* --------------------------------------------------------------------------
   13. Comparison table
   -------------------------------------------------------------------------- */
.cmp {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
}
.cmp table { font-size: .9375rem; }
.cmp caption { text-align: left; padding: 0 0 14px; font-size: .875rem; color: var(--muted); }

.cmp th, .cmp td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.cmp thead th {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cmp thead th:last-child { color: var(--strong); background: var(--navy-050); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { font-weight: 500; color: var(--muted); width: 32%; }
.cmp tbody td:last-child {
  background: linear-gradient(var(--navy-050), var(--navy-050)) no-repeat;
  color: var(--strong);
  font-weight: 500;
}
.cmp tbody tr { transition: background var(--t) var(--ease); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: var(--paper); }
.cmp tbody tr:hover td:last-child { background: var(--navy-100); }

.cmp td .tick, .cmp td .cross { display: flex; align-items: flex-start; gap: 9px; }
.cmp svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.cmp .tick svg { color: var(--ok); }
.cmp .cross svg { color: var(--faint); }

@media (max-width: 719px) {
  .cmp { border: 0; border-radius: 0; background: transparent; }
  .cmp table, .cmp thead, .cmp tbody, .cmp th, .cmp td, .cmp tr { display: block; }
  .cmp thead { display: none; }
  .cmp tbody tr {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 12px;
    overflow: hidden;
  }
  .cmp tbody th {
    width: auto;
    background: var(--paper-2);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--strong);
    padding: 11px 18px;
    border-bottom: 1px solid var(--line);
  }
  .cmp tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
  .cmp tbody td::before {
    content: attr(data-l);
    display: block;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .cmp tbody td:last-child::before { color: var(--orange-700); }
}

/* --------------------------------------------------------------------------
   14. Process timeline
   -------------------------------------------------------------------------- */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 21px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--line);
}
.steps-prog {
  position: absolute;
  left: 21px; top: 10px;
  width: 2px;
  height: 0;
  background: linear-gradient(var(--orange), var(--orange-700));
  transition: height 90ms linear;
  pointer-events: none;
}
@media (min-width: 860px) {
  .steps::before, .steps-prog { left: 50%; transform: translateX(-1px); }
}

.step {
  position: relative;
  padding-left: 64px;
  padding-block: 16px;
}
.step-dot {
  position: absolute;
  left: 10px; top: 20px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}
.step-dot::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.step.is-in .step-dot { border-color: var(--orange); background: var(--white); }
.step.is-in .step-dot::after { background: var(--orange); transform: scale(1.15); }

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: #D8D1C4; }
.step-card .idx { color: var(--orange-700); display: block; margin-bottom: 7px; }
.step-card h3 { margin-bottom: 7px; }
.step-card p { font-size: .9063rem; color: var(--ink-2); line-height: 1.58; }

@media (min-width: 860px) {
  .step { padding-left: 0; width: 50%; padding-right: 52px; }
  .step-dot { left: auto; right: -12px; top: 32px; }
  .step:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 52px; }
  .step:nth-child(even) .step-dot { right: auto; left: -12px; }
}

/* --------------------------------------------------------------------------
   15. Values / trust lists
   -------------------------------------------------------------------------- */
/* flat grid so DOM order matches the visual 01→06 reading order */
.vals { display: grid; gap: 0 48px; }
@media (min-width: 640px)  { .vals { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .vals { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.val {
  position: relative;
  padding: 26px 0 26px 0;
  border-top: 1px solid var(--line);
}
.val h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.val h3 .idx { color: var(--orange-700); }
.val p { font-size: .9375rem; color: var(--ink-2); }
.val::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 560ms var(--ease);
}
.val:hover::after { transform: scaleX(1); }

/* trust rows with a check rail */
.trust-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t) var(--ease);
}
.trust-row:last-child { border-bottom: 0; }
.trust-row:hover { padding-left: 8px; }
.trust-row .ic-dot {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--orange-050);
  color: var(--orange-700);
  display: grid;
  place-items: center;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.trust-row:hover .ic-dot { background: var(--orange); color: #fff; }
.trust-row .ic-dot svg { width: 15px; height: 15px; }
.trust-row p { font-size: .9688rem; color: var(--ink-2); padding-top: 3px; }

/* --------------------------------------------------------------------------
   16. Industries marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 6px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee + .marquee { margin-top: 14px; }
.marquee--rev .marquee-track { animation-direction: reverse; animation-duration: 54s; }
@keyframes slide { to { transform: translateX(-50%); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding: 13px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--strong);
  white-space: nowrap;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.chip:hover { border-color: var(--orange); box-shadow: var(--sh); transform: translateY(-2px); }
.chip svg { width: 17px; height: 17px; color: var(--orange-700); flex: none; }

/* --------------------------------------------------------------------------
   17. Accordion (FAQ / scope)
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  min-height: 56px;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--strong);
  transition: color var(--t) var(--ease);
}
.acc-btn:hover { color: var(--orange-700); }
.acc-ic {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}
.acc-ic::before, .acc-ic::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--strong);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.acc-ic::before { width: 9px; height: 1.6px; }
.acc-ic::after  { width: 1.6px; height: 9px; }
.acc-btn:hover .acc-ic { border-color: var(--orange); }
.acc-btn[aria-expanded="true"] .acc-ic { background: var(--orange); border-color: var(--orange); transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-ic::before,
.acc-btn[aria-expanded="true"] .acc-ic::after { background: #fff; }
.acc-btn[aria-expanded="true"] .acc-ic::after { transform: translate(-50%,-50%) scaleY(0); }

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--ease);
}
.acc-body > div { overflow: hidden; }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body p { padding: 0 44px 24px 2px; font-size: .9688rem; color: var(--ink-2); max-width: 72ch; }

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255,255,255,.78);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.76); }

/* One column: the second was the contact panel. The cap keeps the lede at a
   readable measure rather than letting it run the full width of the band. */
.cta-grid { display: grid; gap: 36px; }
.cta-grid > * { max-width: 760px; }


/* --------------------------------------------------------------------------
   19. Contact form
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--sh);
}
.fgrid { display: grid; gap: 18px; }
@media (min-width: 620px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
.fspan { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--strong);
  margin-bottom: 7px;
}
.field label .req { color: var(--orange-700); margin-left: 2px; }
.field .hint { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); margin-top: 3px; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364767E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #D5CDBE; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3.5px rgba(231,113,51,.14);
}
/* A pointer user gets the soft ring above; a keyboard user gets the same 3px
   outline every other control on the site uses. The tinted border on its own
   measured 2.4:1 against its unfocused state and 2.96:1 against the page -
   both just under the 3:1 WCAG 2.2 asks of a focus indicator. --orange-700
   is theme-aware, so this is legible on the dark ground too. */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--orange-700);
  outline-offset: 2px;
}

.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #FDF4F3;
}
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3.5px rgba(192,57,43,.13);
}
.field .err {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--danger);
}
.field .err svg { width: 14px; height: 14px; flex: none; }
.field.has-err .err { display: flex; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* direct-contact rail: email, phone, LinkedIn, address as one bordered list */
.contact-rail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.contact-rail > div { display: grid; }
.contact-rail .brow { padding-block: 15px; }

/* contact: form beside the direct-contact rail on desktop, stacked below */
.contact-grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}

.form-note { margin-top: 18px; font-size: .8125rem; color: var(--muted); line-height: 1.55; }
.form-note a { color: var(--strong); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.form-msg {
  display: none;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 17px 19px;
  border-radius: var(--r);
  font-size: .9375rem;
  line-height: 1.55;
  animation: panelIn 320ms var(--ease) both;
}
.form-msg.is-on { display: flex; }
.form-msg.ok  { background: var(--ok-050); border: 1px solid #C9E6DA; color: #17604A; }
.form-msg.bad { background: #FDF3F2; border: 1px solid #F3D5D1; color: #9E2F22; }
.form-msg b { display: block; margin-bottom: 2px; }
.form-msg img { width: 46px; height: 46px; flex: none; object-fit: contain; }
.form-msg a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.err-summary {
  display: none;
  margin-bottom: 22px;
  padding: 17px 19px;
  border-radius: var(--r);
  background: #FDF3F2;
  border: 1px solid #F3D5D1;
  color: #9E2F22;
  font-size: .9375rem;
}
.err-summary.is-on { display: block; }
.err-summary b { display: block; margin-bottom: 8px; color: #9E2F22; }
.err-summary ul { list-style: disc; padding-left: 20px; }
.err-summary li + li { margin-top: 4px; }
.err-summary a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.btn[aria-busy="true"] { opacity: .72; pointer-events: none; }
.spin {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* quote / commitment block */
.quote {
  position: relative;
  padding: clamp(28px, 4vw, 46px) clamp(24px, 4vw, 52px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--r);
}
.quote p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3125rem, 1.05rem + 1.25vw, 1.9rem);
  line-height: 1.38;
  color: var(--strong);
  text-wrap: pretty;
}
.quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-style: normal;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* promise band — two halves of a sentence */
.promise {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 760px) { .promise { grid-template-columns: 1fr 1fr; } }
.promise > div { background: var(--white); padding: 30px 28px; transition: background var(--t) var(--ease); }
.promise > div:last-child { background: var(--navy); color: rgba(255,255,255,.8); }
.promise > div:hover { background: var(--paper); }
.promise > div:last-child:hover { background: var(--navy-700); }
.promise .idx { color: var(--orange-700); display: block; margin-bottom: 12px; }
.promise > div:last-child .idx { color: var(--orange); }
.promise p { font-size: 1.125rem; font-weight: 500; color: var(--strong); line-height: 1.45; letter-spacing: -.018em; }
.promise > div:last-child p { color: #fff; }

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.ftr {
  background: var(--navy-800);
  color: rgba(255,255,255,.62);
  padding-block: clamp(48px, 5.5vw, 76px) 0;
  font-size: .9063rem;
}
.ftr-top {
  display: grid;
  gap: 40px;
  padding-bottom: 46px;
}
@media (min-width: 680px) { .ftr-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ftr-top { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; } }

/* The footer carries the stacked logo, which is square. 140px, not the old
   lockup's 56: at that height a 1:1 mark reads as a thumbnail beside the
   paragraph. max-width keeps it inside the brand column if the grid ever
   gets narrower than the mark. */
.ftr-brand img { height: 140px; width: auto; max-width: 100%; display: block; }

/* The container is the <picture> element itself - .ftr-brand holds the logo
   picture, a paragraph and the tag, so `> picture` reaches only the logo and
   no wrapper markup is needed. The footer is dark in both themes, so unlike
   the header this one is not theme-scoped. */
.ftr-brand > picture {
  display: inline-flex;
  padding: 16px;
  margin-bottom: 20px;
  background: #FBFAF8;
  border-radius: var(--r-xs);
}
.ftr-brand p { max-width: 36ch; line-height: 1.6; font-size: .9063rem; }
.ftr-tag {
  margin-top: 18px;
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.8);
}

.ftr .ftr-h {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
  margin-bottom: 16px;
}
.ftr li + li { margin-top: 11px; }
.ftr li a, .ftr li span { display: inline-block; transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.ftr li a:hover { color: #fff; transform: translateX(3px); }

.ftr-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8125rem;
  color: rgba(255,255,255,.60);
}
.ftr-social { display: flex; gap: 8px; }
.ftr-social a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--r-xs);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.ftr-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.ftr-social svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   22. Back to top
   -------------------------------------------------------------------------- */
.totop {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: var(--z-sticky);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease),
              visibility var(--t), background var(--t) var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--orange); }
.totop svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .totop { right: 28px; bottom: 28px; } }

/* --------------------------------------------------------------------------
   23. Scroll reveal
   -------------------------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}
.rv.is-in { opacity: 1; transform: none; }

.rv-l { transform: translateX(-18px); }
.rv-r { transform: translateX(18px); }
.rv-s { transform: translateY(10px) scale(.985); }
.rv-l.is-in, .rv-r.is-in, .rv-s.is-in { transform: none; }

/* --------------------------------------------------------------------------
   24. Router pages
   -------------------------------------------------------------------------- */
.page { display: none; }
.page.is-live { display: block; animation: pageIn 420ms var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* page masthead for inner routes */
.mast {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 5.5vw, 72px));
  padding-bottom: clamp(32px, 4vw, 54px);
  /* the hero's ground, so a page title reads as the same surface */
  isolation: isolate;
  background:
    radial-gradient(880px 520px at 76% -16%, rgba(231,113,51,.085), transparent 60%),
    radial-gradient(720px 460px at 6% 2%, rgba(14,47,64,.05), transparent 58%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* the wash that fades the comb out behind the words, as on the hero */
.mast::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 60% at 50% 46%,
    rgba(252,251,249,.88) 0%,
    rgba(252,251,249,.62) 44%,
    rgba(252,251,249,.22) 74%,
    rgba(252,251,249,.52) 100%);
}

/* and the title sits above both, the way .hero-grid does */
.mast .wrap { position: relative; z-index: 3; }
.mast h1 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.35rem); }
.mast .lede { margin-top: 18px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumb a { font-weight: 500; transition: color var(--t-fast) var(--ease); }
.crumb a:hover { color: var(--orange-700); }
.crumb svg { width: 13px; height: 13px; color: var(--faint); }
.crumb b { color: var(--strong); font-weight: 600; }

/* on-page section nav for long routes */
.jump {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  /* near-opaque: section headings must not read through it as they scroll under */
  background: rgba(252,251,249,.97);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 14px rgba(14,47,64,.04);
}
.jump-in {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.jump-in::-webkit-scrollbar { display: none; }
.jump a {
  flex: none;
  padding: 14px 13px;
  font-size: .8438rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  min-height: 46px;
  display: inline-flex;
  align-items: center;
}
.jump a:hover { color: var(--strong); }
.jump a.is-on { color: var(--strong); font-weight: 600; border-bottom-color: var(--orange); }

/* 404 */
.nf { text-align: center; padding-top: calc(var(--nav-h) + 72px); padding-bottom: 92px; }
.nf img { width: clamp(150px, 22vw, 220px); margin: 0 auto 30px; }
.nf .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   25. Document viewer
   -------------------------------------------------------------------------- */
.dv {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
  background: rgba(10,36,49,.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 200ms var(--ease) both;
}
.dv[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.dv-box {
  width: min(1000px, 100%);
  height: min(86vh, 100%);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  animation: panelIn 280ms var(--ease) both;
}
.dv-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.dv-head h3 { font-size: 1rem; }
.dv-head .small { color: var(--muted); }
.dv-head .sp { flex: 1; }
.dv-x {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  color: var(--muted);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.dv-x:hover { background: var(--paper-3); color: var(--strong); }
.dv-x svg { width: 18px; height: 18px; }
.dv-frame { flex: 1; width: 100%; border: 0; background: var(--paper-2); }
.dv-note { padding: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dv-note p { font-size: .875rem; color: var(--muted); flex: 1 1 220px; }

/* --------------------------------------------------------------------------
   26. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: var(--z-overlay);
  transform: translateX(-50%) translateY(18px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 13px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 100px;
  box-shadow: var(--sh-lg);
  font-size: .875rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.toast.is-on { opacity: 1; visibility: visible; transform: translateX(-50%); }
.toast svg { width: 17px; height: 17px; color: var(--orange); flex: none; }

/* --------------------------------------------------------------------------
   34. WhatsApp button
   --------------------------------------------------------------------------
   Sits directly above the back-to-top button, which keeps its own corner.
   Navy like its neighbour rather than WhatsApp green, so the two floating
   controls read as a pair - the glyph is what identifies it. It turns the
   platform's own green on hover and focus.
   -------------------------------------------------------------------------- */
.wa {
  position: fixed;
  right: 20px; bottom: 78px;
  z-index: var(--z-sticky);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--sh-md);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.wa svg { width: 22px; height: 22px; }
.wa:hover, .wa:focus-visible { background: #25D366; color: #fff; transform: translateY(-2px); }
@media (min-width: 768px) { .wa { right: 28px; bottom: 86px; } }
@media (prefers-reduced-motion: reduce) { .wa { transition: background var(--t) var(--ease); } }
@media (prefers-reduced-motion: reduce) { .wa:hover, .wa:focus-visible { transform: none; } }

/* --------------------------------------------------------------------------
   27. Print
   -------------------------------------------------------------------------- */
@media print {
  .hdr, .msheet, .totop, .wa, .jump, .cta-band .btn-row { display: none !important; }
  .page { display: block !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
  .card, .pillar, .step-card { break-inside: avoid; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   28. Reduced motion — strip every non-essential animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; transform: none !important; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: 100%; justify-content: center; }
  .mark svg path { stroke-dashoffset: 0 !important; }
  .pillar-link span { transform: scaleX(1) !important; }
}

/* --------------------------------------------------------------------------
   29. Touch comfort
   Every control clears the 24×24 CSS px floor (WCAG 2.2 AA). On a coarse
   pointer the common ones are lifted to 44px so they are comfortable to hit
   without the visual design growing on desktop.
   -------------------------------------------------------------------------- */
.brand { min-height: 44px; }

.tlink { min-height: 44px; }

.crumb a { padding-block: 6px; }

.ftr li a, .ftr li span { padding-block: 4px; }

@media (pointer: coarse) {
  .btn-sm { min-height: 44px; padding-block: 12px; }
  .ftr li a { padding-block: 8px; }
  .ftr li + li { margin-top: 4px; }
  .msheet .m-meta a { display: inline-block; padding-block: 10px; }
  .crumb a { padding-block: 10px; }
  .svc-tab { min-height: 52px; }
}

/* --------------------------------------------------------------------------
   30. Forced colours / high contrast
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .btn, .card, .pillar, .chip, .step-card { border: 1px solid CanvasText; }
  .hdr-prog, .steps-prog { forced-color-adjust: none; }
}

/* --------------------------------------------------------------------------
   31. GSAP hand-off
   When GSAP is present it takes over the scroll reveal, the counters, the
   step rail and the magnetic buttons. The CSS transitions on exactly those
   properties have to stand down, or two engines animate the same inline
   value against each other and the result stutters. Everything else — hover
   states, the accordion, the marquee, the honeycomb — stays on CSS.
   Nothing here changes the resting appearance, so there is no flash if the
   library fails to load: site.js keeps its own IntersectionObserver path.
   -------------------------------------------------------------------------- */
.gsap-on .rv { transition: none; }
.gsap-on .steps-prog { transition: none; }

/* the magnet writes to transform every frame; leave it the other properties */
.gsap-on [data-magnet] {
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}


/* --------------------------------------------------------------------------
   32. Comparison table — colours matched to the deployed site
   The live table codes the two columns by fill rather than by icon alone:
   the "them" header is navy, the "us" header is brand orange, the row label
   sits on the pale navy tint, and the body cells carry a weight difference.
   The only departure is the orange: the live header uses #E77133 behind white
   text (3.07:1), so the accessible step is used for that fill instead.
   -------------------------------------------------------------------------- */
.cmp { background: var(--white); border-color: var(--line); border-radius: var(--r-lg); }

.cmp thead th {
  border-bottom: 0;
  padding: 15px 22px;
  letter-spacing: .14em;
}
.cmp thead th:first-child  { background: var(--white);       color: var(--muted); }
.cmp thead th:nth-child(2) { background: var(--navy);        color: #fff; }
.cmp thead th:last-child   { background: var(--orange-700);  color: #fff; }

.cmp tbody th {
  width: 21%;
  font-weight: 700;
  color: var(--strong);
  background: var(--navy-050);
}
.cmp tbody td { padding: 16px 22px; }
.cmp tbody td:nth-child(2) { color: var(--muted); font-weight: 500; }
.cmp tbody td:last-child   { color: var(--strong);  font-weight: 600; background: transparent; }

.cmp tbody tr:hover th { background: var(--navy-100); }
.cmp tbody tr:hover td,
.cmp tbody tr:hover td:last-child { background: var(--orange-050); }

.cmp .tick svg  { color: var(--orange-700); }
.cmp .cross svg { color: var(--faint); }

/* --------------------------------------------------------------------------
   33. Service card head
   Holds the card icon and sets the space beneath it. This row used to carry
   a mascot opposite the icon, which is why it is a space-between flex row
   rather than a plain block; with one child the icon simply sits left.
   -------------------------------------------------------------------------- */
.bv-cardtop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.bv-cardtop .ic,
.bv-cardtop .card-n { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   34. Contact form heading
   This sat in a style attribute as clamp(1.4rem,1.2rem+.8vw,1.75rem). CSS
   needs whitespace around + and - inside a math expression, so that value
   never parsed and the heading silently rendered at the full h2 scale (46px
   at desktop) instead of the intended 22-28px. Moved here and written
   correctly.
   -------------------------------------------------------------------------- */
.form-h {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  margin-bottom: 8px;
}


/* --------------------------------------------------------------------------
   35. Service card outcome line
   One sentence saying what the service does FOR you, above the sentence
   saying what it is. A visitor skimming the four cards should be able to
   pick one without opening anything.
   -------------------------------------------------------------------------- */
.svc-out {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--strong);
}


/* --------------------------------------------------------------------------
   36. Pricing and industries pages
   Both are generated from content/site-data.json by tools/make-pages.py.
   -------------------------------------------------------------------------- */
.price-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--muted);
}
.price-line b { color: var(--strong); font-weight: 700; }

/* the chip is a span in the marquee and a link here, so the link states
   are additive rather than part of the base rule */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
a.chip {
  text-decoration: none;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              color var(--t) var(--ease);
}
@media (hover: hover) {
  a.chip:hover { background: var(--orange-050); border-color: var(--orange-700); color: var(--orange-700); }
}

/* The rate table has four columns, not the comparison table’s three, so the
   base rule (navy second column, orange last) leaves the middle tier unstyled
   and looking like an afterthought. Give the three tiers a deliberate
   progression instead: navy, navy tint, orange — cheapest to most involved. */
.cmp--rate thead th:nth-child(3) {
  background: var(--navy-100);
  color: var(--strong);
}
@media (min-width: 720px) {
  .cmp--rate td { text-align: right; font-variant-numeric: tabular-nums; }
  .cmp--rate thead th:not(:first-child) { text-align: right; }
  /* the bundles table carries prose in columns 2 and 4 */
  .cmp--bundles td:nth-child(2), .cmp--bundles td:last-child { text-align: left; }
}


/* the one-line trust statement under the hero buttons */
.hero-trust {
  margin-top: clamp(22px, 2.4vw, 30px);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
}


/* --------------------------------------------------------------------------
   31. Day / night
   The page ships in whichever theme the reader's own system asks for, and the
   control in the header overrides that for anyone who wants the other one.
   The choice is remembered; until one is made, the system preference wins and
   keeps winning if it changes mid-visit.

   Everything below is a token swap. The surfaces that were already dark - the
   navy bands, the footer, the CTA band, the navy cards - are untouched, since
   they read correctly in either theme. What follows the tokens is the short
   list of components that hardcode a light value and so cannot follow.

   Every text colour here was measured against the ground it sits on. The
   worst pair in the theme is --muted on a card at 5.0:1; the floor is 4.5.
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  /* The brand navy goes deeper than the page, so a navy band still separates
     from the ground it sits on rather than merging into it. */
  --navy:        #050F16;
  --navy-800:    #03090D;
  --navy-700:    #15394B;
  --navy-600:    #22536B;
  --navy-050:    #15303D;   /* the faint navy washes become faint dark ones */
  --navy-100:    #1B3C4C;

  /* The accent lightens. #B14C12 is right on paper and unreadable on this
     ground; this measures 7.4:1 on the page and 5.7:1 on a card. */
  --orange-700:  #F3975C;
  --orange-800:  #FFB183;
  --orange-050:  #1B2A30;
  --orange-100:  #24383F;

  /* Ground, in three steps: page, raised card, deeper well. */
  --paper:       #0D212C;
  --paper-2:     #122C39;
  --paper-3:     #1B3C4C;
  --white:       #173646;   /* "white" means the raised surface, not the hue */

  /* Ink */
  --strong:      #EDF3F6;
  --ink:         #DCE7EC;
  --ink-2:       #BACBD4;
  --muted:       #8FA6B1;
  --faint:       #5C727E;

  --line:        #244556;
  --line-2:      #1A3744;
  --line-soft:   #1A3744;

  /* Support colours, darkened to sit on this ground rather than glow on it */
  --ok:          #5FC79F;
  --ok-050:      #102A21;
  --warn:        #E0A647;
  --danger:      #E98179;

  /* A navy-tinted shadow is invisible against a navy ground. These go black
     and deepen, which is what actually reads as elevation in the dark. */
  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
  --sh:    0 2px 4px rgba(0,0,0,.34), 0 8px 24px rgba(0,0,0,.4);
  --sh-md: 0 4px 10px rgba(0,0,0,.36), 0 18px 44px rgba(0,0,0,.46);
  --sh-lg: 0 10px 20px rgba(0,0,0,.4), 0 32px 70px rgba(0,0,0,.54);
  --sh-or: 0 8px 24px rgba(231,113,51,.3);
}

/* -- the components that hardcode a light value --------------------------- */

/* the translucent sticky header, and the jump rail under it */
:root[data-theme="dark"] .hdr  { background: rgba(13,33,44,.86); }
:root[data-theme="dark"] .hdr.is-stuck { box-shadow: 0 1px 24px rgba(0,0,0,.5); }
:root[data-theme="dark"] .jump {
  background: rgba(13,33,44,.97);
  box-shadow: 0 1px 14px rgba(0,0,0,.4);
}

/* the hero's paper-tinted wash */
:root[data-theme="dark"] { --comb-line: rgba(186, 203, 212, .10); }

:root[data-theme="dark"] .mast::after {
  background: radial-gradient(ellipse 58% 60% at 50% 46%,
    rgba(13,33,44,.88) 0%,
    rgba(13,33,44,.62) 44%,
    rgba(13,33,44,.22) 74%,
    rgba(13,33,44,.58) 100%);
}

:root[data-theme="dark"] .hero::after {
  background: linear-gradient(180deg,
    rgba(13,33,44,.88) 0%,
    rgba(13,33,44,.62) 44%,
    rgba(13,33,44,.22) 74%,
    rgba(13,33,44,.58) 100%);
}

/* the loading overlay's scrim */

/* hover borders, which were a warm light stone */
:root[data-theme="dark"] .card:hover,
:root[data-theme="dark"] .pillar:hover,
:root[data-theme="dark"] .run-card:hover,
:root[data-theme="dark"] .step-card:hover { border-color: #2E5366; }

/* the big ornamental pillar numeral */
:root[data-theme="dark"] .pillar-n { color: #1E4152; }

/* The hand-drawn underline is brand orange at half opacity. Over paper that
   reads as a soft highlighter; over this ground it all but disappears, so it
   is taken closer to full strength. It is decorative - the heading carries
   the meaning - but it should still be visible. */
:root[data-theme="dark"] .mark svg path { stroke: var(--orange); opacity: .82; }

/* form fields */
:root[data-theme="dark"] .field input:hover,
:root[data-theme="dark"] .field select:hover,
:root[data-theme="dark"] .field textarea:hover { border-color: #2E5366; }
:root[data-theme="dark"] .field input[aria-invalid="true"],
:root[data-theme="dark"] .field select[aria-invalid="true"],
:root[data-theme="dark"] .field textarea[aria-invalid="true"] { background: #2B1A18; }

/* the three message banners */
:root[data-theme="dark"] .form-msg.ok {
  background: #102A21; border-color: #235C47; color: #8FE0BF;
}
:root[data-theme="dark"] .form-msg.bad,
:root[data-theme="dark"] .err-summary {
  background: #2B1816; border-color: #5E2E27; color: #F3A79E;
}
:root[data-theme="dark"] .err-summary b { color: #F3A79E; }

/* The orange fills invert. --orange-700 is a light orange in this theme, so
   the white text those two carry in the light theme measures 2.2:1 on it -
   well under the floor. The ink goes dark instead, which reads at 8.6:1. */
:root[data-theme="dark"] .btn-or { color: var(--navy); }
:root[data-theme="dark"] .btn-or:hover { color: var(--navy); }
:root[data-theme="dark"] .cmp thead th:last-child { color: var(--navy); }

/* the header lockup is a navy wordmark beside an orange mark; the wordmark
   would vanish here, so the dark theme shows a recoloured copy instead */
.brand .lg-dark { display: none; }

/* --------------------------------------------------------------------------
   32. The day / night control
   A real <button> with aria-pressed, not a checkbox dressed up as one, so it
   is reachable by keyboard and announces its state. 44px square: the minimum
   comfortable target for a finger or an unsteady hand.
   -------------------------------------------------------------------------- */
.thm {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--strong);
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.thm:hover { border-color: var(--strong); background: var(--navy-050); }
.thm svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* one icon shows the state you are in, not the one you would move to */
.thm .i-moon { display: none; }
:root[data-theme="dark"] .thm .i-sun  { display: none; }
:root[data-theme="dark"] .thm .i-moon { display: block; }

/* --------------------------------------------------------------------------
   33. Accessibility floor
   -------------------------------------------------------------------------- */

/* Anyone who has asked their system for more contrast gets firmer rules and
   a heavier focus ring, in both themes. */
@media (prefers-contrast: more) {
  :root {
    --line:      #B9AF9C;
    --line-2:    #CFC7B8;
    --line-soft: #CFC7B8;
    --muted:     #35505E;
  }
  :root[data-theme="dark"] {
    --line:      #5C7E8F;
    --line-2:    #46677A;
    --line-soft: #46677A;
    --muted:     #C3D4DC;
  }
  :focus-visible { outline-width: 4px; }
  .card, .pillar, .run-card, .step-card, .thm { border-width: 2px; }
}

/* The burger is the only control on a phone that is not already a full-width
   target; give it the same 44px the toggle has. */
.burger { min-width: 44px; min-height: 44px; }


/* --------------------------------------------------------------------------
   34. Business OS section treatment
   The differences between this sheet and the Business OS one, applied here so
   the two surfaces read as one product. Hero, header and footer are untouched.
   -------------------------------------------------------------------------- */

/* A softer corner. 13px reads as a UI control; 18px reads as a panel, which
   is what these are. */
.card,
.pillar,
.run-card,
.step-card { border-radius: 18px; }

/* the reference carries 2px less at the foot than the head */
.card { padding: 28px 26px 26px; }

/* One lift for the whole family, instead of three different ones. */
.card:hover,
.pillar:hover,
.run-card:hover,
.step-card:hover { transform: translateY(-3px); }

/* The icon chip is orange on both surfaces now. The main site ran two of
   them - a navy chip and an orange one - and inverted to solid navy on
   hover; Business OS has one chip and leaves it alone.
   The ink is the brand orange, matching the reference. It measures 2.8:1 on
   this wash, under the 3:1 an icon would need if it carried meaning - these
   are aria-hidden and repeat the heading beside them, so they are decoration
   and the floor does not apply. --orange-700 is the value to swap back to if
   these ever become the only thing saying what a card is. */
.ic,
.ic.or {
  background: var(--orange-050);
  color: var(--orange);
}
.card:hover .ic { transform: none; }
.card:hover .ic:not(.or),
.card:hover .ic.or {
  background: var(--orange-050);
  color: var(--orange);
}

/* A navy card on a navy band is the same colour as the band, so it depends on
   its shadow to exist at all. Business OS floats a translucent white wash
   instead, which reads in both themes and needs no shadow. */
.sec-navy .card--navy,
.cta-band .card--navy {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
}
.sec-navy .card--navy:hover,
.cta-band .card--navy:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .22);
}
/* and on that band the icon is the bare glyph, not a chip */
.sec-navy .card--navy .ic,
.cta-band .card--navy .ic,
.sec-navy .card--navy:hover .ic,
.cta-band .card--navy:hover .ic {
  width: auto;
  height: auto;
  background: none;
  color: var(--orange);
  margin-bottom: 15px;
  place-items: start;
}


/* --------------------------------------------------------------------------
   35. Service tabs under scroll
   motion.js adds .is-stick when it takes the tablist over, so a reader who
   has asked for no motion - and therefore never gets the scroll driver - does
   not end up with a bar that follows them for no reason.
   -------------------------------------------------------------------------- */
.svc-tabs.is-stick {
  position: sticky;
  /* clear of the site header, which is sticky too */
  top: calc(var(--nav-h) + 6px);
  z-index: var(--z-sticky);
  /* opaque, or the panel scrolls up through the labels. --paper is the
     section's own ground, and it follows the theme. */
  background: var(--paper);
  padding-top: 10px;
}

/* --------------------------------------------------------------------------
   36. The pinned state
   motion.js adds .is-pinned when it takes the section over, and only on a
   window with room for it. Everything here is scoped to that class, so a
   phone, a short window and a reader who has asked for no motion all keep
   the section exactly as it was.
   -------------------------------------------------------------------------- */

/* The stage is the run: motion.js gives it the height of everything there
   is to scroll through, and the browser holds the stick at the top of the
   screen for the length of it. */
.svc-stage { position: relative; }

/* Sticky, not a scroll library's pin. A pin is applied from JavaScript a
   frame after the scroll has already been painted, so the section was drawn
   scrolled up with the page and then snapped back on every wheel tick -
   measured at a 200px bounce. Sticky is settled on the compositor in the
   same frame as the scroll, so there is nothing to lag behind. */
.svc-stick {
  position: -webkit-sticky;
  position: sticky;
  /* motion.js sets top to the fixed header's measured height */
  top: 0;
  z-index: 1;
  /* Opaque, or the section above shows through the tablist as it passes
     underneath. --paper is the page's own ground and follows the theme. */
  background: var(--paper);
}

/* The frame is the window the panels are seen through. motion.js sets its
   height to whatever is left once the header, the tablist and the section's
   own padding have taken their share, and moves a panel taller than that up
   through it as you scroll. */
.svc-frame { position: relative; }
.sec.is-pinned .svc-frame { overflow: hidden; }

/* panelIn is fill-mode "both", so its closing transform: none stays applied
   and overrides the inline transform the pinned frame uses to draw a tall
   panel upward. motion.js fades the panel in instead. */
.sec.is-pinned .svc-panel { animation: none; }

/* The section has to fit a screen to be pinned to one, and its own padding
   is the easiest 150px to give back to the panels. */
.sec.is-pinned { padding-block: clamp(28px, 3.5vw, 46px); }

/* The bar rides inside .svc-stick now, so it needs no sticky of its own. */
.sec.is-pinned .svc-tabs { position: static; padding-top: 0; }

/* The panel already animates in on every swap - .svc-panel carries panelIn,
   and the browser restarts it each time the panel comes back from hidden.
   Under the scroll driver the swaps come in quicker succession, so it is
   shortened a little and the rise is increased to read at a glance. */
.svc-tabs.is-stick ~ .svc-panel {
  animation-duration: 380ms;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Footer policy links. Their own row above the copyright: the four fit on one
   line on a desktop and wrap cleanly on a phone, without pushing the two
   existing items of .ftr-bot out of their space-between layout. */
.ftr-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding-bottom: 18px;
  font-size: .8125rem;
}
.ftr-legal a {
  color: rgba(255,255,255,.62);
  padding-block: 5px;
  transition: color var(--t-fast) var(--ease);
}
.ftr-legal a:hover,
.ftr-legal a:focus-visible { color: #fff; }

/* Consent checkbox on the enquiry form.
   The DPDP Act wants consent to be a separate, unticked, affirmative act, so
   this is its own control in its own box rather than a line of small print
   under the button. It reuses the look of the .consent box in the client
   tools, built from this stylesheet's tokens so it follows the dark theme.
   The generic .field input rule is width:100% / min-height:48px, which would
   stretch a checkbox across the card, so the box is reset explicitly. */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 17px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.consent:hover { border-color: #D5CDBE; }
.consent.sel { border-color: var(--orange); background: var(--orange-050); }

.field .consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: none;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--orange);
  cursor: pointer;
}
/* The soft ring and tinted fill belong to a text box, not an 18px square;
   the keyboard outline from .field input:focus-visible still applies. */
.field .consent input[type="checkbox"]:focus { box-shadow: none; background: none; }
.field .consent input[type="checkbox"][aria-invalid="true"] { border: 0; background: none; }

.field .consent label {
  margin: 0;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  cursor: pointer;
}
.consent-more {
  margin-top: 8px;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}
.consent-more a {
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.field.has-err .consent { border-color: var(--danger); background: #FDF4F3; }
:root[data-theme="dark"] .field.has-err .consent { background: #2B1A18; }
