/* ==========================================================================
   Queel Business Consults Ltd: site styles (round 3)
   --------------------------------------------------------------------------
   EDIT HERE: every colour, font, type size, space, radius, shadow and motion
   setting is a custom property in :root below. Components only use these
   tokens, so a change here applies everywhere.
   Brand: logo black (--c-ink) and logo red (--c-accent), with a calm slate
   secondary and a warm neutral scale.
   ========================================================================== */

/* ---------- Fonts: IBM Plex (SIL Open Font Licence, see assets/fonts/OFL.txt) ----------
   Self-hosted, Latin subset. Plex Sans is one variable file covering weights 400-700. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Var-Latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium-Latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  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;
}
/* Fallback tuned to Plex Sans metrics, so text does not shift when the web font arrives */
@font-face {
  font-family: "Plex Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 101.4%; ascent-override: 101.1%; descent-override: 27.1%; line-gap-override: 0%;
}

:root {
  /* --- Brand colours (primary hues: do not change) ---------------------- */
  --c-ink: #111418;          /* logo black, softened */
  --c-accent: #C8102E;       /* logo red, darkened slightly for text contrast */
  --c-slate: #2F4A5E;        /* calm secondary */

  /* --- Tints and shades -------------------------------------------------- */
  --c-ink-2: #172B39;        /* footer: deep slate (round 5: less black) */
  --c-ink-3: #22394A;        /* raised surfaces on dark */
  --c-deep: #1D3445;         /* dark sections, founder card: deep brand slate */
  --c-paper: #F7F4EE;        /* home hero: warm off-white */
  --c-accent-dark: #A00D24;  /* accent hover */
  --c-accent-soft: #FBE9EC;  /* accent tint */
  --c-accent-on-dark: #FF8A99; /* accent for text on dark backgrounds */
  --c-slate-soft: #E4EAEF;   /* light secondary tint */
  --c-slate-glow: rgb(70 98 122 / .5);

  /* --- Warm neutral scale ----------------------------------------------- */
  --n-0: #FFFFFF;
  --n-50: #F6F4EF;
  --n-100: #EFECE5;
  --n-200: #E6E2D9;
  --n-300: #DAD6CD;
  --n-400: #C9C4B8;
  --n-500: #8C877C;
  --n-600: #4A5360;
  --n-800: #1A1F26;

  /* --- Semantic colours --------------------------------------------------- */
  --c-bg: var(--n-50);
  --c-bg-2: var(--n-100);
  --c-surface: var(--n-0);
  --c-text: var(--n-800);
  --c-muted: var(--n-600);
  --c-line: var(--n-300);
  --c-line-strong: var(--n-400);
  --c-field: var(--n-500);      /* form field borders (3:1 against white) */
  --c-on-dark: #F3F1EC;
  --c-on-dark-muted: #C3CAD3;
  --c-on-dark-line: rgb(255 255 255 / .14);
  --c-on-dark-line-strong: rgb(255 255 255 / .32);
  --c-whatsapp: #0B7A3E;        /* darkened for contrast with white text */
  --c-whatsapp-dark: #075E30;
  --c-whatsapp-on-dark: #5BD08F; /* WhatsApp icon on the dark contact bar */
  --c-bar-bg: rgb(23 43 57 / .97);
  --c-error: #B3261E;
  --c-focus: #1F6FEB;
  --c-focus-ring: rgb(31 111 235 / .3);
  --c-success-bg: #E6F4EC; --c-success-line: #9FCDB2; --c-success-text: #0B4F2B;
  --c-error-bg: #FCEBEA;   --c-error-line: #EBA9A4;   --c-error-text: #7A1C16;
  --c-texture: rgb(47 74 94 / .07); /* faint grid lines */

  /* --- Header ----------------------------------------------------------- */
  --header-h: 4.5rem;
  --header-pad: .75rem;      /* space around the floating header */
  --header-bg: rgb(246 244 239 / .97);
  --header-bg-scrolled: rgb(246 244 239 / .8);
  --header-blur: 14px;

  /* --- Hero photo overlay (home) ----------------------------------------
     The overlay is the brand ink colour. Raise the numbers for a darker,
     softer photo; lower them to show more of the photo. Text must keep
     4.5:1 contrast: re-run the contrast check after changing these.       */
  --hero-overlay-text: .85;     /* desktop: behind the headline (left) */
  --hero-overlay-mid: .4;       /* desktop: middle */
  --hero-overlay-edge: 0;       /* desktop: right-hand edge */
  --hero-overlay-mobile: 0;     /* phones: top (rings) */
  --hero-overlay-mobile-end: .94; /* phones: where the text starts */

  /* --- Fonts ------------------------------------------------------------ */
  --f-sans: "IBM Plex Sans", "Plex Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --f-heading: var(--f-sans);
  --f-body: var(--f-sans);
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  /* --- Fluid type scale (tuned for Plex) -------------------------------- */
  --fs-xs: .75rem;
  --fs-sm: .9rem;
  --fs-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-lead: clamp(1.075rem, 1rem + .35vw, 1.25rem);
  --fs-h4: 1.075rem;
  --fs-h3: clamp(1.125rem, 1.07rem + .3vw, 1.3rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.8vw, 3.75rem);
  --fs-display: clamp(2.25rem, 1.45rem + 3.6vw, 4.35rem);
  --lh-body: 1.65; --lh-snug: 1.4; --lh-heading: 1.16; --lh-display: 1.06;
  --ls-display: -.028em; --ls-h1: -.024em; --ls-h2: -.018em; --ls-h3: -.008em; --ls-label: .1em;

  /* --- Spacing ---------------------------------------------------------- */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(4rem, 2.4rem + 6vw, 7.5rem);

  /* --- Layout: one 12-column grid -------------------------------------- */
  --w-max: 76rem;
  --w-text: 42rem;           /* about 65-75 characters per line */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --grid-gap: clamp(1.25rem, 2.2vw, 2rem);
  --split-gap: clamp(2rem, 5vw, 5rem);

  /* --- Shape and depth ------------------------------------------------- */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --bw: 1px; --bw-strong: 2px; --bw-accent: 3px;
  --shadow-rgb: 17 20 24;
  --shadow-xs: 0 1px 2px rgb(var(--shadow-rgb) / .05);
  --shadow-sm: 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 4px 12px rgb(var(--shadow-rgb) / .04);
  --shadow-md: 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 10px 28px rgb(var(--shadow-rgb) / .08);
  --shadow-lg: 0 2px 4px rgb(var(--shadow-rgb) / .06), 0 22px 48px rgb(var(--shadow-rgb) / .14);
  --shadow-header: 0 1px 0 rgb(var(--shadow-rgb) / .06), 0 8px 24px rgb(var(--shadow-rgb) / .07);

  /* --- Sizes ------------------------------------------------------------ */
  --tap: 44px;               /* minimum tap target */
  --btn-h: 48px;
  --icon-sm: 18px; --icon: 22px; --icon-lg: 26px;
  --badge: 48px;
  --logo-w: 72px;
  --bar-h: 56px;             /* mobile contact bar */

  /* --- Layers ----------------------------------------------------------- */
  --z-skip: 100; --z-header: 50; --z-bar: 40; --z-top: 39;

  /* --- Motion -------------------------------------------------------------
     --motion-scale: 1 = normal, 0.5 = faster and subtler, 0 = no motion.
     Visitors who set "reduce motion" on their device never see motion.   */
  --motion-scale: 1;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: calc(160ms * var(--motion-scale));
  --dur: calc(560ms * var(--motion-scale));
  --reveal-distance: 18px;
  --lift: -4px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--header-pad) * 2 + var(--s-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: var(--fw-regular) var(--fs-base)/var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-heading); line-height: var(--lh-heading); color: var(--c-ink); margin: 0 0 .55em; font-weight: var(--fw-semibold); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-h1); line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: var(--ls-h3); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
a { color: var(--c-slate); text-underline-offset: .2em; text-decoration-thickness: var(--bw); }
a:hover { color: var(--c-accent-dark); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: var(--r-xs); }
strong { color: var(--c-ink); font-weight: var(--fw-semibold); }
main:focus { outline: none; }
figure { margin: 0; }
address { font-style: normal; }

.container { width: min(100% - 2 * var(--gutter), var(--w-max)); margin-inline: auto; }
.narrow { max-width: var(--w-text); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: var(--z-skip);
  background: var(--c-ink); color: var(--n-0); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: var(--fw-semibold);
}
.skip-link:focus { top: var(--s-4); color: var(--n-0); }

/* 12-column grid utility. Named layouts below use the same columns. */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }

/* Small technical labels: IBM Plex Mono */
.eyebrow, .card-tag, .tl-kind, .sub-h, .jump-nav h2, .site-footer h2, .cred-band-label, .mono {
  font-family: var(--f-mono); font-weight: var(--fw-medium); letter-spacing: var(--ls-label); text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs); line-height: 1.3; color: var(--c-accent); margin: 0 0 var(--s-4);
}
.eyebrow::before { content: ""; width: 1.75rem; height: var(--bw-strong); background: currentColor; flex: none; }
.lead { font-size: var(--fs-lead); color: var(--c-muted); line-height: 1.6; }
.muted { color: var(--c-muted); }

/* Measurement "ruler" motif: a precision tick line, used as a divider */
.ruler {
  height: 10px; border: 0; margin: 0; opacity: .5;
  background:
    repeating-linear-gradient(90deg, var(--c-line) 0 1px, transparent 1px 12px) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--c-muted) 0 1px, transparent 1px 60px) bottom / 100% 10px no-repeat;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */
/* Round 5: a floating, rounded "island" header with a sliding pill indicator. */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  padding: var(--header-pad) 0;
  background: transparent;
}
.header-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: var(--header-h); padding-inline: var(--s-4) var(--s-2);
  background: rgb(255 255 255 / .78); border: 1px solid rgb(47 74 94 / .1); border-radius: var(--r-xl);
  box-shadow: 0 1px 2px rgb(29 52 69 / .05), 0 8px 28px rgb(29 52 69 / .06);
  -webkit-backdrop-filter: saturate(1.5) blur(var(--header-blur)); backdrop-filter: saturate(1.5) blur(var(--header-blur));
  transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.site-header.is-scrolled .header-inner { background: rgb(255 255 255 / .88); box-shadow: 0 1px 2px rgb(29 52 69 / .06), 0 14px 36px rgb(29 52 69 / .12); }
/* reading progress: a thin red line along the bottom of the header (main.js sets --progress) */
.scroll-progress {
  position: absolute; left: var(--s-5); right: var(--s-5); bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: var(--c-accent); transform-origin: left center; transform: scaleX(var(--progress, 0));
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--c-ink); min-height: var(--tap); }
.brand img { width: var(--logo-w); height: auto; }
.brand-block { position: relative; }
.brand-name { font-family: var(--f-heading); font-weight: var(--fw-bold); font-size: 1.45rem; letter-spacing: -.015em; line-height: 1.12; }
/* The tagline sits outside the logo link, so the link's accessible name is exactly "Queel Business Consults Ltd, home page" */
.brand-tag {
  position: absolute; left: calc(var(--logo-w) + var(--s-3)); top: calc(50% + .55rem);
  font: var(--fw-medium) .72rem/1 var(--f-mono); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-muted); white-space: nowrap; pointer-events: none;
}
@media (min-width: 1001px) { .brand-name { display: block; transform: translateY(-.5rem); } }

.nav-toggle {
  display: none; align-items: center; gap: var(--s-2); min-height: var(--tap);
  background: transparent; border: var(--bw) solid var(--c-line-strong); color: var(--c-ink);
  border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); font: var(--fw-semibold) .95rem var(--f-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: var(--bw-strong); background: currentColor; position: relative;
  transition: transform var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav li { margin: 0; position: relative; z-index: 1; }
.site-nav a {
  position: relative; display: flex; align-items: center; min-height: var(--tap); padding: var(--s-2) var(--s-4); border-radius: var(--r-pill);
  color: var(--c-ink); text-decoration: none; font-weight: var(--fw-medium); font-size: .97rem;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.site-nav a:hover { color: var(--c-accent); }
.site-nav a[aria-current="page"] { color: var(--c-accent); font-weight: var(--fw-semibold); background: var(--c-slate-soft); }
.site-nav ul.has-ind a[aria-current="page"] { background: transparent; }
/* the sliding pill behind the links (created by main.js) */
.nav-ind {
  position: absolute; z-index: 0; top: 50%; left: 0; height: var(--tap); width: var(--w, 0); margin-top: calc(var(--tap) / -2);
  border-radius: var(--r-pill); background: var(--c-slate-soft); box-shadow: inset 0 0 0 1px rgb(47 74 94 / .08);
  transform: translateX(var(--x, 0)); opacity: var(--o, 0);
  transition: transform calc(380ms * var(--motion-scale)) var(--ease-out), width calc(380ms * var(--motion-scale)) var(--ease-out), opacity var(--dur-fast) ease;
}
.site-nav .nav-cta { margin-left: var(--s-2); }
.site-nav .nav-cta a { background: var(--c-accent); color: var(--n-0); padding-inline: var(--s-5); font-weight: var(--fw-semibold); box-shadow: 0 6px 16px rgb(200 16 46 / .25); }
.site-nav .nav-cta a:hover { background: var(--c-accent-dark); color: var(--n-0); }
.site-nav .nav-cta a[aria-current="page"] { background: var(--c-slate); color: var(--n-0); box-shadow: none; }
.nav-contact { display: none; }

@media (max-width: 1000px) {
  :root { --header-h: 4rem; --logo-w: 56px; --header-pad: .5rem; }
  .brand-name { font-size: 1.2rem; }
  .brand-tag { display: none; }
  .header-inner { padding-inline: var(--s-3) var(--s-2); border-radius: var(--r-lg); }
  .js .nav-toggle { display: inline-flex; border-radius: var(--r-pill); padding-inline: var(--s-4); background: var(--c-surface); }
  @media (max-width: 480px) {
    /* round icon button; "Menu"/"Close" stays as its accessible name */
    .js .nav-toggle { width: var(--tap); height: var(--tap); padding: 0; justify-content: center; flex: none; }
    .js .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
  .js .nav-ind, .js .scroll-progress { display: none; }
  /* Full-screen menu: sits behind the floating header */
  .js .site-nav {
    display: none; position: fixed; inset: 0; z-index: -1; height: 100dvh;
    padding: calc(var(--header-h) + var(--header-pad) * 2 + var(--s-5)) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(circle at 100% 0%, transparent 0 7rem, rgb(47 74 94 / .09) 7rem calc(7rem + 1px), transparent calc(7rem + 1px) 12rem, rgb(47 74 94 / .08) 12rem calc(12rem + 1px), transparent calc(12rem + 1px) 17rem, rgb(47 74 94 / .07) 17rem calc(17rem + 1px), transparent calc(17rem + 1px)),
      radial-gradient(30rem 20rem at 100% 0%, rgb(200 16 46 / .08), transparent 70%),
      var(--c-paper);
  }
  .js .site-nav.is-open { display: flex; flex-direction: column; }
  .js.menu-open { overflow: hidden; }
  .js.menu-open .header-inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--c-surface); }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; counter-reset: navn; }
  .no-js .site-nav ul { flex-wrap: wrap; flex-direction: row; padding: 0 0 var(--s-3); }
  .no-js .header-inner { flex-wrap: wrap; }
  .js .site-nav li:not(.nav-cta) a {
    counter-increment: navn; min-height: 4rem; padding: var(--s-3) var(--s-1); gap: var(--s-4); border-radius: 0;
    font: var(--fw-semibold) clamp(1.55rem, 1.2rem + 2.2vw, 2rem)/1.1 var(--f-heading); letter-spacing: -.02em;
    border-bottom: 1px solid rgb(47 74 94 / .14); background: transparent;
  }
  .js .site-nav li:not(.nav-cta) a::before { content: counter(navn, decimal-leading-zero); font: var(--fw-medium) .78rem/1 var(--f-mono); letter-spacing: var(--ls-label); color: var(--c-accent); min-width: 1.6rem; }
  .js .site-nav li:not(.nav-cta) a::after { content: ""; margin-left: auto; width: .65rem; height: .65rem; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); opacity: .5; transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease; }
  .js .site-nav li:not(.nav-cta) a:hover::after, .js .site-nav li:not(.nav-cta) a[aria-current="page"]::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
  .js .site-nav a[aria-current="page"] { background: transparent; }
  .js .site-nav .nav-cta { margin: var(--s-5) 0 0; }
  .js .site-nav .nav-cta a { justify-content: center; min-height: 3.4rem; font-size: 1.1rem; }
  .no-js .site-nav .nav-cta a { margin: 0; }
  .js .nav-contact { display: block; margin-top: auto; padding-top: var(--s-6); }
  .nav-contact-label { font: var(--fw-medium) .75rem/1 var(--f-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-muted); margin: 0 0 var(--s-3); }
  .nav-contact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
  .nav-contact-row a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 4.5rem;
    border-radius: var(--r-md); background: var(--c-surface); border: 1px solid rgb(47 74 94 / .14);
    color: var(--c-ink); text-decoration: none; font-weight: var(--fw-semibold); font-size: .92rem;
  }
  .nav-contact-row a svg { width: 22px; height: 22px; color: var(--c-slate); }
  .nav-contact-row a.nc-wa { background: #E7F5EC; border-color: #B7DEC5; }
  .nav-contact-row a.nc-wa svg { color: #0B7A3E; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .site-nav.is-open li, .js .site-nav.is-open .nav-contact { animation: menu-in calc(460ms * var(--motion-scale)) var(--ease-out) both; }
  .js .site-nav.is-open li:nth-child(2) { animation-delay: calc(45ms * var(--motion-scale)); }
  .js .site-nav.is-open li:nth-child(3) { animation-delay: calc(90ms * var(--motion-scale)); }
  .js .site-nav.is-open li:nth-child(4) { animation-delay: calc(135ms * var(--motion-scale)); }
  .js .site-nav.is-open li:nth-child(5) { animation-delay: calc(180ms * var(--motion-scale)); }
  .js .site-nav.is-open li:nth-child(6) { animation-delay: calc(225ms * var(--motion-scale)); }
  .js .site-nav.is-open li:nth-child(7) { animation-delay: calc(270ms * var(--motion-scale)); }
  .js .site-nav.is-open .nav-contact { animation-delay: calc(300ms * var(--motion-scale)); }
}
@keyframes menu-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Buttons: primary, secondary, ghost (plus light versions for dark areas)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-sm); border: var(--bw-strong) solid transparent;
  font: var(--fw-semibold) 1rem/1.2 var(--f-body); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  min-height: var(--btn-h);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--c-accent); color: var(--n-0); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--c-accent-dark); color: var(--n-0); }
.btn-secondary { background: var(--c-slate); color: var(--n-0); }
.btn-secondary:hover { background: var(--c-slate); color: var(--n-0); }
.btn-ghost { border-color: var(--c-line-strong); color: var(--c-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--c-ink); background: var(--c-surface); color: var(--c-ink); }
.btn-whatsapp { background: var(--c-whatsapp); color: var(--n-0); }
.btn-whatsapp:hover { background: var(--c-whatsapp-dark); color: var(--n-0); }
.btn-light { background: var(--n-0); color: var(--c-ink); }
.btn-light:hover { background: var(--c-slate-soft); color: var(--c-ink); }
.btn-ghost-light { border-color: var(--c-on-dark-line-strong); color: var(--n-0); background: rgb(255 255 255 / .04); }
.btn-ghost-light:hover { border-color: var(--n-0); background: var(--n-0); color: var(--c-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-sm { padding: var(--s-2) var(--s-4); font-size: .93rem; min-height: var(--tap); }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover, .btn-secondary:hover, .btn-whatsapp:hover, .btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn:active { transform: translateY(1px); box-shadow: none; }
}

/* Text link with an arrow that nudges on hover */
.arrow-link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-semibold); color: var(--c-ink); text-decoration-color: var(--c-accent); min-height: var(--tap); }
.arrow-link::after { content: "\2192"; display: inline-block; color: var(--c-accent); transition: transform var(--dur-fast) var(--ease); }
.section-dark .arrow-link { color: var(--n-0); }
.section-dark .arrow-link::after { color: var(--c-accent-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .arrow-link:hover::after, .card-hover:hover .arrow-link::after { transform: translateX(4px); }
}

/* ==========================================================================
   Sections, textures and dividers
   ========================================================================== */
.section { padding: var(--section-y) 0; position: relative; }
.section-alt { background: var(--c-surface); border-block: var(--bw) solid var(--c-line); }
.section-tint { background: var(--c-bg-2); isolation: isolate; }
.section-tint::before { /* faint measurement grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--c-texture) 1px, transparent 1px), linear-gradient(90deg, var(--c-texture) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.section-dark {
  background:
    radial-gradient(60rem 30rem at 100% 0%, var(--c-slate-glow), transparent 70%),
    radial-gradient(40rem 24rem at 0% 100%, rgb(200 16 46 / .12), transparent 70%),
    var(--c-deep);
  color: var(--c-on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--n-0); }
.section-dark p, .section-dark li { color: var(--c-on-dark-muted); }
.section-dark a:not(.btn) { color: var(--n-0); }
.section-dark .eyebrow { color: var(--c-accent-on-dark); }
.section-head { max-width: var(--w-text); margin-bottom: var(--s-7); }
.section-head > :last-child { margin-bottom: 0; }
.section-foot { margin-top: var(--s-7); margin-bottom: 0; }

/* ==========================================================================
   Home hero: full-bleed photo with a brand-colour fade
   ========================================================================== */
.hero-photo {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(52rem 36rem at 80% 40%, rgb(47 74 94 / .13), transparent 70%),
    radial-gradient(34rem 26rem at 4% 100%, rgb(200 16 46 / .07), transparent 70%),
    var(--c-paper);
  color: var(--c-text);
  min-height: clamp(36rem, 82vh, 50rem); display: grid; align-items: center;
  padding: clamp(3.5rem, 2rem + 5vw, 7rem) 0 clamp(4.5rem, 3rem + 5vw, 7.5rem);
  --hm-x: 77%; --hm-y: 50%; --hm-size: min(74vw, 58rem);
  --hm-line: 47 74 94;  /* ring colour (slate) */
}
/* Motion background (no photo): pulsing survey rings, a slow sweep, a soft glow
   and service chips that drift with the pointer. Decorative only (aria-hidden).
   Only transform and opacity animate; still with reduced motion; paused off-screen. */
.hero-motion { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hm-field {
  position: absolute; left: var(--hm-x); top: var(--hm-y);
  width: var(--hm-size); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24.6%, rgb(var(--hm-line) / .16) 24.6% 25%, transparent 25% 49.6%, rgb(var(--hm-line) / .14) 49.6% 50%, transparent 50% 74.7%, rgb(var(--hm-line) / .12) 74.7% 75%, transparent 75% 99.5%, rgb(var(--hm-line) / .1) 99.5% 100%, transparent 100%),
    linear-gradient(rgb(var(--hm-line) / .1), rgb(var(--hm-line) / .1)) center / 1px 100% no-repeat,
    linear-gradient(rgb(var(--hm-line) / .1), rgb(var(--hm-line) / .1)) center / 100% 1px no-repeat;
}
.hm-glow {
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgb(200 16 46 / .16) 0%, rgb(47 74 94 / .12) 40%, transparent 70%);
  filter: blur(8px);
}
.hm-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgb(47 74 94 / .02) 270deg, rgb(47 74 94 / .16) 350deg, rgb(200 16 46 / .45) 359deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, #000 60%, transparent 71%);
          mask-image: radial-gradient(circle, #000 0, #000 60%, transparent 71%);
  transform: rotate(35deg);
}
.hm-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(var(--hm-line) / .4); transform: scale(var(--s, .5)); opacity: .45; }
.hm-ring:nth-of-type(1) { --s: .22; } .hm-ring:nth-of-type(2) { --s: .46; }
.hm-ring:nth-of-type(3) { --s: .7; }  .hm-ring:nth-of-type(4) { --s: .94; }
.hm-core {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 6px rgb(200 16 46 / .16), 0 0 28px 6px rgb(200 16 46 / .3);
}
.hm-dot { position: absolute; inset: 12.5%; border-radius: 50%; transform: rotate(-60deg); }
.hm-dot::after {
  content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--c-slate); box-shadow: 0 0 0 4px rgb(47 74 94 / .15);
}
/* Service chips around the rings (desktop). They follow the pointer slightly (main.js sets --px/--py). */
.hm-chips { position: absolute; left: var(--hm-x); top: var(--hm-y); width: var(--hm-size); aspect-ratio: 1; translate: -50% -50%; }
.hm-chip {
  position: absolute; left: calc(50% + var(--cx)); top: calc(50% + var(--cy));
  translate: -50% -50%;
  transform: translate(calc(var(--px, 0) * var(--d) * 14px), calc(var(--py, 0) * var(--d) * 14px));
  transition: transform calc(600ms * var(--motion-scale)) var(--ease-out);
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .5rem .9rem .5rem .7rem; border-radius: var(--r-pill);
  background: rgb(255 255 255 / .82); border: 1px solid rgb(47 74 94 / .14);
  box-shadow: 0 10px 30px rgb(29 52 69 / .12), 0 1px 2px rgb(29 52 69 / .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: var(--fw-semibold) .86rem/1.2 var(--f-body); color: var(--c-ink);
}
.hm-chip::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 3px rgb(200 16 46 / .15); }
.hm-chip:nth-child(even)::before { background: var(--c-slate); box-shadow: 0 0 0 3px rgb(47 74 94 / .15); }
@media (max-width: 1200px) { .hm-chips { display: none; } }

.hero-photo::before { /* paper-coloured fade behind the text, so the rings never compete with it */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,
    rgb(247 244 238 / var(--hero-overlay-text)) 0%,
    rgb(247 244 238 / var(--hero-overlay-text)) 40%,
    rgb(247 244 238 / var(--hero-overlay-mid)) 60%,
    rgb(247 244 238 / var(--hero-overlay-edge)) 100%);
}
.hero-photo::after { /* faint measurement grid and ruler along the bottom edge */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgb(47 74 94 / .25) 0 1px, transparent 1px 12px) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgb(47 74 94 / .45) 0 1px, transparent 1px 60px) bottom / 100% 12px no-repeat,
    linear-gradient(rgb(47 74 94 / .05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(47 74 94 / .05) 1px, transparent 1px) 0 0 / 56px 56px;
}
.hero-photo .hero-content { grid-column: 1 / span 7; }
.hero-photo .eyebrow { color: var(--c-accent-dark); }
.hero-photo h1 { color: var(--c-ink); font-size: var(--fs-display); letter-spacing: var(--ls-display); max-width: 15ch; margin-bottom: .35em; }
.hero-photo .lead { color: var(--c-muted); max-width: 36rem; margin-bottom: var(--s-5); }
/* Highlighted words with a hand-drawn underline that draws in once */
.hl { color: var(--c-accent); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: -.06em; height: .2em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9C40 3 120 1 198 6' fill='none' stroke='%23C8102E' stroke-opacity='.35' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: left center;
}
.hero-points { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; gap: var(--s-2); color: var(--c-text); }
.hero-points li { display: flex; gap: var(--s-3); align-items: baseline; margin: 0; }
.hero-points li::before { content: ""; flex: none; width: .6rem; height: .6rem; border: var(--bw-strong) solid var(--c-accent); border-radius: 50%; transform: translateY(-.05em); }
/* Small figures row: counts up once when the page loads (main.js) */
.hero-stats { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.hero-stats li { margin: 0; display: flex; align-items: baseline; gap: .5rem; padding-left: var(--s-4); border-left: 2px solid rgb(47 74 94 / .2); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { font: var(--fw-bold) clamp(1.8rem, 1.3rem + 1.4vw, 2.4rem)/1 var(--f-heading); color: var(--c-slate); font-variant-numeric: tabular-nums; min-width: 1ch; }
.hero-stats span { font: var(--fw-medium) .78rem/1.2 var(--f-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-muted); }

@media (prefers-reduced-motion: no-preference) {
  .hm-ring { animation: hm-pulse calc(9s * var(--motion-scale)) cubic-bezier(.3, .6, .4, 1) infinite; }
  .hm-ring:nth-of-type(2) { animation-delay: calc(-2.25s * var(--motion-scale)); }
  .hm-ring:nth-of-type(3) { animation-delay: calc(-4.5s * var(--motion-scale)); }
  .hm-ring:nth-of-type(4) { animation-delay: calc(-6.75s * var(--motion-scale)); }
  .hm-sweep { animation: hm-spin calc(16s * var(--motion-scale)) linear infinite; }
  .hm-dot { animation: hm-spin calc(28s * var(--motion-scale)) linear infinite reverse; }
  .hm-glow { animation: hm-breathe calc(7s * var(--motion-scale)) ease-in-out infinite alternate; }
  .hm-core { animation: hm-beat calc(2.25s * var(--motion-scale)) ease-out infinite; }
  .hm-chip { animation: chip-in calc(700ms * var(--motion-scale)) var(--ease-out) both; animation-delay: calc(var(--d) * 260ms * var(--motion-scale)); }
  .hl::after { animation: hl-draw calc(900ms * var(--motion-scale)) var(--ease-out) 400ms both; }
}
@keyframes hm-pulse { 0% { transform: scale(.04); opacity: 0; } 12% { opacity: .8; } 100% { transform: scale(1); opacity: 0; } }
@keyframes hm-spin { to { transform: rotate(395deg); } }
@keyframes hm-breathe { from { transform: scale(.9); opacity: .65; } to { transform: scale(1.06); opacity: 1; } }
@keyframes hm-beat { 0% { transform: scale(1); } 15% { transform: scale(1.35); } 40%, 100% { transform: scale(1); } }
@keyframes chip-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes hl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-photo.is-offscreen .hero-motion * { animation-play-state: paused !important; }
@media (max-width: 1100px) {
  .hero-photo .hero-content { grid-column: 1 / span 9; }
  .hero-photo { --hero-overlay-mid: .75; --hero-overlay-edge: .45; }
}
@media (max-width: 760px) {
  .hero-photo { min-height: auto; align-items: end; padding: clamp(10rem, 48vw, 14rem) 0 var(--s-8); --hm-x: 80%; --hm-y: clamp(5.5rem, 28vw, 8.5rem); --hm-size: 120vw; }
  .hero-photo::before { background: linear-gradient(180deg, rgb(247 244 238 / var(--hero-overlay-mobile)) 0%, rgb(247 244 238 / .55) clamp(6rem, 30vw, 9rem), rgb(247 244 238 / var(--hero-overlay-mobile-end)) clamp(9.5rem, 46vw, 13.5rem)); }
  .hero-photo .hero-content { grid-column: 1 / -1; }
  .hero-photo .btn-row .btn { flex: 1 1 15rem; }
  .hero-stats { gap: var(--s-3) var(--s-4); }
}

/* ---------- Home "Sectors we serve": cover photo strip (1128 x 191) ----------
   Wide screens: the whole strip. Phones: shown taller; scrolling the page pans it
   across all four scenes (no autoplay). */
.sector-strip { position: relative; margin: 0 0 var(--s-6); border-radius: var(--r-lg); overflow: hidden; container-type: inline-size; background: var(--c-deep); box-shadow: 0 0 0 1px rgb(255 255 255 / .08), var(--shadow-lg, 0 18px 40px rgb(0 0 0 / .3)); }
.sector-strip img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  /* --pan goes from 0 to 1 as the strip scrolls up the screen (main.js), so the
     visitor's own scrolling moves it across all four scenes. Centred without JS. */
  .sector-strip img { width: auto; max-width: none; height: 9.5rem; transform: translateX(calc((100cqw - 100%) * var(--pan, .5))); will-change: transform; }
}

/* ---------- Inner page headers: light, with faint arcs and grid ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 2rem + 4.5vw, 6rem) 0 clamp(2.5rem, 1.75rem + 2.5vw, 4rem); border-bottom: var(--bw) solid var(--c-line); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 44rem; margin-bottom: 0; }
.page-hero .btn-row { margin-top: var(--s-5); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg::before { /* faint measurement grid, fading out from the top right */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--c-texture) 1px, transparent 1px), linear-gradient(90deg, var(--c-texture) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000 0%, transparent 75%);
}
.hero-bg::after { /* soft brand glow */
  content: ""; position: absolute; width: 60rem; height: 40rem; right: -20rem; top: -18rem;
  background: radial-gradient(closest-side, rgb(47 74 94 / .14), transparent);
}
.hero-arcs { position: absolute; width: 46rem; height: 46rem; right: -18rem; top: -24rem; color: var(--c-slate); opacity: .22; }
.hero-arcs g { transform-origin: 50% 50%; transform-box: view-box; }
.hero-arcs .sweep { color: var(--c-accent); }
@media (prefers-reduced-motion: no-preference) {
  .hero-arcs .arc-a { animation: spin calc(160s * var(--motion-scale)) linear infinite; }
  .hero-arcs .arc-b { animation: spin calc(240s * var(--motion-scale)) linear infinite reverse; }
  .hero-bg::after { animation: drift calc(28s * var(--motion-scale)) ease-in-out infinite alternate; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(-6rem, 4rem); } }
@media (max-width: 880px) { .hero-arcs { right: -30rem; } }

/* ==========================================================================
   Grids and cards
   ========================================================================== */
.grid { display: grid; gap: var(--grid-gap); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) ease;
}
.card-hover:hover { box-shadow: var(--shadow-lg); border-color: var(--c-line-strong); }
@media (prefers-reduced-motion: no-preference) { .card-hover:hover { transform: translateY(var(--lift)); } }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--c-muted); }
.card .arrow-link { margin-top: auto; }
.card-media { position: relative; margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-5); overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform calc(var(--dur) * 1.2) var(--ease); }
@media (prefers-reduced-motion: no-preference) { .card-hover:hover .card-media img { transform: scale(1.04); } }
.card-icon { /* line icon overlapping the bottom edge of a card photo */
  position: absolute; left: var(--s-5); bottom: calc(var(--badge) / -2); z-index: 1;
  width: var(--badge); height: var(--badge); border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--c-surface); color: var(--c-accent); box-shadow: var(--shadow-md); border: var(--bw) solid var(--c-line);
}
.card-icon svg { width: var(--icon-lg); height: var(--icon-lg); }
.card-media:has(.card-icon) { overflow: visible; }
.card-media:has(.card-icon) picture { display: block; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card-media:has(.card-icon) + h3 { margin-top: var(--s-4); }
.icon-badge {
  width: var(--badge); height: var(--badge); border-radius: var(--r-md); display: grid; place-items: center; flex: none;
  background: var(--c-accent-soft); color: var(--c-accent); margin-bottom: var(--s-4);
}
.icon-badge svg { width: var(--icon-lg); height: var(--icon-lg); }
.card-tag { font-size: var(--fs-xs); color: var(--c-accent); margin-bottom: var(--s-1); }

/* Why-work-with-us: asymmetric photo and points */
.why-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--split-gap); align-items: center; }
.why-split > .why-media { grid-column: 1 / span 5; }
.why-split > .why-body { grid-column: 6 / span 7; }
.why-media { position: relative; }
.why-media img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
.why-media::before { /* accent corner bracket */
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%; z-index: -1;
  border-right: var(--bw-accent) solid var(--c-accent); border-bottom: var(--bw-accent) solid var(--c-accent); border-radius: 0 0 var(--r-xl) 0;
}
.why-split .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .why-split > .why-media, .why-split > .why-body { grid-column: 1 / -1; }
  .why-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) { .why-split .why { grid-template-columns: 1fr; } }

.why { display: grid; gap: var(--s-6) var(--grid-gap); grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.why li { padding-top: var(--s-4); border-top: var(--bw-strong) solid var(--c-ink); margin: 0; }
.why .icon-badge { margin-top: var(--s-2); }
.why h3 { font-size: var(--fs-h4); }
.why p { color: var(--c-muted); margin: 0; font-size: .97rem; }
@media (max-width: 1080px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .why { grid-template-columns: 1fr; } }

/* ---------- Steps (engagement process) ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--grid-gap); grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.steps::before, .steps::after { /* connecting line, drawn in on scroll */
  content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: var(--bw-strong); background: var(--c-line);
}
.steps::after { background: var(--c-accent); transform-origin: left center; }
.steps li { counter-increment: step; margin: 0; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: var(--badge); height: var(--badge); border-radius: 50%;
  background: var(--c-surface); border: var(--bw-strong) solid var(--c-accent); color: var(--c-accent);
  font: var(--fw-medium) .9rem var(--f-mono); margin-bottom: var(--s-4); position: relative; z-index: 1;
}
.steps h3 { font-size: var(--fs-h4); margin-bottom: var(--s-1); }
.steps p { margin: 0; color: var(--c-muted); font-size: .96rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before, .steps::after { left: 23px; right: auto; top: 24px; bottom: 24px; width: var(--bw-strong); height: auto; transform-origin: center top; }
  .steps li { padding-left: 4.25rem; min-height: var(--badge); }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Timeline (About) ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: var(--bw-strong); background: var(--c-line); }
.timeline::after { background: var(--c-accent); transform-origin: center top; }
.timeline li { position: relative; margin: 0 0 var(--s-4); padding: var(--s-4) var(--s-5); background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(-2.25rem + 3px); top: 1.35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--c-surface); border: var(--bw-accent) solid var(--c-accent); z-index: 1; }
.timeline h3 { font-size: var(--fs-h4); margin-bottom: var(--s-1); }
.timeline p { margin: 0; color: var(--c-muted); font-size: .96rem; }
.tl-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-bottom: var(--s-1); }
.tl-kind { font-size: .7rem; color: var(--c-slate); }
.tag-confirm { font: var(--fw-medium) .72rem var(--f-mono); padding: .15rem .55rem; border-radius: var(--r-pill); background: var(--c-slate-soft); color: var(--c-slate); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--split-gap); align-items: start; }
.founder > :first-child { grid-column: 1 / span 4; }
.founder > :last-child { grid-column: 5 / span 8; }
.founder img { border-radius: var(--r-lg); width: 100%; }
.founder-title { color: var(--c-muted); font-weight: var(--fw-semibold); margin-top: -.3rem; }
@media (max-width: 960px) { .founder > :first-child { grid-column: 1 / span 5; } .founder > :last-child { grid-column: 6 / span 7; } }
@media (max-width: 760px) { .founder > :first-child, .founder > :last-child { grid-column: 1 / -1; } .founder .founder-card { max-width: 21rem; } }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips li { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); border: var(--bw) solid var(--c-line); background: var(--c-surface); font-size: .95rem; color: var(--c-ink); }
.chip svg { width: var(--icon-sm); height: var(--icon-sm); flex: none; }
a.chip { text-decoration: none; min-height: var(--tap); transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease); }
a.chip:hover { border-color: var(--c-ink); color: var(--c-ink); }
.section-dark .chip { background: rgb(255 255 255 / .04); border-color: var(--c-on-dark-line-strong); color: var(--n-0); }
.section-dark .chip svg { color: var(--c-accent-on-dark); }
.section-dark a.chip:hover { background: var(--n-0); color: var(--c-ink); }
.section-dark a.chip:hover svg { color: var(--c-accent); }
@media (prefers-reduced-motion: no-preference) { a.chip:hover { transform: translateY(-2px); } }
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .cred-list { grid-template-columns: 1fr; } }
.cred-list li { background: var(--c-surface); border: var(--bw) solid var(--c-line); border-left: var(--bw-accent) solid var(--c-slate); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); margin: 0; }
.cred-list span { display: block; color: var(--c-muted); font-size: .92rem; }

/* ---------- Lists ---------- */
.tick-list { list-style: none; padding: 0; margin: 0 0 1em; }
.tick-list li { position: relative; padding-left: var(--s-5); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: var(--bw-strong); background: var(--c-accent); }
.q-list { list-style: none; padding: 0; margin: 0 0 1em; }
.q-list li { position: relative; padding-left: 1.6rem; color: var(--c-ink); }
.q-list li::before { content: "?"; position: absolute; left: 0; top: 0; font: var(--fw-medium) 1rem/1.65 var(--f-mono); color: var(--c-accent); }

/* ---------- Values ---------- */
.values { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.values li { margin: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-surface); border: var(--bw) solid var(--c-line); }
.values h3 { font-size: var(--fs-h4); display: flex; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-1); }
.value-initial { font: var(--fw-medium) 1.6rem/1 var(--f-mono); color: var(--c-accent); }
.values p { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* ---------- Notes ---------- */
.note {
  display: flex; gap: var(--s-3); align-items: flex-start;
  font-size: .95rem; color: var(--c-ink); background: var(--c-slate-soft); border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4); margin: var(--s-4) 0;
}
.note svg { flex: none; width: 20px; height: 20px; color: var(--c-slate); margin-top: .18rem; }
.note p { margin: 0; }

/* ==========================================================================
   Services page
   ========================================================================== */
.services-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--split-gap); align-items: start; }
.services-layout > .jump-nav { grid-column: 1 / span 3; }
.services-layout > :last-child { grid-column: 4 / span 9; min-width: 0; }
.jump-nav { position: sticky; top: calc(var(--header-h) + var(--header-pad) * 2 + var(--s-5)); }
.jump-nav h2 { font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: var(--s-3); }
.jump-nav ol { list-style: none; margin: 0; padding: 0; border-left: var(--bw-strong) solid var(--c-line); }
.jump-nav li { margin: 0; }
.jump-nav a {
  display: flex; align-items: center; min-height: var(--tap); padding: var(--s-1) var(--s-4); margin-left: calc(var(--bw-strong) * -1); border-left: var(--bw-strong) solid transparent;
  color: var(--c-muted); text-decoration: none; font-size: .95rem; line-height: 1.3;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.jump-nav a:hover { color: var(--c-ink); background: var(--c-surface); }
.jump-nav a[aria-current="true"] { color: var(--c-accent); border-left-color: var(--c-accent); font-weight: var(--fw-semibold); }
@media (max-width: 1024px) {
  .services-layout > .jump-nav, .services-layout > :last-child { grid-column: 1 / -1; }
  .jump-nav { position: static; background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); }
  .jump-nav ol { border: 0; columns: 2 15rem; column-gap: var(--s-5); }
  .jump-nav a { padding-left: 0; border: 0; break-inside: avoid; }
}
.service { padding: var(--s-8) 0; border-top: var(--bw) solid var(--c-line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service-head { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-4); }
.service-head .icon-badge { margin: 0; }
.service-head h2 { margin: 0; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.95rem); }
.service-media { margin: var(--s-5) 0; }
.service-media img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 25%; }
.service-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); margin-top: var(--s-5); }
@media (max-width: 760px) { .service-cols { grid-template-columns: 1fr; } }
.sub-h { font-size: .74rem; line-height: 1.3; color: var(--c-slate); margin: 0 0 var(--s-3); }
.enquire { margin-top: var(--s-5); padding: var(--s-5); background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-md); }
.enquire p { margin: 0 0 var(--s-3); font-weight: var(--fw-semibold); color: var(--c-ink); }
.back-top-link { display: inline-flex; align-items: center; min-height: var(--tap); font-size: .9rem; margin-top: var(--s-2); }

/* ==========================================================================
   Sectors page
   ========================================================================== */
.sector { padding: var(--s-8) 0; border-top: var(--bw) solid var(--c-line); }
.sector:first-child { border-top: 0; padding-top: 0; }
.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); margin: var(--s-5) 0; }
@media (max-width: 960px) { .sector-grid { grid-template-columns: 1fr; } }
.sector-grid > div { background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--shadow-xs); }
.sector > p { max-width: var(--w-text); }
.norm-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--split-gap); align-items: start; }
@media (max-width: 960px) { .norm-box { grid-template-columns: 1fr; } }
.diagram { background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-md); padding: var(--s-5); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: var(--fs-sm); color: var(--c-muted); margin-top: var(--s-3); }

/* ==========================================================================
   FAQ and glossary
   ========================================================================== */
.faq { display: grid; gap: var(--s-3); }
.faq details { background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-md); transition: box-shadow var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.faq details[open] { border-color: var(--c-line-strong); box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); min-height: 3.5rem; font: var(--fw-semibold) 1.05rem/var(--lh-snug) var(--f-body); color: var(--c-ink); border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: var(--bw-strong) solid var(--c-accent); border-bottom: var(--bw-strong) solid var(--c-accent);
  transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-fast) var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--c-accent-dark); }
.faq-body { padding: 0 var(--s-5) var(--s-5); }
.faq-body p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq-body { animation: faq-in calc(280ms * var(--motion-scale)) var(--ease); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); margin: 0; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }
.glossary div { padding: var(--s-4) 0; border-top: var(--bw) solid var(--c-line); }
.glossary dt { font: var(--fw-semibold) 1.05rem var(--f-heading); color: var(--c-ink); margin-bottom: var(--s-1); }
.glossary dd { margin: 0; color: var(--c-muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--split-gap); align-items: start; }
.contact-layout > :first-child { grid-column: 1 / span 5; min-width: 0; }
.contact-layout > :last-child { grid-column: 6 / span 7; min-width: 0; }
@media (max-width: 960px) { .contact-layout > :first-child, .contact-layout > :last-child { grid-column: 1 / -1; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: var(--s-3); }
.contact-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem var(--s-4); align-items: center;
  background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: 0; box-shadow: var(--shadow-xs);
}
.contact-item .ci-icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--c-slate-soft); color: var(--c-ink); }
.contact-item .ci-icon svg { width: var(--icon); height: var(--icon); }
.contact-item h3 { font-size: var(--fs-h4); margin: 0; }
.contact-item p { margin: 0; color: var(--c-muted); overflow-wrap: break-word; }
.contact-item .btn { grid-column: 1 / -1; margin-top: var(--s-3); }
.info-card h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.info-card address { margin-bottom: var(--s-4); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) 0; border-bottom: var(--bw) solid var(--c-line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: var(--fw-semibold); color: var(--c-ink); }
.hours dd { margin: 0; color: var(--c-muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Form ---------- */
.form-card { background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-xl); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-card > h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: var(--fw-semibold); color: var(--c-ink); margin-bottom: var(--s-1); }
.field .req { color: var(--c-accent); }
.field .hint { display: block; font-size: .87rem; color: var(--c-muted); margin-top: var(--s-1); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--c-text); background: var(--n-0);
  border: 1.5px solid var(--c-field); border-radius: var(--r-sm); padding: var(--s-3) var(--s-3); min-height: var(--btn-h);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-focus); box-shadow: 0 0 0 3px var(--c-focus-ring); }
.field [aria-invalid="true"] { border-color: var(--c-error); border-width: var(--bw-strong); }
.field-error { display: block; color: var(--c-error); font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-top: var(--s-1); }
.field-error:empty { display: none; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; }
.check input { width: 24px; height: 24px; min-height: 0; margin: .15rem 0 0; flex: none; accent-color: var(--c-accent); }
.check label { font-weight: var(--fw-medium); margin: 0; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-top: var(--s-5); }
.form-actions .hint { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }
.spinner { width: 1em; height: 1em; border: var(--bw-strong) solid rgb(255 255 255 / .45); border-top-color: var(--n-0); border-radius: 50%; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; animation: spin 800ms linear infinite; }
.btn[aria-busy="true"] { opacity: .9; cursor: progress; }
.form-status { border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.form-status[hidden] { display: none; }
.form-status:focus { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.form-status.is-success { background: var(--c-success-bg); border: var(--bw) solid var(--c-success-line); color: var(--c-success-text); }
.form-status.is-error { background: var(--c-error-bg); border: var(--bw) solid var(--c-error-line); color: var(--c-error-text); }
.form-status .status-title { font: var(--fw-bold) 1.08rem var(--f-body); margin: 0 0 var(--s-1); }
.form-status p { margin: 0 0 var(--s-2); }
.form-status p:last-child { margin: 0; }
.form-status .btn-row { margin-top: var(--s-2); }
/* No-JavaScript form results: the server redirects to #enquiry-sent or #enquiry-error */
.form-status.static { display: none; }
.form-status.static:target { display: block; }

/* ---------- Privacy page ---------- */
.prose { max-width: var(--w-text); }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.6rem); margin-top: var(--s-6); }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--grid-gap); align-items: center; }
.cta-band > :first-child { grid-column: 1 / span 6; }
.cta-band > .btn-row { grid-column: 7 / span 6; justify-content: flex-end; }
.cta-band h2 { margin-bottom: var(--s-3); }
@media (max-width: 960px) { .cta-band > :first-child, .cta-band > .btn-row { grid-column: 1 / -1; justify-content: flex-start; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--c-ink-2); color: var(--c-on-dark-muted); padding: var(--s-8) 0 var(--s-5); font-size: .96rem; }
.site-footer::before { /* measurement ruler along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .12) 0 1px, transparent 1px 12px) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgb(255 255 255 / .26) 0 1px, transparent 1px 60px) top / 100% 10px no-repeat;
}
.site-footer a { color: var(--c-on-dark); text-decoration-color: rgb(255 255 255 / .35); }
.site-footer a:hover { color: var(--n-0); text-decoration-color: var(--c-accent-on-dark); }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--grid-gap); }
.footer-grid > :nth-child(1) { grid-column: span 4; }
.footer-grid > :nth-child(2) { grid-column: span 3; }
.footer-grid > :nth-child(3), .footer-grid > :nth-child(4) { grid-column: span 2; }
.footer-grid > :nth-child(4) { grid-column: 11 / span 2; }
@media (max-width: 1080px) { .footer-grid > :nth-child(4) { grid-column: span 3; } .footer-grid > :nth-child(3) { grid-column: span 2; } .footer-grid > :nth-child(1) { grid-column: span 4; } .footer-grid > :nth-child(2) { grid-column: span 3; } }
@media (max-width: 960px) { .footer-grid > * { grid-column: span 6 !important; } }
@media (max-width: 560px) { .footer-grid > * { grid-column: 1 / -1 !important; } }
.footer-brand { display: flex; align-items: center; gap: var(--s-3); color: var(--n-0); font-family: var(--f-heading); font-weight: var(--fw-bold); font-size: 1.4rem; letter-spacing: -.01em; margin-bottom: var(--s-3); }
.footer-brand img { width: var(--logo-w); height: auto; }
.site-footer h2 { font-size: var(--fs-xs); color: var(--c-on-dark-muted); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-1); }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-bottom { border-top: var(--bw) solid var(--c-on-dark-line); margin-top: var(--s-7); padding-top: var(--s-5); font-size: .87rem; display: grid; gap: var(--s-2); }
.footer-bottom p { margin: 0; }
.footer-bottom .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); }
.footer-bottom .row p:last-child { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

/* Footer contact: Email / Call / WhatsApp with icons */
.site-footer li a.f-contact { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; text-decoration: none; }
.f-ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); color: var(--n-0);
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.f-ico svg { width: 18px; height: 18px; }
.f-kind { display: block; font: var(--fw-medium) .7rem/1.3 var(--f-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-on-dark-muted); }
.f-contact:hover .f-ico { background: var(--c-accent); border-color: var(--c-accent); transform: translateY(-1px); }
.f-contact.f-wa:hover .f-ico { background: #0B7A3E; border-color: #0B7A3E; }
.f-contact > span:last-child { text-decoration: underline; text-decoration-color: rgb(255 255 255 / .3); text-underline-offset: 3px; overflow-wrap: anywhere; }
.f-contact:hover > span:last-child { text-decoration-color: var(--c-accent-on-dark); }

/* Social links: rendered by assets/js/main.js only when a URL is set in site-config.js */
.social-links { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }
.social-links:empty { display: none; }
.social-links a { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; border: var(--bw) solid currentColor; }
.social-links svg { width: 20px; height: 20px; }

/* ---------- Mobile contact bar: Email / Call / WhatsApp (sits below content, never over it) ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
    background: var(--c-bar-bg); border-top: var(--bw) solid var(--c-on-dark-line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: var(--s-2); padding: var(--s-1);
    color: var(--n-0); text-decoration: none; font-size: .88rem; font-weight: var(--fw-semibold); min-height: var(--bar-h);
  }
  .mobile-cta a + a { border-left: var(--bw) solid var(--c-on-dark-line); }
  .mobile-cta svg { width: var(--icon-sm); height: var(--icon-sm); }
  .mobile-cta a:last-child svg { color: var(--c-whatsapp-on-dark); }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: var(--z-top); width: var(--btn-h); height: var(--btn-h); border-radius: 50%;
  display: grid; place-items: center; background: var(--c-slate); color: var(--n-0); box-shadow: var(--shadow-lg);
  border: var(--bw-strong) solid var(--n-0);
  text-decoration: none; transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease), background-color var(--dur-fast) ease;
}
.to-top svg { width: var(--icon); height: var(--icon); }
.to-top:hover { background: var(--c-accent); color: var(--n-0); }
.js .to-top:not(.is-visible) { opacity: 0; transform: translateY(12px); pointer-events: none; }
.js .to-top:not(.is-visible):focus-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) { .to-top { bottom: calc(var(--bar-h) + var(--s-4) + env(safe-area-inset-bottom)); right: var(--s-3); width: var(--tap); height: var(--tap); } }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; align-content: center; }

/* ==========================================================================
   Founder card
   ========================================================================== */
.founder-card {
  position: relative; background: var(--c-deep); color: var(--c-on-dark); border-radius: var(--r-xl); padding: var(--s-3) var(--s-3) 0;
  box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate;
}
.founder-card::before { /* soft slate glow behind the portrait */
  content: ""; position: absolute; inset: -30% -40% auto auto; width: 90%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(closest-side, var(--c-slate-glow), transparent);
}
.founder-card::after { /* measurement ruler along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .18) 0 1px, transparent 1px 10px) bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgb(255 255 255 / .35) 0 1px, transparent 1px 50px) bottom / 100% 10px no-repeat;
}
.fc-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.fc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 0; box-shadow: none; }
.fc-photo::after { /* gentle vignette so the portrait sits in the dark card */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgb(29 52 69 / .45) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
}
.fc-body { padding: var(--s-4) var(--s-2) var(--s-5); }
.fc-name { font: var(--fw-semibold) 1.4rem/1.2 var(--f-heading); letter-spacing: -.015em; color: var(--n-0); margin: 0 0 var(--s-1); }
.fc-role { color: var(--c-on-dark-muted); font-weight: var(--fw-medium); font-size: .95rem; margin: 0 0 var(--s-3); padding-bottom: var(--s-3); border-bottom: var(--bw-strong) solid var(--c-accent); display: inline-block; }
.fc-creds { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fc-creds li { margin: 0; font: var(--fw-medium) .7rem/1.3 var(--f-mono); letter-spacing: .02em; padding: .3rem .6rem; border-radius: var(--r-pill); border: var(--bw) solid var(--c-on-dark-line-strong); color: var(--n-0); }
.fc-link {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); margin-top: var(--s-4);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); border: var(--bw) solid var(--c-on-dark-line-strong);
  color: var(--n-0); font-weight: var(--fw-semibold); font-size: .9rem; text-decoration: none;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.fc-link svg { width: var(--icon-sm); height: var(--icon-sm); flex: none; }
.fc-link:hover { background: var(--n-0); border-color: var(--n-0); color: var(--c-ink); }
.fc-link:focus-visible { outline-color: var(--n-0); }
@media (min-width: 761px) { .founder-aside { position: sticky; top: calc(var(--header-h) + var(--header-pad) * 2 + var(--s-5)); } }

/* ---------- Qualifications band (home) ---------- */
.cred-band { background: var(--c-slate-soft); color: var(--c-ink); padding: var(--s-5) 0; border-block: var(--bw) solid rgb(47 74 94 / .14); }
.cred-band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); }
.cred-band-label { font-size: var(--fs-xs); line-height: 1.3; color: var(--c-accent); margin: 0; }
.cred-band-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.cred-band-list li { margin: 0; color: var(--c-ink); font-weight: var(--fw-medium); font-size: .95rem; display: flex; align-items: center; gap: var(--s-2); }
.cred-band-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent-on-dark); flex: none; }

/* ---------- Vision and values (home) ---------- */
.vision { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--split-gap); align-items: center; }
.vision > :first-child { grid-column: 1 / span 7; }
.vision > :last-child { grid-column: 8 / span 5; }
@media (max-width: 960px) { .vision > :first-child, .vision > :last-child { grid-column: 1 / -1; } }
.vision-quote { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); line-height: 1.25; font-weight: var(--fw-medium); letter-spacing: -.02em; border-left: 4px solid var(--c-accent); padding-left: var(--s-5); margin-bottom: var(--s-5); }
.radiant { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--s-2); }
.radiant li { margin: 0; display: flex; align-items: center; gap: var(--s-3); background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-md); padding: var(--s-2) var(--s-3); box-shadow: var(--shadow-xs); }
.ri-letter { font: var(--fw-medium) 1.5rem/1 var(--f-mono); color: var(--c-accent); width: 1.4rem; text-align: center; }
.ri-word { font-weight: var(--fw-semibold); color: var(--c-ink); font-size: .93rem; line-height: 1.25; }

/* Phones: 12-column layouts collapse to one column (twelve tracks plus gaps do not fit a 360px screen) */
@media (max-width: 760px) {
  .grid-12, .why-split, .founder, .services-layout, .contact-layout, .cta-band, .vision { grid-template-columns: minmax(0, 1fr); }
  .grid-12 > *, .why-split > *, .founder > *, .services-layout > *, .contact-layout > *, .cta-band > *, .vision > * { grid-column: 1 / -1 !important; }
}

/* ==========================================================================
   Scroll reveal
   Content is visible by default. main.js adds .motion-ok to <html> only when
   JavaScript runs AND the visitor has not asked for reduced motion.
   Only opacity and transform are animated.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .motion-ok [data-reveal] { opacity: 0; transform: translateY(var(--reveal-distance)); }
  .motion-ok [data-reveal].is-visible {
    opacity: 1; transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    transition-delay: calc(var(--reveal-i, 0) * 80ms * var(--motion-scale));
  }
  .motion-ok .steps[data-draw]::after { transform: scaleX(0); }
  .motion-ok .timeline[data-draw]::after { transform: scaleY(0); }
  .motion-ok [data-draw].is-drawn::after { transform: none; transition: transform calc(1200ms * var(--motion-scale)) var(--ease) 150ms; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 960px) {
  .motion-ok .steps[data-draw]::after { transform: scaleY(0); }
  .motion-ok .steps[data-draw].is-drawn::after { transform: none; }
}

/* ---------- Reduced motion: switch everything off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hm-ring, .hm-sweep, .hm-dot, .hm-glow, .hm-core, .hm-chip, .hl::after { animation: none !important; }
  .hm-chip { transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-cta, .to-top, .site-footer, .btn-row, .hero-bg, .enquire, .hero-motion { display: none !important; }
  body { background: #fff; padding: 0; }
  .hero-photo { background: #fff; color: #000; min-height: 0; }
  .hero-photo::before, .hero-photo::after { display: none; }
  .hero-photo h1, .hero-photo .lead, .hero-photo .eyebrow, .hero-points { color: #000; }
}
