@font-face { font-family: "Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 700; font-display: swap; 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: "Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 700; font-display: swap; 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; }

/* Carbon structure, H&A PD navy as the brand colour; g100 in dark mode */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --layer: #f4f4f4; --layer-hover: #e8e8e8;
  --text: #161616; --text-2: #525252;
  --border: #e0e0e0; --border-strong: #161616;
  --brand: #000053; --brand-hover: #1c1c7a; --link: #000053; --icon: #000053;
  --tag-bg: #e6e6f2; --tag-text: #000053;
  --inverse-bg: #161616; --inverse-layer: #262626; --inverse-text: #f4f4f4; --inverse-text-2: #c6c6c6; --inverse-border: #393939; --inverse-icon: #a8a8ff;
  --art-1: #000053; --art-2: #3d3da6; --art-3: #d6d6ea; --art-line: #e0e0e0;
  --font: "Plex Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616; --layer: #262626; --layer-hover: #333333;
    --text: #f4f4f4; --text-2: #c6c6c6;
    --border: #393939; --border-strong: #f4f4f4;
    --brand: #2e2ea8; --brand-hover: #3b3bbd; --link: #a8a8ff; --icon: #a8a8ff;
    --tag-bg: #1f1f5c; --tag-text: #d0d0ff;
    --inverse-bg: #000000; --inverse-layer: #1c1c1c; --inverse-border: #333333;
    --art-1: #2e2ea8; --art-2: #6b6bd6; --art-3: #d6d6ea; --art-line: #333333;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.grid { width: min(100% - 32px, 1312px); margin-inline: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.ic { width: 32px; height: 32px; fill: var(--icon); flex: none; }
.ic-s { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* UI shell header in brand navy */
.shell-head { position: sticky; top: 0; z-index: 5; background: #000053; color: #fff; }
.shell-head .grid { display: flex; align-items: stretch; height: 90px; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; font-size: 1rem; padding-right: 16px; }
.brand:hover { text-decoration: none; }
.brand img { height: 90px; width: auto; display: block; }
.brand b { font-weight: 600; }
.shell-head nav { margin-left: auto; display: flex; }
.shell-head nav a { display: flex; align-items: center; padding: 0 20px; color: #c8c8e8; font-size: 1rem; }
.shell-head nav a:hover { background: #1c1c7a; color: #fff; text-decoration: none; }
.shell-head nav .lang { color: #fff; border-left: 1px solid rgba(255,255,255,.2); }
.shell-head :focus-visible { outline-color: #fff; outline-offset: -2px; }
@media (max-width: 672px) { .shell-head nav a:not(.lang) { display: none; } }

/* Hero */
.hero .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 64px; align-items: center; padding: 96px 0; }
@media (max-width: 1056px) { .hero .grid { grid-template-columns: 1fr; padding: 56px 0 48px; } }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.12; font-weight: 300; letter-spacing: -.01em; margin: 0; max-width: 16em; }
.lead { font-size: 1.25rem; line-height: 1.5; font-weight: 300; color: var(--text-2); margin: 24px 0 0; max-width: 36em; }
.actions { margin-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 64px; min-height: 48px; padding: 0 16px; background: var(--brand); color: #fff; font: inherit; font-size: .875rem; border: 0; cursor: pointer; }
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn.ghost:hover { background: var(--layer); }
.actions .btn + .btn { margin-left: 8px; }
.notfound { min-height: calc(100vh - 90px); display: grid; align-items: center; }
.notfound .code { font-size: .875rem; color: var(--text-2); margin: 0 0 16px; }
.notfound .lead + .lead { margin-top: 8px; }

/* Hero art: decorative geometric grid, CSS-only motion */
.art { display: grid; grid-template-columns: repeat(4, 1fr); aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: end; border-top: 1px solid var(--art-line); border-left: 1px solid var(--art-line); }
@media (max-width: 1056px) { .art { justify-self: stretch; max-width: none; aspect-ratio: 4; grid-template-columns: repeat(8, 1fr); } }
.art i { position: relative; overflow: hidden; border-right: 1px solid var(--art-line); border-bottom: 1px solid var(--art-line); }
.art i::before { content: ""; position: absolute; inset: 0; animation: 12s cubic-bezier(.65,0,.35,1) infinite; }
.art .q::before { background: var(--art-1); border-radius: 100% 0 0 0; animation-name: spin; }
.art .c::before { background: var(--art-2); border-radius: 50%; animation-name: pulse; }
.art .s::before { background: var(--art-3); animation-name: morph; }
.art .h::before { background: var(--art-1); border-radius: 100% 100% 0 0; animation-name: rise; }
.art .b::before { background: var(--art-2); left: 50%; animation-name: slide; }
.art .d2::before { animation-delay: -3s; } .art .d3::before { animation-delay: -6s; } .art .d4::before { animation-delay: -9s; }
@keyframes spin { 0%, 20% { transform: rotate(0); } 25%, 45% { transform: rotate(90deg); } 50%, 70% { transform: rotate(180deg); } 75%, 95% { transform: rotate(270deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.35); } 40%, 60% { transform: scale(1); } }
@keyframes morph { 0%, 20%, 100% { border-radius: 0; } 30%, 45% { border-radius: 50%; } 55%, 70% { border-radius: 0 100% 0 0; } 80%, 90% { border-radius: 0 0 100% 0; } }
@keyframes rise { 0%, 15%, 100% { transform: translateY(100%); } 35%, 75% { transform: translateY(0); } }
@keyframes slide { 0%, 20%, 100% { transform: translateX(0); } 35%, 55% { transform: translateX(-100%); } 70%, 85% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .art i::before { animation: none; } }

/* Service strip (section nav) */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.pillars a { display: flex; justify-content: space-between; gap: 16px; padding: 28px 32px 28px max(16px, calc((100vw - 1312px) / 2)); background: var(--layer); color: var(--text); }
.pillars a + a { padding: 28px max(16px, calc((100vw - 1312px) / 2)) 28px 32px; }
.pillars a:hover { background: var(--layer-hover); text-decoration: none; }
.pillars strong { display: block; font-size: 1.25rem; font-weight: 400; }
.pillars span { display: block; color: var(--text-2); font-size: .875rem; margin-top: 4px; }
.pillars .ic-s { color: var(--link); align-self: end; margin-bottom: 4px; }
@media (max-width: 672px) { .pillars { grid-template-columns: 1fr; } .pillars a, .pillars a + a { padding: 24px 16px; } }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 672px) { section { padding: 64px 0; } }
h2 { font-size: clamp(2rem, 3.4vw, 2.625rem); line-height: 1.19; font-weight: 300; margin: 0; }
.sec-head { margin-bottom: 48px; max-width: 48em; }
.sec-head p { margin: 16px 0 0; color: var(--text-2); font-size: 1.125rem; font-weight: 300; }
.sec-head.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; max-width: none; }
.sec-head.split p { margin: 0; max-width: 36em; }
@media (max-width: 1056px) { .sec-head.split { grid-template-columns: 1fr; } }
h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 400; margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 1056px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--bg); padding: 24px 16px 32px; display: flex; flex-direction: column; gap: 8px; }
.tile .ic { margin-bottom: 32px; }
.tile:hover { outline: 1px solid var(--brand); outline-offset: -1px; position: relative; }
.nx { display: none; }
.tile p { margin: 0; color: var(--text-2); font-size: .875rem; line-height: 1.6; }
.tile.wide { grid-column: span 2; }
@media (max-width: 560px) { .tile.wide { grid-column: auto; } }
.tag { align-self: flex-start; display: inline-block; padding: 2px 8px; border-radius: 24px; background: var(--tag-bg); color: var(--tag-text); font-size: .75rem; }

/* Inverse software section */
.inverse { background: var(--inverse-bg); color: var(--inverse-text); }
.inverse .sec-head p { color: var(--inverse-text-2); }
.inverse .tiles { background: var(--inverse-border); border-color: var(--inverse-border); }
.inverse .tile { background: var(--inverse-layer); }
.inverse .tile p { color: var(--inverse-text-2); }
.inverse .tile:hover { outline-color: var(--inverse-icon); }
.inverse .ic { fill: var(--inverse-icon); }
.inverse .tag { background: #1f1f5c; color: #d0d0ff; }
.custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; margin-top: 80px; }
@media (max-width: 1056px) { .custom { grid-template-columns: 1fr; margin-top: 56px; } }
.custom p { margin: 12px 0 0; color: var(--inverse-text-2); font-weight: 300; font-size: 1.125rem; max-width: 30em; }
.custom ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--inverse-text); }
.custom li { padding: 16px 0; border-bottom: 1px solid var(--inverse-border); }

/* Contact */
.contact { background: var(--layer); }
.contact .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; }
@media (max-width: 1056px) { .contact .grid { grid-template-columns: 1fr; } }
.contact .sec-head { margin-bottom: 40px; }
.reach { margin: 0; display: grid; gap: 24px; }
.reach dt { font-size: .875rem; color: var(--text-2); }
.reach dd { margin: 4px 0 0; }
.reach a { color: var(--text); font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 300; line-height: 1.25; overflow-wrap: anywhere; border-bottom: 1px solid var(--border-strong); }
.reach a:hover { color: var(--link); border-color: var(--link); text-decoration: none; }
.company h3 { font-size: .875rem; font-weight: 600; margin: 0 0 16px; }
.company dl { margin: 0; border-top: 1px solid var(--border-strong); }
.company dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.company dt { color: var(--text-2); }
.company dd { margin: 0; }
@media (max-width: 420px) { .company dl > div { grid-template-columns: 1fr; } }

footer { background: var(--inverse-bg); color: var(--inverse-text-2); font-size: .75rem; padding: 32px 0 40px; }
footer .grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
footer p { margin: 0; }
footer .links { display: flex; gap: 24px; }
footer a, footer .linkbtn { color: var(--inverse-text); }

#privacy { width: min(100% - 32px, 560px); max-height: calc(100vh - 64px); overflow: auto; border: 0; padding: 24px; background: var(--layer); color: var(--text); font-size: .875rem; }
#privacy::backdrop { background: rgba(22,22,22,.5); }
#privacy h2 { font-size: 1.25rem; font-weight: 400; margin: 0 0 8px; }
#privacy dl { margin: 0 0 24px; }
#privacy dt { font-weight: 600; margin-top: 12px; }
#privacy dd { margin: 2px 0 0; color: var(--text-2); }
.linkbtn { border: 0; padding: 0; background: none; color: var(--link); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
