/* ==========================================================================
   Tandem Advisory — Design System
   Brand: Tandem Brand Guidelines 2026 (orange #D4350B, Arial / system sans,
   hexagons, right-edge brand strip, numbered eyebrows)
   ========================================================================== */

:root {
  /* Brand tokens */
  --orange: #D4350B;
  --orange-hover: #FF5224;
  --heading-orange: #E36C0A;
  --peach: #FF8D6E;
  --dark-red: #7A2008;
  --deep-red: #A52300;

  /* Neutrals */
  --ink: #1A1A1A;
  --ink-2: #333333;
  --muted: #555555;
  --gray: #8C8C8C;
  --line: #E6E1DC;
  --sand: #F7ECE6;
  --cream: #FAF6F2;
  --off-white: #F3F3F3;
  --white: #FFFFFF;

  /* Dark surfaces */
  --night: #121212;
  --night-2: #1C1C1C;
  --night-line: rgba(255, 255, 255, .1);
  --night-text: rgba(255, 255, 255, .72);

  /* Type */
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --fs-hero: clamp(2.5rem, 6.4vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 4vw, 3rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 10vw, 128px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 8px 24px rgba(26, 26, 26, .06);
  --shadow-lg: 0 2px 4px rgba(26, 26, 26, .04), 0 24px 48px rgba(26, 26, 26, .1);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* Right-edge brand strip — the signature Tandem motif */
.brand-strip {
  position: fixed; top: 0; right: 0; bottom: 0; width: 6px;
  background: var(--orange); z-index: 150; pointer-events: none;
}
@media (max-width: 640px) { .brand-strip { width: 4px; } }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--night); color: var(--white); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.eyebrow__num { font-variant-numeric: tabular-nums; }
.eyebrow__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.section--dark .eyebrow { color: var(--peach); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head h2 em { font-style: italic; color: var(--orange); }
.section--dark .section-head h2 em { color: var(--peach); }
.section-head p { margin-top: 18px; font-size: var(--fs-lead); color: var(--muted); max-width: 640px; }
.section--dark .section-head p { color: var(--night-text); }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; max-width: none; }
.section-head--split > div { max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .975rem; letter-spacing: -.005em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--orange); }
.btn--light:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--peach); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 6px; background: var(--orange);
  display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: 21px; line-height: 1;
  flex: none;
}
.logo__word { font-weight: 700; letter-spacing: .06em; font-size: .95rem; line-height: 1; }
.logo__word span { display: block; font-size: .62rem; letter-spacing: .32em; color: var(--muted); margin-top: 4px; }
.footer .logo__word span { color: var(--gray); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--ink-2);
  background: none; border: 0;
  transition: background .2s, color .2s;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--off-white); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--orange); }
.nav__link svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__item--has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: -12px; transform: translateY(8px);
  width: min(680px, 90vw); padding: 14px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__link { display: flex; gap: 14px; padding: 14px; border-radius: 10px; transition: background .15s; }
.mega__link:hover { background: var(--cream); }
.mega__icon {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--sand); color: var(--orange); clip-path: var(--hex);
}
.mega__icon svg { width: 20px; height: 20px; }
.mega__title { display: block; font-weight: 700; font-size: .95rem; }
.mega__desc { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.header__cta { display: none; }

.burger {
  width: 44px; height: 44px; border: 0; background: none; padding: 0; margin-right: -6px;
  display: grid; place-items: center; border-radius: 10px;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--white);
  padding: 8px var(--gutter) 120px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__group { border-bottom: 1px solid var(--line); padding-block: 8px; }
.drawer__label { display: flex; align-items: center; min-height: 52px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  font-size: 1.15rem; font-weight: 700;
}
.drawer__link--sub { font-size: 1rem; font-weight: 500; color: var(--muted); min-height: 44px; padding-left: 16px; border-left: 2px solid var(--sand); }
.drawer__link svg { width: 16px; height: 16px; color: var(--orange); }
.drawer__cta { margin-top: 28px; display: grid; gap: 12px; }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger, .drawer { display: none; }
}

/* ---------- Hero (dark, with orange split block — mirrors the profile cover) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(212, 53, 11, .16), transparent 60%),
    var(--night);
  color: var(--white);
  padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 120px);
}
/* Orange block: desktop only, full-bleed right with a diagonal edge and dark-red seam */
.hero__split { display: none; }
.hero__t {
  position: absolute; font-weight: 700; line-height: .8; color: var(--deep-red);
  pointer-events: none; user-select: none; letter-spacing: -.04em;
}
.hero__grid { display: grid; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--night-line); font-size: .84rem; font-weight: 600; color: var(--night-text);
  margin-bottom: 26px; transition: border-color .2s, color .2s;
}
.hero__badge:hover { border-color: rgba(255,255,255,.3); color: var(--white); }
.hero__badge b { background: var(--orange); color: var(--white); padding: 3px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--orange-hover); font-weight: 700; }
.hero__lead { margin-top: 24px; font-size: var(--fs-lead); color: var(--night-text); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2);
}
.chip::before { content: ""; width: 7px; height: 7px; background: var(--orange); clip-path: var(--hex); }
.section--dark .chip, .hero .chip { background: rgba(255,255,255,.04); border-color: var(--night-line); color: var(--night-text); }

/* Mobile/tablet: the art sits in its own orange panel */
.hero__art {
  position: relative; width: 100%; max-width: 560px; margin-inline: auto; overflow: hidden;
  background: var(--orange); border-radius: 20px; padding: clamp(20px, 6vw, 40px);
  border-top: 6px solid var(--dark-red);
}
.hero__t--mobile { right: -4%; bottom: -14%; font-size: clamp(260px, 80vw, 480px); }
.hero__art svg { position: relative; width: 100%; height: auto; overflow: visible; }
.hex-float { animation: float 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hex-float--2 { animation-delay: -2s; }
.hex-float--3 { animation-delay: -4s; }
.hex-float--4 { animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.flow-dash { stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }

.dots { position: absolute; display: grid; grid-template-columns: repeat(8, 8px); gap: 10px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--peach); opacity: .7; }
.hero .dots { left: var(--gutter); bottom: 28px; display: none; }

@media (min-width: 960px) {
  .hero { min-height: min(760px, calc(100vh - var(--header-h))); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .hero__split {
    display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 44%; z-index: 0;
    background: var(--orange); overflow: hidden;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero__split::before { /* dark-red top strip */
    content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--dark-red);
  }
  .hero__split .hero__t { right: -4%; bottom: -8%; font-size: min(52vw, 700px); opacity: .4; }
  .hero::before { /* thin dark-red seam along the diagonal edge */
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: calc(44% + 6px); z-index: 0;
    background: var(--dark-red); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero__art { background: none; border: 0; padding: 0; overflow: visible; max-width: 440px; justify-self: end; margin-right: -12px; }
  .hero__t--mobile { display: none; }
  .hero .dots { display: grid; }
}

/* ---------- Proof bar ---------- */
.proof { background: var(--night); color: var(--white); border-top: 1px solid var(--night-line); position: relative; z-index: 1; }
.proof__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.proof__item { padding: 28px 8px 28px 0; border-top: 1px solid var(--night-line); }
.proof__num { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof__num sup { font-size: .5em; color: var(--peach); vertical-align: super; margin-left: 2px; }
.proof__label { margin-top: 10px; font-size: .86rem; color: var(--night-text); line-height: 1.4; }
.proof__label b { display: block; color: var(--white); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
@media (min-width: 900px) {
  .proof__grid { grid-template-columns: repeat(4, 1fr); }
  .proof__item { border-top: 0; border-left: 1px solid var(--night-line); padding: 44px 28px; }
  .proof__item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Client marquee ---------- */
.clients { padding-block: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.clients__label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: clamp(40px, 6vw, 72px); width: max-content; animation: marquee 48s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; height: 56px; display: grid; place-items: center; }
.marquee__item img {
  max-height: 48px; max-width: 140px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s;
}
.marquee__item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  overflow: hidden;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__top { display: flex; justify-content: space-between; align-items: start; }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center; clip-path: var(--hex);
  background: var(--sand); color: var(--orange); transition: background .25s, color .25s;
}
.card__icon svg { width: 26px; height: 26px; }
a.card:hover .card__icon { background: var(--orange); color: var(--white); }
.card__num { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--gray); }
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--muted); font-size: .95rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.card__tags span { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--off-white); color: var(--ink-2); }
.card__more { margin-top: 4px; }

.card--feature { background: var(--orange); color: var(--white); border-color: var(--orange); }
.card--feature p { color: rgba(255,255,255,.85); }
.card--feature .card__icon { background: rgba(255,255,255,.16); color: var(--white); }
.card--feature .card__num { color: rgba(255,255,255,.7); }
.card--feature .card__tags span { background: rgba(255,255,255,.16); color: var(--white); }
a.card--feature:hover .card__icon { background: var(--white); color: var(--orange); }

.subcards { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .subcards { grid-template-columns: repeat(3, 1fr); } }
.subcard {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.subcard:hover { background: var(--sand); border-color: var(--peach); }
.subcard .card__icon { width: 48px; height: 48px; flex: none; background: var(--white); }
.subcard h3 { font-size: 1.05rem; }
.subcard p { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.subcard > svg { width: 18px; height: 18px; margin-left: auto; color: var(--orange); flex: none; }

/* ---------- Modernisation journey ---------- */
.journey { display: grid; gap: 32px; }
.journey > * { min-width: 0; }
@media (min-width: 980px) { .journey { grid-template-columns: 380px 1fr; gap: 56px; align-items: start; } }

.journey__steps { display: grid; gap: 8px; counter-reset: step; }
.journey__step {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--night-line); background: transparent; color: var(--night-text);
  transition: background .2s, border-color .2s, color .2s;
}
.journey__step:hover { background: rgba(255,255,255,.04); color: var(--white); }
.journey__step[aria-selected="true"] { background: rgba(212,53,11,.14); border-color: var(--orange); color: var(--white); }
.journey__step-num {
  width: 44px; height: 44px; display: grid; place-items: center; clip-path: var(--hex);
  background: rgba(255,255,255,.08); font-weight: 700; font-size: .85rem; color: var(--white);
}
.journey__step[aria-selected="true"] .journey__step-num { background: var(--orange); }

/* Phones & tablets: steps become a swipeable row so the panel stays in view */
@media (max-width: 979px) {
  .journey { gap: 16px; }
  .journey__steps {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }
  .journey__steps::-webkit-scrollbar { display: none; }
  .journey__step { flex: none; grid-template-columns: 32px auto; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; scroll-snap-align: start; }
  .journey__steps .journey__step-num { width: 32px; height: 32px; font-size: .74rem; }
  .journey__steps .journey__step-sub { display: none; }
}
.journey__step-title { font-weight: 700; font-size: 1rem; display: block; }
.journey__step-sub { font-size: .82rem; opacity: .8; display: block; }

.journey__panel {
  border: 1px solid var(--night-line); border-radius: var(--radius); background: var(--night-2);
  padding: clamp(20px, 3vw, 36px); min-height: 100%;
}
.journey__panel[hidden] { display: none; }
.journey__panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.journey__panel > p { margin-top: 12px; color: var(--night-text); max-width: 620px; }
.journey__diagram { margin: 28px 0; padding: 20px; border-radius: 12px; background: var(--night); border: 1px solid var(--night-line); overflow-x: auto; }
.journey__diagram svg { min-width: 520px; width: 100%; height: auto; }
.journey__cols { display: grid; gap: 20px; }
@media (min-width: 640px) { .journey__cols { grid-template-columns: 1fr 1fr; } }
.journey__cols h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); margin-bottom: 10px; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: .93rem; color: var(--night-text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--orange); clip-path: var(--hex);
}
.section:not(.section--dark) .ticks li { color: var(--ink-2); }

/* ---------- Case study ---------- */
.case { display: grid; gap: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--white); box-shadow: var(--shadow-lg); }
@media (min-width: 980px) { .case { grid-template-columns: 1fr 1.1fr; } }
.case__visual {
  position: relative; background: var(--night); color: var(--white); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow: hidden;
}
.case__tag { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); }
.case__visual h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 10px; }
.case__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
.case__stat { border-top: 2px solid var(--orange); padding-top: 12px; }
.case__stat b { display: block; font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -.03em; line-height: 1; }
.case__stat span { display: block; font-size: .78rem; color: var(--night-text); margin-top: 6px; line-height: 1.35; }
.case__watermark { position: absolute; right: -20px; bottom: -60px; font-size: clamp(200px, 30vw, 360px); font-weight: 700; line-height: 1; color: rgba(212,53,11,.12); pointer-events: none; }
.case__body { padding: clamp(28px, 4vw, 48px); display: grid; gap: 24px; }
.case__row h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.case__row p { color: var(--ink-2); }

.mini-cases { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 800px) { .mini-cases { grid-template-columns: repeat(3, 1fr); } }
.mini-case { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mini-case__tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.mini-case__tag i { font-style: normal; color: var(--gray); }
.mini-case h3 { font-size: 1.1rem; }
.mini-case p { font-size: .9rem; color: var(--muted); }

/* ---------- How we work ---------- */
.triad { display: grid; gap: 16px; }
@media (min-width: 900px) { .triad { grid-template-columns: repeat(3, 1fr); } }
.triad__item { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--cream); overflow: hidden; }
.triad__big { position: absolute; right: 16px; top: -6px; font-size: 120px; font-weight: 700; line-height: 1; color: var(--sand); letter-spacing: -.05em; pointer-events: none; }
.triad__item h3 { font-size: 1.6rem; position: relative; }
.triad__item h3 span { color: var(--orange); }
.triad__item > p { margin-top: 10px; color: var(--muted); position: relative; }
.triad__item .ticks { margin-top: 20px; position: relative; }

.shadow-model { margin-top: 24px; border-radius: var(--radius); background: var(--ink); color: var(--white); padding: clamp(24px, 4vw, 40px); }
.shadow-model__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: baseline; margin-bottom: 28px; }
.shadow-model__head h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.shadow-model__head p { color: var(--night-text); max-width: 520px; font-size: .95rem; }
.phases { display: grid; gap: 14px; }
@media (min-width: 760px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase__label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.phase__label span:last-child { color: var(--night-text); font-weight: 600; }
.phase__bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; display: flex; }
.phase__bar i { display: block; height: 100%; }
.phase__bar .t { background: var(--orange); }
.phase__bar .c { background: var(--peach); }
.phase p { margin-top: 10px; font-size: .86rem; color: var(--night-text); }
.legend { display: flex; gap: 18px; font-size: .8rem; color: var(--night-text); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }

/* ---------- Why Tandem ---------- */
.reasons { display: grid; gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reason { background: var(--night); padding: 32px 28px; transition: background .25s; }
.reason:hover { background: var(--night-2); }
.reason__num { font-size: .8rem; font-weight: 700; color: var(--peach); letter-spacing: .1em; }
.reason h3 { font-size: 1.15rem; margin-top: 14px; }
.reason p { margin-top: 8px; color: var(--night-text); font-size: .93rem; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .partners { grid-template-columns: repeat(6, 1fr); } }
.partner {
  padding: 22px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s var(--ease);
}
.partner:hover { border-color: var(--orange); transform: translateY(-2px); }
.partner__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.partner__tier { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.partner__use { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.partner--key { background: var(--cream); border-color: var(--sand); }

.awards { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 760px) { .awards { grid-template-columns: 1fr 1fr; } }
.award { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius); background: var(--sand); }
.award__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; clip-path: var(--hex); background: var(--orange); color: var(--white); }
.award__icon svg { width: 22px; height: 22px; }
.award div b { display: block; font-size: 1rem; }
.award div span { font-size: .86rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--orange); color: var(--white);
  padding-block: clamp(64px, 9vw, 112px);
}
.cta__t { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-size: clamp(320px, 50vw, 640px); font-weight: 700; line-height: .8; color: var(--deep-red); opacity: .45; pointer-events: none; user-select: none; }
.cta__seam { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--dark-red); }
.cta__inner { position: relative; display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1.3fr 1fr; } }
.cta h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); letter-spacing: -.035em; line-height: 1.02; }
.cta h2 em { font-style: italic; }
.cta p { margin-top: 18px; font-size: var(--fs-lead); color: rgba(255,255,255,.88); max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__contact { display: grid; gap: 6px; margin-top: 22px; font-size: .95rem; }
.cta__contact a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.cta__contact a:hover { text-decoration-color: var(--white); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--night-text); padding-block: 64px 28px; font-size: .92rem; }
.footer .logo { color: var(--white); }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__about p { margin-top: 18px; max-width: 340px; }
.footer h2 { color: var(--white); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--white); }
.footer address { font-style: normal; line-height: 1.7; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--night-line); }
.footer__social a:hover { background: var(--orange); border-color: var(--orange); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .82rem; color: var(--gray);
}

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 16px; bottom: 12px; z-index: 90;
  display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(140%); transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 44px; }
.sticky-cta .btn--outline-light { flex: 0 0 auto; padding-inline: 18px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__item[aria-hidden="true"] { display: none; }
}

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

/* Hero entrance — CSS-only so above-the-fold content never waits for JS */
.hero__copy > * { animation: heroIn .8s var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: .06s; }
.hero__copy > *:nth-child(3) { animation-delay: .12s; }
.hero__copy > *:nth-child(4) { animation-delay: .18s; }
.hero__copy > *:nth-child(5) { animation-delay: .24s; }
.hero__art { animation: heroIn 1s .15s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Industries strip ---------- */
.industries { background: var(--cream); padding-block: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.industries__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.industries__head h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.industries__list {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none;
}
.industries__list::-webkit-scrollbar { display: none; }
.industries__list > li { flex: 0 0 min(76vw, 280px); scroll-snap-align: start; display: flex; }
.industry {
  position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%;
  padding: 24px 22px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.industry:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }
.industry__icon {
  width: 46px; height: 46px; display: grid; place-items: center; clip-path: var(--hex);
  background: var(--sand); color: var(--orange); margin-bottom: 6px; transition: background .2s, color .2s;
}
.industry__icon svg { width: 22px; height: 22px; }
.industry:hover .industry__icon { background: var(--orange); color: var(--white); }
.industry__name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; padding-right: 20px; }
.industry__desc { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.industry__clients { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
.industry__arrow { position: absolute; top: 26px; right: 20px; width: 16px; height: 16px; color: var(--orange); transition: transform .2s var(--ease); }
.industry:hover .industry__arrow { transform: translateX(3px); }
@media (min-width: 1080px) {
  .industries__list { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
  .industries__list > li { flex: none; }
}
@media (min-width: 800px) { .mini-cases--2 { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   v2 — outcome-led homepage
   ========================================================================== */

/* Hero */
.hero__kicker { font-size: .95rem; font-weight: 700; letter-spacing: .01em; color: var(--night-text); margin-bottom: 18px; }
.hero__kicker em { color: var(--orange-hover); }
.hero--v2 h1 { font-size: clamp(2.3rem, 5.6vw, 4.25rem); }
.hero--v2 h1 em { display: block; }
.hero__secondary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; font-weight: 700; color: var(--white);
  text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 5px;
}
.hero__secondary:hover { text-decoration-color: var(--white); }
.hero__next {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; max-width: 520px;
  font-size: .9rem; color: var(--night-text); line-height: 1.5;
}
.hero__next svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--peach); }
.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.audience__label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-right: 4px; }
.audience a {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255,255,255,.04);
  font-size: .84rem; font-weight: 600; color: var(--white); transition: border-color .2s, background .2s;
}
.audience a:hover { border-color: var(--orange-hover); background: rgba(212,53,11,.18); }

/* Proof card in hero */
.hero--v2 .hero__art { display: grid; }
.proof-card {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px;
  background: var(--white); color: var(--ink); border-radius: 18px; padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 24px 60px rgba(60, 10, 0, .35); transition: transform .25s var(--ease);
}
.proof-card:hover { transform: translateY(-4px); }
.proof-card__tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.proof-card__title { font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.proof-card__rows { display: grid; gap: 10px; }
.proof-card__rows > span { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.proof-card__rows b { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); margin-bottom: 2px; }
.proof-card__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.proof-card__metrics > span { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.proof-card__metrics b { display: inline-block; font-size: 1.45rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 4px; }
.proof-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--orange); }
.proof-card__more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.proof-card:hover .proof-card__more svg { transform: translateX(4px); }
@media (min-width: 960px) {
  .hero--v2 .hero__art { max-width: 430px; }
}

/* Case cards (equal length) */
.cases { display: grid; gap: 16px; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.case-card__head { background: var(--night); color: var(--white); padding: 22px 24px; position: relative; overflow: hidden; }
.case-card__head::after { content: ""; position: absolute; right: -18px; top: -18px; width: 72px; height: 72px; background: var(--orange); clip-path: var(--hex); opacity: .9; }
.case-card__tag { display: flex; gap: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }
.case-card__tag i { font-style: normal; color: var(--night-text); }
.case-card__head h3 { margin-top: 10px; font-size: 1.2rem; line-height: 1.25; padding-right: 48px; }
.case-card__body { padding: 22px 24px 8px; display: grid; gap: 14px; flex: 1; align-content: start; }
.case-card__body p { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.case-card__body p b { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 3px; }
.case-card__results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.case-card__results li { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.case-card__results b { display: inline-block; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 4px; }
.case-card__link { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px 22px; font-weight: 700; font-size: .9rem; color: var(--orange); }
.case-card__link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.case-card__link:hover svg { transform: translateX(4px); }

/* Handover (Hybrid Shadowing in customer terms) */
.handover { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .handover { grid-template-columns: repeat(3, 1fr); } }
.handover__step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.handover__num { width: 40px; height: 40px; display: grid; place-items: center; clip-path: var(--hex); background: var(--orange); color: var(--white); font-weight: 700; margin-bottom: 6px; }
.handover__step h3 { font-size: 1.4rem; }
.handover__who { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.handover__step > p:not(.handover__who) { color: var(--muted); font-size: .95rem; }
.resp { margin-top: auto; padding-top: 14px; display: flex; height: 24px; }
.resp i { display: block; height: 10px; }
.resp__t { background: var(--orange); border-radius: 999px 0 0 999px; }
.resp__c { background: var(--peach); border-radius: 0 999px 999px 0; }
.resp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 18px; font-size: .82rem; color: var(--muted); }
.resp-legend span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.resp-legend span i { width: 12px; height: 8px; border-radius: 2px; }
.resp-legend em { flex-basis: 100%; font-style: normal; font-size: .8rem; color: var(--gray); }

/* Outcome-led service cards */
.svc__name { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-top: 4px; }
.card--feature .svc__name { color: rgba(255,255,255,.85); }
.svc h3 { font-size: 1.25rem; }

/* Partner line */
.trust-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.trust-line b { color: var(--ink); }

/* CTA next steps */
.next-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: ns; max-width: 560px; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 52px; font-size: .95rem; color: rgba(255,255,255,.85); line-height: 1.45; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center;
  clip-path: var(--hex); background: var(--white); color: var(--orange); font-weight: 700;
}
.next-steps b { display: block; color: var(--white); font-size: 1.02rem; }
.cta__side { display: grid; gap: 4px; justify-items: start; }
.proof-card__metrics b, .case-card__results b { display: block; width: fit-content; }

/* ==========================================================================
   Inner pages (services etc.)
   ========================================================================== */
.hero.page-hero { min-height: 0; padding-block: clamp(32px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.page-hero h1 em { display: inline; }

.crumbs { margin-bottom: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--night-text); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gray); }
.crumbs a { color: var(--night-text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--white); font-weight: 600; }

.glance .ticks li { color: var(--ink-2); font-size: .92rem; }
.glance { gap: 14px; }

.mega__link[aria-current="page"] { background: var(--sand); }
.drawer__link[aria-current="page"] { color: var(--orange); }

/* Problem cards */
.pains { display: grid; gap: 16px; }
@media (min-width: 860px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--orange); background: var(--white); }
.pain h3 { font-size: 1.15rem; }
.pain p { margin-top: 8px; color: var(--muted); font-size: .94rem; }

/* What we deliver */
.deliver { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 680px) { .deliver { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .deliver { grid-template-columns: repeat(3, 1fr); } }
.deliver__item { background: var(--white); padding: 28px 26px; }
.deliver__num { display: grid; place-items: center; width: 40px; height: 40px; clip-path: var(--hex); background: var(--sand); color: var(--orange); font-size: .8rem; font-weight: 700; margin-bottom: 16px; }
.deliver__item h3 { font-size: 1.1rem; }
.deliver__item p { margin-top: 8px; color: var(--muted); font-size: .93rem; }

/* How it works */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: st; position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--night-line); border-radius: 12px; font-size: .9rem; color: var(--night-text); line-height: 1.45; }
.steps li::before { content: counter(st); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; clip-path: var(--hex); background: var(--orange); color: var(--white); font-weight: 700; font-size: .85rem; }
.steps b { display: block; color: var(--white); font-size: 1rem; margin-bottom: 2px; }
.stack { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Proof split */
.proof-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .proof-split { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.proof-split__h { font-size: var(--fs-h2); }
.proof-split__h em { font-style: italic; color: var(--orange); }
.proof-split__p { margin: 18px 0 22px; font-size: var(--fs-lead); color: var(--muted); max-width: 560px; }

/* FAQ */
.faq-wrap .faq { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 700; font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--orange); font-size: 1.3rem; font-weight: 400; transition: transform .2s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 48px 22px 0; color: var(--muted); }

/* Related services */
.related__h { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 22px; }
.related { display: grid; gap: 14px; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related__card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.related__card:hover { border-color: var(--orange); transform: translateY(-2px); }
.related__title { font-weight: 700; font-size: 1.1rem; }
.related__card .link-arrow { margin-top: auto; font-size: .9rem; }
#how .journey__diagram svg { max-width: 860px; margin-inline: auto; }

/* ---------- Open Finance Malaysia ---------- */
.badge-new {
  display: inline-block; padding: 2px 8px; margin-right: 8px; border-radius: 999px;
  background: var(--orange); color: var(--white); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle;
}
.mega__title .badge-new { margin: 0 0 0 6px; }
.mega__link--new { background: var(--cream); }

.of-band { background: var(--night); color: var(--white); padding-block: clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.of-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: var(--orange); clip-path: var(--hex); opacity: .14; }
.of-band__inner { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .of-band__inner { grid-template-columns: 1.2fr .8fr; gap: 64px; } }
.of-band .eyebrow { color: var(--peach); }
.of-band h2 { font-size: var(--fs-h2); }
.of-band h2 em { color: var(--orange-hover); }
.of-band__lead { margin-top: 16px; font-size: var(--fs-lead); color: var(--night-text); max-width: 600px; }
.of-band .ticks { margin: 22px 0 28px; }
.of-band .ticks li { color: var(--night-text); }

.of-timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .of-timeline:not(.of-timeline--vertical) { grid-template-columns: repeat(4, 1fr); } }
.of-timeline li { position: relative; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-size: .9rem; color: var(--muted); }
.of-timeline b { display: block; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.of-timeline .is-now { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.of-timeline .is-now::after { content: "Now"; position: absolute; top: 14px; right: 14px; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: var(--white); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.of-timeline--vertical { margin: 0; }
.of-band .of-timeline li { background: rgba(255,255,255,.04); border-color: var(--night-line); color: var(--night-text); }
.of-band .of-timeline b { color: var(--white); }
.of-band .of-timeline .is-now { border-color: var(--orange); background: rgba(212,53,11,.16); }
.of-source { margin-top: 10px; font-size: .78rem; color: var(--gray); }

.related { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.proof-card .proof-card__more { margin-top: 2px; }
.glance__note { margin-top: -8px; font-size: .78rem; color: var(--gray); }

/* ==========================================================================
   Phase 3 pages
   ========================================================================== */
.page-hero--plain { padding-block: clamp(32px, 5vw, 64px); }
.page-hero--plain h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* Jump links (case studies, industries) */
.case-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.case-jump a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255,255,255,.04); font-size: .84rem; font-weight: 600; color: var(--white); }
.case-jump a:hover { border-color: var(--orange-hover); }

/* Next steps on a light card */
.next-steps--light { margin-top: 4px; }
.next-steps--light li { color: var(--muted); }
.next-steps--light li::before { background: var(--orange); color: var(--white); }
.next-steps--light b { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr .8fr; gap: 72px; } }
.contact__h { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact__p { margin: 10px 0 26px; color: var(--muted); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.form__field input, .form__field select, .form__field textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1px solid var(--gray-lt, #D9D9D9); border-radius: 10px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(212,53,11,.15); }
.form__field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; margin-top: 4px; }
.form__note { padding: 12px 14px; border-radius: 10px; background: var(--sand); font-size: .9rem; }
.form__privacy { font-size: .8rem; color: var(--gray); }
.form__privacy a, .form__note a, .prose a, .deliver__item a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.contact-info { display: grid; gap: 4px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.contact-info__block { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact-info__block:last-child { border-bottom: 0; }
.contact-info h2 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.contact-info a:not(.link-arrow) { font-weight: 700; font-size: 1.05rem; }
.contact-info span, .contact-info address { font-style: normal; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.contact-info .link-arrow { font-size: .9rem; margin-top: 6px; }

/* Case study detail */
.case-detail { display: grid; gap: 32px; }
@media (min-width: 960px) { .case-detail { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.case-detail__meta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.case-detail__tags { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-detail__tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; }
.case-detail__tags a:hover { border-color: var(--orange); color: var(--orange); }
.case-detail__body { display: grid; gap: 22px; align-content: start; }
.case-detail__row h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.case-detail__row p { color: var(--ink-2); }
.case-detail__stats { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.case-detail__stats li { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.case-detail__stats b { display: block; font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 4px; }
.case-detail__body .btn { justify-self: start; }

/* About: timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 1000px) { .timeline { grid-template-columns: repeat(5, 1fr); } }
.timeline li { position: relative; padding: 24px 22px; border-radius: var(--radius); background: var(--cream); border-top: 4px solid var(--orange); }
.timeline__year { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--orange); }
.timeline h3 { font-size: 1.15rem; margin-top: 8px; }
.timeline p { margin-top: 8px; font-size: .9rem; color: var(--muted); }

/* About: group */
.group { display: grid; gap: 16px; }
@media (min-width: 860px) { .group { grid-template-columns: repeat(3, 1fr); } }
.group__item { padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.group__item--lead { background: var(--orange); color: var(--white); border-color: var(--orange); }
.group__item--lead p { color: rgba(255,255,255,.85); }
.group__mono { display: grid; place-items: center; width: 52px; height: 52px; clip-path: var(--hex); background: var(--sand); color: var(--orange); font-weight: 700; margin-bottom: 16px; }
.group__item--lead .group__mono { background: var(--white); }
.group__item h3 { font-size: 1.2rem; }
.group__item p { margin-top: 6px; color: var(--muted); font-size: .94rem; }

/* About: STAR */
.star { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: star; }
@media (min-width: 700px) { .star { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .star { grid-template-columns: repeat(7, 1fr); } }
.star li { counter-increment: star; padding: 18px 16px; border-radius: 12px; border: 1px solid var(--line); font-size: .86rem; color: var(--muted); line-height: 1.4; }
.star li::before { content: counter(star, decimal-leading-zero); display: block; font-size: .72rem; font-weight: 700; color: var(--orange); letter-spacing: .1em; margin-bottom: 6px; }
.star b { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }

/* Industries */
.sector { display: grid; gap: 28px; }
@media (min-width: 960px) { .sector { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.sector__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.sector__head h2 em { font-style: italic; color: var(--orange); }
.sector__clients { margin-top: 16px; font-size: .86rem; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.sector__body .ticks li { font-size: 1rem; margin-bottom: 12px; }
.sector__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sector__links a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .84rem; font-weight: 600; color: var(--orange); }
.sector__links a:hover { border-color: var(--orange); }

/* Careers */
.roles { display: grid; gap: 16px; }
@media (min-width: 760px) { .roles { grid-template-columns: 1fr 1fr; } }
.role { padding: 26px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.role h3 { font-size: 1.2rem; }
.role p { color: var(--muted); font-size: .95rem; }
.role__tags { margin-top: auto; padding-top: 8px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.roles__cta { margin-top: 28px; }

/* Banking Suite phone */
.phone { width: min(280px, 80%); margin: 8px auto; padding: 12px; border-radius: 36px; background: var(--ink); box-shadow: 0 30px 60px rgba(60,10,0,.35); position: relative; z-index: 1; }
.phone__screen { color: var(--ink); border-radius: 26px; background: var(--white); padding: 22px 18px; display: flex; flex-direction: column; gap: 4px; min-height: 440px; }
.phone__brand { font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--orange); }
.phone__hello { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.phone__bal { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.phone__label { font-size: .72rem; color: var(--gray); }
.phone__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 12px; }
.phone__actions i { font-style: normal; font-size: .74rem; font-weight: 700; text-align: center; padding: 10px 6px; border-radius: 10px; background: var(--sand); color: var(--orange); }
.phone__row { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.phone__row b { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* Privacy prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-top: 10px; }

.glance .ticks li b { color: var(--ink); }

/* Banking Suite: feature groups & platform pillars */
.features { display: grid; gap: 16px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 28px 26px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.feature h3 { font-size: 1.2rem; margin-bottom: 14px; }
.feature .ticks li { font-size: .94rem; }
div.subcard:hover { background: var(--cream); border-color: var(--line); }
#platform .journey__diagram svg { max-width: 860px; margin-inline: auto; }
.pillars { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 22px 20px; border-radius: 12px; border: 1px solid var(--night-line); border-top: 3px solid var(--orange); background: rgba(255,255,255,.03); }
.pillar h3 { font-size: 1.05rem; color: var(--white); }
.pillar p { margin-top: 8px; font-size: .9rem; color: var(--night-text); }
@media (min-width: 1100px) { .star--5 { grid-template-columns: repeat(5, 1fr); } }
.onboard { display: grid; gap: 28px; margin-top: 32px; align-items: start; }
@media (min-width: 960px) { .onboard { grid-template-columns: 1.3fr .7fr; gap: 48px; } }
.onboard__list li { font-size: .98rem; margin-bottom: 12px; }
.onboard__list b { color: var(--ink); }
.onboard .proof-card { border: 1px solid var(--line); box-shadow: var(--shadow); }

/* About: markets */
.markets { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.markets li { padding: 16px 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.markets li b { display: block; font-size: 1rem; color: var(--ink); }
.markets li::before { content: ""; display: block; width: 10px; height: 10px; clip-path: var(--hex); background: var(--orange); margin-bottom: 10px; }
.markets .is-hq { border-color: var(--orange); }
.footer__bottom span:first-child { line-height: 1.6; }
.group .group__item--lead p { color: rgba(255,255,255,.88); }
@media (min-width: 1080px) { .group--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 680px) and (max-width: 1079px) { .group--4 { grid-template-columns: repeat(2, 1fr); } }

/* About: presence map — dot-matrix, digital style */
.presence {
  position: relative; overflow: hidden; margin: 32px 0 0; padding: clamp(16px, 3vw, 36px);
  border-radius: calc(var(--radius) + 4px); border: 1px solid #262626;
  background:
    radial-gradient(600px 360px at 45% 52%, rgba(212, 53, 11, .22), transparent 70%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 82, 36, .08), transparent 60%),
    var(--night);
}
.presence::before { /* faint scan grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
}
.presence-map { position: relative; width: 100%; height: auto; display: block; }
.pm__land { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 4.2; stroke-linecap: round; }
.pm__arc { fill: none; stroke: var(--orange-hover); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 9; opacity: .85; animation: pmFlow 2.2s linear infinite; filter: drop-shadow(0 0 3px rgba(255, 82, 36, .8)); }
@keyframes pmFlow { to { stroke-dashoffset: -30; } }
.pm__line { stroke: rgba(255, 255, 255, .28); stroke-width: 1; fill: none; }
.pm__dot { fill: var(--orange-hover); stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(255, 82, 36, .95)); }
.pm__mark--hq .pm__dot { fill: #fff; stroke: var(--orange-hover); stroke-width: 3; }
.pm__pulse { fill: none; stroke: var(--orange-hover); stroke-width: 1.5; opacity: 0; animation: pmPulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pmPulse { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.pm__name { font-size: 16px; font-weight: 700; fill: #fff; letter-spacing: .01em; }
.pm__sub { font-size: 11.5px; font-weight: 700; fill: var(--peach); letter-spacing: .14em; text-transform: uppercase; }
.pm__mark--hq .pm__name { font-size: 19px; }
.presence__list { position: relative; display: none; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.presence__list span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid #2c2c2c; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.8); }
.presence__list .is-hq { background: var(--orange); border-color: var(--orange); color: var(--white); }
@media (max-width: 760px) {
  .pm__name, .pm__sub, .pm__line { display: none; }
  .presence__list { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .pm__arc, .pm__pulse { animation: none; } }


/* Stacked proof cards (Banking Suite proof) */
.proof-stack { display: grid; gap: 18px; }

/* Open Finance: latest status from PayNet */
.of-latest { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.of-latest__h { font-size: 1.2rem; }
.of-latest__p { margin-top: 8px; color: var(--muted); max-width: 640px; }
.of-source a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Phase 4: accessibility (WCAG AA contrast, tap targets) ---------- */
:root { --gray-text: #6B6B6B; --orange-text: #C2300A; }
.clients__label, .card__num, .mini-case__tag i, .proof-card__rows b, .resp-legend em,
.of-source, .glance__note, .form__privacy, .phone__label { color: var(--gray-text); }
.audience__label { color: rgba(255,255,255,.62); }
.footer__bottom, .footer .logo__word span { color: rgba(255,255,255,.6); }
.card--feature p, .card--feature .svc__name, .card--feature .card__num, .next-steps li { color: var(--white); }
.next-steps--light li { color: var(--muted); }
/* small orange text on tinted backgrounds */
.section--sand .eyebrow, .section--sand .eyebrow__num, .section--sand .link-arrow,
.deliver__num, .group__mono, .case-detail__row h3 { color: var(--orange-text); }
/* comfortable tap targets for inline links on phones */
@media (max-width: 760px) {
  .footer address a, .footer__bottom a, .footer li a { display: inline-block; padding-block: 4px; }
  .link-arrow { min-height: 24px; padding-block: 2px; }
  .contact-card a, .map-link { display: inline-block; padding-block: 3px; }
}
.group .group__item--lead p { color: var(--white); }
.section--dark .of-source, .of-band .of-source { color: rgba(255,255,255,.62); }
@media (max-width: 760px) { .proof-card__more { display: inline-block; padding-block: 3px; } }
