/*
 * FortuneArcX static-page design system.
 * Used by every page emitted by scripts/generate-pages.mjs. The React home
 * page mirrors these tokens (src/styles/theme.css) so all pages feel like one site.
 */
:root {
  --navy: #0B1B3F;
  --navy-2: #0A1530;
  --ink: #1F2A44;
  --muted: #5B6785;
  --blue: #1D5BF2;
  --blue-dark: #1448C8;
  --blue-soft: #EAF0FE;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --line: #E3E8F2;
  --cyan: #00D4FF;
  --gold: #FFB800;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 27, 63, .18);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); letter-spacing: -.02em; line-height: 1.15; margin: 0; overflow-wrap: break-word; }
p { margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .95rem;
  line-height: 1; padding: .95rem 1.6rem; border-radius: 10px; white-space: nowrap; border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #F5A800; color: var(--navy); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-2); color: #C9D3EA; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 38px; }
.topbar a { color: #C9D3EA; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 1.25rem; }
@media (max-width: 640px) { .topbar .tb-left { display: none; } .topbar .container { justify-content: center; } }

header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
header.site > .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -.02em; }
.brand:hover { color: var(--navy); }
.brand .mark { width: 32px; height: 32px; border-radius: 11px 3px 11px 3px; background: linear-gradient(135deg, var(--cyan), var(--gold));
  display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 900; font-style: italic; font-size: 1.1rem; }
.brand .x { color: var(--blue); }

nav.main { display: flex; align-items: center; gap: .25rem; height: 100%; }
nav.main .item { position: static; height: 100%; display: flex; align-items: center; }
nav.main .item > a { color: var(--navy); font-weight: 600; font-size: .92rem; padding: .5rem .6rem; border-radius: 8px; display: inline-flex; align-items: center; gap: .3rem; }
nav.main .item > a:hover, nav.main .item:focus-within > a { color: var(--blue); }
nav.main .item > a .chev { width: 14px; height: 14px; transition: transform .2s ease; }
nav.main .item:hover > a .chev, nav.main .item:focus-within > a .chev { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(11,27,63,.25);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
nav.main .item:hover .mega, nav.main .item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega .container { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; padding-top: 2rem; padding-bottom: 2.25rem; }
.mega .intro { background: var(--bg-soft); border-radius: var(--radius); padding: 1.5rem; }
.mega .intro h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.mega .intro p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.mega .cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem 2rem; }
.mega h4 { font-family: var(--font); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: .4rem 0; color: var(--navy); font-weight: 500; font-size: .95rem; }
.mega li a:hover { color: var(--blue); }
.header-cta { display: flex; gap: .5rem; align-items: center; }
.header-cta .btn { padding: .75rem 1.2rem; font-size: .88rem; }

/* Mobile drawer (no JS — <details>) */
details.mnav { display: none; }
@media (max-width: 1180px) {
  nav.main, .header-cta { display: none; }
  details.mnav { display: block; }
  details.mnav > summary { list-style: none; cursor: pointer; padding: .5rem; border-radius: 8px; color: var(--navy); display: flex; }
  details.mnav > summary::-webkit-details-marker { display: none; }
  details.mnav[open] > summary .i-open, details.mnav:not([open]) > summary .i-close { display: none; }
  details.mnav .drawer { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
    max-height: calc(100vh - 110px); overflow-y: auto; padding: 1rem 20px 1.5rem; box-shadow: 0 24px 40px -20px rgba(11,27,63,.25); }
  .drawer details { border-bottom: 1px solid var(--line); }
  .drawer summary, .drawer > a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
  .drawer > a:not(.btn) { border-bottom: 1px solid var(--line); }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer details[open] summary .chev { transform: rotate(180deg); }
  .drawer .chev { width: 16px; height: 16px; transition: transform .2s; }
  .drawer ul { list-style: none; margin: 0 0 .75rem; padding: 0 0 0 .75rem; }
  .drawer ul a { display: block; padding: .45rem 0; color: var(--muted); font-weight: 500; }
  .drawer .btn { width: 100%; margin-top: .75rem; }
}

/* ---------- Page hero ---------- */
.page-hero { position: relative; background: radial-gradient(90% 120% at 100% 0%, rgba(29,91,242,.45), transparent 60%), var(--navy); color: #fff; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 4rem; }
.page-hero.simple .container { grid-template-columns: 1fr; padding-bottom: 3.25rem; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); margin: .25rem 0 1rem; }
.page-hero .lede { color: #C9D3EA; font-size: 1.1rem; max-width: 640px; margin-bottom: 1.75rem; }
.page-hero .hero-img { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); aspect-ratio: 4 / 3; }
.page-hero .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .82rem; color: #9FB0D6; margin-bottom: .75rem; }
.crumbs a { color: #C9D3EA; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { margin: 0 .35rem; color: #6B7DA8; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; }
.page-hero .eyebrow { color: var(--cyan); }
@media (max-width: 900px) { .page-hero .container { grid-template-columns: 1fr; } .page-hero .hero-img { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: #C9D3EA; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: .85rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p { color: #C9D3EA; }
.prose p { margin-bottom: 1rem; color: var(--ink); }
.prose h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .4rem 0; }
.meta { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.disclaimer { font-size: .85rem; color: var(--muted); font-style: italic; margin-bottom: 1.25rem; }
@media (max-width: 640px) { .section { padding: 3.5rem 0; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; color: var(--ink); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
a.card:hover, .card.hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: var(--ink); }
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .grow { flex: 1; }
.card .more { margin-top: 1.25rem; font-weight: 700; font-size: .9rem; color: var(--blue); display: inline-flex; align-items: center; gap: .35rem; transition: gap .2s; }
a.card:hover .more { gap: .6rem; }
.card ul.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.card ul.ticks li { padding: .3rem 0 .3rem 1.4rem; position: relative; font-size: .92rem; color: var(--ink); }
.card ul.ticks li::before { content: ''; position: absolute; left: 0; top: .72rem; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.card.featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,184,0,.15); }
.icon-box { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.icon-box svg { width: 26px; height: 26px; }
.section.dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #C9D3EA; }
.section.dark .card p { color: #A9B6D3; }
.section.dark .icon-box { background: rgba(0,212,255,.12); color: var(--cyan); }

.pill { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); margin: 0 .35rem .5rem 0; }
.pill.gold { background: var(--gold); color: var(--navy); }

/* Media cards (case studies) */
.media-card { padding: 0; overflow: hidden; }
.media-card .cover { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.media-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.media-card:hover .cover img { transform: scale(1.04); }
.media-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.tag { font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: .2rem .6rem; border-radius: 6px; }

/* Split block (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* At-a-glance panel (overview sidebar) */
.glance { background: var(--navy); color: #C9D3EA; border-radius: 18px; padding: 2rem; position: relative; overflow: hidden; }
.glance::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(29,91,242,.45); filter: blur(30px); }
.glance h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.25rem; position: relative; }
.glance ul { list-style: none; margin: 0; padding: 0; position: relative; }
.glance li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.08); color: #fff; font-weight: 600; }
.glance li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,212,255,.15); color: var(--cyan); font-size: .75rem; display: flex; align-items: center; justify-content: center; margin-top: .1rem; }
.glance .btn { margin-top: 1.25rem; position: relative; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.step { position: relative; padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step .num { font-family: var(--font-head); font-weight: 700; font-size: 2.25rem; color: var(--blue-soft); position: absolute; right: 1.25rem; top: .75rem; -webkit-text-stroke: 1px var(--blue); }
.step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .93rem; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.stat { padding: 1.5rem; border-left: 3px solid var(--blue); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Chips (tech) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { padding: .55rem 1rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy); }
.tech-group { margin-bottom: 1.5rem; }
.tech-group h3 { font-size: .8rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }

/* Challenge list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; }
.check-list li { position: relative; padding: .9rem 1rem .9rem 2.75rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--navy); }
.check-list li::before { content: '✓'; position: absolute; left: 1rem; top: .85rem; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) { .check-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: .75rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3.25rem 1.15rem 1.35rem; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, #1438A8 100%); color: #fff; border-radius: 20px; padding: 2.75rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(0,212,255,.25); filter: blur(30px); }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .4rem; }
.cta-band p { color: #DCE5FB; max-width: 560px; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 640px) { .cta-band { padding: 1.75rem; } }

/* Contact block */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-2); color: #9FB0D6; padding: 4rem 0 0; font-size: .92rem; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: 2rem; }
footer.site .brand { color: #fff; margin-bottom: 1rem; }
footer.site .brand:hover { color: #fff; }
footer.site h4 { font-family: var(--font); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: .45rem 0; }
footer.site a { color: #9FB0D6; }
footer.site a:hover { color: #fff; }
footer.site .about p { margin-bottom: 1.25rem; max-width: 300px; }
footer.site .bottom { margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; }
footer.site .bottom nav a { margin-left: 1.25rem; }
@media (max-width: 1100px) { footer.site .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer.site .about { grid-column: 1 / -1; } }
@media (max-width: 520px) { footer.site .cols { grid-template-columns: 1fr; } footer.site .bottom nav a { margin: 0 1.25rem 0 0; } }

/* =====================================================================
 * Phase 2 components
 * ===================================================================== */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
.btn-block { width: 100%; }
.center-row { display: flex; justify-content: center; margin-top: 2rem; }
.split.top { align-items: start; }
.meta-inline { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--muted); }
.meta-inline svg { width: 14px; height: 14px; }
.sample-tag { display: inline-block; vertical-align: middle; font-family: var(--font); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #8A5A00; background: #FFF3CC; border: 1px dashed #E0A800; border-radius: 5px; padding: .1rem .4rem; margin-left: .35rem; }
footer.site .socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
footer.site .socials a { width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
footer.site .socials svg { width: 16px; height: 16px; }

/* Hero facts bar (case studies) */
.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0 0 2.5rem; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.facts > div { padding: 1rem 1.15rem; border-left: 1px solid rgba(255,255,255,.1); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #9FB0D6; margin-bottom: .25rem; }
.facts dd { margin: 0; color: #fff; font-weight: 600; font-size: .92rem; }
.facts dd a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
@media (max-width: 1024px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .facts > div:nth-child(4) { border-left: 0; } .facts > div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.1); } }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.1); } .facts > div:nth-child(-n+2) { border-top: 0; } }

/* Numbered core-services list */
.numbered { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.numbered-item { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.numbered-item .n { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--blue); min-width: 2.2rem; line-height: 1.2; }
.numbered-item h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.numbered-item p { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .numbered { grid-template-columns: 1fr; } }

/* Tick lists */
.tick-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem 1.75rem; }
.tick-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tick-grid li { position: relative; padding-left: 2rem; color: var(--ink); font-weight: 500; }
.tick-grid li::before { content: '✓'; position: absolute; left: 0; top: .1rem; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) { .tick-grid.cols-2 { grid-template-columns: 1fr; } }

/* Delivery phases */
.phases { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.phases li { position: relative; background: var(--navy); color: #C9D3EA; border-radius: var(--radius); padding: 1.5rem; }
.phases li:not(:last-child)::after { content: ''; position: absolute; right: -.9rem; top: 50%; width: .8rem; height: 2px; background: var(--blue); }
.phases .n { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; align-items: center; justify-content: center; margin-bottom: .75rem; }
.phases h3 { color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.phases p { font-size: .9rem; }
@media (max-width: 900px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phases li::after { display: none; } }
@media (max-width: 520px) { .phases { grid-template-columns: 1fr; } }

/* Consultation banner + dual CTA */
.consult { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem 2rem; border-radius: 18px;
  background: linear-gradient(110deg, #FFF8E1 0%, #EAF0FE 100%); border: 1px solid #F3E2A8; }
.consult-icon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.consult-icon svg { width: 28px; height: 28px; }
.consult-text { flex: 1; }
.consult h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.consult p { color: var(--muted); }
@media (max-width: 760px) { .consult { flex-direction: column; align-items: flex-start; } }
.dual-cta { margin-top: 2.5rem; }
.dual-cta .card { background: var(--bg-soft); }

/* Engagement models */
.card.model .best-for { font-size: .92rem; margin-bottom: .25rem; }
.card.model .pill { position: absolute; top: 1.25rem; right: 1.25rem; margin: 0; }
.factors .card { background: #fff; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-bottom: 2rem; }
.filter-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .5rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter-bar .filter-chips { margin-bottom: 0; }
.filter-chips button { font: inherit; font-size: .88rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: all .2s; }
.filter-chips button:hover { border-color: var(--blue); color: var(--blue); }
.filter-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
html:not(.js) .filter-chips { display: none; }
.filter-empty { text-align: center; color: var(--muted); padding: 2rem 0; }
[data-tags][hidden] { display: none !important; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 150px; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 2.5rem; padding: 0 0 2rem; }
.timeline li::before { content: ''; position: absolute; left: 144px; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline .when { font-family: var(--font-head); font-weight: 700; color: var(--blue); text-align: right; padding-right: .5rem; }
.timeline h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.timeline p { color: var(--muted); }
@media (max-width: 640px) {
  .timeline::before { left: 6px; } .timeline li { grid-template-columns: 1fr; gap: .25rem; padding-left: 2rem; } .timeline li::before { left: 0; }
  .timeline .when { text-align: left; }
}

/* People */
.person { align-items: flex-start; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; flex: none; }
.person .role { color: var(--blue); font-weight: 600; font-size: .9rem; margin: -.3rem 0 .6rem; }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.office { display: flex; gap: .9rem; padding: 1.15rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.office-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.office-icon svg { width: 18px; height: 18px; }
.office strong { display: block; color: var(--navy); }
.office span { display: block; font-size: .88rem; color: var(--muted); }
.office a { font-size: .88rem; font-weight: 600; }
.offices.dark .office { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.offices.dark .office strong { color: #fff; }
.offices.dark .office span { color: #A9B6D3; }
.offices.dark .office a { color: var(--cyan); }
.offices.dark .office-icon { background: rgba(0,212,255,.12); color: var(--cyan); }
@media (max-width: 900px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offices { grid-template-columns: 1fr; } }

/* Contact block (ends every page) */
.contact-block { background: radial-gradient(70% 90% at 0% 100%, rgba(29,91,242,.35), transparent 60%), var(--navy); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.contact-block h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: .85rem; }
.contact-block .eyebrow { color: var(--cyan); }
.contact-block .lede { color: #C9D3EA; margin-bottom: 1.75rem; }
.next-steps { list-style: none; margin: 0 0 2rem; padding: 0; counter-reset: step; }
.next-steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.15rem; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,212,255,.15); color: var(--cyan);
  font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.next-steps strong { display: block; color: #fff; }
.next-steps span { font-size: .9rem; color: #A9B6D3; }
.contact-mail { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; padding: .9rem 1.2rem; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; }
.contact-mail:hover { color: #fff; background: rgba(255,255,255,.06); }
.contact-mail svg { width: 18px; height: 18px; color: var(--cyan); }
.form-card { background: #fff; border-radius: 20px; padding: 2rem; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); color: var(--ink); }
.offices-title { color: #fff; font-size: 1.15rem; margin: 3.5rem 0 1.25rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .form-card { padding: 1.5rem; } }

/* Forms */
.lead-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .choice legend { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field label span, .choice legend span { color: #D4183D; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .95rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy);
  transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,91,242,.15); }
.form-note { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .8rem; color: var(--muted); text-align: center; }
.form-note svg { width: 15px; height: 15px; color: var(--blue); flex: none; }
.form-status { padding: .85rem 1rem; border-radius: 10px; font-size: .9rem; }
.form-status.info { background: var(--blue-soft); color: var(--navy); }
.form-status.success { background: #E8F7EE; color: #11643A; border: 1px solid #B9E4CA; }
.form-status.error { background: #FDECEF; color: #A0142F; border: 1px solid #F5C2CC; }
.form-status a { color: inherit; text-decoration: underline; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Choice inputs (estimate) */
.choice { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; min-inline-size: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.choice-item { position: relative; display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .92rem;
  font-weight: 500; color: var(--navy); transition: border-color .2s, background .2s; }
.choice-item:hover { border-color: var(--blue); }
.choice-item input { accent-color: var(--blue); width: 17px; height: 17px; flex: none; }
.choice-item:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

/* Estimate stepper */
.estimate-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); gap: 2rem; align-items: start; }
.estimate-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }
.estimate-form h2 { font-size: 1.35rem; margin-bottom: 1.25rem; }
.stepper { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.stepper li { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: .75rem; border-top: 3px solid var(--line); }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: .75rem; flex: none; }
.stepper li.active, .stepper li.done { color: var(--navy); border-top-color: var(--blue); }
.stepper li.active span, .stepper li.done span { background: var(--blue); color: #fff; }
.stepper-nav { display: flex; justify-content: space-between; gap: .75rem; }
.stepper-nav [data-next], .stepper-nav [type=submit] { margin-left: auto; }
html.js .step-panel:not(.active) { display: none; }
html:not(.js) .stepper, html:not(.js) .stepper-nav [data-prev], html:not(.js) .stepper-nav [data-next] { display: none; }
html:not(.js) .step-panel { margin-bottom: 1.5rem; }
.estimate-form.is-sent .step-panel, .estimate-form.is-sent .stepper, .estimate-form.is-sent .stepper-nav { display: none !important; }
@media (max-width: 900px) { .estimate-layout { grid-template-columns: minmax(0, 1fr); } .estimate-form { padding: 1.35rem; } .stepper li { font-size: 0; gap: 0; } }

/* Case study page */
.case-body { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.case-body .prose h2:first-of-type { margin-top: .5rem; }
.case-aside { display: grid; gap: 1.25rem; position: sticky; top: 96px; }
.case-aside h3 { font-size: 1.05rem; margin-bottom: .9rem; }
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; } .case-aside { position: static; } }

/* Expertise hub rows */
.expertise-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.expertise-row:first-child { border-top: 0; padding-top: 0; }
.expertise-row h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.expertise-row h3 a { color: var(--navy); }
.expertise-row h3 a:hover { color: var(--blue); }
.expertise-row p { color: var(--muted); }
.expertise-row .ticks { list-style: none; padding: 0; margin: 0; }
.expertise-row .ticks li, .card ul.ticks li { padding: .3rem 0 .3rem 1.4rem; position: relative; font-size: .92rem; }
.expertise-row .ticks li::before { content: ''; position: absolute; left: 0; top: .72rem; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
@media (max-width: 760px) { .expertise-row { grid-template-columns: 1fr; gap: .75rem; } }

/* About */
.apart { margin-bottom: 3rem; }
.apart:last-child { margin-bottom: 0; }
.apart h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.apart p { color: var(--muted); font-size: 1.05rem; }
.apart.reverse img { order: 2; }
@media (max-width: 900px) { .apart.reverse img { order: 0; } }
.link-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.link-list li { padding: .3rem 0; }
.link-list a { font-weight: 500; font-size: .95rem; }

/* Careers vacancies */
.vacancies { display: grid; gap: .85rem; }
.vacancy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.vacancy.featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,184,0,.15); }
.vacancy .dept { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.vacancy h3 { font-size: 1.2rem; margin: .2rem 0; }
.vacancy h3 a { color: var(--navy); }
.vacancy h3 .pill { vertical-align: middle; margin: 0 0 0 .4rem; }
.vacancy p { color: var(--muted); font-size: .9rem; }

/* Blog index */
.featured-article { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; color: var(--ink); }
.featured-article:hover { color: var(--ink); }
.featured-article .cover { border-radius: 18px; overflow: hidden; aspect-ratio: 1200 / 630; box-shadow: var(--shadow); }
.featured-article .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.featured-article:hover .cover img { transform: scale(1.03); }
.featured-article h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: .4rem 0 .75rem; }
.featured-article p { color: var(--muted); margin-bottom: .75rem; }
.featured-article .more { display: flex; margin-top: 1rem; font-weight: 700; color: var(--blue); align-items: center; gap: .35rem; }
.article-card .cover { aspect-ratio: 1200 / 630; }
.article-card .tags { align-items: center; justify-content: space-between; }
@media (max-width: 900px) { .featured-article { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Article page */
.article-section { padding-top: 3rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; align-items: start; }
.article { min-width: 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.author { display: flex; align-items: center; gap: .75rem; }
.author .avatar { width: 44px; height: 44px; font-size: .9rem; margin: 0; }
.author strong { display: block; color: var(--navy); font-size: .95rem; }
.author span { display: block; font-size: .8rem; color: var(--muted); }
.share { display: flex; align-items: center; gap: .4rem; }
.share > span { font-size: .8rem; color: var(--muted); margin-right: .25rem; }
.share a { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.share a:hover { border-color: var(--blue); color: var(--blue); }
.share svg { width: 16px; height: 16px; }
.article-cover { width: 100%; border-radius: 18px; aspect-ratio: 1200 / 630; object-fit: cover; margin-bottom: 2rem; }
.article .prose { font-size: 1.05rem; }
.article .prose h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; scroll-margin-top: 100px; }
.article .prose h3 { font-size: 1.2rem; margin: 1.75rem 0 .6rem; }
.article .prose ol, .article .prose ul { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.article .prose li { margin: .5rem 0; }
.tip { margin: 1.5rem 0; padding: 1.15rem 1.35rem; border-left: 4px solid var(--gold); background: #FFF8E1; border-radius: 0 12px 12px 0; }
.tip strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #8A5A00; margin-bottom: .25rem; }
.tip p { margin: 0 !important; color: var(--ink); }
.article-cta { margin: 2rem 0; padding: 1.5rem; border-radius: 16px; background: var(--navy); color: #fff; }
.article-cta p { color: #fff !important; font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem !important; }
.article-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.table-wrap th { background: var(--bg-soft); text-align: left; font-weight: 700; color: var(--navy); }
.table-wrap th, .table-wrap td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.article .faq { margin-top: 1rem; }
.article-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.author-card { display: flex; gap: 1rem; padding: 1.5rem; border-radius: 16px; background: var(--bg-soft); }
.author-card .avatar { margin: 0; }
.author-card strong { color: var(--navy); }
.author-card p { color: var(--muted); font-size: .92rem; margin-top: .25rem; }
.article-aside { position: sticky; top: 96px; display: grid; gap: 1.25rem; }
.toc { border: 1px solid var(--line); border-radius: 16px; padding: 1.35rem; }
.toc h2 { font-size: .8rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: .45rem .75rem; border-left: 2px solid var(--line); color: var(--ink); font-size: .9rem; line-height: 1.4; }
.toc a:hover, .toc a.active { border-left-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.aside-cta { padding: 1.5rem; border-radius: 16px; background: var(--navy); color: #C9D3EA; }
.aside-cta h3 { color: #fff; font-size: 1.15rem; margin-bottom: .4rem; }
.aside-cta p { font-size: .9rem; margin-bottom: 1rem; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; order: -1; } .aside-cta { display: none; } }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 90; left: 20px; right: 20px; bottom: 20px; max-width: 560px; margin-left: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 1.25rem 1.35rem; box-shadow: 0 24px 60px -20px rgba(11,27,63,.45); display: grid; gap: 1rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: .9rem; color: var(--ink); }
.cookie-banner .btn { padding: .7rem 1.1rem; font-size: .88rem; }

/* Inline icon sizing (arrows in links/buttons) */
svg.chev, .more svg, .btn svg { width: 16px; height: 16px; flex: none; }
.office span.sample-tag { display: inline-block; font-size: .6rem; color: #8A5A00; }
footer.site a.btn-gold, footer.site a.btn-gold:hover { color: var(--navy); }
.split .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-hero .container.facts-row { display: block; padding-top: 0; padding-bottom: 0; }
.page-hero:has(.facts-row) .container:first-child { padding-bottom: 2rem; }
