/* ==========================================================================
   Energy at Work Projects (Pty) Ltd
   Design system + components
   Brand: Orange #F47F23 / Ink #252525 / Montserrat
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --orange:        #F47F23;
  --orange-light:  #FF9D4D;
  --orange-deep:   #D9641A;
  --orange-glow:   rgba(244, 127, 35, .35);

  /* Ink scale */
  --ink-900: #0D0E10;
  --ink-800: #141518;
  --ink-700: #1C1E22;
  --ink-600: #252525;
  --ink-500: #34363B;

  /* Light scale */
  --paper:   #FFFFFF;
  --cream:   #FAF8F6;
  --cream-2: #F2EFEB;
  --line:    #E4DFD9;
  --line-dark: rgba(255, 255, 255, .10);

  /* Text */
  --tx-dark:    #1A1B1E;
  --tx-body:    #55575E;
  --tx-muted:   #8A8D95;
  --tx-onDark:  #FFFFFF;
  --tx-onDark-2: rgba(255, 255, 255, .68);
  --tx-onDark-3: rgba(255, 255, 255, .45);

  /* Type */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --fs-hero:  clamp(2.6rem, 6.4vw, 5.6rem);
  --fs-h2:    clamp(2rem, 4vw, 3.4rem);
  --fs-h3:    clamp(1.35rem, 2.1vw, 1.85rem);
  --fs-h4:    clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-lead:  clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body:  1rem;
  --fs-sm:    .9rem;
  --fs-xs:    .78rem;

  /* Space */
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --sec-y: clamp(4.5rem, 10vw, 9rem);
  --maxw: 1280px;
  --maxw-narrow: 880px;

  /* Motion */
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-inout: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .25s var(--e-out);
  --t-mid: .45s var(--e-out);
  --t-slow: .8s var(--e-out);

  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(20, 21, 24, .06);
  --shadow-md: 0 18px 40px -18px rgba(20, 21, 24, .22);
  --shadow-lg: 0 40px 80px -32px rgba(20, 21, 24, .35);
  --shadow-orange: 0 20px 45px -18px var(--orange-glow);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--tx-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--tx-dark);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--orange); color: #fff; }

/* Focus ring — visible, on-brand */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink-900); color: var(--tx-onDark-2); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- 4. Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--orange);
  flex: none;
}
.eyebrow--center::after {
  content: '';
  width: 28px; height: 2px;
  background: var(--orange);
  flex: none;
}

.h2 { font-size: var(--fs-h2); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--tx-body);
}
.section--dark .lead { color: var(--tx-onDark-2); }

.sec-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head p { margin-top: 1.1rem; }

.text-flow > * + * { margin-top: 1.15rem; }

/* Orange highlight inside headings */
.hl { color: var(--orange); }

/* Underline sweep on a heading word */
.hl-mark {
  position: relative;
  display: inline-block;
  color: var(--orange);
}
.hl-mark::after {
  content: '';
  position: absolute;
  left: 0; bottom: .06em;
  width: 100%; height: .1em;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--e-out) .3s;
}
.is-visible .hl-mark::after { transform: scaleX(1); }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--ink-900);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--e-out);
  z-index: -1;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-orange); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(-1px); }

.btn .btn-ico {
  transition: transform .45s var(--e-out);
  flex: none;
}
.btn:hover .btn-ico { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--tx-dark);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost::before { background: var(--ink-900); }
.btn--ghost:hover { --btn-fg: #fff; box-shadow: var(--shadow-md); }

.btn--onDark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28);
}
.btn--onDark::before { background: #fff; }
.btn--onDark:hover { --btn-fg: var(--ink-900); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }

.btn--sm { padding: .72rem 1.35rem; font-size: .84rem; }
.btn--lg { padding: 1.15rem 2.3rem; font-size: 1rem; }

/* Text link with animated arrow + underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--orange);
  position: relative;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--e-out);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { transition: transform .45s var(--e-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 6. Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  z-index: 200;
  pointer-events: none;
}

/* ---------- 7. Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* Must sit above .drawer (190): the header forms a stacking context, so the
     burger's own z-index cannot lift it above the drawer on its own. */
  z-index: 200;
  padding-block: 1.35rem;
  transition: padding var(--t-mid), background var(--t-mid), box-shadow var(--t-mid);
}
.header::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.header.is-stuck { padding-block: .75rem; }
.header.is-stuck::before { opacity: 1; }
.header.is-hidden { transform: translateY(-105%); }
.header { transition: transform .5s var(--e-out), padding var(--t-mid); }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img {
  height: 46px;
  width: auto;
  transition: height var(--t-mid);
}
.header.is-stuck .brand img { height: 38px; }

/* Two logo variants: dark wordmark by default, light one over the open drawer */
.brand-mark-light { display: none; }
body.nav-open .brand-mark { display: none; }
body.nav-open .brand-mark-light { display: block; }
/* Never paint the white header bar on top of the dark drawer */
body.nav-open .header::before { opacity: 0; }
body.nav-open .header { transform: none; }

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.6vw, 1.6rem); }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.2rem, 1.4vw, 1.35rem);
}
.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--tx-dark);
  padding: .5rem .2rem;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: .18rem;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--e-out);
}
.nav-link:hover { color: var(--orange); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--orange); }
.nav-link.is-active::after { transform: scaleX(1); }

.header-cta { display: inline-flex; }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--ink-900);
  flex: none;
  z-index: 210;
}
.burger span {
  display: block;
  width: 19px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .4s var(--e-out), opacity .25s;
}
.burger span + span { margin-top: 5px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--ink-900);
  padding: 7rem var(--pad-x) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: circle(0% at calc(100% - 46px) 46px);
  transition: clip-path .75s var(--e-inout);
  visibility: hidden;
  overflow-y: auto;
}
body.nav-open .drawer {
  clip-path: circle(150% at calc(100% - 46px) 46px);
  visibility: visible;
}
.drawer-list { display: flex; flex-direction: column; gap: .35rem; }
.drawer-list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  padding: .35rem 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s var(--e-out), transform .5s var(--e-out), color .25s;
}
body.nav-open .drawer-list a { opacity: 1; transform: none; }
.drawer-list a:hover { color: var(--orange); }
.drawer-foot {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  color: var(--tx-onDark-2);
  font-size: var(--fs-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--e-out) .45s, transform .5s var(--e-out) .45s;
}
body.nav-open .drawer-foot { opacity: 1; transform: none; }
.drawer-foot a:hover { color: var(--orange); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.12);
  animation: kenburns 22s var(--e-inout) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.2) translate3d(-1.5%, -1.5%, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, var(--ink-900) 14%, rgba(13,14,16,.92) 38%, rgba(13,14,16,.55) 65%, rgba(13,14,16,.72) 100%),
    linear-gradient(to top, var(--ink-900) 2%, transparent 40%);
}

/* Floating brand orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.orb--1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(244,127,35,.75), transparent 68%);
  top: -8%; left: -6%;
  animation: drift1 18s var(--e-inout) infinite alternate;
}
.orb--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,157,77,.5), transparent 70%);
  bottom: -12%; right: 8%;
  animation: drift2 22s var(--e-inout) infinite alternate;
}
@keyframes drift1 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(70px, 50px, 0) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate3d(0,0,0) scale(1.1); }
  to   { transform: translate3d(-60px, -45px, 0) scale(.92); }
}

.hero-inner { position: relative; width: 100%; }
.hero-copy { max-width: 860px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.6rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .9rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
  box-shadow: 0 0 0 0 var(--orange-glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(244,127,35,.7); }
  70%  { box-shadow: 0 0 0 9px rgba(244,127,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,127,35,0); }
}

.hero h1 {
  font-size: var(--fs-hero);
  color: #fff;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}
.hero h1 .light { font-weight: 300; }

.hero-lead {
  font-size: clamp(1.02rem, 1.55vw, 1.28rem);
  line-height: 1.62;
  color: var(--tx-onDark-2);
  max-width: 620px;
  margin-bottom: 2.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}

/* Line-mask reveal for hero text */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--e-out);
}
.hero.is-ready .reveal-line > span { transform: translateY(0); }
.reveal-line:nth-of-type(2) > span { transition-delay: .1s; }
.reveal-line:nth-of-type(3) > span { transition-delay: .2s; }

.fade-up-hero {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--e-out), transform .9s var(--e-out);
}
/* initHero() adds .is-ready to `.hero, .page-hero`, but only `.hero` was
   matched here — so every interior page hero (jobs board, services, contact,
   blog, legal, articles) kept opacity 0 and its heading never appeared, except
   under prefers-reduced-motion where the override below forces it visible. */
.hero.is-ready .fade-up-hero,
.page-hero.is-ready .fade-up-hero { opacity: 1; transform: none; }

.hero.is-ready .d1, .page-hero.is-ready .d1 { transition-delay: .28s; }
.hero.is-ready .d2, .page-hero.is-ready .d2 { transition-delay: .4s; }
.hero.is-ready .d3, .page-hero.is-ready .d3 { transition-delay: .52s; }
.hero.is-ready .d4, .page-hero.is-ready .d4 { transition-delay: .64s; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tx-onDark-3);
  z-index: 2;
}
.scroll-cue .rail {
  width: 1px; height: 46px;
  background: rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
.scroll-cue .rail::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--orange);
  animation: railrun 2.2s var(--e-inout) infinite;
}
@keyframes railrun {
  0%   { top: -55%; }
  100% { top: 105%; }
}

/* ---------- 9. Trust / credential strip ---------- */
.trust {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: .9rem;
  filter: grayscale(1);
  opacity: .62;
  transition: filter var(--t-mid), opacity var(--t-mid), transform var(--t-mid);
}
.trust-badge:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.trust-badge img { height: clamp(48px, 6vw, 66px); width: auto; }
.trust-badge span {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx-muted);
  max-width: 130px;
  line-height: 1.4;
}

/* ---------- 10. Marquee ---------- */
.marquee {
  --gap: 3.5rem;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  padding-block: 1.6rem;
  background: var(--ink-900);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-width: 100%;
  animation: scrollx 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - var(--gap))); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.marquee-item:hover { color: #fff; }
.marquee-item::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* ---------- 11. Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--ink-900);
  padding: clamp(1.75rem, 3.2vw, 2.6rem);
  position: relative;
  overflow: hidden;
  transition: background var(--t-mid);
}
.stat::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--e-out);
}
.stat:hover { background: var(--ink-800); }
.stat:hover::after { transform: scaleX(1); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: .04em;
}
.stat-num .suffix { color: var(--orange); }
.stat-label {
  margin-top: .85rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--tx-onDark-2);
}

/* ---------- 12. Split feature (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(2.25rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
@media (max-width: 780px) {
  .split--reverse .split-media { order: 0; }
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  background: var(--cream-2);
}
.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--e-out);
  will-change: transform;
}
.split-media:hover img { transform: scale(1.12); }

/* Orange corner accent frame */
.split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  pointer-events: none;
}
.media-frame { position: relative; }
.media-frame::before {
  content: '';
  position: absolute;
  width: clamp(90px, 16vw, 160px);
  aspect-ratio: 1;
  border: 2.5px solid var(--orange);
  border-radius: var(--radius);
  bottom: -18px; right: -18px;
  z-index: -1;
  opacity: 0;
  transform: translate(-16px, -16px);
  transition: opacity .8s var(--e-out) .2s, transform .8s var(--e-out) .2s;
}
.media-frame.is-visible::before { opacity: 1; transform: none; }

/* Floating stat card over image */
.float-card {
  position: absolute;
  left: clamp(-.5rem, 2vw, -2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.15rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 250px;
  animation: floaty 5.5s var(--e-inout) infinite alternate;
}
@keyframes floaty {
  from { transform: translateY(0); }
  to   { transform: translateY(-11px); }
}
.float-card .fc-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -.03em;
}
.float-card .fc-txt {
  font-size: .78rem;
  line-height: 1.4;
  color: var(--tx-body);
}

/* ---------- 13. Division cards ---------- */
.div-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.85rem, 3vw, 2.6rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  height: 100%;
}
.div-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--t-mid);
}
.div-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.div-card:hover::before { opacity: 1; }
.div-card:hover h3, .div-card:hover .div-num { color: #fff; }
.div-card:hover p { color: var(--tx-onDark-2); }

.div-num {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--orange);
  margin-bottom: 1.35rem;
  transition: color var(--t-mid);
}
.div-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(244,127,35,.1);
  color: var(--orange);
  margin-bottom: 1.35rem;
  transition: background var(--t-mid), transform var(--t-mid);
}
.div-card:hover .div-icon {
  background: var(--orange);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}
.div-icon svg { width: 26px; height: 26px; }
.div-card h3 { font-size: var(--fs-h3); margin-bottom: .8rem; transition: color var(--t-mid); }
.div-card p { font-size: var(--fs-sm); transition: color var(--t-mid); }
.div-card .link-arrow { margin-top: auto; padding-top: 1.6rem; }

/* ---------- 14. Service grid (compact tiles) ---------- */
.svc {
  position: relative;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  height: 100%;
}
.svc::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s var(--e-out);
}
.svc:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244,127,35,.32);
}
.svc:hover::after { transform: scaleY(1); }
.svc h4 {
  font-size: var(--fs-h4);
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.svc h4 svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.svc p { font-size: .88rem; line-height: 1.6; }

.section--dark .svc {
  background: rgba(255,255,255,.035);
  border-color: var(--line-dark);
}
.section--dark .svc:hover { background: rgba(255,255,255,.06); }
.section--dark .svc p { color: var(--tx-onDark-2); }

/* ---------- 15. Tabs ---------- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .45rem;
  background: var(--cream-2);
  border-radius: 999px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  width: fit-content;
  max-width: 100%;
}
.section--dark .tabs-nav { background: rgba(255,255,255,.06); }

.tab-btn {
  position: relative;
  padding: .8rem 1.6rem;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--tx-body);
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--t-fast);
  z-index: 1;
}
.section--dark .tab-btn { color: var(--tx-onDark-2); }
.tab-btn:hover { color: var(--orange); }
.tab-btn.is-active { color: #fff; }
.tab-btn.is-active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  border-radius: inherit;
  z-index: -1;
  animation: tabin .45s var(--e-out);
}
@keyframes tabin {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.tab-panel { display: none; }
.tab-panel.is-active {
  display: block;
  animation: panelin .6s var(--e-out);
}
@keyframes panelin {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 16. Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.section--dark .acc { border-color: var(--line-dark); }

.acc-item { border-bottom: 1px solid var(--line); }
.section--dark .acc-item { border-color: var(--line-dark); }

.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-weight: 700;
  color: var(--tx-dark);
  transition: color var(--t-fast), padding var(--t-fast);
}
.section--dark .acc-head { color: #fff; }
.acc-head:hover { color: var(--orange); padding-inline-start: .6rem; }

.acc-icon {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex: none;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-mid);
}
.section--dark .acc-icon { border-color: var(--line-dark); }
.acc-icon::before, .acc-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-fast);
}
.acc-icon::before { width: 12px; height: 1.8px; transform: translate(-50%, -50%); }
.acc-icon::after  { width: 1.8px; height: 12px; transform: translate(-50%, -50%); }
.acc-head:hover .acc-icon { border-color: var(--orange); background: rgba(244,127,35,.08); }
.acc-item.is-open .acc-icon {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: rotate(180deg);
}
.acc-item.is-open .acc-icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--e-out);
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body .acc-inner {
  padding-bottom: 1.75rem;
  max-width: 900px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .4s var(--e-out) .1s, transform .4s var(--e-out) .1s;
}
.acc-item.is-open .acc-inner { opacity: 1; transform: none; }
.acc-inner > * + * { margin-top: 1rem; }

/* Bullet list inside accordions */
.tick-list { display: grid; gap: .7rem; margin-top: 1.15rem; }
.tick-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: .94rem;
  line-height: 1.6;
}
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .42em;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(244,127,35,.14);
}
.tick-list li::after {
  content: '';
  position: absolute;
  left: 5px; top: .62em;
  width: 5px; height: 8px;
  border: solid var(--orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tick-list strong { color: var(--tx-dark); font-weight: 600; }
.section--dark .tick-list strong { color: #fff; }

/* ---------- 17. Process / timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 23px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--line);
}
.section--dark .timeline::before { background: var(--line-dark); }
.timeline-fill {
  position: absolute;
  left: 23px; top: 12px;
  width: 2px;
  background: var(--orange);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.4s var(--e-out);
}
.timeline.is-visible .timeline-fill { transform: scaleY(1); }

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding-block: 1.4rem;
  align-items: start;
}
.tl-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 800;
  color: var(--tx-muted);
  flex: none;
  transition: background var(--t-mid), border-color var(--t-mid), color var(--t-mid), transform var(--t-mid);
  z-index: 1;
}
.section--dark .tl-dot { background: var(--ink-900); border-color: var(--line-dark); }
.tl-item:hover .tl-dot {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: scale(1.1);
}
.tl-item h4 { font-size: var(--fs-h4); margin-bottom: .4rem; }
.tl-item p { font-size: .92rem; }

/* ---------- 18. Sector chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .65rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.15rem;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.section--dark .chip { border-color: var(--line-dark); background: rgba(255,255,255,.04); color: #fff; }
.chip:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.chip svg { width: 17px; height: 17px; }

/* ---------- 19. Quote / values ---------- */
.quote {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--ink-800), var(--ink-900) 65%);
  overflow: hidden;
  isolation: isolate;
}
.quote::before {
  content: '"';
  position: absolute;
  top: -3rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 22rem;
  line-height: 1;
  color: rgba(244,127,35,.12);
  pointer-events: none;
  z-index: -1;
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 900px;
}
.quote-meta {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}
.quote-meta::before {
  content: '';
  width: 34px; height: 2px;
  background: var(--orange);
}

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.value {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  transition: background var(--t-mid), transform var(--t-mid);
}
.value:hover { background: rgba(255,255,255,.045); transform: translateY(-6px); }
.value-ico {
  width: 58px; height: 58px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(244,127,35,.14);
  color: var(--orange);
}
.value h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.value p { font-size: .88rem; }

/* ---------- 20. CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--orange);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.cta-band::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
  top: -55%; left: -6%;
  animation: drift1 20s var(--e-inout) infinite alternate;
}
.cta-band::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(13,14,16,.18), transparent 68%);
  bottom: -60%; right: 4%;
  animation: drift2 24s var(--e-inout) infinite alternate;
}
.cta-band h2 { color: #fff; font-size: var(--fs-h2); }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .btn {
  --btn-bg: #fff;
  --btn-fg: var(--ink-900);
}
.cta-band .btn::before { background: var(--ink-900); }
.cta-band .btn:hover { --btn-fg: #fff; box-shadow: 0 20px 45px -18px rgba(0,0,0,.4); }
.cta-band .btn--outline {
  --btn-bg: transparent;
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
}
.cta-band .btn--outline::before { background: #fff; }
.cta-band .btn--outline:hover { --btn-fg: var(--orange); }

/* ---------- 21. Contact ---------- */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  height: 100%;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244,127,35,.3);
}
.contact-card .ci {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(244,127,35,.1);
  color: var(--orange);
  margin-bottom: 1.15rem;
  transition: background var(--t-mid), color var(--t-mid), transform var(--t-mid);
}
.contact-card:hover .ci { background: var(--orange); color: #fff; transform: scale(1.06); }
.contact-card h4 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx-muted);
  margin-bottom: .5rem;
  font-weight: 700;
}
.contact-card .cv {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tx-dark);
  line-height: 1.5;
}
.contact-card a.cv:hover { color: var(--orange); }

/* Form */
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.15rem; }
.field { position: relative; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1.15rem 1.15rem .55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--tx-dark);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.field textarea { min-height: 148px; resize: vertical; padding-top: 1.5rem; }
.field label {
  position: absolute;
  left: 1.15rem; top: .95rem;
  font-size: .95rem;
  color: var(--tx-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--e-out), color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(244,127,35,.12);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  transform: translateY(-.62rem) scale(.76);
  color: var(--orange);
}
.field select { padding-top: 1.3rem; cursor: pointer; }
.field .chev {
  position: absolute;
  right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--tx-muted);
  pointer-events: none;
}

.form-note { font-size: .82rem; color: var(--tx-muted); }
.form-note a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }

/* Map */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--cream-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35); transition: filter var(--t-mid); }
.map-embed:hover iframe { filter: none; }

/* ---------- 22. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  padding-top: clamp(9rem, 18vh, 13rem);
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.3rem);
  color: #fff;
  letter-spacing: -.035em;
  margin-bottom: 1.1rem;
}
.page-hero p { color: var(--tx-onDark-2); max-width: 660px; font-size: var(--fs-lead); }
.page-hero .orb--1 { width: 380px; height: 380px; top: -30%; left: -4%; }
.page-hero .orb--2 { width: 300px; height: 300px; bottom: -50%; right: 10%; }

.crumbs {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--tx-onDark-3);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.crumbs a:hover { color: var(--orange); }
.crumbs span { color: var(--orange); }

/* ---------- 23. Legal cards ---------- */
.legal-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.legal-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244,127,35,.3);
}
.legal-card .lc-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(244,127,35,.1);
  color: var(--orange);
  flex: none;
  transition: background var(--t-mid), color var(--t-mid);
}
.legal-card:hover .lc-ico { background: var(--orange); color: #fff; }
.legal-card h4 { font-size: 1.05rem; }
.legal-card p { font-size: .84rem; margin-top: .15rem; }
.legal-card .lc-arrow { margin-left: auto; color: var(--tx-muted); transition: transform var(--t-mid), color var(--t-mid); flex: none; }
.legal-card:hover .lc-arrow { transform: translateX(5px); color: var(--orange); }

/* ---------- 24. Jobs ---------- */
.job-empty {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}
.job-empty .je-ico {
  width: 78px; height: 78px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(244,127,35,.1);
  color: var(--orange);
  animation: floaty 4.5s var(--e-inout) infinite alternate;
}

/* ---------- 25. Footer ---------- */
.footer {
  background: var(--ink-900);
  color: var(--tx-onDark-2);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.footer-brand img { height: 46px; margin-bottom: 1.5rem; }
.footer p { font-size: .9rem; line-height: 1.7; }
.footer h5 {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer-links { display: grid; gap: .7rem; }
.footer-links a {
  font-size: .92rem;
  color: var(--tx-onDark-2);
  transition: color var(--t-fast), transform var(--t-fast);
  display: inline-block;
}
.footer-links a:hover { color: var(--orange); transform: translateX(4px); }

.footer-contact { display: grid; gap: 1rem; font-size: .92rem; }
.footer-contact a { transition: color var(--t-fast); }
.footer-contact a:hover { color: var(--orange); }
.fc-row { display: flex; gap: .8rem; align-items: flex-start; }
.fc-row svg { color: var(--orange); flex: none; margin-top: .22rem; }

.socials { display: flex; gap: .6rem; margin-top: 1.75rem; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dark);
  color: #fff;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-4px);
}
.socials svg { width: 17px; height: 17px; }

.fsp-note {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  background: rgba(244,127,35,.1);
  border: 1px solid rgba(244,127,35,.25);
  font-size: .82rem;
  color: #fff;
  margin-top: 1.5rem;
}
.fsp-note svg { color: var(--orange); flex: none; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--tx-onDark-3);
}
.footer-bottom a:hover { color: var(--orange); }

/* Giant watermark wordmark */
.footer-watermark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 15vw, 13rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .85;
  color: rgba(255,255,255,.032);
  text-align: center;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  margin-bottom: -.12em;
  padding-top: 1rem;
}

/* ---------- 26. Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-orange);
  z-index: 120;
  opacity: 0;
  transform: translateY(18px) scale(.85);
  pointer-events: none;
  transition: opacity var(--t-mid), transform var(--t-mid), background var(--t-fast);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink-900); transform: translateY(-4px); }

/* ---------- 27. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--e-out), transform .9s var(--e-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal='left']  { transform: translateX(-40px); }
[data-reveal='right'] { transform: translateX(40px); }
[data-reveal='zoom']  { transform: scale(.94); }
[data-reveal='fade']  { transform: none; }
[data-reveal].is-visible { transform: none; }

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--e-out), transform .75s var(--e-out);
}
[data-stagger].is-visible > * { opacity: 1; transform: none; }

/* ---------- 28. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; flex-direction: column; }
}
@media (min-width: 1081px) {
  .drawer { display: none; }
}
@media (max-width: 620px) {
  .float-card { left: auto; right: .75rem; bottom: .75rem; max-width: 200px; padding: .9rem 1.1rem; }
  .tabs-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .hero { min-height: auto; }
  .trust-badge span { display: none; }
}

/* ---------- 29. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .reveal-line > span { transform: none !important; }
  .fade-up-hero { opacity: 1 !important; transform: none !important; }
  .hero-media img { animation: none; transform: scale(1.02); }
}

/* ---------- 30. Print ---------- */
@media print {
  .header, .drawer, .to-top, .progress, .scroll-cue, .marquee { display: none !important; }
  body { color: #000; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}


/* ==========================================================================
   PART 2 — light page heroes, smooth section transitions, richer backgrounds,
   the Insights blog, and header legibility over the dark home hero.
   Loaded last, so these intentionally win over the base rules above.
   ========================================================================== */

/* ---------- 31. Header legibility over a dark hero ----------
   On the home page the header floats over dark photography. Until it sticks,
   the wordmark and links must be light or they vanish into the image. */
body[data-header="over-dark"] .header:not(.is-stuck) .nav-link { color: #fff; }
body[data-header="over-dark"] .header:not(.is-stuck) .nav-link:hover,
body[data-header="over-dark"] .header:not(.is-stuck) .nav-link.is-active { color: var(--orange); }
body[data-header="over-dark"] .header:not(.is-stuck) .brand-mark { display: none; }
body[data-header="over-dark"] .header:not(.is-stuck) .brand-mark-light { display: block; }

/* Soft scrim so the nav always has something to sit on */
body[data-header="over-dark"] .header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,9,11,.55), transparent);
  opacity: 1;
  transition: opacity var(--t-mid);
  pointer-events: none;
  z-index: -1;
}
body[data-header="over-dark"] .header.is-stuck::after { opacity: 0; }
body.nav-open .header::after { opacity: 0 !important; }

/* Burger sits on dark hero — invert it once the white bar appears */
.header.is-stuck .burger { background: var(--ink-900); }

/* ---------- 32. Section transition bridges ----------
   Kills the hard black/white snap: each dark block melts out of and back into
   the light block beside it. */
.section--dark, .hero, .cta-band, .footer, .marquee { position: relative; }

.tx-in-dark::before,
.tx-out-dark::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: clamp(70px, 9vw, 150px);
  pointer-events: none;
  z-index: 1;
}
/* light -> dark (top edge of a dark section) */
.tx-in-dark::before {
  top: 0;
  background: linear-gradient(to bottom, var(--tx-from, var(--paper)) 0%, rgba(13,14,16,0) 100%);
}
/* dark -> light (bottom edge of a dark section) */
.tx-out-dark::after {
  bottom: 0;
  background: linear-gradient(to top, var(--tx-to, var(--paper)) 0%, rgba(13,14,16,0) 100%);
}
.tx-from-cream { --tx-from: var(--cream); }
.tx-to-cream { --tx-to: var(--cream); }

/* Keep real content above the bridges */
.section--dark > .wrap, .cta-band > .wrap { position: relative; z-index: 2; }

/* Orange band should also melt rather than cut */
.cta-band::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(60px, 7vw, 120px);
  background: linear-gradient(to top, rgba(13,14,16,.55), transparent);
  pointer-events: none;
  z-index: 0;
  width: auto; border-radius: 0; animation: none;
  background-color: transparent;
}

/* ---------- 33. Background texture system ----------
   Adds depth to flat slabs without a single extra HTTP request. */
.bg-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}
.bg-dots--light::before {
  background-image: radial-gradient(rgba(20,21,24,.09) 1px, transparent 1px);
}
.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}

/* Photographic texture layer for dark slabs */
.bg-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .17;
  filter: grayscale(.25) contrast(1.05);
}
.bg-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--ink-900) 0%, rgba(13,14,16,.55) 30%, rgba(13,14,16,.6) 70%, var(--ink-900) 100%);
}

/* ---------- 34. Light page hero ---------- */
.page-hero--light {
  background: var(--cream);
  color: var(--tx-dark);
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(4rem, 9vh, 7rem);
}
.page-hero--light h1 { color: var(--tx-dark); }
.page-hero--light p { color: var(--tx-body); }
.page-hero--light .crumbs { color: var(--tx-muted); }
.page-hero--light .crumbs a:hover { color: var(--orange); }

/* Photographic backdrop, washed out so text stays readable */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.06);
  animation: heroDrift 26s var(--e-inout) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.2%, -1%, 0); }
}
.page-hero--light .hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--cream) 6%, rgba(250,248,246,.94) 32%, rgba(250,248,246,.62) 58%, rgba(250,248,246,.42) 100%),
    linear-gradient(to bottom, rgba(250,248,246,.7) 0%, transparent 30%, rgba(250,248,246,.85) 100%);
}

/* Warm brand glow + soft geometry */
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  right: -6%; top: -32%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,127,35,.28), transparent 68%);
  filter: blur(60px);
  z-index: -2;
  pointer-events: none;
  animation: drift2 24s var(--e-inout) infinite alternate;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(20,21,24,.10) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(115deg, #000 0%, transparent 55%);
}

/* Bottom bridge into the next (white) section */
.page-hero--light::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(60px, 8vw, 130px);
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
  z-index: 1;
}
.page-hero--light > .wrap { position: relative; z-index: 2; }

/* Hero mini-stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  max-width: 620px;
}
.hero-stats div { display: flex; flex-direction: column; gap: .15rem; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--orange);
  line-height: 1;
}
.hero-stats span {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx-muted);
  font-weight: 600;
}

/* ---------- 35. Marquee, rebuilt ----------
   Old version masked to transparent and showed grey smears over white.
   Now it fades into its own band colour and the motion is unmistakable. */
.marquee {
  -webkit-mask-image: none;
  mask-image: none;
  background: var(--ink-900);
  padding-block: clamp(1.1rem, 2vw, 1.5rem);
  border-block: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(60px, 12vw, 190px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--ink-900) 12%, transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--ink-900) 12%, transparent); }

.marquee-track { animation-duration: 44s; }
.marquee-item {
  color: rgba(255,255,255,.5);
  font-size: clamp(.88rem, 1.35vw, 1.15rem);
  letter-spacing: .09em;
}
.marquee-item::after {
  width: 6px; height: 6px;
  box-shadow: 0 0 12px 2px var(--orange-glow);
}

/* A second, slower row drifting the other way adds real depth */
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.marquee--reverse .marquee-item { color: rgba(255,255,255,.28); }

/* ---------- 36. Insights: index ---------- */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
  color: var(--tx-body);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.filter-btn span {
  font-size: .72rem;
  opacity: .55;
  font-variant-numeric: tabular-nums;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.filter-btn.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.filter-btn.is-active span { opacity: .7; }

.search-field { position: relative; display: flex; align-items: center; }
.search-field svg {
  position: absolute;
  left: .95rem;
  color: var(--tx-muted);
  pointer-events: none;
}
.search-field input {
  width: min(280px, 62vw);
  padding: .75rem 1rem .75rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(244,127,35,.12);
}
.search-field input::-webkit-search-cancel-button { cursor: pointer; }

.results-count {
  font-size: .85rem;
  color: var(--tx-muted);
  margin-bottom: 1.5rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
}
.post { display: flex; }
.post[hidden] { display: none; }

.post-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.post-link::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--e-out);
}
.post-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(244,127,35,.28);
}
.post-link:hover::before { transform: scaleX(1); }

.post-cat {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(244,127,35,.1);
  padding: .35rem .7rem;
  border-radius: 999px;
}
.post-link h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.28;
  transition: color var(--t-fast);
}
.post-link:hover h3 { color: var(--orange); }
.post-link p {
  font-size: .89rem;
  line-height: 1.6;
  color: var(--tx-body);
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .35rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tx-muted);
}
.post-meta svg { color: var(--orange); transition: transform var(--t-fast); }
.post-link:hover .post-meta svg { transform: translateX(4px); }

.linkish {
  color: var(--orange);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ---------- 37. Insights: article ---------- */
.page-hero--article { padding-bottom: clamp(2.5rem, 5vh, 4rem); }
.page-hero--article h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  max-width: 20ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx-muted);
}

.article-body { padding-top: clamp(2.5rem, 5vw, 4rem); }

.prose { font-size: 1.045rem; line-height: 1.78; color: var(--tx-body); }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  color: var(--tx-dark);
  margin-top: 2.6rem;
  padding-top: .3rem;
  line-height: 1.25;
}
.prose h2::before {
  content: '';
  display: block;
  width: 42px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: .9rem;
}
.prose p:first-of-type {
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  line-height: 1.65;
  color: var(--tx-dark);
}

.article-share {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.article-share span {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx-muted);
  margin-right: .3rem;
}
.article-share a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--tx-body);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.article-share a svg { width: 16px; height: 16px; }
.article-share a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-3px);
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.pn-link {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.pn-link span {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}
.pn-link strong {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 600;
  color: var(--tx-dark);
  line-height: 1.35;
}
.pn-next { text-align: right; }
.pn-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244,127,35,.3);
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}
.rel-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.rel-card h4 { font-size: 1.02rem; line-height: 1.35; transition: color var(--t-fast); }
.rel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244,127,35,.3);
}
.rel-card:hover h4 { color: var(--orange); }

/* ---------- 38. Jobs board extras ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: .35rem; right: .9rem;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(244,127,35,.12);
  transition: color var(--t-mid), transform var(--t-mid);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244,127,35,.3);
}
.step:hover::before { color: rgba(244,127,35,.24); transform: scale(1.06); }
.step h4 { font-size: var(--fs-h4); margin-bottom: .5rem; position: relative; }
.step p { font-size: .9rem; position: relative; }

/* Skill / capability meters */
.skills { display: grid; gap: 1.5rem; max-width: 720px; }
.skill-row { display: grid; gap: .55rem; }
.skill-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--tx-dark);
}
.section--dark .skill-top { color: #fff; }
.skill-top b {
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.skill-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.section--dark .skill-bar { background: rgba(255,255,255,.1); }
.skill-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange-light));
  transition: width 1.5s var(--e-out);
}
.skills.is-visible .skill-fill { width: var(--pct, 0%); }
.skill-note { font-size: .85rem; color: var(--tx-muted); }

/* ---------- 39. Misc ---------- */
.section--dark .job-empty {
  background: rgba(255,255,255,.03);
  border-color: var(--line-dark);
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; transform: scale(1.02); }
  .skill-fill { transition: none; }
}

@media (max-width: 620px) {
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .search-field input { width: 100%; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; }
  .pn-next { text-align: left; }
}


/* ==========================================================================
   PART 3 — the sector belt
   Two rows travelling left-to-right at different speeds, wrapping forever like
   thread winding onto a spool. The edge fades read as curvature, so the band
   looks like a rotating drum rather than a flat strip sliding past.
   ========================================================================== */

.marquee {
  --gap: 3.5rem;
  display: flex;
  gap: var(--gap);
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.marquee-track {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-width: 100%;
  will-change: transform;
  backface-visibility: hidden;
  animation: beltLTR var(--belt-speed, 46s) linear infinite;
}

/* Travels left -> right: starts one full track-width off to the left and
   settles at zero, at which point the cloned track has taken its place, so the
   restart is invisible. */
@keyframes beltLTR {
  from { transform: translate3d(calc(-100% - var(--gap)), 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Second row runs slower, which gives the pair a sense of depth */
.marquee--reverse { --belt-speed: 66s; }
.marquee--reverse .marquee-track { animation-direction: normal; }

/* Hovering slows the belt instead of stopping it dead */
.marquee:hover .marquee-track { animation-play-state: running; animation-duration: calc(var(--belt-speed, 46s) * 2.2); }

/* Deeper edge shading = more drum-like curvature */
.marquee::before { background: linear-gradient(to right, var(--ink-900) 18%, rgba(13,14,16,.75) 55%, transparent); }
.marquee::after  { background: linear-gradient(to left,  var(--ink-900) 18%, rgba(13,14,16,.75) 55%, transparent); }

/* --------------------------------------------------------------------------
   Reduced-motion: the global kill-switch above freezes every animation, which
   left these banners looking like a broken static strip. A slow, steady,
   linear translation carries none of the parallax/zoom/flash risk that the
   setting exists to prevent, so the belt keeps turning — just much slower.
   To honour the setting strictly instead, delete this block.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation-name: beltLTR !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-duration: 70s !important;
  }
  .marquee--reverse .marquee-track { animation-duration: 96s !important; }
  .marquee:hover .marquee-track { animation-duration: 70s !important; }
}


/* ==========================================================================
   PART 4 — solid header + vector logo
   The header is now an opaque white bar on every page, including the home
   page, so the wordmark and links never sit on photography.
   ========================================================================== */

/* Always-on white bar (previously only after scrolling) */
.header::before { opacity: 1 !important; }
.header::after { display: none !important; }

/* The dark-hero treatment is no longer used; keep the dark wordmark visible */
body[data-header="over-dark"] .header:not(.is-stuck) .nav-link { color: var(--tx-dark); }
body[data-header="over-dark"] .header:not(.is-stuck) .brand-mark { display: block; }
body[data-header="over-dark"] .header:not(.is-stuck) .brand-mark-light { display: none; }

/* --------------------------------------------------------------------------
   Logo: larger, and now vector, so it stays sharp on any display.
   -------------------------------------------------------------------------- */
.brand img {
  height: clamp(52px, 4.4vw, 68px);
  width: auto;
}
.header.is-stuck .brand img { height: clamp(44px, 3.6vw, 54px); }

@media (max-width: 700px) {
  .brand img { height: 46px; }
  .header.is-stuck .brand img { height: 42px; }
}

/* The bar is taller now, so the hero and anchors need more clearance */
html { scroll-padding-top: 130px; }
.hero { padding-top: clamp(9rem, 16vh, 12rem); }
.page-hero { padding-top: clamp(10rem, 19vh, 14rem); }

/* Burger stays dark on the white bar */
.burger { background: var(--ink-900); }


/* ==========================================================================
   PART 5 — living hero + a gentler reduced-motion policy
   ========================================================================== */

/* The still photo paints first; the loop fades in over it once it can play,
   so there is never an empty or flashing hero. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  transition: opacity 1.2s var(--e-out);
  pointer-events: none;
  z-index: 0;
}
.hero-video.is-playing { opacity: 1; }
.hero-media { z-index: -3; }

/* Badges are vector now — let them render a touch larger and stay crisp */
.trust-badge img { height: clamp(54px, 6.5vw, 74px); }

/* --------------------------------------------------------------------------
   Reduced motion, revisited.
   The earlier blanket rule switched off every animation on the site, which
   left it feeling dead. The concerns behind the setting are large-area
   movement, parallax, zooming and autoplaying video — not gentle fades. So
   those specific things are disabled, while quiet opacity/short transforms
   continue to run.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* re-enable the calm stuff the blanket rule had killed */
  [data-reveal], [data-stagger] > * {
    transition-duration: .7s !important;
  }
  [data-reveal]:not(.is-visible),
  [data-stagger]:not(.is-visible) > * { opacity: 0 !important; }
  [data-reveal].is-visible,
  [data-stagger].is-visible > * { opacity: 1 !important; }

  .btn, .btn::before, .nav-link::after, .post-link, .svc, .div-card,
  .contact-card, .chip, .filter-btn, .step, .rel-card, .pn-link,
  .acc-body, .acc-icon, .tab-btn::before, .to-top, .socials a,
  .article-share a, .legal-card, .trust-badge {
    transition-duration: .3s !important;
  }
  .skill-fill { transition: width 1.2s var(--e-out) !important; }

  /* but keep the genuinely motion-heavy effects off */
  .hero-media img { animation: none !important; transform: scale(1.02) !important; }
  .hero-photo img { animation: none !important; }
  .orb, .float-card, .je-ico { animation: none !important; }
  [data-parallax] { transform: none !important; }
  /* The hero loop is a slow, low-contrast dolly with no flashing or zoom, so
     it keeps playing here by design — the client asked for it to run
     unattended. Remove the .hero-video line from this block to opt out. */
}


/* ==========================================================================
   PART 6 — responsive fixes
   ========================================================================== */

/* A flex item will not honour overflow-x:auto until its min-width is released,
   so the filter row was expanding to its full 823px content width and dragging
   the whole Insights page sideways on phones. */
.blog-toolbar { max-width: 100%; }
.filters { min-width: 0; max-width: 100%; }
.search-field { min-width: 0; max-width: 100%; }
.search-field input { max-width: 100%; }

/* Belt and braces: the hero's ken-burns transform reports a couple of pixels
   past the viewport before it is clipped. */
html { overflow-x: clip; }

/* --------------------------------------------------------------------------
   Device polish
   -------------------------------------------------------------------------- */

/* Phones — tighten the vertical rhythm so pages are not endless scrolls */
@media (max-width: 620px) {
  :root { --sec-y: clamp(3.25rem, 9vw, 4.5rem); }
  .hero { padding-top: 7.5rem; padding-bottom: 3.5rem; min-height: auto; }
  .hero h1 { letter-spacing: -.03em; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges { gap: .4rem; }
  .pill { font-size: .64rem; padding: .34rem .7rem; }
  .page-hero { padding-top: 8.5rem; }
  .hero-stats { gap: 1.5rem 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quote::before { font-size: 11rem; top: -1.5rem; }
  .split-media { aspect-ratio: 4 / 3; }
  .media-frame::before { display: none; }
  .tl-item { grid-template-columns: 40px 1fr; gap: 1rem; }
  .tl-dot { width: 40px; height: 40px; font-size: .78rem; }
  .timeline::before, .timeline-fill { left: 19px; }
  .prose { font-size: 1rem; }
  .footer-watermark { font-size: 3.4rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.1rem 1.5rem; }
  .trust-inner { gap: 1.25rem; }
}

/* Tablets — two columns read better than three at this width */
@media (min-width: 621px) and (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Large desktops — stop the measure getting uncomfortably wide */
@media (min-width: 1800px) {
  :root { --maxw: 1440px; }
  .hero-copy { max-width: 960px; }
}

/* Short landscape phones — the full-height hero would hide everything */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 6.5rem; padding-bottom: 3rem; }
  .scroll-cue { display: none; }
}

/* Touch devices: hover-only affordances should not stick */
@media (hover: none) {
  .btn:hover { transform: none; }
  .post-link:hover, .svc:hover, .div-card:hover, .step:hover { transform: none; }
}

/* ==========================================================================
   PART 7 — accessible colour
   #F47F23 on white measures 2.66:1, well under the 4.5:1 WCAG AA needs for
   body-sized text. The same hue at 75% brightness (#B75F1A) hits 4.5:1 exactly,
   so light backgrounds use that for *text* while the brand orange carries on
   doing all the fills, rules, icons and graphics. On dark backgrounds the
   original orange already measures 7.27:1, so nothing changes there.
   ========================================================================== */
:root {
  --orange-text: #F47F23;   /* superseded below — kept so the cascade is obvious */
  --orange-ink:  #0D0E10;   /* text that sits on an orange fill (7.27:1) */
}

/* --- orange text on light surfaces --- */
.eyebrow,
.link-arrow,
.div-num,
.hl,
.hl-mark,
.fc-num,
.post-cat,
.pn-link span,
.crumbs span,
.article-meta .post-cat,
.hero-stats strong,
.form-note a,
.contact-card a.cv:hover,
.filter-btn:hover,
.post-link:hover h3,
.rel-card:hover h4,
.legal-card:hover h4,
.svc:hover h3,
.nav-link:hover,
.nav-link.is-active,
.tab-btn:hover,
.skills .skill-top b,
.prose a { color: var(--orange-text); }

/* Keep the brand orange wherever it is a graphic, not a word */
.eyebrow::before, .eyebrow--center::after,
.hl-mark::after, .prose h2::before,
.link-arrow svg, .post-meta svg, .fc-row svg,
.div-icon, .value-ico, .ci, .lc-ico, .je-ico,
.marquee-item::after, .pill .dot, .stat::after { color: var(--orange); }

/* Dark surfaces keep the original orange — it is already 7.27:1 there */
.section--dark .eyebrow,
.section--dark .link-arrow,
.section--dark .skill-top b,
.footer .fsp-note,
.hero .pill,
.stat-num .suffix,
.quote-meta,
.drawer-list a:hover,
.footer-links a:hover,
.footer-contact a:hover { color: var(--orange); }

/* --- text that sits on an orange fill --- */
.btn { --btn-fg: var(--orange-ink); }
.btn .btn-ico { color: currentColor; }
.btn:hover { --btn-fg: #fff; }          /* hover slides to the dark fill */

.cta-band h2,
.cta-band .h2 { color: var(--orange-ink); }
.cta-band p,
.cta-band .lead { color: rgba(13, 14, 16, .82) !important; }

.cta-band .btn { --btn-bg: var(--orange-ink); --btn-fg: #fff; }
.cta-band .btn::before { background: #fff; }
.cta-band .btn:hover { --btn-fg: var(--orange-ink); }

.cta-band .btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--orange-ink);
  box-shadow: inset 0 0 0 1.6px rgba(13, 14, 16, .5);
}
.cta-band .btn--outline::before { background: var(--orange-ink); }
.cta-band .btn--outline:hover { --btn-fg: #fff; }

/* Active tab and filter pills use the dark fill, so white text is correct */
.tab-btn.is-active { color: #fff; }
.tab-btn.is-active::before { background: var(--orange-ink); }
.filter-btn.is-active { color: #fff; }

/* Category chip: darker ink on the pale orange wash */
.post-cat { background: rgba(244, 127, 35, .14); }

/* Buttons that are not orange keep their own treatment */
.btn--ghost { --btn-fg: var(--tx-dark); }
.btn--ghost:hover { --btn-fg: #fff; }
.btn--onDark { --btn-fg: #fff; }
.btn--onDark:hover { --btn-fg: var(--ink-900); }

/* Chips turn solid orange on hover — dark text reads better than white */
.chip:hover { color: var(--orange-ink); }
.socials a:hover { color: var(--orange-ink); }
.article-share a:hover { color: var(--orange-ink); }
.contact-card:hover .ci,
.legal-card:hover .lc-ico,
.div-card:hover .div-icon { color: var(--orange-ink); }
.to-top { color: var(--orange-ink); }
.to-top:hover { color: #fff; }

/* ==========================================================================
   PART 8 — heading outline
   Tags were chosen for visual size, which left gaps (h2 -> h4, h2 -> h5) in
   the document outline that screen readers announce as skipped levels. The
   tags are now sequential; these selectors keep the appearance identical.
   ========================================================================== */
.svc h3, .svc h4 {
  font-size: var(--fs-h4);
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  line-height: 1.3;
}
.svc h3 svg, .svc h4 svg { width: 20px; height: 20px; color: var(--orange); flex: none; }

.step h3, .step h4 { font-size: var(--fs-h4); margin-bottom: .5rem; position: relative; }
.value h3, .value h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.rel-card h3, .rel-card h4 { font-size: 1.02rem; line-height: 1.35; transition: color var(--t-fast); }
.rel-card:hover h3, .rel-card:hover h4 { color: var(--orange-text); }

.contact-card h3, .contact-card h4 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx-muted);
  margin-bottom: .5rem;
  font-weight: 700;
}

.legal-card h2, .legal-card h4 { font-size: 1.05rem; }

.footer h2.foot-h, .footer h5 {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

/* 404 uses .svc as a link card */
a.svc { display: block; color: inherit; }
a.svc:hover h3 { color: var(--orange-text); }

/* ==========================================================================
   PART 9 — contrast, second pass
   The first pass was tuned against pure white; several surfaces are cream
   (#FAF8F6 / #F2EFEB), which is a harder background. These values clear
   4.5:1 on the darkest of the light surfaces, so they pass everywhere.
   ========================================================================== */
:root {
  /* Brand consistency chosen over the contrast target: the client wants the
     primary orange used everywhere it appears as text, so this matches
     --orange exactly rather than the darkened 4.5:1 variant. Orange text on
     light surfaces therefore measures 2.66:1. Where that matters (an
     accessibility audit, a procurement requirement), set this back to
     #A85818 and every instance follows — nothing else needs touching. */
  --orange-text: #F47F23;
  --tx-muted:    #6A6D75;   /* 5.18:1 on white, 4.52:1 on cream */
}

/* Beat the more specific rules that still held the brand orange */
.float-card .fc-num,
.blog-toolbar .filter-btn:hover,
.linkish,
.results-count,
.prose a,
.form-note a { color: var(--orange-text); }

/* Inline colour attributes on the legal + article pages */
[style*="color:var(--orange)"],
[style*="color: var(--orange)"] { color: var(--orange-text) !important; }

/* Small print that had drifted too light */
.post-meta, .article-meta, .skill-note, .results-count,
.contact-card h3, .contact-card h4, .crumbs { color: var(--tx-muted); }

/* The active tab sits on a dark pill, so its label stays white */
.tab-btn.is-active, .filter-btn.is-active { color: #fff; }
.post-link h2, .post-link h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.28;
  transition: color var(--t-fast);
}
.post-link:hover h2, .post-link:hover h3 { color: var(--orange-text); }
.contact-card h2 {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tx-muted); margin-bottom: .5rem; font-weight: 700;
}

/* Muted text on dark slabs must lighten, not darken */
.section--dark .skill-note,
.section--dark .results-count,
.section--dark .post-meta,
.section--dark .crumbs,
.section--dark .contact-card h2,
.section--dark .contact-card h3 { color: var(--tx-onDark-2); }

/* ==========================================================================
   PART 10 — LinkedIn feed
   Cards deliberately read as "someone else's platform" rather than mimicking
   the article cards, so visitors know they are leaving the site.
   ========================================================================== */
.li-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.5rem);
}

.li-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: clamp(1.4rem, 2.4vw, 1.8rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.li-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #0A66C2;                 /* LinkedIn blue, only as a source cue */
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--e-out);
}
.li-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 102, 194, .3);
}
.li-card:hover::before { transform: scaleY(1); }

.li-top {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--tx-dark);
}
.li-top svg { width: 17px; height: 17px; color: #0A66C2; flex: none; }
.li-top time {
  margin-left: auto;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--tx-muted);
}

.li-card p {
  font-size: .93rem;
  line-height: 1.62;
  color: var(--tx-body);
  flex: 1;
  white-space: pre-line;               /* LinkedIn copy is written in short lines */
}

.li-more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .3rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  color: var(--orange-text);
}
.li-more svg { transition: transform var(--t-fast); }
.li-card:hover .li-more svg { transform: translate(3px, -3px); }

.li-updated {
  margin-top: 1.5rem;
  font-size: .8rem;
  color: var(--tx-muted);
}

.li-grid > * { opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--e-out), transform .7s var(--e-out); }
.li-grid.is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .li-grid > * { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   PART 11 — PlacementPartner vacancy board
   The live board is served from placementpartner.com, so it has to be framed.
   Being cross-origin its internals cannot be styled from here — the frame and
   its surround are what we control, so they carry the branding instead.
   Height cannot be measured across origins either, hence a viewport-relative
   height with the board scrolling inside it.
   ========================================================================== */
.pp-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.pp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.15rem;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-dark);
}

.pp-live {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.pp-live .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
  animation: pulse 2.4s ease-out infinite;
}

.pp-open {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}
.pp-open:hover { color: #fff; }
.pp-open svg { transition: transform var(--t-fast); }
.pp-open:hover svg { transform: translate(2px, -2px); }

.pp-stage { position: relative; background: var(--paper); }

.pp-frame {
  display: block;
  width: 100%;
  height: clamp(760px, 105vh, 1500px);
  border: 0;
  background: var(--paper);
  opacity: 0;
  transition: opacity .4s var(--e-out);
}
.pp-frame.is-ready { opacity: 1; }

/* The vacancy board carries its own filters and expanding descriptions, so it
   needs more room than the application form. Neither height can be measured
   across origins — these are deliberate over-estimates, with the frame
   scrolling internally if a very long list overflows. */
.pp-embed--board .pp-frame { height: clamp(900px, 128vh, 1900px); }
.pp-embed--form .pp-frame  { height: clamp(1000px, 138vh, 2400px); }

/* Loading state ---------------------------------------------------------- */
.pp-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--paper);
  z-index: 2;
}
.pp-loading p {
  font-size: .88rem;
  color: var(--tx-muted);
  margin: 0;
}
.pp-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid var(--line);
  border-top-color: var(--orange);
  animation: pp-spin .8s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .pp-spinner { animation-duration: 2.4s; }
  .pp-frame { transition: none; }
}

/* Reference badge + actions on the apply page ----------------------------- */
.pp-bar-end {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
/* Reference badge on the apply page -------------------------------------- */
.pp-ref {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(244, 127, 35, .4);
  border-radius: 999px;
  padding: .3rem .7rem;
  white-space: nowrap;
}

/* Blocked-frame fallback ------------------------------------------------- */
.pp-fallback {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.pp-fallback-h {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--tx-dark);
  margin-bottom: .5rem;
}
.pp-fallback p { font-size: .93rem; color: var(--tx-body); margin: 0; }
/* Raised by the load watchdog when the frame never reports a load event. */
.pp-fallback.is-urgent {
  border-color: rgba(244, 127, 35, .45);
  background: rgba(244, 127, 35, .07);
}
.pp-fallback a { color: var(--orange-text); font-weight: 600; }
.pp-fallback a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Apply page ------------------------------------------------------------- */
.page-hero--apply { padding-bottom: clamp(3rem, 6vh, 4.5rem); }

.apply-aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.75rem;
}
.apply-note {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.apply-note svg { flex: none; color: var(--orange); margin-top: .1rem; }
.apply-note p { margin: 0; font-size: .89rem; line-height: 1.6; color: var(--tx-body); }
.apply-note a { color: var(--orange-text); font-weight: 600; }
.apply-note a:hover { text-decoration: underline; text-underline-offset: 2px; }

.pp-note {
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--tx-body);
}
.pp-note a { color: var(--orange-text); font-weight: 600; }
.pp-note a:hover { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 620px) {
  .pp-frame { height: clamp(620px, 130vh, 1100px); }
  .pp-embed--board .pp-frame { height: clamp(760px, 165vh, 1600px); }
  .pp-embed--form .pp-frame  { height: clamp(900px, 185vh, 2100px); }
  .pp-bar { flex-wrap: wrap; }
  .pp-bar { padding: .7rem .9rem; }
  .pp-live { font-size: .66rem; letter-spacing: .1em; }
  .pp-open { font-size: .7rem; }
}

/* ==========================================================================
   PART 12 — native vacancy board
   Rendered from data/vacancies.json rather than framed, so the listings can
   carry the site's own typography and colour instead of PlacementPartner's.
   ========================================================================== */
.vac-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.vac-selects { display: flex; gap: .65rem; flex-wrap: wrap; }

.field--compact { min-width: 168px; }
.field--compact select {
  padding: .72rem 2.4rem .72rem 1.05rem;
  border-radius: 999px;
  font-size: .88rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.field--compact .chev { right: .95rem; }

.vac-count { font-size: .85rem; color: var(--tx-muted); margin-bottom: 1.25rem; }

.vac-list { display: grid; gap: clamp(.9rem, 1.6vw, 1.25rem); }

.vac {
  position: relative;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t-mid), border-color var(--t-mid), transform var(--t-mid);
}
.vac::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--e-out);
}
.vac:hover { border-color: rgba(244,127,35,.32); box-shadow: var(--shadow-md); }
.vac:hover::before, .vac.is-open::before { transform: scaleY(1); }

.vac-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.vac-headings h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  margin-bottom: .6rem;
}

.vac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.vac-tag {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--tx-body);
}
.vac-tag--type { background: rgba(244,127,35,.13); color: var(--orange-text); }
.vac-ref {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--tx-muted);
}
.vac-apply { flex: none; }

.vac-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .85rem 1.5rem;
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.vac-facts dt {
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--tx-muted);
  margin-bottom: .2rem;
}
.vac-facts dd { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--tx-dark); }

.vac-brief {
  margin-top: 1.1rem;
  font-size: .95rem;
  line-height: 1.62;
  color: var(--tx-body);
}

.vac-detail {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .93rem;
  line-height: 1.7;
  color: var(--tx-body);
}
.vac-detail p + p { margin-top: .9rem; }

.vac-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange-text);
}
.vac-toggle svg { transition: transform var(--t-fast); }
.vac.is-open .vac-toggle svg { transform: rotate(180deg); }
.vac-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 620px) {
  .vac-toolbar { flex-direction: column; align-items: stretch; }
  .vac-selects { display: grid; grid-template-columns: 1fr 1fr; }
  .field--compact { min-width: 0; }
  .vac-head { flex-direction: column; }
  .vac-apply { width: 100%; justify-content: center; }
}

/* ==========================================================================
   PART 13 — inner page heroes, rebuilt
   The previous treatment laid a 94%-opaque cream wash over the photograph on a
   cream background, with up to 224px of top padding. The result read as a big
   white slab with the heading stranded near the bottom — the photo was setting
   the theme instead of supporting it, and the pages felt washed out next to
   the landing page.

   These now mirror the landing hero: dark ground, photograph as a genuine
   backdrop behind a scrim, heading leading immediately, and the black / white /
   orange balance carried through every page rather than only the home page.
   (The modifier was renamed from --light to --feature to match what it does.)
   ========================================================================== */
.page-hero--feature {
  background: var(--ink-900);
  color: var(--tx-onDark-2);
  isolation: isolate;
  overflow: hidden;
  /* Tightened hard: the heading should be visible on arrival, not after a scroll */
  padding-top: clamp(7.5rem, 13vh, 9.5rem);
  padding-bottom: clamp(3.25rem, 6.5vh, 5rem);
}

.page-hero--feature h1 { color: #fff; }
.page-hero--feature p { color: var(--tx-onDark-2); }
.page-hero--feature .crumbs { color: var(--tx-onDark-3); }
.page-hero--feature .crumbs a { color: var(--tx-onDark-2); }
.page-hero--feature .crumbs a:hover { color: var(--orange); }
.page-hero--feature .crumbs span { color: var(--orange); }

/* The photograph now sits behind a dark scrim rather than being bleached out.
   It reads as depth behind the words instead of as the background colour. */
.page-hero--feature .hero-photo img {
  object-position: center 42%;
  filter: saturate(.92) contrast(1.04);
}
.page-hero--feature .hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(103deg,
      var(--ink-900) 10%,
      rgba(13, 14, 16, .93) 34%,
      rgba(13, 14, 16, .66) 62%,
      rgba(13, 14, 16, .78) 100%),
    linear-gradient(to bottom,
      rgba(13, 14, 16, .58) 0%,
      transparent 34%,
      var(--ink-900) 97%);
}

/* Dotted texture flips to light-on-dark */
.page-hero--feature .hero-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, .085) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 58%);
  mask-image: linear-gradient(115deg, #000 0%, transparent 58%);
}
.page-hero--feature .hero-glow { opacity: .85; }

/* Bridge out of the dark hero into the white section beneath it */
.page-hero--feature::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(50px, 6vw, 100px);
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
  z-index: 1;
}
.page-hero--feature > .wrap { position: relative; z-index: 2; }

/* Hero stat row on dark */
.page-hero--feature .hero-stats { border-top-color: var(--line-dark); }
.page-hero--feature .hero-stats strong { color: var(--orange); }
.page-hero--feature .hero-stats span { color: var(--tx-onDark-3); }

/* Article heroes are shorter still — the title is the whole point */
.page-hero--article {
  padding-top: clamp(7rem, 12vh, 9rem);
  padding-bottom: clamp(2.25rem, 4.5vh, 3.5rem);
}
.page-hero--article .article-meta { color: var(--tx-onDark-3); }

@media (max-width: 620px) {
  .page-hero--feature { padding-top: 7.5rem; padding-bottom: 2.75rem; }
}

/* ==========================================================================
   PART 14 — lighter display headings
   The H1 was 700-weight at up to 4.3rem with -0.035em tracking, which read as
   shouty. Lighter weight, slightly larger size, looser tracking.
   ========================================================================== */
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);   /* ~70px at the top end */
  font-weight: 500;
  letter-spacing: -0.022em;                   /* ≈ -1.5px at 70px */
  line-height: 1.06;
}
.hero h1 .light { font-weight: 300; }

.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.08;
}
.page-hero--article h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   PART 15 — diagrams
   Several models were being stated as bulleted accordions when they are
   genuinely shapes: channels converging on a hub, a seven-stage journey, a
   before/after compression of time. These are inline SVG rather than exported
   images so they stay sharp, reflow on small screens, and can actually move —
   strokes draw themselves in and pulses travel the connectors on scroll.
   ========================================================================== */
.dgm {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-900) 70%);
  border: 1px solid var(--line-dark);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  overflow: hidden;
  isolation: isolate;
}
.dgm::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.dgm > * { position: relative; z-index: 1; }
.dgm svg { display: block; width: 100%; height: auto; overflow: visible; }

.dgm-head { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.dgm-head h3 { color: #fff; font-size: var(--fs-h3); margin-bottom: .5rem; }
.dgm-head p { color: var(--tx-onDark-2); font-size: .95rem; max-width: 60ch; }

/* --- shared primitives ------------------------------------------------- */
.dgm .d-node {
  fill: rgba(255,255,255,.03);
  stroke: rgba(255,255,255,.55);
  stroke-width: 1.6;
}
.dgm .d-hub {
  fill: rgba(244,127,35,.12);
  stroke: var(--orange);
  stroke-width: 2;
}
.dgm .d-link {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 1.15s var(--e-out);
}
.dgm.is-visible .d-link { stroke-dashoffset: 0; }
.dgm .d-label {
  fill: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-anchor: middle;
}
.dgm .d-sub {
  fill: rgba(255,255,255,.5);
  font-family: var(--font-body);
  font-size: 11.5px;
  text-anchor: middle;
}
.dgm .d-hub-label { font-size: 15px; }
.dgm .d-icon { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* nodes fade + lift in, staggered behind the lines */
.dgm .d-grp {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--e-out), transform .6s var(--e-out);
}
.dgm.is-visible .d-grp { opacity: 1; transform: none; }
.dgm.is-visible .d-grp:nth-of-type(1) { transition-delay: .10s; }
.dgm.is-visible .d-grp:nth-of-type(2) { transition-delay: .20s; }
.dgm.is-visible .d-grp:nth-of-type(3) { transition-delay: .30s; }
.dgm.is-visible .d-grp:nth-of-type(4) { transition-delay: .40s; }
.dgm.is-visible .d-grp:nth-of-type(5) { transition-delay: .50s; }
.dgm.is-visible .d-grp:nth-of-type(6) { transition-delay: .60s; }
.dgm.is-visible .d-grp:nth-of-type(7) { transition-delay: .70s; }

/* a pulse that runs the connector once the line has drawn */
.dgm .d-pulse {
  fill: var(--orange);
  opacity: 0;
}
.dgm.is-visible .d-pulse {
  animation: dgmPulse 3.2s var(--e-inout) infinite;
}
@keyframes dgmPulse {
  0%       { opacity: 0; }
  12%      { opacity: 1; }
  88%      { opacity: 1; }
  100%     { opacity: 0; }
}

/* --- journey / stepped flow -------------------------------------------- */
.dgm-flow { display: grid; gap: .65rem; }
.flow-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .6s var(--e-out), transform .6s var(--e-out), background .3s, border-color .3s;
}
.dgm.is-visible .flow-step { opacity: 1; transform: none; }
.dgm.is-visible .flow-step:nth-child(1) { transition-delay: .05s; }
.dgm.is-visible .flow-step:nth-child(2) { transition-delay: .14s; }
.dgm.is-visible .flow-step:nth-child(3) { transition-delay: .23s; }
.dgm.is-visible .flow-step:nth-child(4) { transition-delay: .32s; }
.dgm.is-visible .flow-step:nth-child(5) { transition-delay: .41s; }
.dgm.is-visible .flow-step:nth-child(6) { transition-delay: .50s; }
.dgm.is-visible .flow-step:nth-child(7) { transition-delay: .59s; }
.flow-step:hover { background: rgba(244,127,35,.08); border-color: rgba(244,127,35,.35); }
.flow-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(244,127,35,.14);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
}
.flow-step b { display: block; color: #fff; font-family: var(--font-display); font-size: .98rem; }
.flow-step span { display: block; color: var(--tx-onDark-2); font-size: .85rem; margin-top: .12rem; }

/* --- before / after compression ---------------------------------------- */
.dgm-compare { display: grid; gap: 1.5rem; }
.cmp-row { display: grid; gap: .5rem; }
.cmp-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-size: .88rem; color: var(--tx-onDark-2);
}
.cmp-top b { color: #fff; font-weight: 700; }
.cmp-track { height: 34px; border-radius: 10px; background: rgba(255,255,255,.06); overflow: hidden; }
.cmp-fill {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  transition: width 1.5s var(--e-out);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: .8rem;
  font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.dgm.is-visible .cmp-fill { width: var(--w, 50%); }
.cmp-before .cmp-fill { background: rgba(255,255,255,.22); }
.cmp-after  .cmp-fill { background: linear-gradient(90deg, var(--orange-deep), var(--orange)); }
.cmp-note { font-size: .85rem; color: var(--tx-onDark-3); }

@media (prefers-reduced-motion: reduce) {
  .dgm .d-link { transition: stroke-dashoffset 1.4s var(--e-out); }
  .dgm .d-pulse { animation: none; opacity: .9; }
}

@media (max-width: 620px) {
  .flow-step { grid-template-columns: 38px 1fr; gap: .75rem; padding: .7rem .8rem; }
  .flow-num { width: 38px; height: 38px; font-size: .8rem; }
  .dgm .d-label { font-size: 15px; }
  .dgm .d-sub { font-size: 13px; }
}

/* ==========================================================================
   PART 16 — credentials, case studies, objections
   Accreditations were previously four small grey badges in a trust strip.
   For a buyer comparing outsourcers they are a primary reason to shortlist,
   so they now carry headline weight.
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.cert {
  position: relative;
  background: var(--ink-900);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  overflow: hidden;
  transition: background var(--t-mid);
}
.cert::after {
  content: '';
  position: absolute;
  left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--orange), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--e-out);
}
.cert:hover { background: var(--ink-800); }
.cert:hover::after { transform: scaleX(1); }

.cert-mark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #fff;
}
.cert-mark em { font-style: normal; color: var(--orange); }
.cert-name {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
}
.cert-note { font-size: .85rem; line-height: 1.55; color: var(--tx-onDark-2); }
.cert-pending {
  align-self: flex-start;
  margin-top: .2rem;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tx-onDark-3);
  border: 1px dashed var(--line-dark);
  border-radius: 999px;
  padding: .25rem .6rem;
}

/* --- case studies ------------------------------------------------------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1rem,2vw,1.5rem); }
.case {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.8vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(244,127,35,.3); }
.case-sector {
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text);
  margin-bottom: 1rem;
}
.case-figure {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.1rem);
  font-weight: 800; line-height: 1; letter-spacing: -.035em;
  color: var(--tx-dark); margin-bottom: .3rem;
}
.case-figure small { font-size: .42em; font-weight: 700; color: var(--orange-text); letter-spacing: 0; }
.case h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: .6rem; }
.case p { font-size: .9rem; line-height: 1.6; flex: 1; }
.case-meta {
  margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--tx-muted);
}

/* --- objections --------------------------------------------------------- */
.obj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem,2vw,1.5rem); }
.obj {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-dark);
  transition: background var(--t-mid), border-color var(--t-mid);
}
.obj:hover { background: rgba(255,255,255,.06); border-color: rgba(244,127,35,.3); }
.obj-q {
  display: flex; gap: .6rem; align-items: flex-start;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: .7rem; line-height: 1.35;
}
.obj-q svg { flex: none; color: var(--orange); margin-top: .15rem; }
.obj p { font-size: .9rem; line-height: 1.65; color: var(--tx-onDark-2); }
.obj p + p { margin-top: .6rem; }

/* reCAPTCHA mount — hidden until a site key is configured */
.recaptcha-mount { margin: .25rem 0 .5rem; }
.recaptcha-mount[hidden] { display: none; }

/* ==========================================================================
   PART 17 — fixes
   1. The journey diagram read as a plain list: the number discs were a 14%
      orange tint over near-black, which muddies to brown, and seven full-width
      rows of short text left the right-hand side empty. It now has a spine, so
      it looks like the sequence it describes.
   2. The hero fade was ~100px of straight linear gradient, which shows a hard
      band and starts level with the copy. It is now roughly two-and-a-half
      times longer, eased through multiple stops, and begins below the text.
   ========================================================================== */

/* --- 1. journey diagram ------------------------------------------------- */
.dgm-flow {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding-left: 8px;
}
/* the spine the steps sit on */
.dgm-flow::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(244,127,35,.5), rgba(244,127,35,.22) 70%, transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.5s var(--e-out) .15s;
}
.dgm.is-visible .dgm-flow::before { transform: scaleY(1); }

.flow-step {
  position: relative;
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.10);
}
.flow-step:hover {
  background: rgba(244,127,35,.10);
  border-color: rgba(244,127,35,.42);
  transform: translateX(3px);
}

/* Solid disc rather than a translucent tint — the tint went brown on black */
.flow-num {
  background: var(--orange);
  color: var(--ink-900);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
  box-shadow: 0 0 0 5px var(--ink-900), 0 0 0 6px rgba(244,127,35,.28);
  z-index: 1;
}
.flow-step:hover .flow-num {
  box-shadow: 0 0 0 5px var(--ink-900), 0 0 0 7px rgba(244,127,35,.55);
}
.flow-step b { font-size: 1rem; letter-spacing: -.005em; }
.flow-step span { color: var(--tx-onDark-2); }

@media (max-width: 620px) {
  .dgm-flow { padding-left: 4px; }
  .dgm-flow::before { left: 23px; }
  .flow-num { box-shadow: 0 0 0 4px var(--ink-900), 0 0 0 5px rgba(244,127,35,.28); }
}

/* --- 2. longer, eased hero fade ---------------------------------------- */
.page-hero--feature {
  /* room for the fade to live below the copy rather than across it */
  padding-bottom: clamp(5.5rem, 11vh, 8rem);
}
.page-hero--feature::after {
  height: clamp(170px, 24vh, 300px);
  /* Multi-stop rather than a straight linear ramp: a two-colour linear fade
     bands visibly, and the eye reads the midpoint as an edge. */
  background: linear-gradient(to top,
    rgba(255,255,255,1)    0%,
    rgba(255,255,255,.985) 6%,
    rgba(255,255,255,.95)  14%,
    rgba(255,255,255,.88)  23%,
    rgba(255,255,255,.77)  32%,
    rgba(255,255,255,.63)  42%,
    rgba(255,255,255,.48)  52%,
    rgba(255,255,255,.34)  62%,
    rgba(255,255,255,.22)  72%,
    rgba(255,255,255,.12)  81%,
    rgba(255,255,255,.05)  90%,
    rgba(255,255,255,0)    100%);
}

/* Soften the photo scrim's own bottom edge so the two fades do not stack
   into a visible step */
.page-hero--feature .hero-photo::after {
  background:
    linear-gradient(103deg,
      var(--ink-900) 10%,
      rgba(13, 14, 16, .93) 34%,
      rgba(13, 14, 16, .66) 62%,
      rgba(13, 14, 16, .78) 100%),
    linear-gradient(to bottom,
      rgba(13, 14, 16, .58) 0%,
      transparent 34%,
      rgba(13, 14, 16, .45) 78%,
      rgba(13, 14, 16, .82) 92%,
      var(--ink-900) 100%);
}

/* Article heroes keep a shorter fade — they have less to bridge */
.page-hero--article { padding-bottom: clamp(4rem, 8vh, 6rem); }
.page-hero--article::after { height: clamp(120px, 16vh, 200px); }

/* --- PART 17 corrections ------------------------------------------------
   .flow-step span (0,1,1) was beating .flow-num (0,1,0), so the step numbers
   inherited the muted description colour instead of dark-on-orange. And the
   fade still began 117px above the copy, washing the last line.
   ------------------------------------------------------------------------ */
.flow-step .flow-num {
  color: var(--ink-900);
  font-weight: 800;
}

.page-hero--feature {
  /* text now clears the readable part of the gradient */
  padding-bottom: clamp(8rem, 16vh, 12rem);
}
.page-hero--feature::after {
  height: clamp(150px, 20vh, 240px);
}
.page-hero--article { padding-bottom: clamp(5.5rem, 11vh, 8rem); }
.page-hero--article::after { height: clamp(110px, 14vh, 170px); }

/* --- PART 17 corrections, second pass ------------------------------------
   `.flow-step span` (0,1,1) was also forcing display:block onto .flow-num,
   which is itself a span — so the disc stopped being a grid and the digits
   sat 29px off-centre. Scoping every .flow-num rule to .flow-step .flow-num
   (0,2,0) settles it for good.

   Also: .btn--ghost carries dark text for light sections, but the page heroes
   are now dark, so "How it works" was dark-on-dark.
   ------------------------------------------------------------------------ */
.flow-step .flow-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
  line-height: 1;
  text-align: center;
  z-index: 2;
  position: relative;
}
/* spine sits behind the discs */
.dgm-flow::before { z-index: 0; }
.flow-step { z-index: 1; }

@media (max-width: 620px) {
  .flow-step .flow-num { width: 38px; height: 38px; font-size: .74rem; }
}

/* Ghost buttons on a dark hero need light text, not the light-section default */
.page-hero .btn--ghost,
.hero .btn--ghost {
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34);
}
.page-hero .btn--ghost::before,
.hero .btn--ghost::before { background: #fff; }
.page-hero .btn--ghost:hover,
.hero .btn--ghost:hover {
  --btn-fg: var(--ink-900);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   PART 18 — rendering quality
   Three things were costing sharpness:
   1. Montserrat 500 was never requested, so the H1 was a synthesised weight —
      fixed in the markup.
   2. The progress bars animated `width`, which re-runs layout on every frame.
      Animating a transform instead keeps them on the compositor: smoother, and
      no sub-pixel reflow blurring the edge mid-transition.
   3. Backdrop-blur and transformed layers were being rasterised at 1x on some
      GPUs. Promoting them explicitly keeps them crisp.
   ========================================================================== */

/* --- 2. transform-driven bars ------------------------------------------- */
.skill-bar, .cmp-track { position: relative; }

.skill-fill,
.cmp-fill {
  transform-origin: left center;
  will-change: transform;
  backface-visibility: hidden;
}

/* skill meters: full width, scaled down, then scaled up to the target */
.skill-fill {
  width: 100%;
  transform: scaleX(0);
  transition: transform 1.5s var(--e-out);
}
.skills.is-visible .skill-fill { transform: scaleX(var(--s, 0)); }

/* compare bars: same trick, and the label must not squash with the bar */
.cmp-fill {
  width: 100%;
  transform: scaleX(0);
  transition: transform 1.5s var(--e-out);
  justify-content: flex-start;
  padding-right: 0;
}
.dgm.is-visible .cmp-fill { transform: scaleX(var(--s, 0)); }
.cmp-fill > span {
  display: inline-block;
  transform: scaleX(var(--inv, 1));      /* undo the parent squash */
  transform-origin: left center;
  padding: 0 .8rem;
  white-space: nowrap;
}

/* --- 3. keep composited layers sharp ------------------------------------ */
.hero-media img,
.hero-photo img,
.hero-video,
.bg-photo img {
  backface-visibility: hidden;
  transform-style: preserve-3d;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: auto;                  /* last wins; the above are ignored where unsupported */
}

/* Blurred bars rasterise softly unless the layer is promoted */
.header::before,
.pill,
.hero-toggle { will-change: opacity; }

/* Crisper hairlines on high-DPR screens, where 1px CSS is 2 device px */
@media (min-resolution: 2dppx) {
  .cert-grid, .stats-grid { gap: .5px; }
  .acc-item, .vac, .post-link, .svc, .case { border-width: .5px; }
}

/* Text: keep the antialiasing hint on dark ground where it genuinely helps,
   and let light sections render with the system default, which is heavier
   and reads sharper on white. */
.section--dark,
.page-hero,
.hero,
.footer,
.dgm,
.marquee {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.section,
.page-hero--feature + .section,
body {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
.section--dark, .page-hero, .hero, .footer, .dgm { -webkit-font-smoothing: antialiased; }


/* ==========================================================================
   PART 20 — DESIGN PASS (October 2026)

   Read this part last; it deliberately overrides earlier layers.

   1. Rhythm. The "white gaps" at the top of every page were not one bug but
      three stacked together: each page hero faded its photo to white over
      150–300px, carried 8–12rem of bottom padding to give that fade room,
      and the next section then added up to 9rem of its own. Dark sections
      used a separate "bridge" system (.tx-in-dark / .tx-out-dark) that
      painted white washes on their edges — including between two dark
      sections, and over the bottom of the stats cards. The bridges also
      collided with .bg-grid, which inherited the bridge's 150px height, so
      the grid texture only ever rendered as a strip.
      All of that is replaced by crisp section edges and one spacing scale.
   2. Fit. Balanced headings, no single-word orphans, card grids that never
      leave one card stranded on a row, and every label fitting its control.
   3. Motion. Choreographed reveals, a masked headline entrance on every
      page, image curtain reveals, cursor-tracked card light and a button
      sheen — all compositor-only (transform / opacity / clip-path) and all
      switched off under prefers-reduced-motion.
   ========================================================================== */

/* --- 20.1 one spacing scale ---------------------------------------------- */
:root {
  --sec-y: clamp(3.75rem, 7.5vw, 6.75rem);
  --sec-y-tight: clamp(3rem, 5.5vw, 4.75rem);
}
.section--tight { padding-block: var(--sec-y-tight); }

/* --- 20.2 page heroes end on a crisp edge ---------------------------------- */
.page-hero--feature::after,
.page-hero--light::after { content: none; }

.page-hero--feature  { padding-bottom: clamp(3.5rem, 7vh, 5.25rem); }
.page-hero--article  { padding-bottom: clamp(3rem, 6vh, 4.25rem); }
@media (max-width: 700px) {
  .page-hero--feature { padding-top: 7.25rem; padding-bottom: 3rem; }
  .page-hero--article { padding-bottom: 2.75rem; }
}

/* The photo now settles fully into ink before the edge, so the hero reads as
   one solid block that ends cleanly. */
.page-hero--feature .hero-photo::after {
  background:
    linear-gradient(103deg,
      var(--ink-900) 10%,
      rgba(13, 14, 16, .9) 34%,
      rgba(13, 14, 16, .62) 62%,
      rgba(13, 14, 16, .74) 100%),
    linear-gradient(to bottom,
      rgba(13, 14, 16, .55) 0%,
      transparent 30%,
      rgba(13, 14, 16, .35) 70%,
      rgba(13, 14, 16, .9) 100%);
}

/* A thin warm rule marks the hero's lower edge — reads as intentional rather
   than as a hard cut. Sits on the hero, so it costs no layout. */
.page-hero--feature > .wrap::after {
  content: '';
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: calc(-1 * clamp(3.5rem, 7vh, 5.25rem));
  height: 1px;
  background: linear-gradient(90deg, rgba(244,127,35,.55), rgba(244,127,35,.12) 45%, transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--e-out) .6s;
}
.page-hero.is-ready > .wrap::after { transform: scaleX(1); }
@media (max-width: 700px) {
  .page-hero--feature > .wrap::after { bottom: -3rem; }
}

/* First section under a hero starts closer — the hero already supplies the
   breathing room above it. */
.page-hero + .section { padding-top: clamp(3.25rem, 6vw, 5rem); }

/* Hero photo arrives rather than being there: fades up from ink and settles. */
.page-hero--feature .hero-photo {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.6s var(--e-out), transform 2.4s var(--e-out);
}
.page-hero--feature.is-ready .hero-photo { opacity: 1; transform: none; }

/* --- 20.3 CTA band: restore the drifting orb the bridge system hijacked --- */
.cta-band::after {
  inset: auto 4% -60% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,14,16,.16), transparent 68%);
  animation: drift2 24s var(--e-inout) infinite alternate;
  z-index: -1;
}

/* --- 20.4 header: clean white bar, not a grey wash over photography ------- */
.header::before {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: rgba(20, 21, 24, .07);
  transition: opacity var(--t-mid), box-shadow var(--t-mid);
}
.header.is-stuck::before { box-shadow: 0 14px 34px -26px rgba(20, 21, 24, .5); }

/* --- 20.5 dark sections: depth instead of edge washes --------------------- */
/* clip, not hidden: hidden would make the section a scroll container and
   break position: sticky for anything inside it */
.section--dark { overflow: clip; isolation: isolate; }
.section--dark > .wrap { position: relative; z-index: 2; }
/* A slow warm glow drifting behind the content. Pure decoration. */
.section--dark::after {
  content: '';
  position: absolute;
  width: min(62vw, 780px);
  aspect-ratio: 1;
  right: -14%;
  top: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 127, 35, .085), transparent 62%);
  pointer-events: none;
  z-index: 0;
  animation: drift2 28s var(--e-inout) infinite alternate;
}
.section--dark:nth-of-type(even)::after { right: auto; left: -16%; top: auto; bottom: -32%; animation-name: drift1; }

/* The grid and dot textures now cover the whole section, as intended. */
.bg-grid::before,
.bg-dots::before { inset: 0; height: auto; z-index: 0; }

/* --- 20.6 type that fits its frame --------------------------------------- */
h1, h2, h3, .h2, .lead, .cert-mark, .case-figure, .cta-band h2 { text-wrap: balance; }
p, li, dd, .cert-note, .obj p, .case p { text-wrap: pretty; }
h1, h2, h3, h4, .cert-mark, .case-figure { overflow-wrap: break-word; }

/* Footer watermark was sized past the viewport and showed "ENERGY AT W".
   Sized to fit the full name at every width. */
.footer-watermark {
  font-size: clamp(2.6rem, 10.2vw, 11.5rem);
  overflow: hidden;
}

/* Apply page bar: shorter label where the full one would wrap */
@media (max-width: 560px) { .pp-live-long { display: none; } }

/* --- 20.7 credentials: four across, equal cards -------------------------- */
.cert-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cert-mark { font-size: clamp(1.45rem, 2.15vw, 1.95rem); }
@media (max-width: 1080px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .cert-grid { grid-template-columns: 1fr; } }

/* --- 20.8 card grids never strand one card on its own row ---------------- */
@media (min-width: 920px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 919.98px) {
  /* Four tracks, cards span two: an odd last card centres at the same width
     as the others instead of sitting alone on the left. */
  .grid-3, .case-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3 > *, .case-grid > * { grid-column: span 2; }
  .grid-3 > :last-child:nth-child(odd),
  .case-grid > :last-child:nth-child(odd) { grid-column: 2 / span 2; }
}
@media (max-width: 639.98px) {
  .grid-3, .case-grid, .obj-grid { grid-template-columns: 1fr; }
}

/* --- 20.9 controls that fit on small screens ----------------------------- */
@media (max-width: 640px) {
  /* Service tabs were a scrolling strip that cut "Training Academy" off with
     no hint there was more. Three equal segments fit at 320px and up. */
  .tabs-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
    gap: .3rem;
    border-radius: 18px;
  }
  .tab-btn {
    white-space: normal;
    text-align: center;
    font-size: .78rem;
    line-height: 1.2;
    padding: .75rem .4rem;
    border-radius: 14px;
  }
}
@media (max-width: 620px) {
  /* The topic filter still scrolls sideways — now it visibly fades out at the
     edge, so it reads as scrollable rather than cut off. */
  .filters {
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
            mask-image: linear-gradient(90deg, #000 82%, transparent);
    padding-right: 2.5rem;
  }
}

/* Hero stat rows hold a clean three-up grid on phones */
@media (max-width: 560px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .hero-stats strong { font-size: 1.5rem; }
  .hero-stats span { font-size: .62rem; letter-spacing: .1em; line-height: 1.35; }
}

/* ==========================================================================
   20.10 MOTION
   ========================================================================== */

/* Reveals: a little less travel, a touch longer, so they glide not jump. */
[data-reveal] {
  transform: translateY(26px);
  transition: opacity 1s var(--e-out), transform 1.1s var(--e-out);
}
[data-reveal='left']  { transform: translateX(-36px); }
[data-reveal='right'] { transform: translateX(36px); }
[data-reveal='zoom']  { transform: scale(.95); }
[data-reveal='fade']  { transform: none; }
[data-reveal].is-visible { transform: none; }
/* Side-on entrances read as layout glitches on a phone: go vertical there. */
@media (max-width: 760px) {
  [data-reveal='left'], [data-reveal='right'] { transform: translateY(26px); }
  [data-reveal].is-visible { transform: none; }
}

/* Section heads are choreographed: rule draws, heading sharpens, lead follows */
.sec-head[data-reveal] { transform: translateY(14px); }
.sec-head[data-reveal].is-visible { transform: none; }
.sec-head[data-reveal] .eyebrow::before,
.sec-head[data-reveal] .eyebrow--center::after {
  transform: scaleX(0);
  transition: transform .9s var(--e-out) .3s;
}
.sec-head[data-reveal] .eyebrow::before { transform-origin: right; }
.sec-head[data-reveal] .eyebrow--center::after { transform-origin: left; }
.sec-head.is-visible .eyebrow::before,
.sec-head.is-visible .eyebrow--center::after { transform: scaleX(1); }

.sec-head[data-reveal] h2,
.sec-head[data-reveal] .h2 {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  transition: opacity 1s var(--e-out) .12s, filter 1.1s var(--e-out) .12s, transform 1.1s var(--e-out) .12s;
}
.sec-head[data-reveal] .lead,
.sec-head[data-reveal] > p {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s var(--e-out) .28s, transform 1s var(--e-out) .28s;
}
.sec-head.is-visible h2,
.sec-head.is-visible .h2,
.sec-head.is-visible .lead,
.sec-head.is-visible > p { opacity: 1; filter: none; transform: none; }

/* Interior page headlines rise word by word out of a mask, like the home
   hero. main.js wraps the words; without JS the heading simply shows. */
.page-hero h1.is-split { opacity: 1; transform: none; transition: none; }
.split-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* room for descenders, given back so line height is unchanged */
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
.split-w > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.05s var(--e-out);
  transition-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.page-hero.is-ready .split-w > span { transform: none; }

/* Images open like a curtain and settle from a slight zoom. */
.media-frame .split-media {
  clip-path: inset(10% 10% 10% 10% round var(--radius-lg));
  transition: clip-path 1.4s var(--e-out) .1s;
}
.media-frame .split-media img { transform: scale(1.18); transition: transform 1.8s var(--e-out) .1s; }
.media-frame.is-visible .split-media { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.media-frame.is-visible .split-media img { transform: scale(1.06); }
.media-frame.is-visible .split-media:hover img { transform: scale(1.11); transition-duration: 1.2s; }
.media-frame .float-card {
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: opacity .9s var(--e-out) .75s, transform 1s var(--e-out) .75s;
}
.media-frame.is-visible .float-card { opacity: 1; transform: none; }

/* Cursor-tracked light on cards. main.js injects .spot-glow and feeds it the
   pointer position; only on devices that can hover. */
.has-spot { isolation: isolate; }
.spot-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .5s var(--e-out);
  background: radial-gradient(
    var(--spot-r, 380px) circle at var(--mx, 50%) var(--my, 50%),
    var(--spot-c, rgba(244, 127, 35, .085)),
    transparent 62%);
}
.has-spot:hover .spot-glow { opacity: 1; }
.section--dark .spot-glow,
.cert .spot-glow,
.stat .spot-glow,
.obj .spot-glow,
.value .spot-glow { --spot-c: rgba(244, 127, 35, .16); }

/* Light cards lift with a softer, longer shadow */
.svc, .case, .contact-card, .step, .post-link {
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .5s var(--e-out);
}

/* Primary buttons catch the light on hover */
.btn:not(.btn--outline):not(.btn--ghost):not(.btn--onDark)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .32) 50%, transparent 68%);
  transform: translateX(-115%);
}
.btn:not(.btn--outline):not(.btn--ghost):not(.btn--onDark):hover::after {
  transform: translateX(115%);
  transition: transform .95s var(--e-out);
}

/* Footer watermark drifts up into place */
.footer-watermark {
  transform: translateY(30%);
  opacity: 0;
  transition: transform 1.6s var(--e-out), opacity 1.6s var(--e-out);
}
.footer-watermark.is-visible { transform: none; opacity: 1; }

/* --- reduced motion: keep it calm --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .split-w > span,
  .media-frame .split-media,
  .media-frame .split-media img,
  .media-frame .float-card,
  .page-hero--feature .hero-photo,
  .footer-watermark,
  .sec-head[data-reveal] h2,
  .sec-head[data-reveal] .h2,
  .sec-head[data-reveal] .lead,
  .sec-head[data-reveal] > p {
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .section--dark::after,
  .btn::after { animation: none !important; display: none; }
  .spot-glow { display: none; }
}

/* --- 20.11 long two-column sections: the image travels with the reading ---
   Where a photo sits beside a long text column it was vertically centred,
   leaving a tall blank half-column above it. On wide screens the photo now
   aligns to the top and stays in view while the copy is read. */
@media (min-width: 1024px) {
  /* Every two-column split aligns to the top. Centring a short column beside
     a long one floats it mid-way down and leaves a blank block above it. */
  .split { align-items: start; }
  /* The shorter side — a photo, or a heading beside long copy — travels with
     the reading and releases at the end of the section. */
  .split > .media-frame,
  .split > :first-child:has(> .h2:only-of-type):not(:has(p, ul, form)) {
    position: sticky;
    top: clamp(7rem, 14vh, 9rem);
  }
}
/* body's overflow-x: hidden made <body> a scroll container, which silently
   disables position: sticky. clip trims the same overflow without that
   side-effect; browsers that predate clip keep the earlier hidden value. */
body { overflow-x: clip; }

/* --- 20.12 four-item grids split 4 / 2+2 / 1, never 3+1 ------------------- */
.step-grid, .values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.obj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1099.98px) {
  .step-grid, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .step-grid, .values, .obj-grid { grid-template-columns: 1fr; }
}
/* Three case studies sit three across as soon as they fit */
@media (min-width: 920px) {
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Headings beside an image get half the width, so they get a size that fits
   two balanced lines instead of three with a word left on its own. */
@media (min-width: 781px) {
  .split .h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); }
}
.case-sector { line-height: 1.5; }

/* --- 20.13 energy line (home page, built by initEnergyLine) -------------- */
.energy-line {
  position: absolute;
  inset: 0 auto auto 0;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.energy-line path { fill: none; stroke-linecap: round; }
.el-track { stroke: rgba(244, 127, 35, .14); stroke-width: 1.5; }
.el-glow  { stroke: rgba(244, 127, 35, .22); stroke-width: 7; }
.el-draw  { stroke: url(#el-grad); stroke-width: 2; }
.el-node {
  fill: var(--paper);
  stroke: rgba(244, 127, 35, .45);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .5s var(--e-out), stroke .5s var(--e-out), transform .6s var(--e-out);
}
.section--dark .el-node, .el-node { fill: var(--ink-900); }
.el-node.is-lit { fill: var(--orange); stroke: var(--orange-light); transform: scale(1.25); }
.el-spark {
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 157, 77, .95)) drop-shadow(0 0 14px rgba(244, 127, 35, .7));
  transition: opacity .4s var(--e-out);
}
@media (max-width: 1099.98px) { .energy-line { display: none; } }
@media (prefers-reduced-motion: reduce) { .energy-line { display: none; } }

/* ==========================================================================
   PART 21 — hero polish
   ========================================================================== */

/* --- 21.1 still and loop share one frame ----------------------------------
   Where a hero has a video, the still underneath stops its slow zoom and both
   sit at the same scale, so the loop fades in without the picture shrinking.
   1.02 matches the reduced-motion scale, so the two never disagree. */
.hero-media:has(.hero-video) img,
.hero-photo:has(.hero-video) img {
  animation: none !important;
  transform: scale(1.02) !important;
}
.hero-video { transform: scale(1.02); }
.hero-photo .hero-video {
  object-position: center 42%;               /* same framing as the still */
  filter: saturate(.92) contrast(1.04);
}

/* --- 21.2 phones -------------------------------------------------------- */
@media (max-width: 700px) {
  /* the cue's rail ran through the second button; the hero already says scroll */
  .scroll-cue { display: none; }
  /* portrait crops keep the agent in frame instead of the empty aisle */
  .hero-media img,
  .hero-media .hero-video { object-position: 80% 35%; }
}

/* --- 21.3 inner-page headers show their photography -----------------------
   The scrim was dark across the full width, so the new header images barely
   read. On wide screens the copy only occupies the left half: keep that side
   deep for contrast and open the right half up. Phones keep the full scrim,
   because there the text runs edge to edge. */
@media (min-width: 1100px) {
  .page-hero--feature .hero-photo::after {
    background:
      linear-gradient(100deg,
        var(--ink-900) 6%,
        rgba(13, 14, 16, .9) 30%,
        rgba(13, 14, 16, .7) 47%,
        rgba(13, 14, 16, .3) 70%,
        rgba(13, 14, 16, .28) 100%),
      linear-gradient(to bottom,
        rgba(13, 14, 16, .5) 0%,
        transparent 26%,
        transparent 62%,
        rgba(13, 14, 16, .85) 100%);
  }
}
@media (min-width: 701px) and (max-width: 1099.98px) {
  .page-hero--feature .hero-photo::after {
    background:
      linear-gradient(100deg,
        var(--ink-900) 8%,
        rgba(13, 14, 16, .9) 40%,
        rgba(13, 14, 16, .55) 72%,
        rgba(13, 14, 16, .45) 100%),
      linear-gradient(to bottom,
        rgba(13, 14, 16, .5) 0%,
        transparent 28%,
        rgba(13, 14, 16, .3) 66%,
        rgba(13, 14, 16, .88) 100%);
  }
}

/* ==========================================================================
   PART 22 — daylight credentials and a lighter home hero
   ========================================================================== */

/* --- 22.1 credentials: one visual section replaces the pills, the badge
   strip and the old dark card row. Imagery is text-free, so every name and
   number on it is real, selectable copy. */
.creds { background: var(--cream); }
.creds-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 300px;
  background: #F4F0EA;
  isolation: isolate;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.creds-hero picture,
.creds-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.creds-hero img { object-fit: cover; object-position: 78% 50%; }
.creds-hero::after {               /* keeps the copy side calm whatever the frame holds */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247,244,239,.92) 0%, rgba(247,244,239,.6) 38%, rgba(247,244,239,0) 62%);
  z-index: 0;
}
.creds-hero-copy {
  position: relative; z-index: 1;
  height: 100%;
  max-width: 32rem;
  padding: clamp(1.75rem, 4.5vw, 3.75rem);
  display: flex; flex-direction: column; justify-content: center; gap: .6rem;
}
.creds-years {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem;
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0;
}
.creds-num {
  font-weight: 800;
  font-size: clamp(4.5rem, 10.5vw, 8.5rem);
  line-height: .85;
  letter-spacing: -.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.creds-unit {
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.1;
}

.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}
.cred {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .5s var(--e-out);
}
.cred:hover {
  transform: translateY(-4px);
  border-color: rgba(244,127,35,.35);
  box-shadow: 0 26px 50px -30px rgba(13,14,16,.38);
}
.cred-media { aspect-ratio: 4 / 3; background: #F4F0EA; overflow: hidden; }
.cred-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--e-out);
}
.cred:hover .cred-media img { transform: scale(1.045); }
.cred-body { display: grid; gap: .45rem; padding: 1.25rem 1.35rem 1.5rem; align-content: start; }
.cred-kicker {
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tx-muted);
}
.cred-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  line-height: 1.15;
  color: var(--ink-900);
  text-wrap: balance;
}
.cred-mark em { font-style: normal; color: var(--orange); }
.cred-note { font-size: .92rem; line-height: 1.55; color: var(--tx-body); margin: 0; text-wrap: pretty; }

@media (max-width: 1080px) { .creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .creds-hero { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; }
  .creds-hero picture { position: relative; display: block; height: 210px; }
  .creds-hero img { object-position: 82% 50%; }
  .creds-hero::after { content: none; }
  .creds-hero-copy { height: auto; max-width: none; }
}
@media (max-width: 560px) { .creds-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .cred, .cred-media img { transition: none; }
  .cred:hover, .cred:hover .cred-media img { transform: none; }
}

/* --- 22.2 home hero: the daylight loop shows through -----------------------
   Deep only where the headline sits; the right half is close to clear. */
@media (min-width: 1100px) {
  .hero-scrim {
    background:
      linear-gradient(100deg,
        rgba(13,14,16,.9) 0%,
        rgba(13,14,16,.8) 24%,
        rgba(13,14,16,.46) 44%,
        rgba(13,14,16,.12) 64%,
        rgba(13,14,16,.1) 100%),
      linear-gradient(to top, rgba(13,14,16,.8) 0%, transparent 26%);
  }
}
@media (min-width: 701px) and (max-width: 1099.98px) {
  .hero-scrim {
    background:
      linear-gradient(100deg, rgba(13,14,16,.9) 0%, rgba(13,14,16,.78) 40%, rgba(13,14,16,.35) 75%, rgba(13,14,16,.3) 100%),
      linear-gradient(to top, rgba(13,14,16,.8) 0%, transparent 30%);
  }
}
@media (max-width: 700px) {
  .hero-scrim {
    background: linear-gradient(to bottom, rgba(13,14,16,.5) 0%, rgba(13,14,16,.68) 45%, rgba(13,14,16,.86) 100%);
  }
}

/* --- 22.3 credentials before the studio imagery lands ----------------------
   Remove the creds--pending class from #credentials once the cred-* images
   are in assets/. Until then the section stands on its typography alone. */
.creds--pending .cred-media,
.creds--pending .creds-hero picture { display: none; }
.creds--pending .creds-hero {
  aspect-ratio: auto;
  min-height: 0;
  background: linear-gradient(115deg, var(--paper) 0%, #F4F0EA 100%);
  border: 1px solid var(--line);
}
.creds--pending .creds-hero::after { content: none; }
.creds--pending .creds-hero-copy { max-width: 40rem; }
.creds--pending .cred-body { padding-top: 1.6rem; }

/* ==========================================================================
   PART 23 — day theme (white website)
   Everything here hangs off <body class="theme-day">. Remove that class from
   the pages to return to the dark headers. The footer and the orange CTA band
   stay as they are: they anchor the bottom of each page.
   ========================================================================== */
body.theme-day { --sand: #F4F0EA; }

/* --- 23.1 photography reads as daytime until the daylight set lands -------- */
.theme-day .hero-media img,
.theme-day .hero-video,
.theme-day .hero-photo img {
  filter: brightness(1.22) saturate(.92) contrast(.96);
}

/* --- 23.2 home hero: white wash on the copy side, dark type --------------- */
.theme-day .hero { background: var(--paper); color: var(--ink-900); }
.theme-day .hero-scrim {
  background:
    linear-gradient(100deg,
      rgba(255,255,255,.97) 0%,
      rgba(255,255,255,.92) 30%,
      rgba(255,255,255,.62) 46%,
      rgba(255,255,255,.12) 64%,
      rgba(255,255,255,0) 100%),
    linear-gradient(to top, rgba(255,255,255,.55) 0%, transparent 22%);
}
.theme-day .hero h1 { color: var(--ink-900); }
.theme-day .hero h1 .light { color: var(--orange); font-weight: 400; }
.theme-day .hero-lead { color: var(--tx-body); }
.theme-day .hero .btn--onDark {
  --btn-fg: var(--ink-900);
  box-shadow: inset 0 0 0 1.5px rgba(13,14,16,.22);
}
.theme-day .hero .btn--onDark::before { background: var(--ink-900); }
.theme-day .hero .btn--onDark:hover { --btn-fg: #fff; }
.theme-day .scroll-cue { color: var(--tx-muted); }
.theme-day .scroll-cue .rail { background: rgba(13,14,16,.15); }
@media (max-width: 1099.98px) {
  .theme-day .hero-scrim {
    background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.6) 80%, rgba(255,255,255,.5) 100%);
  }
}
@media (max-width: 700px) {
  .theme-day .hero-scrim {
    background: linear-gradient(to bottom, rgba(255,255,255,.78) 0%, rgba(255,255,255,.88) 45%, rgba(255,255,255,.96) 100%);
  }
}

/* --- 23.3 inner page headers ---------------------------------------------- */
.theme-day .page-hero--feature { background: var(--paper); color: var(--tx-body); }
.theme-day .page-hero--feature h1 { color: var(--ink-900); }
.theme-day .page-hero--feature p { color: var(--tx-body); }
.theme-day .page-hero--feature .crumbs { color: var(--tx-muted); }
.theme-day .page-hero--feature .crumbs a { color: var(--tx-body); }
.theme-day .page-hero--feature .hero-photo::after {
  background:
    linear-gradient(100deg,
      rgba(255,255,255,.97) 0%,
      rgba(255,255,255,.9) 32%,
      rgba(255,255,255,.55) 50%,
      rgba(255,255,255,.08) 72%,
      rgba(255,255,255,0) 100%),
    linear-gradient(to bottom, transparent 70%, rgba(255,255,255,.6) 100%);
}
@media (max-width: 1099.98px) {
  .theme-day .page-hero--feature .hero-photo::after {
    background: linear-gradient(100deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 50%, rgba(255,255,255,.62) 100%);
  }
}
.theme-day .page-hero--feature .hero-pattern {
  background-image: radial-gradient(rgba(13,14,16,.08) 1px, transparent 1px);
}
.theme-day .page-hero--feature .hero-stats { border-top-color: var(--line); }
.theme-day .page-hero--feature .hero-stats span { color: var(--tx-muted); }

/* --- 23.4 the sector ticker ---------------------------------------------- */
.theme-day .marquee {
  background: var(--sand);
  border-block: 1px solid var(--line);
}
.theme-day .marquee::before { background: linear-gradient(to right, var(--sand) 12%, transparent); }
.theme-day .marquee::after  { background: linear-gradient(to left,  var(--sand) 12%, transparent); }
.theme-day .marquee-item { color: rgba(13,14,16,.55); }
.theme-day .marquee--reverse .marquee-item { color: rgba(13,14,16,.32); }

/* --- 23.5 dark bands become sand ----------------------------------------
   Re-pointing the on-dark tokens flips most of the text in one move. */
.theme-day .section--dark {
  --tx-onDark: var(--ink-900);
  --tx-onDark-2: #55575E;
  --tx-onDark-3: #6A6D75;
  --line-dark: var(--line);
  background: var(--sand);
  color: var(--tx-body);
}
.theme-day .section--dark h2,
.theme-day .section--dark h3,
.theme-day .section--dark h4 { color: var(--ink-900); }
.theme-day .bg-dots::before { background-image: radial-gradient(rgba(13,14,16,.09) 1px, transparent 1px); }
.theme-day .bg-grid::before {
  background-image:
    linear-gradient(rgba(13,14,16,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,14,16,.05) 1px, transparent 1px);
}
.theme-day .bg-photo { display: none; }
.theme-day .section--dark .svc { background: var(--paper); border-color: var(--line); }
.theme-day .section--dark .svc:hover { background: var(--paper); border-color: rgba(244,127,35,.35); }

.theme-day .stats-grid { background: var(--line); }
.theme-day .stat { background: var(--paper); }
.theme-day .stat:hover { background: #FFFDFB; }
.theme-day .stat-num { color: var(--ink-900); }

.theme-day .obj { background: var(--paper); border-color: var(--line); }
.theme-day .obj:hover { background: var(--paper); }
.theme-day .obj-q { color: var(--ink-900); }
.theme-day .obj strong[style] { color: var(--ink-900) !important; }

.theme-day .quote { background: linear-gradient(140deg, var(--paper), #FBF8F4 65%); border: 1px solid var(--line); }
.theme-day .quote-text { color: var(--ink-900); }
.theme-day .value { background: var(--paper); border-color: var(--line); }
.theme-day .value:hover { background: var(--paper); box-shadow: 0 24px 46px -30px rgba(13,14,16,.3); }

.theme-day .section--dark .tabs-nav { background: rgba(13,14,16,.05); }

/* --- 23.6 day theme: wider wash so copy never sits on the photo, plus the
   headers that do not use the --feature modifier (apply, articles) ---------- */
@media (min-width: 1100px) {
  .theme-day .hero-scrim {
    background:
      linear-gradient(100deg,
        rgba(255,255,255,.97) 0%,
        rgba(255,255,255,.94) 38%,
        rgba(255,255,255,.7) 52%,
        rgba(255,255,255,.15) 68%,
        rgba(255,255,255,0) 100%),
      linear-gradient(to top, rgba(255,255,255,.55) 0%, transparent 22%);
  }
  .theme-day .page-hero--feature .hero-photo::after {
    background:
      linear-gradient(100deg,
        rgba(255,255,255,.97) 0%,
        rgba(255,255,255,.94) 42%,
        rgba(255,255,255,.66) 56%,
        rgba(255,255,255,.1) 74%,
        rgba(255,255,255,0) 100%),
      linear-gradient(to bottom, transparent 70%, rgba(255,255,255,.6) 100%);
  }
}
.theme-day .page-hero { background: var(--paper); color: var(--tx-body); }
.theme-day .page-hero h1 { color: var(--ink-900); }
.theme-day .page-hero p { color: var(--tx-body); }
.theme-day .page-hero .crumbs { color: var(--tx-muted); }
.theme-day .page-hero .crumbs a { color: var(--tx-body); }
.theme-day .page-hero--apply { background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%); border-bottom: 1px solid var(--line); }
.theme-day .page-hero--article .article-meta { color: var(--tx-muted); }

/* --- 23.7 day theme legibility -------------------------------------------
   Brand orange #F47F23 is 2.6:1 on white, under the 3:1 large-text minimum,
   so orange *type* on light grounds uses the deep brand orange (3.6:1).
   Buttons, rules and icons keep the bright orange. */
.theme-day .hero h1 .light,
.theme-day .page-hero .hero-stats strong,
.theme-day .stat-num .suffix,
.theme-day .creds-num,
.theme-day .cred-mark em,
.theme-day .page-hero .crumbs span { color: #D9641A; }

/* Laptop widths: the copy column takes more of the frame, so the wash runs
   further before the photo starts. */
@media (min-width: 1100px) and (max-width: 1439.98px) {
  .theme-day .hero-scrim {
    background:
      linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 52%, rgba(255,255,255,.7) 64%, rgba(255,255,255,.12) 80%, rgba(255,255,255,0) 100%),
      linear-gradient(to top, rgba(255,255,255,.55) 0%, transparent 22%);
  }
  .theme-day .page-hero--feature .hero-photo::after {
    background:
      linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 56%, rgba(255,255,255,.66) 68%, rgba(255,255,255,.1) 84%, rgba(255,255,255,0) 100%),
      linear-gradient(to bottom, transparent 70%, rgba(255,255,255,.6) 100%);
  }
}
/* Tablet and phone: the copy runs nearly edge to edge, so the photo becomes
   a soft backdrop rather than a feature. */
@media (max-width: 1099.98px) {
  .theme-day .hero-scrim,
  .theme-day .page-hero--feature .hero-photo::after {
    background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.93) 60%, rgba(255,255,255,.84) 100%);
  }
}

/* ==========================================================================
   PART 24 — technology section and refreshed icon family (Oct 2026 brief)
   ========================================================================== */

/* --- 24.1 one thin-line icon family: ink line, orange accent ------------- */
.ti { color: var(--ink-900); }
.ti .ac { stroke: var(--orange); }
.div-icon .ti { width: 28px; height: 28px; }
.div-card:hover .div-icon .ti { color: #fff; }
.div-card:hover .div-icon .ti .ac { stroke: var(--ink-900); }

/* --- 24.2 Technology as a BPO Competitive Edge --------------------------- */
.tech { background: var(--paper); position: relative; overflow: clip; }
.tech::before {                       /* faint system grid, fades out downward */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,14,16,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,14,16,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}
.tech .wrap { position: relative; }
.tech-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}
.tech-head .h2 { text-wrap: balance; }
.tech-sub {
  margin-top: .9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: #D9641A;
}
.tech-head .lead { margin: 0; color: var(--tx-body); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.tech-card {
  position: relative;
  display: flex; flex-direction: column; gap: .7rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .5s var(--e-out);
}
.tech-card::after {                   /* a signal line that runs along the top on hover */
  content: '';
  position: absolute; left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--e-out);
}
.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244,127,35,.35);
  box-shadow: 0 26px 50px -30px rgba(13,14,16,.32);
}
.tech-card:hover::after { transform: scaleX(1); }
.tech-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  margin-bottom: .35rem;
  transition: background .5s var(--e-out), border-color .5s var(--e-out);
}
.tech-ico .ti { width: 28px; height: 28px; }
.tech-card:hover .tech-ico { background: rgba(244,127,35,.08); border-color: rgba(244,127,35,.3); }
.tech-card h3 {
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  line-height: 1.25;
  color: var(--ink-900);
  text-wrap: balance;
}
.tech-card p { font-size: .92rem; line-height: 1.6; color: var(--tx-body); margin: 0; text-wrap: pretty; }
@media (max-width: 980px) {
  .tech-head { grid-template-columns: 1fr; align-items: start; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) { .tech-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .tech-card, .tech-card::after { transition: none; }
  .tech-card:hover { transform: none; }
}

/* --- 24.3 closing statement: short line, sentence-case commitment -------- */
.quote-meta--line {
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 600;
  line-height: 1.45;
}
.quote-meta--line::before { flex: none; }

/* --- 24.4 five statistics in one row ------------------------------------- */
@media (min-width: 1100px) { .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 621px) and (max-width: 1099.98px) {
  .stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stats-grid > .stat { grid-column: span 2; }
  .stats-grid > .stat:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 620px) {
  .stats-grid > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* --- 24.5 refinements ----------------------------------------------------- */
.tech-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 980px) { .tech-head { grid-template-columns: 1fr; } }
.tech-ico .ti { width: 30px; height: 30px; }

/* the closing statement is now a short line, so it reads as a headline */
.quote:has(.quote-meta--line) .quote-text {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}

/* five figures in a row: size the numbers to the column, not the viewport */
@media (min-width: 1100px) {
  .stats-grid .stat { padding: clamp(1.5rem, 2.2vw, 2.3rem); }
  .stats-grid .stat-num { font-size: clamp(2.3rem, 3.4vw, 3.5rem); }
}
.quote:has(.quote-meta--line) .quote-text { text-wrap: balance; }

/* ==========================================================================
   PART 25 — Website update version 2 (Oct 2026)
   ========================================================================== */

/* --- 25.1 four headline statistics again (the 59% figure was removed) ----- */
@media (min-width: 1100px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 621px) and (max-width: 1099.98px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid > .stat, .stats-grid > .stat:nth-child(n+4) { grid-column: auto; }
}

/* --- 25.2 the full slogan in the 21-years panel ---------------------------- */
.creds-unit { max-width: 18ch; text-wrap: balance; }

/* --- 25.3 engine graphic: interlocking gears that turn at meshed speeds ---- */
.engine-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.engine { margin: 0; width: 100%; }
.engine svg { width: 100%; height: auto; display: block; overflow: visible; }
.gear { transform-box: view-box; animation: gear-spin 24s linear infinite; }
.gear polygon { stroke: var(--ink-900); stroke-width: 2.2; fill: var(--paper); }
.gear circle { stroke: var(--ink-900); stroke-width: 2; fill: none; }
.gear .hub { fill: var(--orange); stroke: none; }
.g-mid polygon, .g-small polygon { stroke: var(--orange); }
.g-mid polygon { fill: rgba(244,127,35,.08); }
.g-mid circle:not(.hub), .g-small circle:not(.hub) { stroke: var(--orange); }
.g-mid   { animation-duration: 15.43s; animation-direction: reverse; }   /* 24 x 9/14 */
.g-small { animation-duration: 13.71s; animation-direction: reverse; }   /* 24 x 8/14 */
.eng-belt { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 8; }
.eng-spark { fill: var(--orange); filter: drop-shadow(0 0 5px rgba(244,127,35,.8)); }
@keyframes gear-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .engine-head { grid-template-columns: 1fr; }
  .engine { max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .gear { animation: none; }
  .eng-spark { display: none; }
}

/* --- 25.4 BPO offering cards: icon tiles and warmth ----------------------- */
.svc--icon { position: relative; overflow: hidden; }
.svc--icon::before {
  content: '';
  position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light) 60%, transparent);
  opacity: .9;
}
.svc-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: linear-gradient(140deg, rgba(244,127,35,.16), rgba(255,157,77,.08));
  color: var(--orange);
  transition: transform .5s var(--e-out), background .5s var(--e-out), color .5s var(--e-out);
}
.svc-ico .svc-ico-svg { width: 22px; height: 22px; margin: 0; }
.svc--icon:hover .svc-ico { background: var(--orange); color: #fff; transform: rotate(-6deg) scale(1.06); }
.svc--icon h3 { display: block; }

/* --- 25.5 sector labels are information, not buttons ---------------------- */
.chip {
  cursor: default;
  border-color: transparent;
  background: rgba(244,127,35,.08);
  padding: .5rem .95rem;
  border-radius: 10px;
}
.chip:hover { transform: none; border-color: transparent; background: rgba(244,127,35,.08); color: inherit; }
.chip svg { color: var(--orange); }

/* --- 25.6 Excellence: the add-on that shines beside the slogan ------------- */
.slogan-seal {
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem;
}
.ss-slogan {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600;
  color: var(--tx-onDark-2);
}
.ss-excel {
  position: relative;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .8rem .38rem .62rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: #FFD9A8;
  background: linear-gradient(135deg, rgba(244,127,35,.28), rgba(255,157,77,.12));
  border: 1px solid rgba(255,190,120,.45);
  overflow: hidden;
  isolation: isolate;
}
.ss-excel svg { width: 14px; height: 14px; color: #FFC071; animation: ex-twinkle 3.2s ease-in-out infinite; }
.ss-excel::after {                 /* a light sweep that crosses the seal */
  content: '';
  position: absolute; top: -50%; bottom: -50%; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg);
  animation: ex-sweep 3.2s ease-in-out infinite;
  z-index: -1;
}
@keyframes ex-sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes ex-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(18deg); } }

/* an Excellence value card (none on Home now: Excellence runs as the banner) */
.value--excellence .value-ico { position: relative; overflow: hidden; }
.value--excellence .value-ico svg { animation: ex-twinkle 3.2s ease-in-out infinite; }
.value--excellence .value-ico::after {
  content: '';
  position: absolute; top: -40%; bottom: -40%; left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  transform: skewX(-18deg);
  animation: ex-sweep 3.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ss-excel svg, .ss-excel::after,
  .value--excellence .value-ico svg, .value--excellence .value-ico::after { animation: none; }
  .ss-excel::after, .value--excellence .value-ico::after { display: none; }
}

/* --- 25.7 buttons that jump to the enquiry form clear the sticky header ---- */
#enquiry { scroll-margin-top: 90px; }
.sec-head.engine-head { max-width: none; }
.engine-head h3 { max-width: 16ch; text-wrap: balance; }

/* ==========================================================================
   PART 26 — richer visuals (Oct 2026): rev meter, moving headers, icon art
   ========================================================================== */

/* --- 26.1 rev meter ------------------------------------------------------- */
.revmeter { margin: 0; width: 100%; max-width: 340px; justify-self: end; }
.revmeter svg { width: 100%; height: auto; display: block; overflow: visible;
  filter: drop-shadow(0 22px 34px rgba(13,14,16,.22)); }
.rv-ring  { stroke: rgba(13,14,16,.1); stroke-width: 1; }
.rv-track { stroke: rgba(13,14,16,.08); stroke-width: 12; stroke-linecap: round; }
.rv-red   { stroke: rgba(226,69,27,.28); stroke-width: 12; stroke-linecap: round; }
.rv-fill  { stroke: url(#rv-arc); stroke-width: 12; stroke-linecap: round; }
.tk       { stroke: #6A6D75; stroke-width: 1.2; stroke-linecap: round; }
.tk-major { stroke: var(--ink-900); stroke-width: 2.6; }
.tk-red   { stroke: #E2451B; }
.tn { font: 700 15px var(--font-display); fill: var(--ink-900); text-anchor: middle; }
.tn-red { fill: #E2451B; }
.rv-unit  { font: 600 9px var(--font-display); letter-spacing: .14em; fill: #6A6D75; text-anchor: middle; text-transform: uppercase; }
.rv-label { font: 800 9.5px var(--font-display); letter-spacing: .24em; fill: #D9641A; text-anchor: middle; }
.rv-readout rect { fill: var(--ink-900); }
.rv-num { font: 700 21px var(--font-display); fill: #FFB067; text-anchor: middle; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.rv-shift { fill: rgba(226,69,27,.18); stroke: rgba(226,69,27,.4); stroke-width: 1; transition: fill .12s, filter .12s; }
.revmeter.is-redline .rv-shift { fill: #FF5A2A; filter: drop-shadow(0 0 6px #FF5A2A); }
.rv-needle { transform: rotate(-112.6deg); }
.rv-needle-body { fill: var(--ink-900); }
.rv-needle-tip  { fill: var(--orange); }
.rv-hub { fill: var(--ink-900); }
.rv-hub-dot { fill: var(--orange); }
@media (max-width: 760px) { .revmeter { max-width: 280px; justify-self: start; } }

/* ==========================================================================
   PART 28 — glyph family
   Layered, animated duotone emblems that replace the thin line icons on the
   service, technology, BPO, value and buyer-question cards (built by
   eaw-tools/glyphs.py). Each draws its own tile, sheen and glow; ink, paper
   and orange are tokens so the same art works on white, sand and ink.
   ========================================================================== */
.gx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.gx {
  --gx-ink: #17181B; --gx-paper: #FFFFFF; --gx-tile: #FFF7F0;
  --gx-rim: rgba(217, 100, 26, .22); --gx-sheen: .9; --gx-track: rgba(23, 24, 27, .12);
  display: block; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 10px 14px rgba(217, 100, 26, .16)) drop-shadow(0 2px 3px rgba(13, 14, 16, .07));
  transition: transform .6s var(--e-out), filter .6s var(--e-out);
}
.section--dark .gx, .cta-band .gx {
  --gx-ink: #F4EFE9; --gx-paper: #23252B; --gx-tile: #17181C;
  --gx-rim: rgba(255, 176, 103, .34); --gx-sheen: .07; --gx-track: rgba(255, 255, 255, .16);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}
.theme-day .section--dark .gx {
  --gx-ink: #17181B; --gx-paper: #FFFFFF; --gx-tile: #FFFFFF;
  --gx-rim: rgba(217, 100, 26, .24); --gx-sheen: .9; --gx-track: rgba(23, 24, 27, .12);
  filter: drop-shadow(0 10px 14px rgba(217, 100, 26, .16)) drop-shadow(0 2px 3px rgba(13, 14, 16, .07));
}
.gx * { transform-box: fill-box; transform-origin: center; }
.gx [transform] { transform-box: view-box; transform-origin: 0 0; }
.gx .gx-tile  { fill: var(--gx-tile); stroke: var(--gx-rim); stroke-width: 1; }
.gx .gx-sheen { fill: url(#gx-sheen); opacity: var(--gx-sheen); }
.gx .gx-glow  { fill: url(#gx-glow); }
.gx .k, .gx .kt, .gx .os, .gx .wk, .gx .track { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gx .k   { stroke: var(--gx-ink); stroke-width: 2.3; }
.gx .kt  { stroke: var(--gx-ink); stroke-width: 1.6; }
.gx .k.thinish { stroke-width: 1.8; }
.gx .kt.dim, .gx .fp { opacity: .55; }
.gx .kf  { fill: var(--gx-ink); }
.gx .p   { fill: var(--gx-paper); stroke: var(--gx-ink); stroke-width: 2.1; stroke-linejoin: round; }
.gx .o   { fill: url(#gx-or); }
.gx .ot  { fill: rgba(244, 127, 35, .17); }
.gx .os  { stroke: #F47F23; stroke-width: 2.2; }
.gx .w   { fill: #fff; }
.gx .wk  { stroke: #fff; stroke-width: 2.4; }
.gx .wk.thin { stroke-width: 1.4; opacity: .85; }
.gx .wk.dim2 { opacity: .5; }
.gx .heavy { stroke-width: 3.4; }
.gx .thin  { stroke-width: 1.3; }
.gx .ko  { stroke: var(--gx-ink); stroke-width: 1.8; stroke-linejoin: round; }
.gx .ns  { vector-effect: non-scaling-stroke; }
.gx .ghost { fill: none; stroke: none; }
.gx .dash  { stroke-dasharray: 2 4.2; stroke-width: 1.5; opacity: .55; }
.gx .track { stroke: var(--gx-track); stroke-width: 2.6; }

/* motion */
.gx .spin    { animation: gx-spin var(--d, 14s) linear infinite; }
.gx .spin-r  { animation: gx-spin var(--d, 10s) linear infinite reverse; }
.gx .pulse   { animation: gx-pulse 2.6s var(--e-out) infinite var(--dl, 0s); }
.gx .blink   { animation: gx-blink 1.5s ease-in-out infinite var(--dl, 0s); }
.gx .bob     { animation: gx-bob 3.6s ease-in-out infinite var(--dl, 0s); }
.gx .flow    { stroke-dasharray: 2.4 3.6; animation: gx-flow 1.4s linear infinite; }
.gx .wave    { transform-origin: center bottom; animation: gx-wave 1.1s ease-in-out infinite alternate var(--dl, 0s); }
.gx .draw    { stroke-dasharray: 100; animation: gx-draw 3.4s ease-in-out infinite var(--dl, 0s); }
.gx .draw2   { stroke-dasharray: 100; animation: gx-draw2 4s var(--e-inout) infinite; }
.gx .twinkle { animation: gx-twinkle 3s ease-in-out infinite var(--dl, 0s); }
.gx .scan    { animation: gx-scan 2.8s ease-in-out infinite; }
.gx .grow    { transform-origin: left center; animation: gx-grow 3.2s var(--e-inout) infinite var(--dl, 0s); }
.gx .step    { opacity: 0; animation: gx-step 3.2s linear infinite var(--dl, 0s); }
.gx .step2   { animation: gx-step2 2.8s ease-in-out infinite var(--dl, 0s); }
.gx .drop    { animation: gx-drop 2.1s ease-in infinite var(--dl, 0s); }
.gx .pop     { animation: gx-pop 3.6s var(--e-out) infinite var(--dl, 0s); }
.gx .rock    { transform-origin: 70% 30%; animation: gx-rock 3.2s ease-in-out infinite; }
.gx .beat    { animation: gx-beat 1.6s ease-in-out infinite; }
.gx .zap     { animation: gx-zap 2.4s steps(1) infinite; }
.gx .slide   { animation: gx-slide 2.2s var(--e-out) infinite var(--dl, 0s); }
.gx .tilt    { transform-origin: 50% 0; animation: gx-tilt 4.2s ease-in-out infinite; }
.gx .blinkeye { animation: gx-eye 4.8s ease-in-out infinite; }
@keyframes gx-spin    { to { transform: rotate(360deg); } }
@keyframes gx-pulse   { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes gx-blink   { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes gx-bob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2px); } }
@keyframes gx-flow    { to { stroke-dashoffset: -12; } }
@keyframes gx-wave    { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
@keyframes gx-draw    { 0% { stroke-dashoffset: 100; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 85% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 100; opacity: 0; } }
@keyframes gx-draw2   { 0% { stroke-dashoffset: 100; } 70%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gx-twinkle { 0%, 100% { transform: scale(.84) rotate(0); } 50% { transform: scale(1.08) rotate(14deg); } }
@keyframes gx-scan    { 0% { transform: translateY(-12px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }
@keyframes gx-grow    { 0% { transform: scaleX(.12); } 60%, 80% { transform: scaleX(1); } 100% { transform: scaleX(.12); } }
@keyframes gx-step    { 0%, 24% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes gx-step2   { 0%, 10% { opacity: .15; } 30%, 75% { opacity: 1; } 95%, 100% { opacity: .15; } }
@keyframes gx-drop    { 0% { transform: translateY(-6px); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }
@keyframes gx-pop     { 0%, 8% { transform: scale(0); opacity: 0; } 18% { transform: scale(1.25); opacity: 1; } 26%, 82% { transform: scale(1); opacity: 1; } 94%, 100% { transform: scale(.6); opacity: 0; } }
@keyframes gx-rock    { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@keyframes gx-beat    { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 28% { transform: scale(.97); } }
@keyframes gx-zap     { 0%, 62%, 70%, 100% { opacity: 1; } 64%, 68% { opacity: .55; } }
@keyframes gx-tilt { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes gx-eye { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.12); } }
@keyframes gx-slide   { 0% { transform: translateX(8px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateX(-4px); opacity: 1; } 100% { transform: translateX(-9px); opacity: 0; } }

/* containers: the glyph draws its own tile, so the old chips step aside */
.div-icon, .tech-ico, .svc-ico, .value-ico, .obj-ico, .contact-card .ci, .legal-card .lc-ico {
  background: none !important; border: 0 !important; border-radius: 0; box-shadow: none;
  perspective: 320px; transform: none !important;
}
.div-icon { width: 76px; height: 76px; margin-bottom: 1.2rem; }
.tech-ico { width: 66px; height: 66px; margin-bottom: .5rem; }
.svc-ico  { width: 60px; height: 60px; margin-bottom: 1rem; }
.value-ico { width: 80px; height: 80px; }
.obj-ico  { width: 46px; height: 46px; flex: none; }
.div-icon svg.gx, .tech-ico svg.gx, .svc-ico svg.gx, .value-ico svg.gx, .obj-ico svg.gx,
.contact-card .ci svg.gx, .legal-card .lc-ico svg.gx { width: 100%; height: 100%; margin: 0; }
.contact-card .ci { width: 68px; height: 68px; }
.legal-card .lc-ico { width: 58px; height: 58px; flex: none; }
.value--excellence .value-ico::after { display: none; }
.value--excellence .value-ico svg { animation: none; }
.obj-q { align-items: center; gap: .85rem; }
.svc--icon h3 svg { display: none; }

.contact-card:hover .gx, .legal-card:hover .gx, .div-card:hover .gx, .tech-card:hover .gx, .svc--icon:hover .gx, .value:hover .gx, .obj:hover .gx {
  transform: rotateX(12deg) rotateY(-14deg) translateY(-3px) scale(1.06);
  filter: drop-shadow(0 16px 20px rgba(217, 100, 26, .26)) drop-shadow(0 3px 4px rgba(13, 14, 16, .08));
}

@media (prefers-reduced-motion: reduce) {
  .gx *, .gx { animation: none !important; transition: none !important; }
  .gx .step { opacity: 0; }
  .gx .step:first-of-type { opacity: 1; }
  .gx .sat { display: none; }
  .gx .draw, .gx .draw2 { stroke-dashoffset: 0; }
}

/* --- 28.9 real header footage ---------------------------------------------
   The looping clips (and their opening-frame stills) are shot in daylight, so
   the day theme's brightening for the old stills would wash them out. */
.theme-day .hero-photo:has(.hero-video) img,
.theme-day .hero-photo .hero-video,
.theme-day .hero-media:has(.hero-video) img,
.theme-day .hero-media .hero-video { filter: saturate(1) contrast(1.02); }
/* short headers: keep the faces in frame */
.hero-photo--faces img, .hero-photo--faces .hero-video { object-position: center 24% !important; }

/* --- 28.11 header footage starts at once -----------------------------------
   The clip opens on the exact frame the still shows, so a long cross-fade only
   delays the movement. The photo itself arrives quicker too. */
.hero-video { transition: opacity .3s linear; }
.page-hero--feature .hero-photo { transition: opacity .6s var(--e-out), transform 1s var(--e-out); }

/* ==========================================================================
   PART 29 — "One conversation, every channel" diagram (eaw-tools/channels_dgm.py)
   Five channel cards feed one hub; packets ride every connector; a short
   journey (WhatsApp, call, email) lights its card, line and step in turn.
   A wide drawing for desktop and tablet, a tall one for phones.
   ========================================================================== */
.dgm--channels .dgm-ch { display: block; width: 100%; height: auto; overflow: visible; }
.dgm--channels .dgm-ch--tall { display: none; max-width: 440px; margin: 0 auto; }
@media (max-width: 640px) {
  .dgm--channels .dgm-ch--wide { display: none; }
  .dgm--channels .dgm-ch--tall { display: block; }
}
.dgm--channels .d-halo { opacity: 0; transition: opacity 1.2s var(--e-out); }
.dgm--channels.is-visible .d-halo { opacity: 1; }
.dgm--channels .d-orbit { transform-box: view-box; animation: dgm-orbit 22s linear infinite; }
.dgm--channels .d-orbit circle:first-child { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.2; stroke-dasharray: 2 7; }
.dgm--channels .d-orbit-dot { fill: var(--orange); }

.dgm--channels .d-track { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 9; stroke-linecap: round; }
.dgm--channels .d-link { stroke-width: 2; opacity: .5; transition: stroke-dashoffset 1.15s var(--e-out), opacity .4s, stroke-width .4s; }
.dgm--channels .d-flow { fill: none; stroke: #FFB067; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 12; opacity: 0; }
.dgm--channels.is-visible .d-flow { opacity: .7; transition: opacity .6s 1.1s; animation: dgm-flow 1.1s linear infinite; }
.dgm--channels .d-conn.is-hot .d-link { opacity: 1; stroke-width: 3.2; filter: drop-shadow(0 0 6px rgba(244,127,35,.85)); }
.dgm--channels .d-conn.is-hot .d-flow { stroke: #fff; opacity: .95; }

.dgm--channels .d-packet { fill: #fff; opacity: 0; }
.dgm--channels .d-packet-glow { fill: rgba(244,127,35,.5); }
.dgm--channels.is-visible .d-packet { opacity: .9; transition: opacity .5s 1.2s; }
.dgm--channels .d-packet.is-hot .d-packet-glow { fill: rgba(255,176,103,.85); }

.dgm--channels .d-ring { fill: none; stroke: var(--orange); stroke-width: 1.5; transform-box: view-box; opacity: 0; }
.dgm--channels.is-visible .d-ring { animation: dgm-ring 3.2s var(--e-out) infinite; animation-delay: calc(var(--i) * 1.6s); }
.dgm--channels .d-core { stroke: var(--orange); stroke-width: 2.2; }
.dgm--channels .d-core-in { fill: rgba(13,14,16,.32); stroke: rgba(255,176,103,.35); stroke-width: 1; }
.dgm--channels .d-agent { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dgm--channels .d-hub-label { font-size: 15px; letter-spacing: .14em; }
.dgm--channels .d-hub-sub { font-size: 13.5px; fill: rgba(255,255,255,.62); letter-spacing: .02em; }

.dgm--channels .d-node { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.16); stroke-width: 1.4; transition: fill .45s, stroke .45s; }
.dgm--channels .d-tile { fill: rgba(244,127,35,.14); stroke: rgba(244,127,35,.5); stroke-width: 1.2; transition: fill .45s, stroke .45s; }
.dgm--channels .d-icon { stroke: #fff; stroke-width: 1.7; }
.dgm--channels .d-card-label { text-anchor: start; font-size: 15px; letter-spacing: .12em; }
.dgm--channels .d-card-sub { text-anchor: start; font-size: 12.5px; fill: rgba(255,255,255,.55); }
.dgm--channels .d-card { transition: opacity .6s var(--e-out), transform .6s var(--e-out), filter .45s; }
.dgm--channels .d-card.is-on { filter: drop-shadow(0 0 16px rgba(244,127,35,.4)); }
.dgm--channels .d-card.is-on .d-node { fill: rgba(244,127,35,.12); stroke: var(--orange); }
.dgm--channels .d-card.is-on .d-tile { fill: var(--orange); stroke: var(--orange); }

@keyframes dgm-orbit { to { transform: rotate(360deg); } }
@keyframes dgm-flow  { to { stroke-dashoffset: -28; } }
@keyframes dgm-ring  { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.6); opacity: 0; } }

/* the journey under the drawing */
.dgm-journey {
  list-style: none; margin: clamp(1.25rem, 2.5vw, 1.9rem) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 0;
}
.dj-step {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: rgba(255,255,255,.55); transition: color .4s;
}
.dj-step + .dj-step::before {
  content: ''; width: clamp(1.4rem, 3vw, 2.6rem); height: 1px; margin: 0 .9rem;
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.35));
}
.dj-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(255,255,255,.3); font-size: .78rem; color: rgba(255,255,255,.75);
  transition: background .4s, border-color .4s, box-shadow .4s, color .4s;
}
.dj-step.is-on { color: #fff; }
.dj-step.is-on .dj-num { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 5px rgba(244,127,35,.2); }
.dj-step.is-done .dj-num { border-color: var(--orange); color: #FFB067; }
@media (max-width: 640px) {
  .dgm-journey { flex-direction: column; align-items: flex-start; width: max-content; max-width: 100%; margin-inline: auto; gap: .55rem; }
  .dj-step + .dj-step::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dgm--channels .d-orbit, .dgm--channels .d-ring, .dgm--channels .d-flow { animation: none !important; }
  .dgm--channels .d-packet { display: none; }
}
.dgm--channels .dgm-ch--tall .d-card-label { font-size: 13.5px; letter-spacing: .1em; }

/* ==========================================================================
   PART 30 — subject-aware header crops at every screen size
   Each header names its subject's position (style="--fx;--fy" on the media
   box), so whatever shape the box takes, the crop keeps the people or the
   place in frame.
   ========================================================================== */
.hero-media[style*="--fx"] img, .hero-media[style*="--fx"] .hero-video,
.hero-photo[style*="--fx"] img, .hero-photo[style*="--fx"] .hero-video {
  object-position: var(--fx) var(--fy) !important;
}

/* --- 30.1 phones and tablets: the footage stays behind the copy, visible ---
   Below 1100px the copy covers the whole header, so the wash is lighter than
   the desktop one and the type carries a soft halo instead, which keeps it
   readable over moving footage without hiding the people behind it. */
@media (max-width: 1099.98px) {
  .theme-day .hero:has(.hero-video) .hero-scrim,
  .theme-day .page-hero--feature .hero-photo:has(.hero-video)::after {
    background: linear-gradient(to bottom, rgba(255,255,255,.84) 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,.6) 100%);
  }
  .theme-day .hero:has(.hero-video) .hero-copy,
  .theme-day .page-hero--feature:has(.hero-video) .wrap {
    text-shadow: 0 0 2px rgba(255,255,255,.9), 0 0 16px rgba(255,255,255,.95), 0 0 28px rgba(255,255,255,.7);
  }
  .hero:has(.hero-video) .hero-scrim,
  .page-hero--feature .hero-photo:has(.hero-video)::after {
    background: linear-gradient(to bottom, rgba(13,14,16,.84) 0%, rgba(13,14,16,.7) 45%, rgba(13,14,16,.6) 100%);
  }
  .hero:has(.hero-video) .hero-copy,
  .page-hero--feature:has(.hero-video) .wrap {
    text-shadow: 0 0 2px rgba(13,14,16,.8), 0 0 18px rgba(13,14,16,.9);
  }
  .theme-day .hero:has(.hero-video) .btn, .hero:has(.hero-video) .btn,
  .page-hero--feature:has(.hero-video) .btn { text-shadow: none; }
}

/* ==========================================================================
   PART 31 — final changes: technology photo, entity badge, Excellence banner,
   South Africa advantages, grouped insights
   ========================================================================== */
.tech-card--photo { --pad: clamp(1.4rem, 2.4vw, 1.9rem); }
.tech-card--photo .tech-photo {
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0;
  aspect-ratio: 16 / 7; overflow: hidden; background: var(--sand);
}
.tech-card--photo .tech-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  transition: transform 1.2s var(--e-out); }
.tech-card--photo:hover .tech-photo img { transform: scale(1.04); }
.tech-card--photo .tech-ico { margin-top: -40px; position: relative; z-index: 1; }

.entity-badge {
  display: inline-flex; align-items: center; gap: .55rem; align-self: flex-start;
  margin-top: .35rem !important; padding: .4rem .75rem .4rem .45rem;
  border: 1px solid rgba(244,127,35,.32); border-radius: 999px;
  background: rgba(244,127,35,.06); font-size: .8rem !important; line-height: 1.3 !important;
}
.entity-badge strong { color: var(--ink-900); font-weight: 700; }
.entity-mark { display: block; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #FFB46B, #F47F23 60%, #D9641A); }
.entity-mark img { display: block; height: 26px; width: auto; }
.entity-mark:has(img) { width: auto; background: none; border-radius: 0; }
.section--dark .entity-badge strong { color: #fff; }
.theme-day .section--dark .entity-badge strong { color: var(--ink-900); }

/* --- 31.2 Why South Africa (replaces the four buyer questions) ------------ */
.sa-pillars {
  list-style: none; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem;
}
.sa-pillar {
  display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem;
  border-radius: 14px; border: 1px solid rgba(244,127,35,.35);
  background: linear-gradient(160deg, rgba(244,127,35,.12), rgba(244,127,35,.03));
}
.sa-pillar-k { font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-text, #F47F23); }
.sa-pillar-v { font-size: .9rem; line-height: 1.45; color: var(--tx-onDark); font-weight: 500; }
.sa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.sa-card { display: flex; flex-direction: column; gap: .65rem; padding: clamp(1.3rem, 2.2vw, 1.75rem);
  border-radius: 18px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.03);
  transition: border-color .4s, background .4s; }
.sa-card:hover { border-color: rgba(244,127,35,.35); background: rgba(255,255,255,.05); }
.sa-card--wide { grid-column: 1 / -1; }
.sa-card-top { display: flex; align-items: center; gap: .8rem; }
.sa-ico { width: 46px; height: 46px; flex: none; }
.sa-ico svg.gx { width: 100%; height: 100%; }
.sa-card:hover .gx { transform: rotateX(12deg) rotateY(-14deg) translateY(-2px) scale(1.06); }
.sa-card h3 { font-size: 1.02rem; color: var(--tx-onDark); margin: 0; line-height: 1.3; }
.sa-fig { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1; color: var(--tx-onDark); letter-spacing: -.02em; }
.sa-fig small { font-size: .5em; color: var(--orange); font-weight: 700; margin-left: .05em; }
.sa-card p { font-size: .9rem; line-height: 1.6; color: var(--tx-onDark-2); margin: 0; }
.sa-sources { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); font-size: .8rem; line-height: 1.6; color: var(--tx-onDark-3); }
.sa-sources a:not(.link-arrow) { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sa-sources .link-arrow { margin-left: .6rem; white-space: nowrap; }
.theme-day .sa-card { background: #fff; }
@media (max-width: 1099.98px) { .sa-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .sa-grid { grid-template-columns: 1fr; }
  .sa-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-pillars > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* --- 31.3 Excellence: the add-on to the slogan, as a running banner ------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }
.marquee--excellence {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem); padding-block: 1.05rem;
  border-block: 1px solid rgba(244,127,35,.32);
  background: linear-gradient(90deg, rgba(244,127,35,.06), rgba(244,127,35,.12), rgba(244,127,35,.06));
  --belt-speed: 38s;
}
.marquee--excellence .marquee-item,
.theme-day .marquee--excellence .marquee-item { color: var(--tx-onDark-2); font-size: clamp(.9rem, 1.4vw, 1.1rem); letter-spacing: .08em; }
.marquee--excellence .ex-word,
.theme-day .marquee--excellence .ex-word { color: var(--orange-text, #D9641A); font-weight: 800; letter-spacing: .14em; }
.marquee--excellence .ex-star { width: 1.05em; height: 1.05em; fill: currentColor; margin-right: .5rem; flex: none;
  animation: ex-twinkle 3.2s ease-in-out infinite; }
.marquee--excellence::before, .marquee--excellence::after { display: none; }
@media (prefers-reduced-motion: reduce) { .marquee--excellence .ex-star { animation: none; } }

/* --- 31.4 technology pulled through the BPO supporting engines ------------ */
.tl-tech {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .65rem;
  padding: .3rem .7rem .3rem .55rem; border-radius: 999px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: var(--orange-text, #D9641A); background: rgba(244,127,35,.08); border: 1px solid rgba(244,127,35,.28);
}
.tl-tech svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tl-item .link-arrow { display: inline-flex; margin-top: .6rem; }

/* --- 31.5 insights grouped by topic ---------------------------------------- */
.post-groups { display: grid; gap: clamp(2.5rem, 5vw, 3.75rem); }
.post-group-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .25rem 1rem;
  padding-bottom: .9rem; margin-bottom: clamp(1rem, 2vw, 1.5rem); border-bottom: 1px solid var(--line); }
.post-group-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0; }
.post-group-count { font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-text, #D9641A); }
.post-group-head p { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: var(--tx-muted); }
.post-group[hidden] { display: none; }

/* --- 31.6 ClicknCheck logo in the risk-card badge -------------------------- */
.entity-badge--logo {
  flex-direction: column; align-items: flex-start; gap: .5rem;
  padding: .75rem .9rem .8rem; border-radius: 14px;
}
.entity-badge--logo .entity-mark { width: auto; height: auto; border-radius: 0; background: none; }
.entity-badge--logo .entity-mark img { display: block; height: 30px; width: auto; }
.section--dark .entity-badge--logo .entity-mark { background: #fff; padding: .35rem .55rem; border-radius: 8px; }
.theme-day .section--dark .entity-badge--logo .entity-mark { background: none; padding: 0; }
