/* Self-hosted variable fonts (Space Grotesk + Inter). Browser loads only the
   latin subset for English content; latin-ext is a fallback for accented glyphs. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/inter-var-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/inter-var-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:'Space Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/space-grotesk-var-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/space-grotesk-var-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;}

/* =========================================================
   EBLEX GROUP, Demo site
   Brand palette: Black #191919 · White #D6D6D6 · Orange #FF8F1C
   Design system: "Two Worlds", Life Sciences (orange) meets
   Technology (white). Monochrome dark theme, single orange accent.
   ========================================================= */

:root {
  /* Surfaces, neutral near-black, anchored on brand black #191919 */
  --bg:        #0E0E0E;
  --bg-2:      #161616;
  --bg-3:      #191919;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* Brand, orange accent, white as the second "world" */
  --bio:    #FF8F1C;   /* life sciences  (brand orange) */
  --bio-2:  #E87A0A;
  --bio-rgb: 255, 143, 28;  /* accent as RGB for glows, swap to recolour everything */
  --tech:   #D6D6D6;   /* technology     (brand white) */
  --tech-2: #B7B7B7;
  --gold:   #FFB454;

  /* Site-wide floating-dots background (read by app.js initBgDots).
     base = the canvas fill behind the network; c1/c2 = the two node colours.
     Literal hex so getComputedStyle returns a parseable value. */
  --dots-base: #0E0E0E;
  --dots-c1:   #FF8F1C;   /* orange "world" */
  --dots-c2:   #D6D6D6;   /* white "world"  */

  /* Text, warm neutral greys, brand white #D6D6D6 */
  --text:   #ECECEC;
  --muted:  #9A9A9A;
  --muted-2:#8A8A8A;   /* >=4.5:1 on #0E0E0E for small-text WCAG AA (was #6E6E6E, 3.79:1) */
  --faint:  #555555;

  /* Gradients, orange world meets white world */
  --grad: linear-gradient(115deg, #FF8F1C 0%, #FFA64D 42%, #D6D6D6 100%);
  --grad-soft: linear-gradient(115deg, rgba(var(--bio-rgb),.16), rgba(214,214,214,.12));

  /* Type */
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 26px;

  /* Glass system: layered translucent fill plus a crisp top highlight */
  --glass-fill:      linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.022) 60%, rgba(255,255,255,.04));
  --glass-fill-dark: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015) 60%, rgba(255,255,255,.03)), rgba(16,16,16,.66);
  --glass-border:    1px solid rgba(255,255,255,.12);
  --glass-hi:        inset 0 1px 0 rgba(255,255,255,.14);
  --glass-shadow:    0 18px 48px -16px rgba(0,0,0,.6);
  --glass-blur:      blur(18px) saturate(150%);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* The base colour lives on the root so every page keeps a solid backdrop even
   where the #bgDots canvas is absent (legal / testimonials pages). On the two
   main pages the fixed dots canvas paints over this with the base + dots. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  /* Transparent so the site-wide #bgDots canvas (and the html base colour on
     pages without it) shows through. */
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Skip-to-content link: hidden until focused, then pinned top-left (WCAG 2.4.1). */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 400;
  transform: translateY(-160%); transition: transform .2s;
  background: var(--bio); color: #0E0E0E; font-weight: 700;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  font-family: var(--display); font-size: 14px;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* Site-wide interactive floating-dots background (CONTRACT A). The canvas
   paints the base colour + the particle network; it sits behind everything and
   lets clicks through. The ambient body::before glow still shows on pages that
   have no canvas; here it is simply covered by the opaque canvas fill. */
.bg-dots {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 50vh at 12% -5%, rgba(var(--bio-rgb),.10), transparent 60%),
    radial-gradient(55vw 50vh at 95% 8%, rgba(var(--bio-rgb),.12), transparent 60%),
    radial-gradient(70vw 60vh at 50% 110%, rgba(var(--bio-rgb),.08), transparent 60%);
  pointer-events: none;
}
/* Subtle grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(var(--bio-rgb),.35); color: #fff; }

/* ----------------------------- Layout ----------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; }
.section-pad { padding: clamp(72px, 11vw, 150px) 0; }

/* ----------------------------- Type ----------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--grad);
}
.eyebrow.center::before { display: none; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

h1.section-title, h2.section-title {
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 60ch;
}
/* Headings, subheads and body LEFT-align by default (feedback: global left
   alignment; markup agents drop the centring class on these blocks). The
   .center modifier keeps a block explicitly centred (e.g. CTA eyebrow). */
.section-head { margin-bottom: clamp(40px, 6vw, 68px); max-width: 760px; text-align: left; }
.section-head .eyebrow { justify-content: flex-start; }
.section-head .section-lead { margin-inline: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .section-lead { margin-inline: auto; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 15px;
  padding: 14px 24px; border-radius: 100px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--grad);
  color: var(--ink-on-bio, #191919);
  box-shadow: 0 10px 30px -10px rgba(var(--bio-rgb),.5), inset 0 0 0 1px rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(var(--bio-rgb),.6), inset 0 0 0 1px rgba(255,255,255,.3); }
.btn-ghost {
  background: var(--glass-fill);
  border: var(--glass-border);
  color: var(--text);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.30); background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); box-shadow: var(--glass-hi), 0 12px 30px -14px rgba(0,0,0,.5); }
.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ----------------------------- Nav ----------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, backdrop-filter .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass-fill-dark);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--glass-hi), 0 10px 34px -18px rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav-inner > .logo, .nav-inner > .nav-cta { flex: 0 0 auto; } /* never let the logo or CTA get squeezed into the links */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  position: relative;
  box-shadow: 0 6px 18px -6px rgba(var(--bio-rgb),.7);
}
.logo .mark::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 5px; background: var(--bg);
}
.logo .mark::before {
  content: ""; position: absolute; inset: 11px;
  border-radius: 50%; background: var(--grad); z-index: 1;
}
.logo span.dim { color: var(--muted); font-weight: 400; }
/* Brand logo image in the header (transparent wordmark) */
.nav .logo img { display: block; width: auto; height: 20px; }
body.clinical .nav .logo img { height: 34px; }   /* two-line lockup with subtitle */
/* Orange theme: swap the orange/grey wordmark for the all-black one so it reads on orange. */
.nav .logo .logo-orange { display: none; }
:root[data-theme="orange"] .nav .logo .logo-default { display: none; }
:root[data-theme="orange"] .nav .logo .logo-orange { display: block; }
@media (max-width: 600px) {
  .nav .logo img { height: 18px; }
  body.clinical .nav .logo img { height: 27px; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link {
  font-size: 14.5px; color: var(--muted); position: relative; transition: color .2s;
  white-space: nowrap; /* never wrap "Eblex Clinical" onto two lines */
}
.nav-links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--grad); transition: width .3s;
}
.nav-links a.link:hover { color: var(--text); }
.nav-links a.link:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); position: relative; display: block; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
/* The full links + CTA need room: below ~1140px switch to the hamburger so the
   bar never crowds. (The page layout itself stays desktop down to 980px.) */
@media (max-width: 1140px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 90px; padding-bottom: clamp(70px, 10vh, 130px); overflow: hidden; }
/* Smooth dissolve: the globe/net fades into the page background toward the
   foot of the hero, so it flows into the next section instead of cutting off. */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: clamp(160px, 28vh, 340px); pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg) 94%);
}
/* Clinical's hero net (#hero-canvas) rides full-bleed behind the centered text,
   with a soft radial veil so the headline stays crisp over the mesh. */
.hero > #hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
body.clinical .hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(72% 64% at 50% 46%, rgba(14,14,14,.30), rgba(14,14,14,.74) 82%);
}
/* Soft veil so text stays legible over the brightest part of the globe */
.hero-globe-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(14,14,14,0) 38%, rgba(14,14,14,.55) 78%, rgba(14,14,14,.82) 100%),
    linear-gradient(180deg, rgba(14,14,14,.35), rgba(14,14,14,0) 22%, rgba(14,14,14,0) 70%, rgba(14,14,14,.45));
}

/* Hero text column: LEFT-aligned by default (feedback 2.1 / 3.1). The metrics
   strip stays centred. The legacy --center modifier still centres everything,
   kept for any page that opts back in. */
/* No max-width override here: .hero-inner keeps the standard .wrap width so the
   hero content's left edge lines up with the nav logo (and every other section),
   not a narrower centred block. Individual elements below cap their own width. */
.hero-inner { position: relative; z-index: 2; }
.hero-inner .hero-badge,
.hero-inner h1,
.hero-inner .lead,
.hero-inner .hero-actions,
.hero-inner .hero-stats { max-width: 880px; }
.hero-inner .lead { margin-inline: 0; }
.hero-inner .hero-actions { justify-content: flex-start; }
.hero-inner .hero-stats { justify-content: space-between; width: 100%; }   /* stretched in-line with the title */
.hero-inner--center {
  margin-inline: auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-inner--center .hero-badge { margin-inline: auto; }
.hero-inner--center .lead { margin-inline: auto; } /* keep the 58ch cap, just centered */
.hero-inner--center .hero-actions { justify-content: center; }
.hero-inner--center .hero-stats { justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 100px;
  background: var(--glass-fill); border: var(--glass-border);
  box-shadow: var(--glass-hi), 0 8px 24px -14px rgba(0,0,0,.5);
  font-size: 13px; color: var(--muted); margin-bottom: 28px;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bio); box-shadow: 0 0 0 4px rgba(var(--bio-rgb),.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 3px rgba(var(--bio-rgb),.22);} 50%{ box-shadow: 0 0 0 7px rgba(var(--bio-rgb),0);} }
.hero h1 {
  font-size: clamp(40px, 7.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero p.lead {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: clamp(52px, 8vw, 84px); }
.hstat .num { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -.03em; }
.hstat .lbl { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
/* ----------------------------- Marquee ----------------------------- */
.marquee-sec { padding: clamp(38px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.marquee { display: flex; overflow: hidden; gap: 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; padding-right: 18px; flex-shrink: 0; animation: scroll-x 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }
/* CONTRACT D: once app.js takes over (js-marquee) the transform is driven in
   rAF so autoscroll and grab-to-drag share one track. Grab cursor + pan-y so a
   horizontal drag scrubs the strip while a vertical swipe still scrolls. */
.marquee.js-marquee .marquee-track { animation: none; will-change: transform; }
.marquee.is-grab { cursor: grab; touch-action: pan-y; }
.marquee.is-grab.is-dragging { cursor: grabbing; }
.marquee.is-dragging .marquee-track { user-select: none; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--display); font-size: 15px; color: var(--muted);
}
.chip .d { width: 5px; height: 5px; border-radius: 50%; background: var(--grad); }

/* ----------------------------- Two Worlds ----------------------------- */
.worlds { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.world-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: var(--glass-border); background: var(--glass-fill-dark);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s, box-shadow .4s;
}
.world-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); box-shadow: var(--glass-hi), 0 28px 60px -20px rgba(0,0,0,.7); }
.world-card .ph { position: absolute; inset: 0; z-index: 0; }
.world-card .ph img { width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: transform .8s, opacity .4s; }
.world-card:hover .ph img { transform: scale(1.06); opacity: .5; }
.world-card .ph::after { content: ""; position: absolute; inset: 0; }
.world-card.bio .ph::after { background: linear-gradient(180deg, rgba(5,7,15,.2) 0%, rgba(5,7,15,.55) 45%, rgba(5,12,24,.96) 100%), radial-gradient(70% 60% at 50% 0%, rgba(var(--bio-rgb),.18), transparent); }
.world-card.tech .ph::after { background: linear-gradient(180deg, rgba(5,7,15,.06) 0%, rgba(5,7,15,.42) 54%, rgba(5,12,24,.95) 100%), radial-gradient(70% 60% at 50% 0%, rgba(255,143,28,.13), transparent); }
/* The tech card carries a code-drawn neural-net (software/AI) motif, not a photo,
   so it reads brighter than the atmospheric bio photograph. */
.world-card.tech .ph img { opacity: .72; }
.world-card.tech:hover .ph img { opacity: .85; }
.world-card .inner { position: relative; z-index: 1; }
.world-tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.world-card.bio .world-tag { color: var(--bio); }
.world-card.tech .world-tag { color: var(--tech); }
.world-tag .ic { width: 9px; height: 9px; border-radius: 50%; }
.world-card.bio .world-tag .ic { background: var(--bio); box-shadow: 0 0 12px var(--bio); }
.world-card.tech .world-tag .ic { background: var(--tech); box-shadow: 0 0 12px var(--tech); }
.world-card h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.world-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.world-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.world-tags span { font-size: 12.5px; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }

.converge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; }
.converge .ring {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: var(--bg-2); border: 1px solid var(--line-2);
}
.converge .ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg);} }
.converge .ring .core { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 24px rgba(var(--bio-rgb),.7); }
.converge .label { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.converge .vline { position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--bio), transparent 40%, transparent 60%, var(--tech)); left: 50%; z-index: -1; }

/* ----------------------------- Feature strip ----------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  padding: 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); transition: transform .35s, border-color .35s, background .35s;
}
.feat:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--surface-2); }
.feat .fic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--line-2); }
.feat .fic svg { width: 22px; height: 22px; stroke: var(--bio); }
.feat h4 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14.5px; }

/* ----------------------------- Services ----------------------------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc {
  position: relative; padding: 38px; border-radius: var(--radius-lg);
  border: var(--glass-border); background: var(--glass-fill-dark); overflow: hidden;
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  /* D3: flex column so both service cards line up row-for-row; the models
     block is anchored to the bottom via margin-top:auto, giving the two
     cards equal heights with aligned bullet lists. */
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s, box-shadow .4s;
}
.svc-grid { align-items: stretch; }
.svc:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); box-shadow: var(--glass-hi), 0 28px 60px -20px rgba(0,0,0,.7); }
.svc .glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(80px); opacity: .14; top: -120px; right: -120px; pointer-events: none; }
.svc.a .glow { background: var(--bio); }
.svc.b .glow { background: var(--tech); }
/* The left card (Contract) carries a clean shine so the two cards read as
   uniquely different; a brighter edge + soft inner sheen, no glitter. Inset
   shadows sit under the text, so legibility is untouched. Works in both themes. */
.svc.a { border-color: rgba(255,143,28,.36);
  box-shadow: var(--glass-hi), var(--glass-shadow),
    inset 2px 2px 0 rgba(255,255,255,.34),
    inset -64px -34px 110px -58px rgba(255,255,255,.24),
    inset 0 0 0 1px rgba(255,143,28,.18),
    0 0 46px -16px rgba(255,143,28,.34); }
.svc.a:hover { box-shadow: var(--glass-hi), 0 30px 64px -20px rgba(0,0,0,.7),
    inset 2px 2px 0 rgba(255,255,255,.42),
    inset -64px -34px 110px -58px rgba(255,255,255,.28),
    inset 0 0 0 1px rgba(255,143,28,.26),
    0 0 56px -14px rgba(255,143,28,.44); }
.svc .num { font-family: var(--display); font-size: 13px; color: var(--muted-2); letter-spacing: .1em; }
.svc h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 14px 0 10px; }
/* D3: keep both card bodies a matched minimum height so the feature rows that
   follow start on the same line in each card. */
.svc > p { color: var(--muted); font-size: 15px; margin-bottom: 26px; max-width: 46ch; min-height: 3.2em; }
/* D4: the models block gets clear separation from the features above it and
   anchors to the bottom of the card so the two cards align row-for-row. */
/* Item 6: equal-height model rows so the Perm and Contract lists line up
   row-for-row across the two cards on desktop. */
.svc-models { display: grid; gap: 14px; margin-top: auto; padding-top: 28px; grid-auto-rows: 1fr; }
.model { display: flex; gap: 16px; padding: 20px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.model:hover { background: rgba(255,255,255,.05); border-color: var(--line-2); }
/* D5: the label no longer holds a rigid 116px; it can shrink/wrap on narrow
   phones so the "Fill a gap" row text never overflows its box. */
/* Feedback 2.2 / item 5: the MODEL NAME is orange in BOTH columns, the label
   and supporting text are white. One consistent colour pairing per tile. */
.model .mk, .model-name { font-family: var(--display); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; color: var(--bio); flex: 0 0 124px; min-width: 0; white-space: nowrap; }
.model .mtxt { min-width: 0; } /* D5: allow the text column to wrap instead of overflowing */
.model .mtxt h5 { font-family: var(--display); font-size: 14.5px; margin-bottom: 3px; font-weight: 600; overflow-wrap: anywhere; color: var(--text); }
.model .mtxt p { font-size: 13.5px; color: var(--text); opacity: .8; overflow-wrap: anywhere; }
/* D4: more breathing room between the stacked feature rows. */
/* Feedback: tick sits on the top line of multi-line feature text. */
.svc-feature { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; color: var(--text); font-size: 15px; line-height: 1.45; }
.svc-feature svg { width: 20px; height: 20px; stroke: var(--bio); flex-shrink: 0; margin-top: 1px; }

/* ----------------------------- Approach / timeline ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, var(--bio), var(--tech)); opacity: .4; }
/* CONTRACT C: real connecting line element (replaces the static ::before when
   present) carrying a pulse that travels through the numbered steps. */
.steps:has(.proc-line)::before { display: none; }
.proc-line {
  position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--bio), var(--tech)); opacity: .4; border-radius: 2px;
}
.proc-pulse {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%; background: var(--bio); pointer-events: none;
  box-shadow: 0 0 10px 2px rgba(var(--bio-rgb), .85), 0 0 0 4px rgba(var(--bio-rgb), .14);
}
@media (prefers-reduced-motion: no-preference) {
  .proc-pulse { animation: procTravel 4.4s cubic-bezier(.55,0,.45,1) infinite; }
}
@keyframes procTravel {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.step { padding: 0 18px; position: relative; }
.step .sn {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 19px;
  background: var(--bg-3); border: 1px solid var(--line-2); position: relative; z-index: 1;
  margin-bottom: 22px;
}
.step:hover .sn { border-color: transparent; background: var(--grad); color: #191919; box-shadow: 0 10px 30px -10px rgba(var(--bio-rgb),.6); transition: all .3s; }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ----------------------------- Sectors ----------------------------- */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sector-col { padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2); }
.sector-col .head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.sector-col .head .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; border: 1px solid var(--line-2); }
.sector-col.bio .head .ic { background: linear-gradient(135deg, rgba(var(--bio-rgb),.18), transparent); }
.sector-col.tech .head .ic { background: linear-gradient(135deg, rgba(var(--bio-rgb),.2), transparent); }
.sector-col .head .ic svg { width: 24px; height: 24px; }
.sector-col.bio .head .ic svg { stroke: var(--bio); }
.sector-col.tech .head .ic svg { stroke: var(--tech); }
.sector-col .head h3 { font-size: 22px; }
.sector-col .head .sub { font-size: 13px; color: var(--muted); }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 26px; }
/* Feedback: the bullet dot sits on the TOP line of the text, not vertically centred. */
.sub-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.sub-item .b { width: 6px; height: 6px; border-radius: 2px; flex-shrink: 0; margin-top: 7px; }
.sector-col.bio .sub-item .b { background: var(--bio); }
.sector-col.tech .sub-item .b { background: var(--tech); }
.sector-col .roles { font-size: 12.5px; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.role-tags span { font-size: 12.5px; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line); color: var(--muted); }

/* ----------------------------- Stats band ----------------------------- */
.band { border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); padding: clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(var(--bio-rgb),.12), transparent 60%), radial-gradient(50% 120% at 0% 100%, rgba(var(--bio-rgb),.1), transparent 60%); pointer-events: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 48px); position: relative; }
.stat .num { font-family: var(--display); font-size: clamp(34px, 5vw, 54px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ----------------------------- Global reach ----------------------------- */
.reach { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.regions { display: grid; gap: 18px; }
.region { padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: flex-start; gap: 18px; transition: border-color .3s, transform .3s; }
.region:hover, .region.is-active { border-color: var(--line-2); transform: translateX(4px); }
/* Faint accent edge on the in-view / hovered region (feedback 2.6). */
.region.is-active { box-shadow: inset 0 0 0 1px rgba(var(--bio-rgb), .35); }
.region .rk { font-family: var(--display); font-weight: 600; font-size: 16px; width: 64px; flex-shrink: 0; }
.region .rk .grad-text { font-size: 16px; }
.region .rtxt h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; font-family: var(--body); }
.region .rtxt p { font-size: 13.5px; color: var(--muted); }
.reach-visual { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--bio-rgb),.5);} 70% { box-shadow: 0 0 0 16px rgba(var(--bio-rgb),0);} 100% { box-shadow: 0 0 0 0 rgba(var(--bio-rgb),0);} }

/* ----------------------------- Team ----------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 760px; margin-inline: auto; }
.member { padding: 32px; border-radius: var(--radius-lg); border: var(--glass-border); background: var(--glass-fill-dark); box-shadow: var(--glass-hi), var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: transform .35s, border-color .35s, box-shadow .35s; }
.member:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.18); box-shadow: var(--glass-hi), 0 26px 56px -20px rgba(0,0,0,.68); }
.member .avatar {
  width: 128px; height: 128px; border-radius: 24px; overflow: hidden; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 40px; color: #191919;
  background: var(--grad); margin-bottom: 22px; box-shadow: 0 16px 40px -16px rgba(var(--bio-rgb),.5);
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Consortium card role kicker */
.feat .role { color: var(--bio); font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.feat.feat-cta { background: var(--grad-soft); }
.member h4 { font-size: 20px; margin-bottom: 4px; }
.member .role { color: var(--bio); font-size: 13.5px; font-family: var(--display); letter-spacing: .04em; margin-bottom: 14px; }
.member p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.member a.li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); transition: color .2s; }
.member a.li:hover { color: var(--text); }
.member a.li svg { width: 16px; height: 16px; }
.member-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ----------------------------- CTA ----------------------------- */
.cta-panel {
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px);
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(var(--bio-rgb),.07), rgba(var(--bio-rgb),.09)), var(--bg-2);
}
.cta-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(var(--bio-rgb),.18), transparent 70%); pointer-events: none; }
.cta-panel h2 { font-size: clamp(30px, 5vw, 60px); letter-spacing: -.03em; margin-bottom: 18px; position: relative; }
.cta-panel p { color: var(--muted); font-size: 18px; max-width: 52ch; margin: 0 auto 36px; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-mail { margin-top: 26px; font-size: 14px; color: var(--muted); position: relative; }
.cta-mail a { color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }

/* ---------- Schedule a meeting (Atlas booking) block inside the CTA panel ---------- */
.schedule { position: relative; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line-2); }
.schedule-head { max-width: 54ch; margin: 0 auto 26px; text-align: center; }
.schedule-head .eyebrow { justify-content: center; margin-bottom: 12px; }
.schedule-sub { color: var(--muted); font-size: 15px; }
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.sched-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px; border-radius: var(--radius);
  background: var(--glass-fill); border: var(--glass-border);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
}
.sched-person { display: grid; gap: 3px; }
.sched-name { font-family: var(--display); font-weight: 600; font-size: 17px; }
.sched-role { color: var(--bio); font-family: var(--display); font-size: 13px; letter-spacing: .02em; }
.sched-email { color: var(--muted); font-size: 14px; margin-top: 5px; width: fit-content; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color .2s; }
.sched-email:hover { color: var(--text); }
.sched-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.sched-links .btn { padding: 11px 18px; font-size: 14px; }
.sched-links .btn svg { width: 17px; height: 17px; flex-shrink: 0; }
@media (max-width: 620px) { .schedule-grid { grid-template-columns: 1fr; } }

/* ----------------------------- Footer ----------------------------- */
.footer { border-top: 1px solid var(--line); padding: clamp(50px, 7vw, 80px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer .logo { margin-bottom: 18px; }
.footer .blurb { color: var(--muted); font-size: 14.5px; max-width: 36ch; }
.footer h5 { font-family: var(--display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer ul a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .25s, background .25s; }
.footer-bottom .socials a:hover { border-color: rgba(255,255,255,.3); background: var(--surface); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ----------------------------- Reveal animation ----------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .worlds { grid-template-columns: 1fr; }
  .converge { flex-direction: row; padding: 6px 0; }
  .converge .label { writing-mode: horizontal-tb; }
  .converge .vline { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  /* Process becomes a proper vertical timeline on tablet/mobile: numbered node
     on the left, content on the right, joined by a connecting line. */
  .steps { grid-template-columns: 1fr; gap: 30px 0; }
  .steps::before, .proc-line { display: none; }   /* the horizontal connector only fits the desktop row */
  .step {
    display: grid; grid-template-columns: 56px 1fr;
    grid-template-areas: "num title" "num body"; column-gap: 20px; row-gap: 4px;
    padding: 0; position: relative;
  }
  .step .sn { grid-area: num; align-self: start; margin-bottom: 0; }
  .step h4 { grid-area: title; align-self: center; }
  .step p { grid-area: body; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 27px; top: 62px; bottom: -32px; width: 2px;
    background: linear-gradient(180deg, rgba(var(--bio-rgb), .55), rgba(var(--bio-rgb), .12));
    border-radius: 2px;
  }
  .sectors { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .reach { grid-template-columns: 1fr; }
  .reach-visual { order: -1; aspect-ratio: 16/10; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
/* Two simple founder cards stay side-by-side on tablet; stack only on phones. */
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .sub-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  /* D5: stack the model label above its text on phones so "Fill a gap" and the
     other labels cannot push the body copy past the card edge. */
  .model { flex-direction: column; gap: 6px; padding: 18px; }
  .model .mk { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .hero-badge {
    /* A4: stop the pill from wrapping awkwardly on narrow phones */
    max-width: 100%;
    white-space: normal;            /* allow a clean 2-line wrap */
    text-align: center;
    line-height: 1.35;
    align-items: flex-start;        /* dot aligns to first line, not vertical center */
    padding: 7px 14px 7px 12px;
    font-size: 12px;
    gap: 8px;
  }
  .hero-badge .dot { margin-top: 5px; flex: 0 0 auto; } /* nudge dot onto the text baseline */
}
/* Feedback item 4: more internal breathing room in bubbles/boxes on mobile. */
@media (max-width: 600px) {
  .sector-col { padding: 32px 26px; }
  .feat { padding: 30px 26px; }
  .world-card { padding: 32px 28px; }
  .quote-card { padding: 32px 26px; }
  .member { padding: 30px 26px; }
  .band { padding: 34px 26px; }
  .model { padding: 20px; }
  .role-tags { gap: 9px; }
}

/* Mobile menu open state */
.mobile-menu {
  position: fixed; inset: 0; z-index: 210; background: #0D0D0D;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  /* visibility:hidden (not just opacity) keeps the closed menu's links out of the
     keyboard tab order and the accessibility tree at every width. WCAG 2.4.3/2.4.7. */
  opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: 26px; color: var(--text); }
/* Close control: a normal-flow pill at the top of the menu (renders reliably;
   an absolutely-positioned button inside this fixed overlay would not paint). */
.mobile-menu .close {
  order: -1; margin-bottom: 8px; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07);
  color: var(--text); font-size: 30px; line-height: 46px; text-align: center;
  transition: background .2s, border-color .2s;
}
.mobile-menu .close:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
body.menu-open { overflow: hidden; }

/* =========================================================
   10/10 ENHANCEMENTS, bespoke motion & custom SVG
   All continuous motion is gated behind prefers-reduced-motion.
   ========================================================= */

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(var(--bio-rgb),.6);
  pointer-events: none;
}

/* ---------- Living logo mark ---------- */
@media (prefers-reduced-motion: no-preference) {
  .logo .mark::before { animation: markPulse 3s ease-in-out infinite; transform-origin: center; }
}
@keyframes markPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.62); opacity: .65; } }

/* ---------- Hero entrance stagger ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-inner > *:nth-child(1) { animation-delay: .04s; }
  .hero-inner > *:nth-child(2) { animation-delay: .12s; }
  .hero-inner > *:nth-child(3) { animation-delay: .20s; }
  .hero-inner > *:nth-child(4) { animation-delay: .28s; }
  .hero-inner > *:nth-child(5) { animation-delay: .40s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Convergence engine ---------- */
.conv-engine {
  position: relative; width: 84px; align-self: stretch;
  min-height: 160px; display: flex; align-items: center; justify-content: center;
}
.conv-engine .spine {
  position: absolute; top: 8%; bottom: 8%; left: 50%; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--bio), rgba(var(--bio-rgb),.18) 50%, var(--tech));
  background-size: 100% 240%; border-radius: 2px;
}
.conv-engine .ring { z-index: 2; }
.conv-engine .flow {
  position: absolute; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  transform: translateX(-50%); top: 50%; opacity: 0; z-index: 1;
}
.conv-engine .flow.bio { background: var(--bio); box-shadow: 0 0 10px var(--bio); }
.conv-engine .flow.tech { background: var(--tech); box-shadow: 0 0 10px var(--tech); }
.conv-engine .pulse {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; border: 1px solid rgba(var(--bio-rgb),.5); opacity: 0; z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .conv-engine .spine { animation: spineFlow 3s linear infinite; }
  .conv-engine .flow.bio { animation: flowDown 2.4s linear infinite; }
  .conv-engine .flow.tech { animation: flowUp 2.4s linear infinite; }
  .conv-engine .f1 { animation-delay: 0s; } .conv-engine .f2 { animation-delay: .8s; } .conv-engine .f3 { animation-delay: 1.6s; }
  .conv-engine .g1 { animation-delay: .4s; } .conv-engine .g2 { animation-delay: 1.2s; } .conv-engine .g3 { animation-delay: 2s; }
  .conv-engine .pulse { animation: convPulse 3s ease-out infinite; }
  .conv-engine .pulse.d { animation-delay: 1.5s; }
}
@keyframes spineFlow { from { background-position: 0 0; } to { background-position: 0 -240%; } }
@keyframes flowDown { 0% { top: 8%; opacity: 0; } 14% { opacity: 1; } 46% { top: 47%; opacity: 1; } 54% { opacity: 0; } 100% { top: 47%; opacity: 0; } }
@keyframes flowUp { 0% { top: 92%; opacity: 0; } 14% { opacity: 1; } 46% { top: 53%; opacity: 1; } 54% { opacity: 0; } 100% { top: 53%; opacity: 0; } }
@keyframes convPulse { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }

/* Desktop (>980px): the convergence reads HORIZONTALLY so it visibly links the
   two side-by-side cards, with each world's energy flowing into the central
   node. Below 980px the cards stack and the vertical flow above still applies. */
@media (min-width: 981px) {
  .converge .vline { display: none; }
  .converge .label { writing-mode: horizontal-tb; }
  .conv-engine { align-self: center; width: clamp(132px, 12vw, 196px); min-height: 92px; }
  .conv-engine .spine {
    top: 50%; bottom: auto; left: 2%; right: 2%; width: auto; height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--bio), rgba(var(--bio-rgb), .2) 50%, var(--tech));
    background-size: 240% 100%;
  }
  .conv-engine .flow { top: 50%; left: 2%; transform: translateY(-50%); }
}
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .conv-engine .spine { animation: spineFlowH 3s linear infinite; }
  .conv-engine .flow.bio { animation: flowRight 2.4s linear infinite; }
  .conv-engine .flow.tech { animation: flowLeft 2.4s linear infinite; }
}
@keyframes spineFlowH { from { background-position: 0 0; } to { background-position: -240% 0; } }
@keyframes flowRight { 0% { left: 2%; opacity: 0; } 16% { opacity: 1; } 48% { left: 40%; opacity: 1; } 58% { opacity: 0; } 100% { left: 40%; opacity: 0; } }
@keyframes flowLeft  { 0% { left: 98%; opacity: 0; } 16% { opacity: 1; } 48% { left: 60%; opacity: 1; } 58% { opacity: 0; } 100% { left: 60%; opacity: 0; } }

/* ---------- Real orthographic network globe (canvas) ---------- */
.reach-visual {
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 45%, rgba(var(--bio-rgb), .06), transparent 70%);
  container-type: size; /* lets the globe size off the box's real dimensions (cqmin) */
}
.reach-visual::after { display: none; }

.globe {
  position: relative;
  /* A centred SQUARE inset to 86% of the box's SHORTER side (via container
     units, which work whether the box is square on desktop or 16/10 on mobile),
     so the whole sphere stays fully visible and never stretches or clips. */
  width: min(86cqw, 86cqh);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none; /* let drag rotate the globe without scrolling the page */
}
.globe-canvas:active { cursor: grabbing; }
/* Shown only if WebGL is unavailable or the globe module fails: a static globe. */
.globe--fallback { background: var(--bg) url("../img/globe-fallback.png") center / contain no-repeat; }

/* "Find the 3 regions" cue: nudges a spin while the UK/EU/US face is turned
   away, then lights up to confirm once they are in view. */
.globe-hint {
  position: absolute; left: 50%; bottom: clamp(8px, 3.5%, 18px); transform: translateX(-50%);
  z-index: 3; display: inline-flex; align-items: center; gap: 8px; max-width: 92%;
  padding: 8px 15px; border-radius: 100px; white-space: nowrap; pointer-events: none;
  font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: .01em; color: var(--text);
  background: rgba(18,18,18,.74); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 10px 28px -12px rgba(0,0,0,.6);
  transition: background .4s, border-color .4s, color .4s;
}
.globe-hint svg { width: 15px; height: 15px; flex: none; }
.globe-hint.is-found { color: #191919; background: var(--grad); border-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .globe-hint:not(.is-found) { animation: globeHintPulse 2.2s ease-in-out infinite; }
  .globe-hint:not(.is-found) svg { animation: globeHintSpin 3.6s linear infinite; }
}
@keyframes globeHintPulse { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes globeHintSpin { to { transform: rotate(360deg); } }

/* ---------- Pointer-reactive cards ---------- */
.tilting { transition: transform .12s ease-out !important; }
.svc .glow { transition: opacity .35s; }

/* ---------- Icon draw-in ---------- */
@media (max-width: 980px) { .conv-engine { width: 100%; min-height: 110px; } }

/* ---------- Testimonials page ---------- */
.page-head { padding: calc(76px + clamp(56px, 9vw, 110px)) 0 clamp(36px, 6vw, 60px); }
/* C2: center the testimonials split-eyebrow heading block to match the hero. */
.split-eyebrow { margin-bottom: clamp(26px, 4vw, 40px); text-align: center; }
.split-eyebrow .eyebrow { justify-content: center; }
.split-eyebrow .eyebrow::before { display: none; }
.split-eyebrow .section-lead { margin-inline: auto; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 20px; }
.quote-card {
  position: relative; padding: 32px 30px 28px;
  border: var(--glass-border); border-radius: var(--radius-lg);
  background: var(--glass-fill); overflow: hidden;
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: border-color .3s, transform .3s, box-shadow .3s, background .3s;
}
.quote-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(var(--bio-rgb),.07), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.quote-card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-4px); box-shadow: var(--glass-hi), 0 26px 56px -20px rgba(0,0,0,.66); background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); }
.quote-card:hover::before { opacity: 1; }
.quote-card .qmark {
  font-family: var(--display); font-size: 60px; line-height: .5; height: 30px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; opacity: .55;
}
.quote-card blockquote { font-size: 17.5px; color: var(--text); line-height: 1.55; margin: 10px 0 22px; }
.quote-card figcaption { display: flex; align-items: center; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote-card .qavatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 14px;
  color: #191919; background: var(--grad);
}
.quote-card .qname { font-family: var(--display); font-weight: 600; font-size: 15px; }
.quote-card .qmeta { color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.quote-pending { color: var(--muted-2); font-style: italic; }

/* ---------- Enquiry form ---------- */
.enquiry { max-width: 640px; margin: 30px auto 0; display: grid; gap: 16px; text-align: left; }
.enquiry-tabs {
  display: inline-flex; gap: 5px; padding: 5px; width: fit-content;
  background: var(--glass-fill); border: var(--glass-border); border-radius: 100px;
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.enquiry-tab {
  font-family: var(--display); font-size: 14px; padding: 9px 18px; border-radius: 100px;
  color: var(--muted); transition: color .2s, background .2s, box-shadow .2s;
}
.enquiry-tab.active { background: var(--grad); color: #191919; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--display); font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bio); background: var(--surface-2); }
.field textarea { resize: vertical; min-height: 112px; }
.enquiry-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-note { color: var(--muted); font-size: 13.5px; max-width: 40ch; }
.form-note.error { color: #ff9a9a; }
.form-note.ok { color: var(--tech); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Legal pages (privacy / cookies) ---------- */
/* C2: center the legal column so it shares the same centered axis as the hero
   and the rest of the site (prose stays left-aligned inside the centered column
   for readability). */
.legal { max-width: 780px; margin-inline: auto; }
.legal h3 { font-size: clamp(20px, 2.4vw, 25px); margin: 40px 0 12px; }
.legal h4 { font-family: var(--display); font-size: 16px; margin: 24px 0 6px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.72; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--bio); }
.legal .updated { color: var(--muted-2); font-size: 14px; }
.legal .todo {
  display: inline; padding: 1px 7px; border-radius: 6px; font-size: .94em;
  background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--muted);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted-2); }
.footer-legal a:hover { color: var(--text); }

/* =========================================================
   THEME TOGGLE BUTTON (Group nav, CONTRACT B)
   ========================================================= */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .25s, background .25s, transform .25s;
}
.theme-toggle::before {
  content: ""; width: 17px; height: 17px; border-radius: 50%;
  background: var(--grad);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 10px -4px rgba(var(--bio-rgb), .7);
}
.theme-toggle:hover { border-color: rgba(255,255,255,.32); transform: translateY(-1px); }
body.clinical .theme-toggle { display: none; }   /* Clinical never flips colour */

/* =========================================================
   BLACK / ORANGE FLIP (Group only, CONTRACT B)
   The inverse of the default dark theme: orange page, near-black
   accent, readable dark text, and ONE consistent bubble treatment
   (translucent white on orange). Clinical opts out entirely (no
   toggle is rendered, and body.clinical keeps it monochrome).
   ========================================================= */
:root[data-theme="orange"] {
  --bg:   #ED7E10;
  --bg-2: #F08A22;
  --bg-3: #F2933A;

  /* Accent flips to near-black; gradients + glows follow via --bio-rgb. */
  --bio:    #181818;
  --bio-2:  #000000;
  --bio-rgb: 24, 24, 24;
  --tech:   #181818;
  --tech-2: #2A2A2A;
  --gold:   #2A2A2A;
  --ink-on-bio: #FFE9D2;            /* light ink on the dark filled buttons/pills */

  --grad:      linear-gradient(115deg, #181818 0%, #3A3A3A 100%);
  --grad-soft: linear-gradient(115deg, rgba(24,24,24,.16), rgba(24,24,24,.06));

  /* One consistent bubble: translucent white on orange. */
  --surface:   rgba(255,255,255,.18);
  --surface-2: rgba(255,255,255,.26);
  --line:      rgba(24,24,24,.14);
  --line-2:    rgba(24,24,24,.26);

  --text:    #1A1206;
  --muted:   rgba(26,18,6,.9);
  --muted-2: rgba(26,18,6,.7);
  --faint:   rgba(26,18,6,.42);

  --glass-fill:      linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.16) 60%, rgba(255,255,255,.26));
  --glass-fill-dark: linear-gradient(135deg, rgba(255,255,255,.30), rgba(255,255,255,.14) 60%, rgba(255,255,255,.24));
  --glass-border:    1px solid rgba(255,255,255,.5);
  --glass-hi:        inset 0 1px 0 rgba(255,255,255,.55);
  --glass-shadow:    0 18px 48px -16px rgba(120,60,0,.42);

  /* Dark dot network on the orange field. */
  --dots-base: #ED7E10;
  --dots-c1:   #2A1B07;
  --dots-c2:   #5A3A12;
}
/* Surfaces that used solid dark fills become the same translucent white as the
   glass family, so every bubble/box reads consistently on orange. */
:root[data-theme="orange"] .sector-col,
:root[data-theme="orange"] .svc,
:root[data-theme="orange"] .feat,
:root[data-theme="orange"] .quote-card,
:root[data-theme="orange"] .member,
:root[data-theme="orange"] .band,
:root[data-theme="orange"] .cta-panel,
:root[data-theme="orange"] .step .sn,
:root[data-theme="orange"] .converge .ring {
  background: var(--surface);
  border-color: var(--line-2);
}
:root[data-theme="orange"] .marquee-sec { background: rgba(255,255,255,.05); }
/* Filled accent chips/buttons get light ink so dark-on-dark never happens. */
:root[data-theme="orange"] .enquiry-tab.active,
:root[data-theme="orange"] .step:hover .sn,
:root[data-theme="orange"] .member .avatar,
:root[data-theme="orange"] .quote-card .qavatar,
:root[data-theme="orange"] .float-cta .fc-emblem { color: var(--ink-on-bio); }
/* The dark hero veil would muddy dark text on orange; drop it in this theme. */
:root[data-theme="orange"] .hero-globe-veil { display: none; }
/* The full-screen mobile menu stays dark; keep its links light here. */
:root[data-theme="orange"] .mobile-menu a { color: #F4F4F4; }
/* Two Worlds cards keep their dark photo backgrounds, so their text must stay
   light on the orange theme (dark ink would be unreadable over the imagery). */
:root[data-theme="orange"] .world-card h3 { color: #F5F5F5; }
:root[data-theme="orange"] .world-card p { color: rgba(245,245,245,.84); }
:root[data-theme="orange"] .world-card.bio .world-tag { color: #FFB877; }
:root[data-theme="orange"] .world-card.tech .world-tag { color: #E6E6E6; }
:root[data-theme="orange"] .world-tags span { color: #F0F0F0; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.12); }

/* ---------- Floating cross-site CTA (Group <-> Clinical) ----------
   Lives bottom-left on every page. Entrance animates on the wrapper so the
   link keeps a clean hover transform. Colours come from the accent token,
   so it's orange on the Group site and monochrome on Clinical. */
.float-cta-wrap {
  position: fixed; left: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 80; max-width: calc(100vw - 32px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
/* Tuck the floating CTA away once the footer is in view, it's redundant there
   (the footer already links across) and would otherwise sit over the copyright. */
.float-cta-wrap.is-tucked {
  opacity: 0; transform: translateY(14px); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  /* backwards (not both): play the entrance, then release opacity/transform so the
     .is-tucked state can take over when the footer scrolls into view. */
  .float-cta-wrap { animation: fcIn .7s cubic-bezier(.2,.7,.2,1) 1.1s backwards; }
}
@keyframes fcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.float-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 12px; border-radius: 100px;
  background: var(--glass-fill-dark); border: var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--glass-hi), 0 16px 44px -14px rgba(0, 0, 0, .65);
  color: var(--text);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s, background .3s;
}
.float-cta:hover, .float-cta:focus-visible {
  transform: translateY(-3px); border-color: rgba(255, 255, 255, .30);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(24,24,24,.82);
  box-shadow: var(--glass-hi), 0 24px 60px -16px rgba(0, 0, 0, .78);
  outline: none;
}
.float-cta .fc-emblem {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #161616;
  box-shadow: 0 6px 16px -6px rgba(var(--bio-rgb), .7);
}
.float-cta .fc-emblem svg { width: 18px; height: 18px; }
.float-cta .fc-body { display: flex; flex-direction: column; line-height: 1.12; }
.float-cta .fc-kicker { font-family: var(--display); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.float-cta .fc-title { font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.float-cta .fc-arrow { font-family: var(--display); color: var(--muted); padding-left: 2px; transition: transform .3s, color .3s; }
.float-cta:hover .fc-arrow, .float-cta:focus-visible .fc-arrow { transform: translateX(3px); color: var(--text); }
@media (max-width: 560px) {
  .float-cta { padding: 9px 13px 9px 10px; gap: 9px; }
  .float-cta .fc-kicker { display: none; }
  .float-cta .fc-emblem { width: 30px; height: 30px; }
  .float-cta .fc-title { font-size: 13.5px; }
}
@media print { .float-cta-wrap { display: none; } }

/* ---------- Official logo lockup in the footer (emblem + wordmark) ---------- */
.footer .logo { gap: 0; }
.footer .logo img { display: block; width: auto; height: clamp(34px, 3.4vw, 40px); }
body.clinical .footer .logo img { height: clamp(42px, 4.2vw, 50px); }   /* taller lockup w/ subtitle */
@media (max-width: 700px) {
  .footer .logo img { height: 34px; }
  body.clinical .footer .logo img { height: 42px; }
}

/* ---------- Glass pills & tags (C3, unify the translucent pill family) ---------- */
.world-tags span,
.role-tags span,
.region {
  background: var(--glass-fill);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
}
/* marquee chips: glassy capsule around the existing inline text */
.chip {
  padding: 8px 16px; border-radius: 100px;
  background: var(--glass-fill); border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
}
/* model rows inside service cards: subtle inset glass */
.model {
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.model:hover { background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border-color: rgba(255,255,255,.16); }
/* graceful fallback: solid-ish fills where backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .world-card, .svc, .member { background: var(--bg-2); }
  .nav.scrolled { background: rgba(14,14,14,.95); }
  .float-cta { background: rgba(18,18,18,.96); }
  .quote-card, .enquiry-tabs, .world-tags span, .role-tags span, .region, .chip { background: var(--surface-2); }
}

/* ---------- Cookie consent banner (PECR) ---------- */
.cookie-consent {
  position: fixed; z-index: 90; left: 50%; bottom: 22px;
  transform: translate(-50%, 22px);
  width: min(640px, calc(100vw - 32px));
  background: var(--glass-fill); border: var(--glass-border); border-radius: 18px;
  box-shadow: var(--glass-hi), 0 24px 60px -18px rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.cookie-consent.is-in { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.cc-body { padding: 18px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cc-text { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0; flex: 1 1 280px; }
.cc-text a { color: var(--bio); text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cc-btn { padding: 10px 18px; font-size: 13.5px; }
.cc-reopen { cursor: pointer; }
/* the cross-site float CTA gets out of the way while the banner is up */
body.cc-open .float-cta-wrap { opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
  .cookie-consent { bottom: 12px; width: calc(100vw - 20px); }
  .cc-body { padding: 15px 16px; gap: 12px; }
  .cc-actions { width: 100%; }
  .cc-btn { flex: 1; justify-content: center; }
}
@media print { .cookie-consent { display: none; } }

/* ---------- FAQ accordion (native details/summary — accessible + crawlable) ---------- */
.faq { max-width: 820px; display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 42px 22px 0; position: relative;
  font-family: var(--display); font-size: clamp(16px, 1.7vw, 19px); font-weight: 500;
  color: var(--text); transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 27px; width: 10px; height: 10px;
  border-right: 2px solid var(--bio); border-bottom: 2px solid var(--bio);
  transform: rotate(45deg); transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq-item summary:hover { color: var(--bio); }
.faq-a { padding: 0 42px 24px 0; }
.faq-a p { color: var(--muted); font-size: 15.5px; line-height: 1.65; margin: 0; max-width: 70ch; }
.faq-a a { color: var(--bio); }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a { animation: faqIn .35s ease both; }
  @keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* <picture> is layout-transparent so .ph/.avatar img rules still size the child img */
picture { display: contents; }
