/* ==========================================================================
   DEFKAN — Analysis & Computing Technology
   Main stylesheet. Mobile-first. No frameworks.
   Light theme by default. Add class="dark" to any block for the navy theme.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Light (default) */
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #F4F7FB;
  --border: #E1E7EF;
  --border-strong: #C6D0DE;
  --text: #0A1428;
  --muted: #475569;
  --dim: #5B6B82;
  --accent: #0B7C8C;          /* teal: links, labels on light */
  --accent-hover: #075F6B;
  --accent-bright: #19C3D6;   /* cyan: graphics and highlights */
  --accent-tint: #E7F6F8;
  --btn-bg: #0A1428;
  --btn-text: #FFFFFF;
  --btn-hover: #0B7C8C;
  --grid-line: rgba(10, 20, 40, .055);
  --shadow: 0 1px 2px rgba(10, 20, 40, .04), 0 12px 32px -16px rgba(10, 20, 40, .16);
  --shadow-lg: 0 2px 4px rgba(10, 20, 40, .04), 0 24px 48px -20px rgba(10, 20, 40, .28);

  /* Brand constants */
  --navy: #0A1428;
  --navy-2: #111F3D;
  --cyan: #19C3D6;
  --gold: #F2B33D;

  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* labels use Inter too */

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Navy scope: footer, bands and emphasis sections */
.dark {
  --bg: #0A1428;
  --bg-alt: #0C1830;
  --surface: #111F3D;
  --surface-2: #0E1A34;
  --border: #1B2C52;
  --border-strong: #2A4170;
  --text: #FFFFFF;
  --muted: #B8C4DA;
  --dim: #8B9AB8;
  --accent: #19C3D6;
  --accent-hover: #52D7E6;
  --accent-tint: rgba(25, 195, 214, .1);
  --btn-bg: #19C3D6;
  --btn-text: #0A1428;
  --btn-hover: #52D7E6;
  --grid-line: rgba(42, 65, 112, .45);
  --shadow: none;
  --shadow-lg: none;
  background-color: var(--bg);
  color: var(--muted);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 4.6vw + 1rem, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.85rem); }
h3 { font-size: clamp(1.15rem, .4vw + 1rem, 1.35rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
::selection { background: #BDEFF5; color: var(--navy); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }
.section--alt, .section--light { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section.dark { border-block: 0; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; }
.section-head--row > div { max-width: 700px; }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent-bright); }
.code {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; color: var(--dim);
}
.lead { font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem); line-height: 1.6; max-width: 62ch; color: var(--muted); }
.text-white { color: var(--text); }
.gold { color: var(--gold); }

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; min-height: 46px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: .55rem 1rem; min-height: 40px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .925rem; text-decoration: none; color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, #0077B6, #19C3D6 35%, #2E8B57 70%, #F2B33D);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.brand__mark { width: auto; height: 26px; }
@media (min-width: 640px) { .brand__mark { height: 30px; } }
.brand__word {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  letter-spacing: .14em; color: var(--text);
}
.brand:hover .brand__word { color: var(--text); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile navigation panel */
.site-nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff;
  padding: 1.25rem var(--gutter) 2rem;
  overflow-y: auto;
  flex-direction: column; gap: 1.5rem;
  border-top: 1px solid var(--border);
}
.site-nav.is-open { display: flex; }
.nav-list { list-style: none; display: flex; flex-direction: column; }
.nav-list > li { border-bottom: 1px solid var(--border); position: relative; }
.nav-link {
  display: block; padding: 1rem 0;
  color: var(--text); text-decoration: none;
  font-weight: 500; font-size: 1.05rem;
}
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--accent); }
.has-dropdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.dropdown-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 0; color: var(--muted);
}
.dropdown-toggle svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.has-dropdown.is-open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown { list-style: none; display: none; width: 100%; padding: 0 0 .75rem; }
.has-dropdown.is-open .dropdown { display: block; }
.dropdown a {
  display: flex; gap: .85rem; align-items: baseline;
  padding: .7rem .25rem; color: var(--muted); text-decoration: none; font-size: .95rem;
}
.dropdown a:hover { color: var(--text); }
.dropdown .code { color: var(--accent); min-width: 2.6rem; }
.nav-cta { align-self: flex-start; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 1.75rem;
    padding: 0; background: none; border: 0; overflow: visible;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 1.6rem; }
  .nav-list > li { border: 0; }
  .nav-link { padding: .5rem 0; font-size: .9rem; color: #334155; position: relative; }
  .nav-link:hover { color: var(--text); }
  .nav-link[aria-current="page"] { color: var(--text); }
  .nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent-bright);
  }
  .has-dropdown { flex-wrap: nowrap; gap: .1rem; }
  .dropdown-toggle { width: 28px; height: 32px; }
  .dropdown-toggle svg { width: 15px; height: 15px; }
  .dropdown {
    display: block; position: absolute; top: calc(100% + 14px); left: -1.25rem;
    width: 360px; padding: .6rem;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .has-dropdown.is-open .dropdown,
  html:not(.js) .has-dropdown:hover .dropdown,
  html:not(.js) .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
  .dropdown a { padding: .7rem .8rem; border-radius: var(--radius-sm); font-size: .9rem; }
  .dropdown a:hover { background: var(--bg-alt); }
  .nav-cta { align-self: auto; }
}
/* Without JavaScript the mobile menu stays reachable */
@media (max-width: 1099px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .site-nav { display: flex; position: static; width: 100%; padding: 0; border: 0; }
  html:not(.js) .dropdown { display: block; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(86vh, 800px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(5rem, 10vw, 8rem) clamp(3.5rem, 7vw, 5rem);
  background: linear-gradient(180deg, #F3F7FC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg svg { width: 100%; height: 100%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--fade, #F6F9FD) 0%,
    color-mix(in srgb, var(--fade, #F6F9FD) 90%, transparent) 30%,
    color-mix(in srgb, var(--fade, #F6F9FD) 10%, transparent) 68%,
    color-mix(in srgb, var(--fade, #F6F9FD) 35%, transparent) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-bottom: 2.25rem; }
.hero__meta {
  position: relative; z-index: 1; margin: clamp(3rem, 7vw, 5rem) 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem 2.5rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.hero__meta span { display: inline-flex; gap: .6rem; }
.hero__meta b { color: var(--accent); font-weight: 500; }

/* Animated node network (light) */
.net line { stroke: var(--net-line, #CBD8E8); stroke-width: 1; }
.net .flow { stroke: var(--accent-bright); stroke-opacity: .85; stroke-dasharray: 3 11; }
.net circle { fill: var(--net-node, #9EB3CD); }
.net .hot { fill: var(--accent-bright); }
.net .halo { fill: none; stroke: var(--accent-bright); stroke-width: 1; transform-box: fill-box; transform-origin: center; opacity: 0; }
.net .tick { stroke: var(--net-line, #C6D0DE); }
.net text { fill: var(--decor-text, #8A99B0); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; }
@media (prefers-reduced-motion: no-preference) {
  .net .drift { animation: drift 38s ease-in-out infinite alternate; }
  .net .flow { animation: flow 7s linear infinite; }
  .net .halo { animation: pulse 4.5s ease-out infinite; }
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-36px, 14px); } }
@keyframes flow { to { stroke-dashoffset: -140; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(4.5); opacity: 0; } }

/* Inner page hero */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #F3F7FC 0%, #FAFCFE 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.page-hero__decor {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  width: min(620px, 70vw); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 3.6vw + 1rem, 3.9rem); max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 2rem; }
.decor line, .decor path, .decor polyline, .decor circle.ring { fill: none; stroke: var(--decor-line, #C3D0E0); stroke-width: 1; }
.decor .accent { stroke: var(--accent-bright); stroke-opacity: .95; stroke-width: 1.5; }
.decor .dot { fill: var(--decor-dot, #A9BBD2); }
.decor .dot.hot { fill: var(--accent-bright); }
.decor text { fill: var(--decor-text, #8A99B0); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; }
@media (max-width: 760px) { .page-hero__decor { opacity: .35; right: -30%; } }

.breadcrumb { margin-bottom: 1.75rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--border-strong); }
.breadcrumb a { color: var(--dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- 7. Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: 0 1px 2px rgba(10, 20, 40, .03);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.dark .card { box-shadow: none; }
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: linear-gradient(90deg, var(--accent-bright), transparent 70%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; opacity: 0; transition: opacity .25s var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .6rem; }
.card p { margin-bottom: 1.25rem; }
.card > :last-child { margin-bottom: 0; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  background: var(--accent-tint); border-radius: var(--radius); color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card__foot { margin-top: auto; padding-top: .25rem; }
.card__stretch { color: inherit; text-decoration: none; }
.card__stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card__stretch:hover { color: inherit; }
.card__stretch:focus-visible { outline: none; }
.card__stretch:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.card:has(.card__stretch:hover) { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card:has(.card__stretch:hover)::before { opacity: 1; }

.pillar h3 { font-size: clamp(1.25rem, .6vw + 1.05rem, 1.5rem); }

/* ---------- 8. Capabilities strip ---------- */
.cap-strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.cap-strip__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); }
.cap-strip__list li {
  display: flex; align-items: baseline; gap: .7rem;
  padding: 1.25rem 1rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: 1rem;
}
.cap-strip__list li:nth-child(2n) { border-right: 0; }
.cap-strip__list .code { color: var(--accent); }
@media (min-width: 760px) {
  .cap-strip__list { grid-template-columns: repeat(4, 1fr); }
  .cap-strip__list li { padding: 1.6rem 1.25rem; }
  .cap-strip__list li:nth-child(2n) { border-right: 1px solid var(--border); }
  .cap-strip__list li:nth-child(4n) { border-right: 0; }
  .cap-strip__list li:nth-child(n+5) { border-bottom: 0; }
}

/* ---------- 9. Bands (CMP highlight, CTA) — navy panels ---------- */
.band {
  position: relative; overflow: hidden;
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(25, 195, 214, .16), transparent 55%),
    var(--navy);
}
.band::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold);
}
.band > * { position: relative; z-index: 1; }
.band h2 { max-width: 22ch; }
.band p { max-width: 56ch; }
.band__grid {
  list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  font-family: var(--font-mono); font-size: .75rem;
}
.band__grid li {
  aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--dim);
}
.band__grid li:nth-child(5n+1) { border-color: rgba(25, 195, 214, .7); color: var(--accent); background: rgba(25, 195, 214, .08); }
@media (min-width: 900px) { .band { grid-template-columns: 1.5fr 1fr; } }

.cta-band .band { grid-template-columns: 1fr; }
@media (min-width: 900px) { .cta-band .band { grid-template-columns: 1fr auto; } }
.cta-band .band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border: 1px solid var(--border-strong); border-radius: 50%; pointer-events: none;
}

/* ---------- 10. Lists ---------- */
.list-check { list-style: none; display: grid; gap: .7rem; }
.list-check li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px;
  border: 1.5px solid var(--accent); transform: rotate(45deg);
}
@media (min-width: 700px) { .list-check--2col { grid-template-columns: 1fr 1fr; gap: .7rem 2rem; } }

/* ---------- 11. Services page ---------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.subnav ul { list-style: none; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .6rem; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; gap: .5rem; align-items: baseline; white-space: nowrap;
  padding: .45rem .8rem; border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none; font-size: .875rem;
}
.subnav a:hover { color: var(--text); background: var(--bg-alt); }
.subnav .code { color: var(--accent); }
.service { scroll-margin-top: calc(var(--header-h) + 64px); }
.service__layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .service__layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.service__head .code { display: inline-block; margin-bottom: 1rem; color: var(--accent); background: var(--accent-tint); padding: .25rem .55rem; border-radius: var(--radius-sm); }
.service h2 { max-width: 18ch; }
.service__who {
  margin-block: 1.75rem 2rem; padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--accent-bright); background: var(--accent-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.service__who h3 { font-size: .75rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: .5rem; font-weight: 500; }
.service__who p { margin: 0; color: var(--text); }
.service__deliver {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: var(--shadow);
}
.service__deliver h3 { font-size: .8rem; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.service__full { margin-top: 2.5rem; }

.num-grid { list-style: none; display: grid; border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.num-grid li { box-shadow: inset -1px -1px 0 var(--border); }
@media (min-width: 560px) { .num-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .num-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .num-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.num-grid a, .num-grid .num-grid__item {
  display: flex; gap: 1rem; align-items: baseline; height: 100%;
  padding: 1.15rem 1.25rem; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.45;
  transition: background-color .2s var(--ease);
}
.num-grid a:hover { background: var(--accent-tint); color: var(--text); }
.num-grid .code { color: var(--accent); font-size: .8rem; flex: none; }

/* ---------- 12. Timeline ---------- */
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 2rem 2.75rem; }
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: -10px; width: 1px; background: var(--border-strong);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
  border: 1.5px solid var(--accent-bright); background: var(--bg); transform: rotate(45deg);
}
.timeline li:first-child::after { background: var(--accent-bright); }
.timeline .code { display: block; color: var(--accent); margin-bottom: .35rem; }
.timeline h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.timeline p { margin: 0; font-size: .95rem; }
.timeline .timeline__areas { margin-top: .6rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--dim); }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .timeline li { padding: 2.5rem 0 0; }
  .timeline li::before { left: 0; right: -1.5rem; top: 7px; bottom: auto; width: auto; height: 1px; }
  .timeline li:last-child::before { display: block; right: 0; background: linear-gradient(90deg, var(--border-strong), transparent); }
  .timeline li::after { top: 0; }
}

/* ---------- 13. Accordion (CMP areas) ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.25rem .25rem; cursor: pointer; list-style: none;
  color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: clamp(1.02rem, .4vw + .95rem, 1.2rem);
  transition: color .2s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .code { color: var(--accent); font-size: .85rem; min-width: 2rem; }
.accordion summary .acc-icon { margin-left: auto; flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: var(--accent-tint); border-radius: var(--radius-sm); color: var(--accent); }
.accordion summary .acc-icon svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.accordion details[open] summary .acc-icon { background: var(--navy); color: #fff; }
.accordion details[open] summary .acc-icon svg { transform: rotate(45deg); }
.accordion summary:hover { color: var(--accent); }
.accordion .acc-body { padding: 0 .25rem 1.6rem calc(2rem + 1.5rem); }
@media (max-width: 600px) { .accordion .acc-body { padding-left: .25rem; } }

/* ---------- 14. Products ---------- */
.tiles { list-style: none; display: grid; border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(2, 1fr); background: var(--surface); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tiles li { box-shadow: inset -1px -1px 0 var(--border); padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.tiles svg { width: 40px; height: 40px; padding: 9px; color: var(--accent); background: var(--accent-tint); border-radius: var(--radius); }
.tiles span { color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .98rem; line-height: 1.35; }

.product-card .code { color: var(--accent); }
.product-card h3 { margin-bottom: .75rem; }
.product-card h3 button { all: unset; cursor: pointer; color: var(--text); }
.product-card h3 button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.product-card h3 button:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-card:has(h3 button:hover) { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card:has(h3 button:hover)::before { opacity: 1; }
.product-card__more { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; }
.product-card__more svg { width: 15px; height: 15px; }
.product-card__actions { position: relative; z-index: 2; margin-top: auto; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ext-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.ext-link svg { width: 15px; height: 15px; }

/* Dialog */
.modal {
  width: min(760px, calc(100% - 2rem)); max-height: calc(100dvh - 3rem);
  padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; color: var(--muted); box-shadow: var(--shadow-lg);
}
.modal::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--navy), var(--cyan)); }
.modal::backdrop { background: rgba(10, 20, 40, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__inner { padding: clamp(1.5rem, 4vw, 2.75rem); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.modal__head .code { color: var(--accent); }
.modal h2 { font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem); margin-bottom: 1rem; }
.modal h3 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); font-weight: 500; margin: 1.75rem 0 1rem; }
.modal__close {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text);
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }
.modal__close svg { width: 18px; height: 18px; }
.modal .btn-row { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in .25s var(--ease); }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 15. Research ---------- */
.research-list { display: grid; gap: 1.25rem; }
.research-card { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .research-card { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; padding: 2.5rem; }
}
.research-card__head .code { display: inline-block; color: var(--accent); background: var(--accent-tint); padding: .25rem .55rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.research-card__head h2, .research-card__head h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); margin-bottom: 0; }
.research-card__body { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .research-card__body { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.research-card__body h3, .research-card__body h4 {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); font-weight: 500; margin-bottom: .6rem; padding-bottom: .6rem; border-bottom: 2px solid var(--accent-tint);
}
.research-card__body p { margin: 0; }
.research-card__fig { margin-top: 1.75rem; color: var(--accent); }
.research-card__fig svg { width: 100%; max-width: 260px; height: auto; }

/* ---------- 16. About ---------- */
.statement {
  font-family: var(--font-head); font-weight: 500; color: var(--text);
  font-size: clamp(1.7rem, 2.6vw + 1rem, 3.1rem); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 22ch; margin: 0;
}
.statement .accent { color: var(--accent); }
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
.value .code { color: var(--accent); }
.value { border-top: 3px solid var(--accent-bright); }
.leader__avatar {
  aspect-ratio: 1; width: 100%; max-width: 160px; margin-bottom: 1.5rem;
  border-radius: var(--radius); color: #9EB3CD;
  background: linear-gradient(160deg, #EEF3F9, #E2EAF4);
}
.leader__avatar svg { width: 100%; height: 100%; }
.leader h3 { margin-bottom: .25rem; }
.leader .role { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .06em; margin-bottom: 1rem; }

/* ---------- 17. Contact ---------- */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; } }
.contact-primary {
  margin-block: 2rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 100% 0%, rgba(25, 195, 214, .18), transparent 60%), var(--navy);
}
.contact-primary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.contact-primary .label { display: block; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: .6rem; }
.contact-primary__value { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 1.2vw + 1rem, 1.75rem); color: #fff; overflow-wrap: anywhere; }
.contact-sub { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); font-weight: 500; margin: 2.5rem 0 1rem; }

.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--border); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.contact-list svg { width: 40px; height: 40px; padding: 10px; color: var(--accent); background: var(--accent-tint); border-radius: var(--radius); }
.contact-list .label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: .2rem; }
.contact-list .value { color: var(--text); }

.map-slot {
  position: relative; aspect-ratio: 4 / 3; margin-top: 2rem;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--dim);
  background-color: var(--bg-alt);
}
.map-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }

/* ---------- 18. Prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); margin-top: 2.75rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; display: grid; gap: .4rem; }

/* ---------- 19. Footer (navy) ---------- */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; font-size: .925rem; border-top: 3px solid var(--cyan); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 3rem; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .descriptor { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; }
.footer-col h2 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-contact li { display: grid; gap: .1rem; }
.footer-contact .label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--dim);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- 20. 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; background-color: var(--bg-alt); }
.error-page .code { display: block; font-size: .85rem; color: var(--accent); margin-bottom: 1.25rem; }

/* ---------- 21. Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 22. Print ---------- */
@media print {
  .site-header, .site-footer, .hero__bg, .page-hero__decor, .subnav { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3 { color: #000; }
}


/* ---------- 25. Photos ---------- */
.card { --pad: clamp(1.4rem, 2.5vw, 2rem); padding: var(--pad); }
.card__media {
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 1.25rem;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: var(--bg-alt);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media + .card__top { margin-bottom: 1rem; }
.who-card .card__media { aspect-ratio: 4 / 3; }

.service__side { display: grid; gap: 1.25rem; align-content: start; }
.service__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
.service__photo img { width: 100%; height: 100%; object-fit: cover; }
.service__photo--tall { aspect-ratio: 4 / 3; align-self: center; }

.research-card__photo { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.research-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.modal__media { aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg-alt); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }

.photo-slot {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px;
  background: repeating-linear-gradient(45deg, #EEF3F9 0 10px, #F6F9FC 10px 20px);
  color: #5B6B82; font-family: var(--font-mono); font-size: .75rem;
}

/* ---------- 26. Scrolling photo strip ---------- */
.marquee {
  overflow: hidden; padding-block: .5rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track { list-style: none; display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__item { padding-right: 1.25rem; }
.marquee__item figure { margin: 0; width: clamp(260px, 30vw, 380px); }
.marquee__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.marquee__item figcaption { margin-top: .6rem; font-size: .875rem; color: var(--muted); }
.marquee-toggle { flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
  .marquee__item[aria-hidden="true"], .marquee-toggle { display: none; }
}

/* ---------- 26b. Home: mixed services & products strip (~4cm tall cards) ---------- */
.mix-strip { padding-block: 1.1rem 1.4rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mix-strip__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.mix-strip__title { margin: 0; font-family: var(--font-mono); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mix-strip__head .marquee-toggle { min-height: 32px; padding: .3rem .8rem; font-size: .8rem; }
.mix-strip__track { animation-duration: 70s; }
.mix-strip .marquee__item { padding-right: 1rem; }
.mix-card {
  display: flex; align-items: stretch; width: 300px; height: 7.5rem; /* ~4cm */
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; color: var(--text); text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mix-card:hover, .mix-card:focus-visible { border-color: var(--accent); box-shadow: 0 6px 18px rgba(10, 20, 40, .08); transform: translateY(-2px); }
.mix-card img { flex: none; width: 7.5rem; height: 100%; object-fit: cover; background: #EEF3F9; border-right: 1px solid var(--border); }
.mix-card__body { display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: .7rem .9rem; min-width: 0; }
.mix-card__tag { align-self: flex-start; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 4px; }
.mix-card__tag--service { color: #0B6E7C; background: #D3EDF0; }
.mix-card__tag--product { color: #3443A8; background: #E2E5F8; }
.mix-card__title { font-size: .9rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 480px) {
  .mix-card { width: 260px; height: 6.5rem; }
  .mix-card img { width: 6.5rem; }
}

/* ---------- 27. CMP India map ---------- */
.cmap-layout { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .cmap-layout { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }
.cmap-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 1.25rem; }
.cmap-btn {
  padding: .55rem 1rem; min-height: 40px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: #fff; color: var(--text); font-weight: 600; font-size: .85rem;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cmap-btn:hover { border-color: var(--accent); }
.cmap-btn[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.cmap-note { font-size: .8rem; color: var(--dim); margin: 0; }
.cmap-card { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(.75rem, 2vw, 1.5rem); box-shadow: var(--shadow-lg); }
.cmap-card figcaption { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--dim); padding: .75rem .25rem 0; text-align: center; }
.imap-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.5rem; }
.imap-stats li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; }
.imap-stats b { display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem); color: var(--accent); line-height: 1.1; }
.imap-stats span { font-size: .8rem; color: var(--muted); }
.imap-info {
  display: grid; gap: .15rem; min-height: 5.2rem; margin-bottom: .9rem; padding: .9rem 1.1rem;
  background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--accent-bright); border-radius: 0 var(--radius) var(--radius) 0;
}
.imap-info strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--text); }
.imap-info span { font-size: .9rem; color: var(--muted); }
.imap { position: relative; --k: .72; }
@media (min-width: 560px) { .imap { --k: 1; } }
.imap img { width: 100%; height: auto; }
.imap-pin {
  --d: var(--ls); --c: 0, 103, 160;
  position: absolute; width: calc(var(--d) * var(--k)); height: calc(var(--d) * var(--k)); transform: translate(-50%, -50%);
  border-radius: 50%; border: 2px solid #fff; padding: 0;
  background: rgba(var(--c), .72); box-shadow: 0 2px 6px rgba(10, 20, 40, .25);
  cursor: pointer; transition: width .35s var(--ease), height .35s var(--ease), background-color .25s, box-shadow .25s;
}
.imap-wrap[data-layer="vs"] .imap-pin { --d: var(--vs); --c: 31, 115, 70; }
.imap-wrap[data-layer="vs"] .imap-pin[data-novs] { background: #fff; border-color: rgba(31, 115, 70, .6); }
.imap-pin:hover, .imap-pin:focus-visible, .imap-pin.is-active { background: rgba(var(--c), .95); box-shadow: 0 0 0 4px rgba(242, 179, 61, .85), 0 4px 10px rgba(10, 20, 40, .3); z-index: 2; outline: none; }
@media (max-width: 420px) { .imap-stats { grid-template-columns: 1fr; } }

/* ---------- 28. Photo credits ---------- */
.credits-list { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 760px) { .credits-list { grid-template-columns: 1fr 1fr; } }
.credits-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.credits-list img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.credits-list a { font-weight: 600; overflow-wrap: anywhere; }
.credits-list span { display: block; font-size: .85rem; color: var(--dim); margin-top: .2rem; }


/* ==========================================================================
   23. Colour themes — 21 combinations
   Usage: class="th t-01" (add "dark" for t-01, 04, 05, 07, 10, 14, 16, 19, 20).
   Each theme = background gradient + pattern + pattern colour + accents.
   ========================================================================== */
:root {
  --pat-dots: radial-gradient(circle, #000 1.3px, transparent 1.9px) 0 0 / 22px 22px;
  --pat-grid: linear-gradient(#000 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, #000 1px, transparent 1px) 0 0 / 48px 48px;
  --pat-diag: repeating-linear-gradient(45deg, #000 0 1px, transparent 1px 16px);
  --pat-rings: repeating-radial-gradient(circle at 100% 0%, #000 0 1px, transparent 1px 34px);
  --pat-hex: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'56'%20height%3D'100'%3E%3Cpath%20d%3D'M28%2066L0%2050V16L28%200l28%2016v34L28%2066v34'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.2'%2F%3E%3C%2Fsvg%3E") 0 0 / 42px 75px;
  --pat-honeycomb: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'56'%20height%3D'100'%3E%3Cpath%20d%3D'M28%2066L0%2050V16L28%200l28%2016v34L28%2066v34M28%200v0'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%2F%3E%3C%2Fsvg%3E") 0 0 / 28px 50px;
  --pat-octagon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'40'%20height%3D'40'%3E%3Cpath%20d%3D'M12%200h16l12%2012v16L28%2040H12L0%2028V12z'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.2'%2F%3E%3C%2Fsvg%3E") 0 0 / 40px 40px;
  --pat-hexnet: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'56'%20height%3D'100'%3E%3Cpath%20d%3D'M28%2066L0%2050V16L28%200l28%2016v34L28%2066v34'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1'%2F%3E%3Cg%20fill%3D'black'%3E%3Ccircle%20cx%3D'28'%20cy%3D'0'%20r%3D'2.6'%2F%3E%3Ccircle%20cx%3D'0'%20cy%3D'16'%20r%3D'2.6'%2F%3E%3Ccircle%20cx%3D'56'%20cy%3D'16'%20r%3D'2.6'%2F%3E%3Ccircle%20cx%3D'0'%20cy%3D'50'%20r%3D'2.6'%2F%3E%3Ccircle%20cx%3D'56'%20cy%3D'50'%20r%3D'2.6'%2F%3E%3Ccircle%20cx%3D'28'%20cy%3D'66'%20r%3D'2.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 0 / 56px 100px;
  --pat-plus: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'30'%20height%3D'30'%3E%3Cpath%20d%3D'M15%2010v10M10%2015h10'%20stroke%3D'black'%20stroke-width%3D'1.4'%2F%3E%3C%2Fsvg%3E") 0 0 / 30px 30px;
  --pat-lattice: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'90'%20height%3D'78'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1'%3E%3Cpath%20d%3D'M0%200h90M0%2039h90M0%2078h90M0%200l22.5%2039L45%200l22.5%2039L90%200M22.5%2039L0%2078M22.5%2039L45%2078l22.5-39L90%2078'%2F%3E%3C%2Fg%3E%3Cg%20fill%3D'black'%3E%3Ccircle%20cx%3D'22.5'%20cy%3D'39'%20r%3D'2.4'%2F%3E%3Ccircle%20cx%3D'67.5'%20cy%3D'39'%20r%3D'2.4'%2F%3E%3Ccircle%20cx%3D'45'%20cy%3D'0'%20r%3D'2.4'%2F%3E%3Ccircle%20cx%3D'45'%20cy%3D'78'%20r%3D'2.4'%2F%3E%3Ccircle%20cx%3D'0'%20cy%3D'0'%20r%3D'2.4'%2F%3E%3Ccircle%20cx%3D'90'%20cy%3D'0'%20r%3D'2.4'%2F%3E%3Ccircle%20cx%3D'0'%20cy%3D'78'%20r%3D'2.4'%2F%3E%3Ccircle%20cx%3D'90'%20cy%3D'78'%20r%3D'2.4'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 0 / 90px 78px;
}
.th { position: relative; isolation: isolate; background: var(--th-bg); }
.th::before {
  content: ""; position: absolute; inset: 0; width: auto; height: auto; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background: var(--pat-color); opacity: var(--pat-op);
  -webkit-mask: var(--pat); mask: var(--pat);
}
.th.dark {
  --surface: rgba(255, 255, 255, .07);
  --surface-2: rgba(255, 255, 255, .05);
  --bg-alt: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .16);
  --border-strong: rgba(255, 255, 255, .32);
  --muted: rgba(255, 255, 255, .86);
  --dim: rgba(255, 255, 255, .72);
  --accent-tint: rgba(255, 255, 255, .1);
  --accent-hover: #FFFFFF;
  --btn-text: #0A1428;
  --net-line: rgba(255, 255, 255, .16);
  --net-node: rgba(255, 255, 255, .5);
  --decor-line: rgba(255, 255, 255, .26);
  --decor-dot: rgba(255, 255, 255, .45);
  --decor-text: rgba(255, 255, 255, .6);
  background: var(--th-bg);
}
.th.dark .card:hover { border-color: rgba(255, 255, 255, .4); }
.th.dark .service__deliver, .th.dark .num-grid { box-shadow: none; }
.th:not(.dark) .card, .th:not(.dark) .service__deliver, .th:not(.dark) .tiles, .th:not(.dark) .num-grid { background: #FFFFFF; }

/* One system for every section: the same hexagon pattern everywhere,
   colour moves from blue (upper sections) to sea green (lower sections).
   The t-NN classes stay in the HTML but no longer change colour or pattern. */
.th {
  --th-bg: #F4F8FD; --pat: var(--pat-hex); --pat-color: #0567A0; --pat-op: .07;
}
.th:not(.dark) {
  --accent: #0567A0; --accent-hover: #03457A; --accent-bright: #0096C7; --accent-tint: #E1EEF9;
  --btn-bg: #0A1F44; --btn-hover: #0567A0;
}
main > section.th:not(.dark):nth-of-type(even) {
  --th-bg: #F1F9F5; --pat-color: #2E8B57;
  --accent: #1F7346; --accent-hover: #155434; --accent-bright: #3CB371; --accent-tint: #DDF2E6;
  --btn-hover: #1F7346;
}
.th.dark {
  --th-bg: radial-gradient(ellipse at 90% 0%, rgba(0, 150, 199, .25), transparent 55%), linear-gradient(160deg, #06173A 0%, #03256C 60%, #01386E 100%);
  --pat: var(--pat-hex); --pat-color: #90E0EF; --pat-op: .1;
  --accent: #8BEAF4; --accent-bright: #19C3D6;
  --btn-bg: #FFFFFF; --btn-hover: #E0F7FA; --fade: #06173A;
}
/* lower dark bands: sea green */
main > section.th.dark:not(.hero):not(.page-hero), .band.th.dark {
  --th-bg: radial-gradient(ellipse at 100% 100%, rgba(25, 195, 214, .2), transparent 55%), linear-gradient(135deg, #0F3B2A 0%, #165A3F 55%, #0B5A63 100%);
  --pat-color: #9BECC9;
  --accent: #9BECC9; --accent-bright: #7EE2B8; --fade: #0F3B2A;
}

/* ---------- 29. Home hero: colour-shifting, multi-speed background ---------- */
@property --hero-c { syntax: "<color>"; inherits: true; initial-value: #19C3D6; }
.hero.th {
  background: linear-gradient(120deg, #06173A, #03256C, #005B99, #0B5A6B, #1D6B47, #3B2C85, #6B1F4A, #7A3E0F, #0A4C6A, #1B2366, #06173A);
  background-size: 600% 600%;
  animation: hero-shift 12s ease-in-out infinite alternate, hero-color 7s linear infinite;
}
.hero.th::before { display: none; }
.hero .net { --accent-bright: var(--hero-c); }
.hero h1 .hl { color: #8BEAF4; }
.hero .net .drift { animation: none; }               /* network stays fixed */
.hero .hero__bg::after {
  background: linear-gradient(90deg, rgba(6, 23, 58, .88) 0%, rgba(6, 23, 58, .6) 34%, rgba(6, 23, 58, 0) 70%),
              linear-gradient(0deg, rgba(6, 23, 58, .5) 0%, rgba(6, 23, 58, 0) 30%);
}
.hero__bg > svg { position: relative; z-index: 1; }
.hero__glow {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(40px); opacity: .5; mix-blend-mode: screen; will-change: transform; pointer-events: none;
}
.hero__glow--a { background: radial-gradient(circle, rgba(25, 195, 214, .55), transparent 60%); top: -25vmax; right: -15vmax; animation: glow-a 18s ease-in-out infinite alternate; }
.hero__glow--b { background: radial-gradient(circle, rgba(46, 139, 87, .6), transparent 60%); bottom: -32vmax; left: -10vmax; animation: glow-b 26s ease-in-out infinite alternate; }
.hero__glow--c { background: radial-gradient(circle, rgba(91, 107, 214, .5), transparent 60%); top: 5%; left: 35%; animation: glow-c 34s ease-in-out infinite alternate; }
.hero__glow--d { background: radial-gradient(circle, rgba(242, 179, 61, .4), transparent 60%); bottom: -20vmax; right: 5%; width: 45vmax; height: 45vmax; animation: glow-d 22s ease-in-out infinite alternate; }
.hero__glow--e { background: radial-gradient(circle, rgba(214, 72, 112, .4), transparent 60%); top: -15vmax; left: 45%; width: 40vmax; height: 40vmax; animation: glow-e 30s ease-in-out infinite alternate; }
.hero__glow--f { background: radial-gradient(circle, rgba(126, 226, 184, .45), transparent 60%); top: 40%; right: -10vmax; width: 42vmax; height: 42vmax; animation: glow-f 16s ease-in-out infinite alternate; }
@keyframes glow-d { to { transform: translate(-30vw, -25vh) scale(1.2); } }
@keyframes glow-e { to { transform: translate(15vw, 35vh) scale(.85); } }
@keyframes glow-f { to { transform: translate(-35vw, -10vh) scale(1.1); } }
.hero__layer { position: absolute; inset: -200px; background-repeat: repeat; will-change: transform; pointer-events: none; }
.hero__layer--hex { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'56'%20height%3D'100'%3E%3Cpath%20d%3D'M28%2066L0%2050V16L28%200l28%2016v34L28%2066v34'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'1.2'%2F%3E%3C%2Fsvg%3E"); background-size: 56px 100px; opacity: .11; animation: drift-hex 40s linear infinite; }
.hero__layer--oct { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'48'%20height%3D'48'%3E%3Cpath%20d%3D'M14%200h20l14%2014v20L34%2048H14L0%2034V14z'%20fill%3D'none'%20stroke%3D'%2390E0EF'%20stroke-width%3D'1'%2F%3E%3C%2Fsvg%3E"); background-size: 48px 48px; opacity: .12; animation: drift-oct 26s linear infinite; }
.hero__layer--dots { background-image: radial-gradient(circle, rgba(144, 224, 239, .55) 1.3px, transparent 1.9px); background-size: 22px 22px; opacity: .55; animation: drift-dots 14s linear infinite; }
@keyframes hero-shift { 0% { background-position: 0% 30%; } 100% { background-position: 100% 70%; } }
@keyframes hero-color {
  0%, 100% { --hero-c: #19C3D6; }
  15% { --hero-c: #7EE2B8; }
  30% { --hero-c: #F2B33D; }
  45% { --hero-c: #FF8A70; }
  60% { --hero-c: #B69CFF; }
  75% { --hero-c: #7FA6FF; }
  90% { --hero-c: #3CB371; }
}
@keyframes glow-a { to { transform: translate(-25vw, 20vh) scale(1.15); } }
@keyframes glow-b { to { transform: translate(30vw, -15vh) scale(.9); } }
@keyframes glow-c { to { transform: translate(-20vw, 15vh) scale(1.2); } }
@keyframes drift-hex { to { transform: translate3d(112px, 200px, 0); } }
@keyframes drift-oct { to { transform: translate3d(-96px, 48px, 0); } }
@keyframes drift-dots { to { transform: translate3d(-44px, -22px, 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero.th, .hero__glow, .hero__layer { animation: none !important; }
}

/* ---------- 30. Featured project management block (Custom Software) ---------- */
.pm-feature { display: grid; gap: 1.75rem; margin-bottom: clamp(1rem, 2vw, 1.5rem); border-top: 3px solid var(--accent-bright); }
@media (min-width: 900px) { .pm-feature { grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; } }
.pm-feature__head .code { display: inline-block; color: var(--accent); background: var(--accent-tint); padding: .25rem .55rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.pm-feature__head h4 { font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); margin-bottom: .75rem; }
.pm-modules { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 640px) { .pm-modules { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .pm-modules { grid-template-columns: repeat(5, 1fr); } }
.pm-modules li {
  display: flex; flex-direction: column; gap: .55rem; padding: .9rem .8rem;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .9rem; line-height: 1.3;
}
.pm-modules svg { width: 32px; height: 32px; padding: 7px; color: var(--accent); background: var(--accent-tint); border-radius: var(--radius-sm); }

/* ---------- 31. Professional finish: hero colour shift (blue to sea green only), refined type ---------- */
.hero.th {
  background: linear-gradient(120deg, #06173A, #03256C, #005B99, #0B5A6B, #0F5A45, #0B5A6B, #03256C, #06173A);
  background-size: 400% 400%;
  animation: hero-shift 18s ease-in-out infinite alternate;
}
.hero__glow { opacity: .35; }
.hero__glow--c, .hero__glow--d, .hero__glow--e, .hero__layer--oct { display: none; }
.hero__layer--dots { display: none; }
.hero .net { --accent-bright: #3FB8C8; opacity: .7; }
.hero h1 .hl { color: #8BEAF4; }
@media (prefers-reduced-motion: reduce) { .hero.th { animation: none; } }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
.eyebrow, .code, .breadcrumb ol, .service__who h3, .service__deliver h3, .modal h3,
.contact-sub, .contact-list .label, .contact-primary .label, .footer-col h2, .footer-brand .descriptor, .mix-strip__title {
  font-weight: 600; letter-spacing: .08em;
}
.code { letter-spacing: .04em; }

.mix-card__tag--product { color: #0A1F44; background: #E8ECF3; }
.net text, .decor text { display: none; } /* decorative captions read as filler */
.page-hero .decor { display: none; } /* one pattern (the navy grid) on every inner-page header */

/* ---------- 32. Title Case: every word starts with a capital (client preference) ---------- */
h1, h2, h3, h4, .btn, .nav-link, .dropdown a, .subnav a, .footer-col a, .footer-col h2, .footer-bottom a,
.link-arrow, .list-check li, .tiles span, .cap-strip__list li, .accordion summary, .breadcrumb a, .breadcrumb span,
.num-grid a, .num-grid strong, .product-card__more, .ext-link, figcaption, .cmap-btn, .cmap-legend li,
.contact-sub, .label, .service__who h3, .service__deliver h3, .research-card__body h3, .role, .descriptor, .skip-link {
  text-transform: capitalize;
}
.imap-stats span, .imap-info span, .pm-modules li, .mix-card__title, .mix-strip__title { text-transform: capitalize; }
