@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/libre-franklin-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/libre-franklin-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/libre-franklin-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/libre-franklin-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/libre-franklin-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/libre-franklin-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/libre-franklin-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/libre-franklin-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/libre-franklin-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/libre-franklin-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/libre-franklin-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/libre-franklin-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/libre-franklin-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/libre-franklin-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/libre-franklin-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-sans-3-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-sans-3-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-sans-3-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-sans-3-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-sans-3-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-sans-3-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-sans-3-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-sans-3-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-sans-3-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-sans-3-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Confiance Group — Home (Figma: Home · Desktop 1440 v6.1) */

:root {
  /* colour tokens (Figma variables) */
  --bg-base: #ffffff;
  --bg-deep: #0c5648;
  --bg-soft: #bfe3d6;
  --bg-accent: #13ab8d;
  --bg-ink: #08312a;
  --bg-mission: #03382e;
  --text-body: #08312a;
  --text-on-dark: #ffffff;
  --text-on-soft: #08312a;
  --text-link: #0c5648;
  --text-heading: #0c5648;
  --text-accent-on-dark: #13ab8d;
  --icon-accent: #13ab8d;
  --border-subtle: #e7eeed;
  --divider: #c2d5d1;
  --text-muted: #4f8a78;
  --bg-mist: #f0f5f3;

  --font-display: "Libre Franklin", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --frame: 1440px;
  /* extra side space on screens wider than the frame: backgrounds run full width, content stays within 1440 */
  --edge: max(0px, (100% - var(--frame)) / 2);
  --gutter: 80px;
}

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

/* Reserve the scrollbar's space so hiding it (modal/menu scroll lock) doesn't shift the page */
html { scroll-behavior: smooth; scrollbar-gutter: stable; transition: background-color 0.3s ease; } /* gutter tint for menu/modal locks */
/* Lenis smooth scrolling (js/smooth-scroll.js) takes over from the browser's */
html.lenis, html.lenis body { height: auto; }
/* Lenis does the smoothing, so the browser's own smooth scroll must be off: otherwise
   ScrollTrigger's instant measuring jumps become slow glides and it measures the
   wrong positions */
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- type styles ---------- */

.t-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -1.28px;
}
.t-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.3;
  letter-spacing: -0.69px;
}
.t-subheading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.13px;
}
.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
}
.t-small {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
}
.t-caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
}
.t-label {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ---------- tags & buttons ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-on-soft);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-alt {
  background: #f0f5f3;
  color: var(--text-heading);
}
.tag-accent {
  background: var(--bg-accent);
  color: var(--text-on-dark);
}
.tag-deep {
  background: var(--bg-deep);
  color: var(--text-on-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 17px;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn img { width: 24px; height: 24px; transition: transform 0.2s ease, filter 0.2s ease; }
.btn:hover img { transform: translateX(3px); }

.btn-light {
  background: #ffffff;
  color: var(--bg-ink);
  border: 1.5px solid transparent;
}

.btn-outline-light {
  border: 1.5px solid #ffffff;
  color: #ffffff;
}

.btn-outline-accent {
  border: 1.5px solid var(--bg-deep);
  color: var(--bg-deep);
}

.btn-deep {
  background: var(--bg-deep);
  color: #ffffff;
  border: 1.5px solid transparent;
}
.btn-deep:hover { background: var(--bg-ink); }

.btn-outline-ink {
  border: 1.5px solid var(--bg-ink);
  color: var(--bg-ink);
}

.btn-accent {
  justify-content: center;
  height: 47px;
  background: var(--bg-accent);
  color: var(--text-on-dark);
  border: 1.5px solid transparent;
}
.btn-accent:hover { background: var(--bg-deep); }

/* ---------- button hover states (every page) ----------
   solid white   → soft mint fill (#bfe3d6), text unchanged
   outline white → white fill, green text
   outline green → green fill, white text
   Arrow icons are recoloured to match the new text colour. */
:root {
  --icon-to-white: brightness(0) invert(1);
  --icon-to-green: brightness(0) saturate(100%) invert(24%) sepia(43%) saturate(1003%) hue-rotate(129deg) brightness(93%) contrast(92%); /* #0c5648 */
}
.btn-light:hover { background: var(--bg-soft); border-color: var(--bg-soft); } /* #bfe3d6 */
.btn-outline-light:hover { background: #ffffff; border-color: #ffffff; color: var(--bg-deep); }
.btn-outline-light:hover img { filter: var(--icon-to-green); }
.btn-outline-accent:hover,
.btn-outline-ink:hover { background: var(--bg-deep); border-color: var(--bg-deep); color: #ffffff; }
.btn-outline-accent:hover img,
.btn-outline-ink:hover img { filter: var(--icon-to-white); }

.btn:focus-visible,
.solution:focus-visible,
a:focus-visible {
  outline: 2px solid var(--bg-accent);
  outline-offset: 3px;
}

.btn-row { display: flex; gap: 16px; align-items: stretch; }

/* ---------- header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  width: 100%;
  /* full width with the frame expressed as padding, same as the floating bar, so
     only the vertical padding animates when it switches back */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(60px, calc((100% - var(--frame)) / 2 + 60px));
}
/* Scroll behaviour (js/header.js), modelled on schyns.de:
   - at the top: transparent over the hero, large logo
   - scrolling down: slides out of view
   - scrolling up: slides back as a compact, very light frosted bar
   - over light sections (.on-light) the logo, links and button switch to deep green;
     over dark sections they stay white */
.site-header {
  /* schyns.de: every state change eases over 0.3s on the Material "standard" curve */
  transition: translate 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1), -webkit-backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-floating {
  position: fixed;
  max-width: none;
  padding: 10px max(60px, calc((100% - var(--frame)) / 2 + 60px));
  background: rgba(244, 247, 245, 0.2);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  translate: -50% -110%;
  transition-delay: 0.3s; /* hiding waits a beat, like the reference */
}
.site-header.is-floating.is-shown { translate: -50% 0; transition-delay: 0s; }
/* .no-anim: instant change while docking the bar off-screen (never seen) */
.site-header.no-anim, .site-header.no-anim *, .site-header.no-anim *::after { transition: none !important; }

.site-header .site-nav,
.site-header .btn-outline-light { transition: color 0.3s ease, border-color 0.3s ease, background-color 0.2s ease; }
.site-header.on-light .site-nav,
.site-header.on-light .btn-outline-light { color: #0c5648; border-color: #0c5648; }
.site-header.on-light .btn-outline-light:hover { background: var(--bg-deep); border-color: var(--bg-deep); color: #ffffff; }
.site-header.on-light .btn-outline-light:hover img { filter: var(--icon-to-white); }
.site-header.on-light .nav-has-menu img,
.site-header.on-light .btn-outline-light img {
  /* white arrows → #0c5648 */
  filter: brightness(0) saturate(100%) invert(24%) sepia(43%) saturate(1003%) hue-rotate(129deg) brightness(93%) contrast(92%);
}
/* logo: same artwork, white lettering swapped for deep green over light sections */
.logo { position: relative; display: block; }
.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/shared/logo-header-green.svg") 0 50% / contain no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.logo img { transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease; }
.site-header.on-light .logo::after { opacity: 1; }
/* light hero (Contact): at the top, "Talk to an expert" is a filled green button */
.page-light-hero .site-header.on-light:not(.is-floating) .btn-outline-light { background: var(--bg-accent); border-color: var(--bg-accent); color: #ffffff; }
.page-light-hero .site-header.on-light:not(.is-floating) .btn-outline-light img { filter: none; }
.page-light-hero .site-header.on-light:not(.is-floating) .btn-outline-light:hover { background: var(--bg-deep); border-color: var(--bg-deep); }
.site-header.on-light .logo img { opacity: 0; }

/* logo: large on landing, compact in the floating bar */
.logo img { width: 290px; height: 78.83px; }
.site-header.is-floating .logo img { width: 190px; height: 51.65px; }

.site-nav {
  margin-left: auto; /* menu sits on the right, next to the button */
  margin-right: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.nav-has-menu { display: inline-flex; align-items: center; gap: 4px; }

/* menu items: on hover an accent line draws in from left to right, and slides out
   to the right on the way off; the current page keeps its line */
.site-nav > a,
.nav-has-menu { position: relative; }
.site-nav > a::after,
.nav-has-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px; /* whole pixels: 1.5px rendered as 1px or 2px depending on where the bar sat, so it looked thinner while scrolling */
  background: var(--bg-accent);
  scale: 0 1;
  transform-origin: 100% 50%;
  transition: scale 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.site-nav > a:hover::after,
.site-nav > a:focus-visible::after,
.nav-menu:hover .nav-has-menu::after,
.nav-menu:focus-within .nav-has-menu::after,
.site-nav a.is-current::after {
  scale: 1 1;
  transform-origin: 0% 50%;
}

/* Solutions menu: opens on hover or keyboard focus */
.nav-menu { position: relative; }
.nav-has-menu img { transition: rotate 0.2s ease; }
.nav-menu:hover .nav-has-menu img,
.nav-menu:focus-within .nav-has-menu img { rotate: 180deg; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  display: flex;
  flex-direction: column;
  min-width: 232px;
  margin-top: 12px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(8, 49, 42, 0.18);
  color: var(--text-body);
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: opacity 0.2s ease, translate 0.2s ease, visibility 0s linear 0.2s;
}
.nav-dropdown::before { /* bridges the gap so the menu stays open on the way down */
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}
.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition-delay: 0s;
}
.site-nav .nav-dropdown a { padding: 10px 12px; border-radius: 8px; transition: background-color 0.2s ease; }
.site-nav .nav-dropdown a:hover { opacity: 1; background: var(--bg-mist); }
.nav-dropdown a[aria-current] { color: var(--text-heading); font-weight: 500; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 880px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 163px calc(var(--gutter) + var(--edge)) 80px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-ink);
}
/* stand-in for the banner video: a slow push-in with a slight drift */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  z-index: -2;
  background: url("../img/shared/hero.jpg") center / cover no-repeat;
  transform-origin: 60% 45%;
  animation: hero-push 15s ease-in-out infinite alternate;
  will-change: transform;
}
/* Optimised hero photos: the page sets --hero-bg[-2x] / --hero-bg-mobile[-2x] (each a url())
   inline on the hero; without them the url() rules above and below still apply. js/main.js
   preloads the same candidate (data-hero-src*), 2x when devicePixelRatio > 1. */
.hero[style*="--hero-bg"]::before { background-image: image-set(var(--hero-bg) 1x, var(--hero-bg-2x, var(--hero-bg)) 2x); }
@media (max-width: 640px) {
  html body .hero[style*="--hero-bg-mobile"]::before { background-image: image-set(var(--hero-bg-mobile) 1x, var(--hero-bg-mobile-2x, var(--hero-bg-mobile)) 2x); }
}
.hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 85, 71, 0.4) 0%, rgba(11, 85, 71, 0) 25.511%), /* keeps the nav legible */
    linear-gradient(180deg, rgba(6, 74, 61, 0) 50%, rgb(6, 74, 61) 100%);
}
@keyframes hero-push {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  color: var(--text-on-dark);
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 15px;
  white-space: nowrap;
}
.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
}
.hero-aside > p { width: min-content; min-width: 100%; }

/* ---------- mission ---------- */

.mission {
  position: relative;
  isolation: isolate;
  overflow: clip; /* clip, not hidden: keeps the help panel's sticky pin working */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 150px calc(var(--gutter) + var(--edge)) 0;
  background: var(--bg-mission);
  color: var(--text-on-dark);
}
.mission::before,
.mission::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.mission::before {
  left: -1.17%;
  top: -1px;
  width: 120.62%;
  height: 1234px; /* 57.33% of the 2152px mockup section, fixed so the pinned help panel's extra scroll height doesn't stretch it */
  background: url("../img/shared/mission-bg.webp") 0 0 / 100% 100% no-repeat;
}
.mission::after {
  inset: 0;
  background:
    linear-gradient(183.97deg, rgba(12, 86, 72, 0) 810px, rgb(12, 86, 72) 1175px),
    linear-gradient(180deg, rgb(6, 74, 61) 138px, rgba(6, 74, 61, 0) 566px);
}

.mission-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 980px;
  max-width: 100%;
}

.stats {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 calc(250px + var(--edge));
  background: #064a3d;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stats > div:first-child { gap: 5px; }
.stats dd { opacity: 0.7; }

.mission-statement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 900px;
  max-width: 100%;
}
.mission-statement h2 {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.mission-statement p {
  width: 682px; /* 620px + 10% */
  max-width: 100%;
  margin-top: -2px; /* keeps the 28px auto-layout gap between heading lines and copy */
  text-align: center;
}

.mission-divider {
  height: 399px;
  width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mission-divider img {
  width: 399px;
  height: 5px;
  flex: none;
  rotate: 90deg;
}

.mission-simplify {
  width: 100%;
  text-align: center;
}

/* How we can help: a full-bleed panel — photo flush to the left edge, copy on the right.
   On wide screens it pins to the full viewport and steps through the solutions;
   the photo starts shorter and grows to full height as the panel locks in (js/main.js). */
.help-track {
  /* on screens wider than the frame the photo keeps running to the left edge of the
     window; the copy on the right stays lined up with the 1440 content */
  --bleed: max(0px, (100cqw - var(--frame)) / 2);
  width: calc(100% + 2 * var(--gutter) + var(--bleed));
  margin: 40px calc(-1 * var(--gutter)) 0 calc(-1 * (var(--gutter) + var(--bleed))); /* 80px section gap + 40 = the mockup's 120 */
}
.help {
  display: flex;
  align-items: stretch;
  gap: 80px;
  height: 869px;
}
.help-photos {
  position: relative;
  flex: 0 0 calc(var(--bleed) + (100% - var(--bleed)) * 0.486); /* 700px of 1440, plus the bleed */
  overflow: hidden;
}
.help-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.04;
  transition: opacity 0.6s ease, scale 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.help-photo-corporate { object-position: 52% 50%; }
/* cropped until the panel pins, then js/main.js opens it to full height */
.help-grow .help-photos { clip-path: inset(14% 0% 14% 0%); }
.help-photo.is-active { opacity: 1; scale: 1; }

/* each description opens under its own solution heading */
.solution-desc {
  max-width: 460px;
  max-height: 0;
  margin-left: 36px;
  overflow: hidden;
  color: var(--text-on-dark);
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.5s ease, margin-top 0.5s ease, opacity 0.3s ease, visibility 0s 0.5s;
}
.solution-desc.is-active {
  max-height: 160px;
  margin-top: 12px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.5s ease, margin-top 0.5s ease, opacity 0.5s ease 0.15s, visibility 0s;
}

/* pinned: grow stretch (photo opens to full height), then one step per solution */
.help-track.is-scrolly {
  --grow: 0vh; /* photo growth is time-based now (js/main.js), so no extra scroll */
  height: calc(100vh + var(--grow) + (var(--count) - 1) * 35vh); /* 35vh per solution keeps the pinned stretch short */
}
.help-track.is-scrolly .help {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
}

.help-body {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 100px var(--gutter) 150px 0;
}
.help-label { display: flex; padding-left: 36px; }
.help-main {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.solutions {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.solution {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-on-dark);
  opacity: 0.6;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.solution img {
  width: 24px;
  height: 24px;
  opacity: 0;
  translate: -6px 0;
  transition: opacity 0.2s ease, translate 0.2s ease;
}
.solution:hover { opacity: 0.85; }
.solution.is-active { opacity: 1; }
.solution.is-active img { opacity: 1; translate: 0 0; }
/* the active solution grows to 36px; the size change animates with the switch */
.solution .t-subheading { transition: font-size 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.solution.is-active .t-subheading { font-size: 36px; letter-spacing: -0.36px; }

.help-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 45px;
  padding: 0 36px;
}

/* ---------- journey ---------- */

.journey {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 100px calc(var(--gutter) + var(--edge));
  background: var(--bg-base);
  /* no overflow clipping here: it would break the sticky stage */
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  max-width: 100%;
}
.section-head h2 { color: var(--text-heading); white-space: nowrap; }
.section-head p { width: 588px; max-width: 100%; margin-top: -6px; color: var(--text-body); }

.journey-track { width: 100%; }

/* default (no JS, narrow screens, reduced motion): a plain stacked list */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.step {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 1171px;
  max-width: 100%;
  height: 480px;
  padding: 48px 80px;
  border-radius: 16px;
  background: var(--bg-ink);
}
.step-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(8, 49, 42, 0.8) 5.722%, rgba(8, 49, 42, 0) 49.957%);
}
.step-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #ffffff;
  white-space: nowrap;
}
.step-num {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* scrollytelling: the stage pins while each card slides over the last.
   The front card is 1171×573; the one behind shrinks to 1068 wide at 50%
   opacity and peeks 195px above it, as in the mockup. */
.journey.is-scrolly {
  --peek: min(195px, 22vh);
  --card-h: min(573px, calc(100vh - var(--peek) - 64px));
  --stage-h: calc(var(--peek) + var(--card-h));
  --step-scroll: 75vh;
  padding-bottom: 60px;
}
/* The peek slot is empty until card 02 arrives, so the stage tucks up under the
   heading by that much; the same distance is added as lead-in scroll so the
   heading has cleared the stage before the first card moves into the peek. */
.is-scrolly .journey-track {
  position: relative;
  margin-top: calc(-1 * var(--peek));
  height: calc(var(--stage-h) + var(--peek) + (var(--count) - 1) * var(--step-scroll));
}
.is-scrolly .journey-pin {
  position: sticky;
  top: calc((100vh - var(--stage-h)) / 2);
  height: var(--stage-h);
}
.is-scrolly .steps {
  position: relative;
  display: block;
  height: 100%;
  overflow: clip;
}
.is-scrolly .step {
  position: absolute;
  top: 0;
  left: 50%;
  height: var(--card-h);
  margin-left: calc(min(1171px, 100%) / -2);
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

/* ---------- mission → journey overlap (js/main.js) ----------
   The mission holds once its bottom reaches the viewport bottom (sticky top is
   set in JS from its height) and the journey scrolls up over it like a sheet.
   The wrapper ends the effect with the journey, so the mission leaves with it. */
/* lets the help panel measure the full page width in cqw (the mission section itself is padded) */
.overlap-pair { container-type: inline-size; }
.overlap-pair.is-overlap .overlap-under {
  position: sticky;
  transform-origin: 50% 100%;
}
.overlap-pair.is-overlap .overlap-over {
  position: relative;
  z-index: 1;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.25);
}
/* sections that paint edge-to-edge backgrounds get clipped to the rounded top
   (clip, not hidden, so the sticky stage inside keeps pinning) */
.overlap-pair.is-overlap .overlap-over.mvv { overflow: clip; }
.mission-dim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000000;
  opacity: 0;
  pointer-events: none;
}

/* ---------- regional presence ---------- */

.presence {
  position: relative;
  isolation: isolate;
  height: 2055px;
  overflow: hidden;
  background: var(--bg-ink);
  color: var(--text-on-dark);
}
.presence::before,
.presence::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.presence::before {
  left: -10.41%;
  top: 7.93%;
  width: 122.33%;
  height: 94.29%;
  background: url("../img/shared/texture.webp") 0 0 / 100% 100% no-repeat;
  opacity: 0.9;
}
.presence::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 49, 42, 0) 68.392%, rgb(8, 49, 42) 100%),
    linear-gradient(180deg, rgb(8, 49, 42) 11.371%, rgb(8, 49, 42) 47.191%, rgba(8, 49, 42, 0) 72.852%);
}

/* the map and pins are placed on the 1440 artboard, so they live in a fixed stage */
.presence-stage {
  position: relative;
  width: var(--frame);
  height: 100%;
  left: 50%;
  translate: -50% 0;
  padding: 130px 287px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.presence-map {
  position: absolute;
  left: -638.76px;
  top: -630px;
  width: 2416.007px;
  height: 1920.015px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Wider than the 1440 frame, the map fades out from the frame edges to the window
     edges, so its artwork never ends in a visible line or leaves a bare strip.
     --map-edge is the extra width on each side; 638.76px is where the frame starts
     inside the map box, 2078.76px where it ends, 2416px the end of the artwork. */
  --map-edge: max(0px, (100vw - var(--frame)) / 2);
  --map-fade: linear-gradient(90deg,
    transparent max(0px, calc(638.76px - var(--map-edge))),
    #000 638.76px,
    #000 2078.76px,
    transparent min(2416px, calc(2078.76px + var(--map-edge))));
  -webkit-mask-image: var(--map-fade);
  mask-image: var(--map-fade);
}
.presence-map img {
  flex: none;
  width: 2328.761px;
  height: 1806.025px;
  rotate: 2.86deg;
  scale: 1 -1;
}

.presence-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 865px;
  text-align: center;
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
}
.pin-line { position: absolute; }
.pin-line.is-flipped { scale: -1 1; }
.pin-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  animation: pin-pulse 2.4s ease-in-out infinite;
}
.pin-label {
  position: absolute;
  top: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-base);
  color: var(--text-on-soft);
  white-space: nowrap;
}
@keyframes pin-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.12; }
}

.why {
  position: absolute;
  top: 1435px;
  left: 50%;
  translate: -50% 0;
  width: 1204px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.why-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  white-space: nowrap;
}
.why-grid {
  display: grid;
  grid-template-columns: 380px 380px;
  grid-auto-flow: row;
  column-gap: 80px;
  row-gap: 40px;
  justify-content: end;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.why-item img { width: 24px; height: 24px; flex-shrink: 0; }
.why-item div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: normal;
  white-space: nowrap;
}

/* ---------- client stories ---------- */

.stories {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: var(--gutter) calc(var(--gutter) + var(--edge));
  background: var(--bg-base);
}
.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.row-head h2 { color: var(--text-heading); white-space: nowrap; }

/* text-only button (no outline), e.g. "More stories" */
.btn-text { padding-left: 0; padding-right: 0; color: var(--text-link); }
.btn-text:hover { text-decoration: underline; text-underline-offset: 4px; }

.story-grid {
  display: flex;
  gap: 40px;
}
.story {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}
.story-photo {
  width: 100%;
  aspect-ratio: 600 / 450;
  object-fit: cover;
  border-radius: 16px;
  transition: filter 0.3s ease;
}
.story-photo-2 { object-position: 50% 43%; }
.story-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 8px;
  background: var(--bg-base);
}
.story-meta { display: flex; flex-direction: column; gap: 8px; }
.story-client { font-weight: 600; font-size: 17px; line-height: 1.6; color: var(--bg-accent); } /* #13ab8d */
.story-body h3 { color: var(--text-link); }

/* ---------- china desk ---------- */

.china {
  position: relative;
  isolation: isolate;
  height: 946px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 218px 24px;
  background: #000000;
  color: var(--text-on-dark);
}
/* photo, black fade and texture live in one layer so the zoom reveal can
   clip and scale them together */
.china-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  will-change: clip-path;
}
.china-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.china-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000000 10.864%, rgba(0, 0, 0, 0) 136.07%);
}
.china-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/shared/texture.webp") center / cover no-repeat;
  opacity: 0.2;
}
.china-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;
  width: 480px;
  max-width: 100%;
  text-align: center;
}

/* zoom reveal (GSAP, js/main.js): the section fills the viewport and starts as
   a framed photo on the page background */
.china.is-zoom {
  height: 100vh;
  min-height: 640px;
  padding-block: 0;
  background: var(--bg-base);
}

/* ---------- insights ---------- */

.insights {
  padding: 100px calc(58px + var(--edge));
  background: var(--bg-mist);
}
.insights-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 40px;
}
.insights-inner > h2 { color: var(--text-heading); white-space: nowrap; }
.insights-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 516px;
}
.insight {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.insight time { color: var(--text-on-soft); }
.insight h3 { color: var(--text-heading); }
.insight:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.insight-divider { width: 516px; height: 1px; max-width: 100%; }
.insights-list > .btn { margin-top: 40px; } /* 24px list gap + 40 = the mockup's 64 */

/* ---------- actions ---------- */

.actions {
  padding: 0 calc(var(--gutter) + var(--edge)) 80px;
  background: var(--bg-base);
}
.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 38px;
  padding: 112px 80px;
  border-radius: 28px;
  color: #ffffff;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/shared/cta-card.jpg") 50% 19% / cover no-repeat; /* photo carries its own dark tone; no overlay */
  pointer-events: none;
}
.cta-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cta-text h2 { white-space: nowrap; }
.cta-text p { width: 480px; max-width: 100%; }
.insights + .actions, .people ~ .actions { padding-top: 80px; } /* grey insights above: the card gets white space on all sides */

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 80px calc(120px + var(--edge));
  background: #0c1816;
  color: var(--text-on-dark);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 100px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-logo { width: 257.528px; height: 70px; }
.socials { display: flex; align-items: center; gap: 24px; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}
.socials a:hover { background: rgba(255, 255, 255, 0.18); }
.socials img { width: 24px; height: 24px; }

.footer-cols {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  white-space: nowrap;
}
.footer-col {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-col-fixed { flex: 0 0 244px; }
.footer-col a { transition: opacity 0.2s ease; }
.footer-col a:hover,
.legal a:hover { opacity: 0.7; }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.legal { display: flex; align-items: center; gap: 20px; }

/* ---------- CTA card: light variant ---------- */

.cta-card-light { color: #0c5648; } /* fixed: the photo is light in both themes */
.cta-card-light::before {
  inset: -6.78% auto auto -9.03%;
  width: 118.11%;
  height: 113.51%;
  background: url("../img/shared/corp-cta.webp") 0 0 / 100% 100% no-repeat;
}

/* ---------- footer (new design) ---------- */

.footer-v2 { gap: 32px; padding: 64px calc(120px + var(--edge)); background: #08312a; }
.footer-v2 .footer-brand { gap: 24px; }
.footer-v2 .footer-logo { width: 257px; height: 69.8565px; }
.footer-v2 .socials a { width: 34px; height: 34px; background: rgba(255, 255, 255, 0.4); }
.footer-v2 .socials a:hover { background: rgba(255, 255, 255, 0.55); }
.footer-v2 .footer-cols { justify-content: flex-end; gap: 100px; }
.footer-v2 .footer-col { flex: none; }
.footer-v2 .footer-head { opacity: 0.5; text-transform: uppercase; }
.footer-v2 .footer-subcols { display: flex; gap: 64px; }
.footer-v2 .footer-bottom { padding-top: 32px; }

/* ---------- smaller screens ---------- */

@media (max-width: 1280px) {
  .stats { padding: 0 var(--gutter); }
  .hero-title { white-space: normal; }
}

@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .t-display { font-size: 48px; letter-spacing: -0.96px; }
  .t-headline { font-size: 36px; }

  .site-header { padding: 20px 24px; }
  .site-header.is-floating { padding: 10px 24px; }
  .site-nav { display: none; }

  .hero { height: auto; min-height: 720px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-aside > p { width: auto; max-width: 480px; }

  .help { flex-direction: column; gap: 40px; height: auto; }
  .help-photos { flex: none; width: 100%; aspect-ratio: 4 / 3; }
  .help-body { gap: 32px; padding: 0 var(--gutter) 80px; }
  .help-main { gap: 40px; }

  .section-head h2 { white-space: normal; }
  .step { height: 420px; }

  .presence { height: auto; }
  .presence-stage {
    width: 100%;
    left: 0;
    translate: none;
    padding: 100px var(--gutter);
  }
  .presence-map { left: -60%; top: -40%; transform: scale(0.6); transform-origin: center; }
  .presence-map { --map-fade: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
  .presence-head { width: 100%; }
  .pin { display: none; }
  .why { position: relative; top: auto; left: auto; translate: none; width: 100%; margin-top: 560px; }
  .why-head { white-space: normal; }
  .why-grid { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .why-item h3 { white-space: normal; }

  .insights { padding: 80px 0; }
  .insights-inner { flex-direction: column; gap: 40px; padding: 0 var(--gutter); }
  .insights-list { width: 100%; }
  .insight-divider { width: 100%; }

  .cta-card { padding: 72px 40px; }
  .cta-text h2 { white-space: normal; }

  .site-footer { padding: 64px var(--gutter); }
  .footer-v2 { padding: 64px var(--gutter); }
  .footer-v2 .footer-cols { justify-content: flex-start; flex-direction: row; gap: 48px; }
  .footer-top { flex-direction: column; gap: 48px; }
  .footer-cols { width: 100%; }
  .footer-col-fixed { flex: 1 0 0; }
  .footer-bottom { flex-direction: column; gap: 16px; white-space: normal; }
  .legal { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .t-display { font-size: 38px; letter-spacing: -0.76px; }
  .t-headline { font-size: 28px; }
  .t-subheading { font-size: 22px; }

  .logo img { width: 160px; height: auto; }
  .site-header .btn { display: none; }
  .site-header.is-floating .logo img { width: 140px; height: auto; }

  .btn-row { flex-wrap: wrap; }
  .stats { flex-wrap: wrap; row-gap: 32px; padding: 40px var(--gutter); }
  .stats > div { width: 33.333%; }
  .solution { white-space: normal; text-align: left; }
  .solution.is-active .t-subheading { font-size: 30px; }
  .help-label, .help-cta { padding-left: 0; }

  .step { padding: 32px 24px; }
  .step-text { white-space: normal; }

  .why-grid { grid-template-columns: 1fr; }
  .row-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .row-head h2 { white-space: normal; }
  .story-grid { flex-direction: column; gap: 32px; }
  .story-body { padding: 24px 0; }

  .cta-card { padding: 56px 24px; }
  .footer-cols { flex-direction: column; gap: 32px; }
}

/* ---------- scroll reveals (classes added by js/main.js) ---------- */

/* The slide settles (0.6s) before the fade completes (0.7s), so an item never
   drifts its last pixels once fully opaque (that read as a "creep" on load). */
.will-reveal {
  transition:
    opacity 0.7s cubic-bezier(0.33, 0, 0.2, 1) var(--reveal-delay, 0ms),
    translate 0.6s cubic-bezier(0.25, 0.6, 0.3, 1) var(--reveal-delay, 0ms),
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; /* keeps button hovers smooth on revealed items */
}
.will-reveal:not(.revealed),
/* landing items start hidden from the first paint (no flash, no fade-out-then-in) */
html.reveal-pending:not(.reveal-ready) :is(.site-header .logo, .site-nav > a, .site-nav > .nav-menu, .site-header > .btn,
  .hero-title, .hero-aside, .corp-hero-title, .story-head-inner > *, .story-hero, .article-title-copy > *, .stories-intro-copy > *, .featured-head, .featured-photo, .featured-copy > .btn, .latest-title, .division-chips) {
  opacity: 0;
  translate: 0 24px;
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-pending:not(.reveal-ready) :is(.site-header .logo, .site-nav > a, .site-nav > .nav-menu, .site-header > .btn,
    .hero-title, .hero-aside, .corp-hero-title, .story-head-inner > *, .story-hero, .article-title-copy > *, .stories-intro-copy > *, .featured-head, .featured-photo, .featured-copy > .btn, .latest-title, .division-chips) {
    opacity: 1; translate: none;
  }
}
/* the map is too large to slide; it only fades in */
.presence-map.will-reveal { transition-duration: 1.4s; }
.presence-map.will-reveal:not(.revealed) { translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin-dot { animation: none; }
  .hero::before { animation: none; }
  * { transition: none !important; }
}

/* ---------- dark mode (follows the device setting) ---------- */

:root { color-scheme: light dark; }

@media (prefers-color-scheme: dark) {
  :root {
    /* the white sections become a deep green-black, one step lighter than the footer */
    --bg-base: #0f1e1b;
    --bg-mist: #091714;
    --text-body: #d3e2dd;
    --text-heading: #8fe0c6;     /* mint headings, same family as the accent */
    --text-on-soft: #b4c9c3;
    --text-muted: #8fb5a9;
    --divider: #2b403b;
    --border-subtle: #2b403b;
  }

  .tag-alt { background: var(--bg-mist); color: var(--text-heading); }

  .btn-outline-accent { border-color: var(--text-heading); color: var(--text-heading); }
  /* dark mode: the green outline is mint here, so hover fills mint with dark text */
  .btn-outline-accent:hover { background: var(--text-heading); border-color: var(--text-heading); color: var(--bg-ink); }
  .btn-outline-accent:hover img { filter: brightness(0); opacity: 0.85; }
  .btn-outline-accent img { filter: brightness(0) invert(1); opacity: 0.85; }

  .nav-dropdown { background: var(--bg-mist); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
  .site-nav .nav-dropdown a:hover { background: rgba(255, 255, 255, 0.06); }

  .insight-divider { opacity: 0.25; }

  /* photos sit a touch dimmer so they don't glare against the dark page */
  .story-photo, .help-photo, .step-bg { filter: brightness(0.92); }

  /* the light pin labels on the map stay light, for contrast against the dark map */
  .pin-label { background: #e7f2ee; color: #08312a; }

  .site-footer { border-top: 1px solid var(--divider); }

  .site-header.is-floating { background: rgba(15, 30, 27, 0.25); }
}

/* headings never leave a single word alone on the last line: lines are balanced */
h1, h2, h3, .t-display, .t-headline, .t-subheading { text-wrap: balance; }

/* homepage client stories: company name in the same style as the Client Stories page */
.stories .story-client { color: var(--text-body); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* one gap between a section title and its description: 24px */
.why-head { display: flex; flex-direction: column; gap: 24px; }
.presence-head { gap: 24px; }
.cta-text { gap: 24px; }


/* footer social buttons: solid white icons on a subtle circle, brighter on hover */
.footer-v2 .socials a { background: rgba(255, 255, 255, 0.14); transition: background-color 0.2s ease; }
.footer-v2 .socials a:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- footer (Figma Footer 118:2679) ----------
   logo alone on the left; link columns centred in the rest; a divider, then
   copyright on the left and legal links + social buttons on the right */
.footer-v2 { gap: 40px; color: #ffffff; }
.footer-v2 .footer-top { gap: 100px; }
.footer-v2 .footer-cols { justify-content: center; gap: 120px; }
.footer-v2 .footer-col { gap: 16px; font-size: 17px; line-height: 1.3; }
.footer-v2 .footer-head {
  margin-bottom: 4px; /* 20px from heading to first link */
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  text-transform: uppercase;
  opacity: 0.5;
}
.footer-v2 .footer-subcols { gap: 64px; }
.footer-v2 .footer-subcols .footer-col { gap: 16px; }
.footer-v2 .footer-bottom {
  align-items: center;
  padding-top: 40px;
  border-top-color: var(--border-subtle);
  font-size: 17px;
  line-height: 1.3;
}
.footer-end { display: flex; align-items: center; gap: 40px; }
.footer-v2 .legal { gap: 32px; }
.footer-v2 .socials { gap: 24px; }
.footer-v2 .socials a { width: 34px; height: 34px; background: rgba(255, 255, 255, 0.4); }
.footer-v2 .socials a:hover { background: rgba(255, 255, 255, 0.55); }
.footer-v2 .socials img { width: 20px; height: 20px; }
@media (max-width: 1024px) {
  .footer-v2 .footer-cols { justify-content: flex-start; gap: 48px; }
  .footer-end { flex-direction: column; align-items: flex-start; gap: 20px; }
}
/* footer: link columns end on the same right edge as the legal links / social buttons below */
.footer-v2 .footer-cols { justify-content: flex-end; }

/* dark mode: every section title is white (overrides page-level heading colours) */
@media (prefers-color-scheme: dark) {
  h1.t-display, h2.t-display, h2.t-headline, h2, .t-headline, .t-display { color: #ffffff !important; }
}

/* dark mode: body text is white too (muted captions/dates keep their softer tone) */
@media (prefers-color-scheme: dark) {
  :root { --text-body: #ffffff; --text-on-soft: #ffffff; }
  body, p, li, .t-body, .t-body-emphasis { color: #ffffff; }
}

/* dark mode: the "Ready to grow" card keeps its light photo, so its text keeps the light-mode colours */
@media (prefers-color-scheme: dark) {
  .cta-card-light .t-headline, .cta-card-light h2 { color: #0c5648 !important; }
  .cta-card-light p, .cta-card-light .t-body { color: #08312a; }
}

/* dark mode: sections that are white in light mode go pure black */
@media (prefers-color-scheme: dark) {
  :root { --bg-base: #000000; }
  .site-header.is-floating { background: rgba(0, 0, 0, 0.25); }
}

/* dark mode (homepage): Insights and Client stories swap backgrounds */
@media (prefers-color-scheme: dark) {
  .insights { background: #000000; }
  .stories { background: var(--bg-mist); }
}

/* dark mode: client story cards blend into their section; links and outline/text CTAs are white */
@media (prefers-color-scheme: dark) {
  .stories .story-body { background: var(--bg-mist); }
  .btn-outline-accent, .btn-text { color: #ffffff; border-color: #ffffff; }
  .btn-outline-accent:hover { background: #ffffff; border-color: #ffffff; color: #000000; }
  .btn-outline-accent img, .btn-text img { filter: brightness(0) invert(1); }
  .btn-outline-accent:hover img { filter: brightness(0); }
  main a:not(.btn):not([class*="card"]) { color: #ffffff; }
  .cta-card-light .btn-text, .cta-card-light .btn-outline-accent { color: #0c5648; border-color: #0c5648; }
}

/* dark mode: every heading — article, story and card titles included — is white on all pages */
@media (prefers-color-scheme: dark) {
  :root { --text-heading: #ffffff; --text-link: #ffffff; }
  h1, h3, .t-subheading { color: #ffffff; }
  .cta-card-light h3, .cta-card-light .t-subheading { color: #0c5648; }
}

/* dark mode: elements that stay light keep their light-mode text colour */
@media (prefers-color-scheme: dark) {
  .pin-label, .pin-label.t-body { color: #08312a; }
}

/* dark mode: sections that sit on #0c5648 in light mode go one step deeper to #08312a */
@media (prefers-color-scheme: dark) {
  section.more-stories { background: #08312a; }
  .mission::after {
    background:
      linear-gradient(183.97deg, rgba(8, 49, 42, 0) 810px, rgb(8, 49, 42) 1175px),
      linear-gradient(180deg, rgb(6, 74, 61) 138px, rgba(6, 74, 61, 0) 566px);
  }
}

/* dark mode: Our People on #08312a; every chip / filter button has a white outline */
@media (prefers-color-scheme: dark) {
  body section.people { background: #08312a; }
  body .chip, body .division-chip, body .story-filter, body .enquiry .chip { border-color: #ffffff; color: #ffffff; }
  body .chip:hover, body .division-chip:hover, body .enquiry .chip:hover { border-color: #ffffff; }
  body .chip[aria-selected="true"], body .chip[aria-pressed="true"], body .division-chip[aria-pressed="true"], body .enquiry .chip[aria-pressed="true"] { background: #ffffff; border-color: #ffffff; color: #000000; }
  body .story-filter:hover { background-color: #ffffff; border-color: #ffffff; color: #000000; }
}

/* dark mode: footer one step below the #08312a sections so the page still has a clear end */
@media (prefers-color-scheme: dark) {
  body .site-footer, body .footer-v2 { background: #041c18; }
}

/* "Ready to grow across Asia": full-bleed band on every page (was story page only) */
.cta-flush { padding: 0; }
.cta-flush .cta-card { border-radius: 0; padding: 112px calc(80px + var(--edge)); }
@media (max-width: 768px) { .cta-flush .cta-card { padding: 72px var(--gutter); } }

/* dark mode (solution pages): services on #08312a, regional on black */
@media (prefers-color-scheme: dark) {
  body section.corp-services { background: #08312a; }
  body section.regions { background: #000000; }
}

/* dark mode: every section tag uses the light green accent tag */
@media (prefers-color-scheme: dark) {
  body .tag-alt { background: var(--bg-accent); color: var(--text-on-dark); }
}

/* dark mode: the open service in the solution accordion uses the light mint */
@media (prefers-color-scheme: dark) {
  body .svc-item.is-open .svc-q, body .svc-item.is-open .svc-q * { color: #8fe0c6; }
}

/* dark mode: #6c6c6c meta text (dates, tags) is too dim on black; lift to a readable grey */
@media (prefers-color-scheme: dark) {
  body .page-insights .article-meta, body .related .article-meta,
  body .article-meta, body .article-meta * { color: #b0b0b0; }
}

/* footer: no line along its top edge */
body .site-footer, body .footer-v2 { border-top: 0; }

/* dark mode: Our People uses the mist background */
@media (prefers-color-scheme: dark) {
  body section.people { background: var(--bg-mist); }
}

/* floating nav: the frosted bar fades out at the bottom instead of ending on a hard edge.
   The tint + blur move to a pseudo-element that runs a little past the bar and is masked
   to transparent, so the page shows through gradually. */
.site-header { --float-tint: rgba(244, 247, 245, 0.2); isolation: isolate; }
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 36px);
  z-index: -1;
  pointer-events: none;
  background: var(--float-tint);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-floating.is-shown::before { opacity: 1; }
body .site-header.is-floating { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-color-scheme: dark) {
  .site-header { --float-tint: rgba(0, 0, 0, 0.25); }
}
/* the fade waits for the bar to slide away before it goes, matching the bar's own delay */
.site-header.is-floating::before { transition-delay: 0.3s; }
.site-header.is-floating.is-shown::before { transition-delay: 0s; }

/* ---------- floating nav: progressive blur (Figma Header 341:21161) ----------
   Stacked layers, strongest blur on top, each masked to end a little lower than the
   one before. The blur therefore weakens step by step toward the bottom edge, and a
   tint gradient fades with it, so the bar dissolves into the page with no visible edge. */
.site-header::before { display: none; } /* replaces the single masked layer */
.nav-blur {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 48px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.site-header.is-floating.is-shown .nav-blur { opacity: 1; transition-delay: 0s; }
.nav-blur > i { position: absolute; inset: 0; }
.nav-blur > i:nth-child(1) { backdrop-filter: blur(1px);  -webkit-backdrop-filter: blur(1px);  mask-image: linear-gradient(#000 0%, #000 80%, transparent 100%); -webkit-mask-image: linear-gradient(#000 0%, #000 80%, transparent 100%); }
.nav-blur > i:nth-child(2) { backdrop-filter: blur(2px);  -webkit-backdrop-filter: blur(2px);  mask-image: linear-gradient(#000 0%, #000 68%, transparent 90%);  -webkit-mask-image: linear-gradient(#000 0%, #000 68%, transparent 90%); }
.nav-blur > i:nth-child(3) { backdrop-filter: blur(4px);  -webkit-backdrop-filter: blur(4px);  mask-image: linear-gradient(#000 0%, #000 56%, transparent 80%);  -webkit-mask-image: linear-gradient(#000 0%, #000 56%, transparent 80%); }
.nav-blur > i:nth-child(4) { backdrop-filter: blur(8px);  -webkit-backdrop-filter: blur(8px);  mask-image: linear-gradient(#000 0%, #000 44%, transparent 70%);  -webkit-mask-image: linear-gradient(#000 0%, #000 44%, transparent 70%); }
.nav-blur > i:nth-child(5) { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); mask-image: linear-gradient(#000 0%, #000 32%, transparent 60%);  -webkit-mask-image: linear-gradient(#000 0%, #000 32%, transparent 60%); }
.nav-blur > i:nth-child(6) { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); mask-image: linear-gradient(#000 0%, #000 20%, transparent 50%);  -webkit-mask-image: linear-gradient(#000 0%, #000 20%, transparent 50%); }
/* tint: eases out over the full height (several stops so it has no visible band) */
.nav-blur > i:nth-child(7) {
  background: linear-gradient(180deg,
    rgba(var(--nav-tint), calc(0.34 * var(--nav-k))) 0%,
    rgba(var(--nav-tint), calc(0.30 * var(--nav-k))) 25%,
    rgba(var(--nav-tint), calc(0.22 * var(--nav-k))) 45%,
    rgba(var(--nav-tint), calc(0.13 * var(--nav-k))) 62%,
    rgba(var(--nav-tint), calc(0.06 * var(--nav-k))) 78%,
    rgba(var(--nav-tint), calc(0.02 * var(--nav-k))) 90%,
    rgba(var(--nav-tint), calc(0 * var(--nav-k))) 100%);
}
.site-header { --nav-tint: 244, 247, 245; }
@media (prefers-color-scheme: dark) {
  .site-header { --nav-tint: 0, 0, 0; }
}

/* light mode progressive bar: tint follows what's behind it.
   Over light sections (green text) a soft white veil; over dark photos/sections (white
   text) a deep green veil, so the links stay readable either way. Dark mode keeps black. */
.site-header { --nav-tint: 8, 49, 42; --nav-k: 1.2; }
.site-header.on-light { --nav-tint: 255, 255, 255; --nav-k: 2.2; }
.nav-blur > i:nth-child(7) { transition: background 0.3s ease; }
@media (prefers-color-scheme: dark) {
  .site-header, .site-header.on-light { --nav-tint: 0, 0, 0; --nav-k: 1; }
}

/* dark mode: one divider style for content (footer excluded), matching the homepage
   News & Insights rule: 1px of #C2D5D1 at 25% -> rgba(194, 213, 209, 0.25).
   Over photos (regional panels) it is lifted to 40% so it still reads. */
@media (prefers-color-scheme: dark) {
  :root { --divider-dark: rgba(194, 213, 209, 0.25); }
  /* svg/img rules already are #C2D5D1 at 25% opacity: keep them at exactly that */
  body .insight-divider, body .faq-line, body .person-rule { opacity: 0.25; height: 1px; }
  /* CSS-border dividers */
  body .svc-item { border-top: 1px solid var(--divider-dark); }
  body .svc-head + .svc-item { border-top: 0; }
  body .article-end { height: 1px; background: var(--divider-dark); }
  body .office-card dl { border-top: 1px solid var(--divider-dark); }
  body .region-stat { border-top: 1px solid rgba(194, 213, 209, 0.4); }
}

/* content dividers, both modes (footer excluded): 1px, #C2D5D1 like the homepage
   News & Insights rule. Dark mode uses the same colour at 25%; over photos 40%. */
:root { --content-divider: #c2d5d1; --content-divider-photo: rgba(194, 213, 209, 0.4); }
@media (prefers-color-scheme: dark) { :root { --content-divider: rgba(194, 213, 209, 0.25); } }
body .svc-item { border-top: 1px solid var(--content-divider); }
body .svc-head + .svc-item { border-top: 0; }
body .article-end { height: 1px; background: var(--content-divider); }
body .office-card dl { border-top: 1px solid var(--content-divider); }
body .region-stat { border-top: 1px solid var(--content-divider-photo); }

/* dark mode: Insights page dates/tags (body carries .page-insights, so the earlier selector missed) */
@media (prefers-color-scheme: dark) {
  body.page-insights .article-meta, body.page-insights .article-meta * { color: #b0b0b0; }
}

/* every section tag is the solid green tag, in both modes */
body .tag-alt { background: var(--bg-accent); color: var(--text-on-dark); }

/* FAQ questions use the body text colour in both modes (#08312a light, white dark) */
body .faq-q .t-subheading { color: var(--text-body); }
body .faq-q:hover .t-subheading { color: var(--text-heading); }

/* hero banner fits the screen it lands on: never taller than the viewport, so the
   title, intro and buttons are visible without scrolling (880px is only the max).
   It never shrinks below what its content needs (height: auto + min-height). */
body .hero {
  height: auto;
  min-height: min(880px, 100vh);
  min-height: min(880px, 100svh);
}
@media (max-height: 760px) {
  body .hero { padding-top: 130px; padding-bottom: 56px; }
}
@media (max-width: 1024px) {
  body .hero { min-height: min(720px, 100svh); }
}

/* ---------- mobile menu (burger) ---------- */
.nav-burger { display: none; }
.mobile-menu { display: none; }
@media (max-width: 1024px) {
  .nav-burger {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    margin-left: 16px;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
  }
  .nav-burger span { display: block; height: 1.5px; border-radius: 2px; background: currentColor; transition: translate 0.3s cubic-bezier(0.4, 0, 0.2, 1), rotate 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease; }
  .site-header.on-light .nav-burger { color: #0c5648; }
  .site-header.menu-open .nav-burger { color: #ffffff; }
  .site-header.menu-open .nav-burger span:nth-child(1) { translate: 0 7.5px; rotate: 45deg; }
  .site-header.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-burger span:nth-child(3) { translate: 0 -7.5px; rotate: -45deg; }
  /* keep the logo + burger above the panel, always visible while the menu is open */
  .site-header.menu-open { z-index: 1001; translate: -50% 0 !important; }
  .site-header.menu-open .logo::after { opacity: 0; }
  .site-header.menu-open .logo img { opacity: 1; }
  .site-header.menu-open .nav-blur { opacity: 0 !important; }
  .site-header > .btn { margin-left: auto; }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 120px var(--gutter) 40px;
    overflow-y: auto;
    background: #08312a;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu.is-open { opacity: 1; }
  .mobile-menu-links { display: flex; flex-direction: column; }
  .mobile-menu-links a, .mobile-menu-label {
    padding: 14px 0;
    border-bottom: 1px solid rgba(194, 213, 209, 0.25);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
  }
  .mobile-menu-label { margin: 0; opacity: 0.5; font-size: 14px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 0; padding-bottom: 4px; }
  .mobile-menu-links a.is-sub { padding-left: 16px; font-size: 20px; font-weight: 600; }
  .mobile-menu-links a[aria-current="page"] { color: #8fe0c6; }
  .mobile-menu-cta { align-self: flex-start; }
  html.has-menu, html.has-menu body { overflow: hidden; }
  /* the reserved scrollbar gutter can't be covered by a fixed panel: paint it the menu colour */
  html.has-menu { background-color: #08312a; }
  @media (prefers-color-scheme: dark) { .mobile-menu { background: #000000; } }
}

/* "Ready to grow" card: text column shrinks with the screen */
.cta-text { max-width: 100%; min-width: 0; }
@media (max-width: 768px) { .cta-text { width: 100%; } .cta-card { flex-direction: column; align-items: flex-start; gap: 32px; } }

/* ---------- footer: responsive (later desktop rules were overriding the old breakpoints) ---------- */
@media (max-width: 1024px) {
  body .footer-v2 { padding: 56px var(--gutter) 40px; gap: 40px; }
  body .footer-v2 .footer-top { flex-direction: column; align-items: flex-start; gap: 40px; }
  body .footer-v2 .footer-cols { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 40px 64px; }
  body .footer-v2 .footer-bottom { flex-direction: column; align-items: flex-start; gap: 24px; white-space: normal; }
  body .footer-end { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; width: 100%; }
}
@media (max-width: 640px) {
  body .footer-v2 .footer-logo { width: 200px; height: auto; }
  body .footer-v2 .footer-cols { flex-direction: column; gap: 32px; }
  body .footer-v2 .footer-subcols { gap: 48px; }
  body .footer-end { flex-direction: column; align-items: flex-start; }
  body .footer-v2 .legal { gap: 24px; }
}

/* burger: just the three lines, no circle */
@media (max-width: 1024px) {
  .nav-burger { border: 0; padding: 0 8px; width: 40px; }
}

/* ---------- empty state (shared): filters with no results, teams not yet published ---------- */
:root { --error: #b42318; }
@media (prefers-color-scheme: dark) { :root { --error: #ff8a80; } }
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 64px 24px;
  text-align: center;
}
.empty-state[hidden] { display: none; }
.empty-state-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(19, 171, 141, 0.12);
  color: var(--bg-accent);
}
.empty-state-icon svg { width: 26px; height: 26px; }
.empty-state-title { margin: 0; color: var(--text-heading); }
.empty-state-text { max-width: 440px; margin: 0; color: var(--text-body); opacity: 0.8; }
.empty-state .btn { margin-top: 8px; }
.empty-state.empty-state { padding: 64px 24px; color: inherit; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 160px var(--gutter) 96px; }
.notfound-inner { position: relative; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.notfound-code { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(96px, 18vw, 200px); line-height: 0.9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--bg-accent); }
.notfound-title { color: var(--text-heading); }
.notfound-text { max-width: 520px; color: var(--text-body); }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--content-divider, #c2d5d1); }
.notfound-links a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }

/* larger primary button (About hero "Meet our people") */
.btn.btn-lg { height: auto; padding: 15px 32px; font-size: 19px; font-weight: 600; gap: 12px; }
.btn.btn-lg:hover { background: #0f9a7e; }
.btn.btn-lg img { width: 26px; height: 26px; }
@media (max-width: 640px) { .btn.btn-lg { padding: 14px 28px; font-size: 18px; } }

/* ---------- mobile type + spacing pass (≤640px) ---------- */
@media (max-width: 640px) {
  body .t-display, body h1.t-display, body h2.t-display { font-size: 32px; line-height: 1.1; letter-spacing: -0.64px; }
  body .t-headline, body h1.t-headline, body h2.t-headline, body h3.t-headline { font-size: 26px; line-height: 1.25; letter-spacing: -0.4px; }
  body .t-subheading, body h3.t-subheading { font-size: 20px; line-height: 1.3; }
  body .enquiry-heading { font-size: 26px; line-height: 1.2; }
  body .featured-title, body .latest-title { font-size: 26px; line-height: 1.25; }
  body .office-card-city { font-size: 22px; }
  body .story-article h2, body article h2:not([class]) { font-size: 22px; line-height: 1.3; }
  body .solution-hero h1, body .svc-hero h1 { font-size: 30px; line-height: 1.15; }

  /* section rhythm: 64px instead of 80–100px */
  body .insights, body .people, body .staff, body .latest, body .all-stories { padding-top: 64px; padding-bottom: 64px; }
  body .inspiration { padding-top: 56px; padding-bottom: 56px; }
  body section.more-stories { padding-top: 72px; padding-bottom: 72px; }
  body .actions { padding-top: 64px; }

  /* logo +10% */
  .logo img { width: 176px; }
  .site-header.is-floating .logo img { width: 154px; }
}
@media (max-width: 640px) {
  .article-body li, .article-body p, .legal-main a { overflow-wrap: anywhere; }
  body .office-card-city { font-size: 22px; }
  body .article-card-title, body .stories h3.t-subheading, body .more-stories h3.t-subheading, body h3.t-subheading { font-size: 20px; }
}
@media (max-width: 640px) {
  body h3.office-card-city { font-size: 22px; }
  body.page-insights .article-card-title, body .related .article-card-title { font-size: 20px; }
}

/* ---------- mobile carousels (≤640px): long card stacks become swipeable rows ---------- */
@media (max-width: 640px) {
  body .m-carousel {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch;
    gap: 16px; height: auto; width: auto; max-width: none;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--m-pad, var(--gutter));
    margin-inline: calc(-1 * var(--m-pad, var(--gutter))); padding: 0 var(--m-pad, var(--gutter)) 4px;
    scrollbar-width: none;
  }
  body .m-carousel::-webkit-scrollbar { display: none; }
  body .m-carousel > * { flex: 0 0 84%; width: auto; max-width: none; min-width: 0; scroll-snap-align: start; margin: 0; }
  body .m-carousel > [hidden] { display: none !important; }
  body .m-carousel > .story-list-empty { flex-basis: 100%; }
  body .m-carousel.why-grid > * { flex-basis: 78%; padding: 28px 24px; border-radius: 16px; background: var(--bg-mist); }
  @media (prefers-color-scheme: dark) { body .m-carousel.why-grid > * { background: #08312a; } }
  body .m-carousel.steps > .step { height: 440px; }
  body .m-carousel.others-row { padding-bottom: 4px; }
  body .m-carousel.others-row > .other { height: auto; aspect-ratio: 1 / 1; }

  .m-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
  .m-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; background: currentColor; opacity: 0.25; transition: width 0.25s ease, opacity 0.25s ease; }
  .m-dots button.is-active { width: 22px; opacity: 0.9; }
  .m-dots button::before { content: ""; display: block; width: 100%; height: 100%; padding: 10px; margin: -10px; box-sizing: content-box; } /* bigger tap area */
}
@media (min-width: 641px) { .m-dots { display: none; } }
@media (max-width: 640px) {
  body .m-carousel { align-self: stretch; }
  body .m-carousel.others-row { margin-inline: 0; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
@media (max-width: 640px) {
  body .m-carousel.why-grid > *, body .m-carousel.why-grid > * { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

/* ---------- mobile body text: 13px (≤640px) ---------- */
@media (max-width: 640px) {
  body, body .t-body, body p, body li, body dd, body td, body th,
  body .about-story p:not(.about-story-close), body .person-bio p, body .person-story p:not(.person-story-close),
  body .mission-statement p, body .people-intro, body .staff-intro { font-size: 13px; line-height: 1.55; }
  /* keep form fields at 16px so iOS doesn't zoom in on focus */
  body input, body select, body textarea { font-size: 16px; }
}
@media (max-width: 640px) {
  body .svc-a-inner p, body .svc-a-inner li, body p.svc-label, body .svc-examples li, body p.region-caption,
  body p.story-client, body p.feature-solution, body p.office-card-entity, body .other-more p { font-size: 13px; line-height: 1.55; }
  body p.t-caption, body .t-caption { font-size: 12px; }
}
@media (max-width: 640px) {
  body .other-more p.t-caption, body .svc-a .svc-a-inner p.t-body { font-size: 13px; line-height: 1.55; }
}

/* ---------- mobile: everything that was 17px → 13px (buttons, chips, tabs, labels, footer) ---------- */
@media (max-width: 640px) {
  body .btn, body a.btn, body button.btn, body span.btn, body .btn.btn-lg,
  body .chip, body button.chip, body .page-btn, body .office-tab, body .field-label, body dd,
  body .footer-head, body footer a, body footer span, body footer p, body .site-footer a, body .site-footer span,
  body .why-grid h3, body .mobile-menu a { font-size: 13px; }
  body .btn img, body .btn svg { width: 16px; height: auto; }
}
@media (max-width: 640px) {
  body .footer-v2 p.footer-head, body .office-card dd, body .office-card dd a, body .story-facts dd,
  body .story-filter span, body .story-filter button, body .chips button.chip, body .chips .chip { font-size: 13px; }
}

/* ---------- homepage mobile fixes (≤640px) ---------- */
@media (max-width: 640px) {
  /* Regional presence: map in normal flow, centred under the heading */
  body .presence-stage { padding: 64px var(--gutter); gap: 0; }
  body .presence-map {
    position: relative; left: auto; top: auto; transform: none; translate: none;
    width: 150%; height: auto; margin: 16px 0 -24px; align-self: center;
    --map-fade: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  }
  body .presence-map img { width: 100%; height: auto; }
  body .presence::before { top: 0; height: 100%; }
  body .why { margin-top: 0; }
  body .why-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body .presence-head { order: -1; }
  body .presence-map {
    width: 140%; margin: 8px 0 0; opacity: 0.55;
    -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  }
  body .why { margin-top: 56px; }
}
@media (max-width: 640px) {
  body .presence-map {
    -webkit-mask-image: linear-gradient(180deg, transparent 22%, #000 48%, #000 78%, transparent 100%), linear-gradient(90deg, transparent 12%, #000 30%, #000 85%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(180deg, transparent 22%, #000 48%, #000 78%, transparent 100%), linear-gradient(90deg, transparent 12%, #000 30%, #000 85%, transparent 100%);
            mask-composite: intersect;
    margin-top: -40px; margin-bottom: -40px;
  }
}
@media (max-width: 640px) {
  /* How we can help: active solution only slightly larger than the others */
  body .solution .t-subheading { font-size: 18px; }
  body .solution.is-active .t-subheading { font-size: 22px; letter-spacing: -0.2px; }
  /* growth journey: normal section top spacing */
  body .journey { padding-top: 64px; padding-bottom: 64px; }
  /* client stories: section spacing, "More stories" beside the title, plain stacked list */
  body section.stories { padding: 64px var(--gutter); gap: 32px; }
  body .stories .row-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  body .stories .row-head .btn { flex: none; }
  body .story-grid { display: flex; flex-direction: column; gap: 40px; }
}

/* ---------- mobile spacing system (≤640px): sections 64px, heading→content 32px, card insets 24px ---------- */
@media (max-width: 640px) {
  body .mission { padding-top: 64px; gap: 48px; }
  body .help-track { margin-top: 0; }
  body .journey { gap: 32px; }
  body .people { gap: 32px; }
  body .staff { gap: 32px; }
  body section.corp-intro:not(.about-story) { padding-top: 64px; padding-bottom: 64px; }
  body .corp-services { padding-top: 40px; }
  body .corp-services .svc { padding-bottom: 56px; }
  body .regions { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  body .others { padding-top: 64px; gap: 32px; }
  body .others-row { padding-bottom: 64px; }
  body .faq { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  body .inspiration { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  body .all-stories-head { margin-bottom: 32px; }
  body section.more-stories { padding-top: 64px; padding-bottom: 64px; }
  body .actions { padding-top: 64px; }
  body .cta-card { padding-top: 56px; padding-bottom: 56px; padding-left: 24px; padding-right: 24px; }
  body .offices-inner { padding-top: 56px; padding-bottom: 56px; }
  body .stories-intro, body .featured { padding-top: 120px; }
  body .stories-intro { padding-bottom: 64px; }
}
@media (max-width: 640px) {
  body .cta-flush .cta-card, body section.cta-flush .cta-card { padding: 56px var(--gutter); }
  body section.corp-services, body section.corp-services:has(.svc-head) { padding-top: 40px; }
}

/* ---------- homepage mobile per Figma 359:2 (≤640px) ---------- */
.presence-map-m { display: none; }
@media (max-width: 640px) {
  /* growth journey isn't part of the mobile homepage */
  /* growth journey: shown on phones as a swipeable row (see end of file) */

  /* regional presence: map behind the heading, pins on top */
  body .presence-stage { position: relative; padding: 40px var(--gutter) 64px; }
  body .presence-map { display: none; }
  body .presence-map-m {
    display: block; position: absolute; z-index: 0; pointer-events: none;
    left: -72.27%; width: 201.34%; max-width: none; height: auto; top: -43px;
  }
  body .presence-stage::before {
    content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: -4px; height: 320px; pointer-events: none;
    background: linear-gradient(0deg, rgba(8, 49, 42, 0) 12.8%, #08312a 88%);
  }
  body .presence-head, body .why { position: relative; z-index: 1; }
  body .presence-head { order: 0; gap: 24px; }
  body .why { margin-top: 0; position: absolute; left: var(--gutter); right: var(--gutter); top: 616px; width: auto; }
  body .presence-stage { min-height: 1186px; }

  body .pin { display: block; position: absolute; z-index: 1; transform: scale(0.6); transform-origin: 0 0; }
  body .pin .pin-label { font-size: 16.67px; line-height: 1.3; padding: 6.67px 20px; background: #ffffff; color: #08312a; }
  body .pin:nth-child(1 of .pin) { left: 78px;  top: 240px; } /* Bhutan */
  body .pin:nth-child(2 of .pin) { left: 26px;  top: 331px; } /* Thailand */
  body .pin:nth-child(3 of .pin) { left: 170px; top: 332px; } /* Vietnam */
  body .pin:nth-child(4 of .pin) { left: 26px;  top: 399px; } /* Malaysia: label left, dot right like the mockup */
  body .pin:nth-child(4 of .pin) .pin-label { left: 0 !important; }
  body .pin:nth-child(4 of .pin) .pin-dot { left: 125px !important; top: 27px !important; }
  body .pin:nth-child(4 of .pin) .pin-line { display: none; }
  body .pin:nth-child(5 of .pin) { left: 37px;  top: 460px; } /* Indonesia */
  body .pin:nth-child(6 of .pin) { left: 149px; top: 419px; } /* Singapore */

  /* client stories + news: 40px section padding per mockup */
  body section.stories { padding: 40px var(--gutter); }
  body .insights { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 640px) {
  body .pin { transform: none; zoom: 0.6; }
  body .why { gap: 32px; }
  body .why-head { gap: 16px; }
}
@media (max-width: 640px) {
  /* zoom scales the pin's own left/top too, so positions are the mockup values ÷ 0.6 */
  body .pin:nth-child(1 of .pin) { left: 130px;   top: 400px; }   /* Bhutan */
  body .pin:nth-child(2 of .pin) { left: 43.3px;  top: 551.7px; } /* Thailand */
  body .pin:nth-child(3 of .pin) { left: 283.3px; top: 553.3px; } /* Vietnam */
  body .pin:nth-child(4 of .pin) { left: 43.3px;  top: 665px; }   /* Malaysia */
  body .pin:nth-child(5 of .pin) { left: 61.7px;  top: 766.7px; } /* Indonesia */
  body .pin:nth-child(6 of .pin) { left: 248.3px; top: 698.3px; } /* Singapore */
}
@media (max-width: 640px) {
  body .presence-stage::before { z-index: 1; }
  body .presence-head, body .why, body .pin { z-index: 2; }
}

/* ---------- mobile: slimmer selection pills everywhere (≤640px) ---------- */
@media (max-width: 640px) {
  body .chip, body button.chip, body .division-chip, body .story-filter, body .enquiry .chip, body .office-tab {
    height: auto; min-height: 0; padding: 6px 14px; line-height: 1.3; font-size: 13px; gap: 6px;
  }
  body .story-filter img { width: 16px; height: 16px; }
  body .chip-select, body .office-select { padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
}

/* ---------- mobile: every content section 40px top and bottom (≤640px) ---------- */
@media (max-width: 640px) {
  html body .mission, html body .journey, html body .presence-stage, html body section.stories, html body .insights,
  html body .people, html body .staff, html body section.corp-intro:not(.about-story), html body .regions, html body .faq,
  html body .inspiration, html body .all-stories, html body section.more-stories, html body .latest, html body .enquiry,
  html body .offices-inner, html body .related { padding-top: 40px; padding-bottom: 40px; }
  html body section.corp-services, html body .others { padding-top: 40px; }
  html body .others-row, html body .corp-services .svc:last-child { padding-bottom: 40px; }
  html body .actions { padding-top: 40px; }
  html body .cta-flush .cta-card { padding-top: 40px; padding-bottom: 40px; }
}

/* ---------- mobile: title → description always 16px (≤640px) ---------- */
@media (max-width: 640px) {
  html body .hero-inner, html body .mission-statement, html body .presence-head, html body .why-head, html body .cta-text,
  html body .people-head, html body .staff-head, html body section.corp-intro:not(.about-story), html body .offices-head, html body .legal-head { gap: 16px; }
  html body .mission-statement > p, html body .people-head > p, html body .people-intro { margin-top: 0; margin-bottom: 0; }
}
@media (max-width: 640px) { html body section.actions.cta-flush, html body .insights + .actions, html body .people ~ .actions { padding-top: 40px; } }

/* mobile menu: all links match the Solutions sub-links (20px semibold), and Solutions sit flush left */
@media (max-width: 1024px) {
  html body .mobile-menu .mobile-menu-links a { font-size: 20px; font-weight: 600; }
  html body .mobile-menu .mobile-menu-links a.is-sub { padding-left: 0; }
}
@media (max-width: 1024px) {
  html body .mobile-menu .mobile-menu-links a.is-sub:has(+ a.is-sub) { border-bottom: 0; }
}

/* mobile menu: Solutions is a collapsible group with a plus toggle */
@media (max-width: 1024px) {
  html body .mobile-menu-group {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 14px 0; border: 0; border-bottom: 1px solid rgba(194, 213, 209, 0.25); background: none;
    font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; color: #ffffff; text-align: left; cursor: pointer;
  }
  html body .mobile-menu-plus { position: relative; width: 14px; height: 14px; flex: none; }
  html body .mobile-menu-plus::before, html body .mobile-menu-plus::after {
    content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.3s ease;
  }
  html body .mobile-menu-plus::after { transform: rotate(90deg); }
  html body .mobile-menu-group[aria-expanded="true"] .mobile-menu-plus::after { transform: rotate(0deg); }
  html body .mobile-menu-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
  html body .mobile-menu-sub.is-open { grid-template-rows: 1fr; }
  html body .mobile-menu-sub > div { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  html body .mobile-menu .mobile-menu-sub a.is-sub { border-bottom: 0; padding: 10px 0; opacity: 0.75; }
  html body .mobile-menu .mobile-menu-sub a.is-sub:first-child { padding-top: 16px; }
  html body .mobile-menu .mobile-menu-sub a.is-sub:last-child { padding-bottom: 16px; border-bottom: 1px solid rgba(194, 213, 209, 0.25); }
  html body .mobile-menu .mobile-menu-sub a.is-sub[aria-current="page"] { opacity: 1; }
}

/* Regional presence on tablets (641–1024px): show the same crop of the map as desktop, scaled to the
   screen width. The map's dark overlay is drawn for that crop only, so any other position or scale
   exposes bare white land beside or above it. All sizes are the 1440 artboard values in vw. */
@media (min-width: 641px) and (max-width: 1024px) {
  html body .presence-map {
    left: -44.358vw; top: -43.75vw; width: 167.778vw; height: 133.334vw;
    transform: none;
    -webkit-mask-image: none; mask-image: none;
  }
  html body .presence-map img { width: 161.719vw; height: 125.418vw; }
  /* "What makes us different" starts just below the map (the map ends 89.6vw down) */
  html body .why { margin-top: calc(89.6vw - 200px); }
}
@media (min-width: 641px) and (max-width: 1024px) {
  /* the heading does not shrink with the map, so the map fades in below it to keep the text readable */
  html body .presence-map {
    --map-fade: linear-gradient(180deg, transparent calc(43.75vw + 150px), #000 calc(43.75vw + 380px));
    -webkit-mask-image: var(--map-fade); mask-image: var(--map-fade);
  }
}

/* map pins link to that market's office on the Contact page */
a.pin { z-index: 2; text-decoration: none; color: inherit; }
a.pin .pin-label { transition: background-color 0.2s ease, color 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  a.pin:hover .pin-label { background: #ffffff; color: #08312a; }
}
a.pin:focus-visible { outline: none; }
a.pin:focus-visible .pin-label { outline: 2px solid #8fe0c6; outline-offset: 2px; }

/* mobile pins: same city points as desktop, mapped onto the mobile map artwork (zoom 0.6, so left/top are ÷ 0.6) */
@media (max-width: 640px) {
  body .pin:nth-child(1 of .pin) { left: 111.7px; top: 447.7px; } /* Bhutan */
  body .pin:nth-child(2 of .pin) { left: 80.1px; top: 574.3px; } /* Thailand */
  body .pin:nth-child(3 of .pin) { left: 263.0px; top: 603.4px; } /* Vietnam */
  body .pin:nth-child(4 of .pin) { left: 90.9px; top: 672.6px; } /* Malaysia */
  body .pin:nth-child(5 of .pin) { left: 138.5px; top: 788.2px; } /* Indonesia */
  body .pin:nth-child(6 of .pin) { left: 235.9px; top: 664.3px; } /* Singapore */
  body .pin:nth-child(7 of .pin) { left: 350.5px; top: 665.5px; } /* Labuan */
  body .pin:nth-child(4 of .pin) .pin-line { display: block; }
}
@media (max-width: 640px) {
  /* Singapore's label drops below its dot so it clears the Labuan pin */
  body .pin:nth-child(6 of .pin) .pin-line { display: none; }
  body .pin:nth-child(6 of .pin) .pin-label { left: -10px !important; top: 92px; }
}

/* footer: link columns sit left, starting after the logo */
.footer-v2 .footer-cols { justify-content: flex-start; flex: 1 1 auto; }

/* map pins: clear hover feedback (they open the office in Google Maps) */
a.pin { cursor: pointer; }
a.pin .pin-dot { transition: scale 0.25s ease, filter 0.25s ease; }
a.pin .pin-line { transition: filter 0.25s ease; }
a.pin .pin-label { transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease; }
a.pin .pin-label::after {
  content: "↗"; display: inline-block; width: 0; overflow: hidden; vertical-align: top;
  opacity: 0; transition: width 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  a.pin:hover { z-index: 5; }
  a.pin:hover .pin-dot { animation: none; scale: 1.3; filter: drop-shadow(0 0 8px rgba(143, 224, 198, 0.9)); }
  a.pin:hover .pin-line { filter: brightness(1.6) drop-shadow(0 0 4px rgba(143, 224, 198, 0.8)); }
  a.pin:hover .pin-label, html body a.pin:hover .pin-label { background: #13ab8d; color: #ffffff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
  a.pin:hover .pin-label::after { width: 1em; margin-left: 6px; opacity: 1; }
}

/* growth journey: reads as a stage in a sequence, not a clickable card —
   "Stage 01 / 06", a progress rail along the bottom, squarer corners, no pointer */
.step { border-radius: 6px; cursor: default; }
.step-num { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.step-num::before { content: "Stage "; }
.step-num::after { content: " / 06"; color: rgba(255, 255, 255, 0.45); }
.step-text { flex: 1 1 auto; }
.step::before {
  content: ""; position: absolute; left: 80px; right: 80px; bottom: 44px; height: 2px; z-index: 1;
  background: linear-gradient(90deg, #8fe0c6 var(--p, 16.6%), rgba(255, 255, 255, 0.22) var(--p, 16.6%));
  pointer-events: none;
}
.step:nth-child(1) { --p: 16.66%; } .step:nth-child(2) { --p: 33.33%; } .step:nth-child(3) { --p: 50%; }
.step:nth-child(4) { --p: 66.66%; } .step:nth-child(5) { --p: 83.33%; } .step:nth-child(6) { --p: 100%; }
@media (max-width: 1024px) { .step::before { left: 24px; right: 24px; bottom: 28px; } }

/* ---------- dark mode colour mapping (Oct 2026) ----------
   Every light-mode surface maps to one dark tone, so a card that sits flush on
   its section in light mode also sits flush in dark mode:
     white          -> black        #000000
     light green    -> dark green   #12302a  (clearly green against black)
     dark green     -> darker green #0a211c  (still green, between the two)    */
@media (prefers-color-scheme: dark) {
  :root {
    --dm-white: #000000;
    --dm-light: #12302a;
    --dm-dark: #0a211c;
    --bg-base: var(--dm-white);
    --bg-mist: var(--dm-light);
    --bg-soft: var(--dm-light);
  }
  html body { background: var(--dm-white); }

  /* white in light mode -> black */
  html body section.journey, html body section.others, html body section.corp-services,
  html body section.stories, html body section.contact-hero, html body section.enquiry,
  html body .story-body, html body .stories .story-body,
  html body .office-card, html body .staff-quote, html body .person-modal,
  html body .nav-dropdown, html body .topic-listbox, html body .filter-listbox, html body .office-dd-list,
  html body .division-dd-list {
    background-color: var(--dm-white);
  }
  html body .nav-dropdown, html body .topic-listbox, html body .filter-listbox, html body .office-dd-list,
  html body .division-dd-list { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 48px rgba(0, 0, 0, 0.6); }

  /* light green in light mode -> dark green */
  html body section.insights, html body section.actions, html body section.offices, html body section.inspiration,
  html body section.faq, html body section.staff, html body .person-photo, html body .article-thumb,
  html body .article-body blockquote, html body blockquote.t-body {
    background-color: var(--dm-light);
  }
  /* cards that are white on a light-green section stay black on the dark green */
  html body section.staff .staff-quote, html body section.offices .office-card { background-color: var(--dm-white); }

  /* dark green in light mode -> darker green */
  /* (homepage hero, stats band, mission and map keep their own brand greens: they blend with photos) */
  html body .site-footer, html body section.corp-intro, html body section.regions, html body .step,
  html body .video-modal, html body .client-quote, html body section.more-stories,
  html body section.more-stories ~ section.actions {
    background-color: var(--dm-dark);
  }
  html body .site-footer { border-top: 0; }
}

/* dark mode, Contact: header and form keep their original shared tone (#091714) so the header glow fades seamlessly */
@media (prefers-color-scheme: dark) {
  html body section.contact-hero, html body section.enquiry { background-color: #091714; }
}
@media (prefers-color-scheme: dark) {
  /* white in light mode -> black (these had picked up an older green fill) */
  html body section.people { background-color: var(--dm-white); background-image: none; }
  html body .svc-media { background-color: transparent; }
}
@media (prefers-color-scheme: dark) {
  /* accent tag: a deeper green than light mode (#13ab8d), still clear on black, dark green and darker green */
  html body .tag-accent, html body .tag-alt { background: #0b7a64; color: #ffffff; box-shadow: inset 0 0 0 1px rgba(143, 224, 198, 0.28); }
}

/* tablet (641–1024px): pins back on the map, same city points as desktop, scaled with the vw-sized map (zoom 0.7, so left/top are ÷ 0.7) */
@media (min-width: 641px) and (max-width: 1024px) {
  body .pin { display: block; position: absolute; z-index: 2; zoom: 0.7; }
  body .pin:nth-child(1 of .pin) { left: calc(48.711vw - 16px); top: calc(41.864vw - 42px); } /* Bhutan */
  body .pin:nth-child(2 of .pin) { left: calc(67.164vw - 141px); top: calc(73.115vw - 43px); } /* Thailand */
  body .pin:nth-child(3 of .pin) { left: calc(77.679vw - 16px); top: calc(79.663vw - 42px); } /* Vietnam */
  body .pin:nth-child(4 of .pin) { left: calc(68.355vw - 141px); top: calc(95.536vw - 43px); } /* Malaysia */
  body .pin:nth-child(5 of .pin) { left: calc(77.679vw - 141px); top: calc(116.270vw - 43px); } /* Indonesia */
  body .pin:nth-child(6 of .pin) { left: calc(73.711vw - 16px); top: calc(99.703vw - 67px); } /* Singapore */
  body .pin:nth-child(7 of .pin) { left: calc(94.345vw - 16px); top: calc(93.750vw - 42px); } /* Labuan */
}
@media (min-width: 641px) and (max-width: 1024px) {
  /* Bhutan's label sits under its dot so it clears the section intro */
  body .pin:nth-child(1 of .pin) .pin-line { display: none; }
  body .pin:nth-child(1 of .pin) .pin-label { left: -16px !important; top: 66px; }
}

/* ---------- footer: brand block (logo, blurb, socials) left; link columns right; copyright + legal below ---------- */
.footer-v2 .footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 80px; }
.footer-v2 .footer-brand { flex: 0 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.footer-v2 .footer-blurb { margin: 0; max-width: 400px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.footer-v2 .footer-brand .socials { display: flex; gap: 16px; }
.footer-v2 .footer-cols { flex: 0 1 auto; justify-content: flex-end; gap: 96px; }
.footer-v2 .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-v2 .footer-bottom .legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
@media (max-width: 1024px) {
  .footer-v2 .footer-top { flex-direction: column; gap: 48px; }
  .footer-v2 .footer-brand { flex: none; }
  .footer-v2 .footer-cols { justify-content: flex-start; gap: 64px; }
}
@media (max-width: 640px) {
  .footer-v2 .footer-blurb { font-size: 15px; }
  .footer-v2 .footer-cols { flex-direction: column; gap: 40px; }
  .footer-v2 .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-end { flex-direction: row; }
}
/* footer blurb: two lines on desktop */
@media (min-width: 1025px) {
  .footer-v2 .footer-brand { flex: 0 1 580px; }
  .footer-v2 .footer-blurb { max-width: 580px; }
}

/* ---------- growth journey: tall stage cards in a row (scrolls sideways) ---------- */
.journey .journey-pin { display: flex; flex-direction: column; align-items: center; gap: 48px; width: 100%; }
.journey .steps {
  display: flex; flex-direction: row; align-items: stretch; gap: 24px;
  width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.journey .steps::-webkit-scrollbar { display: none; }
.journey .step {
  flex: 0 0 360px; width: 360px; height: 480px; padding: 32px; border-radius: 16px;
  scroll-snap-align: start; cursor: default;
}
.journey .step::before { content: none; }
.journey .step::after { background: linear-gradient(180deg, rgba(8, 49, 42, 0.35) 0%, rgba(8, 49, 42, 0) 35%, rgba(8, 49, 42, 0.55) 60%, rgba(8, 49, 42, 0.95) 100%); }
.journey .step-text { flex: 1 1 auto; width: 100%; white-space: normal; gap: 10px; }
.journey .step-num { margin-bottom: auto; }
.journey .step-num::after { content: var(--total, " / 08"); }
.journey .step-text .t-headline { font-size: 30px; line-height: 1.15; }
.journey .step-text .t-body { color: rgba(255, 255, 255, 0.85); }
.journey-progress { display: none; }

/* desktop: the stage pins and the row is driven by scroll (js/main.js) */
.journey.is-hscroll { padding-left: 0; padding-right: 0; }
.journey.is-hscroll .journey-track { position: relative; }
.journey.is-hscroll .journey-pin {
  position: sticky; top: 0; height: 100vh; justify-content: center; overflow: hidden;
  padding: 88px 0 56px;
}
.journey.is-hscroll .section-head { padding: 0 calc(var(--gutter) + var(--edge)); }
.journey.is-hscroll .steps {
  overflow: visible; scroll-snap-type: none; will-change: transform;
  padding: 12px calc(var(--gutter) + var(--edge));
  height: min(480px, calc(100vh - 380px)); min-height: 380px;
}
.journey.is-hscroll .step { height: 100%; }
.journey.is-hscroll .step-bg { transition: filter 0.5s ease, scale 0.8s cubic-bezier(0.22, 1, 0.36, 1); filter: grayscale(0.6) brightness(0.55); }
.journey.is-hscroll .step { transition: translate 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease; }
.journey.is-hscroll .step-text { opacity: 0.7; transition: opacity 0.4s ease; }
.journey.is-hscroll .step.is-active { translate: 0 -10px; box-shadow: 0 24px 48px rgba(8, 49, 42, 0.28); }
.journey.is-hscroll .step.is-active .step-bg { filter: none; scale: 1.04; }
.journey.is-hscroll .step.is-active .step-text { opacity: 1; }
.journey.is-hscroll .journey-progress {
  display: block; width: min(320px, 40%); height: 3px; border-radius: 3px; overflow: hidden;
  background: color-mix(in srgb, var(--text-heading) 18%, transparent);
}
.journey.is-hscroll .journey-progress span { display: block; height: 100%; background: var(--bg-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* tablet: swipe the row */
@media (max-width: 1024px) {
  .journey .step { flex-basis: 300px; width: 300px; height: 420px; }
}
.journey.is-hscroll { padding-top: 0; padding-bottom: 0; }
.journey .step-text .t-body { min-height: 2.6em; }
@media (max-width: 640px) {
  /* growth journey on phones: swipe the stage cards, next card peeks in */
  html body .journey { display: flex; padding: 64px 0; gap: 32px; }
  html body .journey .journey-pin { gap: 32px; }
  html body .journey .section-head { padding: 0 var(--gutter); gap: 16px; }
  html body .journey .section-head h2 { white-space: normal; }
  html body .journey .steps, html body .journey .steps.m-carousel { margin: 0; width: 100%; padding: 0 var(--gutter); gap: 12px; scroll-padding-left: var(--gutter); }
  html body .journey .step, html body .m-carousel.steps > .step { flex: 0 0 78vw; width: 78vw; height: 420px; padding: 24px; }
  html body .journey .step-text .t-headline { font-size: 26px; }
}

/* growth journey cards: "Stage 01" only, smaller type, lighter fade, photo centred */
.journey .step-num::after { content: none; }
.journey .step-num { font-size: 13px; letter-spacing: 1.8px; }
.journey .step-text .t-headline { font-size: 24px; line-height: 1.2; }
.journey .step-text .t-body { font-size: 15px; line-height: 1.4; }
.journey .step::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%); }
.journey .step-bg { object-fit: cover; object-position: 50% 50%; }
@media (max-width: 640px) {
  html body .journey .step-text .t-headline { font-size: 22px; }
}
.journey.is-hscroll .step:not(.is-active) .step-bg { filter: grayscale(0.5) brightness(0.5); }
.journey .step-text { gap: 4px; } .journey .step-num { margin-bottom: auto; padding-bottom: 6px; }
.journey .step-bg { object-position: 50% 50%; } /* photos are pre-cropped 1:1 around the subject */
@media (max-width: 1024px) {
  /* growth journey (swipe): no dots; the card in view is active, the rest dimmed */
  .journey .steps + .m-dots { display: none !important; }
  .journey .step-bg { transition: filter 0.4s ease; }
  .journey .step:not(.is-active) .step-bg { filter: grayscale(0.5) brightness(0.5); }
  .journey .step:not(.is-active) .step-text { opacity: 0.7; }
}
@media (max-width: 640px) {
  /* KL and Singapore sit very close at phone scale: separate the dots and labels (pin zoom is 0.6) */
  body .pin:nth-child(4 of .pin) { translate: -10px -16px; }                 /* Malaysia up-left */
  body .pin:nth-child(6 of .pin) { translate: 6px 6px; }                     /* Singapore down-right */
  body .pin:nth-child(6 of .pin) .pin-label { left: 34px !important; top: 90px; }
  body .pin:nth-child(5 of .pin) .pin-label { left: -24px !important; }    /* Indonesia label a touch left */
}

/* header: two call-to-action buttons side by side (Talk to an expert + partner link) */
.header-ctas { display: flex; align-items: center; gap: 12px; }
@media (max-width: 1024px) { .site-header .header-ctas { display: none; } }

/* header (Oct 2026): logo + menu on the left; partner text link + main button on the right */
@media (min-width: 1025px) {
  .site-header .site-nav { margin-left: 56px; margin-right: auto; }
}
.header-ctas { gap: 28px; }
.header-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-on-dark); text-decoration: none; white-space: nowrap;
  font-size: 17px; line-height: 1.3; opacity: 0.9; transition: opacity 0.2s ease;
}
.header-link .ext-icon { flex: none; opacity: 0.8; transition: translate 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .header-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .header-link:hover .ext-icon { translate: 2px -2px; }
}
.header-link:focus-visible { outline: 2px solid var(--bg-accent); outline-offset: 4px; border-radius: 4px; }
/* footer external link */
.footer-ext { display: inline-flex; align-items: center; gap: 4px; }
.footer-ext .ext-icon { opacity: 0.7; }
/* Infinity8 header link: same hover as the menu items (accent line draws in), no underline/fade */
.header-link { position: relative; opacity: 1; font-size: inherit; }
.header-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--bg-accent); scale: 0 1; transform-origin: 100% 50%;
  transition: scale 0.35s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none;
}
.header-link:hover, .header-link:focus-visible { text-decoration: none !important; opacity: 1; }
.header-link:hover::after, .header-link:focus-visible::after { scale: 1 1; transform-origin: 0% 50%; }
.header-link:focus-visible { outline: none; }

 

/* mobile menu: Talk to an expert + Infinity8 below the links */
.mobile-menu-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; } /* same pair as the desktop header */

/* ---------- homepage hero: the original walking photo (img/shared/hero.jpg via .hero), feedback Nov 2026 ---------- */
/* phones: the landscape photo is cropped to the right-hand side so both people stay in frame */
html body .home-hero::before {
  background-image: url("../img/shared/hero.jpg");
  background-image: image-set(var(--hero-avif) type("image/avif"), var(--hero-webp) type("image/webp"));
}
@media (max-width: 640px) { html body .home-hero::before { background-position: 80% center; } }
.site-header .header-ctas { gap: 12px; } /* main + secondary button sit together */

/* phones: every main button (solid and outline) is 39px tall */
@media (max-width: 640px) {
  html body .btn, html body a.btn, html body button.btn, html body span.btn, html body .btn.btn-lg {
    box-sizing: border-box; height: 39px; min-height: 0; padding-top: 0; padding-bottom: 0;
  }
}

/* regional presence (26 Oct): desktop uses map.png; pins = mint ring, dark-green dot, white label */
.presence-map-png { display: none; }
@media (min-width: 1025px) {
  .presence-map img:not(.presence-map-png) { display: none; }
  .presence-map img.presence-map-png { display: block; position: absolute; left: 0; top: 330px; width: 2416px; height: 1591px; rotate: none; scale: none; }
}
html body .pin .pin-label { background: #ffffff; color: #0b3b33; }

/* empty states: text only, no icon (27 Oct) */
.empty-state-icon { display: none !important; }

/* tablet: new map.svg, same placement as desktop scaled to the screen width (27 Oct) */
@media (min-width: 641px) and (max-width: 1024px) {
  html body .presence-map img:not(.presence-map-png) { display: none; }
  html body .presence-map img.presence-map-png { display: block; position: absolute; left: 0; top: 22.917vw; width: 167.778vw; height: 110.486vw; rotate: none; scale: none; }
}

/* light button hover: mint with dark text (dark theme had turned --bg-soft dark, hiding the label) */
html body .btn-light:hover { background: #bfe3d6; border-color: #bfe3d6; color: #08312a; }

/* header: Infinity8 partner link shown as its logo on a white pill (navy/gold logo needs a light ground) */
.header-partner { background: #ffffff; border: 1px solid #ffffff; padding: 0 18px; align-self: stretch; justify-content: center; } /* same height as "Talk to an expert" */
.header-partner img, .btn.header-partner img { width: auto; height: 22px; display: block; filter: none; }
.header-partner:hover { background: #f1f5f3; border-color: #f1f5f3; }
.site-header.on-light .header-partner { border-color: #c2d5d1; }

html.lazy-bg [data-lazy-bg]:not(.bg-in),
html.lazy-bg [data-lazy-bg]:not(.bg-in)::before { background-image: none !important; }
