/* ==========================================================================
   KAIF SEO — Design system
   Palette (strict): Navy #122056 · Indigo #5B65DC · Tint #EEEFFD · Off-white #FAFAFD · White #FFFFFF
   Layout language derived from the reference: fixed blurred header, centred editorial hero,
   dark navy proof sections, ledger stats, tabbed "what we do", pill buttons, 4-column footer.
   ========================================================================== */

:root {
  --navy: #122056;
  --indigo: #5B65DC;
  --tint: #EEEFFD;
  --bg: #FAFAFD;
  --white: #FFFFFF;

  /* opacity-derived tones (same hues, no new colours) */
  --line: rgba(18, 32, 86, 0.14);
  --line-strong: rgba(18, 32, 86, 0.9);
  --muted: rgba(18, 32, 86, 0.74);
  --line-on-dark: rgba(238, 239, 253, 0.2);
  --muted-on-dark: rgba(238, 239, 253, 0.78);

  --font-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 88px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 3px; }
.bg-navy :focus-visible, footer :focus-visible { outline-color: var(--tint); }

.site-container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 0 0 var(--radius) var(--radius); font-family: var(--font-sans); font-size: .9rem; text-decoration: none; }
.skip-link:focus { top: 0; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display-l { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.9rem, 8vw, 6.4rem); line-height: .92; letter-spacing: -.005em; }
.display-l.accent { color: var(--indigo); }
.d-block { display: block; }
.heading-xl { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.3rem, 5vw, 4rem); line-height: .98; letter-spacing: .002em; text-wrap: balance; }
.heading-lg { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1; text-wrap: balance; }
.h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; }
.body-lead { font-size: 1.22rem; line-height: 1.65; color: var(--muted); }
.eyebrow { font-family: var(--font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); margin: 0 0 14px; display: block; }
.eyebrow-light { color: var(--tint); opacity: .85; }
.italic-note { font-style: italic; color: var(--muted); }
.text-center { text-align: center; }
.accent-text { color: var(--indigo); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 500; font-size: .9rem; line-height: 1; padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); text-decoration: none; cursor: pointer; transition: background 200ms var(--ease-out), color 200ms, border-color 200ms, transform 200ms var(--ease-out); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.btn-accent { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.btn-accent:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.btn-outline-white { border-color: var(--tint); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-lg { padding: 17px 30px; font-size: .98rem; }
.btn .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; margin: -6px 0 -6px -10px; flex-shrink: 0; }
.btn-lg .avatar { width: 32px; height: 32px; margin-left: -12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 900; background: rgba(250, 250, 253, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.navbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); width: fit-content; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.55rem; line-height: 1; padding-top: 2px; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--indigo); border: 2px solid var(--bg); }
.brand-text { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .04em; line-height: 1; padding-top: 3px; white-space: nowrap; }
.brand-text small { display: block; font-family: var(--font-sans); font-size: .6rem; letter-spacing: .16em; font-weight: 500; color: var(--muted); margin-top: 3px; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav > ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.primary-nav a, .nav-toggle { font-family: var(--font-sans); font-size: .95rem; color: var(--navy); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: opacity 150ms; }
.primary-nav a:hover, .nav-toggle:hover { opacity: .55; color: var(--navy); }
.primary-nav a[aria-current="page"] { color: var(--indigo); font-weight: 500; }
.nav-toggle svg { transition: transform 200ms; }
.has-menu { position: relative; }
.has-menu.open .nav-toggle svg { transform: rotate(180deg); }
.submenu { position: absolute; top: calc(100% + 14px); left: -20px; min-width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 48px -28px rgba(18, 32, 86, .45); padding: 10px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 180ms, transform 220ms var(--ease-out), visibility 180ms; }
.has-menu.open .submenu, .has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu::before { content: ""; position: absolute; inset: -16px 0 auto 0; height: 16px; }
.submenu a { display: block; padding: 10px 14px; border-radius: 6px; width: 100%; }
.submenu a:hover { background: var(--tint); opacity: 1; }
.submenu small { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nav-right .btn { padding: 10px 20px 10px 12px; font-size: .84rem; }
.menu-btn { display: none; padding: 9px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; color: var(--navy); cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 0 24px; }
.mobile-menu li a { display: block; padding: 13px 4px; font-family: var(--font-sans); color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu li.sub a { padding-left: 22px; font-size: .92rem; color: var(--muted); }
.mobile-menu .btn { margin-top: 18px; width: 100%; justify-content: center; }
main { padding-top: var(--header-h); display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding-block: 90px 80px; background: var(--bg); }
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; position: relative; z-index: 1; }
.hero .lede { font-size: 1.18rem; max-width: 600px; margin: 0 auto; color: var(--navy); line-height: 1.7; }
.eyebrow-live { display: block; text-align: center; font-style: italic; font-size: 1.05rem; color: var(--muted); }
.eyebrow-live .pulse { display: inline-block; margin-right: 9px; vertical-align: middle; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 101, 220, .5); } 70% { box-shadow: 0 0 0 9px rgba(91, 101, 220, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 101, 220, 0); } }
.blob { position: absolute; border-radius: 50%; animation: float 9s ease-in-out infinite; z-index: 0; }
.blob.b1 { width: 220px; height: 220px; background: var(--tint); top: 8%; right: 7%; }
.blob.b2 { width: 110px; height: 110px; background: var(--indigo); opacity: .22; bottom: 16%; right: 20%; animation-duration: 7s; animation-delay: 1.5s; }
.blob.b3 { width: 66px; height: 66px; background: var(--navy); opacity: .10; top: 58%; right: 5%; animation-duration: 11s; animation-delay: 3s; }
.blob.b4 { width: 160px; height: 160px; background: var(--tint); bottom: 6%; left: 5%; animation-duration: 10s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.ticker { position: relative; width: 100%; max-width: 920px; margin: 8px auto 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.ticker-track span::after { content: "✦"; color: var(--indigo); margin-left: 48px; font-size: 1rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Page hero (inner pages) */
.page-hero { background: var(--bg); padding-block: 72px 80px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .blob.b1 { top: -40px; right: 4%; width: 260px; height: 260px; }
.page-hero .blob.b2 { bottom: 12%; right: 24%; width: 90px; height: 90px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: end; position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 6.6vw, 5.4rem); line-height: .94; text-wrap: balance; }
.page-hero h1 em { font-style: normal; color: var(--indigo); }
.page-hero .body-lead { margin: 24px 0 30px; max-width: 58ch; }
.hero-aside { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; }
.hero-aside h2 { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tint); opacity: .8; margin-bottom: 14px; font-weight: 600; }
.hero-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-aside li { padding-left: 26px; position: relative; font-size: 1rem; line-height: 1.45; color: var(--white); }
.hero-aside li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 50%; background: var(--indigo); box-shadow: inset 0 0 0 4px var(--navy), 0 0 0 1.5px var(--indigo); }
.crumbs { font-family: var(--font-sans); font-size: .82rem; color: var(--muted); margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--indigo); }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }

/* ---------- Sections ---------- */
.sec { padding-block: 96px; }
.sec-lg { padding-block: 120px; }
.sec-sm { padding-block: 64px; }
.bg-bg { background: var(--bg); }
.bg-white { background: var(--white); }
.bg-tint { background: var(--tint); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy .body-lead, .bg-navy p { color: var(--muted-on-dark); }
.bd-b { border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.sec-head p { max-width: 52ch; margin: 0; color: var(--muted); }
.bg-navy .sec-head p { color: var(--muted-on-dark); }
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 96px; align-items: start; }
.two-col.even { grid-template-columns: 1fr 1fr; gap: 32px 72px; }
.stack { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.measure { max-width: 68ch; }

/* Answer capsule (AEO) */
.capsule { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--indigo); border-radius: var(--radius); padding: 30px 34px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 48px; box-shadow: 0 24px 48px -36px rgba(18, 32, 86, .35); }
.capsule h2 { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); margin-bottom: 12px; font-weight: 600; }
.capsule .def { font-size: 1.3rem; line-height: 1.5; margin: 0; color: var(--navy); }
.capsule .def strong { font-weight: 600; }
.capsule ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; }
.capsule li { position: relative; padding-left: 28px; line-height: 1.5; }
.capsule li::before, ul.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--indigo); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 0a12 12 0 100 24 12 12 0 000-24zm-1.6 17.4L5.5 12.5l1.7-1.7 3.2 3.2 6.4-6.4 1.7 1.7z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 0a12 12 0 100 24 12 12 0 000-24zm-1.6 17.4L5.5 12.5l1.7-1.7 3.2 3.2 6.4-6.4 1.7 1.7z'/%3E%3C/svg%3E") center/contain no-repeat; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
ul.ticks li { position: relative; padding-left: 30px; }
ul.ticks.light li::before { background: var(--tint); }

/* Ledger stats */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--navy); }
.ledger-stat { display: flex; flex-direction: column; gap: 10px; padding: 32px 32px 0 0; }
.ledger-stat + .ledger-stat { padding-left: 40px; border-left: 1px solid var(--line); }
.ledger-num { font-family: var(--font-display); font-size: clamp(3.6rem, 7vw, 6rem); line-height: .9; color: var(--navy); font-variant-numeric: tabular-nums; }
.ledger-num span { color: var(--indigo); }
.ledger-label { color: var(--muted); font-size: 1.05rem; }

/* What-I-do tabs */
.wwd-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: stretch; }
.wwd-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.wwd-tab { all: unset; cursor: pointer; display: block; width: 100%; box-sizing: border-box; padding: 32px 0 28px; border-bottom: 1px solid var(--line); }
.wwd-tab-title { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: .94; color: rgba(18, 32, 86, .28); max-width: 12ch; transition: color 220ms var(--ease-out), transform 320ms var(--ease-out); }
.wwd-tab-line { display: block; max-width: 40ch; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 360ms var(--ease-out), opacity 260ms, margin-top 260ms; font-size: 1.04rem; line-height: 1.6; }
.wwd-tab:hover .wwd-tab-title { color: var(--navy); }
.wwd-tab.is-active .wwd-tab-title { color: var(--navy); transform: translateX(10px); }
.wwd-tab.is-active .wwd-tab-line { max-height: 8em; opacity: 1; margin-top: 14px; }
.wwd-tab:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }
.wwd-panels { background: var(--white); border: 1px solid var(--line); padding: 32px; box-shadow: 0 24px 48px -32px rgba(18, 32, 86, .35); }
.wwd-panel { display: none; flex-direction: column; gap: 26px; }
.wwd-panel.is-active { display: flex; animation: wwd-in 420ms var(--ease-out) both; }
.wwd-art { aspect-ratio: 16 / 10; background: var(--navy); border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wwd-art svg { width: 100%; height: 100%; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li:first-child a { border-top: 1px solid var(--navy); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: 1.22rem; line-height: 1.2; transition: padding 220ms var(--ease-out), color 160ms; }
.link-list small { display: block; font-family: var(--font-sans); font-size: .8rem; color: var(--muted); margin-top: 4px; }
.go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 200ms, color 200ms, border-color 200ms, transform 260ms var(--ease-out); }
.link-list a:hover { padding-left: 14px; color: var(--indigo); }
.link-list a:hover .go { background: var(--indigo); border-color: var(--indigo); color: var(--white); transform: rotate(45deg); }
@keyframes wwd-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Without JS (or on small screens) show every panel stacked */
html:not(.js) .wwd-panel { display: flex; margin-bottom: 40px; }
html:not(.js) .wwd-index { display: none; }
.wwd-stack-title { display: none; }
html:not(.js) .wwd-stack-title { display: block; }

/* SVG art classes */
.a-stroke { fill: none; stroke: var(--tint); stroke-opacity: .6; stroke-width: 2; }
.a-fill-ind { fill: var(--indigo); } .a-fill-tint { fill: var(--tint); } .a-fill-dim { fill: var(--tint); opacity: .3; } .a-fill-white { fill: var(--white); }
.a-line { fill: none; stroke: var(--indigo); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 500; stroke-dashoffset: 500; }
.wwd-panel.is-active .a-line, html:not(.js) .a-line { animation: draw 1.1s var(--ease-out) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.a-cursor { fill: var(--tint); animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }

/* Proof tiles (dark) */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: rgba(238, 239, 253, .06); border: 1px solid var(--line-on-dark); border-radius: var(--radius); overflow: hidden; transition: border-color 180ms, transform 600ms var(--ease-out), opacity 600ms; }
.tile:hover { border-color: var(--indigo); }
.tile.t1 { grid-column: span 5; } .tile.t2 { grid-column: span 4; } .tile.t3 { grid-column: span 3; } .tile.t4 { grid-column: span 12; }
.tile-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 250px; }
.tile-cap { display: flex; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line-on-dark); font-family: var(--font-sans); font-size: .84rem; color: var(--tint); }
.tile-cap span:last-child { opacity: .7; }
.serp { background: var(--white); border-radius: 8px; padding: 18px; color: var(--navy); }
.serp .url { font-family: var(--font-sans); font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.serp .url i { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); display: inline-block; }
.serp .ttl { font-family: var(--font-sans); font-size: 1.08rem; color: var(--indigo); margin: 6px 0 4px; font-weight: 500; line-height: 1.25; }
.serp .dsc { font-family: var(--font-sans); font-size: .82rem; color: var(--muted); line-height: 1.5; margin: 0; }
.serp .rich { margin-top: 12px; display: grid; gap: 6px; }
.serp .rich span { font-family: var(--font-sans); font-size: .78rem; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; display: flex; justify-content: space-between; color: var(--navy); }
.audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-family: var(--font-sans); font-size: .88rem; }
.audit li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-on-dark); color: var(--white); }
.audit li:first-child { border-top: 0; }
.audit b { font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--indigo); color: var(--white); }
.audit b.warn { background: transparent; border: 1px solid var(--tint); color: var(--tint); }
.chat { font-family: var(--font-sans); display: grid; gap: 12px; font-size: .88rem; }
.chat .q { background: rgba(238, 239, 253, .12); color: var(--white); border-radius: 14px 14px 4px 14px; padding: 12px 14px; justify-self: end; max-width: 90%; }
.chat .a { background: var(--white); color: var(--navy); border-radius: 14px 14px 14px 4px; padding: 14px 16px; line-height: 1.55; }
.chat .a .src { display: inline-flex; margin-top: 10px; font-size: .72rem; font-weight: 600; background: var(--tint); color: var(--indigo); border-radius: 999px; padding: 3px 10px; }
.note-illus { font-family: var(--font-sans); font-size: .78rem; color: var(--muted-on-dark); margin-top: 20px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--navy); transition: border-color 180ms, transform 300ms var(--ease-out), box-shadow 300ms; }
a.card:hover { border-color: var(--indigo); transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(18, 32, 86, .45); color: var(--navy); }
.card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.card .num { font-family: var(--font-display); font-size: 3rem; line-height: .9; color: var(--indigo); }
.card .more { margin-top: auto; padding-top: 10px; font-family: var(--font-sans); font-size: .88rem; font-weight: 500; color: var(--indigo); display: inline-flex; gap: 6px; align-items: center; }
.card.dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.card.dark h3 { color: var(--white); } .card.dark p { color: var(--muted-on-dark); }
.card.tinted { background: var(--tint); border-color: transparent; }
.bg-tint .card { background: var(--white); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy); }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { counter-increment: step; padding: 28px 26px 12px 0; position: relative; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--indigo); display: block; margin-bottom: 8px; }
.steps h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.28rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .98rem; line-height: 1.6; margin: 0; }
.bg-navy .steps { border-color: var(--line-on-dark); }
.bg-navy .steps li + li { border-color: var(--line-on-dark); }
.bg-navy .steps li::before { color: var(--indigo); }
.bg-navy .steps p { color: var(--muted-on-dark); }

/* Table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.tbl { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: .93rem; min-width: 640px; }
.tbl caption { text-align: left; padding: 18px 22px 0; font-family: var(--font-serif); font-size: 1.1rem; color: var(--muted); caption-side: top; }
.tbl th, .tbl td { padding: 16px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.55; }
.tbl thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--indigo); font-weight: 600; background: var(--tint); }
.tbl tbody th { font-weight: 600; color: var(--navy); width: 28%; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }

/* Lead card + list (articles pattern → featured service) */
.lead-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: stretch; }
.lead-card { display: flex; flex-direction: column; background: var(--navy); padding: 52px; border-radius: 4px; text-decoration: none; color: var(--white); transition: background-color 200ms; }
.lead-card:hover { background: var(--indigo); color: var(--white); }
.lead-card .meta { font-family: var(--font-sans); font-size: .8rem; color: var(--tint); display: flex; gap: 16px; margin-bottom: 14px; }
.lead-card h3 { font-family: var(--font-serif); font-weight: 400; color: var(--white); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; margin-bottom: 20px; text-wrap: balance; }
.lead-card p { color: var(--muted-on-dark); max-width: 52ch; margin-bottom: 36px; }
.lead-card .read { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-sans); font-weight: 500; font-size: .95rem; }
.lead-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lead-list li { flex: 1; border-bottom: 1px solid var(--line); }
.lead-list a { display: flex; flex-direction: column; justify-content: center; height: 100%; padding-block: 22px; text-decoration: none; color: var(--navy); }
.lead-list .meta { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; color: var(--indigo); margin-bottom: 6px; }
.lead-list h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; line-height: 1.3; transition: color 150ms; }
.lead-list a:hover h3 { color: var(--indigo); }

/* FAQ */
.faq-list { border-top: 1px solid var(--navy); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; position: relative; font-size: 1.28rem; line-height: 1.35; font-weight: 500; color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: translateY(-70%) rotate(45deg); transition: transform 250ms var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list summary:hover { color: var(--indigo); }
.faq-a { padding: 0 56px 28px 0; color: var(--muted); max-width: 78ch; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--navy); }
.faq-cat { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; margin: 72px 0 20px; display: flex; align-items: baseline; gap: 14px; }
.faq-cat:first-of-type { margin-top: 0; }
.faq-cat span { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .1em; color: var(--indigo); font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-family: var(--font-sans); font-size: .84rem; font-weight: 500; text-decoration: none; transition: all 150ms; }
.pill:hover { border-color: var(--indigo); color: var(--indigo); }

/* CTA band */
.cta { background: var(--navy); padding-block: 100px; text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.cta h2 { color: var(--white); max-width: 18ch; }
.cta p { color: var(--muted-on-dark); max-width: 52ch; margin: 0; }

/* Prose / policy */
.prose { max-width: 74ch; }
.prose h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; margin: 56px 0 16px; }
.prose h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; margin: 30px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .5em; }
.policy-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.updated { font-family: var(--font-sans); font-size: .82rem; color: var(--muted); }
.principles { counter-reset: p; display: grid; gap: 0; border-top: 1px solid var(--navy); }
.principles > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); counter-increment: p; }
.principles > div::before { content: "0" counter(p); font-family: var(--font-display); font-size: 3rem; line-height: .9; color: var(--indigo); }
.principles h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 6px; }
.principles p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); }
.footer-top { padding-block: 72px 56px; border-bottom: 1px solid var(--line-on-dark); }
.footer-cols { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1.2fr; gap: 56px; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-mark { background: var(--indigo); }
.footer-brand .brand-mark::after { background: var(--white); border-color: var(--navy); }
.footer-brand .brand-text small { color: var(--muted-on-dark); }
.footer-brand p { font-family: var(--font-sans); font-size: .88rem; color: var(--muted-on-dark); line-height: 1.75; max-width: 300px; margin: 24px 0; }
.footer-col h2 { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--tint); opacity: .8; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a, .footer-contact a { font-family: var(--font-sans); font-size: .9rem; color: var(--muted-on-dark); text-decoration: none; transition: color 150ms; }
.footer-col a:hover, .footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { font-style: normal; display: grid; gap: 10px; font-family: var(--font-sans); font-size: .9rem; }
.footer-contact div { display: flex; gap: 10px; align-items: center; color: var(--muted-on-dark); }
.footer-contact svg { flex-shrink: 0; opacity: .8; }
.footer-bottom { padding-block: 24px; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--font-sans); font-size: .8rem; color: var(--muted-on-dark); }
.footer-bottom-inner p { margin: 0; color: var(--muted-on-dark); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted-on-dark); text-decoration: none; } .footer-links a:hover { color: var(--white); text-decoration: underline; }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; border: 1px solid var(--line-on-dark); border-radius: 6px; display: grid; place-items: center; color: var(--muted-on-dark); transition: all 150ms; }
.social a:hover { color: var(--white); border-color: var(--white); }

/* ---------- Contact dialog ---------- */
dialog.contact { border: 0; padding: 0; border-radius: 14px; width: min(560px, calc(100% - 32px)); background: var(--white); color: var(--navy); box-shadow: 0 40px 80px -30px rgba(18, 32, 86, .6); }
dialog.contact::backdrop { background: rgba(18, 32, 86, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.contact-head { padding: 28px 32px 0; display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.contact-head h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 2.2rem; line-height: 1; }
.contact-head p { font-family: var(--font-sans); font-size: .88rem; color: var(--muted); margin: 8px 0 0; }
.close-btn { background: var(--tint); border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.close-btn:hover { background: var(--navy); color: var(--white); }
.contact form { padding: 22px 32px 30px; display: grid; gap: 14px; font-family: var(--font-sans); }
.contact label { font-size: .8rem; font-weight: 600; display: grid; gap: 6px; }
.contact input, .contact select, .contact textarea { font: inherit; font-weight: 400; font-size: .95rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--navy); width: 100%; }
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.contact textarea { min-height: 110px; resize: vertical; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact .alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); padding-top: 4px; }
.contact .alt button { background: none; border: 0; color: var(--indigo); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.contact .fine { font-size: .76rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.five li { border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .tile.t1, .tile.t2, .tile.t3 { grid-column: span 6; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .primary-nav { display: none; }
  .navbar-inner { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-flex; }
  .nav-right .btn { display: none; }
  .page-hero-grid, .two-col, .two-col.even, .lead-grid, .wwd-grid, .capsule { grid-template-columns: 1fr; gap: 32px; }
  .wwd-index { display: none; }
  .wwd-panel { display: flex !important; margin-bottom: 44px; }
  .wwd-stack-title { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.2rem, 10vw, 3rem); line-height: .96; margin-bottom: 4px; }
  .wwd-panels { background: none; border: 0; padding: 0; box-shadow: none; }
  .steps, .steps.three { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .bg-navy .steps li { border-bottom-color: var(--line-on-dark); }
  .ledger { grid-template-columns: 1fr; margin-top: 56px; }
  .ledger-stat, .ledger-stat + .ledger-stat { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ledger-num { font-size: clamp(2.8rem, 12vw, 3.6rem); }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .tile.t1, .tile.t2, .tile.t3 { grid-column: span 12; }
  .sec { padding-block: 72px; } .sec-lg { padding-block: 84px; }
  .hero { min-height: auto; padding-block: 56px 56px; }
  .lead-card { padding: 32px 24px; }
  .blob.b1 { width: 120px; height: 120px; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .site-container { width: calc(100% - 32px); }
  .cards.four { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .capsule { padding: 24px 20px; }
  .principles > div { grid-template-columns: 56px 1fr; }
  .faq-list summary { font-size: 1.12rem; padding-right: 40px; }
  .faq-a { padding-right: 0; }
  .contact .row { grid-template-columns: 1fr; }
  .contact-head, .contact form { padding-inline: 22px; }
  .btn-lg { padding: 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .a-line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .cta, dialog { display: none; } main { padding-top: 0; } }

/* tile with split content */
.tile-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 960px) { .tile-split { grid-template-columns: 1fr; gap: 24px; } }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--tint); color: var(--navy); padding: 2px 6px; border-radius: 4px; }
.bg-navy code { background: rgba(238, 239, 253, .14); color: var(--white); }
.bg-navy p a, .bg-navy li a { color: var(--white); }
