/* =========================================================
   DGXPComplianceLab — site stylesheet
   Type: Archivo (display/UI) + Source Serif 4 (reading text)
   Signature shape: the "D" frame taken from the logo
   ========================================================= */

:root {
  --ink: #0A1F44;
  --ink-2: #13306A;
  --brand: #004AAD;
  --cyan: #0FB5D6;
  --teal: #0E9F8E;
  --green: #2E9D5B;
  --violet: #6B4EFF;
  --purple: #8E3FD1;
  --orange: #E8792B;
  --surface: #F3F6FB;
  --surface-2: #E8EEF7;
  --line: #D6DFEC;
  --text: #17233B;
  --muted: #53627C;
  --white: #fff;
  --danger: #B42318;
  --ok: #1E7F4E;

  --accent: var(--brand);
  --accent-2: var(--cyan);

  --f-ui: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-read: "Source Serif 4", Georgia, "Times New Roman", serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(10, 31, 68, .06), 0 8px 24px -12px rgba(10, 31, 68, .25);
  --wrap: 1240px;
  --pad: clamp(1rem, 3.5vw, 2rem);
  --sec: clamp(3.5rem, 8vw, 6.5rem);
}

/* Business-vertical accents */
.theme-rd      { --accent: #0B63CE; --accent-2: #0FB5D6; }
.theme-form    { --accent: #0A7BC2; --accent-2: #22C3E6; }
.theme-mfg     { --accent: #0E5E9E; --accent-2: #2E9D5B; }
.theme-cmo     { --accent: #0B6E78; --accent-2: #2E9D5B; }
.theme-cro     { --accent: #1856C9; --accent-2: #0FB5D6; }
.theme-lab     { --accent: #0B7F72; --accent-2: #0FB5D6; }
.theme-tech    { --accent: #0784A3; --accent-2: #7C3AED; }
.theme-digital { --accent: #0784A3; --accent-2: #8E3FD1; }
.theme-soft    { --accent: #3148C9; --accent-2: #0FB5D6; }
.theme-ai      { --accent: #5B3FE6; --accent-2: #2F6BFF; }
.theme-gov     { --accent: #3A2DB3; --accent-2: #6B4EFF; }
.theme-qa      { --accent: #1E2F6B; --accent-2: #6B4EFF; }
.theme-careers { --accent: #1F8A55; --accent-2: #0E9F8E; }
.theme-projects{ --accent: #C95F15; --accent-2: #004AAD; }
.theme-core    { --accent: #004AAD; --accent-2: #0FB5D6; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-ui); font-size: 1rem; line-height: 1.6; color: var(--text);
  background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-ui); color: var(--ink); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; font-stretch: 108%; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.prose p, .lead, .read { font-family: var(--f-read); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.65; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 1em; height: 1em; }
.ico-lg { width: 2rem; height: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 650 .98rem/1 var(--f-ui); padding: .95rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cyan); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------- Utility bar & header ---------- */
.utility { background: var(--ink); color: #C9D6EE; font-size: .82rem; }
.utility-in { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.utility a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.utility a:hover { color: var(--cyan); }
.utility-links { display: flex; gap: 1.2rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; color: var(--brand); font-stretch: 105%; }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .15rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 8px; font: 600 .95rem var(--f-ui);
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--surface); color: var(--brand); }
.nav-link.is-active { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }
.menu-toggle .ico { transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 24px 60px -24px rgba(10,31,68,.4);
  padding: .8rem; display: none;
}
.has-menu.open > .menu { display: block; }
.is-mega .menu { width: min(92vw, 900px); left: 0; transform: translateX(-35%); }
.menu-list { list-style: none; display: grid; gap: .2rem; }
.menu-list a { display: block; padding: .65rem .8rem; border-radius: 8px; text-decoration: none; }
.menu-list a strong { display: block; color: var(--ink); font-size: .96rem; }
.menu-list a span { display: block; color: var(--muted); font-size: .84rem; }
.menu-list a:hover { background: var(--surface); }
.mega { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem 1.2rem; padding: .6rem; }
.mega-col { border-top: 3px solid var(--accent); padding-top: .7rem; }
.mega-head { font-weight: 750; color: var(--ink); font-size: .9rem; margin-bottom: .4rem; }
.mega-col ul { list-style: none; display: grid; gap: .1rem; }
.mega-col a { display: block; text-decoration: none; color: var(--text); padding: .38rem .3rem; border-radius: 6px; font-size: .93rem; }
.mega-col a:hover, .mega-col a[aria-current] { color: var(--accent); background: var(--surface); }
.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; font-size: .92rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface); color: var(--brand); }
.nav-burger { display: none; }
.nav-close { display: none; }
.search-panel { border-top: 1px solid var(--line); background: #fff; }
.search-form { display: flex; align-items: center; gap: .7rem; padding-block: .9rem; }
.search-form input { flex: 1; border: 0; font: 500 1.1rem var(--f-ui); padding: .5rem; background: transparent; min-width: 0; }
.search-form input:focus { outline: none; }

/* Breadcrumbs */
.crumbs { padding-top: 1rem; font-size: .86rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec); }
.section-tint { background: var(--surface); }
.section-dark { background: var(--ink); color: #D5DFF0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .muted { color: #AFC0DC; }
.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head p { color: var(--muted); font-size: 1.08rem; font-family: var(--f-read); }
.section-dark .sec-head p { color: #AFC0DC; }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.sec-head-row .sec-head { margin-bottom: 0; }
.kicker { font-weight: 650; color: var(--accent); margin-bottom: .6rem; font-size: .98rem; }
.section-dark .kicker { color: var(--cyan); }

/* ---------- D-frame (signature) ---------- */
.dframe { position: relative; isolation: isolate; }
.dframe::before {
  content: ""; position: absolute; inset: 7% -4% -6% 8%; z-index: -1;
  border: 3px solid var(--accent-2); border-radius: 14px 50% 50% 14px / 14px 50% 50% 14px; opacity: .8;
}
.dframe picture, .dframe img { width: 100%; height: 100%; object-fit: cover; }
.dframe picture { border-radius: 14px 50% 50% 14px / 14px 50% 50% 14px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, #133D86 0%, var(--ink) 55%); color: #D6E1F4; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); font-stretch: 118%; line-height: 1.02; }
.hero .lead { color: #BBCAE4; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-words { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .92rem; color: #9FB3D6; list-style: none; }
.hero-words li { display: flex; align-items: center; gap: .45rem; }
.hero-words li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.hero .dframe::before { border-color: var(--cyan); }
.hero-caption { position: absolute; left: -1rem; bottom: 8%; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: .8rem 1rem; box-shadow: var(--shadow); max-width: 250px; font-size: .86rem; line-height: 1.4; }
.hero-caption strong { display: block; font-size: .95rem; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero-in.no-img { grid-template-columns: 1fr; }
.page-hero h1 { max-width: 18ch; }
.page-hero .kicker::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--accent); vertical-align: middle; margin-right: .6rem; border-radius: 2px; }
/* visual styles by vertical */
.style-scientific { background: radial-gradient(circle at 1px 1px, rgba(11,99,206,.16) 1.2px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(180deg, #F2F8FF, #fff); }
.style-industrial { background: repeating-linear-gradient(135deg, rgba(14,94,158,.05) 0 2px, transparent 2px 14px), linear-gradient(180deg, #EEF4F7, #fff); }
.style-structured { background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(30,47,107,.08) 31px 32px), linear-gradient(90deg, rgba(107,78,255,.06) 0 3px, transparent 3px) 64px 0 / 100% 100% no-repeat, #FAFBFE; }
.style-engineering { background: linear-gradient(rgba(15,181,214,.12) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(15,181,214,.12) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(160deg, #0A1F44, #102C5E); color: #CFE0F5; }
.style-futuristic { background: radial-gradient(700px 380px at 80% 30%, rgba(107,78,255,.45), transparent 70%), radial-gradient(500px 300px at 10% 90%, rgba(47,107,255,.35), transparent 70%), #0B1233; color: #D8D6FF; }
.style-human { background: linear-gradient(180deg, #EEF8F2, #fff); }
.style-casestudy { background: linear-gradient(90deg, rgba(232,121,43,.10) 0 6px, transparent 6px), linear-gradient(180deg, #FFF6EE, #fff); }
.style-engineering h1, .style-futuristic h1 { color: #fff; }
.style-engineering .lead, .style-futuristic .lead { color: #BCD0EC; }
.style-futuristic .lead { color: #C9C4FF; }
.style-engineering .kicker, .style-futuristic .kicker { color: var(--cyan); }
.style-engineering .btn-ghost, .style-futuristic .btn-ghost { color: #fff; }
.style-engineering .btn-ghost:hover, .style-futuristic .btn-ghost:hover { background: #fff; color: var(--ink); }
body.theme-tech .crumbs, body.theme-digital .crumbs, body.theme-soft .crumbs, body.theme-ai .crumbs, body.theme-gov .crumbs { position: relative; z-index: 2; }

/* ---------- Grids & splits ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-60 { grid-template-columns: 1.2fr .8fr; }
.split img, .split picture { border-radius: var(--r-lg); }
.float-img { position: relative; }
.float-img .second { position: absolute; width: 48%; right: -6%; bottom: -12%; border: 6px solid #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.float-img .second img { border-radius: 0; }
.float-img > picture:first-child { border-radius: var(--r-lg); overflow: hidden; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.checklist { list-style: none; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .45rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { padding: .42rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 550; color: var(--ink); }
.section-dark .pill-list li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #E4ECF8; }

/* ---------- Tiles (varied, not identical cards) ---------- */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; position: relative; }
.tile h3 { margin-bottom: .4rem; }
.tile p { color: var(--muted); margin: 0; font-size: .96rem; }
.tile-accent { border-top: 4px solid var(--accent); }
.tile .ico-lg { color: var(--accent); margin-bottom: .9rem; }
a.tile { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.tile:hover { border-color: var(--accent); transform: translateY(-3px); }
a.tile:hover h3 { color: var(--accent); }

/* Capability directory (services page) */
.cap-group { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.cap-group h2 { font-size: 1.5rem; }
.cap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cap-item { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; text-decoration: none; color: inherit; padding: .7rem; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.cap-item picture { border-radius: 10px 40% 40% 10px / 10px 50% 50% 10px; overflow: hidden; aspect-ratio: 1; }
.cap-item img { width: 100%; height: 100%; object-fit: cover; }
.cap-item h3 { font-size: 1.05rem; margin-bottom: .25rem; color: var(--ink); }
.cap-item p { margin: 0; font-size: .9rem; color: var(--muted); }
.cap-item:hover { border-color: var(--accent); }
.cap-item:hover h3 { color: var(--accent); }

/* ---------- Process flow (sequences) ---------- */
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: .9rem 0; counter-reset: f; }
.flow li { display: flex; align-items: center; gap: .6rem; padding-right: 2.2rem; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: .55rem; top: 50%; width: 1.1rem; height: 2px; background: var(--accent-2); }
.flow li:not(:last-child)::before { content: ""; position: absolute; right: .5rem; top: calc(50% - 4px); width: 8px; height: 8px; border-top: 2px solid var(--accent-2); border-right: 2px solid var(--accent-2); transform: rotate(45deg); }
.flow-n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 750; font-size: .85rem; flex: none; }
.flow-t { font-weight: 600; color: var(--ink); line-height: 1.25; }
.section-dark .flow-t, .style-engineering .flow-t, .style-futuristic .flow-t { color: #fff; }
.flow-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.flow-box h3 { margin-bottom: 1.2rem; }
.flow-compact .flow-n { width: 1.6rem; height: 1.6rem; font-size: .75rem; }
.flow-compact .flow-t { font-size: .9rem; }
/* vertical timeline */
.vflow { list-style: none; position: relative; display: grid; gap: 1rem; }
.vflow::before { content: ""; position: absolute; left: 1rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); }
.vflow li { position: relative; padding-left: 3rem; }
.vflow .flow-n { position: absolute; left: 0; top: 0; }
.vflow h4 { margin: .2rem 0 .2rem; }
.vflow p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Activities table ---------- */
.acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; list-style: none; }
.acts li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; }
.acts h3 { font-size: 1.04rem; margin: 0; }
.acts p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .94rem; }
.mode { font-size: .74rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; white-space: nowrap; align-self: start; }
.mode-dgxp { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, #fff); }
.mode-partner { background: #FFF4E8; color: #8A4A12; border: 1px solid #F3CFA8; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; align-items: center; }

/* ---------- Lifecycle explorer ---------- */
.lc { display: grid; grid-template-columns: 330px 1fr; gap: 2rem; align-items: start; }
.lc-rail { list-style: none; display: grid; gap: .25rem; position: relative; }
.lc-rail::before { content: ""; position: absolute; left: 1.05rem; top: 1rem; bottom: 1rem; width: 2px; background: rgba(255,255,255,.16); }
.lc-btn {
  width: 100%; display: flex; align-items: center; gap: .8rem; text-align: left; font: 600 .96rem var(--f-ui); padding: .5rem .6rem;
  background: none; border: 0; border-radius: 10px; color: #BFD0EA; cursor: pointer; position: relative;
}
.lc-btn .dot { width: 1rem; height: 1rem; margin-left: .55rem; border-radius: 50%; border: 2px solid #5F7BAE; background: var(--ink); flex: none; z-index: 1; transition: background .2s, border-color .2s, transform .2s; }
.lc-btn:hover { color: #fff; background: rgba(255,255,255,.05); }
.lc-btn[aria-selected="true"] { color: #fff; background: rgba(15,181,214,.12); }
.lc-btn[aria-selected="true"] .dot { background: var(--cyan); border-color: var(--cyan); transform: scale(1.25); }
.lc-panel { background: #fff; color: var(--text); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.lc-panel[hidden] { display: none; }
.lc-panel picture { height: 100%; }
.lc-panel img { width: 100%; height: 100%; object-fit: cover; }
.lc-body { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.lc-body h3 { font-size: 1.6rem; color: var(--ink); }
.lc-step { font-weight: 700; color: var(--accent); font-size: .9rem; margin-bottom: .4rem; }
.lc-body p { font-family: var(--f-read); color: var(--muted); }
.lc-body .checklist { margin: .4rem 0 1.4rem; }
.lc-body .text-link { margin-top: auto; }

/* ---------- Tabs (capability explorer, AI map) ---------- */
.tabs-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.tab { font: 650 .92rem var(--f-ui); padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.section-dark .tab { background: transparent; color: #D5DFF0; border-color: rgba(255,255,255,.2); }
.section-dark .tab[aria-selected="true"] { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.tab-panel[hidden] { display: none; }
.capx { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); }
.capx picture { border-radius: 14px 50% 50% 14px / 14px 50% 50% 14px; overflow: hidden; aspect-ratio: 4/3; }
.capx img { width: 100%; height: 100%; object-fit: cover; }
.capx dl { display: grid; gap: .9rem; margin: 0; }
.capx dt { font-weight: 700; color: var(--ink); font-size: .9rem; }
.capx dd { margin: .15rem 0 0; color: var(--muted); font-size: .96rem; }

/* ---------- Transformation stepper ---------- */
.tx { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; list-style: none; margin-bottom: 1.4rem; }
.tx button { width: 100%; height: 100%; text-align: left; padding: .9rem .8rem; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #BFD0EA; font: 600 .88rem/1.3 var(--f-ui); cursor: pointer; position: relative; }
.tx button span { display: block; font-size: .74rem; color: #7F95BD; margin-bottom: .25rem; font-weight: 700; }
.tx button:hover { border-color: var(--cyan); color: #fff; }
.tx button[aria-selected="true"] { background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; border-color: transparent; }
.tx button[aria-selected="true"] span { color: #CFE0FF; }
.tx-panel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.tx-panel h3 { color: #fff; }
.tx-panel p { color: #C3D1E8; font-family: var(--f-read); }
.tx-meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: .4rem; }
.tx-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .4s ease; }
.tx-stats { display: grid; gap: 1rem; align-content: start; font-size: .88rem; color: #AFC0DC; }

/* ---------- Execution model ---------- */
.exec-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.exec-step { padding: 1.6rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.exec-step:nth-child(4n) { border-right: 0; }
.exec-step:nth-child(n+5) { border-bottom: 0; }
.exec-n { position: absolute; top: 1.2rem; right: 1.2rem; font: 800 1.9rem var(--f-ui); color: var(--surface-2); font-stretch: 120%; }
.exec-step .ico-lg { color: var(--accent); margin-bottom: 1rem; }
.exec-step h3 { margin-bottom: .3rem; }
.exec-step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Ecosystem diagram ---------- */
.eco { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.eco-node { padding: 1rem 1.6rem; border-radius: var(--r-md); font-weight: 750; }
.eco-client { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.eco-core { background: var(--brand); color: #fff; border-radius: 14px 60px 60px 14px; padding: 1.1rem 2.4rem; display: flex; align-items: center; gap: .7rem; }
.eco-core img { width: 34px; }
.eco-arrow { width: 2px; height: 30px; background: var(--accent-2); position: relative; }
.eco-arrow::after { content: ""; position: absolute; bottom: -2px; left: -4px; width: 10px; height: 10px; border-right: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(45deg); }
.eco-ring { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 820px; list-style: none; }
.eco-ring li { padding: .55rem 1rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); color: #E4ECF8; font-weight: 600; font-size: .92rem; }
.section:not(.section-dark) .eco-ring li { background: #fff; border-color: var(--line); color: var(--ink); }
.eco-result { background: linear-gradient(135deg, var(--teal), var(--green)); color: #fff; }

/* ---------- Counters ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { border-left: 3px solid var(--accent-2); padding: .3rem 0 .3rem 1rem; }
.stat b { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--f-ui); color: var(--ink); font-stretch: 115%; }
.section-dark .stat b { color: #fff; }
.stat span { color: var(--muted); font-size: .92rem; }
.section-dark .stat span { color: #AFC0DC; }

/* ---------- Project cards & filters ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pcard { background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.pcard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.pcard-img { aspect-ratio: 16/9; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.pcard-cats { font-size: .8rem; font-weight: 700; color: var(--orange); margin-bottom: .4rem; }
.pcard h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.pcard p { color: var(--muted); font-size: .93rem; }
.pcard:hover h3 { color: var(--accent); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; margin-top: auto; align-self: flex-start; }
.tag-illustrative { background: #FFF4E8; color: #8A4A12; border: 1px dashed #E8A96E; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: 1rem; }
.filter { font: 600 .88rem var(--f-ui); padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter:hover { border-color: var(--accent); }
.finder { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.finder .search-box { flex: 1; min-width: 240px; position: relative; }
.finder input { width: 100%; padding: .8rem 1rem .8rem 2.6rem; border-radius: 999px; border: 1px solid var(--line); font: 500 1rem var(--f-ui); }
.finder .search-box .ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.result-count { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-md); }

/* Project detail */
.pd-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pd-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }
.pd-block { padding: 1.6rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 1.4rem; }
.pd-block h2 { font-size: 1.15rem; margin: 0; color: var(--accent); }
.pd-block p { margin: 0; font-family: var(--f-read); font-size: 1.05rem; }
.aside-box { background: var(--surface); border-radius: var(--r-md); padding: 1.4rem; position: sticky; top: 100px; }
.aside-box h2 { font-size: 1.05rem; }
.notice { border-left: 4px solid var(--orange); background: #FFF7EF; padding: 1rem 1.2rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .94rem; color: #6B3A0E; }
.notice-info { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); color: var(--ink); }

/* ---------- Accordion / FAQ ---------- */
.faq { display: grid; gap: .6rem; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.3rem; font-weight: 650; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); font-family: var(--f-read); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.cmp th, .cmp td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.cmp thead th { background: var(--ink); color: #fff; font-weight: 650; }
.cmp tbody th { color: var(--ink); width: 22%; }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }

/* D/B/T/V quadrants */
.dbtv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.dbtv-col { border-radius: var(--r-md); padding: 1.4rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.dbtv-col h3 { color: #fff; font-size: 1.5rem; font-stretch: 115%; }
.dbtv-col ol { list-style: none; display: grid; gap: .45rem; counter-reset: s; }
.dbtv-col li { color: #CFE0F5; padding-left: 1.6rem; position: relative; }
.dbtv-col li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: .1em; font-size: .72rem; font-weight: 800; width: 1.15rem; height: 1.15rem; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--ink); }

/* Before / after */
.ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ba-col { border-radius: var(--r-md); padding: 1.4rem; border: 1px solid var(--line); background: #fff; }
.ba-col h3 { display: flex; align-items: center; gap: .5rem; }
.ba-col:nth-child(1) { border-top: 4px solid #9AA8BF; }
.ba-col:nth-child(2) { border-top: 4px solid var(--cyan); }
.ba-col:nth-child(3) { border-top: 4px solid var(--violet); }
.ba-col ul { list-style: none; display: grid; gap: .45rem; font-size: .94rem; color: var(--muted); }
.ba-col li::before { content: "– "; color: var(--accent); }

/* Solutions (software) */
.sol { border-radius: var(--r-lg); border: 1px solid var(--line); padding: 1.6rem; background: #fff; display: grid; gap: .8rem; }
.sol .chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.sol .chips span { font-size: .82rem; padding: .3rem .6rem; background: var(--surface); border-radius: 6px; font-weight: 600; color: var(--ink); }
.sol .chips i { width: 12px; height: 2px; background: var(--accent-2); display: inline-block; }

/* Document examples */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; list-style: none; }
.docs-grid li { background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 4px 4px; padding: 1rem; font-weight: 650; color: var(--ink); display: flex; gap: .6rem; align-items: center; font-size: .93rem; position: relative; }
.docs-grid li::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 14px 14px 0; border-style: solid; border-color: var(--surface) var(--surface) var(--line) var(--line); border-radius: 0 12px 0 0; }
.docs-grid .ico { color: var(--accent); }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.ind { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; padding: 1rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.ind picture { border-radius: 8px 40% 40% 8px / 8px 50% 50% 8px; overflow: hidden; aspect-ratio: 1; }
.ind img { width: 100%; height: 100%; object-fit: cover; }
.ind h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.ind p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Articles ---------- */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.acard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.acard picture { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 1rem; }
.acard img { width: 100%; height: 100%; object-fit: cover; }
.acard .meta { font-size: .82rem; color: var(--muted); display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: .4rem; }
.acard .meta span { display: inline-flex; align-items: center; gap: .3rem; }
.acard h3 { font-size: 1.15rem; }
.acard p { color: var(--muted); font-size: .95rem; font-family: var(--f-read); }
.acard:hover h3 { color: var(--accent); text-decoration: underline; }
.article { max-width: 760px; margin-inline: auto; }
.article-hero picture { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21/9; margin: 1.5rem 0 2rem; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article .meta { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.article .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article h2 { font-size: 1.45rem; margin-top: 2.4rem; display: flex; align-items: baseline; gap: .7rem; }
.article h2 small { font-size: .8rem; color: var(--accent); font-weight: 700; }
.article .read, .article p { font-size: 1.12rem; line-height: 1.75; }
.chain { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1.2rem 0 0; font-size: .82rem; }
.chain li { padding: .25rem .6rem; border-radius: 6px; background: var(--surface); color: var(--ink); font-weight: 600; }
.share { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 2.5rem 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share a, .share button { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: 600 .88rem var(--f-ui); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Careers ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; list-style: none; }
.areas li { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.areas .ico { color: var(--accent); }
.jobs { display: grid; gap: .8rem; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.job h3 { margin: 0 0 .3rem; font-size: 1.12rem; }
.job .meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .88rem; }
.roles { columns: 2 280px; column-gap: 2rem; }
.role-group { break-inside: avoid; margin-bottom: 1.6rem; }
.role-group h3 { font-size: 1rem; color: var(--accent); margin-bottom: .5rem; }
.role-group ul { list-style: none; display: grid; gap: .3rem; }
.role-group li { padding: .5rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: .94rem; }
.example-label { display: inline-flex; gap: .4rem; align-items: center; background: #FFF4E8; color: #8A4A12; font-weight: 700; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; border: 1px dashed #E8A96E; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem 1.3rem .6rem; margin: 0; background: #fff; }
.form legend { font-weight: 750; color: var(--ink); padding: 0 .4rem; font-size: 1.02rem; }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: 500 1rem var(--f-ui); padding: .75rem .85rem; border: 1px solid #BFCBDD; border-radius: 8px; background: #fff; color: var(--text); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .err { font-size: .84rem; color: var(--danger); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.file-drop { border: 2px dashed #BFCBDD; border-radius: var(--r-md); padding: 1.2rem; text-align: center; background: var(--surface); position: relative; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .ico { margin: 0 auto .4rem; color: var(--accent); width: 1.8rem; height: 1.8rem; }
.file-drop strong { color: var(--ink); }
.file-drop .file-name { display: block; margin-top: .4rem; font-weight: 650; color: var(--ok); }
.file-drop.bad { border-color: var(--danger); }
.file-drop.bad .file-name { color: var(--danger); }
.alert { padding: 1rem 1.2rem; border-radius: var(--r-md); margin-bottom: 1rem; font-weight: 550; }
.alert-error { background: #FDECEA; color: #7A1A12; border: 1px solid #F5C2BC; }
.alert-ok { background: #E8F6EE; color: #0F5132; border: 1px solid #B5E0C7; }
.alert ul { margin: .5rem 0 0 1.2rem; font-weight: 500; }
.form-note { font-size: .86rem; color: var(--muted); }
.success-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.6rem); background: #fff; max-width: 760px; }
.success-card dl { display: grid; grid-template-columns: 200px 1fr; gap: .6rem 1rem; margin: 1.4rem 0; }
.success-card dt { color: var(--muted); }
.success-card dd { margin: 0; font-weight: 650; color: var(--ink); }
.ref { font: 800 1.4rem var(--f-ui); color: var(--brand); letter-spacing: .01em; }

/* ---------- Contact & map ---------- */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.office { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; background: #fff; }
.office .type { font-weight: 700; color: var(--accent); font-size: .88rem; margin-bottom: .3rem; }
.office address { font-style: normal; color: var(--text); margin: .6rem 0 1rem; line-height: 1.6; }
.mail-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mail-card { padding: 1.2rem; border-radius: var(--r-md); background: var(--surface); border-left: 4px solid var(--accent); }
.mail-card span { display: block; font-size: .86rem; color: var(--muted); }
.mail-card a { font-weight: 700; word-break: break-all; }
.map-shell { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #DDE7F3; min-height: 440px; }
#map { position: absolute; inset: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; background: linear-gradient(rgba(10,31,68,.08) 1px, transparent 1px) 0 0/32px 32px, linear-gradient(90deg, rgba(10,31,68,.08) 1px, transparent 1px) 0 0/32px 32px, #EAF0F8; }
.map-consent p { max-width: 42ch; color: var(--muted); }
.map-toggle { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.enq-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; list-style: none; }
.enq-types a { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; font-size: .93rem; }
.enq-types a:hover { border-color: var(--accent); color: var(--accent); }
.enq-types .ico { color: var(--accent); }
.reach { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.reach li { padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; background: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #0A3A8C 45%, var(--ink) 100%); color: #DCE6F7; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -60px; width: 420px; height: 420px; border: 40px solid rgba(255,255,255,.06); border-radius: 30px 50% 50% 30px / 30px 50% 50% 30px; }
.cta-in { display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: center; padding-block: clamp(2.6rem, 6vw, 4rem); position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; font-family: var(--f-read); color: #C8D6EF; max-width: 60ch; }
.cta-band .actions { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #071734; color: #A9B9D6; font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; padding-block: 4rem 3rem; }
.footer-brand img { width: 110px; margin-bottom: 1rem; }
.footer-legal { color: #fff; font-weight: 700; margin-bottom: .4rem; }
.footer-brand address { font-style: normal; margin-top: 1rem; line-height: 1.55; font-size: .88rem; }
.footer-brand strong { color: #DCE6F7; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.footer-h { color: #fff; font-size: .98rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a { color: #C8D5EC; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer-mail li span { display: block; font-size: .78rem; color: #7F93B8; }
.footer-mail a { word-break: break-all; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-in { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding-block: 1.3rem; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-fine { color: #7F93B8; }
.footer-bottom ul { display: flex; gap: 1.2rem; }

/* ---------- Floating UI ---------- */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 40; box-shadow: var(--shadow); }
.to-top:hover { background: var(--brand); }
.cookie { position: fixed; left: 1rem; bottom: 1rem; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 20px 50px -20px rgba(10,31,68,.45); padding: 1.1rem 1.2rem; z-index: 60; display: grid; gap: .8rem; font-size: .9rem; }
.cookie p { margin: 0; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.flow.reveal li { opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s ease; }
.flow.reveal.in li { opacity: 1; transform: none; }
.flow.reveal.in li:nth-child(2) { transition-delay: .06s; } .flow.reveal.in li:nth-child(3) { transition-delay: .12s; }
.flow.reveal.in li:nth-child(4) { transition-delay: .18s; } .flow.reveal.in li:nth-child(5) { transition-delay: .24s; }
.flow.reveal.in li:nth-child(6) { transition-delay: .30s; } .flow.reveal.in li:nth-child(7) { transition-delay: .36s; }
.flow.reveal.in li:nth-child(8) { transition-delay: .42s; } .flow.reveal.in li:nth-child(n+9) { transition-delay: .48s; }
.flow.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .flow.reveal li { opacity: 1 !important; transform: none !important; }
}

/* ---------- 404 ---------- */
.nf { text-align: center; padding-block: 6rem; }
.nf-code { font: 800 clamp(5rem, 16vw, 10rem)/1 var(--f-ui); color: var(--surface-2); font-stretch: 125%; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .header-cta { display: none; }
  .nav-link { padding: .55rem .6rem; }
}
@media (max-width: 1024px) {
  .nav-burger { display: grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: #fff; z-index: 70; padding: 5rem 1.2rem 2rem;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; box-shadow: -20px 0 60px -20px rgba(10,31,68,.4); visibility: hidden;
  }
  body.nav-open .nav { transform: none; visibility: visible; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10,31,68,.45); z-index: 65; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: .9rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--surface-2); border-radius: 0; }
  .nav-link.is-active { box-shadow: inset 3px 0 0 var(--brand); }
  .menu, .is-mega .menu { position: static; transform: none; width: auto; min-width: 0; box-shadow: none; border: 0; padding: .3rem 0 .8rem; }
  .mega { grid-template-columns: 1fr; padding: 0 .4rem; }
  .nav-close { display: grid; position: absolute; top: 1rem; right: 1rem; }
  .hero-in, .page-hero-in { grid-template-columns: 1fr; }
  .hero .dframe { max-width: 560px; }
  .page-hero .dframe { max-width: 520px; }
  .lc { grid-template-columns: 1fr; }
  .lc-rail { display: flex; overflow-x: auto; gap: .3rem; padding-bottom: .4rem; scrollbar-width: thin; }
  .lc-rail::before { display: none; }
  .lc-btn { white-space: nowrap; background: rgba(255,255,255,.05); }
  .lc-btn .dot { margin-left: 0; }
  .tx { grid-template-columns: repeat(4, 1fr); }
  .exec-grid { grid-template-columns: repeat(2, 1fr); }
  .exec-step:nth-child(4n) { border-right: 1px solid var(--line); }
  .exec-step:nth-child(2n) { border-right: 0; }
  .exec-step:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .exec-step:nth-child(n+7) { border-bottom: 0; }
  .pgrid, .agrid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .dbtv, .ba { grid-template-columns: repeat(2, 1fr); }
  .cap-group { grid-template-columns: 1fr; gap: 1rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .pd-grid { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  .enq-types { grid-template-columns: repeat(2, 1fr); }
  .mail-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
}
@media (max-width: 760px) {
  .utility-note { display: none; }
  .utility-in { justify-content: flex-end; }
  .split, .split-60, .capx, .lc-panel, .tx-panel, .offices { grid-template-columns: 1fr; }
  .lc-panel picture { aspect-ratio: 16/9; }
  .acts { grid-template-columns: 1fr; }
  .cap-list { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .cta-in { grid-template-columns: 1fr; }
  .footer-bottom-in { grid-template-columns: 1fr; }
  .footer-bottom ul { flex-wrap: wrap; }
  .pd-block { grid-template-columns: 1fr; gap: .4rem; }
  .job { grid-template-columns: 1fr; }
  .success-card dl { grid-template-columns: 1fr; gap: .1rem; }
  .success-card dd { margin-bottom: .6rem; }
  .float-img .second { position: relative; width: 60%; right: auto; bottom: auto; margin: -3rem 0 0 auto; }
  .hero-caption { position: static; margin-top: 1rem; max-width: none; }
}
@media (max-width: 560px) {
  .pgrid, .agrid, .grid-2, .grid-3, .grid-4, .dbtv, .ba, .exec-grid, .enq-types { grid-template-columns: 1fr; }
  .exec-step { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .exec-step:last-child { border-bottom: 0 !important; }
  .tx { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .brand-sub { display: none; }
  .brand-name { font-size: 1rem; }
  .flow { flex-direction: column; align-items: flex-start; }
  .flow li { padding-right: 0; padding-bottom: .2rem; }
  .flow li:not(:last-child)::after { right: auto; left: .95rem; top: auto; bottom: -.75rem; width: 2px; height: .7rem; }
  .flow li:not(:last-child)::before { display: none; }
  .ind { grid-template-columns: 72px 1fr; }
  .cap-item { grid-template-columns: 84px 1fr; }
  .cookie { left: .6rem; right: .6rem; max-width: none; }
  .header-in { gap: .6rem; }
}
@media (max-width: 360px) {
  .brand img { width: 36px; }
  .brand-name { font-size: .92rem; }
  .icon-btn { width: 38px; height: 38px; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media print {
  .utility, .site-header, .site-footer, .cookie, .to-top, .cta-band { display: none !important; }
}

/* ---------- Additions: utilities & inner pages ---------- */
.read { font-family: var(--f-read); font-size: 1.08rem; line-height: 1.72; }
.mt { margin-top: 1.6rem; }
.lc-fit a { text-decoration: none; color: inherit; }
.lc-fit li:hover { border-color: var(--accent); color: var(--accent); }
.search-results { list-style: none; display: grid; gap: 1rem; margin-top: 1rem; }
.search-results li { padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.search-results h2 { font-size: 1.12rem; margin: .35rem 0 .3rem; }
.search-results p { margin: 0; color: var(--muted); font-size: .93rem; }
.tag-type { background: var(--surface-2); color: var(--ink); margin: 0; }
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.sitemap-cols h2 { font-size: 1.1rem; color: var(--accent); }
.sitemap-cols ul { list-style: none; display: grid; gap: .4rem; }
table.lc-matrix { min-width: 1100px; }
.lc-matrix thead th { font-size: .74rem; vertical-align: bottom; padding: .7rem .4rem; text-align: center; }
.lc-matrix thead th:first-child { text-align: left; }
.lc-matrix td { text-align: center; padding: .55rem .3rem; color: var(--accent); font-size: 1.05rem; }
.lc-matrix td.on { background: color-mix(in srgb, var(--accent) 10%, #fff); }
.lc-matrix tbody th a { text-decoration: none; color: var(--ink); font-size: .9rem; }
.job-dl { display: grid; gap: .1rem; margin: 0 0 1.2rem; }
.job-dl dt { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.job-dl dd { margin: 0; font-weight: 650; color: var(--ink); }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose ul { margin: .6rem 0 1rem; }
.acts li .mode { justify-self: end; }
.enq-types li { list-style: none; }
.aside-box .checklist { font-size: .93rem; }
@media (max-width: 760px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-block { grid-template-columns: 1fr; gap: .5rem; }
  .aside-box { position: static; }
  .acts { grid-template-columns: 1fr; }
  .mail-cards, .offices, .enq-types { grid-template-columns: 1fr; }
  .success-card dl { grid-template-columns: 1fr; }
  .success-card dd { margin-bottom: .5rem; }
}
.header-cta { white-space: nowrap; }
[hidden] { display: none !important; }
.success-card { scroll-margin-top: 110px; }

/* ---------- Programmes (About) & footer ---------- */
.tag-active { background: #E3F5EA; color: #0F5132; border: 1px solid #B5E0C7; margin-top: 1rem; }
.footer-est { color: #8FE3F2; font-weight: 650; font-size: .86rem; margin-bottom: .5rem; }

/* =====================================================================
   RESPONSIVE CORRECTIONS (mobile & tablet only — desktop ≥1025px untouched)
   ===================================================================== */
@media (max-width: 1024px) {
  /* backdrop-filter made the header the containing block of the fixed off-canvas menu:
     the menu was only header-tall and its hidden position caused sideways scrolling */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav { height: 100vh; height: 100dvh; overscroll-behavior: contain; }
  body.nav-open { overflow: hidden; }
  /* comfortable touch targets (≥44px) */
  .icon-btn { width: 44px; height: 44px; }
  .btn, .filter, .tab, .share a, .share button, .map-toggle .filter, #cookie-ok { min-height: 44px; }
  .filter, .tab { display: inline-flex; align-items: center; }
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { min-height: 44px; }
  .check input[type=checkbox] { width: 20px; height: 20px; }
  /* small labels readable on phones/tablets */
  .tag, .mode, .brand-sub { font-size: .8rem; }
  /* long words, e-mail addresses and URLs never push the layout wider */
  h1, h2, h3, h4, p, li, dd, dt, td, th, address, a, label, .lead { overflow-wrap: break-word; }
  .mail-card a, .office address, .footer a[href^="mailto"], .aside-box a[href^="mailto"] { overflow-wrap: anywhere; }
  .lc-btn { min-height: 44px; }
  .tx-step, .lc-matrix thead th { font-size: .8rem; }
  .tx button span, .tx-steps button span { font-size: .8rem; }
}
/* forms: fieldsets may shrink below their widest content; controls never exceed their column */
@media (max-width: 1024px) {
  fieldset { min-width: 0; }
  .pd-grid > *, .split > *, .fgrid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
  .mail-card a { word-break: normal; overflow-wrap: anywhere; }
  .form input, .form select, .form textarea { max-width: 100%; }
  /* footer: e-mail column gets a full row so addresses are not broken letter-by-letter */
  .footer-cols > div:last-child { grid-column: span 2; }
  .footer-mail a { word-break: normal; overflow-wrap: anywhere; }
}
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  /* landscape phones: two-card rows are too narrow for their headings — stack them */
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* activity rows: tag below the activity name on phones */
  .acts li { grid-template-columns: 1fr; }
  .acts li .mode { justify-self: start; }
  .mail-card a, .aside-box a[href^="mailto"] { font-size: .9rem; }
  .mail-card { padding: 1rem; }
}
/* phones: headings sized so long words (e.g. "Pharmaceutical") fit without breaking */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.95rem, 9.6vw, 2.5rem); }
  h1 { font-size: clamp(1.8rem, 8.6vw, 2.2rem); }
  h2 { font-size: clamp(1.45rem, 6.6vw, 1.7rem); }
  .utility { font-size: .78rem; }
  .utility-links { gap: .9rem; }
}
@media (max-width: 380px) {
  .utility-links a[href$="careers.html"] { display: none; }
}
/* smallest phones (≤380px): header brand + 44px touch buttons must fit */
@media (max-width: 380px) {
  .header-in { gap: .4rem; }
  .brand { gap: .45rem; min-width: 0; }
  .brand img { width: 32px; }
  .brand-name { font-size: .86rem; letter-spacing: -.015em; }
  .header-actions { gap: .25rem; flex: none; }
  .cookie { left: .5rem; right: .5rem; width: auto; box-sizing: border-box; }
  .cookie > * { min-width: 0; }
}
@media (max-width: 360px) { .footer-cols { grid-template-columns: 1fr; } .mail-card { padding: .9rem .8rem; } .mail-card a { font-size: .84rem; } }
/* open menu must sit above its dark overlay (the header is its own stacking layer, z-index 50 < overlay 65) */
@media (max-width: 1120px) { body.nav-open .site-header { z-index: 80; } }
/* 1025–1120px (e.g. iPad Pro landscape, small laptops): the full desktop menu does not fit — use the tablet menu */
@media (min-width: 1025px) and (max-width: 1120px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-burger { display: grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); height: 100vh; height: 100dvh; background: #fff; z-index: 70; padding: 5rem 1.2rem 2rem;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; box-shadow: -20px 0 60px -20px rgba(10,31,68,.4); visibility: hidden; overscroll-behavior: contain;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { transform: none; visibility: visible; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10,31,68,.45); z-index: 65; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: .9rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--surface-2); border-radius: 0; }
  .nav-link.is-active { box-shadow: inset 3px 0 0 var(--brand); }
  .menu, .is-mega .menu { position: static; transform: none; width: auto; min-width: 0; box-shadow: none; border: 0; padding: .3rem 0 .8rem; }
  .mega { grid-template-columns: 1fr; padding: 0 .4rem; }
  .nav-close { display: grid; position: absolute; top: 1rem; right: 1rem; }
  .header-actions { margin-left: auto; }
}
/* never allow sideways page scrolling (e.g. the About inset photo at 1250–1330px widths); no visual change */
body { overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
@media (min-width: 1025px) and (max-width: 1340px) { .float-img .second { right: -3%; } }
/* keep absolutely-positioned screen-reader labels inside scrollable tables (no visual change) */
.table-wrap { position: relative; }
/* footer e-mail addresses: wrap cleanly after "@" instead of letter-by-letter; slightly wider "Write to us" column */
.footer-mail a { word-break: normal; overflow-wrap: anywhere; }
@media (min-width: 1121px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); } }
@media (min-width: 1025px) and (max-width: 1120px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-cols > div:last-child { grid-column: span 2; }
  .mail-card a { font-size: .92rem; word-break: normal; overflow-wrap: anywhere; }
}
/* ---------- Careers: job filters & tags ---------- */
.jobs-finder { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem 1rem; align-items: center; margin-bottom: 1.2rem; }
.jobs-finder .filters { grid-column: 1 / -1; }
.jobs-finder .result-count { grid-column: 1 / -1; }
.jobs-dept { padding: .7rem 2.2rem .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font: 600 .92rem var(--f-ui); color: var(--ink); min-height: 44px; max-width: 100%; }
.job .meta .tag { margin: 0; }
.tag-level-fresher { background: #E3F5EA; color: #0F5132; }
.tag-level-mid { background: #E0ECFF; color: #0B3D91; }
.tag-level-senior { background: #EFE8FF; color: #4B2DB3; }
.tag-pos { background: #FFF1E3; color: #8A4A00; }
.job-dept-head { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .4rem; }
button.text-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
@media (max-width: 760px) {
  .jobs-finder { grid-template-columns: 1fr; }
  .jobs-dept { width: 100%; }
}
.job .meta { align-items: center; }
.job .meta span { display: inline-flex; align-items: center; gap: .3rem; }
.job-sum { margin: .55rem 0 0; font-size: .95rem; color: var(--text, #17233B); max-width: 75ch; }
.jobs-dept { justify-self: start; min-width: 260px; }
@media (max-width: 760px) { .jobs-dept { min-width: 0; } }
