:root {
  --navy: #0b1f3a;
  --navy-2: #0e284b;
  --navy-3: #25456f;
  --teal: #1ba5b8;
  --teal-dark: #0f7c8c;
  --amber: #f5a524;
  --ink: #0f1b2d;
  --muted: #55657c;
  --line: #dde4ee;
  --surface: #ffffff;
  --alt: #f3f6fa;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* wordmark (stands in for the logo artwork) */
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; color: #fff; }
.wm-main { font-family: Georgia, "Times New Roman", serif; font-weight: 900; font-size: 1.7rem; letter-spacing: .12em; }
.wm-sub { font-family: Georgia, "Times New Roman", serif; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; margin-top: 4px; opacity: .9; }
.brand { text-decoration: none; display: inline-block; line-height: 0; }
.logo { height: 46px; width: auto; display: block; }
.site-footer .logo { height: 56px; }
@media (max-width: 560px) { .logo { height: 40px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 31, 58, .96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.nav-wrap { display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 4px; }
.nav a { color: #cfdcef; text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: .96rem; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(27, 165, 184, .22); }
.langs { display: flex; gap: 2px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px; }
.langs a { color: #cfdcef; text-decoration: none; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .05em; }
.langs a:hover { color: #fff; }
.langs a[aria-current="true"] { background: var(--amber); color: #1a1200; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; margin: auto; transition: transform .2s, opacity .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #1a1200; box-shadow: 0 6px 18px rgba(245, 165, 36, .3); }
.btn-amber:hover { background: #ffb73d; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .15s; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(27, 165, 184, .28), transparent 60%), linear-gradient(180deg, var(--navy) 0%, #0a1a31 100%); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
.accent { color: var(--amber); display: block; }
.lead { font-size: 1.2rem; color: #c6d6ec; max-width: 56ch; }
.page-head .lead { color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.trace { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s ease-out .3s forwards; }
.trace.t2 { animation-delay: .8s; }
.pulse { animation: pulse 1.8s ease-in-out infinite; transform-origin: 500px 90px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.8); } }
.protocols { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 36px 0 40px; margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8fb0d6; font-size: .9rem; }
.protocols ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.protocols li { border: 1px solid var(--navy-3); color: #dbe7f7; background: rgba(255, 255, 255, .04); padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem; font-family: ui-monospace, Consolas, monospace; }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--alt); }
.h-xl { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.big { font-size: 1.28rem; color: var(--navy); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); font-size: 1.1rem; }
.page-head { background: linear-gradient(180deg, var(--alt), #fff); padding: 64px 0 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 800; }
.page-head .eyebrow { color: var(--teal-dark); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.toc a { text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--navy); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.toc a:hover { border-color: var(--teal); color: var(--teal-dark); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 2px 4px rgba(11, 31, 58, .06), 0 16px 36px rgba(11, 31, 58, .12); }
.card h3 { font-size: 1.2rem; margin: 18px 0 6px; }
.card p { color: var(--muted); margin: 0; padding-right: 28px; font-size: .98rem; }
.card-more { position: absolute; right: 22px; bottom: 24px; color: var(--teal-dark); }
.card-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #7ee0ec; }
.card-ico .ico { width: 26px; height: 26px; }
.big-ico { width: 60px; height: 60px; border-radius: 16px; }

/* about */
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.prose p { color: #33425a; }
.panel { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.panel h2 { color: #fff; font-size: 1.3rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { color: var(--teal); margin-top: 3px; width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.panel .ticks .ico { color: var(--amber); }
.vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.val { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--teal); }
.val h3 { font-size: 1.15rem; }
.val p { color: var(--muted); margin: 0; font-size: .97rem; }

/* services */
.svc-list { display: grid; gap: 24px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.svc-head { display: flex; gap: 18px; align-items: flex-start; }
.svc h2 { font-size: 1.5rem; margin-bottom: 4px; }
.tag { color: var(--teal-dark); font-weight: 600; margin: 0; }
.svc:target { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27, 165, 184, .2); }

/* cta */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: 64px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; max-width: 24ch; }

/* contact */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.form input, .form textarea { font: inherit; padding: 13px 14px; border: 1px solid #c4cfdf; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(27, 165, 184, .35); border-color: var(--teal); }
.form .btn { justify-self: start; }
.note { color: var(--muted); font-size: .88rem; margin: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .ico { color: var(--amber); width: 1.5em; height: 1.5em; margin-top: 2px; }
.contact-list strong { display: block; color: #8fb0d6; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.contact-list a { display: block; color: #fff; font-size: 1.12rem; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }

/* footer */
.site-footer { background: #081528; color: #aebfd8; padding-top: 56px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.foot-tag { margin-top: 16px; max-width: 38ch; font-size: .95rem; }
.foot-links { display: grid; gap: 8px; }
.site-footer a { color: #cfdcef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-contact li { display: flex; gap: 10px; align-items: center; }
.foot-contact .ico { color: var(--amber); }
.legal { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0 28px; font-size: .85rem; }

/* stats */
.section.tight { padding: 40px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.section.tight .stats { margin-top: 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--amber); }
.stat strong { display: block; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.eyebrow.dark { color: var(--teal-dark); }

/* client logo wall */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.logos li { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 16 / 9; padding: 12px; box-shadow: var(--shadow); overflow: hidden; }
.logos img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.also-title { margin: 40px 0 16px; font-size: 1.05rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.also-note { color: var(--muted); font-size: .92rem; margin-top: 16px; }

/* case study */
.case { align-items: center; }
.timeline { list-style: none; margin: 24px 0 0; padding: 0 0 0 20px; border-left: 3px solid var(--teal); display: grid; gap: 20px; }
.timeline li { display: grid; gap: 2px; }
.timeline strong { color: var(--navy); font-size: 1.15rem; }
.timeline span { color: #33425a; }

/* project tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.proj { border-collapse: collapse; width: 100%; min-width: 640px; }
.proj th, .proj td { text-align: left; padding: 18px 22px; vertical-align: top; border-bottom: 1px solid var(--line); }
.proj thead th { background: var(--navy); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; border-bottom: 0; }
.proj tbody th { color: var(--navy); font-weight: 700; width: 26%; }
.proj tbody tr:last-child > * { border-bottom: 0; }
.proj .when { white-space: nowrap; color: var(--teal-dark); font-weight: 700; width: 16%; }
.proj td:last-child { color: #33425a; }

/* quality steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--alt); border-radius: var(--radius); padding: 26px; }
.step .n { display: block; font-size: 2.2rem; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 14px; letter-spacing: -.02em; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
.quality-note { margin-top: 28px; color: var(--navy); font-weight: 600; max-width: 70ch; }

/* partner teasers on home */
.partner-teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pteaser { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.pteaser:hover { transform: translateY(-3px); border-color: var(--teal); }
.pteaser h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pteaser p { margin: 0; color: var(--muted); font-size: .97rem; }
.pteaser.dark { background: var(--navy); border-color: var(--navy-3); }
.pteaser.dark h3 { color: #fff; }
.pteaser.dark p { color: #b9c9df; }
.pt-logo { display: grid; place-items: center; }
.pt-logo img { max-height: 64px; width: auto; }

/* AVEVA block */
.facts { margin: 28px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.cert { margin: 0; }
.cert img, .member img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
.cert figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.member h3 { margin: 18px 0 2px; font-size: 1.25rem; }
.member .role { color: var(--teal-dark); font-weight: 700; margin-bottom: 8px; }
.member p:last-child { color: #33425a; margin: 0; }

/* Yangala */
.dark-sec { background: radial-gradient(900px 400px at 100% 0%, rgba(235, 152, 35, .12), transparent 60%), #0a0d12; color: #e7ebf1; }
.dark-sec .h-xl { color: #fff; }
.dark-sec .lead { color: #b9c3d2; }
.dark-sec .eyebrow { color: #eb9823; }
.y-head { max-width: 820px; margin-bottom: 44px; }
.y-logo { width: 190px; height: auto; margin-bottom: 26px; }
.y-points { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; }
.y-points li { border-left: 3px solid #eb9823; padding-left: 18px; }
.y-points h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.y-points p { margin: 0; color: #aab5c5; font-size: .98rem; }
.y-note { margin: 36px 0 24px; padding: 16px 20px; border: 1px solid #2a3340; border-radius: 12px; background: rgba(255, 255, 255, .03); color: #cdd6e3; max-width: 76ch; }
.dark-sec .btn-ghost { border-color: rgba(255, 255, 255, .35); }

/* Manrope, the font the Yangala app uses (SIL OFL, files in /assets/fonts); only used inside the HMI illustration */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Yangala HMI illustration. Colours are the app's light theme (themes.css); header and info bar use the deployment's blue accent, #007BA9. */
.hmi-fig { margin: 0; }
.hmi-scroll { overflow-x: auto; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.hmi { container-type: inline-size; width: 100%; min-width: 760px; aspect-ratio: 16 / 9; position: relative; background: #c0c9e9; font-family: "Manrope", system-ui, sans-serif; color: #555; overflow: hidden; border-radius: 14px; }
.hmi-in { --u: 1cqw; position: absolute; inset: 0; display: grid; grid-template-columns: 25% 50% 25%; grid-template-rows: calc(var(--u) * 3.5) 1fr calc(var(--u) * 4.4); gap: calc(var(--u) * .45) 0; font-size: calc(var(--u) * 1.05); line-height: 1.2; }
.hmi .hico { width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); flex: none; }
.h-nav { grid-column: 1 / -1; display: grid; grid-template-columns: 25% 50% 25%; background: #007ba9; color: #fff; align-items: center; }
.h-brandcol { height: 100%; display: flex; }
.h-brand { width: calc(var(--u) * 3.5); height: 100%; background: #000; display: grid; place-items: center; }
.h-brand img { width: calc(var(--u) * 2.3); height: calc(var(--u) * 2.3); }
.h-searchcol { padding: 0 calc(var(--u) * .4); }
.h-search { display: flex; align-items: center; gap: calc(var(--u) * .6); background: #e5f5ff; color: #6b8a99; border-radius: calc(var(--u) * .3); padding: calc(var(--u) * .55) calc(var(--u) * .7); }
.h-tools { display: flex; align-items: center; justify-content: flex-end; gap: calc(var(--u) * 1.1); padding-right: calc(var(--u) * 1); }
.h-avatar { display: grid; place-items: center; width: calc(var(--u) * 2.4); height: calc(var(--u) * 2.4); border-radius: 50%; background: #fff; color: #555; font-weight: 700; font-size: calc(var(--u) * .95); }
.h-tree, .h-main, .h-chat { min-height: 0; margin: 0 calc(var(--u) * .225); border-radius: calc(var(--u) * .4); overflow: hidden; position: relative; }
.h-tree { background: #e0e9ff; margin-left: calc(var(--u) * .45); display: flex; flex-direction: column; }
.h-th { display: flex; justify-content: flex-end; gap: calc(var(--u) * 1); padding: calc(var(--u) * .8) calc(var(--u) * 1); color: #555; }
.h-tree ul { list-style: none; margin: 0; padding: 0; }
.h-tree li { display: flex; align-items: center; gap: calc(var(--u) * .55); padding: calc(var(--u) * .5) calc(var(--u) * .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-tree li.l1 { padding-left: calc(var(--u) * 2.2); } .h-tree li.l2 { padding-left: calc(var(--u) * 3.9); }
.h-tree li.sel { background: #d5d5e9; }
.h-tree li s { width: 0; height: 0; border-left: calc(var(--u) * .5) solid #666; border-top: calc(var(--u) * .35) solid transparent; border-bottom: calc(var(--u) * .35) solid transparent; flex: none; margin-right: calc(var(--u) * .2); }
.h-tree li.open s { transform: rotate(90deg); }
.h-tree b { color: #333; }
.h-tree u { text-decoration: none; display: grid; place-items: center; flex: none; width: calc(var(--u) * 1.7); height: calc(var(--u) * 1.7); border-radius: 50%; font-size: calc(var(--u) * .8); font-weight: 700; }
.h-tree u.p { background: #00a5a5; color: #fff; } .h-tree u.g { color: #555; width: auto; padding-right: calc(var(--u) * .1); }
.h-main { background: #fff; }
.h-tab { position: absolute; left: calc(var(--u) * 1); top: calc(var(--u) * .9); z-index: 1; font-weight: 700; color: #00497c; font-size: calc(var(--u) * 1.15); }
.h-diagram { width: 100%; height: 100%; display: block; font-family: "Manrope", system-ui, sans-serif; }
.h-diagram text { font-size: 12px; fill: #555; font-weight: 600; }
.h-diagram .vbox rect { fill: #fff; stroke: #cce; stroke-width: 1.5; filter: drop-shadow(0 0 4px rgba(120, 130, 200, .45)); }
.h-diagram .vbox text { fill: #00497c; font-size: 13px; font-weight: 800; }
.h-diagram .lbl { fill: #00497c; font-weight: 700; }
.h-diagram .flow path { animation: hflow 1.4s linear infinite; }
@keyframes hflow { to { stroke-dashoffset: -32; } }
.h-chat { background: #e0e5ff; display: flex; flex-direction: column; margin-right: calc(var(--u) * .45); }
.h-chead { display: flex; align-items: center; gap: calc(var(--u) * .7); padding: calc(var(--u) * .7) calc(var(--u) * .9); border-bottom: 1px solid rgba(85, 85, 85, .14); color: #333; }
.h-cav { display: grid; place-items: center; width: calc(var(--u) * 2.4); height: calc(var(--u) * 2.4); border-radius: 50%; background: #000; flex: none; }
.h-cav img { width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); }
.h-msgs { flex: 1; min-height: 0; padding: calc(var(--u) * .9); display: flex; flex-direction: column; gap: calc(var(--u) * .7); overflow: hidden; }
.h-msgs .m { margin: 0; padding: calc(var(--u) * .65) calc(var(--u) * .85); border-radius: calc(var(--u) * .8); max-width: 88%; color: #333; }
.h-msgs .you { align-self: flex-end; background: #c0c9e9; border-bottom-right-radius: calc(var(--u) * .2); }
.h-msgs .bot { align-self: flex-start; background: #fff; border-bottom-left-radius: calc(var(--u) * .2); }
.h-input { display: flex; align-items: center; justify-content: space-between; margin: calc(var(--u) * .6); padding: calc(var(--u) * .65) calc(var(--u) * .85); background: #e5f5ff; border-radius: calc(var(--u) * .4); color: #6b8a99; }
.h-input .hico { color: #007ba9; }
.h-info { grid-column: 1 / -1; display: flex; align-items: center; background: #007ba9; color: #fff; padding: 0 calc(var(--u) * .5); gap: calc(var(--u) * .6); }
.h-ico { display: flex; gap: calc(var(--u) * 1.3); padding: 0 calc(var(--u) * .6); }
.h-ico .hico.sel { opacity: 1; } .h-ico .hico { opacity: .8; }
.h-alarmbar { flex: 1; min-width: 0; background: #000; border-radius: calc(var(--u) * .35); padding: calc(var(--u) * .2) calc(var(--u) * .9); display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * .1); overflow: hidden; height: calc(var(--u) * 3.6); }
.ai { display: flex; align-items: center; gap: calc(var(--u) * .6); font-size: calc(var(--u) * .85); line-height: 1.15; white-space: nowrap; }
.ai .lab { overflow: hidden; text-overflow: ellipsis; }
.ai .st { flex: none; text-transform: uppercase; font-weight: 800; font-size: calc(var(--u) * .68); padding: 0 calc(var(--u) * .4); border-radius: calc(var(--u) * .25); color: #fff; }
.ai.lo { color: #5fb0b9; } .ai.lo .st { background: #2f6f76; }
.ai.md { color: #e3b13a; } .ai.md .st { background: #d5a021; }
.ai.hi { color: #f06a5f; } .ai.hi .st { background: #e2453a; }
.hmi-fig figcaption { margin-top: 12px; color: #8693a5; font-size: .82rem; text-align: center; }
@media (prefers-reduced-motion: reduce) { .h-diagram .flow path { animation: none; } }

/* reveal-on-scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-teasers, .team, .y-points { grid-template-columns: 1fr; }
  .hero-grid, .two, .svc { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .vals { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav-wrap { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 12px 16px 20px; flex-direction: column; align-items: stretch; gap: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); display: none; }
  .nav-wrap.open { display: flex; }
  .nav { flex-direction: column; }
  .langs { align-self: flex-start; }
}
@media (max-width: 560px) {
  .stats, .steps { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pteaser { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  body { font-size: 16px; }
  .cards, .vals, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .svc { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace { animation: none; stroke-dashoffset: 0; }
  .pulse { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* =====================================================================
   v2 — photographic look (full-bleed images, large type, restrained motion)
   Loaded last on purpose: it overrides the first-generation rules above.
   ===================================================================== */
:root { --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --ink-deep: #071326; }
body { letter-spacing: -.003em; }
h1, h2, h3 { letter-spacing: -.02em; }

/* header floats over the photo, turns solid once you scroll */
.site-header { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(7, 19, 38, .72), rgba(7, 19, 38, 0)); border-bottom: 1px solid transparent; backdrop-filter: none; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled, .site-header.open { background: rgba(11, 31, 58, .97); border-bottom-color: rgba(255, 255, 255, .08); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.logo { transition: height .3s ease; }
.site-header.scrolled .logo { height: 40px; }

/* buttons: square with one cut corner */
.btn { border-radius: 0; }
.btn-amber { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); box-shadow: none; padding: 15px 26px; }
.btn-ghost { border-radius: 0; }

/* ---------- hero with crossfading photos ---------- */
.hero2 { position: relative; min-height: min(92vh, 800px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--ink-deep); overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.6s ease; filter: brightness(1.22) saturate(1.12) contrast(1.04); }
.slide.on { opacity: 1; animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero2-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 19, 38, .88) 0%, rgba(7, 19, 38, .62) 42%, rgba(7, 19, 38, 0) 80%), linear-gradient(0deg, rgba(7, 19, 38, .70) 0%, rgba(7, 19, 38, 0) 34%), linear-gradient(180deg, rgba(7, 19, 38, .55) 0%, rgba(7, 19, 38, 0) 22%); }
.hero2-in { position: relative; padding-top: 150px; padding-bottom: 8px; max-width: 1160px; }
.hero2-in > * { max-width: 700px; }
.hero2 h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; line-height: 1.04; margin-bottom: .45em; }
.hero2 .accent { color: var(--amber); display: block; }
.hero2 .lead { color: #d3dff1; }
.hero2-in > * { animation: riseIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero2-in > :nth-child(2) { animation-delay: .1s; } .hero2-in > :nth-child(3) { animation-delay: .22s; } .hero2-in > :nth-child(4) { animation-delay: .34s; } .hero2-in > :nth-child(5) { animation-delay: .46s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.slide-ctl { display: flex; align-items: center; gap: 18px; margin-top: 44px; }
.dots { display: flex; gap: 8px; }
.dot { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; position: relative; overflow: hidden; }
.dot.on::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: left; animation: fill var(--slide-ms, 7s) linear forwards; }
.hero2.paused .dot.on::after, .hero2.static .dot.on::after { animation: none; transform: none; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pause { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(7, 19, 38, .35); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pause svg { width: 14px; height: 14px; fill: currentColor; }
.pause .i-play { display: none; } .hero2.paused .pause .i-play { display: block; } .hero2.paused .pause .i-pause { display: none; }
.hero2 .protocols { position: relative; margin-top: 56px; border-top-color: rgba(255, 255, 255, .16); }

/* ---------- photo banner on inner pages ---------- */
.phead { position: relative; overflow: hidden; color: #fff; background: var(--ink-deep); padding: 156px 0 72px; }
.phead-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out both; filter: brightness(1.2) saturate(1.1); }
.phead-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 19, 38, .82) 0%, rgba(7, 19, 38, .5) 50%, rgba(7, 19, 38, .12) 100%), linear-gradient(180deg, rgba(7, 19, 38, .5) 0%, rgba(7, 19, 38, 0) 30%); }
.phead-in { position: relative; }
.phead h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.8rem); font-weight: 800; line-height: 1.06; max-width: 22ch; }
.phead .lead { color: #d3dff1; max-width: 62ch; }
.phead .eyebrow { color: var(--teal); }
.phead .toc a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(4px); }
.phead .toc a:hover { border-color: var(--amber); color: var(--amber); }
.phead-in > * { animation: riseIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.phead-in > :nth-child(2) { animation-delay: .08s; } .phead-in > :nth-child(3) { animation-delay: .16s; } .phead-in > :nth-child(4) { animation-delay: .24s; }

/* ---------- intro + counters ---------- */
.intro-grid { align-items: center; gap: 64px; }
.intro-stats .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.stat { border-radius: 0; border-top: 4px solid var(--amber); }

/* ---------- image cards (services) ---------- */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pcard { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink-deep); border-radius: 4px; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover img { transform: scale(1.07); }
.pcard-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 19, 38, .92) 0%, rgba(7, 19, 38, .55) 45%, rgba(7, 19, 38, .05) 100%); transition: background .4s; }
.pcard:hover .pcard-shade { background: linear-gradient(0deg, rgba(7, 19, 38, .95) 0%, rgba(7, 19, 38, .7) 55%, rgba(7, 19, 38, .25) 100%); }
.pcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.pcard-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(27, 165, 184, .9); color: #fff; margin-bottom: 12px; }
.pcard-ico .ico { width: 22px; height: 22px; }
.pcard h3 { color: #fff; font-size: 1.28rem; margin: 0 0 4px; }
.pcard p { margin: 0; color: #cfdcef; font-size: .95rem; line-height: 1.4; }
.pcard-go { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: #1a1200; display: grid; place-items: center; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.pcard:hover .pcard-go, .pcard:focus-visible .pcard-go { opacity: 1; transform: none; }

/* ---------- tall sector tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink-deep); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.07); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 19, 38, .94) 0%, rgba(7, 19, 38, .45) 50%, rgba(7, 19, 38, .05) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.tile h3 { color: #fff; font-size: 1.2rem; margin: 0 0 6px; padding-top: 10px; border-top: 3px solid var(--amber); display: inline-block; }
.tile p { margin: 0; color: #cfdcef; font-size: .92rem; line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s ease; }
.tile:hover p, .tile:focus-visible p { max-height: 9em; opacity: 1; }
.tile-go { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: #1a1200; display: grid; place-items: center; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.tile:hover .tile-go, .tile:focus-visible .tile-go { opacity: 1; transform: none; }

/* ---------- closing band with a photo ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink-deep); padding: 96px 0; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 19, 38, .86), rgba(11, 31, 58, .5)); }
.cta-in { position: relative; }

/* staggered reveal (only when JS is running) */
.js .reveal { transition-delay: calc(var(--i, 0) * 80ms); }

@media (max-width: 960px) {
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-grid { gap: 36px; }
  .tile p { max-height: 9em; opacity: 1; }
  .pcard-go, .tile-go { opacity: 1; transform: none; }
  .hero2-in { padding-top: 120px; }
  .phead { padding: 128px 0 52px; }
}
@media (max-width: 560px) {
  .pcards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { aspect-ratio: 4 / 5; }
  .tile-body { padding: 14px; } .tile h3 { font-size: 1rem; } .tile p { font-size: .82rem; }
  .intro-stats .stats { grid-template-columns: 1fr 1fr; }
  .hero2 { min-height: 0; }
  .cta-band { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.on, .phead-bg { animation: none; transform: none; }
  .slide { transition: none; }
  .hero2-in > *, .phead-in > * { animation: none; }
  .pcard img, .tile img, .pcard-go, .tile-go, .tile p { transition: none; }
  .pcard:hover img, .tile:hover img { transform: none; }
}

/* =====================================================================
   v3 — review round (TTAC-WEB.docx): experiences as cases, general team,
   service detail boxes with photos, a little more motion on cards
   ===================================================================== */
.hero2-in { padding-bottom: 76px; }

/* ---------- clients: group headings + experience cases ---------- */
.group-head { padding-bottom: 8px; }
.group-head .sec-head { margin-bottom: 0; }
.exp { padding: 72px 0; }
.group-head + .exp { padding-top: 56px; }
.exp-kick { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.exp-kick .eyebrow { margin: 0; }
.exp-logo { display: grid; place-items: center; width: 92px; height: 48px; padding: 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); flex: none; overflow: hidden; }
.exp-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.exp .h-xl { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
.exp .panel { transition: transform .35s ease, box-shadow .35s ease; }
.js .exp .panel.in:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(7, 19, 38, .3); }

/* staggered check-lists inside reveal blocks */
.js .reveal .ticks li { opacity: 0; transform: translateX(12px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--j, 0) * 90ms + 220ms); }
.js .reveal.in .ticks li { opacity: 1; transform: none; }
.js .reveal .timeline li { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal .timeline li:nth-child(1) { transition-delay: .15s; }
.js .reveal .timeline li:nth-child(2) { transition-delay: .3s; }
.js .reveal.in .timeline li { opacity: 1; transform: none; }

/* ---------- team (general, no names) ---------- */
.team-row { align-items: center; gap: 64px; }
.team-photo { margin: 0; position: relative; }
.team-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.team-photo::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 42%; height: 42%; border-right: 4px solid var(--amber); border-bottom: 4px solid var(--amber); border-radius: 0 0 8px 0; pointer-events: none; }
.team-points { margin-top: 22px; }

/* ---------- services page: photo + text boxes ---------- */
.svcx-list { display: grid; gap: 40px; }
.svcx { display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 96px; transition: box-shadow .35s ease; }
.js .svcx.in:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11, 31, 58, .06), 0 24px 52px rgba(11, 31, 58, .18); }
.svcx.flip .svcx-img { order: 2; }
.svcx:target { box-shadow: 0 0 0 3px rgba(27, 165, 184, .35), var(--shadow); }
.svcx-img { position: relative; margin: 0; min-height: 360px; overflow: hidden; background: var(--ink-deep); }
.svcx-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.svcx:hover .svcx-img img { transform: scale(1.07); }
.svcx-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 19, 38, .55) 0%, rgba(7, 19, 38, 0) 45%); pointer-events: none; }
.svcx-badge { position: absolute; z-index: 1; left: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 14px; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s; }
.svcx-badge .ico { width: 28px; height: 28px; }
.svcx:hover .svcx-badge { transform: translateY(-6px) rotate(-6deg); background: var(--amber); color: #1a1200; }
.svcx-body { position: relative; padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.svcx-n { position: absolute; top: 12px; right: 26px; font-size: 5.6rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(27, 165, 184, .3); letter-spacing: -.04em; pointer-events: none; transition: -webkit-text-stroke-color .35s ease, transform .5s ease; }
.svcx:hover .svcx-n { -webkit-text-stroke-color: rgba(245, 165, 36, .75); transform: translateY(-4px); }
.svcx h2 { font-size: 1.75rem; margin-bottom: 4px; padding-right: 96px; }
.svcx .tag { position: relative; margin: 0 0 22px; padding-bottom: 14px; color: var(--teal-dark); font-weight: 700; }
.svcx .tag::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--amber); transition: width .5s ease; }
.svcx:hover .tag::after { width: 120px; }
.svcx .ticks li { transition: opacity .5s ease, transform .25s ease; }
.js .svcx.in .ticks li:hover { transform: translateX(5px); }
.svcx .ticks .ico { transition: transform .25s ease; }
.svcx .ticks li:hover .ico { transform: scale(1.3); }

/* image wipes in, text rises (only when JS runs) */
.js .svcx-img { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s cubic-bezier(.2, .7, .2, 1) .1s; }
.js .svcx.flip .svcx-img { clip-path: inset(0 0 0 100%); }
.js .svcx.in .svcx-img { clip-path: inset(0 0 0 0); }
.js .svcx-body > :not(.ticks) { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .svcx.in .svcx-body > :not(.ticks) { opacity: 1; transform: none; }
.js .svcx.in .svcx-body > :nth-child(2) { transition-delay: .2s; }
.js .svcx.in .svcx-body > :nth-child(3) { transition-delay: .3s; }

/* ---------- home service cards: a bit more life ---------- */
.pcard { transition: box-shadow .4s ease, transform .4s ease; }
.js .pcard.in:hover { transform: translateY(-5px); box-shadow: 0 24px 46px rgba(7, 19, 38, .4); }
.pcard-body { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-body { transform: translateY(-8px); }
.pcard h3 { position: relative; padding-bottom: 8px; }
.pcard h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--amber); transition: width .45s ease; }
.pcard:hover h3::after { width: 56px; }
.pcard-ico { transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .3s ease, color .3s ease; }
.pcard:hover .pcard-ico { transform: translateY(-4px) rotate(-8deg) scale(1.08); background: var(--amber); color: #1a1200; }

@media (max-width: 960px) {
  .svcx { grid-template-columns: 1fr; }
  .svcx.flip .svcx-img { order: 0; }
  .svcx-img { min-height: 240px; }
  .svcx-body { padding: 30px 26px 34px; }
  .svcx-n { font-size: 4rem; top: 10px; right: 18px; }
  .svcx h2 { font-size: 1.5rem; padding-right: 70px; }
  .js .svcx.flip .svcx-img { clip-path: inset(0 100% 0 0); }
  .js .svcx.flip.in .svcx-img { clip-path: inset(0 0 0 0); }
  .team-row { gap: 40px; }
  .exp { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .svcx-img, .js .svcx.flip .svcx-img { clip-path: none; transition: none; }
  .js .svcx-body > :not(.ticks) { opacity: 1; transform: none; transition: none; }
  .js .reveal .ticks li, .js .reveal .timeline li { opacity: 1; transform: none; transition: none; }
  .svcx-img img, .svcx-badge, .svcx-n, .pcard-body, .pcard-ico, .svcx .tag::after, .pcard h3::after { transition: none; }
  .js .svcx.in:hover, .js .pcard.in:hover, .js .exp .panel.in:hover { transform: none; }
}

/* =====================================================================
   v4 — Digital Transformation + AVEVA pipeline / measurement solutions
   ===================================================================== */

/* ---------- home band ---------- */
.digital-band, .digital-sec { position: relative; overflow: hidden; color: #fff; background: var(--ink-deep); }
.digital-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.05) saturate(1.1); }
.digital-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 19, 38, .93) 0%, rgba(7, 19, 38, .78) 50%, rgba(11, 31, 58, .55) 100%); }
.digital-band { padding: 96px 0; }
.digital-in { position: relative; max-width: 1160px; }
.digital-in > * { max-width: 760px; }
.digital-in .eyebrow { color: var(--teal); }
.digital-in h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.06; margin-bottom: .4em; }
.digital-in .lead { color: #d3dff1; }
.chips2 { list-style: none; margin: 24px 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips2 li { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); border-radius: 999px; font-weight: 600; font-size: .92rem; color: #fff; transition: border-color .3s, background .3s, transform .3s; }
.chips2 li:hover { border-color: var(--amber); background: rgba(245, 165, 36, .16); transform: translateY(-2px); }
.js .digital-in.reveal .chips2 li { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease, border-color .3s, background .3s; }
.js .digital-in.in .chips2 li { opacity: 1; transform: none; }
.js .digital-in.in .chips2 li:nth-child(1) { transition-delay: .15s; } .js .digital-in.in .chips2 li:nth-child(2) { transition-delay: .22s; }
.js .digital-in.in .chips2 li:nth-child(3) { transition-delay: .29s; } .js .digital-in.in .chips2 li:nth-child(4) { transition-delay: .36s; }
.js .digital-in.in .chips2 li:nth-child(5) { transition-delay: .43s; } .js .digital-in.in .chips2 li:nth-child(6) { transition-delay: .5s; }

/* ---------- services page: pillars ---------- */
.digital-sec { padding: 96px 0; scroll-margin-top: 80px; }
.digital-sec-in { position: relative; }
.digital-sec .eyebrow { color: var(--teal); }
.digital-sec .h-xl { color: #fff; }
.digital-sec .sec-head p { color: #c6d6ec; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillar { position: relative; display: block; padding: 28px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; backdrop-filter: blur(6px); transition: background .35s ease, border-color .35s ease, box-shadow .35s ease; }
.js .pillar.in:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .13); border-color: var(--amber); box-shadow: 0 22px 44px rgba(0, 0, 0, .35); }
.pillar-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--teal), #0f7c8c); color: #fff; margin-bottom: 16px; transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s; }
.pillar-ico .ico { width: 26px; height: 26px; }
.pillar:hover .pillar-ico { transform: translateY(-4px) rotate(-8deg) scale(1.08); background: var(--amber); color: #1a1200; }
.pillar h3 { color: #fff; font-size: 1.18rem; margin: 0 0 6px; }
.pillar p { margin: 0; color: #c6d6ec; font-size: .96rem; line-height: 1.5; padding-right: 26px; }
.pillar-go { position: absolute; right: 22px; bottom: 22px; color: var(--amber); transition: transform .3s; }
.pillar:hover .pillar-go { transform: translateX(5px); }
.pillars-cta { margin: 40px 0 0; }

/* ---------- partners page: AVEVA solutions ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sol { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 8px; padding: 28px; box-shadow: var(--shadow); transition: box-shadow .35s ease; }
.js .sol.in:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(11, 31, 58, .06), 0 24px 48px rgba(11, 31, 58, .16); }
.sol header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sol-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #7ee0ec; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.sol-ico .ico { width: 26px; height: 26px; }
.sol:hover .sol-ico { transform: translateY(-3px) rotate(-6deg); }
.formerly { padding: 4px 11px; border-radius: 999px; background: rgba(245, 165, 36, .16); border: 1px solid rgba(245, 165, 36, .55); color: #7a4f00; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.sol h3 { font-size: 1.28rem; margin-bottom: 4px; }
.sol .tag { color: var(--teal-dark); font-weight: 700; margin: 0 0 18px; }
.sol .ticks { gap: 11px; }
.sol .ticks li { font-size: .96rem; }
.sol-cta { margin: 36px 0 0; text-align: center; }

@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-grid { grid-template-columns: 1fr; }
  .digital-band, .digital-sec { padding: 72px 0; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .digital-band, .digital-sec { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .digital-in.reveal .chips2 li { opacity: 1; transform: none; transition: none; }
  .pillar, .pillar-ico, .pillar-go, .sol, .sol-ico, .chips2 li { transition: none; }
  .js .pillar.in:hover, .js .sol.in:hover { transform: none; }
}

/* v5 — AVEVA pipeline applications on the Services page */
.sol-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sol-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; }
.tm { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }
#pipelines { scroll-margin-top: 80px; }
@media (max-width: 960px) {
  .sol-grid-2 { grid-template-columns: 1fr; }
}
/* v6 - LinkedIn icon is a filled glyph, not a stroked one */
.li-ico { stroke: none; }
.contact-list li div { min-width: 0; }
