/* AH Projects Consulting Limited — site styles (light + dark) */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0c2a4d;
  --accent: #1a6fc4;
  --accent-strong: #155ea9;
  --on-accent: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f3f7fc;
  --surface: #ffffff;
  --surface-2: #f3f7fc;
  --tint: #e8f1fb;
  --tint-strong: #d5e6f8;
  --line: #d9e4f1;
  --line-strong: #c4d4e7;
  --ink: #0c2a4d;
  --text: #33445a;
  --muted: #5a6a80;
  --dark-panel: #0c2a4d;
  --on-dark-label: #9cc6f0;
  --header-bg: rgba(255,255,255,.88);

  --logo-a: #2f8de0;
  --logo-b: #114f94;
  --logo-ah: #1a6fc4;
  --ring: #bcd5ef;
  --soft: #e8f1fb;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(12,42,77,.06);
  --shadow: 0 1px 2px rgba(12,42,77,.05), 0 12px 32px -8px rgba(12,42,77,.14);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --accent: #4b9ff0; --accent-strong: #75b6f5; --on-accent: #06121f;
    --bg: #08131f; --bg-alt: #0b1928; --surface: #0f1f33; --surface-2: #132740;
    --tint: #15304f; --tint-strong: #1b3c62; --line: #1d324c; --line-strong: #2a4566;
    --ink: #eef4fb; --text: #c3d0e0; --muted: #8fa3bc;
    --dark-panel: #102641; --header-bg: rgba(8,19,31,.82);
    --logo-a: #5aa9f0; --logo-b: #2a7fd4; --logo-ah: #5aa9f0; --ring: #21406a; --soft: #11294a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 36px -10px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #4b9ff0; --accent-strong: #75b6f5; --on-accent: #06121f;
  --bg: #08131f; --bg-alt: #0b1928; --surface: #0f1f33; --surface-2: #132740;
  --tint: #15304f; --tint-strong: #1b3c62; --line: #1d324c; --line-strong: #2a4566;
  --ink: #eef4fb; --text: #c3d0e0; --muted: #8fa3bc;
  --dark-panel: #102641; --header-bg: rgba(8,19,31,.82);
  --logo-a: #5aa9f0; --logo-b: #2a7fd4; --logo-ah: #5aa9f0; --ring: #21406a; --soft: #11294a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 36px -10px rgba(0,0,0,.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--text); }
.prose { max-width: 820px; font-size: 1.08rem; margin-bottom: 2.5rem; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.grad-text { background: linear-gradient(100deg, var(--logo-a), var(--logo-b) 60%, var(--logo-a)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Eyebrow */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow-dia { width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); flex: none; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); font: 600 .98rem/1 Inter, sans-serif; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon-sm { transition: transform .2s var(--ease); }
.btn:hover .icon-sm { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: #0c2a4d; }
.btn-light:hover { background: #e8f1fb; color: #0c2a4d; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-outline-light .icon { width: 18px; height: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background-color .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(12,42,77,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 64px; }
.brand { display: block; flex: none; color: var(--ink); }
.logo-svg { height: 38px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .logo-svg { height: 34px; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; }
.site-nav ul a { position: relative; display: block; padding: 8px 12px; color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; }
.site-nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav ul a:hover { color: var(--accent); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.header-tools { display: flex; align-items: center; gap: 4px; }
.theme-toggle, .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: none; border: 1px solid transparent; color: var(--ink); cursor: pointer; transition: background .2s; }
.theme-toggle:hover, .nav-toggle:hover { background: var(--tint); }
.theme-toggle .icon { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.theme-toggle:hover .icon { transform: rotate(30deg); }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 60% at 85% 30%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero h1 { max-width: 13ch; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.trust .icon { width: 18px; height: 18px; color: var(--accent); }
.hero-art { width: 100%; max-width: 520px; margin-left: auto; overflow: visible; }

/* Page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 clamp(32px, 4vw, 52px); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.page-hero::before { content: ""; position: absolute; right: -110px; top: 50%; width: 340px; height: 340px; border: 40px solid var(--tint-strong); border-right-color: transparent; transform: translateY(-50%) rotate(45deg); pointer-events: none; opacity: .8; }
.page-hero::after { content: ""; position: absolute; right: 50px; top: 50%; width: 90px; height: 90px; margin-top: -45px; background: var(--tint-strong); transform: rotate(45deg); pointer-events: none; opacity: .8; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero .hero-lead { max-width: 64ch; }
.page-404 { min-height: 50vh; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .lead { color: var(--muted); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-services-home { grid-template-columns: repeat(6, 1fr); }
.grid-services-home > :nth-child(-n+3) { grid-column: span 2; }
.grid-services-home > :nth-child(n+4) { grid-column: span 3; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dd { margin: 0 0 8px; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat dt { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.stats-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }

/* Cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease), background-color .3s; }
.card-title { font-size: 1.1rem; margin-bottom: 14px; }
.card-title-gap { margin-top: 26px; }
.icon-tile { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--tint); color: var(--accent); transition: background .25s, color .25s, transform .25s var(--ease); }
.service-card { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.service-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--logo-a), var(--logo-b)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-card:hover, .reason:hover, .person-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .icon-tile, .reason:hover .icon-tile { background: var(--accent); color: var(--on-accent); transform: rotate(-6deg); }
.service-top { display: flex; align-items: center; justify-content: space-between; }
.service-num { font-size: 1.7rem; font-weight: 800; color: var(--tint-strong); letter-spacing: -.02em; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin: 0; font-size: .95rem; }
.service-card .text-link { margin-top: auto; font-size: .92rem; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.services-grid .service-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px 28px; align-items: start; }
.services-grid .service-wide .service-num { display: none; }

.dia-list { list-style: none; display: grid; gap: 9px; }
.dia-list li { position: relative; padding-left: 22px; font-size: .96rem; color: var(--ink); }
.dia-list li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.dia-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 6px; background: var(--tint); color: var(--ink); font-size: .84rem; font-weight: 600; }

/* Lifecycle */
.lifecycle { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.chevron { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 92px; padding: 14px 30px 14px 26px; color: #fff; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 14px 50%); transition: filter .25s, transform .25s var(--ease); }
.stage-1 .chevron { padding-left: 18px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); background: #2580d4; }
.stage-2 .chevron { background: #1c6fc1; }
.stage-3 .chevron { background: #175fab; }
.stage-4 .chevron { background: #134d8e; }
.stage-5 .chevron { background: #0c2a4d; }
:root[data-theme="dark"] .stage-5 .chevron { background: #1d4374; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage-5 .chevron { background: #1d4374; } }
.stage:hover .chevron { filter: brightness(1.12); transform: translateY(-2px); }
.stage-n { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.stage-t { font-weight: 700; font-size: .98rem; line-height: 1.25; }
.stage-detail { padding: 16px 8px 0; }
.stage-svc { margin: 12px 0 0; padding: 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.stage-detail .stage-svc { margin: 0 0 6px; padding: 0; }
.stage-detail p:last-child { font-size: .92rem; color: var(--muted); }

/* Reasons, sectors, values, engage */
.reason h3 { margin-top: 18px; }
.reason p { margin: 0; }
.sector { padding: 18px 18px 18px 20px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface-2); transition: transform .25s var(--ease); }
.section-alt .sector { background: var(--surface); }
.sector:hover { transform: translateX(4px); }
.sector h3 { font-size: 1rem; margin-bottom: 4px; }
.sector p { margin: 0; font-size: .9rem; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.value { position: relative; padding-top: 18px; }
.value::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--line-strong); }
.value::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 3px; background: var(--accent); transition: width .4s var(--ease); }
.value:hover::after { width: 100%; }
.value-n { display: block; font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.value h3 { font-size: 1.02rem; }
.value p { font-size: .92rem; color: var(--muted); margin: 0; }
.engage p { margin: 0; }
.engage-featured { background: linear-gradient(135deg, #2580d4, #114f94); border-color: transparent; }
.engage-featured h3 { color: #fff; }
.engage-featured p { color: rgba(255,255,255,.9); }

/* Panels */
.panel { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); color: #fff; }
.panel h2 { color: #fff; font-size: 1.45rem; }
.panel p { position: relative; margin: 0; font-size: 1.05rem; color: rgba(255,255,255,.92); }
.panel-blue { background: linear-gradient(135deg, #2580d4, #155ea9); }
.panel-navy { background: var(--dark-panel); border: 1px solid var(--line); }
.panel-dia { position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border: 22px solid rgba(255,255,255,.1); transform: rotate(45deg); transition: transform .6s var(--ease); }
.panel:hover .panel-dia { transform: rotate(135deg); }

/* Featured project (home) */
.feature-project { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; border-radius: 16px; background: var(--dark-panel); color: #fff; border: 1px solid var(--line); }
.fp-head { position: relative; padding: clamp(28px, 4.5vw, 52px); }
.fp-head h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.fp-head p { color: rgba(255,255,255,.85); }
.fp-kicker { font-size: .74rem !important; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-label) !important; margin-bottom: 12px; }
.fp-figures, .case-figures { display: grid; margin: 0; background: linear-gradient(135deg, #2580d4, #155ea9); color: #fff; }
.fp-figures { grid-template-rows: repeat(3, 1fr); }
.fp-figures div, .case-figures div { display: flex; flex-direction: column-reverse; justify-content: center; padding: 20px clamp(20px, 3vw, 36px); border-top: 1px solid rgba(255,255,255,.18); }
.fp-figures div:first-child { border-top: 0; }
.fp-figures dd, .case-figures dd { margin: 0; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fp-figures dt, .case-figures dt { margin-top: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.82); }

/* Case study */
.case { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.case-head { padding: clamp(24px, 4vw, 40px); background: var(--dark-panel); color: #fff; }
.case-head h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.case-head p:last-child { margin: 0; color: rgba(255,255,255,.82); }
.case-figures { grid-template-columns: repeat(3, 1fr); }
.case-figures div { border-top: 0; border-left: 1px solid rgba(255,255,255,.18); }
.case-figures div:first-child { border-left: 0; }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding: clamp(24px, 4vw, 40px); }
.case-body h3 { margin-top: 26px; }
.case-body > div:last-child h3 { margin-top: 0; }
.num-list { list-style: none; counter-reset: n; display: grid; gap: 10px; }
.num-list li { counter-increment: n; display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-size: .95rem; }
.num-list li::before { content: counter(n); display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: .8rem; font-weight: 700; }

.kv { margin: 0; }
.kv div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }
.badge-active { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 4px; background: rgba(34,160,80,.14); color: #1f9a4c; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge-active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.reg-list { list-style: none; }
.reg-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.reg-list li div { display: grid; gap: 2px; }
.reg-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent); flex: none; }
.reg-ico .icon { width: 16px; height: 16px; }
.reg-list strong { color: var(--ink); }
.reg-list div span { color: var(--muted); font-size: .9rem; }
.reg-note { margin: 16px 0 0; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.assign-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.assign-table th { background: var(--dark-panel); color: #fff; text-align: left; font-weight: 600; font-size: .8rem; letter-spacing: .04em; padding: 14px 16px; }
.assign-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.assign-table tbody tr { transition: background-color .2s; }
.assign-table tbody tr:nth-child(even) { background: var(--surface-2); }
.assign-table tbody tr:hover { background: var(--tint); }
.assign-table td strong { color: var(--ink); }
.tnote { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* Team */
.person-card { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.person-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.role { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.avatar { display: grid; place-items: center; width: 128px; height: 128px; margin: 18px auto 30px; background: linear-gradient(135deg, #5aa9f0, #1a6fc4 50%, #114f94); transform: rotate(45deg); border-radius: 8px; box-shadow: 0 0 0 8px rgba(255,255,255,.06); }
.avatar span { transform: rotate(-45deg); color: #fff; font-weight: 800; font-size: 1.7rem; }
.avatar-sm { width: 54px; height: 54px; margin: 10px; flex: none; border-radius: 6px; box-shadow: none; transition: transform .5s var(--ease); }
.avatar-sm span { font-size: .95rem; transition: transform .5s var(--ease); }
.person-card:hover .avatar-sm { transform: rotate(135deg); }
.person-card:hover .avatar-sm span { transform: rotate(-135deg); }
.avatar-xs { width: 26px; height: 26px; margin: 4px; flex: none; border-radius: 4px; box-shadow: none; }
.avatar-xs span { font-size: .56rem; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jump a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.jump a:hover { border-color: var(--accent); transform: translateY(-2px); }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.profile-side { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px 28px; border-radius: 14px; background: var(--dark-panel); color: #fff; border: 1px solid var(--line); }
.profile-name { color: #fff; text-align: center; font-size: 1.35rem; margin-bottom: 6px; }
.profile-role { text-align: center; color: var(--on-dark-label); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.profile-side h4 { margin: 26px 0 10px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-label); }
.side-list { list-style: none; display: grid; gap: 10px; }
.side-list li { position: relative; padding-left: 18px; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.92); }
.side-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: #5aa9f0; transform: rotate(45deg); }
.profile-main h3 { margin: 36px 0 16px; font-size: 1.3rem; }
.profile-main > h3:first-child { margin-top: 8px; }
.profile-main .lead { font-size: 1.18rem; }
.timeline { list-style: none; position: relative; display: grid; gap: 18px; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 13px; height: 13px; background: var(--bg); border: 2px solid var(--accent); transform: rotate(45deg); }
.section-alt .timeline li::before { background: var(--bg-alt); }
.timeline li.current::before { background: var(--accent); box-shadow: 0 0 0 5px var(--tint-strong); }
.tl-when { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tl-org { font-weight: 700; color: var(--ink); }
.tl-role { font-size: .93rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.contact-card { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 40px); border-radius: 16px; background: var(--dark-panel); color: #fff; border: 1px solid var(--line); }
.contact-card::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 220px; height: 220px; border: 34px solid rgba(90,169,240,.18); border-right-color: transparent; transform: rotate(45deg); }
.contact-list { position: relative; z-index: 1; list-style: none; display: grid; }
.contact-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list li:last-child { border-bottom: 0; }
.c-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid #5aa9f0; transform: rotate(45deg); margin: 4px; transition: background .25s; }
.contact-list li:hover .c-ico { background: rgba(90,169,240,.2); }
.c-ico .icon { transform: rotate(-45deg); width: 18px; height: 18px; color: #fff; }
.c-label { margin: 0 0 2px; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-label); }
.contact-list p { margin: 0; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); }
.contact-form h2 { font-size: 1.5rem; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.contact-form label em { font-style: normal; color: var(--accent); margin-left: 3px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: 400 1rem/1.4 Inter, sans-serif; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint-strong); }
.contact-form [aria-invalid="true"] { border-color: #d0453a; }
.contact-form .btn { justify-self: start; }
.form-privacy { margin: 0; font-size: .84rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #1f9a4c; font-weight: 600; }
.form-status.err { color: #e0584d; font-weight: 600; }
.map-wrap { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); aspect-ratio: 21 / 8; min-height: 300px; background: var(--bg-alt); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 22px 22px; }
.map-placeholder > .icon { width: 36px; height: 36px; color: var(--accent); }
.map-placeholder p { margin: 0; color: var(--muted); font-size: .92rem; }
.map-placeholder strong { color: var(--ink); }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Legal */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
.legal h2:first-child { margin-top: 0; }
.legal .dia-list { margin-bottom: 1em; }

/* CTA band + footer */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #114f94, #1f74c9 55%, #2f8de0); color: #fff; padding: clamp(48px, 6vw, 76px) 0; }
.cta-shape { position: absolute; right: -60px; top: 50%; width: 300px; height: 300px; margin-top: -150px; border: 40px solid rgba(255,255,255,.1); border-right-color: transparent; transform: rotate(45deg); }
.cta-shape-2 { right: 160px; width: 80px; height: 80px; margin-top: -40px; border: 0; background: rgba(255,255,255,.1); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: #0a2240; color: rgba(255,255,255,.75); font-size: .93rem; padding-top: clamp(48px, 6vw, 72px); }
:root[data-theme="dark"] .site-footer { background: #050d17; border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #050d17; border-top: 1px solid var(--line); } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-logo { display: inline-block; color: #fff; --logo-a: #5aa9f0; --logo-b: #2a7fd4; --logo-ah: #5aa9f0; margin-bottom: 18px; }
.footer-logo .logo-svg { height: 40px; }
.site-footer h3 { color: #fff; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: #7ab8f2; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.footer-bottom p { margin: 0; }

/* ---------- Animations ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .ha-open { stroke-dasharray: 100; animation: draw 1.6s .2s var(--ease) both; }
  .ha-core { transform-box: fill-box; transform-origin: center; animation: core-in 1s .9s var(--ease) both; }
  .ha-soft { transform-box: fill-box; transform-origin: center; animation: grow 1s .4s var(--ease) both; }
  .ha-ring { transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite; }
  .ha-float { animation: float 7s 2s ease-in-out infinite; }
  .ha-dots rect { animation: twinkle 3.5s ease-in-out infinite; }
  .ha-dots rect:nth-child(2) { animation-delay: 1.2s; }
  .ha-dots rect:nth-child(3) { animation-delay: 2.1s; }
  .grad-text { animation: shimmer 6s ease-in-out infinite alternate; }

  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .25s, box-shadow .25s; transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.in:hover { transition-delay: 0s; }
  .js .service-card.reveal.in:hover, .js .reason.reveal.in:hover, .js .person-card.reveal.in:hover { transform: translateY(-4px); }
  .js .sector.reveal.in:hover { transform: translateX(4px); }
  .js .lifecycle .stage.reveal { transform: translateX(-18px); transition-delay: calc(var(--d, 0) * 120ms); }
  .js .lifecycle .stage.reveal.in { transform: none; }
  .page-hero h1, .page-hero .hero-lead, .page-hero .eyebrow, .page-hero .jump { animation: rise .7s var(--ease) both; }
  .page-hero .hero-lead { animation-delay: .1s; }
  .page-hero .jump { animation-delay: .2s; }
  .page-hero::before { animation: spin-in 1.2s var(--ease) both; }
  .page-hero::after { animation: pop 1s .3s var(--ease) both; }
  .cta-shape { animation: drift 10s ease-in-out infinite alternate; }

  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  @keyframes core-in { from { opacity: 0; transform: translateX(-60px) scale(.6); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; scale: .6; } to { opacity: .8; scale: 1; } }
  @keyframes grow { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
  @keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
  @keyframes shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }
  @keyframes spin-in { from { opacity: 0; transform: translateY(-50%) rotate(0deg) scale(.8); } to { opacity: .8; transform: translateY(-50%) rotate(45deg); } }
  @keyframes drift { from { rotate: 0deg; } to { rotate: 15deg; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .lifecycle:not(.lifecycle-compact) { grid-template-columns: 1fr; gap: 0; }
  .lifecycle:not(.lifecycle-compact) .stage { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; padding: 6px 0; }
  .lifecycle:not(.lifecycle-compact) .chevron { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%) !important; padding-left: 18px; min-height: 76px; }
  .lifecycle:not(.lifecycle-compact) .stage-detail { padding: 0; }
  .lifecycle-compact { grid-template-columns: repeat(5, minmax(160px, 1fr)); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
  .lifecycle-compact .stage { scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .logo-svg { height: 32px; }
  .site-header.scrolled .logo-svg { height: 30px; }
  .nav-toggle { display: grid; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px; margin: 0; padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -12px rgba(0,0,0,.25); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-header.scrolled .site-nav { inset: 64px 0 auto 0; }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 13px 12px; font-size: 1.05rem; border-radius: 8px; }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { background: var(--tint); }
  .nav-cta { min-height: 48px; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { position: absolute; right: -150px; top: -30px; width: 400px; opacity: .18; pointer-events: none; z-index: -1; }
  .split, .grid-2, .profile, .contact-grid, .case-body, .feature-project { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-services-home { grid-template-columns: 1fr 1fr; }
  .grid-services-home > * { grid-column: auto !important; }
  .grid-services-home > :last-child { grid-column: 1 / -1 !important; }
  .profile-side { position: static; }
  .services-grid .service-wide { grid-template-columns: 1fr; }
  .fp-figures { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .fp-figures div { border-top: 0; border-left: 1px solid rgba(255,255,255,.18); }
  .fp-figures div:first-child { border-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-services-home, .grid-3, .grid-4, .values, .form-row, .dia-list.cols-2 { grid-template-columns: 1fr; }
  .grid-services-home > :last-child { grid-column: auto !important; }
  .lifecycle:not(.lifecycle-compact) .stage { grid-template-columns: 1fr; gap: 10px; padding: 10px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .stat { padding: 18px; }
  .fp-figures div, .case-figures div { padding: 16px 14px; }
  .fp-figures dt, .case-figures dt { font-size: .62rem; letter-spacing: .1em; }
  .contact-form .btn { justify-self: stretch; }
  .hero-actions .btn { flex: 1 1 auto; }
  .page-hero::before { width: 200px; height: 200px; border-width: 26px; right: -100px; }
  .page-hero::after { display: none; }
  .map-wrap { aspect-ratio: auto; min-height: 340px; }
  .table-wrap { border: 0; background: none; overflow: visible; }
  .assign-table thead { position: absolute; left: -9999px; }
  .assign-table, .assign-table tbody, .assign-table tr, .assign-table td { display: block; width: 100%; }
  .assign-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface) !important; overflow: hidden; }
  .assign-table td { border-top: 0; padding: 6px 16px; }
  .assign-table td:first-child { padding-top: 14px; }
  .assign-table td:last-child { padding-bottom: 14px; }
  .assign-table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
}

/* SVG colours (via CSS so they follow the theme) */
.lg-a { stop-color: var(--logo-a); }
.lg-b { stop-color: var(--logo-b); }
.lg-ah { fill: var(--logo-ah); }
.ha-ring { stroke: var(--ring); }
.ha-soft { fill: var(--soft); }
.ha-dots { fill: var(--logo-a); }

/* Team cards */
.team-grid { align-items: stretch; }
.member { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.member-head { display: flex; align-items: center; gap: 16px; }
.member-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.member-head .role { margin: 0; }
.member > p { margin: 0; color: var(--muted); }
.member h3 { margin: 6px 0 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.member-creds { font-size: .92rem; gap: 8px; }
