/* Deosi site styles. One stylesheet for every page. */

@font-face { font-family: 'Source Serif 4 Variable'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('../fonts/source-serif-4.woff2') format('woff2-variations'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-600.woff2') format('woff2'); }


:root {

  --serif: 'Source Serif 4 Variable', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* 1.25 scale on an 18px base */
  --fs-sm: 0.875rem;
  --fs-base: 1.125rem;
  --fs-md: 1.375rem;
  --fs-lg: 1.75rem;
  --fs-xl: 2.25rem;
  --fs-2xl: clamp(2.25rem, 4.2vw, 3.25rem);
  --fs-hero: clamp(2.5rem, 5.4vw, 4.25rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4rem, 8vw, 7rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .site-header :focus-visible { outline-color: var(--accent); }
main :focus-visible { outline-color: var(--primary); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-md); line-height: 1.25; }
h4 { font-family: var(--sans); font-size: var(--fs-base); font-weight: 600; margin: 0 0 0.4em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--primary); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: var(--on-accent); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.white { background: var(--white); }
.lead { font-size: var(--fs-md); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--primary); margin: 0 0 0.75rem; letter-spacing: 0.01em; }
.muted { color: var(--muted); }

/* The logo's underline bar, used as the one recurring structural device:
   it marks the primary heading of every page. */
.bar { display: block; width: 4.5rem; height: 6px; background: var(--red); margin: 0 0 1.75rem; border: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--white); color: var(--text); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); box-shadow: 0 6px 18px -14px color-mix(in srgb, var(--navy) 45%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand img { width: 240px; }
@media (max-width: 640px) { .brand img { width: 180px; } }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav a {
  color: var(--navy); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 0.5rem 0.75rem; border-radius: var(--radius);
}
.nav a:hover { background: var(--paper); color: var(--primary); }
.nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.menu-toggle {
  display: none; margin-left: auto; background: transparent; color: var(--navy);
  border: 1px solid var(--rule); border-radius: var(--radius);
  font: inherit; font-size: 0.95rem; padding: 0.4rem 0.8rem; cursor: pointer;
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; background: var(--white);
    padding: 0.5rem var(--gutter) 1.25rem; border-top: 1px solid var(--rule); box-shadow: 0 14px 24px -18px color-mix(in srgb, var(--navy) 50%, transparent);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.5rem; }
  .nav a[aria-current='page'] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 1rem; }
}

/* ---------- Ink sections (hero, CTA) ---------- */
:root { --brand: var(--accent); }
/* On dark surfaces the accent lightens so lines and icons stay visible; buttons keep --brand. */
.on-ink, .site-footer, .ag-icon, .dom-icon, .pf-core, .jr-step.ours .jr-node, .jr-step.ours .jr-card { --accent: var(--accent-on-dark); }
.on-ink { background: var(--navy); color: var(--on-dark); }
.on-ink a:not(.btn) { color: var(--accent-on-dark); }
.on-ink .lead, .on-ink .muted { color: var(--on-dark-muted); }
.on-ink .kicker { color: var(--accent-on-dark); }

.hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
/* Text column pins to the top so the red bar sits at the same height on every page; art stays centred. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero-grid > :not(:first-child) { align-self: center; }
.hero h1 { max-width: 20ch; font-size: clamp(2.25rem, 4vw, 3.4rem); }
.hero .lead { margin-bottom: 2rem; }
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: var(--fs-2xl); max-width: 22ch; }
.page-hero.has-art .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .hero-grid, .page-hero.has-art .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.25rem; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand); color: var(--on-accent); }
.on-ink .btn-primary { background: var(--white); color: var(--navy); }
.on-ink .btn-primary:hover { background: var(--accent-wash); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: currentColor; color: inherit; }
.on-ink .btn-ghost { color: var(--on-dark); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }

/* ---------- Agency line ---------- */
.agencies { border-top: 1px solid var(--navy-2); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; }
.agencies p { font-size: var(--fs-sm); color: var(--on-dark-muted); margin: 0 0 0.6rem; }
.agencies ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }
.agencies li { font-family: var(--serif); font-size: var(--fs-md); color: var(--on-dark); margin: 0; }

/* ---------- Pillars (home) ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.pillar { padding: 2.25rem 2.25rem 2.25rem 0; border-bottom: 1px solid var(--rule); }
.pillar:nth-child(odd) { border-right: 1px solid var(--rule); }
.pillar:nth-child(even) { padding-left: 2.25rem; padding-right: 0; }
.pillar h3 { font-size: var(--fs-lg); }
.pillar h3 a { color: var(--text); text-decoration: none; }
.pillar h3 a:hover { color: var(--primary); text-decoration: underline; }
.pillar .proof { font-size: var(--fs-sm); color: var(--muted); border-left: 3px solid var(--accent); padding-left: 0.85rem; margin-top: 1.25rem; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(odd), .pillar:nth-child(even) { padding: 2rem 0; border-right: 0; }
}

/* ---------- Two-column text blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Capability lists ---------- */
.cap-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; counter-reset: cap; }
/* Two or four items sit in two columns, so a card is never left alone on a row. */
.cap-list:has(> .item:nth-child(2):last-child), .cap-list:has(> .item:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cap-list .item { position: relative; overflow: hidden; counter-increment: cap; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1.4rem, 2.6vw, 1.9rem); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.section.white .cap-list .item { background: var(--paper); }
.cap-list .item::before { content: ''; position: absolute; inset: 0 auto auto 0; height: 4px; width: 0; background: var(--accent); transition: width 0.35s ease; }
.cap-list .item:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--navy) 45%, transparent); border-color: transparent; }
.cap-list .item:hover::before { width: 100%; }
/* Numbered tile for lists without their own icons */
.cap-list .item:not(:has(.dom-icon))::after { content: counter(cap, decimal-leading-zero); position: absolute; top: clamp(1.4rem, 2.6vw, 1.9rem); right: clamp(1.4rem, 2.6vw, 1.9rem); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--primary-light); }
.cap-list .item:not(:has(.dom-icon)) h3 { padding-right: 2.5rem; }
.cap-list .item .dom-icon { margin-bottom: 1rem; }
.cap-list h3 { font-size: var(--fs-md); margin-bottom: 0.5rem; }
.cap-list p { color: var(--muted); font-size: 1rem; margin: 0; }
.cap-list .item h3 a { color: var(--text); text-decoration: none; }
.cap-list .item h3 a::after { content: ''; position: absolute; inset: 0; }
.cap-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem 0.65rem; margin-top: 1rem; }
@media (max-width: 1000px) { .cap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cap-list, .cap-list:has(> .item:nth-child(2):last-child), .cap-list:has(> .item:nth-child(4):last-child) { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cap-list .item, .cap-list .item::before { transition: none; } .cap-list .item:hover { transform: none; } }
.cap-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }

/* ---------- Engagement rows ---------- */
.engagements { list-style: none; padding: 0; margin: 2rem 0 0; }
.engagement {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.5rem 2.5rem;
  padding: 2rem 0; border-top: 1px solid var(--rule); margin: 0;
}
.engagement:last-child { border-bottom: 1px solid var(--rule); }
.engagement .when { font-family: var(--serif); font-size: var(--fs-md); color: var(--primary); line-height: 1.3; }
.engagement .when small { display: block; font-family: var(--sans); font-size: var(--fs-sm); color: var(--muted); margin-top: 0.35rem; }
.engagement h3 { margin-bottom: 0.25rem; }
.engagement .client { font-size: 1rem; color: var(--muted); margin: 0 0 0.85rem; }
.engagement .client strong { color: var(--text); font-weight: 600; }
.engagement ul { font-size: 1rem; }
.engagement .tech { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.engagement .tech li { font-size: 0.8rem; background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: 0.15rem 0.5rem; margin: 0; }
.engagement .award { font-size: 0.95rem; margin: 0.9rem 0 0; color: var(--text); }
.engagement .award::before { content: ''; display: inline-block; width: 0.6rem; height: 0.6rem; background: var(--red); margin-right: 0.5rem; vertical-align: 0.05em; }
.engagement .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1rem 0 0; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 700px) { .engagement { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.filters button {
  font: inherit; font-size: 0.95rem; font-weight: 500; background: var(--white); color: var(--text);
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer;
}
.filters button[aria-pressed='true'] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.engagement[hidden] { display: none; }

/* ---------- Timeline (sequence: real years) ---------- */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.75rem 2rem; margin: 0; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 0.55rem; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--primary); border-radius: 50%; }
.timeline li:last-child::before { background: var(--accent); border-color: var(--navy); }
.timeline .year { font-family: var(--serif); font-weight: 600; font-size: var(--fs-md); display: block; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem 2.5rem; margin-top: 2rem; }
.person { border-top: 2px solid var(--navy); padding-top: 1.1rem; }
.person h3 { font-size: var(--fs-md); margin-bottom: 0.15rem; }
.person .role { color: var(--primary); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.6rem; }
.person p, .person ul { font-size: 0.98rem; color: var(--muted); }
.person ul { list-style: none; padding: 0; }

/* ---------- Product panel ---------- */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem);
  align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.75rem, 4vw, 3rem);
}
.product + .product { margin-top: 2rem; }
.product .status { display: inline-block; font-size: var(--fs-sm); font-weight: 600; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem 0.75rem; margin-bottom: 1rem; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ---------- Facts table (government page) ---------- */
.facts { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 1rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts th { width: 34%; font-weight: 600; color: var(--muted); }

/* ---------- Diagrams ---------- */
.diagram { width: 100%; }
.diagram text { font-family: var(--sans); }
.diagram .serif { font-family: var(--serif); }
figure { margin: 0; }
figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.75rem; max-width: 60ch; }
.on-ink figcaption { color: var(--on-dark-muted); }
.diagram-panel { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1rem, 3vw, 2rem); }

@media (prefers-reduced-motion: no-preference) {
  .draw path.link, .draw line.link { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s 0.2s ease-out forwards; }
  .draw .node { opacity: 0; animation: appear 0.5s ease-out forwards; }
  .draw .node:nth-of-type(2) { animation-delay: 0.35s; }
  .draw .node:nth-of-type(3) { animation-delay: 0.5s; }
  .draw .node:nth-of-type(4) { animation-delay: 0.65s; }
  .draw .node:nth-of-type(5) { animation-delay: 0.8s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
  .draw .flow { stroke-dasharray: 6 8; animation: flow 1.2s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -14; } }
  /* Home hero: the security boundary draws itself, then a light patrols it. */
  .sm .sm-trace { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: sm-trace 1.4s 0.1s ease-out forwards, sm-fade 0.8s 1.6s ease forwards; }
  .sm .sm-patrol { stroke-dasharray: 70 930; opacity: 0; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 85%, transparent)); animation: sm-in 0.6s 1.7s ease forwards, sm-patrol 10s 1.7s linear infinite; }
  @keyframes sm-trace { to { stroke-dashoffset: 0; } }
  @keyframes sm-fade { to { opacity: 0; } }
  @keyframes sm-in { to { opacity: 1; } }
  @keyframes sm-patrol { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
}
.sm .sm-trace, .sm .sm-patrol { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .sm .sm-trace { opacity: 1; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.form .hint { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1px solid var(--on-dark-faint); border-radius: var(--radius); padding: 0.7rem 0.85rem;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; margin: 0; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--primary); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.cta-band h2 { margin: 0 0 0.5rem; max-width: 20ch; }
.cta-band p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: var(--on-dark-muted); font-size: 0.95rem; padding: 3rem 0 2rem; border-top: 1px solid var(--slate-2); }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .foot-since { margin-top: 0.75rem; font-size: var(--fs-sm); }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--on-dark); margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--slate-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); }
.site-footer img { width: 120px; margin-bottom: 1rem; }
@media (max-width: 1080px) { .site-footer .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer .cols > div:first-child { grid-column: 1 / -1; max-width: 560px; } }
@media (max-width: 640px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Print: the Government page doubles as a capability statement ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .no-print, .skip { display: none !important; }
  body { background: #fff; font-size: 10.5pt; color: #000; }
  .section { padding: 1rem 0; border: 0 !important; }
  .on-ink { background: #fff; color: #000; }
  .on-ink .lead { color: #333; }
  .page-hero { padding: 0 0 0.5rem; }
  a { color: #000; text-decoration: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram.rmf { min-width: 820px; }
.diagram.edge { min-width: 640px; }
.diagram.arch { min-width: 620px; }

/* Reserve header space until the include loads, so the page does not jump. */
[data-include='header'] { min-height: 72px; background: var(--navy); }
.form-fallback[hidden], .form[hidden] { display: none; }

/* Proof row (home): three facts, each a number with what it means. */
.proof-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.proof-row > div { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.proof-row .num { display: block; font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 650; line-height: 1.1; color: var(--navy); margin-bottom: 0.6rem; }
.proof-row p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 800px) { .proof-row { grid-template-columns: 1fr; gap: 2rem; } }
.diagram.journey { width: 100%; }

/* Anchor targets land below the sticky header. */
[id] { scroll-margin-top: 96px; }
:target { background: var(--accent-wash); border-radius: 4px; }

/* Company evolution: four eras in sequence. */
.eras { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--navy); }
.eras > li { margin: 0; padding: 1.5rem 1.5rem 0 0; position: relative; }
.eras > li + li { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.eras > li::before { content: ''; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary); }
.eras > li + li::before { left: 1.5rem; }
.eras > li:last-child::before { background: var(--accent); border-color: var(--navy); }
.era-years { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--primary); margin: 0.5rem 0 0.35rem; }
.eras h3 { font-size: var(--fs-md); margin-bottom: 0.5rem; }
.eras p { font-size: 0.98rem; color: var(--muted); }
.eras ul { font-size: 0.92rem; color: var(--text); padding-left: 1.1em; }
.eras ul li { margin-bottom: 0.45em; }
@media (max-width: 1000px) { .eras { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } .eras > li:nth-child(3) { border-left: 0; padding-left: 0; } .eras > li:nth-child(3)::before { left: 0; } }
@media (max-width: 640px) { .eras { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--navy); } .eras > li, .eras > li + li { padding: 0 0 1.5rem 1.5rem; border-left: 0; } .eras > li::before, .eras > li + li::before { top: 0.35rem; left: -8px; } }

/* ---------- Visual layer ---------- */

/* Faint blueprint grid on dark headers, fading out toward the bottom. */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary-light) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary-light) 12%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 75% 30%, #000 30%, transparent 75%);
}

/* Domain header illustrations */
.hero-art { max-width: 480px; justify-self: end; width: 100%; }
@media (max-width: 900px) { .hero-art { display: none; } }

/* Product mockups */
.mock { margin: 0; }
.mock svg { filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--navy) 18%, transparent)); }
.mock-wrap { display: flex; justify-content: center; align-items: center; }
.product .mock-wrap .mock { width: 100%; max-width: 440px; }
.product#woundcare .mock-wrap .mock, .page-hero .mock-wrap .mock { max-width: 260px; }
.page-hero .mock svg { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); }
.product ul + .actions { margin-top: 1.5rem; }

/* Home product tiles */
.product-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--navy) 12%, transparent); border-color: var(--primary); }
.tile-art { height: 230px; display: flex; align-items: center; justify-content: center; background: var(--paper); border-radius: 8px; margin-bottom: 1.25rem; padding: 1rem; }
.tile-art .mock, .tile-art svg { height: 100%; width: auto; max-width: 100%; }
.tile h3 { margin-bottom: 0.4rem; }
.tile p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .product-tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tile, .tile:hover { transition: none; transform: none; } }

/* Practice blocks get a quiet hover cue */
.pillar { transition: background-color 0.2s ease; }
.pillar:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }

/* Company page: animated D orb with orbiting tags */
.orb-art { margin: 0; width: 100%; max-width: 600px; justify-self: end; }
.orb { width: 100%; height: auto; overflow: visible; }
.orb-core { transform-origin: 270px 220px; animation: orb-float 7s ease-in-out infinite; }
.orb-halo { transform-origin: 270px 220px; animation: orb-breathe 7s ease-in-out infinite; }
@keyframes orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes orb-breathe { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .orb-core, .orb-halo { animation: none; } }
@media (max-width: 900px) { .orb-art { max-width: 420px; justify-self: center; margin-top: 1rem; } }

/* ---------- Platform map (products page) ---------- */
.pf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; align-items: stretch; }
.pf-map { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.pf-map::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--primary-light) 14%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary-light) 14%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; }
.pf-row { display: grid; gap: 0.75rem; }
.pf-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-box { display: block; text-decoration: none; color: var(--on-dark); background: color-mix(in srgb, var(--navy-2) 92%, transparent); border: 1px solid var(--primary-light); border-radius: 6px; padding: 0.9rem 1rem; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.pf-box small { display: block; font-size: 0.75rem; color: var(--on-dark-muted); margin-bottom: 0.25rem; }
.pf-box strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.25; color: #fff; }
.pf-box span { display: block; font-size: 0.85rem; color: var(--on-dark-muted); margin-top: 0.3rem; }
.pf-box:hover, .pf-box:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.pf-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-box.is-active { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.pf-core { background: var(--navy-2); border-color: var(--accent); padding: 1.2rem 1.25rem; }
.pf-core strong { color: var(--accent-on-dark); font-size: 1.35rem; }
.pf-out { background: transparent; border-style: dashed; }
.pf-link { position: relative; height: 2.75rem; display: flex; align-items: center; justify-content: center; }
.pf-link::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed var(--primary-light); }
.pf-link span { position: relative; background: var(--navy); color: var(--accent-on-dark); font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 4px; }
.pf-panel { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.pf-detail + .pf-detail { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.pf-detail small { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.pf-detail h3 { font-size: var(--fs-lg); margin: 0.35rem 0 0.75rem; }
.pf-detail h3::before { content: ''; display: block; width: 2.5rem; height: 4px; background: var(--accent); margin-bottom: 0.9rem; }
.pf-detail p { color: var(--muted); }
.pf-detail a { font-weight: 600; }
.pf.is-ready .pf-detail { display: none; }
.pf.is-ready .pf-detail.is-active { display: block; margin: 0; padding: 0; border: 0; animation: pf-in 0.25s ease; }
@keyframes pf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pf-box, .pf.is-ready .pf-detail.is-active { transition: none; animation: none; } .pf-box:hover { transform: none; } }
@media (max-width: 900px) { .pf { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pf-3, .pf-2 { grid-template-columns: 1fr; } .pf-link { height: 2.25rem; } }

/* Home headline: one sentence per line, last line highlighted */
.hero h1.h1-stack { font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: none; }
.h1-stack span { display: block; }
.h1-stack .hl { color: var(--accent-on-dark); }
@media print { .h1-stack .hl { color: inherit; } }

/* Legal and policy pages */
.legal-doc { max-width: 72ch; }
.legal-doc h2 { font-size: var(--fs-lg); margin: 2.25rem 0 0.75rem; }
.legal-doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-doc li { margin-bottom: 0.4em; }

/* How we deliver: alternating rows with animated art */
.dlv-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--rule); }
.dlv-row:first-child { padding-top: 0; }
.dlv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dlv-row.flip .dlv-art { order: 2; }
.dart { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); border-radius: 12px; padding: clamp(1rem, 2.5vw, 1.75rem); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--navy) 55%, transparent); }
.dart::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--primary-light) 13%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary-light) 13%, transparent) 1px, transparent 1px); background-size: 28px 28px; }
.dart::after { content: ''; position: absolute; inset: auto -20% -40% auto; width: 70%; height: 80%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent); }
.dart svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.dlv-num { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--primary); margin-bottom: 0.5rem; }
.dlv-body h2 { font-size: var(--fs-xl, 2rem); margin: 0 0 0.75rem; }
.dlv-body h2 a { color: var(--text); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 4px no-repeat; transition: background-size 0.25s ease; }
.dlv-body h2 a:hover { background-size: 100% 4px; }
.dlv-is { font-size: var(--fs-lg); color: var(--muted); line-height: 1.5; max-width: 52ch; }
.dlv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.dlv-cols h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary); margin: 0 0 0.6rem; }
.dlv-list { margin: 0; padding-left: 1.1em; }
.dlv-list li { margin-bottom: 0.35rem; }
.dlv-where { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.dlv-where li { background: var(--paper); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 0.45rem 0.7rem; font-size: 0.93rem; }
@media (max-width: 900px) {
  .dlv-row, .dlv-row.flip { grid-template-columns: 1fr; }
  .dlv-row.flip .dlv-art { order: 0; }
  .dart { max-width: 520px; }
}
@media (max-width: 600px) { .dlv-cols { grid-template-columns: 1fr; } .dlv-is { font-size: 1.08rem; } .dlv-num { font-size: 2.1rem; } }

/* Past performance: practice and agency filter rows */
.filter-rows { display: grid; gap: 0.75rem; }
.filter-rows .filters { align-items: center; }
.filter-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); min-width: 7.5rem; }
@media (max-width: 600px) { .filter-label { flex-basis: 100%; min-width: 0; } }

/* Company page: How we work illustration */
.work-art { margin-top: 2rem; max-width: 520px; }

/* ---------- Journey: animated rail, horizontal on desktop, vertical on phones ---------- */
.jr { margin: 0; }
.jr-track { --node: 44px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1rem; }
/* The rail runs through the centre of the nodes; the pulse travels along it. */
.jr-track::before { content: ''; position: absolute; top: calc(var(--node) / 2 - 1px); left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); height: 2px; background: repeating-linear-gradient(90deg, var(--primary-light) 0 6px, transparent 6px 12px); }
.jr-track::after { content: ''; position: absolute; top: calc(var(--node) / 2 - 5px); left: calc(100% / var(--n) / 2); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 14px 2px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; z-index: 0; }
.jr-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.jr-node { position: relative; z-index: 2; width: var(--node); height: var(--node); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1rem; background: var(--white); color: var(--primary); border: 2px solid var(--primary-light); margin: 0 auto 1rem; }
.jr-step.ours .jr-node { background: var(--navy); color: var(--accent-on-dark); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.jr-card { width: 100%; flex: 1; border: 1px solid var(--rule); border-radius: 10px; padding: 1.1rem 1.1rem 1.2rem; background: var(--white); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.jr-card h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.jr-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.jr-step.ours .jr-card { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 3px 0 var(--accent); }
.jr-step.ours .jr-card h3 { color: var(--white); }
.jr-step.ours .jr-card p { color: var(--on-dark-muted); }
.jr-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-accent); background: var(--brand); border-radius: 999px; padding: 0.15rem 0.55rem; margin-bottom: 0.6rem; }
.jr-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--navy) 50%, transparent); }
.jr-step.ours .jr-card:hover { box-shadow: inset 0 3px 0 var(--accent), 0 14px 30px -18px color-mix(in srgb, var(--navy) 70%, transparent); }
.jr figcaption { margin-top: 1.5rem; color: var(--muted); max-width: 60ch; }

@media (prefers-reduced-motion: no-preference) {
  .jr.is-ready .jr-step { opacity: 0; transform: translateY(14px); }
  .jr.in-view .jr-step { animation: jr-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i) * 0.14s); }
  .jr.in-view .jr-track::after { animation: jr-pulse-x 4.5s ease-in-out 0.9s infinite; }
  @keyframes jr-in { to { opacity: 1; transform: none; } }
  @keyframes jr-pulse-x {
    0% { opacity: 0; left: calc(100% / var(--n) / 2); }
    8% { opacity: 1; }
    88% { opacity: 1; }
    100% { opacity: 0; left: calc(100% - 100% / var(--n) / 2 - 10px); }
  }
}

/* Phones and narrow tablets: a vertical timeline, nothing hidden, no sideways scroll. */
@media (max-width: 760px) {
  .jr-track { --node: 36px; grid-template-columns: 1fr; gap: 0.9rem; }
  .jr-track::before, .jr-track::after { display: none; }
  .jr-step:not(:last-child)::before { content: ''; position: absolute; top: calc(var(--node) / 2 + 0.35rem); bottom: -0.9rem; left: calc(var(--node) / 2 - 1px); width: 2px; background: repeating-linear-gradient(180deg, var(--primary-light) 0 6px, transparent 6px 12px); }
  .jr-step { flex-direction: row; align-items: flex-start; gap: 0.9rem; }
  .jr-node { margin: 0.35rem 0 0; flex: none; font-size: 0.9rem; }
  .jr-card { padding: 0.9rem 1rem; }
  .jr-card h3 { font-size: 1.1rem; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .jr.is-ready .jr-step { transform: translateX(-10px); }
  .jr.in-view .jr-step.ours .jr-node { animation: jr-ping 2.4s ease-out infinite; animation-delay: calc(var(--i) * 0.4s + 1s); }
  @keyframes jr-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); } }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Home: domain cards with animated icons ---------- */
.dom-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.dom-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.1rem); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.dom-card::before { content: ''; position: absolute; inset: 0 auto auto 0; height: 4px; width: 0; background: var(--accent); transition: width 0.35s ease; }
.dom-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.dom-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--navy) 45%, transparent); border-color: transparent; }
.dom-card:hover::before { width: 100%; }
.dom-card:hover::after { opacity: 1; }
.dom-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.dom-icon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.dom-icon svg { width: 40px; height: 40px; }
.dom-card h3 { font-size: var(--fs-lg); margin: 0; }
.dom-card h3 a { color: var(--text); text-decoration: none; }
.dom-card h3 a::after { content: ''; position: absolute; inset: 0; } /* whole card is the link */
.dom-card p { color: var(--muted); }
.dom-card .proof { font-size: var(--fs-sm); border-left: 3px solid var(--accent); padding-left: 0.85rem; margin-top: auto; padding-top: 0; }
.dom-card > p:not(.proof) { margin-bottom: 1.25rem; }
.dom-more { margin-top: 1.1rem; font-weight: 600; font-size: 0.92rem; color: var(--primary); transition: transform 0.2s ease; }
.dom-card:hover .dom-more { transform: translateX(4px); }
.dom-card:focus-within { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 760px) { .dom-cards { grid-template-columns: 1fr; } .dom-icon { width: 48px; height: 48px; } .dom-icon svg { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .dom-card, .dom-card::before, .dom-more { transition: none; } .dom-card:hover { transform: none; } }

/* ---------- Federal: mission cards ---------- */
.mission-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.mission-card { background: var(--paper); }
.mission-card .dom-head { justify-content: space-between; margin-bottom: 1.1rem; }
.mission-card h3 { margin: 0 0 0.6rem; }
.mission-card > p { margin-bottom: 0; }
.mission-card .dom-more { margin-top: auto; padding-top: 1.1rem; }
.mission-agency { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary); background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 0.25rem 0.7rem; white-space: nowrap; }
.mission-card:hover .mission-agency { border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .mission-cards.is-ready .mission-card { opacity: 0; transform: translateY(16px); }
  .mission-cards.in-view .mission-card { animation: jr-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i) * 0.09s); }
}
@media (max-width: 1000px) { .mission-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mission-cards { grid-template-columns: 1fr; } }

/* ---------- Product tiles: shared across Home, Healthcare and AI ---------- */
.tile { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.tile::before { content: ''; position: absolute; inset: 0 auto auto 0; height: 4px; width: 0; background: var(--accent); transition: width 0.35s ease; z-index: 1; }
.tile:hover::before { width: 100%; }
.tile:hover { border-color: transparent; box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--navy) 45%, transparent); transform: translateY(-4px); }
.tile-status { align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem 0.65rem; margin-bottom: 0.75rem; }
.tile:hover .tile-status { border-color: var(--accent); }
.tile p { margin-bottom: 0; }
.tile .dom-more { margin-top: auto; padding-top: 1rem; }
.tile:hover .dom-more { transform: translateX(4px); }
@media (max-width: 640px) { .cap-list.two { grid-template-columns: 1fr; } }

/* ---------- Healthcare: light bento grid ---------- */
.bento-section { position: relative; isolation: isolate; overflow: hidden; }
.bento-section::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--primary) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary) 7%, transparent) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 75%); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.bento-card { grid-column: span 2; position: relative; display: flex; flex-direction: column; border-radius: 16px; padding: clamp(1.4rem, 2.6vw, 2rem); background: var(--paper); border: 1px solid var(--rule); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; overflow: hidden; }
.bento-card:nth-child(1) { grid-column: span 4; }
.bento-card:nth-child(6) { grid-column: span 6; }
.bento-card:nth-child(1), .bento-card:nth-child(6) { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), var(--paper) 60%); }
.bento-card::before { content: ''; position: absolute; inset: 0 auto auto 0; height: 4px; width: 0; background: var(--accent); transition: width 0.35s ease; }
.bento-card::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.bento-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--navy) 45%, transparent); }
.bento-card:hover::before { width: 100%; }
.bento-card:hover::after { opacity: 1; }
.bento-card .dom-icon { margin-bottom: 1.1rem; background: var(--navy); }
.bento-card h3 { color: var(--text); font-size: var(--fs-md); margin: 0 0 0.55rem; }
.bento-card:nth-child(1) h3, .bento-card:nth-child(6) h3 { font-size: var(--fs-lg); }
.bento-card p { color: var(--muted); margin: 0; }
.bento-card:nth-child(1) p, .bento-card:nth-child(6) p { max-width: 60ch; font-size: 1.05rem; }
.bento-proof { margin-top: auto; padding-top: 1.25rem; display: flex; align-items: center; gap: 0.6rem; line-height: 1.45; font-size: 0.92rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.bento-proof:hover .bp-text { text-decoration: underline; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento-card, .bento-card:nth-child(1), .bento-card:nth-child(6) { grid-column: span 1; } .bento-card:nth-child(1) { grid-column: span 2; } .bento-card:nth-child(6) { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento-card:nth-child(1), .bento-card:nth-child(6) { grid-column: span 1; } }

/* ---------- AI: illustrated foundation cards ---------- */
.found-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.found-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--rule); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.section.white .found-card { background: var(--paper); }
.found-art { position: relative; isolation: isolate; height: 170px; display: grid; place-items: center; background: var(--navy); overflow: hidden; }
.found-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, var(--primary-light) 16%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary-light) 16%, transparent) 1px, transparent 1px); background-size: 24px 24px; }
.found-art::after { content: ''; position: absolute; width: 180px; height: 180px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent); transition: transform 0.4s ease; }
.found-art .dom-icon { width: 92px; height: 92px; border-radius: 22px; background: var(--navy); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 0 10px color-mix(in srgb, var(--accent) 6%, transparent); }
.found-art .dom-icon svg { width: 64px; height: 64px; }
.found-num { position: absolute; top: 1rem; left: 1.1rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: transparent; -webkit-text-stroke: 1.2px var(--primary-light); }
.found-body { padding: clamp(1.3rem, 2.4vw, 1.7rem); }
.found-body h3 { font-size: var(--fs-md); margin: 0 0 0.5rem; }
.found-body p { color: var(--muted); margin: 0; }
.found-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--navy) 50%, transparent); }
.found-card:hover .found-art::after { transform: scale(1.35); }
@media (max-width: 900px) { .found-cards { grid-template-columns: 1fr; } .found-card { flex-direction: row; } .found-art { width: 150px; height: auto; min-height: 150px; flex: none; } .found-art .dom-icon { width: 72px; height: 72px; } .found-art .dom-icon svg { width: 50px; height: 50px; } }
@media (max-width: 520px) { .found-card { flex-direction: column; } .found-art { width: auto; height: 140px; } }

/* Reveal on scroll for the new grids */
@media (prefers-reduced-motion: no-preference) {
  .bento.is-ready .bento-card, .found-cards.is-ready .found-card { opacity: 0; transform: translateY(18px); }
  .bento.in-view .bento-card, .found-cards.in-view .found-card { animation: jr-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i) * 0.09s); }
}
@media (prefers-reduced-motion: reduce) { .bento-card, .found-card { transition: none; } .bento-card:hover, .found-card:hover { transform: none; } }

/* ---------- Company: global delivery teaser, and the full page ---------- */
.cap-list.four, .cap-list.four:has(> .item:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cap-list.four, .cap-list.four:has(> .item:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cap-list.four, .cap-list.four:has(> .item:nth-child(4):last-child) { grid-template-columns: 1fr; } }
.gdm-teaser { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2.5rem; padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.6rem, 4vw, 2.8rem); border-radius: 16px; background: var(--navy); color: var(--white); text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gdm-teaser::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, var(--primary-light) 14%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary-light) 14%, transparent) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.gdm-teaser::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); }
.gdm-teaser h3 { color: var(--white); font-size: var(--fs-lg); margin: 0.35rem 0 0.5rem; }
.gdm-teaser p { color: var(--on-dark-muted); margin: 0; max-width: 62ch; }
.gdm-kicker { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-on-dark); }
.gdm-cta { flex: none; font-weight: 600; color: var(--on-accent); background: var(--brand); border-radius: 999px; padding: 0.7rem 1.3rem; transition: transform 0.2s ease; }
.gdm-teaser:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -24px color-mix(in srgb, var(--navy) 60%, transparent); }
.gdm-teaser:hover .gdm-cta { transform: translateX(4px); }
@media (max-width: 760px) { .gdm-teaser { flex-direction: column; align-items: flex-start; } }
.gdm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.gdm-col { border: 1px solid var(--rule); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--paper); }
.gdm-col .gdm-kicker { color: var(--primary); }
.gdm-col h3 { font-size: var(--fs-lg); margin: 0.35rem 0 0.4rem; }
.gdm-col > p { color: var(--muted); }
.gdm-col.alt { background: var(--navy); border-color: var(--navy); }
.gdm-col.alt .gdm-kicker { color: var(--accent-on-dark); }
.gdm-col.alt h3 { color: var(--white); }
.gdm-col.alt > p, .gdm-col.alt li { color: var(--on-dark-muted); }
@media (max-width: 760px) { .gdm-split { grid-template-columns: 1fr; } }
.page-hero .work-art { margin-top: 0; justify-self: end; width: 100%; }

/* ---------- Home: agency tiles with per-agency animated icons ---------- */
.ag-section { --ag-bg: var(--navy-raise); }
.ag-grid { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ag-tile { margin: 0; }
.ag-tile a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.25rem 1.25rem 1.1rem; border-radius: 14px; background: var(--ag-bg); border: 1px solid color-mix(in srgb, var(--on-dark-muted) 18%, transparent); color: var(--on-dark); text-decoration: none; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.ag-tile a::before { content: ''; position: absolute; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--accent); transition: width 0.35s ease; }
.ag-tile a::after { content: ''; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.ag-tile a:hover, .ag-tile a:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6); background: var(--navy-raise-2); }
.ag-tile a:hover::before, .ag-tile a:focus-visible::before { width: 100%; }
.ag-tile a:hover::after, .ag-tile a:focus-visible::after { opacity: 1; }
.ag-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); margin-bottom: 1rem; }
.ag-svg { width: 44px; height: 44px; overflow: visible; fill: none; stroke: var(--primary-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ag-svg .s, .ag-svg .beam { stroke: var(--blue-soft-2); }
.ag-short { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; line-height: 1.05; color: var(--white); }
.ag-full { font-size: 0.8rem; color: var(--on-dark-muted); margin-top: 0.3rem; line-height: 1.35; }
.ag-work { font-size: 0.95rem; color: var(--on-dark); margin-top: 0.75rem; line-height: 1.4; }
.ag-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 1rem; font-size: 0.78rem; color: var(--on-dark-muted); }
.ag-go { color: var(--accent-on-dark); font-weight: 600; opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s ease; white-space: nowrap; }
.ag-tile a:hover .ag-go, .ag-tile a:focus-visible .ag-go { opacity: 1; transform: none; }
.ag-all a { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 3%, transparent)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ag-all .ag-go { opacity: 1; transform: none; }
.ag-clients { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--navy-2); }
.ag-clients > span { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.ag-clients ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.ag-clients li { margin: 0; font-size: 0.85rem; color: var(--on-dark); border: 1px solid color-mix(in srgb, var(--on-dark-muted) 30%, transparent); border-radius: 999px; padding: 0.3rem 0.8rem; }
@media (max-width: 1100px) { .ag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } .ag-tile a { padding: 1rem; } .ag-short { font-size: 1.45rem; } .ag-go { display: none; } .ag-icon { width: 50px; height: 50px; } .ag-svg { width: 38px; height: 38px; } }
@media (max-width: 420px) { .ag-full { display: none; } .ag-work { font-size: 0.86rem; margin-top: 0.4rem; } }

/* Static details */
.ag-svg .rung { stroke: var(--accent); transform-box: fill-box; transform-origin: center; }
.ag-dha .cross { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: var(--accent); stroke-width: 1.4; transition: opacity 0.3s; }
.ag-dha .ecg { stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 64; stroke-dashoffset: 64; }
.ag-fda .flow { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: none; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.ag-fda .tl { stroke: var(--accent); stroke-width: 2.4; }
.ag-fda .tl.t { opacity: 0.25; }
.ag-fda .lbl { fill: var(--on-dark-muted); stroke: none; font: 600 6px var(--sans); }
.ag-uscis .imprint { stroke: var(--accent); stroke-width: 1.6; }
.ag-uscis .imprint circle { stroke-dasharray: 3 2; }
.ag-uscis .stamp { stroke: var(--blue-soft-2); fill: var(--navy); }
.ag-obim .scan { stroke: var(--accent); stroke-width: 2; opacity: 0; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 90%, transparent)); }
.ag-tsa .lamp { fill: var(--primary-light); stroke: none; }
.ag-tsa .bag { stroke: var(--accent); fill: var(--navy); }
.ag-dhs .sweep { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: none; transform-origin: 24px 24px; opacity: 0; }
.ag-dhs .blip { fill: var(--accent); stroke: none; transform-box: fill-box; transform-origin: center; }
.ag-usda .grain { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 12%, transparent); transform-box: fill-box; transform-origin: center bottom; }
.ag-noaa .sun .s { stroke: var(--accent); }
.ag-noaa .sun .s2 { stroke: var(--accent); }
.ag-noaa .wave { stroke: var(--blue-soft-2); }
.ag-tile .ag-noaa rect[fill] { fill: var(--navy); }
.ag-fdic .cloud { stroke: var(--accent); fill: var(--navy); }
.ag-fdic .col { stroke: var(--blue-soft-2); transform-box: fill-box; transform-origin: center bottom; }
.ag-doj .beam { transform-box: view-box; transform-origin: 24px 13px; }
.ag-doj .pan { stroke: var(--accent); }
.ag-all .card { fill: var(--navy); stroke: var(--blue-soft-2); }
.ag-all .c3 .card { stroke: var(--accent); }
.ag-all .c1, .ag-all .c2, .ag-all .c3 { transform-box: view-box; transform-origin: 24px 40px; }

/* Hover / focus / touch-play animations */
@media (prefers-reduced-motion: no-preference) {
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-va .rung { animation: ag-twist 0.9s ease var(--d) both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-va .s { animation: ag-glow 0.9s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-dha .ecg { animation: ag-draw 1.1s ease-out both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-dha .cross { opacity: 0.35; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-fda .flow { animation: ag-flow 1.2s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-fda .tl.c { animation: ag-pop 0.4s ease 0.45s both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-fda .tl.t { animation: ag-tline 0.5s ease 0.95s both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-uscis .stamp { animation: ag-stamp 1s cubic-bezier(0.5, 0, 0.3, 1) both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-uscis .imprint { animation: ag-imprint 1s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-obim .scan { animation: ag-scan 1.3s ease-in-out both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-obim .ridge { animation: ag-ridge 1.3s ease calc(0.25s + var(--d)) both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-tsa .bag { animation: ag-bag 1.4s ease-in-out both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-tsa .arch { animation: ag-archflash 1.4s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-tsa .lamp { animation: ag-lamp 1.4s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-dhs .sweep { animation: ag-sweep 1.4s linear both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-dhs .blip { animation: ag-blip 0.6s ease var(--d) both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-usda .grain { animation: ag-grow 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) var(--d) both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-noaa .sun { animation: ag-rise 1.2s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-noaa .w1 { animation: ag-wave 1.6s linear infinite; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-noaa .w2 { animation: ag-wave 1.1s linear infinite reverse; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-fdic .cloud { animation: ag-cloud 0.9s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-fdic .col { animation: ag-col 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) calc(0.3s + var(--d)) both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-doj .beam { animation: ag-tip 1.4s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-doj .pl { animation: ag-panl 1.4s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-doj .pr { animation: ag-panr 1.4s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-all .c1 { animation: ag-fan1 0.5s ease both; }
  :is(.ag-tile a:hover, .ag-tile a:focus-visible, .ag-tile.play a) .ag-all .c3 { animation: ag-fan3 0.5s ease both; }
  .ag-grid.is-ready .ag-tile { opacity: 0; transform: translateY(16px); }
  .ag-grid.in-view .ag-tile { animation: jr-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i) * 0.06s); }
}
@keyframes ag-twist { 0% { transform: scaleX(1); } 50% { transform: scaleX(-0.15); stroke: var(--white); } 100% { transform: scaleX(1); } }
@keyframes ag-glow { 50% { stroke: var(--accent); } }
@keyframes ag-draw { from { stroke-dashoffset: 64; } to { stroke-dashoffset: 0; } }
@keyframes ag-flow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ag-pop { 0% { transform: scaleY(1); } 50% { stroke: var(--white); } 100% { transform: scaleY(1); } }
@keyframes ag-tline { from { opacity: 0.25; } to { opacity: 1; } }
@keyframes ag-stamp { 0% { transform: translateY(0); } 40% { transform: translateY(15px); } 55% { transform: translateY(15px); } 100% { transform: translateY(0); } }
@keyframes ag-imprint { 0%, 45% { opacity: 0; } 60% { opacity: 1; stroke: var(--white); } 100% { opacity: 1; } }
@keyframes ag-scan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(37px); } }
@keyframes ag-ridge { 0% { stroke: var(--primary-light); } 40%, 100% { stroke: var(--accent); } }
@keyframes ag-bag { 0% { transform: translateX(0); } 45%, 55% { transform: translateX(15.5px); } 100% { transform: translateX(31px); } }
@keyframes ag-archflash { 0%, 35% { stroke: var(--blue-soft-2); } 50% { stroke: var(--accent); } 100% { stroke: var(--blue-soft-2); } }
@keyframes ag-lamp { 0%, 50% { fill: var(--primary-light); } 60%, 100% { fill: var(--accent); } }
@keyframes ag-sweep { 0% { opacity: 1; transform: rotate(0deg); } 90% { opacity: 1; } 100% { opacity: 0; transform: rotate(360deg); } }
@keyframes ag-blip { 0% { transform: scale(1); } 40% { transform: scale(2.2); fill: var(--white); } 100% { transform: scale(1); } }
@keyframes ag-grow { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes ag-rise { from { transform: translateY(10px); } to { transform: translateY(0); } }
@keyframes ag-wave { from { transform: translateX(0); } to { transform: translateX(16px); } }
@keyframes ag-cloud { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes ag-col { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes ag-tip { 0% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 55% { transform: rotate(8deg); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes ag-panl { 0% { transform: translateY(0); } 25% { transform: translateY(3px); } 55% { transform: translateY(-2px); } 80% { transform: translateY(0.8px); } 100% { transform: translateY(0); } }
@keyframes ag-panr { 0% { transform: translateY(0); } 25% { transform: translateY(-3px); } 55% { transform: translateY(2px); } 80% { transform: translateY(-0.8px); } 100% { transform: translateY(0); } }
@keyframes ag-fan1 { to { transform: rotate(-12deg); } }
@keyframes ag-fan3 { to { transform: rotate(10deg) translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .ag-tile a, .ag-tile a::before, .ag-go { transition: none; } .ag-tile a:hover { transform: none; } }

/* ---------- Proof icon: a record scroll that unrolls on hover ---------- */
.proof-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--red); display: inline-grid; place-items: center; transition: transform 0.3s ease; }
.proof-ic svg { width: 19px; height: 19px; fill: none; stroke: var(--on-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.proof-ic .ln { transform-box: fill-box; transform-origin: left center; }
.proof-ic .l3 { opacity: 0; }
.dom-card .proof { display: flex; align-items: flex-start; gap: 0.65rem; border-left: 0; padding-left: 0; }
.dom-card .proof .proof-ic { width: 26px; height: 26px; margin-top: -0.1rem; }
.dom-card .proof .proof-ic svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  :is(.bento-card:hover, .bento-proof:focus-visible, .dom-card:hover) .proof-ic { transform: rotate(-8deg); }
  :is(.bento-card:hover, .bento-proof:focus-visible, .dom-card:hover) .proof-ic .curl { animation: pf-unroll 0.6s ease both; }
  :is(.bento-card:hover, .bento-proof:focus-visible, .dom-card:hover) .proof-ic .ln { animation: pf-write 0.45s ease both; }
  :is(.bento-card:hover, .bento-proof:focus-visible, .dom-card:hover) .proof-ic .l2 { animation-delay: 0.12s; }
  :is(.bento-card:hover, .bento-proof:focus-visible, .dom-card:hover) .proof-ic .l3 { animation: pf-write3 0.45s ease 0.3s both; }
}
@keyframes pf-unroll { 0% { transform: translateY(0); } 60% { transform: translateY(2.5px); } 100% { transform: translateY(1.5px); } }
@keyframes pf-write { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pf-write3 { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

/* ---------- Document links: company profile download and FHIR brief request ---------- */
.doc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.doc-links.one { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.doc-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; color: var(--text); text-decoration: none; position: relative; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.doc-card::before { content: ''; position: absolute; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--accent); transition: width 0.35s ease; }
.doc-card:hover, .doc-card:focus-visible { transform: translateY(-3px); border-color: transparent; box-shadow: 0 20px 40px -26px color-mix(in srgb, var(--navy) 45%, transparent); }
.doc-card:hover::before, .doc-card:focus-visible::before { width: 100%; }
.doc-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.doc-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.doc-body { display: flex; flex-direction: column; min-width: 0; }
.doc-title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.doc-meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.doc-go { margin-left: auto; flex: none; font-weight: 600; font-size: 0.9rem; color: var(--primary); white-space: nowrap; }
.section.white .doc-card { background: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .doc-card:hover .doc-ic .arr { animation: doc-nudge 0.7s ease; }
}
@keyframes doc-nudge { 40% { transform: translateY(2px); } 70% { transform: translateY(-1px); } }
@media (max-width: 760px) { .doc-links { grid-template-columns: 1fr; } .doc-go { display: none; } }
@media (prefers-reduced-motion: reduce) { .doc-card { transition: none; } .doc-card:hover { transform: none; } }

/* ---------- Past performance: request the full write-up ---------- */
.pp-request { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); color: var(--primary); font-weight: 600; font-size: 0.88rem; text-decoration: none; white-space: nowrap; transition: border-color 0.2s ease, background-color 0.2s ease; }
.pp-request:hover, .pp-request:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 25%, transparent); text-decoration: none; }
.on-ink .pp-request { background: transparent; border-color: color-mix(in srgb, var(--on-dark-muted) 35%, transparent); color: var(--accent-on-dark); }
.facts td.no-print { text-align: right; vertical-align: top; }
.engagement .award { margin-top: 0.6rem; }

/* ---------- Document library: free downloads beside documents sent on request ---------- */
.doc-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 2rem; }
.doc-col { display: flex; flex-direction: column; gap: 0.85rem; }
.doc-col-head { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.15rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.doc-col-head .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.doc-col-head .dot.free { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.doc-col-head .dot.req { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.doc-library .doc-card { flex: 1; }
@media (max-width: 860px) { .doc-library { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ==========================================================================
   Pop layer: depth, light and motion on top of the same palette.
   ========================================================================== */

/* Headings carry the brand: deep blue on light surfaces, white on dark. */
h1, h2, h3 { color: var(--navy); }
.on-ink h1, .on-ink h2, .on-ink h3, .jr-step.ours h3, .pf-core h3, .dart h3 { color: var(--white); }

/* Dark bands: lit gradient instead of a flat fill. The light source sits top-right,
   behind the artwork, so the text column stays on the darkest blue. */
.on-ink {
  background:
    radial-gradient(55% 75% at 92% -10%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%),
    radial-gradient(40% 60% at -5% 110%, color-mix(in srgb, var(--navy-3) 85%, transparent), transparent 70%),
    linear-gradient(165deg, var(--navy-3) 0%, var(--navy) 60%, var(--navy-2) 100%);
}
.hero.on-ink, .page-hero.on-ink { box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--white) 8%, transparent); }
.h1-stack .hl {
  background: linear-gradient(90deg, var(--accent-on-dark), var(--white));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header: frosted, so content slides under it. */
.site-header { background: color-mix(in srgb, var(--white) 88%, transparent); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }

/* Buttons: lift and glow. */
.btn { transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease; }
.btn-primary, .btn-dark { box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--navy) 75%, transparent); }
.btn-primary:hover, .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--navy) 80%, transparent); }
.on-ink .btn-primary { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5); }
.on-ink .btn-ghost:hover { background: color-mix(in srgb, var(--white) 12%, transparent); }
.gdm-cta { background: var(--white); color: var(--navy); }

/* Proof numbers: big gradient figures with a brand-blue lead-in on the rule. */
.proof-row > div { position: relative; border-top: 2px solid var(--rule); }
.proof-row > div::before { content: ''; position: absolute; top: -2px; left: 0; width: 3.5rem; height: 2px; background: var(--brand); }
.proof-row .num {
  font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--navy) 20%, var(--brand) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Cards: resting elevation, deeper on hover. */
:is(.dom-card, .tile, .bento-card, .doc-card, .found-card, .mission-card, .gdm-col, .cap-list .item, .jr-card) {
  box-shadow: 0 1px 2px color-mix(in srgb, var(--slate) 6%, transparent), 0 12px 32px -22px color-mix(in srgb, var(--navy) 40%, transparent);
}
:is(.dom-card, .tile, .doc-card, .found-card, .mission-card, .cap-list .item):hover {
  box-shadow: 0 2px 4px color-mix(in srgb, var(--slate) 6%, transparent), 0 26px 50px -24px color-mix(in srgb, var(--navy) 55%, transparent);
}
.dom-icon, .ag-icon, .found-art .dom-icon { background: linear-gradient(145deg, var(--navy-2), var(--navy-3)); }

/* Warm band: the sand colour, softened, for one section per page that should stand apart. */
.section.sand { background: color-mix(in srgb, var(--sand) 55%, var(--paper)); }
.section.sand .tile, .section.sand .doc-card { background: var(--white); }
.section.sand .kicker { color: var(--navy); }

/* Footer: a brand stripe to close the page. */
.site-footer { border-top: 4px solid var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover, .btn-dark:hover { transform: none; }
}

/* Blueprint pattern from the original site, carried onto every dark band and made a touch stronger
   so it reads on the darker navy. Hero grids keep their own mask; the other bands fade from the top right. */
.hero::before, .page-hero::before {
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary-light) 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary-light) 16%, transparent) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 75% 25%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse 95% 85% at 75% 25%, #000 35%, transparent 80%);
}
.cta-band.on-ink, .ag-section.on-ink { position: relative; isolation: isolate; overflow: hidden; }
.cta-band.on-ink::before, .ag-section.on-ink::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary-light) 13%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary-light) 13%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 85% 10%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 90% at 85% 10%, #000 20%, transparent 75%);
}
