/* ============================================================
   2iSolutions US design system — s2ius.css
   The ONLY stylesheet loaded by layout-new.blade.php.
   Palette from the approved 2iSolutions master deck.
   Log any edits in the change register.
   ============================================================ */

:root {
  --navy: #16345C;
  --navy-deep: #0F2440;
  --orange: #E87817;
  --orange-dark: #C4640F;
  --cloud: #F3F6FA;
  --slate: #44546A;
  --mist: #DCE4EE;
  --white: #FFFFFF;
  --max: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 52, 92, 0.06), 0 4px 16px rgba(22, 52, 92, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--cloud);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { margin: 0 0 0.6em; color: var(--navy); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
.lead { font-size: 1.15rem; line-height: 1.6; max-width: 42em; }
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.9rem;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.band { padding: 5.5rem 0; }
.band-tight { padding: 3.5rem 0; }
.band-navy { background: var(--navy); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy p { color: var(--mist); }
.band-white { background: var(--white); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
/* Five cards: three on the first row, two centred on the second. v50 */
.grid-5 { grid-template-columns: repeat(6, 1fr); }
.grid-5 > * { grid-column: span 2; }
.grid-5 > *:nth-child(4) { grid-column: 2 / span 2; }
.grid-5 > *:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 1040px) and (min-width: 901px) {
  /* Two per row, last one full width, so five titles stay readable. */
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 > * { grid-column: span 2; }
  .grid-5 > *:nth-child(4) { grid-column: span 2; }
  .grid-5 > *:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 900px) {
  .band { padding: 3.5rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: 1fr; }
  .grid-5 > *,
  .grid-5 > *:nth-child(4),
  .grid-5 > *:nth-child(5) { grid-column: auto; }
}
@media (max-width: 560px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--mist); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); }
.band-navy .btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.band-navy .btn-ghost:hover { border-color: var(--white); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; transition: border-color 0.15s ease; }
a.card:hover { border-color: var(--navy); }
.card .card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--cloud);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.9rem;
}

/* Offer cards: the one deliberately different card style.
   Flat, type-led, solid orange top rule. Square corners are intentional. */
.card-offer {
  background: var(--white);
  border: 1px solid var(--mist);
  border-top: 3px solid var(--orange);
  border-radius: 0;
  padding: 1.75rem;
}
.card-offer h3 { font-size: 1.15rem; }
.card-offer p { font-size: 0.95rem; margin: 0; }
/* Proof metric and fixed CTA on the offering cards. v50 */
.card-offer { display: flex; flex-direction: column; }
.card-offer .offer-metric {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mist);
  color: var(--orange-btn);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.card-offer .offer-cta { margin-top: auto; padding-top: 0.85rem; font-size: 0.9rem; font-weight: 500; }
.card-offer .offer-cta a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 2px; }
.card-offer .offer-cta a:hover { color: var(--orange-btn); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-bar { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
}
.nav-menu > li > a:hover { background: var(--cloud); }
.nav-cta { margin-left: 0.75rem; }

/* Dropdowns */
.has-sub > a::after { content: ""; display: inline-block; margin-left: 0.4rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--slate);
}
.sub-menu a:hover { background: var(--cloud); color: var(--navy); }

/* Mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--mist);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: none; padding-left: 1rem; }
  .has-sub.open > .sub-menu { display: block; }
  .nav-cta { margin: 0.75rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--white); padding: 5.5rem 0 4.5rem; }
.hero h1 { max-width: 15em; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Proof band (stats) ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem 1.5rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-number {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.85rem; color: var(--mist); margin-top: 0.45rem; line-height: 1.35; }

/* ---------- Section headers ---------- */
.section-head { max-width: 46em; margin-bottom: 2.5rem; }
.section-head p { margin-bottom: 0; }
.section-foot { margin-top: 2.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--mist); padding: 4rem 0 0; font-size: 0.92rem; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-logo img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 0.9rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ============================================================
   v2 — top bar, logo plate, motion. 1 Sep 2026.
   ============================================================ */

/* ---------- Logo ---------- */
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; }

/* ---------- Card hover lift ---------- */
a.card { transition: border-color 0.15s ease, transform 0.18s ease, box-shadow 0.18s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22,52,92,0.07), 0 10px 28px rgba(22,52,92,0.10); }

/* ---------- Hero entrance (once, on load) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: rise 0.55s ease-out both; }
.hero .lead { animation: rise 0.55s ease-out 0.12s both; }
.hero .hero-actions { animation: rise 0.55s ease-out 0.24s both; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lead, .hero .hero-actions { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Card images (bands 5 and 7). v6.1, 1 Sep 2026 ---------- */
.card-media { padding: 0; overflow: hidden; }
.card-media .card-img { width: 100%; aspect-ratio: 670 / 418; object-fit: cover; border-radius: 0; }
.card-media .card-tag { margin: 1.25rem 1.5rem 0; }
.card-media h3, .card-media p { margin-left: 1.5rem; margin-right: 1.5rem; }
.card-media > *:last-child { margin-bottom: 1.5rem; }
.card-media .card-tag + h3 { margin-top: 0.6rem; }
.card-media h3:first-child { margin-top: 1.5rem; }

/* ---------- Expanding practice areas (band 4). v8, 1 Sep 2026 ---------- */
.xpand { display: flex; gap: 1rem; align-items: stretch; min-height: 340px; }
.xpand-item { flex: 1; display: flex; background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; transition: flex 0.35s ease; position: relative; }
.xpand-item.active { flex: 4.5; }
.xpand-head { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 64px; flex: 1; }
.xpand-item.active .xpand-head { display: none; }
.xpand-title { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; color: var(--navy); font-size: 1.05rem; letter-spacing: 0.02em; white-space: nowrap; }
.xpand-body { display: none; flex-direction: column; gap: 0.5rem; padding: 1.5rem; width: 100%; }
.xpand-item.active .xpand-body { display: flex; animation: rise 0.4s ease-out both; }
.xpand-body img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
.xpand-body p { flex: 1; }
.xpand-body .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .xpand { flex-direction: column; min-height: 0; }
  .xpand-item.active { flex: 1; }
  .xpand-head { padding: 1rem; }
  .xpand-title { writing-mode: horizontal-tb; transform: none; }
}

/* ---------- Accordion hover expansion. v8.1 ---------- */
@media (hover: hover) and (min-width: 901px) {
  .xpand-item:hover { flex: 4.5; }
  .xpand-item:hover .xpand-head { display: none; }
  .xpand-item:hover .xpand-body { display: flex; animation: rise 0.4s ease-out both; }
  .xpand:hover .xpand-item.active:not(:hover) { flex: 1; }
  .xpand-item:hover .xpand-title { opacity: 0; }
  .xpand:hover .xpand-item.active:not(:hover) .xpand-head { display: flex; }
  .xpand:hover .xpand-item.active:not(:hover) .xpand-body { display: none; }
}

/* ---------- Stagger + image zoom. v12, 2 Sep 2026 ---------- */
.grid > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.grid > [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.grid > [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
.grid > [data-reveal]:nth-child(5) { transition-delay: 0.4s; }
.card-media { position: relative; }
.card-media .card-img { transition: transform 0.5s ease; }
a.card-media:hover .card-img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .grid > [data-reveal] { transition-delay: 0s; }
  a.card-media:hover .card-img { transform: none; }
}

/* ---------- Background depth. v13, 2 Sep 2026 ---------- */
.hero {
  background:
    radial-gradient(600px 320px at 85% 15%, rgba(232, 120, 23, 0.07), transparent 70%),
    radial-gradient(700px 400px at 8% 90%, rgba(22, 52, 92, 0.05), transparent 70%),
    var(--white);
}
.band:not(.band-navy):not(.band-white) {
  background-image: radial-gradient(rgba(22, 52, 92, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.band-navy {
  background-image: radial-gradient(700px 380px at 90% 10%, rgba(232, 120, 23, 0.10), transparent 70%);
}

/* ---------- Section head craft. v14, 2 Sep 2026 ---------- */
.section-head { margin-bottom: 3rem; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 0; }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  margin-top: 1rem;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease 0.2s;
}
.section-head.in h2::after { transform: scaleX(1); }
.section-head p { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .section-head h2::after { transform: scaleX(1); transition: none; } }

/* Card titles breathe below their images */
.card-media .card-img + h3, .card-media .card-img + .card-tag { margin-top: 1.35rem; }
.card-media h3 { font-size: 1.12rem; line-height: 1.35; }

/* ---------- Interactivity pack. v15, 2 Sep 2026 ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--orange); z-index: 100; transition: width 0.1s linear; }

.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track img { height: 44px; width: auto; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

.hero h1.split { animation: none; }
.hero h1.split .w { display: inline-block; opacity: 0; transform: translateY(0.5em); animation: rise 0.5s ease-out both; }

/* ---------- Filter chips (case study listing). v16, 2 Sep 2026 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter-chip {
  all: unset; cursor: pointer; display: inline-block;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--mist); background: var(--white);
  font-size: 0.9rem; font-weight: 500; color: var(--navy);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-chip:hover { border-color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Detail page: fact strip + longform prose. v17, 2 Sep 2026 ---------- */
.fact-strip { display: flex; gap: 3rem; flex-wrap: wrap; }
.fact-strip .fact-label { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); margin-bottom: 0.2rem; }
.fact-strip .fact-value { color: var(--white); font-weight: 600; }

.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 0.8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* Service intro band. v51, 29 Sep 2026.
   The body on the AI pages runs 700+ words, so a centred image column left a
   lot of air. The image is pinned and tracks the text instead. */
.intro-split { gap: 3.5rem; align-items: start; }
.intro-split .prose { max-width: 38rem; }
.intro-split .prose h2 { margin-top: 3rem; }
.intro-split .prose h2:first-child { margin-top: 0; }
.intro-media img { border-radius: var(--radius); border: 1px solid var(--mist); }
@media (min-width: 901px) {
  .intro-media { position: sticky; top: 6.5rem; align-self: start; }
}
.prose strong { color: var(--navy); }
/* On a navy band that navy is invisible. v51, 29 Sep 2026 — the results band
   on the service pages puts bold metrics inside a .prose block on .band-navy. */
.band-navy .prose strong,
.band-navy strong,
.band-navy b { color: var(--white); }
.band-navy .prose,
.band-navy li { color: var(--mist); }
.band-navy .prose a { color: var(--white); text-decoration: underline; }

/* ---------- Media hero. v18, 2 Sep 2026 ---------- */
.hero-media { position: relative; min-height: 64vh; display: flex; align-items: center; overflow: hidden; padding: 6rem 0; }
.hero-backdrop { position: absolute; inset: 0; }
.hero-backdrop video, .hero-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.hero-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 36, 64, 0.88) 30%, rgba(15, 36, 64, 0.45) 70%, rgba(15, 36, 64, 0.25)); }
.hero-media .wrap { position: relative; z-index: 1; }
.hero-media h1 { color: var(--white); }
.hero-media .lead { color: var(--mist); }

/* ---------- Richness pass. v19, 8 Sep 2026 ---------- */
/* Ghost numerals on offerings */
.grid:has(> .card-offer) { counter-reset: offer; }
.card-offer { position: relative; overflow: hidden; counter-increment: offer; }
.card-offer::before {
  content: "0" counter(offer);
  position: absolute; right: 0.5rem; top: -1.2rem;
  font-size: 6.5rem; font-weight: 700; line-height: 1;
  color: var(--navy); opacity: 0.06; pointer-events: none;
  letter-spacing: -0.04em;
}
.card-offer .offer-img { width: calc(100% + 3.5rem); margin: -1.75rem -1.75rem 1.25rem; max-width: none; height: 150px; object-fit: cover; }

/* Image wipe reveal */
[data-reveal] .card-img { clip-path: inset(0 100% 0 0); transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.1s, transform 0.5s ease; }
[data-reveal].in .card-img { clip-path: inset(0 0 0 0); }

/* Tilt + magnetic (JS-driven transforms) */
@media (hover: hover) and (min-width: 901px) {
  .card-media, .card-offer { transform-style: preserve-3d; will-change: transform; }
  a.card-media:hover { transform: none; } /* tilt JS owns the transform on hover */
  .btn-orange { will-change: transform; transition: background 0.15s ease, transform 0.2s ease; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] .card-img { clip-path: none; transition: none; }
  .card-offer::before { opacity: 0.06; }
}

/* ---------- Panel images + ambient orbs. v20, 8 Sep 2026 ---------- */
.xpand-item.has-img { background-image: linear-gradient(rgba(15,36,64,0.55), rgba(15,36,64,0.72)), var(--panel-img); background-size: cover; background-position: center; border-color: transparent; }
.xpand-item.has-img .xpand-title { color: var(--white); }
.xpand-item.has-img .xpand-body { background: var(--white); border-radius: var(--radius); margin: 0.6rem; }

body { background: var(--cloud); }
main { position: relative; z-index: 1; }
.band:not(.band-navy):not(.band-white) { background-color: transparent; }
.bg-orb { position: fixed; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; will-change: transform; }
.orb-a { width: 560px; height: 560px; background: rgba(232, 120, 23, 0.13); top: -140px; right: -140px; }
.orb-b { width: 680px; height: 680px; background: rgba(22, 52, 92, 0.10); bottom: -220px; left: -200px; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) { .bg-orb { display: none; } }

/* ---------- Scroll colour morph + richer orbs. v21, 8 Sep 2026 ---------- */
body { transition: background-color 0.9s ease; }
.orb-a { background: rgba(232, 120, 23, 0.18); }
.orb-b { background: rgba(22, 52, 92, 0.14); }

/* ---------- Parallax support. v23, 8 Sep 2026 ---------- */
.hero-backdrop { will-change: transform; }
.hero-backdrop video, .hero-backdrop img { height: 135%; }

/* ---------- Accordion: fixed height, no layout shift. v25, 8 Sep 2026 ---------- */
@media (min-width: 901px) {
  .xpand { height: 420px; min-height: 0; }
  .xpand-item { height: 100%; }
  .xpand-body { height: 100%; overflow: auto; box-sizing: border-box; }
  .xpand-body img { flex: none; }
}
.xpand-head:focus { outline: none; }
.xpand-head:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }

/* ---------- Blog + Word-paste neutraliser. v26, 8 Sep 2026 ---------- */
.post-meta { font-size: 0.85rem; color: var(--slate); opacity: 0.8; margin: 0.4rem 0 0; }
.card-media .post-meta { margin: 0.5rem 1.5rem 1.5rem; }
.prose [style] { font-size: inherit !important; font-family: inherit !important; line-height: inherit !important; color: inherit !important; background: transparent !important; }
.prose .MsoNormal, .prose p[class] { margin: 0 0 1.1rem; }
.prose span { font: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--mist); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--cloud); color: var(--navy); }
.prose blockquote { border-left: 3px solid var(--orange); margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; color: var(--navy); }

/* ---------- Card baseline alignment. v27, 8 Sep 2026 ---------- */
.card-media { display: flex; flex-direction: column; }
.card-media > p:not(.post-meta) { flex: 1; }
.card-media .post-meta { margin-top: auto; padding-top: 0.75rem; }

/* ---------- Services listing: feature rows + index. v28, 8 Sep 2026 ---------- */
.feature-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature { display: grid; grid-template-columns: 5fr 6fr; gap: 0; background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; color: inherit; transition: border-color 0.15s ease, box-shadow 0.2s ease; }
.feature:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.feature-flip { grid-template-columns: 6fr 5fr; }
.feature-flip .feature-media { order: 2; }
.feature-media { background: var(--navy); min-height: 280px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 2.25rem; }
.feature-body h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.feature-body h2::after { display: none; }
.feature-subs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.feature-subs li { font-size: 0.85rem; background: var(--cloud); color: var(--navy); border-radius: 999px; padding: 0.3rem 0.8rem; }
@media (max-width: 900px) { .feature, .feature-flip { grid-template-columns: 1fr; } .feature-flip .feature-media { order: 0; } .feature-media { min-height: 200px; } }

.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem 1.5rem; }
@media (max-width: 900px) { .index-grid { grid-template-columns: 1fr; } }
.index-grid a { display: block; padding: 0.9rem 1rem; border-radius: var(--radius-sm); border: 1px solid transparent; }
.index-grid a:hover { border-color: var(--mist); background: var(--cloud); }
.index-grid strong { display: block; color: var(--navy); }
.index-grid span { display: block; font-size: 0.85rem; color: var(--slate); margin-top: 0.15rem; }

/* ---------- Testimonial quotes. v29, 8 Sep 2026 ---------- */
.quote { margin: 0; padding: 1.75rem; background: var(--cloud); border-left: 3px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { font-size: 1.05rem; color: var(--navy); margin-bottom: 1.25rem; }
.quote footer { display: flex; align-items: center; gap: 0.9rem; font-size: 0.9rem; }
.quote footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote strong { color: var(--navy); }

/* ---------- Native accordion (industries). v30, 8 Sep 2026 ---------- */
.acc { display: flex; flex-direction: column; gap: 0.75rem; }
.acc-item { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 0 1.5rem; }
.acc-item summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; }
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-item[open] { border-color: var(--navy); }
.acc-item .prose { padding-bottom: 1.25rem; }

/* ---------- Team cards. v31, 8 Sep 2026 ---------- */
.team-card .card-img { aspect-ratio: 1 / 1; }
.team-card .post-meta { margin-top: 0; }

/* ---------- Contact page. v32, 8 Sep 2026 ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { padding: 2.25rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--slate); padding: 0.75rem 0.9rem; border: 1px solid var(--mist); border-radius: var(--radius-sm); background: var(--white); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 52, 92, 0.12); }
.field .is-invalid { border-color: #C0392B; }
.field-error { color: #C0392B; font-size: 0.85rem; margin: 0.35rem 0 0; }
.form-success { background: #E6F4EA; color: #1E6B3A; border-radius: var(--radius-sm); padding: 0.9rem 1rem; }
.office-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.office-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.office-list img { width: 36px; height: 24px; object-fit: cover; border-radius: 3px; margin-top: 0.2rem; }
.office-list strong { display: block; color: var(--navy); }
.office-list span { display: block; font-size: 0.92rem; }

/* ---------- Office pin. v33 ---------- */
.office-pin { width: 22px; height: 22px; flex: none; fill: var(--orange); margin-top: 0.15rem; }
.office-list img { display: none; }


/* ---------- Mega menu, authoritative. v36, 8 Sep 2026 ---------- */
.site-header { overflow: visible; }
.nav-menu > li.has-mega { position: static; }
.mega-panel {
  position: absolute; top: 100%; left: 0; right: 0; width: 100%;
  box-sizing: border-box; z-index: 60;
  background: #fff; border-top: 3px solid var(--orange);
  box-shadow: 0 20px 44px rgba(22, 52, 92, 0.16);
  padding: 2rem 0 2.25rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.has-mega:hover > .mega-panel, .has-mega:focus-within > .mega-panel, .has-mega.open > .mega-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-panel > .wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.mega-head { display: flex; align-items: baseline; gap: 0.85rem; flex-wrap: wrap; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--mist); }
.mega-head strong { color: var(--navy); font-size: 1.1rem; }
.mega-head span { color: var(--slate); font-size: 0.9rem; }
/* Was a fixed 4-column grid, which left a dead slot once the cybersecurity
   column was removed. Flex with `flex: 1 1 0` gives equal columns filling the
   panel for any number of them, which grid auto-fit does not do reliably.
   v52, 29 Sep 2026 */
.mega-cols { display: flex; gap: 2.5rem; align-items: stretch; }
.mega-cols > .mega-col { flex: 1 1 0; min-width: 0; }
.mega-col { min-width: 0; }
.mega-col-title { display: block; font-weight: 600; color: var(--navy); font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; padding-bottom: 0.7rem; margin-bottom: 0.6rem; border-bottom: 2px solid var(--orange); }
.mega-item { display: block; padding: 0.6rem 0.7rem; margin: 0 -0.7rem; border-radius: var(--radius-sm); color: var(--navy); transition: background 0.15s ease, transform 0.15s ease; }
.mega-item span { display: block; font-weight: 600; font-size: 0.94rem; line-height: 1.3; }
.mega-item small { display: block; color: var(--slate); font-size: 0.78rem; line-height: 1.45; margin-top: 0.2rem; }
.mega-item:hover { background: var(--cloud); transform: translateX(3px); }
.mega-shared { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--mist); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mega-shared .mega-item { flex: 1 1 260px; margin: 0; background: var(--cloud); border: 1px solid var(--mist); }
.mega-shared .mega-item:hover { border-color: var(--navy); background: #fff; }
/* staggered entrance for columns */
.has-mega:hover > .mega-panel .mega-col, .has-mega.open > .mega-panel .mega-col { animation: rise 0.35s ease-out both; }
.mega-col:nth-child(2) { animation-delay: 0.04s; }
.mega-col:nth-child(3) { animation-delay: 0.08s; }
.mega-col:nth-child(4) { animation-delay: 0.12s; }
@media (max-width: 980px) {
  .mega-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; padding: 0.25rem 0 0.75rem; display: none; }
  .has-mega.open > .mega-panel { display: block; }
  .mega-panel > .wrap { padding: 0; }
  .mega-head { display: none; }
  .mega-cols { flex-direction: column; gap: 1rem; }
  .mega-shared { flex-direction: column; }
  .mega-shared .mega-item { flex: none; }
  .mega-col { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) { .mega-panel, .mega-col, .mega-item { transition: none !important; animation: none !important; } }

/* ---------- Mega grid (industries, products). v37 ---------- */
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.mega-tile { border: 1px solid var(--mist); background: var(--white); padding: 1rem 1.1rem; margin: 0; }
.mega-tile:hover { border-color: var(--navy); background: var(--cloud); transform: translateY(-2px); }
.has-mega:hover > .mega-panel .mega-tile, .has-mega.open > .mega-panel .mega-tile { animation: rise 0.32s ease-out both; }
.mega-tile:nth-child(2) { animation-delay: 0.03s; }
.mega-tile:nth-child(3) { animation-delay: 0.06s; }
.mega-tile:nth-child(4) { animation-delay: 0.09s; }
.mega-tile:nth-child(5) { animation-delay: 0.12s; }
.mega-tile:nth-child(6) { animation-delay: 0.15s; }
@media (max-width: 980px) { .mega-grid { grid-template-columns: 1fr; } .mega-tile { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .mega-tile { animation: none !important; transition: none; } }

/* ---------- Accreditation row + industry name chips. v38, 8 Sep 2026 ---------- */
.accred-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: stretch; }
.accred { flex: 1 1 180px; max-width: 240px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.25rem; }
.accred img { max-height: 68px; width: auto; }
@media (max-width: 700px) { .accred { flex: 1 1 45%; } }

.lead-inds { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lead-ind { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--white); border: 1px solid var(--mist); color: var(--navy); font-weight: 600; font-size: 0.92rem; transition: border-color 0.15s ease, transform 0.15s ease; }
.lead-ind:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ---------- Contrast + heading tidy. v39, 8 Sep 2026 ---------- */
.post-meta { color: #5A6B82; opacity: 1; }
.stat-label { color: #E4EBF5; }
.band-navy p { color: #E4EBF5; }
.mega-item small { color: #566579; }
.index-grid span { color: #566579; }
.office-list span { color: #566579; }
.team-intro h3 { font-size: 1.15rem; }
.team-intro h3, .team-intro h2 { font-weight: 500; }
.site-footer { color: #DDE5F0; }

/* ---------- WCAG contrast fixes. v40, 8 Sep 2026 ---------- */
:root { --orange-btn: #B85C0A; }           /* 4.6:1 against white text */
.btn-orange { background: var(--orange-btn); }
.btn-orange:hover { background: #9C4D08; }

/* Links must not rely on colour alone */
.card .post-meta a, .mega-item, .index-grid a, a.card, .card-media { text-decoration: none; }
.card p.post-meta { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.card:hover h3, a.card:focus-visible h3 { text-decoration: underline; text-underline-offset: 3px; }
.lead-ind:hover, .lead-ind:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }

/* ---------- Accordion: taller panel, no inner scrollbar. v42, 8 Sep 2026 ---------- */
@media (min-width: 901px) {
  .xpand { height: 470px; }
  .xpand-body { overflow: visible; justify-content: flex-start; }
  .xpand-body img { height: 190px; flex: none; }
  .xpand-body p { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1rem; }
  .xpand-body h3 { font-size: 1.15rem; }
}

/* ---------- Four-metric band + plain nav CTA. v43, 9 Sep 2026 ---------- */
.stats-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stats-4 { grid-template-columns: repeat(2, 1fr); } }
.nav-menu > li:last-child > a { color: var(--navy); }
.nav-menu > li:last-child > a:hover { background: var(--cloud); }

/* ---------- Soft hero (contact). v44, 9 Sep 2026 ---------- */
.hero-soft { position: relative; overflow: hidden; }
.hero-soft .hero-backdrop { position: absolute; inset: 0; }
.hero-soft .hero-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.hero-soft .hero-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,0.96) 40%, rgba(255,255,255,0.82) 70%, rgba(255,255,255,0.7)); }
.hero-soft .wrap { position: relative; z-index: 1; }
.hero-soft h1, .hero-soft .lead { color: inherit; }

/* ---------- Soft hero: lighter wash so artwork reads. v45, 9 Sep 2026 ---------- */
.hero-soft .hero-backdrop::after { background: linear-gradient(100deg, rgba(255,255,255,0.90) 30%, rgba(255,255,255,0.62) 62%, rgba(255,255,255,0.34)); }

/* ---------- Blog prose images span the content width. v46 ---------- */
.prose img { display: block; width: 100%; height: auto; max-width: 100%; margin: 1.75rem auto; border-radius: var(--radius); float: none !important; }
.prose img[width], .prose img[height] { width: 100% !important; height: auto !important; }
.prose figure { margin: 1.75rem 0; width: 100%; }
.prose p > img:only-child { margin-left: 0; margin-right: 0; }
.prose p { font-size: 1.02rem; line-height: 1.72; }

/* ---------- Clear the sticky header when jumping to anchors. v47 ---------- */
:target, h1, h2, h3, [id] { scroll-margin-top: 90px; }

/* ---------- Blog: consistent image sizing. v48 ---------- */
.prose img,
.prose p img,
.prose figure img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 420px !important;
  object-fit: cover;
  margin: 1.75rem 0 !important;
  border-radius: var(--radius);
  float: none !important;
}
.prose img[style] { width: 100% !important; height: 420px !important; }
@media (max-width: 700px) { .prose img, .prose p img, .prose figure img { height: 220px !important; } }
/* featured image above the body matches the same proportions */
.post-hero-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); }


/* ---------- Roboto weight mapping. v49, 11 Sep 2026 ---------- */
h1, h2, h3, h4 { font-weight: 500; }
.stat-number, .card-offer h3, strong, b { font-weight: 700; }
.mega-col-title, .eyebrow, .filter-chip.active, .btn { font-weight: 500; }


/* ---------------------------------------------------------------------------
   Pagination — audit item 55. The blog listing is paginated server-side now,
   so it needs real page links instead of a Show-more button.
   --------------------------------------------------------------------------- */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.4rem; margin-top: 3rem;
}
.pager-link {
  display: inline-block; min-width: 2.5rem; padding: 0.55rem 0.85rem;
  border: 1px solid var(--mist); border-radius: 0.5rem; background: var(--white);
  font-size: 0.9rem; font-weight: 500; color: var(--navy); text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pager-link:hover { border-color: var(--navy); }
.pager-link.current {
  background: var(--navy); border-color: var(--navy); color: var(--white); cursor: default;
}
.pager-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.pager-gap { padding: 0 0.35rem; color: var(--slate, #6b7280); }
.pager-count {
  margin-top: 1rem; text-align: center;
  font-size: 0.85rem; color: var(--slate, #6b7280);
}
@media (max-width: 560px) {
  .pager-link { min-width: 2.2rem; padding: 0.5rem 0.6rem; font-size: 0.85rem; }
}
